:root {
  /* Graphite, the default. Darkroom and paper below change only these roles. */
  --paper: #1E1E20; --surface: #2B2B2E; --soft: #313134; --ink: #F4F4F1;
  --muted: #A6A6A3; --quiet: #8E8E8B; --line: #3A3A3D;
  --hover: #38383C; --veil: rgba(30,30,32,.96); --glass: rgba(58,58,61,.72); --sheen: rgba(255,255,255,.075);
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang SC', 'Helvetica Neue', sans-serif;
  /* Latin prompts read as print; Chinese falls through to Songti. `ui-serif` is New York in Safari only,
     so the next names cover Chrome on a Mac and other systems. */
  --serif: ui-serif, 'Iowan Old Style', 'Charter', 'Palatino Linotype', Georgia, 'Songti SC', 'Noto Serif SC', 'Source Han Serif SC', serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --panel: 420px;
  --n0: #31322C; --n1: #37312C; --n2: #2C2F35; --n3: #372E2F; --n4: #34322B;
}
:root[data-theme="darkroom"] {
  --paper: #0B0B0C; --surface: #18181A; --soft: #1E1E20; --ink: #F5F5F2;
  --muted: #9A9A97; --quiet: #868683; --line: #2A2A2C;
  --hover: #242426; --veil: rgba(11,11,12,.96); --glass: rgba(36,36,38,.78); --sheen: rgba(255,255,255,.055);
  --n0: #24251F; --n1: #2A241F; --n2: #1F2228; --n3: #2A2122; --n4: #27251E;
}
:root[data-theme="paper"] {
  --paper: #F4F3EF; --surface: #FBFAF7; --soft: #E8E7E2; --ink: #141415;
  --muted: #6B6B67; --quiet: #6B6B67; --line: #DAD9D3;
  --hover: #EFEEE9; --veil: rgba(244,243,239,.96); --glass: rgba(251,250,247,.82); --sheen: rgba(255,255,255,.55);
  --n0: #E9E9DF; --n1: #ECE6DF; --n2: #E3E6EC; --n3: #ECE4E5; --n4: #EBE8DE;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }

.shell { display: flex; height: 100vh; }

/* The wall */
.wall { position: relative; flex: 1; min-width: 0; height: 100%; }
.scroll { height: 100%; overflow-y: auto; scrollbar-width: none; padding: 6px; container-type: inline-size; }
.scroll::-webkit-scrollbar { display: none; }
/* The wall is a grid whose rows are a fortieth of a column: a card spanning 40 / ratio rows (class rN) has its picture's
   shape at any width, so the server and the browser lay it out alike. Columns follow the wall's width, about 204 px each. */
.grid { --n: 2; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); column-gap: 4px;
  grid-auto-rows: calc((100cqw - (var(--n) - 1) * 4px) / var(--n) / 40); grid-auto-flow: row dense; }
