:root { color-scheme: dark; --bg: #0b0a0e; --card: #15111a; --line: #2a2130; --ink: #ece6ea; --mut: #8f8599; --acc: #ff4d6a; --good: #5fe39a; --bad: #ff8597; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
[hidden] { display: none !important; }
.muted { color: var(--mut); } .small { font-size: 12px; } .center { text-align: center; } .good { color: var(--good); } .bad { color: var(--bad); }
.mark { color: var(--acc); }
.screen { min-height: 100vh; }
#login { display: flex; flex-direction: column; justify-content: center; padding: 24px 20px; max-width: 420px; margin: 0 auto; gap: 12px; }
.brand { font-size: 34px; font-weight: 800; letter-spacing: .18em; text-align: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
form.card { display: grid; gap: 10px; }
label { display: grid; gap: 4px; font-size: 13px; color: var(--mut); }
input, textarea, select { width: 100%; background: #0f0c13; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: inherit; }
input:focus, textarea:focus { outline: 2px solid var(--acc); outline-offset: -1px; }
button { font: inherit; color: var(--ink); background: #221a28; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; cursor: pointer; }
button:active { transform: scale(.98); }
button.primary { background: var(--acc); border-color: var(--acc); color: #160509; font-weight: 700; }
button.link { background: none; border: 0; color: var(--acc); padding: 4px; }
button:disabled { opacity: .5; }
.err { color: var(--bad); min-height: 1.2em; margin: 0; font-size: 13px; }
header { position: sticky; top: 0; z-index: 3; background: rgba(11,10,14,.94); backdrop-filter: blur(8px); padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
header b { letter-spacing: .12em; }
main { padding: 12px 12px calc(84px + env(safe-area-inset-bottom)); display: grid; gap: 12px; max-width: 720px; margin: 0 auto; }
h2 { margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.big { font-size: 22px; font-weight: 800; }
.row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #1f1924; align-items: center; } .row:last-child { border: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { padding: 8px 12px; border-radius: 999px; background: #1f1924; border: 1px solid var(--line); font-size: 14px; }
.chip.yes { background: #12261a; color: #7ef0a8; border-color: #1f4a2d; } .chip.no { background: #2a1218; color: #b06a76; text-decoration: line-through; }
.warn { background: #2a1218; border-color: #6b2a35; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
nav#tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 3; display: grid; grid-template-columns: repeat(6, 1fr); background: rgba(15,12,19,.97); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
nav#tabs button { background: none; border: 0; border-radius: 0; padding: 8px 0 10px; color: var(--mut); font-size: 11px; display: grid; justify-items: center; gap: 2px; position: relative; }
nav#tabs button i { font-style: normal; font-size: 18px; }
nav#tabs button.on { color: var(--acc); }
nav#tabs em { position: absolute; top: 4px; right: 22%; background: var(--acc); color: #160509; border-radius: 999px; font: 700 10px/16px system-ui; min-width: 16px; padding: 0 4px; font-style: normal; }
.seg { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.seg button { white-space: nowrap; padding: 7px 12px; border-radius: 999px; font-size: 13px; }
.seg button.on { background: var(--acc); color: #160509; border-color: var(--acc); font-weight: 700; }
.msgs { display: grid; gap: 8px; max-height: calc(100vh - 290px); overflow-y: auto; padding: 4px 2px; }
.msg { background: #1b1520; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; max-width: 86%; word-wrap: break-word; white-space: pre-wrap; }
.msg.me { justify-self: end; background: #2a1220; border-color: #5a2338; }
.msg .who { font-size: 11px; color: var(--mut); margin-bottom: 2px; }
.send { display: flex; gap: 8px; margin-top: 8px; } .send input { flex: 1; }
.lineup img { width: 100%; border-radius: 10px; margin-top: 8px; }
.tune pre { white-space: pre-wrap; font-size: 12px; color: var(--mut); margin: 6px 0 0; }
#toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #221a28; border: 1px solid var(--line); padding: 10px 14px; border-radius: 12px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 9; max-width: 90vw; }
#toast.on { opacity: 1; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mut); margin-right: 6px; } .dot.on { background: var(--good); }
.warnline { color: #ffb3c0; background: #2a1218; border: 1px solid #6b2a35; border-radius: 10px; padding: 8px 10px; margin: 0; }
.hdr { display: flex; align-items: center; gap: 10px; }
.dc { background: #5865f2; color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.postf { display: grid; gap: 8px; } .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.post { padding: 12px; display: grid; gap: 8px; }
.phead { display: flex; align-items: center; gap: 8px; } .phead .muted { margin-left: auto; }
.chip { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #2a1220; color: #ff9fb0; border: 1px solid #5a2338; }
.ptitle { font-weight: 600; }
.vid { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; cursor: pointer; background: radial-gradient(circle at 30% 30%, #3a1424, #120d16 70%); }
.vid img, .vid iframe, .vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.vid .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; border: 0; background: rgba(255,77,106,.92); color: #160509; font-size: 24px; padding: 0 0 0 4px; box-shadow: 0 0 30px rgba(255,77,106,.5); }
.vid .prov { position: absolute; left: 10px; bottom: 8px; font-size: 11px; background: rgba(0,0,0,.6); padding: 2px 8px; border-radius: 6px; }
.pfoot { display: flex; align-items: center; gap: 12px; } .pfoot a { margin-left: auto; }
.like { background: none; border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
.like.on { color: var(--acc); border-color: #5a2338; }
.more { width: 100%; }
.welcome { text-align: center; padding: 18px 8px 4px; }
.welcome .wmark { color: var(--acc); font-size: 34px; text-shadow: 0 0 24px rgba(255,77,106,.5); }
.welcome h1 { margin: 4px 0 2px; font-size: 24px; } .welcome p { margin: 0; }
.start { display: grid; gap: 8px; }
.bar { height: 6px; border-radius: 3px; background: #241b29; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--acc); border-radius: 3px; }
.step { display: flex; gap: 12px; align-items: center; text-align: left; background: #120e16; padding: 10px 12px; }
.step .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; color: #160509; }
.step.done { opacity: .55; } .step.done .tick { background: var(--good); border-color: var(--good); } .step.done b { text-decoration: line-through; }
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { display: grid; gap: 2px; justify-items: start; text-align: left; padding: 12px; background: var(--card); border-radius: 14px; }
.tile .tico { font-size: 20px; } .tile b { font-size: 14px; } .tile .small { font-size: 11px; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.mclip { position: relative; padding: 0; aspect-ratio: 9 / 12; border-radius: 10px; overflow: hidden; background: radial-gradient(circle at 30% 30%, #3a1424, #120d16 70%); }
.mclip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.mclip .mplay { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(255,77,106,.92); color: #160509; display: grid; place-items: center; font-size: 13px; }
.mclip .mcap { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px; font-size: 11px; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.85)); line-height: 1.25; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qa { display: block; text-align: center; text-decoration: none; color: var(--ink); background: #221a28; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-weight: 600; }
.qa.primary { background: var(--acc); color: #160509; border-color: var(--acc); } .qa.dcq { background: #5865f2; border-color: #5865f2; color: #fff; }
