/* The public and account surfaces.
   Palette, type roles, the mark, and the fader come from tokens.css — the single
   design source. Nothing here redefines them; this file is layout and register
   for the warm light reading surfaces (and the one dark artist context). */
@import url('/tokens.css');

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  font-family: var(--font-family);
  font-weight: var(--weight-body);
  background: var(--surface-paper);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; padding: 10px 14px; background: var(--card); border-radius: 8px; }

/* ── ticker ───────────────────────────────────────────────────────────── */
.ticker { background: var(--crate); color: var(--sleeve); overflow: hidden; white-space: nowrap; border-bottom: 2px solid var(--cue); position: relative; }
.ticker-label { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; background: var(--cue); color: #FFE8DC; display: flex; align-items: center; padding: 0 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ticker-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #FFE8DC; margin-right: 8px; animation: ticker-breathe 1.6s ease-in-out infinite; }
.ticker-track { display: inline-flex; align-items: center; padding: 11px 0 11px 150px; animation: ticker-scroll 44s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; gap: 7px; padding: 0 26px; font-size: 13px; border-right: 0.5px solid var(--border-dark); }
.ticker-user { color: var(--wax); font-weight: 500; }
.ticker-track-name { color: var(--text-body-dark); }
.ticker-sponsored { background: rgba(196, 84, 42, 0.16); border-radius: 5px; padding: 5px 12px; border-right: none; }
.ticker-sponsored .ticker-tag { font-size: 9px; color: var(--cue); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-right: 7px; }
@keyframes ticker-breathe { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── header ───────────────────────────────────────────────────────────── */
.bh { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; border-bottom: 0.5px solid var(--border-warm); }
.bh-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.bh-name { font-weight: var(--weight-display); font-size: var(--type-subheading); color: var(--text-dark); }
.bh-right { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.bh-right a { color: var(--text-mid); text-decoration: none; }
.bh-signin { color: var(--cue); font-weight: var(--weight-heading); }

/* ── auth card ────────────────────────────────────────────────────────── */
.auth-wrap { display: flex; align-items: center; justify-content: center; padding: 56px 28px 72px; }
.auth-card { width: 100%; max-width: 400px; background: var(--card); border: 0.5px solid var(--border-light); border-radius: 18px; padding: 36px 34px; box-shadow: 0 6px 30px rgba(28, 23, 20, 0.06); }
.auth-mark { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-h { font-size: 22px; font-weight: var(--weight-display); color: var(--text-dark); text-align: center; margin-bottom: 6px; }
.auth-p { font-size: 13px; color: var(--text-mid); text-align: center; line-height: 1.6; margin-bottom: 26px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: var(--type-ui); font-weight: var(--weight-heading); color: var(--text-body); margin-bottom: 6px; }
.field input { width: 100%; font-family: var(--font-family); font-size: var(--type-body); color: var(--text-dark); background: var(--surface-paper); border: 0.5px solid var(--border-warm); border-radius: 8px; padding: 11px 13px; }
.field input::placeholder { color: var(--text-faint); }
.field-note { margin-top: 6px; font-size: var(--type-meta); color: var(--text-faint); min-height: 15px; }
.field-note.bad { color: var(--deep); }
.field-note.good { color: var(--ok); }

/* control law: round = media, square = action, pill = state */
.btn { width: 100%; font-family: var(--font-family); font-size: var(--type-body); font-weight: var(--weight-display); border: none; border-radius: 9px; padding: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; }
.btn-primary { background: var(--cue); color: #FFE8DC; }
.btn-primary:hover { background: var(--hot); }
.btn-ghost { background: transparent; color: var(--text-body); border: 0.5px solid var(--border-warm); }
.btn-ghost:hover { border-color: var(--cue); color: var(--cue); }
.btn:disabled { cursor: default; opacity: .55; }
.btn svg { width: 16px; height: 16px; }
.btn-inline { width: auto; padding: 11px 20px; font-size: 13px; }
.auth-alt { text-align: center; font-size: var(--type-ui); color: var(--text-mid); margin-top: 18px; line-height: 1.7; }
.auth-alt a { color: var(--cue); text-decoration: none; font-weight: var(--weight-heading); }
.divider-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-faint); font-size: var(--type-meta); }
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 0.5px; background: var(--border-warm); }
.helper { font-size: var(--type-meta); color: var(--text-faint); text-align: center; margin-top: 20px; line-height: 1.6; }
.status { min-height: 20px; margin-top: 16px; font-size: var(--type-ui); text-align: center; line-height: 1.55; color: var(--text-mid); }
.status.bad { color: var(--deep); }
.status.good { color: var(--ok); }
.sent-icon { display: flex; justify-content: center; margin-bottom: 18px; }
.sent-icon div { width: 56px; height: 56px; border-radius: 50%; background: rgba(196, 84, 42, 0.1); display: flex; align-items: center; justify-content: center; }
.sent-icon svg { width: 26px; height: 26px; stroke: var(--cue); fill: none; stroke-width: 1.6; }

/* ── pairing ──────────────────────────────────────────────────────────── */
.pair-code { display: flex; justify-content: center; gap: 8px; margin: 6px 0 20px; }
.pair-digit { width: 44px; height: 56px; border: 0.5px solid var(--border-warm); border-radius: 9px; background: var(--surface-paper); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: var(--weight-display); color: var(--cue); }
.qr { width: 150px; height: 150px; margin: 0 auto 18px; border-radius: 12px; background: var(--card); border: 6px solid var(--card); box-shadow: 0 0 0 0.5px var(--border-warm); display: grid; place-items: center; }
.qr svg { width: 100%; height: 100%; }
.pair-expiry { text-align: center; font-size: var(--type-ui); color: var(--text-mid); margin-bottom: 14px; }

/* ── identity header ──────────────────────────────────────────────────── */
.pub-hero { padding: 34px 28px 8px; }
.identity { display: flex; align-items: center; gap: 16px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--deep), var(--cue)); flex-shrink: 0; }
.id-name { font-size: 22px; font-weight: var(--weight-display); color: var(--text-dark); }
.id-handle { font-size: 13px; color: var(--wax); }
.id-desc { font-size: 13px; color: var(--text-body); margin-top: 3px; max-width: 460px; line-height: 1.5; }
.id-counts { display: flex; gap: 16px; margin-top: 8px; font-size: var(--type-ui); color: var(--text-faint); }

