@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/fonts/instrumentsans.woff2) format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jbmono.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }

/* The look (docs/design-notes.md): Day is paper and ink, Night is the same book by lamplight. One accent. */
:root, [data-theme=day] {
  color-scheme: light;
  --bg: #f4efe4; --bg-2: #ebe4d5; --bg-3: #e0d7c5; --line: #2a221a26; --line-2: #2a221a14;
  --fg: #221e18; --fg-2: #4b4337; --mute: #6b6152;
  --accent: #a3412a; --accent-ink: #fff8ef; --accent-soft: #a3412a1a;
  --like: #3d6a47; --pass: #6b6152; --shadow: 0 1px 2px #2a221a14, 0 8px 24px #2a221a12;
  --shot: #d9d0bd;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #17140f; --bg-2: #201c16; --bg-3: #2b261e; --line: #ffffff24; --line-2: #ffffff12;
    --fg: #efe7d8; --fg-2: #c9bfad; --mute: #9d927f;
    --accent: #e38a64; --accent-ink: #1a140f; --accent-soft: #e38a6422;
    --like: #9cc3a0; --pass: #9d927f; --shadow: 0 1px 2px #0006, 0 8px 24px #0005; --shot: #0f0d0a;
  }
}
[data-theme=night] {
  color-scheme: dark;
  --bg: #17140f; --bg-2: #201c16; --bg-3: #2b261e; --line: #ffffff24; --line-2: #ffffff12;
  --fg: #efe7d8; --fg-2: #c9bfad; --mute: #9d927f;
  --accent: #e38a64; --accent-ink: #1a140f; --accent-soft: #e38a6422;
  --like: #9cc3a0; --pass: #9d927f; --shadow: 0 1px 2px #0006, 0 8px 24px #0005; --shot: #0f0d0a;
}
:root {
  --r: 16px; --nav-h: 0px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--fg); font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; overscroll-behavior: none;
  display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); height: 100dvh; overflow: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 8px; }
h1 { font: 480 32px/1.08 var(--serif); font-variation-settings: "opsz" 144; margin: 6px 0 4px; letter-spacing: -.01em; }
h1:focus { outline: none; }
h2 { font: 500 22px/1.2 var(--serif); font-variation-settings: "opsz" 72; margin: 34px 0 8px; }
.sub { color: var(--fg-2); margin: 0 0 14px; max-width: 62ch; }
kbd { font: 500 12px/1 var(--sans); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; color: var(--fg-2); }
code { font: 500 13px/1.4 var(--mono); }

