/* Design Bank — styled on the stefanusable.com design system */
:root {
  --bg: #111310;          /* ink */
  --bg-2: #1c1e1a;
  --bg-3: #252821;
  --surface: #f4f5ec;     /* paper / cream */
  --surface-2: #e7e9dc;
  --accent: #c8ff00;      /* brand lime */
  --hot: #ff5a36;
  --muted: #8b8f84;
  --soft: #c9ccc0;
  --paper-ink: #45493f;
  --paper-muted: #55594f;
  --line: rgba(244,245,236,.14);
  --line-ink: rgba(17,19,16,.14);
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.645,0,0,1);
  --ease-out: cubic-bezier(.19,1,.22,1);
  --margin: clamp(16px, 4vw, 60px);
  --btn-h: clamp(2.7rem, 2.55rem + .3vw, 3.1rem);
  /* thumbnail tokens — driven by your brand colours in app.js */
  --c1: #C8361E; --c1d: #74200F; --c1l: #D9644F; --c2: #F4E3C3; --hc: #FFF8F0;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--surface); font-family: var(--font); font-size: 15px; line-height: 1.45; letter-spacing: -.01em; overflow-x: clip; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.display { font-weight: 700; letter-spacing: -.055em; line-height: .88; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── buttons & pills (from stefanusable.com) ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; height: var(--btn-h); padding: 0 1.4em; border-radius: 999px; background: var(--surface); color: var(--bg); font: 600 15px/1 var(--font); letter-spacing: -.03em; border: 0; white-space: nowrap; transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.btn:hover { background: var(--accent); color: var(--bg); }
.btn:active { transform: scale(.96); }
.btn--ghost { background: transparent; color: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { background: var(--surface); color: var(--bg); box-shadow: none; }
.btn-ink { background: var(--bg); color: var(--surface); }
.btn-ink:hover { background: var(--accent); color: var(--bg); }
.btn.sm { height: 2.3rem; padding: 0 1.1em; font-size: 13.5px; }
.pill { display: inline-block; background: var(--accent); color: var(--bg); font-weight: 600; font-size: .85rem; padding: .45em 1em; border-radius: 999px; letter-spacing: -.02em; }

/* ── header + hero ── */
.header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: clamp(14px, 2vw, 28px) var(--margin); }
.logo { font-weight: 700; letter-spacing: -.05em; font-size: clamp(1.3rem, 1.1rem + .8vw, 2rem); color: var(--accent); }
.header__actions { display: flex; gap: 10px; }
.hero { text-align: center; padding: clamp(24px, 4vw, 60px) var(--margin) clamp(40px, 6vw, 90px); }
.hero .pill { rotate: -3deg; }
.hero__name { color: var(--accent); font-size: clamp(3.6rem, 15vw, 15rem); margin-top: clamp(10px, 1.6vw, 24px); white-space: nowrap; }
.hero__lede { max-width: 46ch; margin: clamp(18px, 2.4vw, 34px) auto 0; color: var(--soft); font-size: clamp(1.05rem, 1rem + .4vw, 1.4rem); text-wrap: pretty; }

/* ── layout ── */
.layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); align-items: start; border-top: 1px solid var(--line); }
main { padding: 26px var(--margin) 60px clamp(20px, 3vw, 44px); min-width: 0; }

