/* Every color, font, radius and spacing below comes from tokens set on :root by app.js:
   the fixed Eyedeck brand by default, or the viewed profile's taste tokens when "Your taste" is on. */
:root {
  --bg: #141414; --panel: #1d1d1d; --raised: #262626; --line: #353535; --text: #ede9e0; --muted: #b8a884;
  --accent: #e3241b; --accent-text: #e73e36; --on-accent: #fff; --second: #c9a27c;
  --radius: 0px; --gap: 20px; --pad: 32px;
  --font-display: "Inter Tight", sans-serif; --font-body: "Inter Tight", sans-serif; --font-mono: "JetBrains Mono", monospace;
  --shelf-h: 300px; --side-w: 232px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); }
body.locked { overflow: hidden; }
/* No rubber-band bounce: the sidebar and the page always meet the window edges. */
html { background-color: var(--bg); overscroll-behavior: none; }
html.collapsed { --side-w: 64px; }
a { color: inherit; }
button, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- shell: the sidebar stays put, only the page scrolls ---------- */
.app { position: relative; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns 320ms var(--ease); }
.dragging .app, .dragging .pull { transition: none; }
.sidebar { position: sticky; z-index: 3; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; background: var(--panel); border-right: 1px solid var(--line);
  padding: 24px 10px 18px; display: flex; flex-direction: column; gap: 28px; }
.main { --pad-x: clamp(16px, 4vw, 56px); min-width: 0; padding: 40px var(--pad-x) 96px; display: flex; flex-direction: column; gap: calc(var(--gap) * 2); outline: none; }

.brand { display: flex; align-items: center; gap: 10px; padding: 0 12px; min-height: 28px; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; grid-template-columns: repeat(5, 4px); grid-auto-rows: 4px; gap: 0; flex: none; }
.brand-mark i { display: block; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.04em; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; white-space: nowrap; overflow: hidden; border-radius: var(--radius); text-decoration: none; color: var(--muted); font-size: 14px; }
.nav a[aria-current="page"] { background: var(--raised); color: var(--text); font-weight: 500; }
.nav a:hover { color: var(--text); }
.nav .count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.nav.foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.icon { width: 16px; height: 16px; flex: none; }
.who { padding: 10px 12px 0; font-size: 12px; color: var(--muted); line-height: 1.5; white-space: nowrap; }
.nav button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; white-space: nowrap; overflow: hidden; color: var(--muted); font-size: 14px; cursor: pointer; }
.nav button:hover { color: var(--text); }
.nav button:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; }
.lbl { white-space: nowrap; overflow: hidden; }
/* Collapsing only narrows the column: icons keep their place (centered in the 64px rail) and the words fade out as they clip. */
.brand-word, .lbl, .nav .count, .who { transition: opacity 180ms ease; }
.collapsed .brand-word, .collapsed .lbl, .collapsed .nav .count, .collapsed .who { opacity: 0; pointer-events: none; }
/* The drawer pull: a square tab out of the middle of the sidebar's edge. Click it, or grab it and drag. */
.pull { position: fixed; z-index: 30; top: 50%; left: calc(var(--side-w) - 1px); width: 16px; height: 64px; transform: translateY(-50%);
  background: var(--panel); border: 1px solid var(--line); border-left: 0; cursor: grab; padding: 0; touch-action: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  transition: left 320ms var(--ease), width 200ms var(--ease); }
.pull i { display: block; width: 6px; height: 2px; background: var(--muted); transition: width 200ms var(--ease), background 200ms; }
.pull i:nth-child(2) { background: var(--accent); }
.pull:hover, .pull:focus-visible { width: 22px; }
.pull:hover i, .pull:focus-visible i { width: 10px; }
.pull:hover i:not(:nth-child(2)) { background: var(--text); }
.pull:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.dragging, .dragging * { cursor: grabbing !important; user-select: none; }

