/* Curtain Guides Studio — a friendly, tactile theme: plaster walls, clay, sage, butter and sky,
   rounded everything, and fabric swatches cut with pinking shears. */
:root {
  --bg: #fbf6ef; --bg-2: #f3eadf; --surface: #ffffff; --ink: #2b2530; --ink-2: #4b4350; --muted: #7a6f78; --line: #eadfd2;
  --clay: #d9694a; --clay-soft: #f7dbcf; --sage: #6f8f66; --sage-soft: #dfe9d8; --butter: #e9b949; --butter-soft: #fbefc6;
  --sky: #5f8fbd; --sky-soft: #dce9f4; --plum: #6b4e71; --plum-soft: #eadcec;
  --on-accent: #ffffff; --shadow: 0 18px 40px -22px rgba(80, 50, 30, .35); --shadow-sm: 0 6px 16px -8px rgba(80, 50, 30, .3);
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --accent-serif: "Instrument Serif", Georgia, serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --r: 22px; --r-sm: 14px; --gutter: clamp(16px, 4vw, 40px); --max: 80rem; --top: 66px;
  --ease: cubic-bezier(.2, .8, .2, 1); color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b171d; --bg-2: #231e26; --surface: #2a2430; --ink: #f4ede6; --ink-2: #d9cfd6; --muted: #b0a4ae; --line: #3a333f;
    --clay: #f08a6c; --clay-soft: #4a2c24; --sage: #a8c29e; --sage-soft: #2e3a2b; --butter: #f2d27a; --butter-soft: #463a1d;
    --sky: #9cc2e6; --sky-soft: #23344a; --plum: #d4b2da; --plum-soft: #3c2d40; --on-accent: #1b171d;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, .7); --shadow-sm: 0 6px 16px -8px rgba(0, 0, 0, .6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b171d; --bg-2: #231e26; --surface: #2a2430; --ink: #f4ede6; --ink-2: #d9cfd6; --muted: #b0a4ae; --line: #3a333f;
  --clay: #f08a6c; --clay-soft: #4a2c24; --sage: #a8c29e; --sage-soft: #2e3a2b; --butter: #f2d27a; --butter-soft: #463a1d;
  --sky: #9cc2e6; --sky-soft: #23344a; --plum: #d4b2da; --plum-soft: #3c2d40; --on-accent: #1b171d;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .7); --shadow-sm: 0 6px 16px -8px rgba(0, 0, 0, .6); color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px); overflow-x: clip; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--accent-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--clay); margin: 0 0 14px; }
.h2 { font: 700 clamp(32px, 4.6vw, 56px)/1.02 var(--display); letter-spacing: -.03em; margin: 0 0 14px; }
.h3 { font: 700 22px/1.2 var(--display); letter-spacing: -.01em; margin: 0 0 6px; }
.sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 38rem; margin: 0 0 26px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: var(--bg-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: var(--bg); font: 700 15px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--clay { background: var(--clay); border-color: var(--clay); color: var(--on-accent); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font: 600 13px/1 var(--body); background: var(--surface); border: 1.5px solid var(--line); }

/* Pinking-shear edges: zigzag top and bottom, like a cut fabric swatch. */
.pinked { --z: 12px;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--z) 51% repeat-x,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--z) 51% repeat-x;
          mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--z) 51% repeat-x,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--z) 51% repeat-x; }