@container (min-width: 510px) { .grid { --n: 3; } }
@container (min-width: 714px) { .grid { --n: 4; } }
@container (min-width: 918px) { .grid { --n: 5; } }
@container (min-width: 1122px) { .grid { --n: 6; } }
@container (min-width: 1326px) { .grid { --n: 7; } }
@container (min-width: 1530px) { .grid { --n: 8; } }
.card { position: relative; display: block; width: 100%; margin-bottom: 4px; border-radius: 3px; overflow: hidden; background: var(--soft); }
.note { overflow: hidden; }
.t0 { background: var(--n0); } .t1 { background: var(--n1); } .t2 { background: var(--n2); } .t3 { background: var(--n3); } .t4 { background: var(--n4); }
.r18 { grid-row-end: span 18; }
.r19 { grid-row-end: span 19; }
.r20 { grid-row-end: span 20; }
.r21 { grid-row-end: span 21; }
.r22 { grid-row-end: span 22; }
.r23 { grid-row-end: span 23; }
.r24 { grid-row-end: span 24; }
.r25 { grid-row-end: span 25; }
.r26 { grid-row-end: span 26; }
.r27 { grid-row-end: span 27; }
.r28 { grid-row-end: span 28; }
.r29 { grid-row-end: span 29; }
.r30 { grid-row-end: span 30; }
.r31 { grid-row-end: span 31; }
.r32 { grid-row-end: span 32; }
.r33 { grid-row-end: span 33; }
.r34 { grid-row-end: span 34; }
.r35 { grid-row-end: span 35; }
.r36 { grid-row-end: span 36; }
.r37 { grid-row-end: span 37; }
.r38 { grid-row-end: span 38; }
.r39 { grid-row-end: span 39; }
.r40 { grid-row-end: span 40; }
.r41 { grid-row-end: span 41; }
.r42 { grid-row-end: span 42; }
.r43 { grid-row-end: span 43; }
.r44 { grid-row-end: span 44; }
.r45 { grid-row-end: span 45; }
.r46 { grid-row-end: span 46; }
.r47 { grid-row-end: span 47; }
.r48 { grid-row-end: span 48; }
.r49 { grid-row-end: span 49; }
.r50 { grid-row-end: span 50; }
.r51 { grid-row-end: span 51; }
.r52 { grid-row-end: span 52; }
.r53 { grid-row-end: span 53; }
.r54 { grid-row-end: span 54; }
.r55 { grid-row-end: span 55; }
.r56 { grid-row-end: span 56; }
.r57 { grid-row-end: span 57; }
.r58 { grid-row-end: span 58; }
.r59 { grid-row-end: span 59; }
.r60 { grid-row-end: span 60; }
.r61 { grid-row-end: span 61; }
.r62 { grid-row-end: span 62; }
.r63 { grid-row-end: span 63; }
.r64 { grid-row-end: span 64; }
.r65 { grid-row-end: span 65; }
.r66 { grid-row-end: span 66; }
.r67 { grid-row-end: span 67; }
.r68 { grid-row-end: span 68; }
.r69 { grid-row-end: span 69; }
.r70 { grid-row-end: span 70; }
.r71 { grid-row-end: span 71; }
.r72 { grid-row-end: span 72; }
.r73 { grid-row-end: span 73; }
.r74 { grid-row-end: span 74; }
.r75 { grid-row-end: span 75; }
.r76 { grid-row-end: span 76; }
.r77 { grid-row-end: span 77; }
.r78 { grid-row-end: span 78; }
.r79 { grid-row-end: span 79; }
.r80 { grid-row-end: span 80; }
.r81 { grid-row-end: span 81; }
.r82 { grid-row-end: span 82; }
.r83 { grid-row-end: span 83; }
.r84 { grid-row-end: span 84; }
.r85 { grid-row-end: span 85; }
.r86 { grid-row-end: span 86; }
.r87 { grid-row-end: span 87; }
.r88 { grid-row-end: span 88; }
.r89 { grid-row-end: span 89; }
.r90 { grid-row-end: span 90; }
.r91 { grid-row-end: span 91; }
.r92 { grid-row-end: span 92; }
.r93 { grid-row-end: span 93; }
.r94 { grid-row-end: span 94; }
.r95 { grid-row-end: span 95; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card.on { outline: 2px solid var(--ink); outline-offset: -2px; z-index: 1; }
.card:active { transform: scale(.985); transition: transform .12s; }
img.develop { opacity: 0; filter: grayscale(1) contrast(.8) brightness(.85); }
img.developed { opacity: 1; filter: none; transition: opacity .3s ease-out, filter 1.1s ease-out; }
.mark { position: absolute; left: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 11px; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; color: #fff; }
.heat { position: absolute; left: 6px; top: 6px; height: 22px; padding: 0 8px 0 6px; border-radius: 11px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.note { padding: 14px 14px 12px; text-align: left; }
.note b { display: block; font-family: var(--serif); font-size: 16px; font-weight: 600; line-height: 1.4; }
.note i { display: block; margin-top: 6px; font-style: normal; font-size: 12px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.note u { display: block; margin-top: 10px; text-decoration: none; font-family: var(--mono); font-size: 10.5px; letter-spacing: .6px; color: var(--muted); text-transform: uppercase; }
.ghost { border-radius: 3px; }
.tail { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; color: var(--muted); font-size: 14px; }
.tail button, .pager { height: 36px; padding: 0 16px; border-radius: 18px; background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; }
.quiet { padding: 28px 26px; font-size: 20px; font-weight: 600; }
.quiet small { display: block; margin-top: 8px; font-size: 15px; font-weight: 400; color: var(--muted); }

/* A daily issue is a contact sheet */
.frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; padding: 18px 50px 26px; }
.frame { display: flex; flex-direction: column; gap: 9px; text-align: left; }
.frame .pic { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; background: var(--soft); }
.frame .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame.on .pic { outline: 2px solid var(--ink); outline-offset: 2px; }
.frame span.cap { font-family: var(--mono); font-size: 12px; line-height: 16px; letter-spacing: .8px; color: var(--muted); text-transform: uppercase; }

/* The skeleton shares one light across every block */
.sk { background: var(--soft) linear-gradient(100deg, transparent, var(--sheen) 50%, transparent) no-repeat fixed; background-size: 320px 100%; animation: sweep 2.8s linear infinite; }
@keyframes sweep { 0% { background-position: -320px 0; } 70%, 100% { background-position: 100vw 0; } }
@media (prefers-reduced-motion: reduce) {
  .sk { animation: none; background-image: none; }
  img.develop { filter: none; } img.developed { transition: opacity .2s; }
  .card:active { transform: none; opacity: .8; }
}

/* The viewer covers the wall, never the panel */
.viewer { position: absolute; inset: 0; z-index: 5; background: var(--veil); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 84px; }
.viewer .big { flex: 1; min-height: 0; max-width: 100%; display: flex; align-items: center; justify-content: center; }
.viewer .big img, .viewer .big video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 3px; }
.viewer .x { position: absolute; left: 20px; top: 20px; }
.viewer .prev { position: absolute; left: 20px; top: calc(50% - 22px); }
.viewer .next { position: absolute; right: 20px; top: calc(50% - 22px); }
.thumbs { display: flex; gap: 8px; flex: none; }
.thumb { width: 46px; height: 52px; border-radius: 4px; overflow: hidden; background: var(--soft); opacity: .6; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb[aria-pressed="true"] { opacity: 1; outline: 2px solid var(--ink); outline-offset: 2px; }

/* The panel */
.desk { flex: none; width: var(--panel); height: 100%; border-left: 1px solid var(--line); padding: 20px 32px; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: none; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; flex: none; }
.brand { font-size: 20px; font-weight: 650; letter-spacing: -.2px; }
.nav { font-size: 14px; color: var(--muted); min-height: 44px; display: flex; align-items: center; }
.nav:hover, .use:hover, .opt:hover, .foot:hover { color: var(--ink); }
.round { flex: none; width: 44px; height: 44px; border-radius: 22px; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.round:hover, .act:hover { background: var(--hover); }
.act.lit { background: var(--ink); color: var(--paper); }
.search { margin-top: 14px; height: 44px; padding: 0 14px; border-radius: 22px; background: var(--surface); display: flex; align-items: center; gap: 9px; color: var(--muted); flex: none; }
.search .field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font: 16px var(--sans); }
.search input::placeholder { color: var(--muted); }
.strip { position: relative; margin-top: 22px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; border-radius: 4px; overflow: hidden; width: 100%; flex: none; }
.strip span.cell { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--soft); }
.strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pill { position: absolute; left: 6px; bottom: 6px; padding: 4px 9px; border-radius: 11px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; }
.uses { margin-top: 20px; display: flex; flex-wrap: wrap; column-gap: 17px; }
.use { font-size: 18px; line-height: 42px; color: var(--muted); white-space: nowrap; }
.opt { font-size: 15px; line-height: 36px; color: var(--muted); white-space: nowrap; }
.use.on, .opt.on { color: var(--ink); font-weight: 650; }
/* The panel's index (2026-11-13): the kinds, then a kind's uses, styles and subjects as words. */
.kinds { margin-top: 22px; display: flex; gap: 18px; border-bottom: 1px solid var(--line); flex: none; }
.kind { font-size: 15px; line-height: 40px; color: var(--muted); white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; }
.kind:hover { color: var(--ink); }
.kind.on { color: var(--ink); font-weight: 650; box-shadow: inset 0 -2px 0 var(--ink); }
.index { margin-top: 16px; flex: none; }
.index .label { display: block; font: 11px/1.4 var(--mono); letter-spacing: 1px; color: var(--quiet); text-transform: uppercase; }
.index .uses { margin-top: 2px; }
.more { font-size: 13px; line-height: 42px; color: var(--quiet); text-decoration: underline; text-underline-offset: 4px; }
.more:hover { color: var(--ink); }
.ghosts { display: flex; flex-wrap: wrap; gap: 12px 17px; margin-top: 12px; }
.ghosts .sk { display: block; width: 44px; height: 18px; border-radius: 4px; }
.refine { margin-top: 10px; }
.refine > span { color: var(--ink); font-weight: 600; }
.rule { width: 100%; margin: 16px 0 12px; border: 0; border-top: 1px solid var(--line); }
.group { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); column-gap: 10px; align-items: start; }
.group > span { font-size: 13px; line-height: 36px; color: var(--quiet); }
.group > div { display: flex; flex-wrap: wrap; column-gap: 16px; }
.clear { margin-top: 6px; align-self: flex-start; font-size: 13px; line-height: 36px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.home { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: none; }
.home::-webkit-scrollbar, .body::-webkit-scrollbar { display: none; }

.meta { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .8px; color: var(--muted); text-transform: uppercase; display: flex; align-items: center; gap: 0; white-space: nowrap; overflow: hidden; }
.meta button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink); min-height: 44px; }
.meta button:hover { text-decoration: underline; text-underline-offset: 4px; }
.meta.plain { text-transform: none; }
.body { flex: 1; min-height: 0; margin-top: 10px; overflow-y: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 48px), transparent); padding-bottom: 48px; }
/* The picture never takes the panel from the prompt: on a short window it is shown smaller, whole,
   on a mat of its own colour, and about seven lines of the prompt stay in view. A click still opens it large. */