@media (max-width: 760px) {
  :root { --shelf-h: 200px; --pad: 20px; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; gap: 4px; padding: 6px 8px;
    border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .brand { padding: 0 6px; margin-right: auto; }
  .brand-word { font-size: 17px; }
  .nav { flex-direction: row; }
  .nav a { padding: 0 10px; font-size: 13px; }
  .nav .count { display: none; }
  .nav.foot { margin-top: 0; border-top: 0; padding-top: 0; }
  .lbl, .who, .shelf-head .row, .pull { display: none; }
  .nav a .lbl { display: inline; }
  .main { padding-top: 24px; }
  .band-slot { height: auto; margin: -24px calc(-1 * var(--pad-x)) 0; }
  .band { position: static; }
}

/* ---------- type and basics ---------- */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
h1 { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); font-weight: 650; letter-spacing: -0.035em; line-height: 1; }
h2 { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.25; }
p { line-height: 1.55; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.btn { min-height: 44px; padding: 0 16px; border-radius: var(--radius); border: 1px solid var(--line); background: transparent; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--pad); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); }
.tag { padding: 3px 8px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 12px; color: var(--muted); }

/* ---------- the generative identity: word band and mosaic ---------- */
/* The band belongs to the page, not the content column: it spans the whole window from its left edge and
   the sidebar slides over it, so opening and closing the sidebar covers and uncovers words. The slot keeps its room. */
.band-slot { height: 52px; margin-top: -40px; flex: none; }
.band { position: absolute; top: 0; left: 0; right: 0; z-index: 0; display: flex; flex-direction: column; gap: 2px; overflow: hidden;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; }
.band-row { display: flex; gap: 2px; white-space: nowrap; }
.band span { flex: none; height: 16px; line-height: 16px; padding: 0 4px; will-change: transform; }
.mosaic span { display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 22px; gap: 1px; width: 100%; max-width: 420px; justify-self: center; align-self: center;
  font-family: var(--font-mono); font-size: 8px; font-weight: 500; letter-spacing: -0.02em; }

/* ---------- your eye ---------- */
/* No caps labels: notes are plain sentences in the body face, numbers are set large in the display face. */
.note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 64ch; }
.link { all: unset; cursor: pointer; color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.link:hover { text-decoration-color: var(--accent); }
.opening { margin-top: calc(min(var(--pad-x) * 2, 8vh) - var(--gap) * 2); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(28px, 3.5vw, 64px); row-gap: 32px; align-items: stretch; }
@media (max-width: 1000px) { .opening { grid-template-columns: 1fr; } }
.opening-text { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; width: min(100%, 40rem); justify-self: center; }
.opening-text > div { display: flex; flex-direction: column; gap: 22px; }
.thesis { margin: -0.06em 0 0; font-family: var(--font-display); font-size: clamp(44px, min(5.4vw, 10.5vh), 112px); line-height: 0.92; letter-spacing: -0.05em; font-weight: 650; text-wrap: balance; }
.texture-grain .thesis { font-weight: 400; letter-spacing: -0.02em; }
.lede { margin: 0; font-size: 19px; line-height: 1.45; max-width: 46ch; text-wrap: pretty; }
.tension { margin: 0; padding-left: 16px; border-left: 3px solid var(--accent); font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 52ch; }
.colophon { margin: 0; font-size: 13px; color: var(--muted); }
.word-mosaic { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mosaic-frame { position: relative; display: flex; justify-content: flex-end; overflow: hidden; } /* a snapped canvas stays pinned right */
.word-mosaic canvas { display: block; width: 100%; background: var(--bg); transform-origin: center; }
/* hover (or focus a caption link) to see the save under the words */
.mosaic-title { min-width: 0; }
.word-mosaic figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.word-mosaic figcaption a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--line); }

.block { display: flex; flex-direction: column; gap: 14px; padding-top: calc(var(--gap) * 1.2); border-top: 1px solid var(--line); }
.block.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: calc(var(--gap) * 2); }
.block.two > div { display: flex; flex-direction: column; gap: 12px; }
.swatches { display: flex; gap: 2px; }
.swatches i { height: 56px; flex: 1; }
.swatches.range i { height: 12px; }
.counts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 12px; }
.counts > div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.counts .big { font-family: var(--font-display); font-size: 44px; line-height: 1; font-weight: 650; letter-spacing: -0.04em; color: var(--text); }