/* ── context panel ── */
.ctx { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--bg-2); border-right: 1px solid var(--line); padding: 24px 22px 48px; scrollbar-width: thin; scrollbar-color: var(--bg-3) transparent; }
.ctx-toggle { display: none; }
.ctx-head { display: flex; align-items: center; justify-content: space-between; }
.ctx h2 { font-weight: 700; letter-spacing: -.05em; font-size: 30px; line-height: .9; color: var(--accent); }
.ctx-btns { display: flex; gap: 6px; }
.tiny { border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: transparent; border-radius: 99px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; transition: all .3s var(--ease); }
.tiny:hover { background: var(--accent); color: var(--bg); box-shadow: none; }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 16px; }
fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 16px 0 6px; }
legend { font-size: 12px; font-weight: 600; letter-spacing: -.01em; color: var(--accent); padding: 0 8px 0 0; }
.field { display: block; margin: 0 0 11px; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--surface); }
.field em, .check em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
.field input, .field select, textarea {
  width: 100%; background: var(--bg); color: var(--surface); border: 0; box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; transition: box-shadow .25s var(--ease);
}
.field input::placeholder, textarea::placeholder { color: #62665c; }
.field input:focus, .field select:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23c8ff00' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 11px; padding-right: 32px; }
.colours { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 11px; }
.swatch { display: flex; gap: 9px; align-items: center; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 12px; padding: 7px; cursor: pointer; }
.swatch input { width: 34px; height: 34px; border: 0; padding: 0; background: none; border-radius: 9px; cursor: pointer; flex: none; }
.swatch input::-webkit-color-swatch-wrapper { padding: 0; }
.swatch input::-webkit-color-swatch { border: 0; border-radius: 9px; }
.swatch input::-moz-color-swatch { border: 0; border-radius: 9px; }
.swatch span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.swatch b { font-size: 12.5px; font-weight: 600; }
.swatch i { font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 12px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; }
.check em { display: block; margin: 0; font-size: 12.5px; }

/* ── playbook: lime block like the site's quote section ── */
.playbook { background: var(--accent); color: var(--bg); border-radius: 22px; margin-bottom: 22px; }
.playbook summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-weight: 600; letter-spacing: -.02em; }
.playbook summary::-webkit-details-marker { display: none; }
.pb-k { font-weight: 800; letter-spacing: -.05em; font-size: 24px; line-height: 1; }
.pb-a { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--bg); display: grid; place-items: center; transition: transform .4s var(--ease); }
.playbook[open] .pb-a { transform: rotate(180deg); }
.pb-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding: 4px 26px 28px; }
.pb-grid h3 { font-weight: 700; letter-spacing: -.045em; font-size: 26px; line-height: .95; margin: 14px 0 12px; }
.pb-grid p, .pb-grid li { color: #2b2e26; font-size: 14.5px; }
.pb-grid b { color: var(--bg); font-weight: 700; }
.rules { padding-left: 22px; margin: 0; display: grid; gap: 9px; }
.rules li::marker { font-weight: 800; }
.mini { padding-left: 18px; margin: 8px 0 8px; }
.steps { padding-left: 22px; margin: 0; display: grid; gap: 5px; }

/* ── toolbar ── */
.toolbar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 14px 0; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.outbar { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.ctl { display: flex; align-items: center; gap: 9px; transition: opacity .3s; }
.ctl.dim { opacity: .35; }
.ctl-l { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.seg { display: inline-flex; border-radius: 99px; padding: 3px; box-shadow: inset 0 0 0 1.5px var(--line); }
.seg button { border: 0; background: none; padding: 6px 13px; border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--soft); transition: all .3s var(--ease); }
.seg button:hover { color: var(--surface); }
.seg button.on { background: var(--accent); color: var(--bg); }
.ctl select { appearance: none; -webkit-appearance: none; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23c8ff00' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 13px center / 11px; border-radius: 99px; padding: 8px 34px 8px 14px; font-size: 13.5px; font-weight: 600; max-width: 310px; }
.ctl select option { background: var(--bg-2); color: var(--surface); }
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.search input { width: 270px; max-width: 100%; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: transparent; border-radius: 99px; padding: 9px 16px; font-size: 14px; }
.search input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.search input::placeholder { color: #62665c; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: transparent; border-radius: 99px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; color: var(--soft); transition: all .3s var(--ease); }
.chip:hover { color: var(--surface); box-shadow: inset 0 0 0 1.5px var(--surface); }
.chip.on { background: var(--accent); color: var(--bg); box-shadow: none; }
.count { margin-left: auto; font-size: 13px; color: var(--muted); }

/* ── concept cards: cream peel cards ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: clamp(18px, 2vw, 30px); padding-top: 18px; }
.peel { position: relative; background: var(--surface); color: var(--bg); border-radius: 16px; box-shadow: 0 20px 40px -14px rgba(0,0,0,.55);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--fold, 34px)), calc(100% - var(--fold, 34px)) 100%, 0 100%); }
.peel::after { content: ""; position: absolute; right: 0; bottom: 0; width: var(--fold, 34px); height: var(--fold, 34px); background: linear-gradient(135deg, #cfd2c3 0%, #fff 45%, #d7d9cc 50%, transparent 50.5%); border-top-left-radius: 10px; filter: drop-shadow(-4px -4px 6px rgba(0,0,0,.18)); transition: width .45s var(--ease), height .45s var(--ease); pointer-events: none; }
.card { display: flex; flex-direction: column; overflow: hidden; transform: rotate(var(--r, 0deg)); transition: transform .5s var(--ease); }
.card:nth-child(4n+1) { --r: -1.1deg; }
.card:nth-child(4n+2) { --r: .8deg; }
.card:nth-child(4n+3) { --r: -.5deg; }
.card:nth-child(4n+4) { --r: 1.2deg; }
.card:hover { transform: rotate(0deg) translateY(-6px); --fold: 58px; }
.card-open { display: block; border: 0; padding: 10px 10px 0; background: none; width: 100%; }
.card-open .thumb { border-radius: 10px; }
.card-body { padding: 14px 18px 4px; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; font-weight: 600; color: var(--paper-muted); letter-spacing: -.01em; }
.card-meta .num { color: var(--bg); background: var(--accent); border-radius: 99px; padding: 0 7px; }
.nosig { color: var(--paper-muted); box-shadow: inset 0 0 0 1px var(--line-ink); border-radius: 99px; padding: 0 7px; }
.card h3 { font-weight: 700; letter-spacing: -.045em; font-size: 27px; line-height: .95; margin: 9px 0 8px; }
.linkish { border: 0; background: none; padding: 0; font: inherit; letter-spacing: inherit; text-align: left; color: inherit; }
.card p { font-size: 14px; color: var(--paper-ink); text-wrap: pretty; }
.card-actions { display: flex; gap: 6px; padding: 14px 18px 20px; align-items: center; }
.card-actions .btn { height: 2.5rem; padding: 0 1.15em; font-size: 14px; }
.card-actions .btn:not(.btn-ink) { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-ink); }
.card-actions .btn:not(.btn-ink):hover { background: var(--accent); box-shadow: none; }
.star { margin-left: auto; margin-right: 18px; border: 0; background: none; font-size: 22px; line-height: 1; color: #9a9e91; padding: 4px; transition: transform .3s var(--ease); }
.star:hover { transform: scale(1.15); color: var(--bg); }
.star.on { color: var(--bg); }
.empty { color: var(--muted); padding: 40px 0; }

/* ── thumbnails: live preview of each look in your brand colours ── */
.thumb { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; container-type: inline-size; isolation: isolate; }
.thumb .tw { position: absolute; left: 0; right: 0; text-align: center; font: 800 min(34cqw, calc(158cqw / var(--len, 5))) / .84 var(--font); letter-spacing: -.06em; color: var(--hc); top: 11%; z-index: 1; white-space: nowrap; }
.thumb .obj { position: absolute; left: 50%; bottom: 13%; width: 20%; height: 56%; transform: translateX(-50%); z-index: 2;
  border-radius: 40% 40% 12% 12% / 20% 20% 8% 8%;
  background: linear-gradient(96deg, #121110 0%, #3f3a34 30%, #5c554c 42%, #26231f 66%, #0e0d0c 100%);
  box-shadow: 0 1.5cqw 2.5cqw -1cqw rgba(0,0,0,.5); }
.thumb .obj::before { content: ''; position: absolute; left: 18%; right: 18%; top: 34%; height: 28%; border-radius: 3px; background: var(--c2); opacity: .92; }
.thumb .obj::after { content: ''; position: absolute; left: -40%; right: -40%; bottom: -5%; height: 9%; border-radius: 50%; background: rgba(0,0,0,.35); filter: blur(4px); z-index: -1; }
.thumb .bar { display: none; }

.look-signature { background: radial-gradient(ellipse 70% 75% at 50% 58%, var(--c1l) 0%, var(--c1) 42%, var(--c1d) 100%); }
.look-signature::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(0,0,0,.09) .6px, transparent .7px); background-size: 3px 3px; z-index: 3; pointer-events: none; }
.look-solid { background: var(--c1); }
.look-solid .tw { font-size: min(12cqw, calc(60cqw / var(--len, 5))); top: 9%; }
.look-solid .obj { height: 48%; bottom: 12%; width: 17%; }
.look-gallery { background: #F1EEE8; }
.look-gallery .tw { font-size: min(9cqw, calc(48cqw / var(--len, 5))); top: auto; bottom: 7%; color: var(--c1); }
.look-gallery .obj { height: 42%; width: 15%; bottom: 26%; }
.look-dark { background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--c1) 45%, #0b0a09) 0%, #0b0a09 62%); }
.look-dark .tw { font-size: min(9cqw, calc(46cqw / var(--len, 5))); top: 8%; left: 7%; right: auto; text-align: left; color: #F5F0E8; }
.look-dark .obj { box-shadow: -.6cqw 0 0 -.2cqw rgba(255,255,255,.35), 0 0 6cqw color-mix(in srgb, var(--c1) 60%, transparent); }
.look-macro { background:
  radial-gradient(rgba(70,30,20,.22) .9px, transparent 1.3px) 0 0 / 6px 6px,
  radial-gradient(ellipse at 40% 35%, #D9A48C 0%, #B97660 45%, #7E4636 100%); }
.look-macro .tw { font-size: min(10cqw, calc(52cqw / var(--len, 5))); top: auto; bottom: 19%; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.look-macro .obj { width: 26%; height: auto; aspect-ratio: 1; border-radius: 50%; bottom: 40%; background: radial-gradient(circle at 50% 50%, #0b0a09 0 38%, var(--c1) 39% 46%, #F4EEE6 47% 100%); box-shadow: inset 0 -1cqw 2cqw rgba(0,0,0,.25); }
.look-macro .obj::before, .look-macro .obj::after { display: none; }
.look-macro .bar { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 10%; background: var(--c1); z-index: 2; }
.look-cinematic { background:
  radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0,0,0,.55) 100%),
  radial-gradient(circle at 72% 28%, color-mix(in srgb, var(--c1) 70%, transparent) 0%, transparent 45%),
  linear-gradient(180deg, #5A4A3E 0%, #3A3029 55%, #241E1A 56%, #1A1613 100%); }
.look-cinematic .tw { font-size: min(9cqw, calc(46cqw / var(--len, 5))); top: 8%; left: 7%; right: auto; text-align: left; color: #fff; }
.look-cinematic .obj { height: 64%; width: 24%; bottom: 20%; transform: translateX(-50%) rotate(-14deg); }

/* ── drawer ── */
.scrim { position: fixed; inset: 0; background: rgba(8,9,7,.6); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); z-index: 20; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(780px, 100%); background: var(--bg-2); z-index: 21; transform: translateX(102%); transition: transform .6s var(--ease); overflow-y: auto; box-shadow: -30px 0 80px -30px rgba(0,0,0,.8); outline: none; border-left: 1px solid var(--line); }
.drawer.open { transform: none; }
#drawer-inner { padding: 24px 30px 70px; }
.d-head { display: grid; grid-template-columns: 170px 1fr auto; gap: 20px; align-items: start; }
.d-thumb { background: var(--surface); padding: 7px; rotate: -3deg; filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }
.d-head .card-meta { color: var(--muted); }
.d-head h2 { font-weight: 700; letter-spacing: -.055em; line-height: .9; font-size: clamp(34px, 4vw, 48px); margin: 10px 0 10px; color: var(--accent); }
.d-why { color: var(--soft); font-size: 15.5px; text-wrap: pretty; }
.x { border: 0; background: var(--surface); color: var(--bg); border-radius: 50%; width: var(--btn-h); height: var(--btn-h); font-size: 15px; font-weight: 700; transition: background .3s var(--ease); }
.x:hover { background: var(--accent); }
.d-ref { margin: 22px 0 6px; border-radius: 16px; padding: 14px 18px; box-shadow: inset 0 0 0 1.5px var(--line); }
.d-ref p { margin: 3px 0 12px; font-size: 14px; color: var(--soft); }
.lbl { font-size: 12px; font-weight: 600; color: var(--muted); }
.kw { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.kw a { font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line); padding: 5px 12px; border-radius: 99px; color: var(--soft); transition: all .3s var(--ease); }
.kw a:hover { background: var(--accent); color: var(--bg); box-shadow: none; }
.note, .warn { font-size: 13.5px; padding: 11px 15px; border-radius: 14px; margin: 16px 0 0; }
.note { box-shadow: inset 0 0 0 1.5px var(--line); color: var(--soft); }
.note b { color: var(--surface); }
.warn { background: var(--hot); color: #1a0b06; font-weight: 500; }
.warn[hidden] { display: none; }
.d-sec { margin-top: 26px; }
.d-sec h3 { font-weight: 700; letter-spacing: -.045em; font-size: 24px; line-height: 1; margin: 0 0 8px; }
.d-sec .hint { margin-top: 0; }
.d-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.d-row .btn-ink { background: var(--accent); color: var(--bg); }
.d-row .btn-ink:hover { background: var(--surface); }
.d-out { display: flex; flex-wrap: wrap; gap: 10px 18px; }

/* prompt sheets: cream paper on ink */
.slide { background: var(--surface); color: var(--bg); border-radius: 16px; margin-top: 14px; overflow: hidden; box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); }
.slide-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--line-ink); }
.slide-n { font-weight: 800; letter-spacing: -.05em; font-size: 20px; line-height: 1; }
.slide-r { font-size: 13px; color: var(--paper-muted); flex: 1; min-width: 0; }
.prompt { margin: 0; padding: 16px 18px; font: 14px/1.6 var(--font); letter-spacing: -.005em; white-space: pre-wrap; word-wrap: break-word; color: #24271f; max-height: 470px; overflow: auto; }
.prompt .auto { background: rgba(200,255,0,.55); color: var(--bg); border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 2px; }
.prompt mark { background: var(--hot); color: #fff; border-radius: 3px; padding: 0 3px; }
.hint .auto { background: rgba(200,255,0,.85); color: var(--bg); border-radius: 3px; padding: 0 3px; }
.tweak { border-top: 1px dashed var(--line-ink); padding: 10px 18px 14px; }
.tweak summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--paper-muted); }
.tweak textarea { margin-top: 9px; resize: vertical; font-size: 14px; background: #fff; color: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line-ink); }
.tweak textarea:focus { box-shadow: inset 0 0 0 1.5px var(--bg); }

/* ── footer ── */
.footer { padding: clamp(60px, 8vw, 120px) var(--margin) clamp(20px, 3vw, 36px); border-top: 1px solid var(--line); overflow: clip; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .9rem; }
.footer__word { margin-top: clamp(30px, 4vw, 60px); font-size: clamp(3.4rem, 15vw, 15rem); color: var(--accent); text-align: center; white-space: nowrap; line-height: .8; user-select: none; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--accent); color: var(--bg); padding: 12px 20px; border-radius: 99px; font-size: 15px; font-weight: 700; letter-spacing: -.03em; opacity: 0; pointer-events: none; transition: all .35s var(--ease); z-index: 40; box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── responsive ── */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 300px minmax(0, 1fr); }
  .pb-grid { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 860px) {
  .header .btn--ghost { display: none; }
  .hero__lede { font-size: 1.02rem; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .ctx { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 0; }
  .ctx-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; border: 0; background: var(--bg-2); padding: 16px var(--margin); font-weight: 700; letter-spacing: -.05em; font-size: 24px; color: var(--accent); }
  .ctx-toggle span { font: 600 13px var(--font); letter-spacing: -.01em; color: var(--bg); background: var(--surface); border-radius: 99px; padding: 6px 12px; }
  .ctx-body { display: none; padding: 4px var(--margin) 22px; }
  .ctx.expanded .ctx-body { display: block; }
  .ctx-head h2 { display: none; }
  main { padding: 18px var(--margin) 40px; }
  .toolbar { position: static; }
  .search, .search input { width: 100%; }
  .count { margin-left: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .card h3 { font-size: 22px; }
  .card p { display: none; }
  .card-open { padding: 7px 7px 0; }
  .card-body { padding: 10px 12px 0; }
  .card-actions { flex-wrap: wrap; padding: 10px 12px 16px; }
  .card-actions .btn:not(.btn-ink) { display: none; }
  .star { margin-right: 10px; }
  #drawer-inner { padding: 18px var(--margin) 60px; }
  .d-head { grid-template-columns: 92px 1fr auto; gap: 14px; }
  .d-thumb { padding: 4px; }
  .d-head h2 { font-size: 30px; }
  .d-why { font-size: 14px; }
  .ctl select { max-width: 100%; }
  .prompt { font-size: 13.5px; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card p { display: block; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; } }
