/* YardCanvas studio — project picker, wizards, design package.
   Matches the site's visual language (Geist, greens #12672c/#24833d). */

.studio-wrap { padding: 8px 0 40px; }

/* ---------- wizard head ---------- */
.wizard-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 18px; margin: 6px 0 22px; flex-wrap: wrap;
}
.wizard-head h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; }
.wizard-sub { color: var(--muted); font-size: 15px; margin: 6px 0 0; }

/* ---------- project picker ---------- */
.picker-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px;
}
.pick-card {
  background: #fff; border: 1.5px solid var(--line); border-radius: 16px;
  overflow: hidden; cursor: pointer; text-align: left; font-family: inherit;
  padding: 0; display: flex; flex-direction: column;
  transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.pick-card:hover:not(.disabled):not(.selected) { border-color: #b9cbbd; transform: translateY(-2px); }
.pick-card .pick-art { aspect-ratio: 16/10; background: var(--soft); overflow: hidden; }
.pick-card .pick-art img { width: 100%; height: 100%; object-fit: cover; }
.pick-card .pick-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pick-card h3 { margin: 0; font-size: 17px; }
.pick-card p { margin: 0; font-size: 13.5px; color: var(--muted); flex: 1; }
.pick-card .pick-choose { font-size: 14px; font-weight: 700; color: var(--green); margin-top: 8px; }
.pick-card.selected { background: var(--green); border-color: var(--green); color: #fff; }
.pick-card.selected h3 { color: #fff; }
.pick-card.selected p { color: #d7e6d4; }
.pick-card.selected .pick-choose { color: #fff; }
.pick-card.disabled { cursor: not-allowed; opacity: .75; }
.pick-card .soon-tag {
  align-self: flex-start; font-size: 11.5px; font-weight: 700; border-radius: 999px;
  padding: 4px 10px; background: #f1f0ec; color: var(--muted); margin-top: 8px;
}
.picker-foot { margin-top: 26px; display: flex; gap: 12px; }

/* ---------- single-step wizard ---------- */
.wizard-single { max-width: 720px; margin: 0 auto; }
.wizard-single h1 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; margin: 0; }
.wizard-progress { margin: 6px 0 12px; }
.wizard-kicker {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
  color: var(--green); margin-bottom: 6px;
}
.wizard-stepcount { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.wizard-bar { height: 6px; border-radius: 999px; background: #e7ece7; overflow: hidden; }
.wizard-bar > span {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: var(--green2); transition: width .25s ease;
}
#stepsRow { margin-top: 18px; }
.step-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 24px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 4px 14px #1431220d;
}
.step-card[hidden] { display: none; }
.wizard-nav [hidden], .render-actions [hidden] { display: none !important; }
.step-body { display: flex; flex-direction: column; gap: 12px; flex: 1; font-size: 14px; }
.step-body .hint { font-size: 12.5px; color: var(--muted); }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.wizard-nav .btn { white-space: normal; text-align: center; }

/* option / radio cards */
.opt-card {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px;
  cursor: pointer; display: flex; gap: 10px; align-items: flex-start;
  transition: border-color .12s ease, background .12s ease; font-size: 13.5px;
  background: #fff; width: 100%; text-align: left; font-family: inherit;
}
.opt-card:hover:not(.disabled) { border-color: #b9cbbd; }
.opt-card.selected { border-color: var(--green); background: #f2f8f1; }
.opt-card.disabled { cursor: not-allowed; opacity: .6; background: #fafafa; }
.opt-dot {
  flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #c3cec2; margin-top: 1px; position: relative; background: #fff;
}
.opt-card.selected .opt-dot { border-color: var(--green); }
.opt-card.selected .opt-dot::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--green);
}
.opt-card .opt-t { font-weight: 700; display: block; }
.opt-card .opt-s { color: var(--muted); font-size: 12px; display: block; }
.opt-card img.opt-img { width: 100%; border-radius: 8px; margin-top: 8px; aspect-ratio: 16/10; object-fit: cover; }

/* planting theme branch menu: compact cards with tap-to-expand palette */
.opt-card.theme-card { align-items: center; }
img.theme-thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex: none; }
.theme-palette {
  margin: -8px 0 4px; padding: 10px 12px; border: 1.5px solid var(--line); border-top: none;
  border-radius: 0 0 12px 12px; background: #fbfdfb;
}
.photo-region-status { margin: 8px 0 0; padding: 10px 12px; border-radius: 8px; background: #edf3eb; color: #344d39; font-size: 14px; font-weight: 600; }
.photo-region-status.is-error { background: #fff0ed; color: #922f20; border: 1px solid #dfada5; }
.photo-region-status.is-confirmed { background: #e9f5e8; color: #236132; }
.photo-coverage-note { margin: 16px 0 0; padding: 14px; border: 1px solid #d5a74f; border-radius: 8px; background: #fff8e7; color: #614a20; font-size: 14px; line-height: 1.5; }
.pal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pal-plant { display: flex; gap: 8px; align-items: center; min-width: 0; }
.pal-plant img, .pal-noimg { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; background: #eef2ee; display: block; }
.pal-name { font-size: 12px; font-weight: 600; line-height: 1.25; }
.pal-layer { font-size: 11px; color: var(--muted); }

/* hardscape type tiles */
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 8px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: inherit; font-size: 12.5px; font-weight: 600; background: #fff;
  transition: border-color .12s ease, background .12s ease;
}
.tile:hover:not(.disabled) { border-color: #b9cbbd; }
.tile.selected { border-color: var(--green); background: #f2f8f1; }
.tile.disabled { cursor: not-allowed; opacity: .55; background: #fafafa; }
.tile .swatch { width: 34px; height: 26px; border-radius: 6px; border: 1px solid #00000018; }
.tile .soon { font-size: 10px; color: var(--muted); font-weight: 700; }

/* upload */
.upload-drop {
  border: 1.5px dashed #c3cec2; border-radius: 12px; padding: 14px; text-align: center;
  display: flex; flex-direction: column; gap: 8px; align-items: center; background: #fbfdfb;
}
.upload-preview { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.upload-preview img { width: 100%; display: block; }

/* Planting start is a choice page, not a narrow single-field wizard step.
   Reset the global section padding on these nested sections explicitly. */
#wizardView.planting-start { padding: 0; }
.planting-start .wizard-single { max-width: 1080px; }
.planting-start .wizard-progress { max-width: 720px; margin-bottom: 18px; }
.planting-start .step-card { padding: 0; border: 0; background: none; box-shadow: none; }
.planting-start .wizard-nav { display: none; }
.source-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.source-card { min-width: 0; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 4px 14px #14312208; }
.source-heading { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.source-heading > div:last-child { min-width: 0; }
.source-heading h2 { margin: 0 0 6px; font-size: 22px; }
.source-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.source-art { flex: 0 0 64px; width: 64px; height: 64px; display: grid; place-items: center; color: #244b2b; }
.source-art img { width: 64px; height: 64px; display: block; object-fit: contain; }
.source-body { display: flex; flex-direction: column; gap: 16px; }
.source-card .project-address { margin: 0; padding: 0; border: 0; }
.source-card .project-address .field { margin-bottom: 12px; }
.source-card .project-address .hint { margin: 6px 0 0; }
.source-card .project-address select, .source-card .project-address input { min-height: 44px; font-size: 16px; }
.source-card .upload-drop { padding: 16px; gap: 10px; }
.source-card .upload-preview { width: 100%; background: var(--soft); }
.source-card .upload-preview img { max-height: 220px; object-fit: contain; }
.source-card .btn { min-height: 44px; white-space: normal; text-align: center; }
.source-continue { align-self: stretch; }
.source-card .source-error { margin: 0; }
.source-plan-option { padding: 16px; border-radius: 10px; background: #f6f8f4; }
.source-plan-option h3 { font-size: 15px; margin: 0 0 6px; }
.source-plan-option p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0 0 14px; }
.source-plan-option .btn { width: 100%; }
.source-help { font-size: 13px; color: var(--muted); }
.source-help summary { cursor: pointer; color: var(--green); font-weight: 600; padding: 4px 0; }
.source-help p { margin: 8px 0 0; }
.source-card :is(button, a, summary):focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
@media (max-width: 860px) {
  /* The account controls must wrap below the brand, not widen the page. */
  .app-header { height: auto; min-height: 72px; padding: 12px 0; }
  .app-header .wrap { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .app-header .app-controls { justify-content: flex-start; min-width: 0; }
  .app-header .demo-badge { white-space: normal; }
}
@media (max-width: 800px) {
  .source-cards { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .planting-start .wizard-single { max-width: 640px; }
}
@media (max-width: 480px) {
  .source-card { padding: 20px; }
  .source-heading { gap: 12px; padding-bottom: 18px; margin-bottom: 18px; }
  .source-heading h2 { font-size: 20px; }
  .source-art, .source-art img { width: 52px; height: 52px; }
  .source-art { flex-basis: 52px; }
}

/* draw area */
.draw-wrap {
  position: relative; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: #223; min-height: 150px;
  touch-action: none;
}
.draw-wrap img.draw-photo { width: 100%; display: block; pointer-events: none; }
.draw-wrap canvas.draw-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.shape-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 12px; font-family: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer; color: var(--ink);
}
.chip.selected { border-color: var(--green); background: #f2f8f1; color: var(--green); }
.draw-tools { display: flex; gap: 8px; align-items: center; }

/* dimensions */
.dim-block { border-top: 1px solid var(--soft); padding-top: 10px; }
.dim-block:first-child { border-top: 0; padding-top: 0; }
.dim-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.dim-row input[type="number"], .dim-row input[type="text"] {
  width: 64px; border: 1px solid var(--line); border-radius: 7px; padding: 8px;
  font-family: inherit; font-size: 13.5px;
}
.dim-row .unit { font-size: 12.5px; color: var(--muted); }
.area-box {
  background: #eef4ec; border-radius: 10px; padding: 10px 12px; margin-top: 10px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 600; color: var(--green);
}
.seg-row { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.seg-row input { flex: 1; min-width: 0; }
.mini-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 7px;
  font-family: inherit; font-size: 12px; font-weight: 600; padding: 6px 10px; cursor: pointer;
}
.mini-btn:hover { border-color: var(--green); color: var(--green); }

/* text inputs */
.studio-input, .studio-textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  font-family: inherit; font-size: 13.5px; resize: vertical;
}
.studio-input:focus, .studio-textarea:focus { outline: 2px solid #b9d4bc; border-color: var(--green); }
.studio-label { font-size: 12.5px; font-weight: 700; color: var(--ink); margin: 4px 0 2px; }

/* ---------- planting preferences ---------- */
.pref-group { margin-bottom: 4px; }
.pref-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pill-btn {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 13px; font-family: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer; color: var(--ink);
}
.pill-btn.selected { border-color: var(--green); background: var(--green); color: #fff; }
.swatches { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: 2px solid #ffffff; box-shadow: 0 0 0 1.5px #c3cec2;
}
.swatch.selected { box-shadow: 0 0 0 2.5px var(--green); }

/* ---------- render step ---------- */
.render-step { align-items: center; text-align: center; }
.ring-wrap { position: relative; width: 120px; height: 120px; margin: 4px auto; }
.ring-wrap svg { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #e7ece7; stroke-width: 11; }
.ring-fg {
  fill: none; stroke: var(--green2); stroke-width: 11; stroke-linecap: round;
  transition: stroke-dashoffset .4s ease;
}
.ring-pct {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
}
.check-list { list-style: none; padding: 0; margin: 6px 0 0; text-align: left; width: 100%;
  display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.check-list li { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.check-list li.done { color: var(--ink); font-weight: 600; }
.check-list .ck {
  flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid #c3cec2; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fff; background: #fff;
}
.check-list li.done .ck { background: var(--green); border-color: var(--green); }
.check-list .soon-inline { font-size: 11px; color: var(--muted); font-weight: 700; }
.render-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 6px; }

.wizard-error {
  background: #fdecea; color: var(--danger); border: 1px solid #f3c1ba;
  border-radius: 10px; padding: 12px 16px; font-size: 14px; margin: 14px 0;
}
.wizard-error[hidden] { display: none; }
.credits-note {
  background: #fff8e8; border: 1px solid #e8d9ac; border-radius: 10px;
  padding: 12px 14px; font-size: 13.5px; margin-top: 8px;
}
.step-flash { animation: flash 1.1s ease; }
@keyframes flash {
  0%, 100% { box-shadow: 0 4px 14px #1431220d; }
  30% { box-shadow: 0 0 0 3px #e2574c66; }
}

/* ---------- design package ---------- */
#designPackage { margin-top: 44px; scroll-margin-top: 100px; }
#designPackage > h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; margin-bottom: 4px; }
.package-tagline { color: var(--muted); font-style: italic; font-size: 16px; margin-bottom: 20px; }
.pkg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.pkg-grid.cols-3 { grid-template-columns: 1fr 1.2fr 1fr; }
.pkg-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; box-shadow: 0 4px 14px #1431220d;
}
.pkg-card > h3 { font-size: 17px; margin: 0 0 2px; display: flex; align-items: center; gap: 8px; }
.pkg-card > .pkg-sub { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.pkg-card.full { grid-column: 1 / -1; }

.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ba-cell { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.ba-cell img { width: 100%; height: auto; display: block; aspect-ratio: auto; object-fit: contain; }
.ba-cell .ba-tag { position: absolute; top: 10px; left: 10px; }

.cad-frame { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.cad-frame svg { width: 100%; height: auto; display: block; }
.north-badge {
  position: absolute; top: 10px; right: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 4px 9px; font-size: 12px; font-weight: 800; color: var(--ink);
  box-shadow: 0 2px 8px #14312218;
}
.plan-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.plan-actions { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- plan sheet: drawing + legend panel (reference style) ---------- */
.plan-sheet { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: start; }
.plan-orientation {
  text-align: center; font-size: 11.5px; letter-spacing: .14em; font-weight: 800;
  color: var(--muted); margin-top: 8px;
}
.sheet-title { font-family: Georgia, 'Times New Roman', serif; font-size: 34px; font-weight: 700; letter-spacing: .01em; margin: 2px 0 0; color: #1c2b22; }
.sheet-sub { font-family: Georgia, 'Times New Roman', serif; font-size: 20px; color: var(--muted); margin: 4px 0 10px; }
.legend-row { display: flex; align-items: center; gap: 12px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.legend-thumb { flex: 0 0 auto; }
.legend-thumb img { width: 64px; height: 64px; object-fit: contain; display: block; }
.legend-text { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.legend-badge {
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 1.5px solid #1c2b22; color: #1c2b22;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; box-shadow: 0 1px 4px #14312222; flex: 0 0 auto;
}
.legend-name { font-weight: 700; font-size: 14.5px; color: #1c2b22; }
.legend-sep { color: var(--muted); font-size: 14px; }
.legend-qty { font-size: 14px; color: var(--muted); }
.sheet-notes { margin: 18px 0 0; padding-left: 18px; font-size: 15px; color: #3d4a41; }
.sheet-notes li { margin-bottom: 6px; }
.sheet-foot { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 16px; }
@media (max-width: 1020px) { .plan-sheet { grid-template-columns: 1fr; } }

table.pkg-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.pkg-table th, table.pkg-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.pkg-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--soft); }
table.pkg-table tr.row-note td { border-bottom: 1px solid var(--line); padding-top: 0; font-size: 12px; font-style: italic; color: var(--muted); }
.code-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff;
  font-size: 12px; font-weight: 800;
}
.code-symbol { display: inline-flex; align-items: center; }
.code-symbol svg { display: block; width: 40px; height: 40px; }
.legend-table td:first-child { text-align: center; width: 52px; }

.spec-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; margin: 0 0 14px; }
.spec-dl dt { font-weight: 700; color: var(--muted); }
.spec-dl dd { margin: 0; }
.spec-notes { margin: 0 0 14px; padding-left: 18px; font-size: 13.5px; color: #3d4a41; }
.spec-notes li { margin-bottom: 4px; }
.summary-box {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font-size: 13.5px; background: #fbfdfb; margin-bottom: 10px; min-height: 64px;
}
.summary-box[contenteditable="true"] { background: #fff; outline: 2px solid #b9d4bc; }

.season-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.season-tile {
  border: 1.5px dashed #c3cec2; border-radius: 12px; padding: 18px 8px; text-align: center;
  color: var(--muted); font-size: 13px; font-weight: 700; background: #fbfdfb;
}
.season-tile small { display: block; font-weight: 600; font-size: 11px; margin-top: 4px; }

.notice-soon {
  background: #f4f7f2; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px; font-size: 14px; color: #3d4a41;
}
.notice-soon strong { color: var(--green); }

/* ---------- responsive ---------- */
@media (min-width: 641px) {
  .tile-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1020px) {
  .picker-grid { grid-template-columns: repeat(2, 1fr); }
  .pkg-grid, .pkg-grid.cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .picker-grid { grid-template-columns: 1fr; }
  .ba-pair { grid-template-columns: 1fr; }
  .wizard-head .btn { width: 100%; }
  .wizard-nav .btn { flex: 1; }
  .season-row { grid-template-columns: repeat(2, 1fr); }
  .step-card { padding: 20px 16px; }
}

/* ---------- hardscape materials step ---------- */
.mat-tabs { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.mat-tabs.scroll-x { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.mat-tabs.scroll-x::-webkit-scrollbar { display: none; }
.mat-tabs.scroll-x .pill-btn { flex: none; }
/* compact: collapsed ZIP row (tap to edit) */
.zip-collapsed {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px;
  background: #fff; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
/* compact: build-your-own expander */
.mat-expander {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  border: none; background: none; font-family: inherit; cursor: pointer;
  margin: 18px 0 4px; padding: 6px 2px; font-size: 13px; font-weight: 700; color: var(--green);
}
.mat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 4px; }
.mat-card { text-align: left; background: #fff; border: 2px solid #e5e7eb; border-radius: 12px; padding: 14px; cursor: pointer; display: block; width: 100%; font: inherit; color: inherit; }
.mat-card:hover { border-color: #9ca3af; }
.mat-card.selected { border-color: var(--green); box-shadow: 0 0 0 2px rgba(46, 110, 63, .18); }
.mat-card-name { font-weight: 700; display: block; margin-bottom: 6px; font-size: 15px; }
.mat-top { display: flex; gap: 10px; align-items: flex-start; }
.mat-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
.mat-top-text { flex: 1; min-width: 0; }
.mat-top-text .mat-dl { margin-bottom: 0; }
.mat-caret { color: #9ca3af; font-size: 14px; flex: none; margin-top: 2px; }
.mat-more { display: block; margin-top: 10px; border-top: 1px solid #e5e7eb; padding-top: 10px; }
.mat-more-img { display: block; width: 100%; height: 170px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.mat-section-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; margin: 16px 0 8px; }
.mat-section-label:first-child { margin-top: 4px; }
.mat-prod { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fff; border: 2px solid #e5e7eb; border-radius: 12px; padding: 12px 14px; cursor: pointer; font: inherit; color: inherit; margin-bottom: 8px; }
.mat-prod:hover { border-color: #9ca3af; }
.mat-prod-name { font-weight: 600; flex: 1; }
.mat-prod-type { font-size: 12px; color: #6b7280; }
.mat-prod-name-lg { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.link-btn { background: none; border: none; color: var(--green); font: inherit; font-weight: 600; cursor: pointer; padding: 4px 0; margin-bottom: 6px; }
.mat-saved-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 8px; }
.mat-saved-load { flex: 1; text-align: left; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; cursor: pointer; font: inherit; color: inherit; }
.mat-saved-load:hover { border-color: #9ca3af; }
.mat-saved-name { display: block; font-weight: 600; }
.mat-saved-sub { display: block; font-size: 12px; color: #6b7280; margin-top: 2px; }
.mat-saved-del { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; width: 42px; cursor: pointer; color: #9ca3af; font-size: 14px; flex: none; }
.mat-save-row { display: flex; gap: 8px; }
.mat-save-row .studio-input { flex: 1; min-width: 0; }
.mat-save-row .pill-btn { flex: none; }
.mat-tags { display: block; margin-bottom: 8px; }
.tag { display: inline-block; background: #f0fdf4; color: #166534; border-radius: 999px; padding: 2px 10px; font-size: 12px; margin: 0 6px 4px 0; }
.mat-dl { margin: 0 0 8px; font-size: 13px; }
.mat-dl > div { display: flex; gap: 8px; margin-bottom: 4px; }
.mat-dl dt { font-weight: 600; color: #6b7280; min-width: 70px; flex-shrink: 0; }
.mat-dl dd { margin: 0; }
.mat-desc { font-size: 13px; color: #4b5563; margin: 0; }
.mat-form .studio-input, .mat-form .studio-textarea { margin-bottom: 10px; }
.mat-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0 12px; color: #6b7280; font-size: 13px; }
.mat-divider::before, .mat-divider::after { content: ''; flex: 1; border-top: 1px solid #e5e7eb; }
.zip-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.zip-row .studio-input { max-width: 140px; margin-bottom: 0; }
.region-badge { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.wa-ca-toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.eng-notice { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px; padding: 10px 12px; font-size: 13px; color: #92400e; margin: 8px 0; }
.soon-banner { background: #f9fafb; border: 1px dashed #d1d5db; border-radius: 12px; padding: 18px; color: #4b5563; font-size: 14px; }
.error-msg { color: #b91c1c; font-size: 14px; }