/* ---------- top bar: the mark, the four places, the count */
header.top { display: flex; align-items: center; gap: 12px; padding: max(8px, env(safe-area-inset-top)) 16px 4px; min-height: 52px; }
.mark { font: 520 21px/1 var(--serif); font-variation-settings: "opsz" 144; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.mark span { color: var(--accent); font-style: italic; }
.count { font: 500 13px/1 var(--sans); color: var(--mute); margin-left: auto; white-space: nowrap; flex: none; }
header.top .mark, header.top #undo { flex: none; }
.ghost { background: none; border: 0; padding: 10px 12px; min-height: 40px; color: var(--fg-2); font: 600 14px/1 var(--sans); border-radius: 999px; }
.ghost:hover { color: var(--fg); background: var(--line-2); }
.ghost.danger { color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; background: transparent; color: var(--fg); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 18px; font: 600 15px/1.1 var(--sans); text-decoration: none; }
.btn:hover { background: var(--line-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.small { min-height: 36px; padding: 7px 14px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: progress; }
button.link, label.link { background: none; border: 0; padding: 0; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; font: inherit; cursor: pointer; }

/* Four places: at the bottom on a phone (labelled, thumb-reachable), in the top bar on a computer. */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; gap: 2px; padding: 6px 10px max(8px, env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line); }
.tabs a { flex: 1; text-align: center; text-decoration: none; padding: 12px 0; min-height: 44px; border-radius: 999px; font: 600 14px/1.2 var(--sans); color: var(--mute); }
.tabs a[aria-current=page] { color: var(--fg); background: var(--bg-3); }
@media (max-width: 899px) { :root { --nav-h: calc(62px + env(safe-area-inset-bottom)); } main { margin-bottom: var(--nav-h); } }

main { position: relative; overflow: hidden; min-height: 0; }
main:focus { outline: none; }
.view { height: 100%; overflow-y: auto; padding: 4px 16px 32px; }
.read-col { max-width: 680px; margin: 0 auto; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.back { margin: 6px 0 0; font-size: 14px; }
.back a { color: var(--mute); text-decoration: none; }
.back a:hover { color: var(--fg); }
.foot { color: var(--mute); font-size: 14px; margin: 28px 0 0; }
.foot a { color: var(--fg-2); }

/* ---------- deck: one site, and under it what you think of it */
#v-deck { display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; padding: 2px 12px 8px; max-width: 760px; margin: 0 auto; width: 100%; }
.stack { position: relative; min-height: 0; }
.card {
  position: absolute; inset: 0; background: var(--bg-2); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr);
  transform-origin: 50% 110%; touch-action: pan-y;
}
/* The next site waits out of sight; it shows only while the top card is being dragged off it. */
.card.next { visibility: hidden; pointer-events: none; }
.stack.dragging .card.next { visibility: visible; }
.card.fly { transition: transform .32s cubic-bezier(.2,.7,.3,1), opacity .32s; }
.card.back { transition: transform .26s cubic-bezier(.3,1.3,.5,1); }

.handle { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px 10px; user-select: none; -webkit-user-select: none; cursor: grab;
  background: var(--bg-2); position: relative; z-index: 4; border-bottom: 1px solid var(--line-2); }
.handle:active { cursor: grabbing; }
.card h2 { font: 500 23px/1.12 var(--serif); font-variation-settings: "opsz" 72; margin: 0; letter-spacing: -.005em; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.card h2:focus { outline: none; }
.visit { align-self: start; font: 600 14px/1 var(--sans); text-decoration: none; color: var(--accent); padding: 8px 2px 8px 8px; min-height: 36px; white-space: nowrap; }
.visit:hover { text-decoration: underline; }
.why1 { grid-column: 1 / -1; margin: 2px 0 0; font-size: 14px; line-height: 1.4; color: var(--fg-2);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.why1 .ai { color: var(--accent); font-weight: 600; }
.cardbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.bucket { font: 500 13px/1.2 var(--sans); color: var(--mute); margin-right: auto; }
.about-btn { border: 0; background: none; padding: 6px 0; min-height: 32px; font: 600 13px/1 var(--sans); color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; }
.seg { display: inline-flex; background: var(--bg-3); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 11px; min-height: 30px; border-radius: 999px; font: 600 13px/1 var(--sans); color: var(--fg-2); }
.seg button.on, .seg button[aria-checked=true], .seg button[aria-pressed=true] { background: var(--bg); color: var(--fg); box-shadow: 0 1px 2px #0002; }

.body { position: relative; min-height: 0; background: var(--shot); grid-row: 2; grid-column: 1; }
.body .loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--fg-2); font-size: 14px; text-align: center; padding: 20px; }
.cap { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.cap img, .cap video { display: block; width: 100%; height: auto; position: relative; opacity: 0; transition: opacity .25s; }
.cap img.in, .cap video { opacity: 1; }
.cap .shot { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; object-position: top; }
.card[data-mode=desktop] .cap { display: grid; align-content: center; }
.cap .phone { width: 100%; }
@media (min-width: 560px) and (max-width: 899px) { .cap .phone { width: 62%; margin: 14px auto; border-radius: 18px; box-shadow: var(--shadow); } }
.live { position: absolute; inset: 0; overflow: hidden; }
.live .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: .5; }
.live iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; opacity: 0; transition: opacity .3s; }
.live iframe.on { opacity: 1; background: #fff; }
.chip { position: absolute; z-index: 2; left: 50%; top: 16px; transform: translateX(-50%); max-width: 92%; border-radius: 999px; padding: 8px 12px;
  font: 600 13px/1.2 var(--sans); background: var(--bg); color: var(--fg); box-shadow: var(--shadow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* What the site is notable for: behind "About this site" on a phone, a side column on a computer. */
.about { display: none; }
.card.about-on .about { display: grid; align-content: start; gap: 12px; grid-row: 2; grid-column: 1; position: relative; z-index: 3; overflow-y: auto;
  padding: 14px 16px 18px; background: var(--bg-2); }
.about p { margin: 0; color: var(--fg-2); font-size: 15px; }
.about .lbl { display: block; font: 600 13px/1.3 var(--sans); color: var(--mute); margin-bottom: 2px; }
.about .meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--mute); }
.swatches { display: inline-flex; }
.swatches i { width: 18px; height: 18px; border-radius: 50%; margin-right: -5px; border: 2px solid var(--bg-2); display: inline-block; }
.tags { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 14px; color: var(--fg-2); }
.tags b { font-weight: 600; color: var(--mute); }
.stamp { position: absolute; top: 18px; z-index: 5; font: 600 15px/1 var(--sans); padding: 8px 12px; border-radius: 999px; pointer-events: none; visibility: hidden; opacity: 0; }
.card.dragged .stamp { visibility: visible; }
.stamp.like { left: 14px; background: var(--like); color: var(--bg); }
.stamp.pass { right: 14px; background: var(--fg); color: var(--bg); }

/* The reaction panel: joined to the card above it, so it's plainly about this site. */
.bar { display: grid; gap: 8px; padding: 10px 12px 12px; background: var(--bg-2); border: 1px solid var(--line); border-top-color: var(--line-2); border-radius: 0 0 var(--r) var(--r); }
.bar.veiled { visibility: hidden; }
.nudge { margin: 0; font: italic 400 15px/1.35 var(--serif); color: var(--fg-2); }
.nudge b { font-style: normal; color: var(--accent); font-weight: 600; }
.said { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; max-height: 96px; overflow-y: auto; }
.said:empty { display: none; }
.said li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 8px; align-items: center; background: var(--bg); border-radius: 12px; padding: 4px 6px 4px 4px; font-size: 14px; line-height: 1.3; }
.said .t { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-family: var(--serif); }
.said li.transcribing .t { color: var(--mute); font-style: italic; }
.said li.failed .t { color: var(--accent); font-size: 13px; }
.said small { font-size: 12px; color: var(--mute); }
.said button { border: 0; background: var(--bg-3); width: 32px; height: 32px; border-radius: 50%; font-size: 12px; display: grid; place-items: center; padding: 0; }
.said .del { background: none; color: var(--mute); font-size: 18px; }
.said button.link { width: auto; height: auto; background: none; color: var(--fg); }
.say { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
textarea, input { width: 100%; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; font: 16px/1.4 var(--sans); }
textarea::placeholder, input::placeholder { color: var(--mute); opacity: 1; }
textarea:focus, input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.say textarea { resize: none; min-height: 46px; padding: 12px 14px; border-radius: 14px; line-height: 1.35; }
.say textarea::placeholder { font-family: var(--serif); font-style: italic; }
.mic { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--accent); display: grid; place-items: center;
  position: relative; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.mic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mic svg rect { fill: currentColor; stroke: none; }
.mic .rec-t { display: none; }
.mic.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 0 0 5px var(--accent-soft); }
.mic.on .rec-t { display: block; position: absolute; bottom: calc(100% + 8px); right: 0; font: 600 12px/1 var(--sans); background: var(--accent);
  color: var(--accent-ink); padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.mic.busy { opacity: .6; }
.taps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tap { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border: 1px solid var(--line); background: var(--bg);
  border-radius: 999px; padding: 8px 10px; font: 600 15px/1 var(--sans); color: var(--fg); white-space: nowrap; }
.tap svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tap.like svg { fill: currentColor; stroke: none; }
.tap.like { color: var(--like); }
.tap.love { color: var(--accent); flex-grow: 1.35; }
.tap.pass { color: var(--fg-2); }
.tap:hover { background: var(--bg-3); }
.tap:active { transform: scale(.97); }
.next { flex: none; border: 0; background: none; min-height: 46px; padding: 8px 6px 8px 10px; font: 600 14px/1 var(--sans); color: var(--mute); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.next.said { color: var(--fg); }
.saved { font-size: 12px; color: var(--mute); min-height: 0; justify-self: end; margin-top: -4px; }
.saved:empty { display: none; }
.keys { display: none; margin: 0; font-size: 12.5px; color: var(--mute); }
body.keys-on .keys { display: block; }
@media (hover: none) { body.keys-on .keys { display: none; } }

.empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px; gap: 10px; }
.empty h2 { font: 480 32px/1.1 var(--serif); margin: 0; }
.empty p { color: var(--fg-2); margin: 0 auto; max-width: 34ch; }

/* ---------- first run */
.first { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; overflow-y: auto; background: var(--bg); }
.first-in { width: 100%; max-width: 540px; }
.first .kicker { font-size: 14px; color: var(--mute); margin: 0 0 10px; }
.first h1 { font-size: 40px; margin-bottom: 10px; }
.first textarea, .making-box textarea { font: 18px/1.4 var(--serif); resize: vertical; }
.first .how { color: var(--fg-2); font-size: 15px; margin: 14px 0 14px; }
.first .row { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 18px; }
.fine { font-size: 14px; color: var(--mute); margin: 16px 0 0; }
html.seen #first { display: none; }
html.seen #bar.veiled { visibility: visible; }

/* ---------- pinner */
.pinner { position: fixed; inset: 0; z-index: 30; background: var(--bg); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; padding: max(10px, env(safe-area-inset-top)) 12px 12px; }
.pinner-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pinner-hint { margin: 8px 4px 10px; color: var(--fg-2); font: 400 15px/1.3 var(--sans); text-align: center; }
.pin-wrap { min-height: 0; overflow: auto; display: grid; justify-items: center; align-items: start; }
.pin-stage { position: relative; max-width: 100%; border-radius: 12px; box-shadow: var(--shadow); line-height: 0; }
.pin-stage:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.pin-stage img { display: block; max-width: 100%; height: auto; cursor: crosshair; -webkit-user-drag: none; user-select: none; border-radius: 12px; }
@media (min-width: 900px) { .pin-stage img { max-height: calc(100dvh - 190px); } }
.pin-layer { position: absolute; inset: 0; pointer-events: none; }
.pin-layer .pin, .fig .pin { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font: 700 12px/1 var(--sans); box-shadow: 0 0 0 3px var(--bg), 0 4px 10px #0004; }
.pin-layer .pin.edit { background: var(--fg); color: var(--bg); }
.pin-cursor { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 2px solid var(--accent); border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 2px var(--bg); }
.pin-note { background: var(--bg-2); border-radius: 16px; padding: 12px; margin-top: 10px; display: grid; gap: 8px; max-width: 640px; width: 100%; justify-self: center; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- board */
#v-board .sub { max-width: 1200px; margin: 0 auto 4px; font-size: 14px; color: var(--mute); }
.cols { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 8px; scrollbar-width: none; margin: 0 -16px;
  mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
@media (min-width: 900px) { .cols { max-width: 1200px; margin: 0 auto; padding: 10px 0 8px; flex-wrap: wrap; mask-image: none; } }
.cols button { flex: none; border: 1px solid var(--line); background: none; border-radius: 999px; padding: 9px 14px; min-height: 40px; font: 600 14px/1 var(--sans); color: var(--fg-2); }
.cols button .n { font-weight: 500; color: var(--mute); margin-left: 6px; }
.cols button[aria-pressed=true] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.cols button[aria-pressed=true] .n { color: var(--bg-3); }
.cols button.new { border-style: dashed; color: var(--accent); }
.cols button.drop { background: var(--accent); color: var(--accent-ink); transform: scale(1.06); }
.col-new, .col-edit { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; max-width: 1200px; margin: 0 auto 8px; align-items: center; }
.col-new { grid-template-columns: minmax(0, 1fr) auto auto; }
.col-edit input { font: 500 22px/1.2 var(--serif); padding: 8px 12px; }
.col-edit textarea { grid-column: 1 / -1; }
.col-edit .danger { grid-row: 1; grid-column: 2; }
.hint { font-size: 14px; color: var(--mute); margin: 0 0 10px; }
#drag-hint { max-width: 1200px; margin: 0 auto 10px; }
.masonry { columns: 2 150px; column-gap: 12px; max-width: 1200px; margin: 0 auto; }
@media (min-width: 900px) { .masonry { columns: 4 220px; column-gap: 16px; } }
.tile { break-inside: avoid; margin: 0 0 14px; position: relative; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
.tile img, .tile .crop, .tile .linktile { display: block; width: 100%; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2); -webkit-user-drag: none; pointer-events: none; background: var(--shot); }
.tile .cap { position: static; padding: 8px 2px 0; overflow: visible; }
.tile .cap b { display: block; font: 500 17px/1.15 var(--serif); }
.tile .cap small { display: block; margin-top: 2px; font-size: 13px; color: var(--mute); }
.tile .cap q { display: block; margin-top: 6px; font: italic 400 15px/1.4 var(--serif); color: var(--fg); quotes: "“" "”"; }
.tile .badge { font: 600 12px/1 var(--sans); color: var(--mute); margin-left: 6px; }
.tile .badge.love { color: var(--accent); }
.tile .badge.pass { color: var(--mute); }
.tile.pin-tile .crop { aspect-ratio: 4 / 3; background-repeat: no-repeat; background-size: 260%; position: relative; }
/* With background-position p%, the image point at p% sits at p% of the box, so the dot goes at the pin's own x/y. */
.tile.pin-tile .crop i { position: absolute; width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--bg); }
.tile .incol { display: block; margin-top: 4px; font-size: 12.5px; color: var(--mute); }
.tile.dragging { opacity: .35; }
.ghost-tile { position: fixed; z-index: 60; width: 150px; pointer-events: none; transform: rotate(-3deg); box-shadow: var(--shadow); border-radius: 12px; overflow: hidden; opacity: .95; }
.ghost-tile img { width: 100%; display: block; }
.board-empty { color: var(--fg-2); padding: 30px 0; column-span: all; margin: 0; }
.linktile { aspect-ratio: 4/3; display: grid !important; place-items: center; font: 500 14px/1.3 var(--sans); color: var(--fg-2); padding: 10px; text-align: center; overflow-wrap: anywhere; }

/* ---------- sheet */
.sheet-bg { position: fixed; inset: 0; background: #0006; z-index: 20; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; background: var(--bg); border-radius: 20px 20px 0 0; max-height: 88dvh; overflow-y: auto;
  padding: 10px 16px max(18px, env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px #0003; }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 2px auto 10px; }
.sheet h3 { font: 500 26px/1.1 var(--serif); margin: 4px 0 6px; }
.sheet .host { color: var(--accent); font-weight: 600; text-decoration: none; }
.sheet .fig { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2); }
.sheet .fig img { width: 100%; display: block; }
.sheet .fig .pin { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 11px; }
.sheet label, .sheet .lbl { display: block; font: 600 14px/1.2 var(--sans); color: var(--mute); margin: 16px 0 6px; }
.sheet .colpick { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet .colpick button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 9px 13px; min-height: 40px; font: 600 14px/1 var(--sans); color: var(--fg-2); }
.sheet .colpick button[aria-pressed=true] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.sheet .pinlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.sheet .pinlist li { font-size: 15px; color: var(--fg-2); }
.sheet .pinlist li b { color: var(--accent); margin-right: 6px; }
.voicelist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.voicelist audio { width: 100%; }
.voicelist p { margin: 4px 0 0; font-family: var(--serif); }

/* ---------- profile: a portrait, read top to bottom */
.prof { padding-bottom: 60px; }
.prof h1 { font-size: 44px; }
.prof h2 { border-top: 1px solid var(--line); padding-top: 22px; }
.prof .hint { margin: -2px 0 12px; }
.prof .none { color: var(--mute); list-style: none; margin: 0; }
.making h2 { border-top: 0; padding-top: 0; margin-top: 22px; font: 600 14px/1.2 var(--sans); color: var(--mute); }
.making { position: relative; }
.making-text { margin: 0; font: italic 400 24px/1.35 var(--serif); font-variation-settings: "opsz" 72; padding-right: 60px; white-space: pre-wrap; }
.making-text.empty { font: 400 16px/1.5 var(--sans); color: var(--fg-2); font-style: normal; }
.making #making-edit { position: absolute; right: 0; top: -6px; }
.making-box { display: grid; gap: 8px; justify-items: start; }
.making-box textarea { margin-top: 4px; }
.quotes { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.quotes blockquote { margin: 0; font: 400 21px/1.4 var(--serif); font-variation-settings: "opsz" 36; color: var(--fg); white-space: pre-wrap; }
.quotes blockquote::before { content: "“"; color: var(--accent); margin-left: -.45em; }
.quotes blockquote::after { content: "”"; color: var(--accent); }
.quotes p { margin: 4px 0 0; font-size: 14px; color: var(--mute); }
.quotes p b { color: var(--fg-2); font-weight: 600; }
.quotes li.none { font-size: 16px; }
.read .text { margin: 0; font: 400 19px/1.55 var(--serif); font-variation-settings: "opsz" 24; color: var(--fg); }
.read .text.muted { color: var(--fg-2); font: 16px/1.5 var(--sans); }
.read .meta { margin: 10px 0 0; font-size: 13px; color: var(--mute); }
.read-ai { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0 0; }
.ai-note { font-size: 14px; color: var(--fg-2); margin: 6px 0 0; }
.two { display: grid; gap: 0 32px; }
.leans { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.leans li { font-size: 16px; line-height: 1.45; }
.leans b { font-weight: 600; }
.leans q { font-family: var(--serif); font-style: italic; color: var(--fg); }
.leans small { display: block; font-size: 13.5px; color: var(--mute); margin-top: 1px; }
.tensions { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.tensions li { font: italic 400 16px/1.5 var(--serif); color: var(--fg-2); border-left: 2px solid var(--accent); padding-left: 12px; }
.tensions:empty { display: none; }
.pal { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.pal li { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.fonts { margin: 12px 0 0; color: var(--fg-2); }
.pins { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.pins figure { margin: 0; }
.pins .crop { position: relative; aspect-ratio: 4 / 3; background-size: 260%; background-repeat: no-repeat; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2); background-color: var(--shot); }
.pins .crop i { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--bg); }
.pins figcaption { padding: 6px 2px 0; font-size: 14px; }
.pins figcaption b { display: block; font-weight: 600; }
.pins q { display: block; font: italic 400 15px/1.4 var(--serif); margin-top: 3px; }
.pins small { display: block; color: var(--mute); font-size: 13px; margin-top: 3px; }
.pins .none { grid-column: 1 / -1; }
.groups { display: grid; gap: 18px; }
.groups h3 { font: 500 19px/1.2 var(--serif); margin: 0; }
.groups p { margin: 4px 0 0; color: var(--fg-2); }
.groups ul { margin: 6px 0 0; padding-left: 18px; color: var(--fg-2); }
.export { margin-top: 10px; }
.export .row { justify-content: flex-start; }
.export .more { color: var(--mute); font-size: 15px; line-height: 2; }
.export .more a { color: var(--fg); }

/* ---------- brief and shared views */
.prose { font: 17px/1.6 var(--sans); color: var(--fg); padding-bottom: 40px; }
.prose h1 { font-size: 30px; margin: 10px 0 8px; }
.prose h2 { font: 500 23px/1.2 var(--serif); margin: 30px 0 8px; border-top: 1px solid var(--line); padding-top: 20px; }
.prose h3 { font: 500 19px/1.2 var(--serif); margin: 22px 0 6px; }
.prose p, .prose li { color: var(--fg-2); }
.prose strong { color: var(--fg); font-weight: 650; }
.prose em { color: var(--mute); }
.prose ul { padding-left: 18px; }
.prose li { margin: 5px 0; }
.prose blockquote { margin: 10px 0; padding: 0 0 0 14px; border-left: 2px solid var(--accent); font: 400 19px/1.45 var(--serif); color: var(--fg); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.prose .tbl { overflow-x: auto; }
.prose table { border-collapse: collapse; font: 500 13px/1.3 var(--sans); width: 100%; }
.prose th, .prose td { padding: 7px 8px; border-bottom: 1px solid var(--line-2); text-align: left; white-space: nowrap; }
.prose th { color: var(--mute); font-weight: 500; }
.prose td:not(:first-child), .prose th:not(:first-child) { text-align: right; }
.prose pre { overflow-x: auto; background: var(--bg-2); padding: 12px; border-radius: 10px; font: 13px/1.4 var(--mono); }
.prose details { margin: 18px 0; color: var(--fg-2); }
.prose summary { cursor: pointer; font-weight: 600; }
.writing { color: var(--fg-2); font-size: 15px; }
.muted-p { color: var(--fg-2); }
.brief-head .row, #v-brief .row { justify-content: flex-start; margin-bottom: 18px; }

/* ---------- add */
.add-form { display: flex; gap: 8px; margin: 6px 0 12px; }
.add-form input { min-width: 0; flex: 1; }
.tip { font-size: 15px; color: var(--fg-2); margin: 16px 0 0; }
.tip + .tip { margin-top: 8px; }
@media (hover: none) and (pointer: coarse) { .wide-only { display: none; } }
@media (hover: hover) and (pointer: fine) { .touch-only { display: none; } }
.added { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.added li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: center; border-top: 1px solid var(--line-2); padding-top: 10px; }
.added .th { width: 88px; aspect-ratio: 16/10; border-radius: 8px; background: var(--bg-3) center/cover; display: grid; place-items: center; color: var(--fg-2); }
.added b { display: block; font: 500 16px/1.25 var(--serif); overflow-wrap: anywhere; }
.added small { font-size: 13px; color: var(--mute); }
.added small.warn { color: var(--accent); }
.added a { font-size: 14px; }

/* ---------- account */
.acct .box { border-top: 1px solid var(--line); padding: 2px 0 16px; margin: 18px 0 0; }
.acct .box h2 { margin-top: 16px; font-size: 21px; }
.acct h3.sm { font: 600 15px/1.2 var(--sans); color: var(--mute); margin: 18px 0 4px; }
.acct p { color: var(--fg-2); }
.acct .row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; justify-content: flex-start; }
.acct .who { color: var(--fg); margin: 0 0 6px; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--fg-2); margin: 12px 0; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 1px; flex: none; }
.seg-field { border: 0; padding: 0; margin: 8px 0 12px; }
.seg-field legend { font-size: 15px; color: var(--fg-2); margin-bottom: 6px; padding: 0; }
.seg-field .seg button { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.danger-zone { margin-top: 26px; border-top: 1px solid var(--line); padding: 14px 0 0; }
.danger-zone summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 32px; }
.danger-zone p { color: var(--fg-2); font-size: 15px; }
.danger-zone label { display: block; font-size: 14px; color: var(--fg-2); margin-bottom: 6px; }
.danger-zone input { max-width: 300px; display: block; margin-bottom: 10px; }
.btn.danger { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.url-row { display: flex; gap: 8px; align-items: center; background: var(--bg-2); border-radius: 12px; padding: 6px 6px 6px 12px; margin: 8px 0; }
.url-row code { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.steps { color: var(--fg-2); font-size: 15px; padding-left: 20px; }
.steps li { margin: 6px 0; }
.steps b { color: var(--fg); }
.tok-make { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 10px 0; }
.tok-make .check { margin: 0; }
.tok-made p { color: var(--accent); font-size: 14px; margin: 8px 0; font-weight: 600; }
.toks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.toks li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; border-bottom: 1px solid var(--line-2); padding: 4px 0; }
.toks small { color: var(--mute); font-size: 13px; }
.toks .ghost { margin-left: auto; }
.toks li.none { color: var(--mute); border: 0; }
.share-form { display: grid; gap: 8px; grid-template-columns: 1fr; margin: 8px 0 0; }
@media (min-width: 620px) { .share-form { grid-template-columns: 1fr 1fr auto; } }

/* ---------- link cards (clips with no picture) */
.linkcard { position: absolute; inset: 0; display: grid; align-content: center; gap: 12px; padding: 24px 22px; background: var(--bg-2); }
.linkcard .lc-host { margin: 0; font-size: 14px; color: var(--mute); }
.linkcard h3 { font: 500 26px/1.2 var(--serif); margin: 0; }
.linkcard p { margin: 0; color: var(--fg-2); }
.linkcard .btn { justify-self: start; }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px); transform: translate(-50%, 10px); opacity: 0; z-index: 70; background: var(--fg); color: var(--bg);
  font: 600 14px/1.3 var(--sans); padding: 11px 16px; border-radius: 12px; transition: opacity .2s, transform .2s; pointer-events: none; max-width: min(92vw, 520px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- standalone pages served by the Worker (sign in, consent) use page.css; these stay for old links */
body.solo-page { display: block; height: auto; min-height: 100dvh; overflow: auto; }
.solo { max-width: 520px; margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 20px 40px; }

/* ---------- a computer: the nav goes up top, the card becomes a spread with the reaction panel beside the picture */
@media (min-width: 900px) {
  header.top { padding: 12px 28px 6px; gap: 28px; }
  .tabs { position: static; background: none; border: 0; padding: 0; gap: 4px; flex: none; }
  .tabs a { flex: none; padding: 10px 16px; min-height: 40px; }
  .view { padding: 8px 28px 28px; }
  #v-deck { max-width: 1360px; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: minmax(0, 1fr); padding: 4px 28px 22px; }
  #v-deck > .stack { grid-column: 1 / -1; grid-row: 1; }
  #v-deck > .first { grid-column: 1 / -1; }
  .card { grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto minmax(0, 1fr); border-bottom: 1px solid var(--line); border-radius: var(--r); }
  .handle { grid-column: 2; grid-row: 1; padding: 22px 22px 12px; border-bottom: 0; border-left: 1px solid var(--line-2); }
  .card h2 { font-size: 30px; -webkit-line-clamp: 3; }
  .body { grid-column: 1; grid-row: 1 / span 2; }
  .about, .card.about-on .about { display: grid; align-content: start; gap: 14px; position: static; grid-column: 2; grid-row: 2; overflow-y: auto;
    padding: 4px 22px var(--bar-h, 300px); background: none; border-left: 1px solid var(--line-2); }
  .about-btn { display: none; }
  .bar { grid-column: 2; grid-row: 1; align-self: end; z-index: 6; margin: 0 1px 1px 0; border: 0; border-top: 1px solid var(--line-2); border-radius: 0 0 var(--r) 0; padding: 14px 22px 18px; }
  .stack.dragging ~ .bar { visibility: hidden; }
  .two { grid-template-columns: 1fr 1fr; }
  .first h1 { font-size: 52px; }
  .sheet { left: 50%; right: auto; width: 580px; transform: translateX(-50%); bottom: auto; top: 6dvh; border-radius: 20px; max-height: 88dvh; }
  .toast { bottom: 24px; }
}
@media (max-width: 360px) {
  .tap { font-size: 14px; padding: 8px 6px; gap: 4px; }
  .tap svg { width: 16px; height: 16px; }
  .next { flex-basis: 100%; min-height: 36px; text-align: right; }
  .first h1 { font-size: 32px; }
}
@media (max-height: 520px) and (max-width: 899px) {
  .tabs { position: static; } main { margin-bottom: 0; } body { grid-template-rows: auto minmax(0, 1fr) auto; }
  .tabs { grid-row: 3; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- board: a site's pinned parts ride on its tile */
.minis { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tile.mini { display: inline-block; width: 52px; margin: 0; break-inside: auto; }
.tile.mini .crop { display: block; width: 52px; aspect-ratio: 1; background-repeat: no-repeat; background-size: 360%; position: relative; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.tile.mini .crop i { position: absolute; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
.inline-new { display: flex; gap: 6px; }
.inline-new input { width: 180px; padding: 8px 10px; }
.sitelist { padding-left: 18px; color: var(--fg-2); }
.sitelist li { margin: 4px 0; }
.sitelist q { font-family: var(--serif); font-style: italic; color: var(--fg); }
.tok-for { display: flex; gap: 8px; align-items: center; font-size: 15px; color: var(--fg-2); }
.tok-for select { font: 15px/1.2 var(--sans); padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
