/* Imaginer Furniture — design system
   Fonts: Playfair Display (display) · Inter Tight (body) · Alata (uppercase micro-labels)
   Accent: #465849. Active highlight: #4658491a + 0 0 0 6px halo. */
@import url('https://fonts.googleapis.com/css2?family=Alata&family=Inter+Tight:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  /* ── palette ── */
  --ag-green: #465849;
  --ag-green-2: #4b544c;
  --ag-green-muted: #657068;
  --ag-dark-green: #242b26;
  --ag-dark-green-2: #1e2520;
  --ag-pale-green: #dbe2dd;
  --ag-green-halo: #4658491a;

  --ag-black: #1d1d1b;
  --ag-ink: #1f1f1f;
  --ag-ink-2: #282828;
  --ag-ink-3: #323232;
  --ag-grey: #858585;
  --ag-grey-2: #9d9d9d;
  --ag-line: #e2e2e2;
  --ag-line-soft: #e6e6e6;
  --ag-line-hair: #3a3a3a1a;
  --ag-white-1: #f0f0f0;
  --ag-white-2: #f3f3f3;
  --ag-white-3: #f6f6f6;
  --ag-white-4: #f7f7f7;
  --ag-white-5: #f9f9f9;
  --ag-white-6: #fbfbfb;
  --ag-paper: #fbfbfb;

  --ag-gold: #a48453;
  --ag-navy: #1e3a5f;
  --ag-over: #433e38;

  --ag-error: #9b1313;
  --ag-error-bg: #f8e4e4;
  --ag-success: #17660f;
  --ag-success-bg: #cef5ca;
  --ag-warn: #5e5515;
  --ag-warn-bg: #fcf8d8;
  --ag-focus: #4d65ff;

  /* ── geometry / motion ── */
  --ag-r-sm: .25rem;
  --ag-r-md: .5rem;
  --ag-r-lg: 1rem;
  --ag-fast: all .25s ease-in-out;
  --ag-normal: all .4s ease-in-out;

  /* ── type ── */
  --ag-display: "Playfair Display", Georgia, serif;
  --ag-body: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ag-micro: "Alata", sans-serif;
  --ag-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --h-section: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
}

* { box-sizing: border-box; }
html { font-size: calc(0.8125rem + 0.2083vw); }
@media (max-width: 1440px) { html { font-size: 1rem; } }
html, body { margin: 0; padding: 0; }

body {
  background: var(--ag-paper);
  color: var(--ag-ink);
  font-family: var(--ag-body);
  font-size: .9375rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; font-weight: 400; }
*[tabindex]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: .125rem solid var(--ag-focus); outline-offset: .125rem;
}

/* ── micro-label ──────────────────────────────────────── */
.label, .field-label, .badge, .nav-link, .chip, .ag-dims-h, .card-sub, .section-label {
  font-family: var(--ag-micro);
  text-transform: uppercase;
  letter-spacing: .9px;
  font-weight: 400;
}