/* ── nav + facets ─────────────────────────────────────────────────────── */
.arch-nav { display: flex; align-items: center; gap: 22px; padding: 14px 28px 0; border-bottom: 0.5px solid var(--border-warm); flex-wrap: wrap; }
.arch-nav a { font-size: 13px; font-weight: var(--weight-heading); color: var(--text-mid); text-decoration: none; padding-bottom: 12px; border-bottom: 2px solid transparent; }
.arch-nav a.active { color: var(--cue); border-bottom-color: var(--cue); }
.arch-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; padding-bottom: 8px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 6px; background: var(--card); border: 0.5px solid var(--border-warm); border-radius: 8px; padding: 5px 10px; font-size: var(--type-ui); color: var(--text-body); }
.search input { border: 0; background: transparent; font: inherit; color: inherit; outline: none; width: 150px; }
.facet { font-size: var(--type-meta); font-weight: var(--weight-display); letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; border: 0.5px solid var(--border-warm); color: var(--text-mid); cursor: pointer; background: transparent; font-family: var(--font-family); }
.facet.on { color: var(--cue); border-color: rgba(196, 84, 42, .4); background: rgba(196, 84, 42, .06); }
.facet.deep.on { color: var(--deep); border-color: rgba(122, 61, 30, .35); background: rgba(122, 61, 30, .06); }

/* ── the roll ─────────────────────────────────────────────────────────── */
.roll { padding: 8px 28px 44px; max-width: 820px; }
.roll-month { font-size: var(--type-meta); font-weight: var(--weight-display); letter-spacing: .08em; text-transform: uppercase; color: var(--wax); margin: 22px 0 4px; }
.cue-row { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 18px 0; border-bottom: 0.5px solid var(--border-warm); cursor: pointer; text-decoration: none; color: inherit; }
.cue-row:hover { background: rgba(212, 154, 106, 0.04); }
.cue-row .idx { position: absolute; top: 6px; left: -2px; font-size: var(--type-meta); font-weight: var(--weight-display); color: var(--text-faint); }
.cr-ring { width: 64px; height: 64px; position: relative; }
.cr-ring svg { width: 100%; height: 100%; }
.cr-well { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 50% 45%, var(--border-light), var(--surface-paper)); border: 0.5px solid var(--border-warm); display: flex; align-items: center; justify-content: center; }
.cr-well svg { width: 12px; height: 12px; fill: var(--cue); }
.cr-well.art { background: linear-gradient(135deg, var(--deep), var(--cue)); border: none; }
.cr-well.art svg { fill: var(--sleeve); }
.cr-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 4px; flex-wrap: wrap; }
.cr-track { font-size: 15px; font-weight: var(--weight-heading); color: var(--text-dark); }
.cr-artist { font-size: 13px; color: var(--text-mid); }
.cr-priv { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: var(--weight-display); padding: 2px 7px; border-radius: 10px; color: var(--cue); background: rgba(196, 84, 42, .1); }
.cr-text { font-size: 13px; color: var(--text-body); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 640px; }
.cr-foot { display: flex; gap: 12px; margin-top: 6px; font-size: var(--type-meta); color: var(--text-faint); flex-wrap: wrap; }

