/* FWD Unfiltered: shared styles for the main screen, facilitator remote and student phones */
:root {
  --bg: #0a0d13;
  --bg-2: #0f131b;
  --panel: #151a24;
  --panel-2: #1c2230;
  --line: #283042;
  --text: #eef2f8;
  --muted: #95a1b6;
  --faint: #5d677a;
  --blue: #1f6fd1;
  --blue-hi: #3d8df2;
  --lime: #9bd13b;
  --coral: #f0675a;
  --gold: #e8b23a;
  --danger: #e5484d;
  --ok: #3fbf7f;
  --A: #3d8df2;
  --B: #9bd13b;
  --C: #f0675a;
  --radius: 16px;
  --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:disabled { cursor: default; opacity: .45; }
a { color: var(--blue-hi); }
.hidden { display: none !important; }

/* ---------- brand ---------- */
.logo { font-family: var(--display); font-weight: 800; font-style: italic; letter-spacing: -.01em; line-height: 1; display: inline-flex; align-items: baseline; gap: .12em; }
.logo .fwd { color: var(--blue-hi); }
.logo .chev { color: var(--lime); letter-spacing: -.18em; margin-right: .1em; }
.logo .word { color: var(--text); }
.suits { letter-spacing: .15em; }
.suit-red { color: var(--coral); }
.suit-blue { color: var(--blue-hi); }
.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--lime); font-size: .8em; }

/* ---------- avatars ---------- */
.av { --c: var(--blue); width: 2.4em; height: 2.4em; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 70%, white), var(--c) 70%);
  color: #fff; font-weight: 700; font-size: .78em; box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3.5px var(--c); }