/* ── nav ───────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 22px;
  height: 64px; padding: 0 26px;
  background: rgba(251,251,251,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ag-line);
}
.nav-brand { display: flex; align-items: center; gap: 11px; }
.nav-logo {
  width: 32px; height: 32px; border-radius: var(--ag-r-md); display: grid; place-items: center;
  background: var(--ag-green); color: #fff;
  font-family: var(--ag-display); font-size: 15px; font-weight: 500; letter-spacing: 0;
}
.nav-brand-text { font-family: var(--ag-display); font-size: 17px; letter-spacing: .2px; }
.nav-links { display: flex; gap: 2px; margin-left: 10px; }
.nav-link {
  padding: 8px 13px; border-radius: var(--ag-r-sm); font-size: 11px;
  color: var(--ag-grey); transition: var(--ag-fast);
}
.nav-link:hover { color: var(--ag-green); background: var(--ag-white-2); }
.nav-link.active { color: var(--ag-green); background: var(--ag-green-halo); }
.nav-spacer { flex: 1; }
.nav-toggle { display: none; background: none; border: 1px solid var(--ag-line); border-radius: var(--ag-r-sm); padding: 7px 11px; cursor: pointer; color: var(--ag-grey); }

/* ── layout ────────────────────────────────────────────── */
.wrap { max-width: 1400px; margin: 0 auto; padding: 26px; }
.grid-3 { display: grid; grid-template-columns: 340px 1fr 320px; gap: 20px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; align-items: center; gap: 8px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.spacer { flex: 1; }

/* ── card ──────────────────────────────────────────────── */
.card {
  background: #fff; border: 1px solid var(--ag-line);
  border-radius: var(--ag-r-lg); overflow: hidden;
  transition: var(--ag-fast);
}
.card-head {
  padding: 14px 18px; border-bottom: 1px solid var(--ag-line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card-title { font-family: var(--ag-micro); text-transform: uppercase; letter-spacing: .9px; font-size: 11px; color: var(--ag-ink); }
.card-sub { font-size: 9.5px; color: var(--ag-grey-2); margin-top: 3px; letter-spacing: .7px; }
.card-body { padding: 18px; }
.card-foot { padding: 14px 18px; border-top: 1px solid var(--ag-line); background: var(--ag-white-6); }

/* ── type ──────────────────────────────────────────────── */
.h1 { font-family: var(--ag-display); font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 18px; color: var(--ag-ink); }
.h2 { font-family: var(--ag-display); font-size: var(--h-section); line-height: 1.2; margin: 0; color: var(--ag-ink); }
.h3 { font-family: var(--ag-display); font-size: 1.125rem; margin: 0 0 6px; color: var(--ag-ink); }
.lead { font-size: 1.0625rem; color: var(--ag-grey); margin: 0 0 30px; max-width: 46ch; }
.label { font-size: 9.5px; color: var(--ag-grey-2); display: block; margin-bottom: 9px; }
.muted { color: var(--ag-grey-2); }
.dim { color: var(--ag-grey); }
.xs { font-size: 11px; }
.sm { font-size: 12.5px; }
.mono { font-family: var(--ag-mono); font-size: 11px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 18px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 18px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; border-radius: var(--ag-r-sm); border: 1px solid transparent;
  font-family: var(--ag-micro); font-size: 11px; text-transform: uppercase; letter-spacing: .9px;
  cursor: pointer; white-space: nowrap; transition: var(--ag-fast);
}
.btn-primary { background: var(--ag-green); color: #fff; }
.btn-primary:hover { background: #3b4a3e; }
.btn-ghost { background: transparent; border-color: var(--ag-line); color: var(--ag-ink-2); }
.btn-ghost:hover { background: var(--ag-white-2); border-color: var(--ag-grey-2); }
.btn-danger { background: transparent; color: var(--ag-error); border-color: #e8c9c9; }
.btn-danger:hover { background: var(--ag-error-bg); }
.btn-sm { padding: 7px 12px; font-size: 10px; }
.btn-lg { padding: 14px 28px; font-size: 11.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.chip {
  padding: 8px 13px; border-radius: var(--ag-r-sm); font-size: 10px; cursor: pointer;
  background: #fff; border: 1px solid var(--ag-line); color: var(--ag-grey);
  transition: var(--ag-fast);
}
.chip:hover { border-color: var(--ag-green-muted); color: var(--ag-green); }
.chip.on { background: var(--ag-green); border-color: var(--ag-green); color: #fff; }

/* ── forms ─────────────────────────────────────────────── */
.input, .select, .textarea {
  width: 100%; padding: 10px 12px; background: #fff; color: var(--ag-ink);
  border: 1px solid var(--ag-line); border-radius: var(--ag-r-sm); font-size: 13px; outline: none;
  font-family: var(--ag-body); transition: var(--ag-fast);
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--ag-green); }
.textarea { resize: vertical; min-height: 84px; line-height: 1.55; }
.field { margin-bottom: 14px; }
.field-label { display: block; font-size: 9.5px; color: var(--ag-grey-2); margin-bottom: 7px; }
.check { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 12.5px; padding: 6px 0; color: var(--ag-ink-2); }
.check input { width: 15px; height: 15px; accent-color: var(--ag-green); }

/* ── upload ────────────────────────────────────────────── */
.drop {
  border: 1px dashed var(--ag-grey-2); border-radius: var(--ag-r-lg);
  padding: 30px 18px; text-align: center; cursor: pointer;
  background: var(--ag-white-6); transition: var(--ag-fast);
}
.drop:hover, .drop.over { border-color: var(--ag-green); background: var(--ag-green-halo); }
.drop-icon { color: var(--ag-green); margin-bottom: 10px; display: flex; justify-content: center; }
.drop-hint { font-size: 10.5px; color: var(--ag-grey-2); margin-top: 6px; font-family: var(--ag-micro); text-transform: uppercase; letter-spacing: .7px; }
.preview { border-radius: var(--ag-r-md); overflow: hidden; border: 1px solid var(--ag-line); background: var(--ag-white-5); }
.preview img { width: 100%; max-height: 250px; object-fit: contain; }
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; background: var(--ag-white-4); border-top: 1px solid var(--ag-line); }

/* ── badges ────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px;
  border-radius: 50px; font-size: .6rem; letter-spacing: .5px;
  background: var(--ag-white-1); color: var(--ag-grey);
}
.badge-ok { background: var(--ag-success-bg); color: var(--ag-success); }
.badge-err { background: var(--ag-error-bg); color: var(--ag-error); }
.badge-warn { background: var(--ag-warn-bg); color: var(--ag-warn); }
.badge-accent { background: var(--ag-green-halo); color: var(--ag-green); }
.badge-gold { background: var(--ag-gold); color: #fff; }
.badge-navy { background: var(--ag-navy); color: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ag-grey-2); flex-shrink: 0; }
.dot-ok { background: var(--ag-success); } .dot-err { background: var(--ag-error); }
.dot-warn { background: #b8a94a; } .dot-accent { background: var(--ag-green); }

.spin { width: 16px; height: 16px; border: 2px solid var(--ag-line); border-top-color: var(--ag-green); border-radius: 50%; animation: spin .7s linear infinite; }
.spin-lg { width: 34px; height: 34px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .5 } }

.bar { height: 3px; border-radius: 3px; background: var(--ag-line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ag-green); transition: width .4s ease; }

.empty { padding: 52px 22px; text-align: center; color: var(--ag-grey-2); }
.empty-icon { color: var(--ag-line); margin-bottom: 14px; display: flex; justify-content: center; }

/* ── stage ─────────────────────────────────────────────── */
.stage {
  min-height: 460px; display: grid; place-items: center; padding: 20px; position: relative;
  background: repeating-conic-gradient(var(--ag-white-3) 0 25%, var(--ag-white-5) 0 50%) 0 0/22px 22px;
  border-radius: var(--ag-r-md);
}
.stage img { max-height: 620px; border-radius: var(--ag-r-sm); box-shadow: 0 1px 3px rgba(29,29,27,.09), 0 12px 32px rgba(29,29,27,.07); }

/* ── gallery ───────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 18px; }
.tile { background: #fff; border: 1px solid var(--ag-line); border-radius: var(--ag-r-lg); overflow: hidden; transition: var(--ag-fast); }
.tile:hover { border-color: var(--ag-green-muted); box-shadow: 0 2px 6px rgba(29,29,27,.06), 0 16px 40px rgba(29,29,27,.07); }
.tile-media { aspect-ratio: 1; background: var(--ag-white-4); display: grid; place-items: center; overflow: hidden; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: var(--ag-normal); }
.tile:hover .tile-media img { transform: scale(1.03); }
.tile-body { padding: 14px; }

/* ── hero ──────────────────────────────────────────────── */
.hero { text-align: center; padding: 84px 22px 64px; border-bottom: 1px solid var(--ag-line); background: #fff; }
.hero .lead { margin-inline: auto; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border-radius: 50px; background: var(--ag-green-halo); color: var(--ag-green);
  font-family: var(--ag-micro); font-size: 9.5px; text-transform: uppercase; letter-spacing: .9px; margin-bottom: 26px;
}
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.foot { border-top: 1px solid var(--ag-line); padding: 30px 22px; text-align: center; color: var(--ag-grey-2); font-family: var(--ag-micro); font-size: 9.5px; text-transform: uppercase; letter-spacing: .9px; background: #fff; }

/* ── dimension rows ────────────────────────────────────── */
.ag-dims-h { font-size: 10px; color: var(--ag-grey-2); margin: 0 0 12px; }
.ag-dims-band { display: flex; flex-direction: column; gap: 2px; }
.ag-dims-row {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(180px, 1fr);
  column-gap: 18px; align-items: start;
  padding: 11px 13px; border-radius: var(--ag-r-sm); cursor: pointer;
  transition: var(--ag-fast); background: transparent;
}
.ag-dims-row:hover { background: var(--ag-white-3); }
.ag-dims-row[data-current="1"] { background: var(--ag-green-halo); box-shadow: 0 0 0 6px var(--ag-green-halo); }
.ag-dims-sz { font-family: var(--ag-body); font-size: 13.5px; color: var(--ag-ink); }
.ag-dims-val { display: flex; gap: 14px; align-items: baseline; }
.ag-dims-imp { font-family: var(--ag-body); font-size: 13px; color: var(--ag-ink-2); }
.ag-dims-met { font-size: 12px; color: var(--ag-grey-2); }
.ag-dim-selected-label {
  display: block; visibility: hidden; margin-top: 5px;
  font: italic 500 13px/1.35 var(--ag-body); color: var(--ag-green);
}
.ag-dims-row[data-current="1"] .ag-dim-selected-label { visibility: visible; }
.ag-dims-band--img { margin-top: 18px; }
.ag-dims-band--img img { border: 1px solid var(--ag-line); border-radius: var(--ag-r-md); background: #fff; }

/* ── validation rows ───────────────────────────────────── */
.vrow { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: var(--ag-r-sm); background: var(--ag-white-5); margin-bottom: 8px; border: 1px solid var(--ag-line-soft); }
.vrow-main { flex: 1; min-width: 0; }

/* ── toasts ────────────────────────────────────────────── */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 9px; }
.toast {
  padding: 13px 16px; border-radius: var(--ag-r-md); font-size: 12.5px; max-width: 370px;
  background: #fff; border: 1px solid var(--ag-line); color: var(--ag-ink-2);
  box-shadow: 0 2px 8px rgba(29,29,27,.09), 0 16px 40px rgba(29,29,27,.12);
  animation: slidein .25s ease-out; border-left: 3px solid var(--ag-green);
}
.toast.err { border-left-color: var(--ag-error); }
.toast.ok { border-left-color: var(--ag-green); }
@keyframes slidein { from { opacity: 0; transform: translateY(10px); } }

/* ── landing: workflow steps ───────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--ag-line); border: 1px solid var(--ag-line); border-radius: var(--ag-r-lg); overflow: hidden; }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 22px 20px; background: #fff; }
.step-n { font-family: var(--ag-display); font-size: 22px; line-height: 1; color: var(--ag-green); flex-shrink: 0; min-width: 32px; }
.step .h3 { font-size: 1rem; margin-bottom: 4px; }

/* ── landing: closing cta ──────────────────────────────── */
.cta { background: var(--ag-green); color: #fff; border-radius: var(--ag-r-lg); padding: 46px 34px; text-align: center; }
.cta .h2 { color: #fff; }
.cta .dim { color: rgba(255,255,255,.72); }
.cta .btn-primary { background: #fff; color: var(--ag-green); }
.cta .btn-primary:hover { background: var(--ag-pale-green); }

/* ── advanced disclosure ───────────────────────────────── */
.adv-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 14px 18px; cursor: pointer; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--ag-line);
}
.adv-toggle:hover { background: var(--ag-white-6); }
.adv-caret { transition: transform .2s ease; color: var(--ag-grey-2); }
.adv-toggle[aria-expanded="true"] .adv-caret { transform: rotate(90deg); }
.adv-panel[hidden] { display: none; }

/* ── comparison: reference beside result ───────────────── */
.cmp { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--ag-line); }
.cmp-cell { background: #fff; padding: 16px; min-width: 0; }
.cmp-h {
  font-family: var(--ag-micro); font-size: 9.5px; text-transform: uppercase;
  letter-spacing: .9px; color: var(--ag-grey-2); margin-bottom: 11px;
}
.cmp-img {
  width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--ag-r-sm);
  background: repeating-conic-gradient(var(--ag-white-3) 0 25%, var(--ag-white-5) 0 50%) 0 0/20px 20px;
}
.cmp-none { aspect-ratio: 1; display: grid; place-items: center; border-radius: var(--ag-r-sm); background: var(--ag-white-5); }
.cmp-spec { display: grid; gap: 7px; }
.cmp-row { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; }
.cmp-k { font-family: var(--ag-micro); font-size: 9px; text-transform: uppercase; letter-spacing: .7px; color: var(--ag-grey-2); min-width: 92px; flex-shrink: 0; }
.cmp-v { color: var(--ag-ink-2); min-width: 0; word-break: break-word; }
.pickbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pickrow { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.pick {
  width: 84px; height: 84px; flex-shrink: 0; padding: 0; cursor: pointer; overflow: hidden;
  border: 2px solid var(--ag-line); border-radius: var(--ag-r-md); background: var(--ag-white-4);
  transition: var(--ag-fast);
}
.pick img { width: 100%; height: 100%; object-fit: cover; }
.pick:hover { border-color: var(--ag-green-muted); }
.pick[aria-current="true"] { border-color: var(--ag-green); box-shadow: 0 0 0 3px var(--ag-green-halo); }

/* ── material / finish pickers ─────────────────────────── */
.drop-sm { padding: 16px 14px; }
.drop-sm .drop-icon { margin-bottom: 6px; }
.fin-card { display: flex; align-items: center; gap: 12px; padding: 11px 13px; background: var(--ag-white-5); border: 1px solid var(--ag-line-soft); border-radius: var(--ag-r-md); margin-bottom: 14px; }
.fin-detail:empty { display: none; }
.swatch-chip { width: 38px; height: 38px; border-radius: var(--ag-r-sm); flex-shrink: 0; border: 1px solid var(--ag-line-hair); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
#customMatBox, #customFinBox { border-left: 2px solid var(--ag-green-halo); padding-left: 13px; margin-left: 2px; margin-bottom: 6px; }

/* ── admin panel ───────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi-v { font-family: var(--ag-display); font-size: 28px; line-height: 1.1; color: var(--ag-ink); }

.chart { display: flex; align-items: flex-end; gap: 4px; height: 150px; }
.chart-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.chart-bar { width: 100%; background: var(--ag-green); border-radius: 3px 3px 0 0; min-height: 2px; transition: var(--ag-normal); }
.chart-col:hover .chart-bar { background: var(--ag-ink); }
.chart-x { font-family: var(--ag-micro); font-size: 8.5px; color: var(--ag-grey-2); margin-top: 6px; letter-spacing: .4px; }

.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--ag-line);
  font-family: var(--ag-micro); font-size: 9.5px; text-transform: uppercase; letter-spacing: .9px;
  color: var(--ag-grey-2); font-weight: 400; white-space: nowrap; background: var(--ag-white-6);
}
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--ag-line-soft); vertical-align: middle; }
.tbl tbody tr:hover { background: var(--ag-white-6); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.modelrow { padding: 10px 0; border-bottom: 1px solid var(--ag-line-soft); }
.modelrow:last-child { border-bottom: 0; }

.logbox {
  font-family: var(--ag-mono); font-size: 11px; line-height: 1.55; color: var(--ag-ink-2);
  background: var(--ag-white-5); border: 1px solid var(--ag-line); border-radius: var(--ag-r-sm);
  padding: 14px; max-height: 380px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 0;
}

/* ── responsive ────────────────────────────────────────── */
@media (max-width: 1180px) {
  .grid-3 { grid-template-columns: 320px 1fr; }
  .grid-3 > .col-right { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cmp { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--ag-line); padding: 12px;
  }
  .nav-toggle { display: block; }
  .wrap { padding: 18px; }
  .stage { min-height: 320px; }
  .hero { padding: 56px 18px 44px; }
  .ag-dims-row { grid-template-columns: 1fr; row-gap: 6px; }
  .cta { padding: 34px 20px; }
}
@media (max-width: 640px) {
  .ag-dim-selected-label { font-size: 12px; }
  .nav-brand-text { display: none; }
}