/* ── reader states ────────────────────────────────────────────────────── */
.state-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 28px; min-height: 360px; }
.state-ico { width: 64px; height: 64px; border-radius: 50%; background: rgba(212, 154, 106, .12); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.state-ico svg { width: 28px; height: 28px; stroke: var(--wax); fill: none; stroke-width: 1.5; }
.state-h { font-size: 20px; font-weight: var(--weight-display); color: var(--text-dark); margin-bottom: 8px; }
.state-p { font-size: var(--type-body); color: var(--text-mid); max-width: 400px; line-height: 1.6; margin-bottom: 22px; }
.skel-row { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 18px 0; border-bottom: 0.5px solid var(--border-warm); }
.skel { background: linear-gradient(90deg, var(--border-light) 25%, #F0E7DA 50%, var(--border-light) 75%); background-size: 200% 100%; animation: cc-shimmer 1.3s linear infinite; border-radius: 6px; }
@keyframes cc-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel.circle { border-radius: 50%; width: 64px; height: 64px; }
.skel.line { height: 12px; margin-bottom: 8px; }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } .ticker-track, .ticker-label::before { animation: none; } }

/* ── cue detail ───────────────────────────────────────────────────────── */
.cue-detail { max-width: 720px; margin: 0 auto; padding: 36px 28px 60px; }
.cd-back { font-size: var(--type-ui); color: var(--text-mid); text-decoration: none; display: inline-block; margin-bottom: 20px; }
.cd-top { display: flex; gap: 28px; align-items: center; margin-bottom: 26px; flex-wrap: wrap; }
.cd-ring { width: 180px; height: 180px; position: relative; flex-shrink: 0; }
.cd-ring-svg { position: absolute; inset: 0; }
.cd-ring svg { width: 100%; height: 100%; }
.cd-well { position: absolute; inset: 0; margin: auto; width: 92px; height: 92px; border: 0; border-radius: 50%; background: linear-gradient(135deg, var(--deep), var(--cue)); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cd-well svg { width: 30px; height: 30px; fill: var(--sleeve); }
.cd-meta .cd-track { font-size: 24px; font-weight: var(--weight-display); color: var(--text-dark); }
.cd-meta .cd-artist { font-size: 15px; color: var(--text-mid); margin-bottom: 8px; }
.cd-when { font-size: var(--type-ui); color: var(--text-faint); }
.cd-kinds { display: flex; gap: 10px; margin: 20px 0; flex-wrap: wrap; }
.kind { font-size: var(--type-ui); font-weight: var(--weight-heading); color: var(--text-body); border: 0.5px solid var(--border-warm); border-radius: 20px; padding: 6px 14px; display: flex; align-items: center; gap: 7px; }
.kind svg { width: 13px; height: 13px; stroke: var(--cue); fill: none; stroke-width: 1.6; }
.cd-essay { font-size: 15px; color: var(--text-body); line-height: 1.75; margin-bottom: 26px; }
.cd-essay p { margin-bottom: 14px; }
.cd-dial { margin: 0 0 26px; --fader-label: var(--text-mid); --fader-track: var(--border-warm); --fader-fill: var(--wax); --fader-cap: var(--cue); --fader-cap-ring: var(--surface-paper); }
.prov, .whatis { background: var(--card); border: 0.5px solid var(--border-light); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.prov-label, .whatis-label { font-size: var(--type-meta); font-weight: var(--weight-display); letter-spacing: .06em; text-transform: uppercase; color: var(--wax); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.prov-label .verified { color: var(--ok); display: flex; align-items: center; gap: 5px; font-size: var(--type-meta); }
.prov-label .verified svg { width: 13px; height: 13px; stroke: var(--ok); fill: none; stroke-width: 2; }
.prov-row { display: flex; justify-content: space-between; gap: 16px; font-size: var(--type-ui); padding: 5px 0; }
.prov-k { color: var(--text-mid); }
.prov-v { color: var(--text-dark); font-variant-numeric: tabular-nums; text-align: right; }
.whatis-row { display: flex; align-items: flex-start; gap: 11px; padding: 7px 0; }
.whatis-row svg { width: 16px; height: 16px; stroke: var(--cue); fill: none; stroke-width: 1.6; flex-shrink: 0; margin-top: 2px; }
.whatis-row .wt { font-size: 13px; color: var(--text-body); }
.whatis-row .wt b { color: var(--text-dark); font-weight: var(--weight-heading); }
.cd-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.help-btn { width: 22px; height: 22px; border-radius: 50%; border: 0.5px solid var(--border-warm); background: var(--surface-paper); color: var(--text-mid); font-size: var(--type-ui); font-weight: var(--weight-display); font-family: var(--font-family); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; }
.help-pop { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 280px; background: var(--crate); color: var(--text-body-dark); border-radius: 11px; padding: 15px 17px; font-size: 12.5px; line-height: 1.65; box-shadow: 0 8px 30px rgba(0, 0, 0, .28); z-index: 6; text-align: left; }
.help-pop b { color: var(--sleeve); font-weight: var(--weight-heading); }
.help-pop::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: var(--crate); }
.cd-player { width: 100%; margin-bottom: 20px; color-scheme: light; }
/* The video player keeps the video's own 16:9 before it plays. With
   preload="none" the browser knows only the poster, and square cover art made
   the player a tall square that jumped to 16:9 on play; the art now sits
   letterboxed inside the frame. */
video.cd-player { display: block; aspect-ratio: 16 / 9; height: auto; object-fit: contain; background: var(--ink); }

/* ── collection ───────────────────────────────────────────────────────── */
.coll-head { padding: 34px 28px 18px; max-width: 820px; margin: 0 auto; }
.coll-kicker { font-size: var(--type-meta); font-weight: var(--weight-display); letter-spacing: .08em; text-transform: uppercase; color: var(--wax); }
.coll-title { font-size: 28px; font-weight: var(--weight-display); color: var(--text-dark); margin: 6px 0 8px; }
.coll-essay { font-size: var(--type-body); font-style: italic; color: var(--text-body); line-height: 1.7; max-width: 640px; }
.coll-count { font-size: var(--type-ui); color: var(--text-faint); margin-top: 10px; }

/* ── publishing lifecycle ─────────────────────────────────────────────── */
.life { max-width: 820px; margin: 0 auto; padding: 30px 28px 20px; }
.life-track { display: flex; align-items: center; gap: 0; margin-bottom: 8px; flex-wrap: wrap; }
.life-pill { font-size: var(--type-eyebrow); font-weight: var(--weight-display); letter-spacing: .05em; text-transform: uppercase; padding: 5px 12px; border-radius: 20px; white-space: nowrap; }
.life-arrow { color: var(--text-faint); margin: 0 8px; font-size: var(--type-ui); }
.life-note { font-size: var(--type-ui); color: var(--text-faint); margin-top: 6px; }
.lp-private { background: #EAE0D4; color: var(--text-mid); }
.lp-ready { background: rgba(212, 154, 106, .18); color: var(--deep); }
.lp-publishing { background: rgba(240, 138, 75, .18); color: var(--hot); }
.lp-published { background: var(--cue); color: #FFE8DC; }
.lp-needs_attention { background: rgba(122, 61, 30, .14); color: var(--deep); border: 0.5px solid rgba(122, 61, 30, .4); }
.lp-unpublished { background: #EAE0D4; color: var(--text-faint); }

/* ── publish confirm ──────────────────────────────────────────────────── */
.confirm-wrap { position: fixed; inset: 0; z-index: 10; padding: 30px 28px 50px; display: flex; align-items: center; justify-content: center; background: rgba(28, 23, 20, 0.45); overflow: auto; }
.confirm { width: 100%; max-width: 460px; background: var(--card); border: 0.5px solid var(--border-light); border-radius: 16px; padding: 28px; box-shadow: 0 6px 30px rgba(28, 23, 20, .06); }
.confirm-h { font-size: 18px; font-weight: var(--weight-display); color: var(--text-dark); margin-bottom: 6px; }
.confirm-p { font-size: 13px; color: var(--text-mid); line-height: 1.6; margin-bottom: 20px; }
.pkg { background: var(--surface-paper); border: 0.5px solid var(--border-warm); border-radius: 11px; padding: 16px; margin-bottom: 20px; }
.pkg-title { font-size: var(--type-body); font-weight: var(--weight-display); color: var(--text-dark); margin-bottom: 2px; }
.pkg-artist { font-size: var(--type-ui); color: var(--text-mid); margin-bottom: 12px; }
.pkg-row { display: flex; justify-content: space-between; font-size: var(--type-meta); padding: 3px 0; color: var(--text-mid); }
.pkg-row b { color: var(--text-dark); font-weight: var(--weight-heading); }
.confirm-dest { font-size: var(--type-ui); color: var(--text-body); margin-bottom: 18px; overflow-wrap: anywhere; }
.confirm-dest b { color: var(--cue); }
.confirm-actions { display: flex; gap: 10px; }
.confirm-actions .btn { flex: 1; }

/* ── account ──────────────────────────────────────────────────────────── */
.acct { max-width: 640px; margin: 0 auto; padding: 36px 28px 60px; }
.acct-title { font-size: 24px; font-weight: var(--weight-display); color: var(--text-dark); margin-bottom: 4px; }
.acct-sub { font-size: 13px; color: var(--text-mid); margin-bottom: 30px; }
.acct-block { background: var(--card); border: 0.5px solid var(--border-light); border-radius: 14px; padding: 22px 24px; margin-bottom: 18px; }
.ab-label { font-size: var(--type-meta); font-weight: var(--weight-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--wax); margin-bottom: 14px; }
.ab-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 0.5px solid var(--border-light); }
.ab-row:last-child { border-bottom: none; }
.ab-k { font-size: 13px; color: var(--text-mid); }
.ab-v { font-size: var(--type-body); color: var(--text-dark); font-weight: var(--weight-heading); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; text-align: right; }
.ab-v .route-val { color: var(--cue); overflow-wrap: anywhere; }
.ab-v.plain { font-weight: var(--weight-body); color: var(--text-body); }
.linkish { font-size: var(--type-ui); color: var(--cue); cursor: pointer; font-weight: var(--weight-heading); background: none; border: 0; font-family: var(--font-family); padding: 0; }
.linkish:hover { color: var(--hot); }
.state { font-size: var(--type-eyebrow); font-weight: var(--weight-display); letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; }
.state.published { background: rgba(196, 84, 42, 0.12); color: var(--cue); }
.state.ok { background: var(--ok-soft); color: var(--ok); }
.state.off { background: #EAE0D4; color: var(--text-mid); }
.device { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 0.5px solid var(--border-light); }
.device:last-child { border-bottom: none; }
.dev-ico { width: 34px; height: 34px; border-radius: 8px; background: var(--surface-paper); border: 0.5px solid var(--border-warm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dev-ico svg { width: 17px; height: 17px; stroke: var(--text-mid); fill: none; stroke-width: 1.5; }
.dev-meta { flex: 1; min-width: 0; }
.dev-name { font-size: 13px; font-weight: var(--weight-heading); color: var(--text-dark); display: flex; align-items: center; gap: 7px; }
.dev-seen { font-size: var(--type-meta); color: var(--text-faint); }
.dev-actions { display: flex; gap: 14px; }
.dev-actions button { font-size: var(--type-ui); cursor: pointer; background: none; border: 0; font-family: var(--font-family); padding: 0; }
.dev-actions .revoke { color: var(--deep); }
.dev-actions .repair { color: var(--cue); }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #5AB87A; display: inline-block; }
.dot-idle { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); display: inline-block; }
.acct-foot { display: flex; justify-content: flex-end; margin-top: 6px; }
.signout { font-family: var(--font-family); font-size: 13px; color: var(--deep); background: transparent; border: 0.5px solid var(--border-warm); border-radius: 9px; padding: 10px 18px; cursor: pointer; }
.acct-empty { font-size: 13px; color: var(--text-faint); line-height: 1.6; padding: 6px 0; }

/* ── owner control ────────────────────────────────────────────────────── */
.owner-control { position: relative; }
.owner-chip { display: flex; align-items: center; gap: 8px; background: var(--card); border: 0.5px solid var(--border-warm); border-radius: 22px; padding: 6px 8px 6px 14px; font-size: 13px; font-family: var(--font-family); color: var(--text-body); cursor: pointer; }
.owner-chip .oc-av { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--deep), var(--cue)); }
.owner-chip .caret { color: var(--text-faint); }
.owner-menu { position: absolute; top: 46px; right: 0; width: 236px; background: var(--card); border: 0.5px solid var(--border-warm); border-radius: 12px; box-shadow: 0 10px 34px rgba(28, 23, 20, 0.14); padding: 6px; z-index: 5; }
.om-head { padding: 10px 12px 8px; border-bottom: 0.5px solid var(--border-light); margin-bottom: 4px; }
.om-head .n { font-size: 13px; font-weight: var(--weight-display); color: var(--text-dark); }
.om-head .h { font-size: var(--type-meta); color: var(--wax); }
.om-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px; background: none; font-family: var(--font-family); font-size: 13px; color: var(--text-body); cursor: pointer; text-align: left; text-decoration: none; }
.om-item:hover { background: rgba(212, 154, 106, 0.08); }
.om-item svg { width: 15px; height: 15px; stroke: var(--text-mid); fill: none; stroke-width: 1.5; flex-shrink: 0; }
.om-item.pub-status { color: var(--cue); }
.om-sep { height: 0.5px; background: var(--border-light); margin: 4px 8px; }
.om-item.danger { color: var(--deep); }

/* ── share panel ──────────────────────────────────────────────────────── */
.share-panel { max-width: 560px; margin: 0 auto; padding: 30px 28px 50px; }
.share-card { background: var(--card); border: 0.5px solid var(--border-light); border-radius: 14px; padding: 24px; margin-bottom: 16px; }
.share-h { font-size: var(--type-subheading); font-weight: var(--weight-display); color: var(--text-dark); margin-bottom: 4px; }
.share-sub { font-size: 13px; color: var(--text-mid); line-height: 1.6; margin-bottom: 20px; }
.share-state { display: flex; align-items: center; gap: 10px; background: rgba(212, 154, 106, .1); border: 0.5px solid rgba(212, 154, 106, .35); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; flex-wrap: wrap; }
.share-state .st-pill { font-size: var(--type-eyebrow); font-weight: var(--weight-display); letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; background: var(--wax); color: #3D2510; }
.share-state.revoked { background: #EAE0D4; border-color: var(--border-warm); }
.share-state.revoked .st-pill { background: var(--border-warm); color: var(--text-mid); }
.share-state .st-text { font-size: var(--type-ui); color: var(--text-body); }
.share-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; font-size: 13px; padding: 11px 0; border-bottom: 0.5px solid var(--border-light); }
.share-row:last-of-type { border-bottom: none; }
.share-k { color: var(--text-mid); }
.share-v { color: var(--text-dark); text-align: right; overflow-wrap: anywhere; }
.share-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.share-actions .btn { width: auto; padding: 10px 16px; font-size: 13px; }
.revoke-btn { font-family: var(--font-family); font-size: 13px; color: var(--deep); background: transparent; border: 0.5px solid rgba(122, 61, 30, .4); border-radius: 9px; padding: 10px 16px; cursor: pointer; }

/* ── artist side (separate dark context) ─────────────────────────────────
   /for-artist/<token> (gate · verify · reader), /artist (home) and
   /artist/review. Crate-dark on the locked palette only; tints are mixed from
   palette tokens (artist-side mockup, frames 2–5). */
.artist-page { background: var(--crate); color: var(--sleeve); min-height: 100vh; color-scheme: dark; }
.ap-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 28px; border-bottom: 1px solid var(--border-dark); flex-wrap: wrap; }
.ap-brand { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: var(--weight-display); color: var(--sleeve); text-decoration: none; }
.ap-tag { font-size: var(--type-ui); color: var(--text-faint); }
button.ap-tag { background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
a.ap-tag { text-decoration: none; }
a.ap-tag:hover { color: var(--sleeve); }
button.ap-tag:hover { color: var(--sleeve); }
.ap-body { max-width: 620px; margin: 0 auto; padding: 40px 28px 52px; }
.ap-body.ap-wide { max-width: 760px; }

.ap-gate-h { font-size: 24px; font-weight: var(--weight-display); line-height: 1.25; color: var(--sleeve); }
.ap-gate-p { font-size: 15px; color: var(--text-body-dark); line-height: 1.65; margin-top: 12px; max-width: 520px; }
.ap-track-card { display: flex; align-items: center; gap: 16px; margin-top: 26px; padding: 16px; border: 1px solid var(--border-dark); border-radius: 12px; background: var(--surface-raised); }
.ap-art { width: 56px; height: 56px; border-radius: 8px; background: linear-gradient(135deg, var(--deep), var(--cue)); flex-shrink: 0; }
.ap-tc-t { font-size: var(--type-subheading); font-weight: var(--weight-heading); color: var(--sleeve); }
.ap-tc-a { font-size: 13px; color: var(--text-faint); margin-top: 3px; }
.ap-acts { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.ap-btn { font-family: var(--font-family); font-size: 13px; font-weight: var(--weight-display); border-radius: 8px; padding: 11px 18px; border: 1px solid transparent; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.ap-btn-p { background: var(--cue); color: var(--sleeve); }
.ap-btn-p:hover { background: var(--hot); }
.ap-btn-ghost { background: transparent; border-color: var(--border-dark); color: var(--text-body-dark); }
.ap-btn-ghost:hover { border-color: var(--cue); color: var(--sleeve); }
.ap-btn:disabled { opacity: .55; cursor: default; }
.ap-fine { font-size: var(--type-ui); color: var(--text-mid); margin-top: 22px; line-height: 1.55; }
.ap-status { margin-top: 14px; font-size: var(--type-ui); color: var(--wax); line-height: 1.55; }
.ap-status:empty { display: none; }

.ap-code { margin-top: 20px; background: var(--ink); border: 1px solid var(--border-dark); border-radius: 10px; padding: 16px 18px; font-size: 16px; letter-spacing: .02em; color: var(--sleeve); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.ap-code span { min-width: 0; overflow-wrap: anywhere; }
.ap-copy { flex: none; background: none; border: 0; padding: 0; font-family: inherit; font-size: var(--type-ui); color: var(--wax); cursor: pointer; }
.ap-copy:hover { color: var(--sleeve); }
.ap-where { margin-top: 20px; display: grid; gap: 10px; }
.ap-where div { border: 1px solid var(--border-dark); border-radius: 10px; padding: 13px 15px; font-size: 13px; color: var(--text-body-dark); line-height: 1.5; overflow-wrap: anywhere; }
.ap-where b { color: var(--sleeve); font-weight: var(--weight-heading); }
.ap-where code { font-family: inherit; font-size: .95em; color: var(--wax); }
.ap-field { margin-top: 20px; }
.ap-field label { display: block; font-size: var(--type-ui); color: var(--text-faint); margin-bottom: 7px; }
.ap-input { width: 100%; background: var(--ink); border: 1px solid var(--border-dark); border-radius: 8px; padding: 10px 12px; font-family: var(--font-family); font-size: 13px; color: var(--sleeve); }
.ap-input:focus { outline: 2px solid var(--cue); outline-offset: 1px; }
textarea.ap-input { resize: vertical; line-height: 1.5; }

.ap-from { font-size: 13px; color: var(--text-faint); }
.ap-from b { color: var(--wax); font-weight: var(--weight-heading); }
.ap-r-track { font-size: 26px; font-weight: var(--weight-display); margin-top: 8px; color: var(--sleeve); }
.ap-r-artist { font-size: 14px; color: var(--text-faint); margin-top: 4px; }
.ap-player { display: flex; align-items: center; gap: 22px; margin-top: 24px; }
.ap-ring { width: 132px; height: 132px; position: relative; flex-shrink: 0; }
.ap-ring svg { width: 100%; height: 100%; display: block; }
.ap-well { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--deep), var(--cue)); display: grid; place-items: center; cursor: pointer; }
.ap-well svg { width: 22px; height: 22px; fill: var(--sleeve); }
.ap-well:focus-visible { outline: 2px solid var(--sleeve); outline-offset: 3px; }
.ap-plen { font-size: 13px; color: var(--text-faint); line-height: 1.7; }
.ap-video { width: 100%; margin-top: 20px; border-radius: 10px; border: 1px solid var(--border-dark); background: var(--ink); }
.ap-transcript { margin-top: 24px; font-size: 16px; line-height: 1.75; color: var(--sleeve); white-space: pre-wrap; }
.ap-facts { margin-top: 24px; border-top: 1px solid var(--border-dark); }
.ap-fact { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border-dark); font-size: 13px; }
.ap-fact span:first-child { color: var(--text-faint); }
.ap-fact span:last-child { color: var(--text-body-dark); text-align: right; }
.ap-fact span.ap-okv { color: var(--ok-text); }

.ap-home { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.ap-side { border-right: 1px solid var(--border-dark); padding: 26px 22px; }
.ap-who { font-size: 19px; font-weight: var(--weight-display); color: var(--sleeve); }
.ap-who-sub { font-size: var(--type-ui); color: var(--ok-text); margin-top: 5px; display: flex; align-items: center; gap: 6px; }
.ap-chk { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ok-text); display: grid; place-items: center; font-size: 9px; }
.ap-tracks { margin-top: 28px; display: grid; gap: 2px; }
.ap-tr { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 10px; border: 0; border-left: 2px solid transparent; background: none; font-family: inherit; font-size: 14px; color: var(--text-faint); text-align: left; cursor: pointer; }
.ap-tr:hover { color: var(--sleeve); }
.ap-tr.on { border-left-color: var(--cue); background: color-mix(in srgb, var(--cue) 10%, transparent); color: var(--sleeve); }
.ap-tr .ap-n { font-size: var(--type-ui); color: var(--text-mid); }
.ap-tr.on .ap-n { color: var(--wax); }
.ap-main { padding: 26px 28px; min-width: 0; }
.ap-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ap-h-title { font-size: 20px; font-weight: var(--weight-display); margin-right: auto; color: var(--sleeve); }
.ap-seg { display: inline-flex; border: 1px solid var(--border-dark); border-radius: 999px; overflow: hidden; }
.ap-seg button { border: 0; background: none; font-family: inherit; font-size: var(--type-ui); padding: 6px 13px; color: var(--text-faint); cursor: pointer; }
.ap-seg button.on { background: color-mix(in srgb, var(--cue) 16%, transparent); color: var(--sleeve); }
.ap-rows { margin-top: 14px; }
.ap-row { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-dark); text-decoration: none; color: inherit; }
.ap-row:hover .ap-row-who { color: var(--wax); }
.ap-mini { width: 58px; height: 58px; position: relative; }
.ap-mini svg { width: 100%; height: 100%; display: block; }
.ap-mini .ap-well { width: 28px; height: 28px; cursor: inherit; }
.ap-mini .ap-well svg { width: 10px; height: 10px; }
.ap-row-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ap-row-who { font-size: 14px; font-weight: var(--weight-heading); color: var(--sleeve); }
.ap-row-when { font-size: var(--type-ui); color: var(--text-mid); }
.ap-pill { font-size: var(--type-eyebrow); font-weight: var(--weight-display); letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; }
.ap-pill-s { background: var(--wax); color: var(--crate); }
.ap-pill-p { border: 1px solid var(--border-dark); color: var(--text-faint); }
.ap-pill-v { border: 1px solid var(--border-dark); color: var(--wax); }
.ap-row-tx { font-size: 14px; color: var(--text-body-dark); line-height: 1.6; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ap-h-foot { font-size: var(--type-ui); color: var(--text-mid); margin-top: 18px; line-height: 1.55; }
.ap-empty { font-size: 14px; color: var(--text-faint); padding: 24px 0; line-height: 1.6; }

.ap-claim { border: 1px solid var(--border-dark); border-radius: 12px; background: var(--surface-raised); padding: 18px; margin-top: 16px; }
.ap-claim-h { font-size: var(--type-subheading); font-weight: var(--weight-heading); color: var(--sleeve); }
.ap-claim dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin-top: 12px; font-size: 13px; }
.ap-claim dt { color: var(--text-faint); }
.ap-claim dd { color: var(--text-body-dark); overflow-wrap: anywhere; }
.ap-signals { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; font-size: 13px; color: var(--text-body-dark); }
.ap-signals label { display: flex; align-items: center; gap: 6px; }

.ap-state { max-width: 520px; margin: 0 auto; padding: 90px 28px; text-align: center; }
.ap-state h1 { font-size: 20px; font-weight: var(--weight-display); color: var(--sleeve); margin-bottom: 10px; }
.ap-state p { font-size: var(--type-body); color: var(--text-body-dark); line-height: 1.6; }
.ap-state .ap-acts { justify-content: center; }

@media (max-width: 760px) {
  .ap-home { grid-template-columns: 1fr; min-height: 0; }
  .ap-side { border-right: 0; border-bottom: 1px solid var(--border-dark); }
}
@media (max-width: 520px) {
  .ap-bar { padding: 14px 16px; }
  .ap-body { padding: 28px 16px 44px; }
  .ap-side, .ap-main { padding-left: 16px; padding-right: 16px; }
  .ap-player { gap: 16px; }
  .ap-ring { width: 112px; height: 112px; }
  .ap-well { width: 56px; height: 56px; }
  .ap-mini .ap-well { width: 28px; height: 28px; }
  .ap-state { padding: 64px 16px; }
}

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .bh { padding: 16px 20px; }
  .pub-hero, .roll, .cue-detail, .coll-head, .acct, .share-panel, .life { padding-left: 20px; padding-right: 20px; }
  .arch-nav { padding-left: 20px; padding-right: 20px; gap: 16px; }
  .arch-tools { margin-left: 0; width: 100%; }
  .cd-top { gap: 20px; }
  .cd-ring { width: 140px; height: 140px; }
  .cd-well { width: 72px; height: 72px; }
  .identity { align-items: flex-start; }
}
@media (max-width: 460px) {
  .cue-row { grid-template-columns: 48px 1fr; gap: 12px; }
  .cr-ring { width: 48px; height: 48px; }
  .cr-well { width: 26px; height: 26px; }
  .pair-digit { width: 38px; height: 48px; font-size: 22px; }
}

/* ── Charts (Q19) ─────────────────────────────────────────────────────────
   Built to docs/design/cuecue-charts-mockup.html. The story sits in the dark
   room band inside the light page; the month in full sits on the paper.
   Markup comes from src/lib/charts.ts (every class is `ch-`). */
.ch-page-bar, .ch-story, .ch-dig { --room: #16110E; --room-line: #3A2F27; --room-text: #C8B9A6; --room-faint: #8A7A68; }
.ch-num { font-variant-numeric: tabular-nums lining-nums; }
/* Aligned with the identity and nav above it, which run the page's width. */
.ch-page-bar { padding: 22px 28px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ch-stepper { display: flex; align-items: center; gap: 10px; }
.ch-step { width: 30px; height: 30px; border-radius: 50%; border: 0.5px solid var(--border-warm); background: none; color: var(--text-body); font: inherit; font-size: 16px; cursor: pointer; }
.ch-step:disabled { opacity: 0.3; cursor: default; }
.ch-step-mo { font-size: 15px; font-weight: var(--weight-display); min-width: 128px; text-align: center; }
.ch-subtabs { display: flex; gap: 8px; }
.ch-subtabs button { font: inherit; font-size: 14px; border: 1px solid var(--border-light); background: transparent; color: var(--text-mid); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.ch-subtabs button[aria-pressed="true"] { background: var(--crate); border-color: var(--crate); color: var(--sleeve); }
.ch-pane[hidden] { display: none; }

.ch-story { margin-top: 28px; }
.ch-moment { background: var(--room); color: var(--sleeve); min-height: 88vh; display: grid; align-items: center; border-bottom: 1px solid #221A15; position: relative; overflow: hidden; }
.ch-m-in { max-width: 1040px; width: 100%; margin: 0 auto; padding: 72px 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.ch-kick { font-size: 16px; color: var(--wax); font-style: italic; }
.ch-huge { font-size: clamp(96px, 17vw, 220px); font-weight: 800; line-height: 0.86; letter-spacing: -0.045em; margin-top: 10px; }
.ch-line { font-size: clamp(28px, 4vw, 46px); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin-top: 18px; max-width: 14ch; }
.ch-line em { font-style: italic; font-weight: 600; color: var(--hot); }
.ch-line-wide { max-width: 22ch; }
.ch-sub { font-size: 17px; color: var(--room-text); margin-top: 14px; max-width: 34ch; }
.ch-ring-svg { overflow: visible; }

.ch-m-open .ch-m-in { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.ch-m-open .ch-ring { position: relative; }
.ch-m-open .ch-ring svg { width: min(78vw, 560px); height: auto; display: block; }
.ch-over { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.ch-over > div { text-align: center; }
.ch-mo { font-size: clamp(26px, 4.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.ch-ct { font-size: 17px; color: var(--room-text); margin-top: 6px; }
.ch-petal { transform-origin: 280px 280px; transform: scale(0.25); opacity: 0; transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s; }
.seen .ch-petal { transform: scale(1); opacity: 1; }

.ch-wall { display: flex; flex-wrap: wrap; gap: 7px 6px; max-width: 440px; }
.ch-wall i { display: block; width: 3px; height: 22px; border-radius: 2px; background: var(--wax); opacity: 0; transform: scaleY(0.2); transition: opacity 0.2s, transform 0.25s; }
.seen .ch-wall i { opacity: 0.9; transform: scaleY(1); }
.ch-wall i.last { background: var(--hot); }

.ch-nightring svg { width: 100%; max-width: 440px; height: auto; display: block; margin: 0 auto; }

.ch-grow { display: flex; align-items: flex-end; gap: 10px; height: 260px; }
.ch-grow .ch-bar { flex: 1; background: linear-gradient(to top, var(--deep), var(--hot)); border-radius: 6px 6px 2px 2px; height: 4%; transition: height 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ch-grow-l { display: flex; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--room-faint); }
.ch-grow-l span { flex: 1; text-align: center; }

.ch-said { background: #1E1712; }
.ch-said .ch-m-in { grid-template-columns: 1fr; }
.ch-rec { position: relative; height: 40px; margin-top: 34px; }
.ch-rec svg { width: 100%; height: 40px; display: block; }
.ch-play { position: absolute; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 3px solid var(--hot); background: var(--room); color: var(--sleeve); cursor: pointer; display: grid; place-items: center; }
.ch-play:disabled { opacity: 0.5; cursor: default; }
.ch-play svg { width: 22px; height: 22px; margin-left: 3px; }
.ch-quote { font-size: clamp(24px, 3.2vw, 36px); font-style: italic; line-height: 1.3; max-width: 28ch; margin-top: 40px; color: var(--sleeve); }
.ch-quote-by { font-size: 15px; color: var(--room-faint); margin-top: 12px; }
.ch-cue-link { color: var(--wax); }

.ch-m-quiet .ch-m-in { grid-template-columns: auto 1fr; }
.ch-hole { width: 220px; height: 220px; }
.ch-hole svg { width: 100%; height: 100%; display: block; }

.ch-record { background: var(--surface-paper); color: var(--text-dark); }
.ch-rec-in { max-width: 1040px; margin: 0 auto; padding: 56px 28px 64px; display: grid; grid-template-columns: 260px 1fr 1fr; gap: 44px; align-items: start; }
.ch-mini svg { width: 100%; height: auto; display: block; }
.ch-list h3 { font-size: 15px; font-weight: 600; color: var(--text-mid); padding-bottom: 8px; border-bottom: 1px solid var(--border-light); }
.ch-list ol { list-style: none; }
.ch-list li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--border-light); font-size: 15px; }
.ch-list .ch-rk { color: var(--text-mid); font-size: 13px; }
.ch-list .ch-by { font-size: 13px; color: var(--text-mid); margin-left: 6px; }
.ch-list .ch-n { font-size: 14px; color: var(--text-mid); }
.ch-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--cue); margin-left: 6px; }
.ch-foot { max-width: 1040px; margin: 0 auto; padding: 0 28px 56px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-mid); }
.ch-share { font: inherit; font-size: 14px; font-weight: 600; background: var(--crate); color: var(--sleeve); border: none; border-radius: 999px; padding: 11px 20px; cursor: pointer; }

.ch-dig { background: var(--room); color: var(--sleeve); margin-top: 22px; }
.ch-dig-in { max-width: 1040px; margin: 0 auto; padding: 32px 28px 48px; }
.ch-dig-bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ch-dig-bar h2 { font-size: 24px; font-weight: 700; margin-right: auto; }
.ch-search { display: flex; align-items: center; gap: 8px; background: #221B16; border: 1px solid var(--room-line); border-radius: 999px; padding: 8px 14px; min-width: 260px; }
.ch-search svg { flex-shrink: 0; }
.ch-search input { font: inherit; font-size: 15px; background: transparent; border: none; color: var(--sleeve); outline: none; width: 100%; }
.ch-search input::placeholder { color: var(--room-faint); }
.ch-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.ch-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; min-height: 30px; }
.ch-chip { font: inherit; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; background: #2A211B; border: 1px solid var(--room-line); color: var(--sleeve); border-radius: 999px; padding: 5px 8px 5px 12px; cursor: pointer; }
.ch-chip span { color: var(--room-faint); font-size: 15px; line-height: 1; }
.ch-dig-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 40px; margin-top: 10px; align-items: start; }
.ch-dig-ring svg { width: 100%; height: auto; display: block; }
.ch-dig-ring .ch-d { cursor: pointer; outline: none; transition: opacity 0.15s; }
.ch-dig-ring .ch-d:focus-visible { stroke: var(--hot); stroke-width: 2; }
.ch-dig-ring .ch-d.off { opacity: 0.18; }
.ch-dig-ring .ch-d.on { stroke: #F4EDE4; stroke-width: 1.5; }
.ch-res-h { font-size: 14px; color: var(--room-faint); padding-bottom: 8px; border-bottom: 1px solid var(--room-line); display: flex; justify-content: space-between; }
.ch-rows { list-style: none; max-height: 520px; overflow: auto; }
.ch-dig-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 40px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid #2A211B; font-size: 14.5px; }
.ch-dig-row.ch-dig-t { grid-template-columns: 52px minmax(0, 1fr) 20px; }
.ch-dig-row.ch-dig-empty { grid-template-columns: 1fr; }
.ch-dig-name { min-width: 0; display: flex; align-items: baseline; }
.ch-dig-row .ch-nm { font: inherit; text-align: left; background: none; border: none; color: var(--sleeve); cursor: pointer; padding: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-dig-row .ch-nm:hover { color: var(--hot); }
.ch-dig-row .ch-by { color: var(--room-faint); font-size: 13px; margin-left: 6px; white-space: nowrap; }
.ch-dig-row .ch-n { text-align: right; color: var(--room-text); font-size: 13.5px; }
.ch-dig-row .ch-hr { color: var(--room-faint); font-size: 13px; }
.ch-strip { display: grid; grid-template-columns: repeat(var(--ch-days, 30), 1fr); gap: 2px; height: 14px; }
.ch-strip i { display: block; border-radius: 2px; background: rgba(244, 237, 228, 0.05); }
.ch-strip i.f { background: none; border: 1px solid rgba(58, 47, 39, 0.55); }
.ch-cuedot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--hot); }
.ch-dig-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; font-size: 12.5px; color: var(--room-faint); }
.ch-dl { font: inherit; font-size: 13px; border: 1px solid var(--room-line); color: var(--room-text); border-radius: 999px; padding: 7px 14px; text-decoration: none; }

@media (max-width: 820px) {
  .ch-m-in { grid-template-columns: 1fr; gap: 28px; }
  .ch-m-quiet .ch-m-in { grid-template-columns: 1fr; }
  .ch-hole { width: 150px; height: 150px; }
  .ch-rec-in { grid-template-columns: 1fr; gap: 28px; }
  .ch-mini { max-width: 240px; }
  .ch-dig-grid { grid-template-columns: 1fr; }
  .ch-dig-row { grid-template-columns: minmax(0, 1fr) 100px 36px; }
}
@media (max-width: 640px) {
  .ch-page-bar, .ch-m-in, .ch-rec-in, .ch-foot, .ch-dig-in { padding-left: 16px; padding-right: 16px; }
  .ch-search { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ch-petal, .ch-wall i, .ch-grow .ch-bar { transition: none !important; }
}