.av.sm { width: 1.8em; height: 1.8em; font-size: .62em; box-shadow: 0 0 0 1.5px var(--bg-2), 0 0 0 2.5px var(--c); }
.tick { display: inline-grid; place-items: center; width: 1.05em; height: 1.05em; border-radius: 50%; background: var(--blue-hi); color: #fff; font-size: .7em; margin-left: .25em; vertical-align: .1em; }

/* ---------- the feed (the FWD app) ---------- */
.app { background: var(--bg-2); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.app-top { display: flex; align-items: center; justify-content: space-between; padding: .9em 1.1em .5em; }
.app-top .logo { font-size: 1.5em; }
.app-top .clock { color: var(--muted); font-size: .8em; font-variant-numeric: tabular-nums; }
.stories { display: flex; gap: .9em; padding: .3em 1.1em .9em; border-bottom: 1px solid var(--line); overflow: hidden; }
.story { display: flex; flex-direction: column; align-items: center; gap: .35em; font-size: .72em; color: var(--muted); min-width: 3.6em; }
.story .av { font-size: 1.05em; }
.feed { flex: 1; overflow-y: auto; padding: .6em 0 2em; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.feed > * { animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.moment-divider { display: flex; align-items: center; gap: .8em; padding: 1.1em 1.1em .5em; font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .85em; color: var(--muted); }
.moment-divider::before, .moment-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.moment-divider b { color: var(--lime); }

.post { margin: .5em .8em; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-head { display: flex; align-items: center; gap: .7em; padding: .75em .9em; }
.post-head .who { line-height: 1.2; }
.post-head .name { font-weight: 700; font-size: .95em; }
.post-head .handle { color: var(--muted); font-size: .78em; }
.post-body { padding: 0 .95em .9em; font-size: 1em; line-height: 1.45; }
.post-img { position: relative; aspect-ratio: 4 / 3.1; overflow: hidden; display: flex; align-items: flex-end; }
.post-img .caption { position: relative; z-index: 2; padding: 1.1em 1.1em 1.2em; font-family: var(--display); font-weight: 800; font-size: 2.05em; line-height: .98; text-shadow: 0 2px 18px rgba(0,0,0,.6); max-width: 92%; }
.post-img .caption em { font-style: normal; color: var(--lime); }
.post-img .mark { position: absolute; right: .8em; top: .7em; z-index: 2; font-size: .9em; opacity: .85; }
.post-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0) 60%); z-index: 1; }
.scene-night-bus { background:
  radial-gradient(circle at 18% 30%, rgba(255,170,70,.55) 0 3%, transparent 9%),
  radial-gradient(circle at 70% 22%, rgba(255,120,60,.45) 0 2.5%, transparent 8%),
  radial-gradient(circle at 44% 16%, rgba(120,170,255,.45) 0 2%, transparent 7%),
  radial-gradient(circle at 86% 40%, rgba(230,40,40,.5) 0 3%, transparent 10%),
  linear-gradient(165deg, #0c1636 0%, #1a2c63 45%, #6b3322 85%, #d9772b 120%); }
.scene-car { background:
  linear-gradient(100deg, transparent 38%, rgba(255,210,120,.28) 48%, transparent 58%),
  radial-gradient(ellipse at 70% 75%, rgba(232,178,58,.55), transparent 55%),
  linear-gradient(170deg, #121212, #2a2110 60%, #5a4212); }
.scene-mirror { background:
  radial-gradient(ellipse at 50% 35%, rgba(255,255,255,.16), transparent 45%),
  linear-gradient(90deg, transparent 20%, rgba(255,255,255,.06) 20.5% 79.5%, transparent 80%),
  linear-gradient(160deg, #2b1747, #5b2a6e 55%, #b14a7c); }
.scene-studio { background:
  repeating-linear-gradient(90deg, rgba(155,209,59,.0) 0 14px, rgba(155,209,59,.35) 14px 20px, rgba(155,209,59,0) 20px 34px),
  radial-gradient(ellipse at 50% 120%, rgba(61,141,242,.6), transparent 60%),
  linear-gradient(170deg, #07241f, #0d3b3a 55%, #134b62);
  -webkit-mask: none; }
.scene-studio::before { content: ''; position: absolute; inset: 30% 0 32%; background: linear-gradient(90deg, transparent, rgba(155,209,59,.9) 20%, rgba(61,141,242,.9) 50%, rgba(240,103,90,.9) 80%, transparent);
  clip-path: polygon(0 50%,5% 30%,10% 60%,15% 20%,20% 70%,25% 10%,30% 80%,35% 35%,40% 65%,45% 5%,50% 95%,55% 25%,60% 75%,65% 15%,70% 60%,75% 30%,80% 70%,85% 40%,90% 55%,95% 45%,100% 50%,100% 55%,0 55%); opacity: .75; }
.scene-default { background: linear-gradient(160deg, #1b2440, #283a6b); }

.post-actions { display: flex; align-items: center; gap: 1.2em; padding: .7em .95em .3em; color: var(--muted); font-size: .85em; }
.post-actions .heart { color: var(--coral); }
.comments { padding: .2em .95em .8em; display: grid; gap: .45em; }
.comment { display: flex; gap: .55em; align-items: flex-start; font-size: .85em; line-height: 1.35; }
.comment b { margin-right: .35em; }
.offering-bar { margin: 0 .8em .8em; display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .6em .9em; border-radius: 12px; background: color-mix(in srgb, var(--blue) 70%, var(--panel)); font-size: .82em; font-weight: 600; }
.offering-bar .offering-tags { display: none; }
.fi.rev .offering-bar .offering-tags { display: flex; }
.fi.rev .offering-bar .ob-arrow { display: none; }
.offering-tags { display: flex; flex-wrap: wrap; gap: .35em; }
.tag { display: inline-flex; align-items: center; gap: .3em; padding: .22em .6em; border-radius: 999px; border: 1px solid currentColor; font-size: .78em; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tag.status { color: var(--gold); } .tag.money { color: #6fc3ff; } .tag.belonging { color: var(--coral); } .tag.confidence { color: var(--lime); }
.tag.protection { color: #b69cff; } .tag.family { color: #ff9ecb; } .tag.identity { color: #7ee0c9; }

.profile { padding: .2em .95em 1em; }
.profile .bio b { color: var(--lime); }

/* DMs and group chats */
.dm { margin: .5em .8em; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dm-head { display: flex; align-items: center; gap: .6em; padding: .65em .9em; border-bottom: 1px solid var(--line); font-weight: 700; font-size: .9em; }
.dm-head .req { margin-left: auto; font-size: .72em; font-weight: 700; color: var(--coral); text-transform: uppercase; letter-spacing: .06em; }
.dm-head .grp { width: 1.8em; height: 1.8em; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); font-size: .9em; }
.msgs { padding: .7em .8em .8em; display: grid; gap: .4em; }
.msg { max-width: 82%; display: flex; gap: .5em; align-items: flex-end; }
.msg .bubble { padding: .5em .8em; border-radius: 18px 18px 18px 6px; background: var(--panel-2); font-size: .92em; line-height: 1.35; }
.msg .from { display: block; font-size: .72em; font-weight: 700; margin-bottom: .1em; }
.msg.me { margin-left: auto; flex-direction: row-reverse; }
.msg.me .bubble { background: var(--blue); border-radius: 18px 18px 6px 18px; }
.msg.sys { max-width: 100%; justify-content: center; color: var(--muted); font-size: .82em; font-style: italic; }
.note { margin: .6em .8em; padding: .6em .9em; border-radius: 12px; border: 1px dashed var(--line); color: var(--muted); font-size: .86em; text-align: center; }

/* consequence card in the feed */
.consequence { margin: .8em .8em; padding: .9em 1em; border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--k) 22%, var(--panel)), var(--panel)); border: 1px solid color-mix(in srgb, var(--k) 55%, var(--line)); }
.consequence .chose { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: .8em; color: var(--k); }
.consequence .lbl { font-weight: 700; margin: .15em 0 .35em; }
.consequence .txt { color: #cfd6e3; line-height: 1.45; font-size: .95em; }
.deltas { display: flex; flex-wrap: wrap; gap: .4em; margin-top: .6em; }
.delta { font-size: .75em; font-weight: 700; padding: .2em .55em; border-radius: 999px; background: var(--panel-2); }
.delta.up { color: var(--ok); } .delta.down { color: var(--coral); }
.letter { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 9px; font-family: var(--display); font-weight: 800; color: #0a0d13; background: var(--k); flex: none; }
.kA { --k: var(--A); } .kB { --k: var(--B); } .kC { --k: var(--C); }

.ending-banner { margin: 1em .8em .4em; padding: 1.2em; border-radius: var(--radius); text-align: center; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.6em; letter-spacing: .04em; }
.tone-danger { background: linear-gradient(135deg, #4a1518, #22141a); color: #ffb3b0; }
.tone-hope { background: linear-gradient(135deg, #123a46, #16233a); color: #9fe6ff; }
.tone-win { background: linear-gradient(135deg, #25400f, #13261d); color: var(--lime); }
.tone-neutral { background: linear-gradient(135deg, #2c2f3a, #1a1e28); color: #d9dde6; }

/* ---------- character panel ---------- */
.meters { display: grid; gap: .7em; }
.meter { display: grid; grid-template-columns: 7.2em 1fr 3.2em; align-items: center; gap: .8em; }
.meter .lab { font-weight: 600; font-size: .95em; }
.meter .track { height: .7em; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.meter .fill { height: 100%; border-radius: 999px; background: var(--c); transition: width 1.1s cubic-bezier(.2,.8,.2,1), background .6s; }
.meter .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9em; position: relative; }
.meter .pop { position: absolute; right: calc(100% + .5em); top: 0; font-weight: 800; font-size: .85em; animation: pop 2.6s ease both; }
@keyframes pop { 0% { opacity: 0; transform: translateY(6px); } 15%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
.pull { margin-top: .2em; }
.pull .split { display: flex; height: .7em; border-radius: 999px; overflow: hidden; background: var(--panel-2); }
.pull .split i { display: block; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.pull .legend { display: flex; justify-content: space-between; gap: 1em; font-size: .78em; color: var(--muted); margin-top: .4em; }
.pull .legend b { color: var(--text); }
.circle { display: flex; flex-wrap: wrap; gap: .5em; }
.person { display: inline-flex; align-items: center; gap: .45em; padding: .25em .7em .25em .3em; border-radius: 999px; background: var(--panel-2); font-size: .85em; font-weight: 600; border: 1px solid transparent; }
.person.pull { border-color: color-mix(in srgb, var(--coral) 60%, transparent); }
.person.support { border-color: color-mix(in srgb, var(--lime) 60%, transparent); }
.person .kind { font-size: .75em; color: var(--muted); font-weight: 500; }

/* ---------- generic controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .75em 1.2em; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); font-weight: 700; }
.btn:hover:not(:disabled) { border-color: var(--muted); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--blue-hi); }
.btn.go { background: var(--lime); border-color: var(--lime); color: #0a0d13; }
.btn.small { padding: .45em .8em; font-size: .85em; border-radius: 10px; }
.btn.block { width: 100%; }
input.field { width: 100%; padding: .85em 1em; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 1.05em; }
input.field:focus { outline: 2px solid var(--blue-hi); outline-offset: 1px; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 2px; }

/* ---------- facilitator controls (drawer + remote) ---------- */
#h-controls, .ctl { display: grid; gap: .8em; }
.c-status { padding: .9em 1em; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.c-where { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.15em; letter-spacing: .02em; }
.c-what { color: var(--muted); font-size: .9em; margin-top: .2em; }
.c-primary { padding: 1em; font-size: 1.1em; }
.c-sec { display: grid; gap: .5em; padding-top: .4em; }
.c-h { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .8em; color: var(--muted); cursor: default; }
details.c-sec summary { cursor: pointer; }
.c-row { display: flex; gap: .5em; }
.c-row.wrap { flex-wrap: wrap; }
.c-row .btn { flex: 1; justify-content: flex-start; text-align: left; }
.c-row.wrap .btn { flex: 0 1 auto; }
.c-row .letter { font-size: .9em; }
.c-list { margin: 0; padding-left: 1.2em; display: grid; gap: .35em; font-size: .92em; color: #d7dde8; line-height: 1.4; }
.c-foot { display: flex; justify-content: space-between; align-items: center; gap: .6em; flex-wrap: wrap; }
.c-mode { color: var(--muted); font-size: .88em; display: flex; align-items: center; gap: .5em; }
.c-mode select { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: .35em .5em; font: inherit; }
.c-note { color: var(--muted); font-size: .86em; line-height: 1.45; margin: 0; }
.c-remote { display: grid; grid-template-columns: 7em 1fr; gap: 1em; align-items: center; border-top: 1px solid var(--line); padding-top: 1em; }
#c-remote-qr { background: #fff; border-radius: 10px; padding: .4em; aspect-ratio: 1; }
#c-remote-qr svg { width: 100%; height: 100%; display: block; }
.cbar { display: grid; grid-template-columns: auto 1fr 2em; gap: .6em; align-items: center; }
.ctrack { height: .6em; background: var(--panel-2); border-radius: 999px; overflow: hidden; }
.ctrack i { display: block; height: 100%; transition: width .4s; }
.cnum { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.c-help { padding: .9em 1em; border-radius: 14px; background: color-mix(in srgb, var(--coral) 14%, var(--panel)); border: 1px solid var(--coral); display: grid; gap: .5em; }
.c-help-t { font-weight: 800; color: #ffb8b0; }
.c-help-row { display: flex; justify-content: space-between; align-items: center; gap: .6em; font-size: .92em; }
.c-help-note { font-size: .8em; color: var(--muted); }

/* toast messages */
#fwd-toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; max-width: min(90vw, 560px);
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 15px; transition: opacity .25s, transform .25s; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
#fwd-toast.show { opacity: 1; transform: translate(-50%, 0); }
#fwd-toast.err { background: var(--coral); color: #0a0d13; border-color: var(--coral); }

/* real images (fall back to the illustrated backgrounds and initials when missing) */
.av { position: relative; overflow: hidden; }
.av .av-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.post-img .post-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; object-fit: cover; z-index: 0; }
.post-img .post-photo ~ .mark { display: none; }
.bubble .msg-photo { display: block; width: min(10em, 100%); aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin: .15em 0; }
.bubble:has(.msg-photo) .msg-fallback { display: none; }
.post-img:has(.post-photo)::before { display: none; }
.bubble:has(.msg-photo) { padding: .3em; background: transparent; }

/* more illustrated scene backgrounds (used until real images are added) */
.scene-game { background:
  radial-gradient(circle at 25% 30%, rgba(155,209,59,.55) 0 4%, transparent 14%),
  radial-gradient(circle at 75% 60%, rgba(183,102,255,.6) 0 5%, transparent 18%),
  repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 2px, transparent 2px 6px),
  linear-gradient(150deg, #160b33, #3b1670 55%, #0d4f5c); }
.scene-school { background:
  repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 60px, transparent 60px 140px),
  linear-gradient(180deg, rgba(255,255,255,.18), transparent 35%),
  linear-gradient(160deg, #2b3a55, #4f6a8f 60%, #c4c9a8); }
.scene-pitch { background:
  linear-gradient(180deg, transparent 55%, rgba(255,255,255,.18) 55.5% 56.2%, transparent 56.8%),
  repeating-linear-gradient(90deg, #2f7d3a 0 50px, #2a7034 50px 100px),
  linear-gradient(180deg, #8fb7e6 0 30%, #2f7d3a 30%); }
.scene-gym { background:
  radial-gradient(ellipse at 50% -10%, rgba(255,255,255,.35), transparent 50%),
  linear-gradient(90deg, rgba(0,0,0,.4), transparent 30% 70%, rgba(0,0,0,.4)),
  linear-gradient(170deg, #1a1a1a, #3a2a20 60%, #6b4a2a); }
.scene-bedroom { background:
  radial-gradient(circle at 80% 25%, rgba(255,214,150,.55), transparent 30%),
  radial-gradient(circle at 15% 80%, rgba(255,120,180,.35), transparent 35%),
  linear-gradient(160deg, #3b2747, #6d4a6e 55%, #c48a8a); }
.scene-news { background:
  repeating-linear-gradient(-45deg, rgba(255,255,255,.06) 0 12px, transparent 12px 24px),
  linear-gradient(160deg, #3a0d12, #8a1c24 55%, #d8442f); }

/* ---------- Reels: short silent looping clips ---------- */
.reel { position: relative; aspect-ratio: 9 / 13; max-height: 62vh; margin: 0 auto; overflow: hidden; border-radius: 14px; isolation: isolate; }
.reel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0) 45%), linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,0) 18%); z-index: 2; pointer-events: none; }
.reel .reel-poster, .reel .reel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.reel.has-video .reel-poster { display: none; }
.reel-badge { position: absolute; left: .8em; top: .75em; z-index: 3; font: 800 .72em/1 var(--display); letter-spacing: .12em; padding: .45em .65em; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; }
.reel-views { position: absolute; right: .8em; top: .75em; z-index: 3; font-weight: 700; font-size: .8em; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.reel-side { position: absolute; right: .7em; bottom: 5.5em; z-index: 3; display: flex; flex-direction: column; gap: .9em; align-items: center; color: #fff; font-size: .78em; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.reel-side span { display: flex; flex-direction: column; align-items: center; gap: .15em; }
.reel-side b { font-size: 1.6em; line-height: 1; }
.reel-side .heart { color: #ff5a7a; }
.reel-cap { position: absolute; left: 0; right: 3.6em; bottom: 0; z-index: 3; padding: .9em 1em 1em; color: #fff; font-size: .95em; line-height: 1.3; }
.reel-cap em { font-style: normal; color: var(--lime); font-weight: 800; }
.reel-sound { margin-top: .4em; font-size: .82em; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel-play { position: absolute; left: 50%; top: 45%; z-index: 3; width: 3.4em; height: 3.4em; margin: -1.7em 0 0 -1.7em; border-radius: 50%; display: grid; place-items: center; font-size: 1.4em; color: #fff; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); animation: reel-pulse 2.2s ease-in-out infinite; }
@keyframes reel-pulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.12); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .reel-play { animation: none; } }

/* Facilitator controls: one obvious button, the rest under "More options" */
.c-more { border: 1px solid var(--line); border-radius: 14px; padding: .2em .9em .8em; background: var(--panel); }
.c-more > summary { cursor: pointer; padding: .7em 0 .3em; font-weight: 700; color: var(--muted); list-style: none; }
.c-more > summary::before { content: '▸ '; }
.c-more[open] > summary::before { content: '▾ '; }
.c-more > summary::-webkit-details-marker { display: none; }
.c-keyhint { text-align: center; color: var(--muted); font-size: .85em; margin-top: -.2em; }
kbd { font-family: inherit; font-weight: 700; padding: .05em .45em; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); font-size: .9em; }

/* Private check-ins: neutral until staff choose to look */
.c-help.quiet { display: flex; align-items: center; gap: .6em; padding: .6em .9em; background: var(--panel); border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); }
.c-help.quiet .c-help-q { flex: 1; font-weight: 600; color: var(--text); }
.c-help-dot { width: .6em; height: .6em; border-radius: 50%; background: var(--gold); flex: none; }
.c-help { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); background: color-mix(in srgb, var(--gold) 8%, var(--panel)); }
.c-help-t { color: #ffe0a3; }
.c-help-hide { margin-left: .5em; }

/* Staff register (locked) */
.c-help.c-unlock { flex-wrap: wrap; }
.c-code { display: flex; gap: .4em; flex-basis: 100%; }
.c-code input { flex: 1; min-width: 0; font: inherit; padding: .45em .7em; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.c-code-err { flex-basis: 100%; color: #ffb3a8; font-size: .85em; }
.c-unlock .c-help-note { flex-basis: 100%; }
.c-muted { color: var(--muted) !important; font-weight: 600; }
.c-priv { gap: .6em; }
.c-priv-head { display: flex; justify-content: space-between; align-items: center; font-size: .8em; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.c-reg > summary { cursor: pointer; font-weight: 700; padding: .2em 0; }
.c-reg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5em, 1fr)); gap: .35em; margin-top: .5em; }
.c-reg-row { display: flex; align-items: center; gap: .45em; padding: .35em .55em; border-radius: 9px; background: var(--panel-2); font-size: .88em; }
.c-reg-row.off { opacity: .5; }
.c-reg-row.flag { outline: 1.5px solid var(--gold); }
.c-reg-n { font-weight: 800; color: var(--muted); min-width: 2em; }
.c-reg-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-reg-name i, .c-help-row i { color: var(--muted); }