.media { position: relative; display: block; width: 100%; max-height: clamp(150px, calc(100vh - 500px), 460px); border-radius: 4px; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.media img, .media video { display: block; width: 100%; height: 100%; object-fit: contain; }
.media video { cursor: default; background: #000; }
.count { position: absolute; right: 8px; bottom: 8px; padding: 4px 9px; border-radius: 11px; background: rgba(0,0,0,.55); color: #fff; font-family: var(--mono); font-size: 12px; }
.playbtn { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 22px; background: rgba(30,30,32,.62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; display: flex; align-items: center; justify-content: center; }
.trybtn { position: absolute; left: 12px; bottom: 12px; height: 38px; padding: 0 14px; border-radius: 19px; background: rgba(30,30,32,.62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font-size: 14px; font-weight: 600; display: flex; align-items: center; }
.title { margin: 16px 0 0; font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -.1px; }
.prow { position: relative; margin-top: 10px; height: 44px; display: flex; align-items: center; justify-content: space-between; }
.prow > span { font-family: var(--mono); font-size: 12px; letter-spacing: .8px; color: var(--muted); }
.lang { height: 44px; color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 4px; }
.prompt { margin: 0 0 24px; font-family: var(--serif); font-size: 19px; line-height: 35px; white-space: pre-wrap; overflow-wrap: anywhere; }
.prompt.filling { color: var(--muted); }
.line { height: 35px; display: flex; align-items: center; }
.line .sk { width: 100%; height: 13px; border-radius: 7px; }
.blank { display: inline-block; margin: 0 3px; padding: 0 7px; border-radius: 7px; background: var(--ink); color: var(--paper); font: 600 15px/26px var(--sans); white-space: nowrap; vertical-align: 1px; }
.blank.filled { background: transparent; color: var(--ink); padding: 0; margin: 0 1px; font: 700 19px/35px var(--serif); text-decoration: underline; text-underline-offset: 5px; white-space: normal; vertical-align: baseline; }
.blank.active { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; border-top: 1px solid var(--line); font-size: 15px; }
.row > span:first-child { color: var(--muted); flex: none; }
.row a, .row button { display: flex; align-items: center; gap: 8px; text-align: right; }
.row img { width: 24px; height: 24px; border-radius: 12px; object-fit: cover; }
.report { font-size: 13px; color: var(--muted); }
.recover { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; color: var(--muted); font-size: 15px; }
.recover button { height: 36px; padding: 0 16px; border-radius: 18px; background: var(--surface); color: var(--ink); font-size: 14px; }

.fill { flex: none; margin-top: 12px; height: 52px; padding: 0 6px 0 18px; border-radius: 26px; background: var(--glass); border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); display: flex; align-items: center; gap: 12px; }
.fill label { flex: none; font-size: 15px; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fill input { flex: 1; min-width: 0; height: 40px; background: transparent; border: 0; outline: 0; color: var(--ink); font: 16px var(--sans); }
.fill span { flex: none; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.fill button { flex: none; height: 40px; padding: 0 16px; border-radius: 20px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 600; }
.acts { flex: none; margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.copy { flex: 1; min-width: 0; height: 50px; padding: 0 8px 0 18px; border-radius: 25px; background: var(--ink); color: var(--paper); font-size: 16px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; justify-content: space-between; }
.copy kbd { min-width: 34px; height: 34px; border-radius: 17px; background: color-mix(in srgb, var(--paper) 12%, transparent); display: flex; align-items: center; justify-content: center; font: 500 13px var(--mono); }
.act { flex: none; width: 50px; height: 50px; border-radius: 25px; background: var(--surface); display: flex; align-items: center; justify-content: center; }

.h1 { margin: 18px 0 0; font-family: var(--serif); font-size: 44px; font-weight: 700; line-height: 1.2; letter-spacing: -.5px; }
.h1.plain { font-family: var(--sans); font-size: 34px; letter-spacing: -.3px; }
.sub { margin: 14px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: .8px; color: var(--muted); }
.sec { margin: 40px 0 12px; font-size: 15px; font-weight: 600; }
.past { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 76px; border-top: 1px solid var(--line); width: 100%; text-align: left; }
.past em { display: block; font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: .8px; color: var(--muted); }
.past b { display: block; margin-top: 5px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.past div { flex: none; display: flex; gap: 3px; }
.past div img { width: 30px; height: 40px; object-fit: cover; border-radius: 3px; background: var(--soft); display: block; }
.dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 3px; background: var(--ink); vertical-align: 1px; }
.pastsk { height: 76px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.pastsk i { display: block; width: 46%; height: 13px; border-radius: 7px; }
.pastsk b { display: block; width: 129px; height: 40px; border-radius: 3px; }


/* My versions: a row of chips under the PROMPT line, a small menu for the one on show, and the editor */
.versions { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px -12px; }
.ver { height: 32px; padding: 0 12px; border-radius: 16px; color: var(--muted); font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ver:hover { color: var(--ink); }
.ver.on { background: var(--ink); color: var(--paper); font-weight: 600; }
.vmenu { position: absolute; right: 0; top: 42px; z-index: 3; width: 232px; padding: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0,0,0,.28); display: flex; flex-direction: column; gap: 4px; }
.vmenu input { height: 40px; padding: 0 10px; border-radius: 8px; border: 0; outline: 0; background: var(--soft); color: var(--ink); font: 15px var(--sans); }
.vmenu button { height: 40px; padding: 0 10px; border-radius: 8px; text-align: left; font-size: 15px; color: #E5484D; }
.vmenu button:hover { background: var(--soft); }
textarea.prompt.edit { display: block; width: 100%; min-height: 175px; padding: 0; border: 0; outline: 0; resize: none; overflow: hidden; background: transparent; color: var(--ink); caret-color: var(--ink); }

/* Creators: a grid on the wall, and the matches under the search field */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 22px 8px; padding: 10px 10px 24px; }
.person { display: flex; flex-direction: column; gap: 9px; text-align: left; min-width: 0; }
.person .pic { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--soft); }
.person .pic > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person .face { position: absolute; left: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 15px; border: 2px solid var(--paper); object-fit: cover; opacity: 1 !important; filter: none !important; }
.person .who { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 2px; }
.person .who b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .who i { flex: none; font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.person .who .bar { width: 60%; height: 13px; border-radius: 7px; }
#found:not(:empty) { margin-top: 10px; }
.hit { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 10px; text-align: left; border-radius: 10px; padding: 0 6px; margin: 0 -6px; }
.hit:hover { background: var(--surface); }
.hit img, .hit > span { flex: none; width: 30px; height: 30px; border-radius: 15px; object-fit: cover; background: var(--soft); }
.hit b { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hit i { flex: none; font-style: normal; font-size: 13px; color: var(--muted); }

/* Headings, settings and the saved panel */
.links { display: flex; align-items: center; gap: 20px; }
.spaced { margin-top: 22px; }
.search.spaced { margin-top: 20px; }
.feet { margin-top: auto; padding-top: 20px; display: flex; align-items: center; gap: 22px; }
.foot { font-size: 13px; color: var(--quiet); min-height: 44px; display: flex; align-items: center; }
.row.first { margin-top: 22px; }
.row.first > span:first-child { color: var(--ink); }
.row .wide { flex: 1; min-height: 44px; justify-content: flex-start; }
.switch { flex: none; width: 51px; height: 31px; border-radius: 16px; background: var(--soft); position: relative; transition: background .18s; }
.switch i { position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .18s; }
.switch[aria-checked="true"] { background: var(--muted); }
.switch[aria-checked="true"] i { transform: translateX(20px); }
.tabs { margin: 20px 0 8px; align-self: flex-start; display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--surface); }
.tabs button { height: 32px; padding: 0 18px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.tabs button.on { background: var(--hover); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.hint { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.vrow { width: 100%; display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); text-align: left; }
.vrow:first-child { border-top: 0; }
.vrow > img, .vrow .quote { flex: none; width: 60px; height: 76px; border-radius: 6px; object-fit: cover; background: var(--soft); }
.vrow .quote { display: flex; align-items: center; justify-content: center; font: 34px var(--serif); color: var(--muted); }
.vrow > span:last-child { min-width: 0; display: block; }
.vrow b { display: inline; font-size: 15px; font-weight: 600; }
.vrow em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 8px; }
.vrow i { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 5px; font-style: normal; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* What the panel is about changed: the new content comes up once */
.desk.swap > * { animation: come .2s ease-out both; }
@keyframes come { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .desk.swap > * { animation: none; } .switch, .switch i { transition: none; } }

/* The first cell of a phone's wall: today's issue as a 2 × 3 contact sheet */
.card.issue .six { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--paper); }
.card.issue .six span { position: relative; overflow: hidden; background: var(--soft); }
#bar, .only-phone { display: none; }

@media (max-width: 1100px) { :root { --panel: 340px; } .desk { padding: 20px 24px; } .frames { padding: 18px 24px; } }

/* A phone: the wall is the whole screen, and the panel is a sheet that comes up over it */
@media (max-width: 760px) {
  .shell { display: block; height: 100dvh; }
  .wall { display: flex; flex-direction: column; height: 100dvh; }
  #bar { display: block; flex: none; padding: 8px 12px 0; }
  .only-phone { display: flex; }
  .barrow { display: flex; align-items: center; gap: 8px; min-height: 44px; }
  .barrow .search { flex: 1; min-width: 0; margin: 0; }
  .barrow .round { position: relative; }
  .badge { position: absolute; right: 9px; top: 9px; width: 8px; height: 8px; border-radius: 4px; background: var(--ink); box-shadow: 0 0 0 2px var(--surface); }
  .bartitle { flex: 1; min-width: 0; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
  .tags { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 6px -12px 0; padding: 0 12px 6px; }
  .tags::-webkit-scrollbar { display: none; }
  .tag { flex: none; height: 36px; padding: 0 13px; border-radius: 18px; font-size: 15px; color: var(--muted); white-space: nowrap; }
  .tag.on { background: var(--ink); color: var(--paper); font-weight: 600; }
  .scroll { flex: 1; min-height: 0; height: auto; padding-top: 2px; }
  .desk { position: fixed; inset: 0; z-index: 10; width: auto; height: auto; border-left: 0; background: var(--paper);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    transform: translateY(100%); visibility: hidden; transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s .28s; }
  .shell.sheet .desk { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2,.8,.2,1); }
  .links { gap: 16px; }
  .viewer { position: fixed; z-index: 20; background: var(--paper); padding: 68px 8px calc(16px + env(safe-area-inset-bottom)); }
  .viewer .x { left: 12px; top: 12px; }
  .viewer .prev { left: 8px; } .viewer .next { right: 8px; }
  .frames { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; padding: 8px 12px 20px; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 6px 8px 20px; }
  .copy { justify-content: center; padding: 0 18px; }
  .copy kbd { display: none; }
  .h1 { font-size: 34px; }
  .media { max-height: clamp(150px, calc(100dvh - 460px), 460px); }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .desk, .shell.sheet .desk { transition: none; } }

/* Languages: the group labels are wider outside Chinese, Japanese and Korean, and each script gets its own system faces */
:root { --label: 34px; }
:root:not(:lang(zh)):not(:lang(ja)):not(:lang(ko)) { --label: 84px; }
.group > span { overflow-wrap: anywhere; }
:root:lang(zh-Hant) { --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif; --serif: ui-serif, 'Iowan Old Style', Georgia, 'Songti TC', 'Noto Serif TC', serif; }
:root:lang(ja) { --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Hiragino Sans', 'Yu Gothic UI', 'Noto Sans JP', sans-serif; --serif: ui-serif, 'Iowan Old Style', Georgia, 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', serif; }
:root:lang(ko) { --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif; --serif: ui-serif, 'Iowan Old Style', Georgia, 'AppleMyungjo', 'Noto Serif KR', serif; }
:root:lang(zh-Hans) { --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif; }

/* Menus: the prompt's language, and where to save */
.vmenu.lmenu { max-height: 380px; overflow-y: auto; }
.vmenu.lmenu button, .vmenu.smenu button { color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: none; }
.vmenu.lmenu button[aria-checked="true"], .vmenu.smenu button[aria-checked="true"] { font-weight: 600; }
.acts { position: relative; }
.vmenu.smenu { top: auto; bottom: 60px; right: 0; max-height: 360px; overflow-y: auto; }
.vmenu.smenu p { margin: 4px 10px 6px; font-size: 12px; color: var(--quiet); }
.vmenu.smenu [data-fresh] { color: var(--muted); }

/* Search history */
.recent { margin-top: 14px; display: flex; flex-wrap: wrap; column-gap: 16px; }
.recenthead { width: 100%; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--quiet); }
.recent .opt { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* A creator in the panel */
.who-head { margin-top: 16px; display: flex; align-items: center; gap: 14px; }
.who-head .h1 { margin: 0; overflow-wrap: anywhere; }
.who-head .sub { margin-top: 6px; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 28px; object-fit: cover; background: var(--soft); }
.bio { margin: 16px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.pair { margin-top: 8px; display: flex; flex-wrap: wrap; column-gap: 22px; }
.nav.on { color: var(--ink); font-weight: 600; }

/* Decks in the saved panel */
.deck { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 8px; margin: 0 -8px; border-radius: 10px; text-align: left; flex: none; }
.deck:hover { background: var(--surface); }
.deck.on { background: var(--surface); }
.deck .sheet4 { flex: none; width: 52px; height: 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border-radius: 4px; overflow: hidden; }
.deck .sheet4 img, .deck .sheet4 i { width: 100%; height: 100%; object-fit: cover; background: var(--soft); display: block; }
.deck b { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deck em { display: block; margin-top: 3px; font-style: normal; font-size: 13px; color: var(--muted); }
.deck > span:last-child { min-width: 0; }
.newdeck { flex: none; }
.deckedit { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex: none; }
.deckedit input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 10px; border: 0; outline: 0; background: var(--surface); color: var(--ink); font: 15px var(--sans); }

/* Related works under the details */
.related:not(:empty) { margin-top: 26px; padding-bottom: 36px; }
.relhead { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: .8px; color: var(--muted); text-transform: uppercase; }
.relgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.relgrid > * { position: relative; aspect-ratio: 3 / 4; border-radius: 3px; overflow: hidden; background: var(--soft); display: block; }
.relgrid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.relgrid b { position: absolute; inset: 8px; font: 600 12px/1.4 var(--serif); text-align: left; overflow: hidden; }
.relgrid button:hover img { opacity: .86; }

/* A prompt written in Markdown */
.prompt.md > :first-child { margin-top: 0; }
.prompt.md p, .prompt.md ul, .prompt.md ol, .prompt.md blockquote, .prompt.md pre { margin: 0 0 .8em; }
.prompt.md ul, .prompt.md ol { padding-left: 1.3em; }
.prompt.md h3, .prompt.md h4, .prompt.md h5, .prompt.md h6 { margin: 1.1em 0 .4em; font-family: var(--sans); font-size: 15px; font-weight: 650; }
.prompt.md blockquote { padding-left: 12px; border-left: 2px solid var(--line); color: var(--muted); }
.prompt.md code { font-family: var(--mono); font-size: .86em; padding: 1px 4px; border-radius: 4px; background: var(--surface); }
.prompt.md pre { padding: 12px; border-radius: 8px; background: var(--surface); overflow-x: auto; white-space: pre; }
.prompt.md pre code { padding: 0; background: none; }
.prompt.md hr { border: 0; border-top: 1px solid var(--line); margin: 1.2em 0; }
.prompt.md { white-space: normal; }

/* The panel's heading: what this page lists, in one line under the brand (2026-11-13) */
.lede-title { margin: 14px 0 0; font-size: 17px; font-weight: 650; line-height: 1.35; letter-spacing: -.1px; }
.h1.lede-title { margin-top: 18px; font-size: 34px; }
.lede-line { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
svg.small { width: 14px; height: 14px; }
.wide-meta { letter-spacing: 1.4px; }
.wordlinks { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 12px; padding: 8px 0; }
.wordlinks a { color: var(--ink); }
.wordlinks a:hover, .row a:hover { text-decoration: underline; text-underline-offset: 4px; }
.use small { font-size: 12px; color: var(--quiet); }
.relgrid a:hover img { opacity: .86; }
.media video { position: relative; }