/* taste map: thumbnails as marks on two trait axes */
.map { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.segs { display: flex; flex-wrap: wrap; gap: 0; align-self: flex-start; border: 1px solid var(--line); }
.seg { all: unset; cursor: pointer; padding: 8px 14px; font-size: 13px; color: var(--muted); }
.seg + .seg { border-left: 1px solid var(--line); }
.seg:hover { color: var(--text); }
.seg[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.seg:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.map-plot { position: relative; height: clamp(320px, 42vw, 520px); margin: 0 calc(var(--s) / 2); border: 1px solid var(--line);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 25% 25%; background-position: -1px -1px;
  background-color: transparent; --s: 46px; }
.map-plot::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 90%, transparent); }
.map-pt { position: absolute; left: calc(var(--x) * 100%); bottom: calc(var(--y) * 100%); width: var(--s); height: var(--s);
  transform: translate(calc(-50% + var(--j) * 3px), calc(50% + var(--j) * -2px)); z-index: 1;
  transition: transform 200ms var(--ease), left 700ms var(--ease), bottom 700ms var(--ease); }
.map-pt img { width: 100%; height: 100%; object-fit: cover; border: 2px solid var(--bg); }
.map-pt:hover, .map-pt:focus-visible { z-index: 3; transform: translate(calc(-50% + var(--j) * 3px), calc(50% + var(--j) * -2px)) scale(1.9); }
/* you: the average of every save, with faint crosshairs across the plot */
.map .you { position: absolute; left: calc(var(--x) * 100%); bottom: calc(var(--y) * 100%); width: 0; height: 0; z-index: 4; pointer-events: none;
  transition: left 700ms var(--ease), bottom 700ms var(--ease); }
.map .cross { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.map .cross i { position: absolute; background: color-mix(in srgb, var(--accent) 40%, transparent); transition: left 700ms var(--ease), bottom 700ms var(--ease); }
.map .cross .h { left: 0; right: 0; height: 1px; bottom: calc(var(--y) * 100%); }
.map .cross .v { top: 0; bottom: 0; width: 1px; left: calc(var(--x) * 100%); }
.map .you .mark { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border: 3px solid var(--accent); box-shadow: 0 0 0 2px var(--bg); z-index: 1; }
.map .you span { position: absolute; left: 14px; top: -24px; font-size: 12px; font-weight: 600; color: var(--bg); background: var(--accent); padding: 1px 6px; z-index: 1; }
.axis { position: absolute; font-size: 12px; color: var(--muted); z-index: 1; }
.axis.x0 { left: 0; bottom: -22px; } .axis.x1 { right: 0; bottom: -22px; }
.axis.y0 { left: 8px; bottom: 6px; } .axis.y1 { left: 8px; top: 6px; }
.map figcaption { margin-top: 18px; font-size: 13px; color: var(--muted); }
.tip { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%) scale(0.53); transform-origin: bottom center; white-space: nowrap;
  background: var(--text); color: var(--bg); padding: 4px 8px; font-size: 13px; pointer-events: none; }

/* trait spreads: every save a tick, your average a red mark */
.spreads { display: flex; flex-direction: column; gap: 6px; }
.spread { display: grid; grid-template-columns: 120px minmax(0, 1fr) 120px; align-items: center; gap: 14px; min-height: 48px; font-size: 13px; }
.spread .end { color: var(--muted); }
.spread .end.lo { text-align: right; }
.spread .line { position: relative; height: 44px; }
.spread .line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.spread .tick { position: absolute; left: calc(var(--v) * 100%); bottom: 50%; width: 10px; height: max(3px, calc(var(--n) * 80px)); background: var(--muted); opacity: 0.5; transform: translateX(-5px); }
.spread .avg { position: absolute; left: calc(var(--v) * 100%); top: 10px; width: 4px; height: 24px; background: var(--accent); transform: translateX(-3px); }
@media (max-width: 600px) { .spread { grid-template-columns: 70px minmax(0, 1fr) 70px; gap: 8px; font-size: 12px; } }