/* ── Top bar ───────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 50; height: var(--top); display: flex; align-items: center; gap: 14px; padding: 0 var(--gutter); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 21px/1 var(--display); letter-spacing: -.03em; white-space: nowrap; }
.logo svg { width: 32px; height: 32px; flex: none; }
.logo small { font: 400 20px/1 var(--accent-serif); font-style: italic; color: var(--clay); letter-spacing: 0; }
.menu { display: flex; gap: 4px; margin-left: 12px; }
.menu a { padding: 9px 12px; border-radius: 999px; font: 600 14px/1 var(--body); text-decoration: none; color: var(--ink-2); }
.menu a:hover { background: var(--bg-2); color: var(--ink); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--body); cursor: pointer; padding: 6px 6px 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); white-space: nowrap; }
.switch input { appearance: none; width: 36px; height: 22px; border-radius: 999px; background: var(--line); position: relative; margin: 0; cursor: pointer; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--sage); }
.switch input:checked::after { transform: translateX(14px); }
.board-btn { position: relative; }
.board-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--clay); color: var(--on-accent); font: 800 12px/1 var(--body); }
.round { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; flex: none; }
.round svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1020px) { .menu { display: none; } }
.switch .short { display: none; }
@media (max-width: 560px) { .switch .long { display: none; } .switch .short { display: inline; } .switch { padding: 6px 6px 6px 10px; } .logo small { display: none; } .board-btn .lbl { display: none; } }

/* ── Hero ─────────────────────────────────────── */
.hero { position: relative; padding: clamp(40px, 7vw, 90px) 0 clamp(48px, 7vw, 90px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font: 800 clamp(48px, 7.4vw, 104px)/.92 var(--display); letter-spacing: -.045em; margin: 0 0 22px; }
.hero h1 .serif { color: var(--clay); font-size: 1.08em; display: inline-block; transform: translateY(.04em); }
.mark { background: linear-gradient(transparent 62%, var(--butter-soft) 62% 92%, transparent 92%); padding: 0 .06em; }
.hero-sub { font-size: clamp(18px, 1.8vw, 21px); color: var(--ink-2); max-width: 32rem; margin: 0 0 28px; }
.who { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.who button { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font: 600 15px/1.2 var(--body); cursor: pointer; transition: border-color .2s, transform .2s var(--ease); text-align: left; }
.who button:hover { border-color: var(--ink); transform: translateY(-2px); }
.who .emo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 17px; }
.who small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.stage { position: relative; aspect-ratio: 1 / 1.02; }
.stage-photo { position: absolute; inset: 8% 12% 10% 10%; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.stage-photo img { width: 100%; height: 100%; object-fit: cover; }
.swatch { position: absolute; width: 27%; aspect-ratio: 1; box-shadow: var(--shadow-sm); animation: bob 7s ease-in-out infinite; }
.swatch img { width: 100%; height: 100%; object-fit: cover; }
.swatch figcaption { position: absolute; left: 8px; bottom: 16px; font: 700 11px/1 var(--body); background: var(--surface); color: var(--ink); padding: 5px 8px; border-radius: 999px; }
.swatch:nth-of-type(1) { left: 0; top: 2%; rotate: -8deg; }
.swatch:nth-of-type(2) { right: 0; top: 0; rotate: 7deg; animation-delay: -2s; }
.swatch:nth-of-type(3) { left: -3%; bottom: 14%; rotate: 5deg; animation-delay: -4s; }
.swatch:nth-of-type(4) { right: 2%; bottom: 2%; rotate: -6deg; animation-delay: -1s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.sticker { position: absolute; z-index: 3; display: grid; place-items: center; text-align: center; width: 116px; height: 116px; border-radius: 50%; background: var(--butter); color: #2b2530; font: 800 15px/1.05 var(--display); rotate: -12deg; box-shadow: var(--shadow-sm); padding: 12px; }
.sticker b { display: block; font-size: 34px; letter-spacing: -.03em; }
.stage .sticker { left: 34%; bottom: -2%; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .stage { max-width: 520px; width: 100%; margin: 0 auto; } }
.ticker { overflow: hidden; border-block: 1.5px solid var(--line); background: var(--surface); }
.ticker-track { display: flex; gap: 36px; width: max-content; padding: 14px 0; animation: tick 38s linear infinite; font: 700 18px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.ticker-track span::before { content: "✺"; color: var(--clay); margin-right: 36px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ── Vibe check ───────────────────────────────── */
.quiz { background: var(--surface); border-radius: 32px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 44px); border: 1.5px solid var(--line); }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 28px; height: 6px; border-radius: 999px; background: var(--line); transition: background .3s; }
.dots i.on { background: var(--clay); }
.q { display: none; }
.q.is-active { display: block; animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.q h3 { font: 800 clamp(26px, 3.2vw, 38px)/1.08 var(--display); letter-spacing: -.02em; margin: 0 0 18px; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.choice { position: relative; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 16px; border-radius: var(--r); border: 2px solid var(--line); background: var(--bg); cursor: pointer; text-align: left; transition: border-color .2s, transform .2s var(--ease), background .2s; }
.choice:hover { transform: translateY(-3px); border-color: var(--ink-2); }
.choice[aria-pressed="true"] { border-color: var(--clay); background: var(--clay-soft); }
.choice .emo { font-size: 26px; line-height: 1; }
.choice b { font: 700 17px/1.2 var(--display); }
.choice small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.choices--img .choice { padding: 0; overflow: hidden; }
.choices--img .choice img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.choices--img .choice span { padding: 12px 14px 14px; display: grid; gap: 3px; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 10px; }
.link-btn { background: none; border: 0; padding: 8px 4px; font-weight: 600; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.result { display: none; }
.result.is-active { display: block; animation: rise .5s var(--ease); }
.result-head { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-bottom: 22px; }
.result-badge { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-size: 40px; background: var(--butter-soft); rotate: -8deg; }
.result-title { font: 800 clamp(30px, 4vw, 46px)/1 var(--display); letter-spacing: -.03em; margin: 4px 0 6px; }
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pick { background: var(--bg); border-radius: var(--r); overflow: hidden; border: 1.5px solid var(--line); display: flex; flex-direction: column; }
.pick img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pick-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pick-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fit { font: 800 13px/1 var(--body); background: var(--sage-soft); color: var(--ink); padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.why { display: flex; flex-wrap: wrap; gap: 6px; }
.why span { font: 600 12px/1 var(--body); padding: 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.pick-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.fine { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
@media (max-width: 760px) { .picks { grid-template-columns: 1fr; } }

/* ── Room wall ────────────────────────────────── */
.filters { position: sticky; top: var(--top); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 12px 0; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.filter-rows { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.fgroup { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.fgroup::-webkit-scrollbar { display: none; }
.fgroup > span { font: 700 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 2px; white-space: nowrap; }
.chip { padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font: 600 13px/1 var(--body); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tone { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; flex: none; }
.tone[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--ink); }
.sort { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sort select { appearance: none; padding: 9px 34px 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%237a6f78' stroke-width='2' fill='none'/></svg>") no-repeat right 12px center; font: 600 14px/1 var(--body); cursor: pointer; }
.count { font: 600 14px/1 var(--body); color: var(--muted); white-space: nowrap; }
.wall { columns: 4 250px; column-gap: 16px; }
.tile { break-inside: avoid; margin: 0 0 16px; position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), opacity .3s; }
.tile[hidden] { display: none; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.tile img { width: 100%; height: auto; object-fit: cover; }
.tile:nth-child(3n+1) img { aspect-ratio: 4 / 5; } .tile:nth-child(3n+2) img { aspect-ratio: 1 / 1; } .tile:nth-child(3n) img { aspect-ratio: 3 / 4; }
.tile-cap { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; pointer-events: none; }
.tile-name { background: var(--surface); color: var(--ink); padding: 7px 10px; border-radius: 12px; font: 700 13px/1.2 var(--body); box-shadow: var(--shadow-sm); }
.tile-name small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.spec-strip { display: none; }
body.designer .spec-strip { display: flex; position: absolute; left: 10px; top: 10px; right: 56px; flex-wrap: wrap; gap: 4px; pointer-events: none; }
.spec-strip span { font: 700 11px/1 var(--body); background: rgba(27, 23, 29, .78); color: #fff; padding: 5px 7px; border-radius: 8px; }
.heart { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.heart:hover { transform: scale(1.08); }
.heart svg { width: 20px; height: 20px; fill: none; stroke: var(--clay); stroke-width: 2; }
.heart[aria-pressed="true"] svg { fill: var(--clay); }
.heart.pop { animation: pop .4s var(--ease); }
@keyframes pop { 50% { transform: scale(1.3); } }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); display: none; }
.empty.is-on { display: block; }

/* ── Lightbox + board drawer ──────────────────── */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); }
dialog::backdrop { background: rgba(27, 23, 29, .55); backdrop-filter: blur(4px); }
.lb { width: min(1080px, calc(100vw - 24px)); max-height: calc(100svh - 24px); border-radius: 28px; overflow: auto; }
.lb-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.lb-img { background: var(--bg-2); }
.lb-img img { width: 100%; height: 100%; max-height: calc(100svh - 24px); object-fit: cover; }
.lb-body { padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 12px; }
.lb-body h3 { font: 800 32px/1.05 var(--display); letter-spacing: -.02em; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 6px 10px; border-radius: 999px; font: 700 12px/1 var(--body); }
.tag--butter { background: var(--butter-soft); } .tag--clay { background: var(--clay-soft); } .tag--sage { background: var(--sage-soft); } .tag--sky { background: var(--sky-soft); } .tag--plum { background: var(--plum-soft); } .tag--line { border: 1.5px solid var(--line); }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0; }
.spec { background: var(--bg); border-radius: var(--r-sm); padding: 10px 12px; }
.spec b { display: block; font: 800 18px/1.1 var(--display); }
.spec span { font-size: 12px; color: var(--muted); }
.lb-close, .lb-nav { position: absolute; z-index: 2; }
.lb-close { top: 12px; right: 12px; }
.lb-nav { top: 50%; translate: 0 -50%; }
.lb-prev { left: 12px; } .lb-next { left: calc(53.5% - 52px); }
@media (max-width: 800px) { .lb-grid { grid-template-columns: 1fr; } .lb-img img { max-height: 52svh; } .lb-next { left: auto; right: 12px; top: 26svh; } .lb-prev { top: 26svh; } }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0 0 0 auto; height: 100svh; max-height: none; width: min(460px, 100vw); border-radius: 28px 0 0 28px; flex-direction: column; }
.drawer[open] { display: flex; animation: slide .35s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { padding: 22px 22px 12px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.drawer-list { list-style: none; margin: 0; padding: 14px 22px; overflow: auto; flex: 1; display: grid; gap: 12px; align-content: start; }
.drawer-list li { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; }
.drawer-list img { width: 76px; height: 76px; object-fit: cover; border-radius: 14px; }
.drawer-list b { font: 700 15px/1.2 var(--display); display: block; }
.drawer-list small { color: var(--muted); font-size: 12px; }
.drawer-foot { padding: 16px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer-foot .row { display: flex; gap: 8px; flex-wrap: wrap; }
.drawer-empty { color: var(--muted); padding: 30px 0; text-align: center; }

/* ── Hang it right ─────────────────────────────── */
.hang { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 48px); align-items: start; }
.hang-canvas { background: var(--surface); border-radius: 28px; padding: 14px; box-shadow: var(--shadow); border: 1.5px solid var(--line); position: sticky; top: calc(var(--top) + 20px); }
.hang-canvas svg { width: 100%; height: auto; display: block; border-radius: 18px; }
.readout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.readout div { background: var(--bg); border-radius: var(--r-sm); padding: 10px 14px; }
.readout b { font: 800 24px/1.1 var(--display); display: block; }
.readout span { font-size: 12px; color: var(--muted); }
.ctrl { margin-bottom: 18px; }
.ctrl > span { display: block; font: 700 13px/1.2 var(--body); margin-bottom: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.tip { background: var(--butter-soft); border-radius: var(--r); padding: 16px 18px; font-size: 15px; line-height: 1.5; }
.tip b { display: block; font: 800 13px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 900px) { .hang { grid-template-columns: 1fr; } .hang-canvas { position: static; } }

/* ── Starter kit ──────────────────────────────── */
.kit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kit-card { background: var(--surface); border-radius: 26px; padding: 24px; border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.kit-no { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 18px/1 var(--display); }
.field { display: grid; gap: 4px; }
.field label { font: 600 13px/1.2 var(--body); color: var(--ink-2); }
.field input, .field select { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); font: 600 16px/1 var(--body); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-out { background: var(--sage-soft); border-radius: var(--r-sm); padding: 14px 16px; font-size: 15px; }
.calc-out b { font: 800 26px/1 var(--display); }
.swatch-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.swatch-list a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); text-decoration: none; font-weight: 600; font-size: 14px; }
.swatch-list a:hover { background: var(--clay-soft); }
.swatch-list b { font: 800 15px/1 var(--display); white-space: nowrap; }
.lining { display: grid; gap: 8px; }
.lining div { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: var(--bg); }
.lining i { display: block; width: 54px; height: 54px; border-radius: 10px; border: 1px solid var(--line); }
.lining b { font: 700 15px/1.2 var(--display); display: block; }
.lining small { color: var(--muted); font-size: 13px; line-height: 1.35; display: block; }
@media (max-width: 960px) { .kit { grid-template-columns: 1fr; } }

/* ── Designer table ───────────────────────────── */
.designer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.tbl-wrap { overflow-x: auto; background: var(--surface); border-radius: 22px; border: 1.5px solid var(--line); }
table.spec-tbl { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 14px; }
.spec-tbl th, .spec-tbl td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.spec-tbl th { position: sticky; top: 0; background: var(--surface); }
.spec-tbl th button { background: none; border: 0; padding: 0; font: 700 12px/1 var(--body); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); cursor: pointer; display: inline-flex; gap: 4px; }
.spec-tbl th[aria-sort] button { color: var(--ink); }
.spec-tbl th[aria-sort="ascending"] button::after { content: "↑"; } .spec-tbl th[aria-sort="descending"] button::after { content: "↓"; }
.spec-tbl td:first-child { font: 700 15px/1.2 var(--display); }
.spec-tbl .n { text-align: right; font-variant-numeric: tabular-nums; }
.spec-tbl tbody tr:hover { background: var(--bg); }
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 20px; opacity: 0; z-index: 300; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; transition: opacity .25s, translate .25s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ── Footer ───────────────────────────────────── */
.foot { background: var(--ink); color: var(--bg); padding: 56px 0 64px; }
.foot a { color: inherit; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; font-size: 14px; }
.foot-grid p { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.foot h4 { font: 700 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot .logo { color: var(--bg); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
