/* poopify member app, "Big Screen" look (D10; target docs/ui/04-prototype.html). No inline styles: the CSP is style-src 'self'. */
:root{color-scheme:dark;--bg:#000;--card:#0e0e0e;--soft:#1c1c1c;--line:#262626;--field:#6b6b6b;--text:#fff;--muted:#a3a3a3;--lime:#d4ef87;--danger:#ff8a8a}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font:15px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif}
body{padding-inline:16px;overflow-x:hidden}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;padding:0}
button:disabled{cursor:not-allowed;opacity:.4}
a{color:var(--lime)}
:focus-visible{outline:2px solid var(--lime);outline-offset:2px}
[tabindex="-1"]:focus{outline:none}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.sp{flex:1}
.row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.note{font-size:13px;color:var(--muted);margin:6px 0 12px}
h1.page{font-size:19px;margin:0}
h2.sub,h3.sub{font-size:15px;margin:20px 0 8px}

/* Shell: bottom bar on phones, left rail on computers */
.app{display:flex;justify-content:center;gap:16px;min-height:100vh}
.col{width:100%;max-width:640px;min-width:0;padding-bottom:96px}
.topbar{position:sticky;top:0;z-index:10;background:rgba(0,0,0,.92);display:flex;align-items:center;gap:10px;padding:10px 0;min-height:60px}
.brand{font-weight:900;font-size:21px;letter-spacing:-.03em;color:var(--text)}.brand i{color:var(--lime);font-style:normal}
.private{border:1px solid #444;border-radius:99px;padding:2px 9px;font-size:10px;letter-spacing:.12em;color:#cfcfcf}.private:empty{display:none}
.avbtn{min-width:44px;min-height:44px;display:grid;place-items:center;border-radius:50%}
nav{position:fixed;left:0;right:0;bottom:0;z-index:20;display:flex;justify-content:space-around;align-items:center;padding:6px 0 calc(8px + env(safe-area-inset-bottom));background:#000;border-top:1px solid var(--soft)}
nav .brand{display:none}
nav button{display:grid;justify-items:center;align-content:center;gap:2px;font-size:11px;color:#9a9a9a;min-width:60px;min-height:48px;position:relative;border-radius:12px}
nav button.on{color:#fff}
nav .ico{font-size:20px;line-height:1}
nav #feedTab{order:1}nav #discoverTab{order:2}nav .post{order:3}nav #messagesTab{order:4}nav #draftTab{order:5}
/* Wave 10: the phone bar is Home, Discover, ＋, Messages, Me for everyone. Hosts reach 🔔 Requests from their own channel, with a dot on Me. */
@media(max-width:899px){nav #requestsTab{display:none}nav #draftTab.alt{color:#fff}}
.mdot{position:absolute;top:4px;right:16px;width:8px;height:8px;border-radius:50%;background:var(--lime)}
.plus{width:48px;height:34px;border-radius:11px;background:var(--lime);color:#000;display:grid;place-items:center;font-size:24px;font-weight:800}
.post .txt{display:none}
.badge{position:absolute;top:0;right:8px;background:var(--lime);color:#000;border-radius:99px;font-size:10px;font-weight:800;padding:0 5px;line-height:1.5}
body.posting nav,body.posting .col>.topbar,body.on-clip .col>.topbar{display:none}
@media(min-width:900px){
 nav{position:sticky;top:0;align-self:flex-start;height:100vh;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:6px;width:230px;flex:none;padding:18px 14px;border-top:0;border-right:1px solid var(--soft)}
 nav .brand{display:block;font-size:26px;margin:0 10px 16px}
 nav button{display:flex;align-items:center;gap:12px;padding:10px 12px;font-size:17px;font-weight:600;color:#ccc;min-height:44px;justify-items:start}
 nav button:hover{background:var(--soft)}
 nav button.on{color:#fff;background:var(--soft)}
 nav #feedTab,nav #discoverTab,nav .post,nav #messagesTab,nav #draftTab,nav #requestsTab{order:0}
 .mdot{display:none}
 nav .post{margin-top:10px;background:var(--lime);color:#000;justify-content:center;font-weight:800}nav .post:hover,nav .post.on{background:#e2ff9b;color:#000}
 .post .plus{width:auto;height:auto;background:none;font-size:20px}.post .txt{display:inline}
 .badge{position:static;margin-left:auto;font-size:12px;padding:1px 7px}
 body.posting nav{display:flex}
 .col{border-right:1px solid var(--soft);padding-bottom:40px;padding-right:16px}
 nav:not([hidden])+.col>.topbar .brand{display:none}
}

/* Controls */
.btn{background:var(--lime);color:#000;font-weight:800;border-radius:99px;padding:8px 18px;min-height:44px}
.btn:hover:not(:disabled){background:#e2ff9b}
.ghost{border:1px solid #555;border-radius:99px;padding:7px 16px;font-weight:700;min-height:44px}
.ghost:hover:not(:disabled){background:var(--soft)}
.iconbtn{min-width:44px;min-height:44px;border-radius:50%;font-size:20px;color:var(--muted)}.iconbtn:hover{background:var(--soft);color:#fff}
.link{color:var(--lime);text-decoration:underline;min-height:32px}
.back{font-size:22px;min-width:44px;min-height:44px;border-radius:50%}.back:hover{background:var(--soft)}
input,textarea,select{background:var(--card);border:1px solid var(--field);border-radius:12px;padding:11px 12px;width:100%;min-height:44px}
textarea{resize:vertical}
select{width:auto}
.field{display:grid;gap:6px;margin:0 0 14px}
.field>label,.lbl,#emailForm>label{font-size:13px;color:var(--muted);font-weight:600}
.field .row input{flex:1;min-width:0;width:auto}
.err{color:var(--danger)}

/* Feed */
.pills{display:flex;align-items:center;gap:8px;padding:2px 0 4px}
#order{display:flex;gap:8px}
.pill{padding:7px 16px;border-radius:99px;background:var(--soft);font-size:14px;font-weight:600;min-height:40px}
.pill[aria-pressed=true]{background:#fff;color:#000}
#feedNote{margin:4px 0 14px}
.av{width:28px;height:28px;border-radius:50%;flex:none;display:inline-grid;place-items:center;font-weight:800;font-size:12px;color:#000}
.av.big{width:64px;height:64px;font-size:26px}
.t0{background:#d4ef87}.t1{background:#87c7ef}.t2{background:#efc987}.t3{background:#ef87b4}.t4{background:#b487ef}.t5{background:#87efc2}
.card{margin:0 0 22px}
.thumb{position:relative;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:linear-gradient(135deg,#1d2b3a,#3a5a78)}
.thumb.textonly{background:linear-gradient(135deg,#2a2a2a,#5a5a5a)}
.moment-poster{position:absolute;inset:0;display:block;color:#fff;text-decoration:none;border-radius:14px}
.moment-poster:focus-visible{outline-offset:-3px;outline-width:3px}
.moment-poster img{width:100%;height:100%;object-fit:cover;display:block}
.poster-fallback{display:none;position:absolute;inset:0;place-items:center;padding:20px;text-align:center;color:#ccc;font-size:13px}
.thumbnail-unavailable img{display:none}.thumbnail-unavailable .poster-fallback{display:grid}
.play{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);width:62px;height:62px;border-radius:50%;background:rgba(0,0,0,.6);display:grid;place-items:center;font-size:24px;color:var(--lime)}
.rng{position:absolute;top:10px;right:10px;background:var(--lime);color:#000;font-weight:800;font-size:12px;padding:2px 8px;border-radius:7px}
.ov{position:absolute;left:0;right:0;bottom:0;padding:48px 14px 12px;background:linear-gradient(transparent,rgba(0,0,0,.88));font-size:18px;font-weight:700;line-height:1.25;overflow-wrap:anywhere}
a.ov{color:#fff;text-decoration:none;pointer-events:none}a.ov>span{pointer-events:auto}  /* only the title text opens the post; the gradient above it passes taps to the picture (QA F1, 375px) */.thumb:has(.moment-poster[hidden]) .ov{display:none}  /* the feed title opens the post; hidden while its card plays */
.thumb .player{position:absolute;inset:0}
.thumb .player:empty{display:none}
.player iframe,.video-shell iframe{display:block;width:100%;height:100%;aspect-ratio:16/9;border:0}
.playback-status{font-size:12px;color:var(--muted);margin:6px 2px 0}.playback-status:empty{display:none}
.meta{display:flex;align-items:center;gap:8px;padding:8px 2px;font-size:13px;color:var(--muted);min-width:0}
.meta .name{color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:40%}
.meta>span:not(.sp):not(.votes):not(.av){white-space:nowrap}
.votes{display:inline-flex;align-items:center;background:var(--soft);border-radius:99px;flex:none}
.votes button{min-width:40px;min-height:40px;color:#bbb;font-weight:800;border-radius:99px}
.votes button[aria-pressed=true]{color:var(--lime)}
.votes strong{color:#fff;min-width:18px;text-align:center}
.talk{display:inline-flex;align-items:center;min-height:40px;min-width:48px;padding:0 10px;border-radius:99px;color:#ddd;white-space:nowrap;text-decoration:none}.talk:hover{background:var(--soft)}
.summary{margin:4px 0 8px;color:#ddd;white-space:pre-wrap;overflow-wrap:anywhere}
.src{font-size:13px;color:var(--muted);margin:0}
.cmt{display:flex;gap:10px;padding:8px 0}
.cmt .body{flex:1;min-width:0}
.cmt .who{font-size:13px;color:var(--muted)}.cmt .who b{color:#fff}
.cmt p{margin:2px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}
.compose{display:flex;gap:8px;padding:10px 0 4px;align-items:center}
.compose textarea{flex:1;min-width:0;width:auto;border-radius:22px;padding:10px 14px}
.text-examples{margin:26px 0;border-top:1px solid var(--soft);padding-top:14px}.text-examples>summary{cursor:pointer;color:var(--muted);padding:12px 0}
.empty{padding:36px 20px;text-align:center;color:var(--muted);list-style:none}
.empty h3{color:#fff;margin:0 0 6px;font-size:19px}.empty p{margin:0 auto 16px;max-width:420px}

/* Clip page (/c/<id>) */
.clip-title{font-size:20px;line-height:1.25;margin:12px 0 6px;overflow-wrap:anywhere}
#clip .src{margin-top:8px}
#clip .meta{flex-wrap:wrap;row-gap:4px}
.share{min-height:40px;padding:0 14px;flex:none}
.sharelink{margin:0 0 8px}
.replies{margin-left:38px;padding-left:12px;border-left:2px solid var(--soft)}
.reply{font-size:13px;color:var(--muted);min-height:32px;padding:0 2px;font-weight:600}.reply:hover{color:#fff}
.field label small{font-weight:400}

/* Welcome (first run) */
#welcome{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:20px;margin:0 0 18px}
#welcome h2{font-size:26px;margin:4px 0 8px;letter-spacing:-.02em}
#welcome>p{color:#ccc;margin:0}
.eyebrow{color:var(--lime);font-weight:800;letter-spacing:.08em;font-size:12px;margin:0}
.steps{list-style:none;counter-reset:s;padding:0;margin:16px 0;display:grid;gap:12px}
.steps li{counter-increment:s;display:grid;grid-template-columns:30px 1fr;column-gap:10px;color:var(--muted);font-size:14px}
.steps li::before{content:counter(s);grid-row:span 2;width:26px;height:26px;border-radius:50%;background:var(--lime);color:#000;font-weight:800;display:grid;place-items:center}
.steps strong{color:#fff}
@media(min-width:700px){.steps{grid-template-columns:repeat(3,1fr)}}

/* Sign in and waiting room */
.hero{max-width:560px;margin:0 auto;padding:28px 0;text-align:center}
.hero h2{font-size:38px;line-height:1.05;margin:10px 0 12px;letter-spacing:-.03em}
.hero p{color:#bbb;font-size:17px}.hero .eyebrow{color:var(--lime);font-size:12px}
.hero[data-state=waiting]::before{content:"🍿";display:block;font-size:56px}
.hero[data-state=waiting] .eyebrow,.hero[data-state=declined] .eyebrow{display:none}
.hero .actions{margin:18px 0}
#emailForm{text-align:left;margin-top:22px}#emailForm .row input{flex:1;min-width:0;width:auto}#emailForm>label{display:block;margin-bottom:6px}

/* Channel (/@handle). Banner and avatar colours: the member's chosen preset (wave 7a), else picked from the handle. */
.byline{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:45%;min-height:40px;color:inherit;text-decoration:none}
.byline .name{max-width:none}.byline:hover b{text-decoration:underline}
.cmt .who .byline{display:inline;max-width:none;min-height:0}.cmt .who .byline span{color:var(--muted)}
.follow{min-height:36px;padding:4px 14px;flex:none}
.ghost.on{border-color:var(--lime);color:var(--lime)}
.banner{height:140px;border-radius:14px}
.b0{background:linear-gradient(90deg,#1d2b3a,#3a5a78,#d4ef87)}.b1{background:linear-gradient(90deg,#2d1f3a,#6a4a8a,#ef87b4)}.b2{background:linear-gradient(90deg,#3a2a1a,#8a6a3a,#ffd84a)}.b3{background:linear-gradient(90deg,#0a0a0a,#2a2a2a,#555)}
.chhead{padding:0 6px}
.av.huge{width:84px;height:84px;font-size:34px;margin-top:-42px;border:4px solid #000}
.chrow{display:flex;align-items:flex-start;gap:10px;margin-top:8px}.chrow .grow{flex:1;min-width:0}
.chname{font-size:21px;font-weight:800;margin:0;overflow-wrap:anywhere}
.handle{color:var(--muted);margin:0}
.hostbadge{font-size:12px;font-weight:700;background:var(--lime);color:#000;border-radius:6px;padding:1px 6px;vertical-align:middle}
.counts{font-size:14px;color:var(--muted);margin:6px 0 14px}.counts b{color:#fff}
.account{border-top:1px solid var(--soft);margin-top:28px;padding-top:12px}
.tabs button{flex:1;padding:12px 0;color:var(--muted);font-weight:700;min-height:44px}.tabs button[aria-pressed=true]{color:#fff;box-shadow:inset 0 -3px 0 var(--lime)}
a.mini{display:block;color:#fff;text-decoration:none}
.tabs{display:flex;border-bottom:1px solid var(--soft);margin-bottom:12px}
.tabs span{padding:12px 4px;font-weight:700}.tabs .on{box-shadow:inset 0 -3px 0 var(--lime)}.tabs small{font-weight:400;color:var(--muted)}
.grid2{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:520px){.grid2{grid-template-columns:1fr 1fr;gap:12px}}
.mini{position:relative;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:linear-gradient(135deg,#3a2a1a,#8a6a3a)}
.mini img{width:100%;height:100%;object-fit:cover;display:block;opacity:.75}
.mini .t{position:absolute;left:0;right:0;bottom:0;padding:22px 8px 6px;font-size:13px;font-weight:700;background:linear-gradient(transparent,rgba(0,0,0,.85));overflow-wrap:anywhere}
.draft .note{margin:6px 0}

/* Host badge on bylines (Sentinel H3) */
.byline .hostbadge,.cmt .who .hostbadge,.cmt .who .byline span.hostbadge{flex:none;font-size:11px;padding:0 5px;margin-left:2px;color:#000}
.meta .byline .name{min-width:0}

/* Edit profile (prototype screen 7): preset swatches. Colours come from .t0-.t5 and .b0-.b3 above. */
#profile .banner{margin-top:4px}
.sw{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.sw button{width:44px;height:44px;border-radius:50%;border:3px solid transparent}
.sw.b button{width:72px;border-radius:10px}
.sw button[aria-pressed=true]{border-color:#fff;box-shadow:0 0 0 2px #000 inset}
#profile .field .err{margin:0;font-size:13px}
#profile input[aria-invalid=true]{border-color:var(--danger)}

/* Requests (host) */
ul.plain{list-style:none;padding:0;margin:0}
.req{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--soft)}
.req .who{flex:1;min-width:0}.req .who small{display:block;color:var(--muted);overflow-wrap:anywhere}
.req .av{width:40px;height:40px;font-size:16px}
.req.empty{display:block;border:0}

/* Post a clip (full screen) */
#editor .topbar{margin-bottom:4px;background:#000}
.video-shell{aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:var(--card);margin:4px 0 0}.video-shell:empty{display:none}
.transcript-workbench,.post-transcript{border:1px solid var(--line);border-radius:14px;background:var(--card);margin:16px 0;padding:14px}
.transcript-workbench{scroll-margin-top:82px}.workbench-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.workbench-head h2{font-size:17px;margin:0}.workbench-head .note{margin:3px 0 0}
.workbench-head .ghost{flex:none}.transcript-workbench textarea{margin:7px 0 0;max-height:220px}
.transcript-find{display:flex;align-items:center;gap:9px;margin:12px 0 8px}.transcript-find input{flex:1;min-width:0}.transcript-find span{font-size:12px;color:var(--muted);white-space:nowrap}
.transcript-results{max-height:390px;overflow-y:auto;overscroll-behavior:contain;border-top:1px solid var(--line)}
.transcript-line{padding:10px 3px;border-bottom:1px solid var(--line)}.transcript-line-main{display:flex;align-items:baseline;gap:10px;line-height:1.6;overflow-wrap:anywhere}
.transcript-time{flex:none;color:var(--lime);font-variant-numeric:tabular-nums;font-weight:700;font-size:13px;background:#202816;border-radius:6px;padding:3px 7px;min-width:55px;text-align:center}
.transcript-time:hover{background:#354a20}.transcript-time.muted{color:var(--muted);background:none;font-weight:400}
.transcript-line-actions{display:flex;gap:8px;margin:8px 0 0 65px}.transcript-line-actions button{font-size:13px;color:var(--text);padding:8px 10px;min-height:36px;border:1px solid var(--line);border-radius:8px;background:#202020}
.transcript-line-actions button:hover{color:var(--lime);border-color:var(--lime)}.transcript-empty{padding:12px 0}mark{background:#5a4721;color:#fff;border-radius:2px}
.post-transcript{margin:15px 0}.post-transcript .transcript-find{margin-top:14px}
#transcriptDialog{width:min(620px,calc(100% - 24px));max-height:85vh;overflow:auto;background:var(--card);color:var(--text);border:1px solid #505050;border-radius:16px;padding:20px}
#transcriptDialog::backdrop{background:#000b}#transcriptDialog h2{margin:0 0 8px;font-size:19px}#transcriptDialog textarea{margin:8px 0 12px}
@media(max-width:500px){.workbench-head{display:block}.workbench-head .ghost{margin-top:10px}.transcript-find{align-items:stretch;flex-wrap:wrap}.transcript-find span{width:100%}.transcript-results{max-height:48vh}}
#videoStatus{min-height:20px}
.trim{padding:4px 0 8px}
.times{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.times .field{margin:0}
#rangeNote b{color:#fff}

/* Local fixture demo */
.fixture{border-bottom:1px solid var(--soft);padding:10px 0;margin-bottom:10px;font-size:13px;color:var(--muted)}.fixture p{margin:0 0 8px}#signed{font-weight:700;color:#fff}

/* Status toast */
#status{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:60;max-width:min(92vw,520px);background:#fff;color:#000;font-weight:700;font-size:14px;padding:10px 18px;border-radius:22px;box-shadow:0 8px 24px rgba(0,0,0,.6);margin:0;text-align:center}
#status:empty{padding:0;box-shadow:none;background:none}
@media(min-width:900px){#status{bottom:24px}}
body.posting #status{bottom:24px}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Uploaded pictures (wave 7b): an <img> fills the avatar circle or banner; Upload is a dashed pill beside the swatches. */
.av.pic{background:#1a1a1a;overflow:hidden}
.av img,.banner img{width:100%;height:100%;object-fit:cover;display:block}
.banner{overflow:hidden}
.sw .upl,.sw.b .upl{width:auto;height:auto;border:1px dashed #555;border-radius:99px;padding:7px 14px;font-size:13px;background:none;color:inherit;cursor:pointer}
.req .name-link{color:inherit;text-decoration:none}.req .name-link:hover b{text-decoration:underline}
/* Topics (wave 8; prototype docs/ui/07). Chip on clip cards and the clip page; topic page banner from the address (.g0-.g5). */
.tchip{display:inline-flex;align-items:center;gap:4px;flex:none;min-height:32px;padding:0 10px;border-radius:99px;background:var(--soft);color:#e6e6e6;font-size:12px;font-weight:700;text-decoration:none;white-space:nowrap}
.tchip:hover{background:#2a2a2a}
.clip-topic{margin:12px 0 0}
.tbanner{height:120px;border-radius:14px;display:grid;place-items:center;font-size:60px;margin-bottom:12px}
.g0{background:linear-gradient(135deg,#1d2b3a,#3a5a78)}.g1{background:linear-gradient(135deg,#2d1f3a,#6a4a8a)}.g2{background:linear-gradient(135deg,#3a2a1a,#8a6a3a)}.g3{background:linear-gradient(135deg,#1a3a2a,#3a8a5a)}.g4{background:linear-gradient(135deg,#3a1a1a,#8a3a3a)}.g5{background:linear-gradient(135deg,#2a2a2a,#5a5a5a)}
#topic .chrow{margin-top:0}
.desc{margin:8px 0 0;color:#ccc;overflow-wrap:anywhere}
.postin{margin:0 0 12px}
.tpick{flex-wrap:wrap;padding:0}
.tpick .pill{min-height:44px}
#topicHint{font-weight:400}
#editorTitle .in{color:var(--muted);font-weight:600}
@media(max-width:480px){.card .meta{flex-wrap:wrap;row-gap:0}}
/* Discover and host topic tools (wave 9; prototype docs/ui/07). Rows reuse .req; the topic icon tile reuses .g0-.g5. */
.sec{font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:18px 0 2px}
.ticon{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;font-size:24px;flex:none;text-decoration:none}
.req .who .line{display:block;color:#ccc;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sw.e button{background:var(--soft);font-size:22px}
#tfAddr[readonly]{color:var(--muted);border-style:dashed}
#topicform input[aria-invalid=true]{border-color:var(--danger)}
#tfAddrHint,#tfNameErr{margin:0}
.movetopic{margin:4px 0 8px}.movetopic select{flex:1;min-width:0}
#discQ{margin:2px 0 6px}  /* search (wave 9, D18); results reuse .sec and .req */
/* Messages (wave 10; prototype docs/ui/10). Plain text: bodies are esc()'d into a pre-wrapped <p>, never linked. */
.acts{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.hosttools{margin:0 0 14px}
@media(min-width:900px){.hosttools{display:none}}
.bnote{background:var(--soft);border-radius:14px;padding:12px 14px;color:#ccc;font-size:14px;display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:8px 0 14px}
.bnote .ghost{min-height:36px;padding:4px 14px}
.dmrow{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--soft);width:100%;text-align:left;min-height:64px}
.dmrow .av{width:46px;height:46px;font-size:18px}
.dmrow .who{flex:1;min-width:0}.dmrow .who b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dmrow .pv{display:block;color:#ccc;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dmrow .pv.unread{color:#fff;font-weight:700}
.dmrow small{display:block;color:var(--muted);font-size:12px}
.dmrow>.ghost{flex:none;min-height:36px;padding:5px 14px;display:inline-flex;align-items:center}
.dot{width:10px;height:10px;border-radius:50%;background:var(--lime);flex:none}
#convo .topbar .grow{flex:1;min-width:0}
.convowho{max-width:none;gap:10px}.convowho h1{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.convowho small{display:block;color:var(--muted);font-size:12px}
.av.mid{width:36px;height:36px;font-size:15px}
.menuwrap{position:relative;flex:none}#convoMenu{min-width:44px;padding:0 12px}
.menu{position:absolute;right:0;top:52px;background:#141414;border:1px solid #333;border-radius:14px;padding:8px;z-index:30;width:min(300px,86vw);display:grid;gap:6px}
.menu p{margin:0;font-size:12px;color:var(--muted);padding:0 4px}
.menu .ghost{display:flex;align-items:center;justify-content:center;text-decoration:none;color:inherit}
.menu .danger{color:var(--danger);border-color:#5a2a2a}
.msgs{display:grid;gap:10px;padding:8px 0 12px}
.earlier{justify-self:center;min-height:36px;padding:4px 14px}
.mrow{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
.mrow.mine{align-items:flex-end}
.bub{max-width:80%;padding:9px 13px;border-radius:18px 18px 18px 6px;background:var(--soft);overflow-wrap:anywhere;display:grid;gap:6px;min-width:0}
.mine .bub{border-radius:18px 18px 6px 18px;background:#1f2a10;border:1px solid #3b5220}
.dmtext{margin:0;white-space:pre-wrap}
.mtime{font-size:11px;color:var(--muted)}
.del{font-size:11px;color:var(--muted);text-decoration:underline;min-height:24px;padding:0 4px}.del:hover{color:#fff}
.gone{font-style:italic;color:var(--muted)}
.clipmini{display:flex;gap:10px;align-items:center;background:#000;border-radius:12px;padding:6px;color:#fff;text-decoration:none;min-width:0;text-align:left}
.clipmini .th{width:72px;aspect-ratio:16/9;border-radius:8px;display:grid;place-items:center;font-size:22px;flex:none;overflow:hidden}
.clipmini .th img{width:100%;height:100%;object-fit:cover;display:block}
.clipmini b{display:block;font-size:13px;line-height:1.25;overflow-wrap:anywhere}.clipmini small{color:var(--muted);font-size:12px}
.clipmini.gone{padding:10px 12px;display:block}
#convoFoot{position:sticky;bottom:calc(66px + env(safe-area-inset-bottom));background:var(--bg);padding:2px 0 6px}
#convoFoot .compose input{flex:1;min-width:0;width:auto;border-radius:22px;padding:10px 14px}
@media(min-width:900px){#convoFoot{bottom:0}}
#sendClipCard .clipmini{background:var(--card);margin:4px 0 14px}
.pick{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--soft);width:100%;text-align:left;min-height:56px}
.pick .radio{width:22px;height:22px;border-radius:50%;border:2px solid #555;flex:none}
.pick[aria-pressed=true] .radio{border-color:var(--lime);background:radial-gradient(var(--lime) 45%,transparent 50%)}
.pick .av{width:36px;height:36px;font-size:15px}
.pick .who{flex:1;min-width:0}.pick small{display:block;color:var(--muted)}

/* Unmodified Google pre-approved light pill artwork; OAuth href is unchanged. */
.gbtn{display:inline-flex;align-items:center;min-height:44px;padding:2px 0;border-radius:22px;text-decoration:none}.gbtn img{display:block;width:180px;height:40px}.gbtn:focus-visible{outline:2px solid var(--lime);outline-offset:3px}

/* Member sharing: existing admission gate applies to every copied link. */
.invite-strip{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:10px 0;border-bottom:1px solid var(--soft);margin-bottom:12px}
.invite-copy{flex:1;min-width:160px}.invite-copy p{margin:0;font-size:13px}.invite-copy small{font-size:12px;color:var(--muted)}
.invite-strip button{font-size:13px;min-height:44px}#inviteStatus{flex-basis:100%;margin:0;font-size:13px;color:var(--lime)}#inviteStatus:empty{display:none}
.share-post{display:inline-grid;place-items:center;min-width:44px;min-height:44px;background:var(--soft);color:var(--muted);border-radius:99px}.share-post:hover{background:var(--line);color:#fff}.share-post svg{width:20px;height:20px}
#copyDialog{width:min(440px,calc(100% - 32px));padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--card);color:var(--text)}
#copyDialog::backdrop{background:rgba(0,0,0,.7)}#copyDialog h2{margin:0 0 12px;font-size:20px}#copyDialog label{display:block;margin-bottom:6px}#copyDialog input{width:100%;min-width:0}#copyDialog form{text-align:right}
/* Full video and Make a clip (wave 12; docs/ui/13 prototype) */
.rng.full{background:var(--lime);color:#000;font-weight:800;border-radius:99px;padding:2px 10px}
.make{background:var(--lime);color:#000;font-weight:800;border-radius:99px;min-height:44px;padding:0 12px;flex:none;white-space:nowrap}.make:hover{background:#e2ff9b}
.card .meta{flex-wrap:wrap}
.seg{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.seg button{min-height:44px;padding:8px;font-weight:700;background:var(--card)}.seg button[aria-checked=true]{background:var(--lime);color:#000}.seg button:focus-visible{outline-offset:-4px}.seg button[aria-checked=true]:focus-visible{outline-color:#000}
.fullnote{background:var(--soft);border-radius:10px;padding:10px 12px;margin:0 0 14px}
.from{font-size:13px;background:var(--soft);border-radius:10px;padding:8px 11px;margin:0 0 12px}.from b{color:#fff}
/* Reporting and moderation (wave 11; prototype docs/ui/16). The sheet is a native <dialog>, a bottom sheet on phones. */
.more{display:inline-grid;place-items:center;min-width:44px;min-height:44px;border-radius:99px;background:var(--soft);color:#fff;font-weight:800;letter-spacing:1px;flex:none}.more:hover{background:var(--line)}
.cmt .who .more,.mtime .more{min-width:32px;min-height:32px;margin-left:6px;vertical-align:middle}
#clip .meta{flex-wrap:wrap}
.danger{color:var(--danger);border-color:#5a2a2a}.btn.danger{background:var(--danger);color:#000}
.tag{display:inline-block;font-size:12px;font-weight:700;padding:2px 9px;border-radius:99px;background:#3a2020;color:var(--danger);white-space:nowrap}
.tag.ok{background:#27301a;color:var(--lime)}.tag.mute{background:var(--soft);color:var(--muted)}
.mini .tag.hid{position:absolute;top:6px;left:6px}
.warnbar,.hiddenbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#27301a;border:1px solid #3b5220;border-radius:12px;padding:10px 12px;margin:10px 0}
.warnbar p{margin:0;flex:1;min-width:180px;overflow-wrap:anywhere}
#sheet{width:min(440px,calc(100% - 32px));max-height:90vh;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--card);color:var(--text)}
#sheet::backdrop{background:rgba(0,0,0,.7)}#sheet h2{margin:0 0 12px;font-size:20px}#sheet p{overflow-wrap:anywhere}
@media(max-width:600px){#sheet{margin:auto 0 0;width:100%;max-width:100%;border-radius:16px 16px 0 0;border-bottom:0}}
.sheetmenu{display:grid;gap:8px}.sheetmenu .ghost{text-align:left}
#sheet fieldset{border:0;padding:0;margin:8px 0}#sheet legend{font-size:13px;color:var(--muted);font-weight:600;margin-bottom:4px}
.reason{display:flex;gap:10px;align-items:center;padding:9px 2px;border-bottom:1px solid var(--soft);min-height:44px}
.reason input{accent-color:var(--lime);width:18px;height:18px;margin:0}
#sheet textarea,.warnform textarea{width:100%}
.count{font-size:12px;color:var(--muted);text-align:right;margin:4px 0}
.dmline{background:#2a2410;border:1px solid #ffd84a55;color:#f3e7b0;border-radius:10px;padding:8px 11px;font-size:14px}
.tabs button[aria-selected=true]{color:#fff;box-shadow:inset 0 -3px 0 var(--lime)}
.rcard{border:1px solid var(--line);background:var(--card);border-radius:14px;padding:12px;margin:0 0 14px;display:grid;gap:8px;min-width:0}
.rcard .note,.rcard .by,.hist{margin:0}.rcard .by{font-size:13px;overflow-wrap:anywhere}
.rcard blockquote{margin:0;background:var(--soft);border-radius:10px;padding:9px 11px;overflow-wrap:anywhere}
.rcard blockquote small{display:block;color:var(--muted);margin-top:4px}
.rcard summary{cursor:pointer;font-size:14px}.rcard ul{margin:6px 0 0;padding-left:18px;font-size:13px;color:#ddd;overflow-wrap:anywhere}
.warnform{display:grid;gap:6px}
.hist{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.lst{border-bottom:1px solid var(--soft);padding:12px 0;display:grid;gap:4px;list-style:none}.lst small{color:var(--muted)}
/* Cover pictures (013): the editor preview is the card shape; the server already cropped it to 16:9. */
.coverpv img{width:100%;height:100%;object-fit:cover;display:block}.covertools{margin-top:8px}
.coverpanel{margin-top:8px;display:grid;gap:8px;justify-items:start}.pastebox{display:block;width:100%;resize:none;border:1px dashed var(--line,#444);border-radius:12px;background:transparent;padding:10px 12px;color:inherit;font:inherit}.pastebox:focus{border-style:solid}

.pick .check{width:22px;height:22px;border-radius:5px;border:2px solid #555;flex:none;text-align:center;line-height:18px}
.pick[aria-pressed=true] .check{border-color:var(--lime);background:var(--lime);color:var(--bg)}
.pick[aria-pressed=true] .check:after{content:"✓"}
.cmt.flash{animation:cmtflash 2.5s ease-out}@keyframes cmtflash{0%,40%{background:rgba(212,239,135,.18)}100%{background:transparent}}@media(prefers-reduced-motion:reduce){.cmt.flash{animation:none;outline:2px solid var(--lime)}}  /* a shared comment link lands here */
/* Message requests (014): the Requests row, request cards (collapsed to two lines; no player or picture), who-can-message-you. */
.reqrow{border:0;border-bottom:1px solid var(--soft);justify-content:space-between}
.reqcard{border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin:10px 0;background:var(--card)}
.reqcard .row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.reqcard .who{flex:1;min-width:0}.reqcard .who small{display:block;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.reqcard .dmtext{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 4px}
.reqcard .dmtext.clamp{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.reqcard .showall{min-height:32px;padding:2px 10px;font-size:13px}
.reqcard .note{margin:6px 0;overflow-wrap:anywhere}
.dmwho{margin:22px 0 10px}.dmwho fieldset{border:1px solid var(--line);border-radius:14px;padding:10px 14px;margin:0}
.dmwho legend{font-weight:800;padding:0 6px}
.dmwho label{display:grid;grid-template-columns:18px 1fr;column-gap:10px;align-items:start;padding:9px 0}.dmwho label input{grid-row:1/3;margin-top:3px}.dmwho small{color:var(--muted)}

/* Approved Rounded screen icons: shared by member app and public homepage. */
.ui-icon{display:inline-block;width:20px;height:20px;flex:none;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
nav .ui-icon{width:24px;height:24px}
nav .ico{display:flex;align-items:center}
.talk{gap:4px;min-height:44px}