/* patterns: words on the left, the saves that prove them on the right */
.patterns { display: flex; flex-direction: column; }
.pattern { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: calc(var(--gap) * 1.5); align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pattern:last-child { border-bottom: 0; }
.pattern h3 { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.pattern p { margin: 6px 0 0; font-size: 14px; color: var(--muted); max-width: 52ch; }
.evidence { display: flex; gap: 6px; overflow-x: auto; }
.evidence img { height: 96px; width: auto; max-width: none; aspect-ratio: auto; }
@media (max-width: 760px) { .pattern { grid-template-columns: 1fr; gap: 12px; } }
.ph { display: flex; flex-direction: column; width: 100%; height: 100%; }
.ph i { flex: 1; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar { display: grid; grid-template-columns: 112px minmax(0, 1fr) 32px; gap: 12px; align-items: center; font-size: 14px; }
.bar .track { height: 8px; background: var(--raised); border-radius: var(--radius); overflow: hidden; }
.bar .fill { height: 100%; background: var(--accent); }
.bar .fill.alt { background: var(--second); }
.bar .num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-align: right; }

/* ---------- your deck: shelves of images at their real proportions ---------- */
.shelf { display: flex; flex-direction: column; gap: 14px; }
.shelf-head { display: flex; align-items: center; gap: 12px; }
.shelf-head .n { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.shelf-head .row { margin-left: auto; }
.arrow { width: 36px; min-height: 36px; padding: 0; justify-content: center; }
.shelf-track { display: flex; align-items: flex-end; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
  padding: 10px 2px 14px; margin: 0 -2px; border-bottom: 2px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.book { all: unset; box-sizing: border-box; position: relative; flex: none; height: var(--shelf-h); scroll-snap-align: start; cursor: pointer;
  transition: transform 260ms var(--ease); }
.book img, .book .ph { height: 100%; width: auto; max-width: none; object-fit: cover; border-radius: var(--radius); background: var(--raised); box-shadow: 0 10px 24px -14px #000; }
.book .ph { aspect-ratio: 3 / 4; padding: 14px; justify-content: flex-end; font-size: 13px; font-weight: 600; }
.book:hover, .book:focus-visible { transform: translateY(-8px); }
.book:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }
.book.out { visibility: hidden; }
/* several images in one post: the rest peek out behind, like a small stack */
.book.stack::before, .book.stack::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); background: var(--raised); border-radius: var(--radius); z-index: -1; }
.book.stack::before { transform: translate(7px, -7px); }
.book.stack::after { transform: translate(14px, -14px); opacity: 0.6; }
.book.stack { margin-right: 14px; }
.book.new::after { content: ""; position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
.book.stack.new::after { inset: auto; top: 8px; right: 8px; transform: none; opacity: 1; width: 8px; height: 8px; background: var(--accent); border: 0; z-index: 1; }
.second-opinion { margin: 0; font-size: 14px; color: var(--muted); padding-left: 12px; border-left: 3px solid var(--line); }
.book img.front { position: absolute; inset: 0; width: 100%; }
.book .count { z-index: 1; position: absolute; left: 8px; bottom: 8px; padding: 2px 6px; background: var(--bg); color: var(--text); font-family: var(--font-mono); font-size: 11px; border-radius: var(--radius); }

/* ---------- pop-out viewer: the book comes off the shelf toward you ---------- */
.viewer { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.viewer .backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(6px); }
.viewer .stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px; min-height: 0; perspective: 1400px; }
.viewer .frame { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; flex: 1; min-height: 0; }
.viewer .frame img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); box-shadow: 0 30px 80px -30px #000; transform-origin: center; will-change: transform; }
.viewer .strip { display: flex; gap: 6px; }
.viewer .strip button { all: unset; cursor: pointer; width: 44px; height: 44px; border: 1px solid var(--line); opacity: 0.5; overflow: hidden; }
.viewer .strip button[aria-current="true"] { opacity: 1; border-color: var(--text); }
.viewer .strip img { width: 100%; height: 100%; object-fit: cover; }
.viewer .info { position: relative; background: var(--panel); border-left: 1px solid var(--line); overflow-y: auto; padding: 28px 24px; display: flex; flex-direction: column; gap: 18px; }
.viewer .info > :first-child { padding-right: 48px; }
.your-note { margin: 0; font-size: 15px; padding-left: 12px; border-left: 3px solid var(--second); }
.viewer .info h2 { font-size: 26px; letter-spacing: -0.03em; line-height: 1.05; }
.viewer .close { position: absolute; top: 14px; right: 14px; width: 44px; padding: 0; justify-content: center; z-index: 2; background: var(--bg); }
.viewer .prev, .viewer .next { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; padding: 0; justify-content: center; background: var(--bg); z-index: 2; }
.viewer .prev { left: 12px; } .viewer .next { right: 12px; }
.mini-palette { display: flex; gap: 1px; height: 24px; }
.mini-palette i { flex: 1; }
@media (max-width: 860px) {
  .viewer { grid-template-columns: 1fr; grid-template-rows: minmax(0, 62vh) minmax(0, 1fr); }
  .viewer .stage { padding: 56px 12px 10px; }
  .viewer .info { border-left: 0; border-top: 1px solid var(--line); padding: 20px 16px; }
}

/* ---------- settings ---------- */
.settings { display: flex; flex-direction: column; gap: var(--gap); max-width: 860px; }
.settings section { display: flex; flex-direction: column; gap: 14px; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.option { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.option:has(input:checked) { border-color: var(--accent); }
.option input { position: absolute; opacity: 0; }
.option:has(input:focus-visible) { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.option .tick { position: absolute; top: 14px; right: 14px; width: 14px; height: 14px; border: 1px solid var(--muted); }
.option:has(input:checked) .tick { background: var(--accent); border-color: var(--accent); }
.preview { display: flex; height: 26px; gap: 1px; }
.preview i { flex: 1; }
select { min-height: 44px; padding: 0 10px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); max-width: 320px; }
.source { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 4px 0; }
.source .state { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.dot { width: 8px; height: 8px; background: var(--line); flex: none; }
.dot.on { background: var(--accent); }
pre.code { margin: 0; padding: 14px 16px; background: var(--raised); border-radius: var(--radius); overflow: auto; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60;
  background: var(--text); color: var(--bg); padding: 10px 16px; font-size: 14px; border-radius: var(--radius); transition: opacity 200ms, transform 200ms var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- compare ---------- */
.blend-slot { position: relative; height: 52px; margin: 0 calc(-1 * var(--pad-x)); overflow: hidden; }
.blend-slot .band { position: absolute; inset: 0; }
.compare { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: calc(var(--gap) * 2); align-items: start; }
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; } }
.compare > div:first-child { display: flex; flex-direction: column; gap: 18px; }
.band-name { margin: 0; font-family: var(--font-display); font-size: clamp(40px, 5vw, 76px); font-weight: 650; letter-spacing: -0.045em; line-height: 0.95; }
.meter { display: flex; gap: 3px; }
.meter i { width: 22px; height: 22px; background: var(--raised); }
.meter i.on { background: var(--accent); }
.counts.two-up { grid-template-columns: 1fr; }
.counts.two-up h3 { font-size: 16px; }

/* ---------- save a link ---------- */
.link-save { display: flex; flex-direction: column; gap: 6px; }
.link-box { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) auto; gap: 8px; }
.link-box input { min-height: 44px; padding: 0 12px; background: var(--panel); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 14px; border-radius: var(--radius); }
.link-box input:focus { outline: none; border-color: var(--muted); }
@media (max-width: 760px) { .link-box { grid-template-columns: 1fr; } }

.connectors { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.connectors h3 { font-size: 15px; }
