:root {
  --bg: #0b0d12; --panel: #171c25; --panel-2: #1f2531; --border: #2a3140; --border-soft: #232a37;
  --text: #e8ecf3; --dim: #8b95a7; --accent: #4f7cff; --gold: #d9a840; --red: #ef4444;
  --green: #22c55e; --amber: #eab308; --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: inherit; }
main { max-width: 860px; margin: 0 auto; padding: 16px 16px 60px; }
h1 { font-size: 22px; margin: 6px 0 16px; }
.muted { color: var(--dim); font-weight: 400; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: rgba(11,13,18,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-soft); }
.brand { font-weight: 800; text-decoration: none; font-size: 16px; }
.brand span { color: var(--gold); font-weight: 700; }
.logout { margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px;
  border: 1px solid transparent; padding: 9px 14px; font: inherit; font-weight: 700; cursor: pointer;
  color: var(--text); background: var(--panel-2); text-decoration: none; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.gold { background: linear-gradient(135deg, #f5d585, #d9a840 55%, #b8862a); color: #2a1e08; }
.btn.red { background: #3a1719; color: #ffb4b4; border-color: #5b2226; }
.btn.ghost { background: transparent; border-color: var(--border); }
.btn:not(:disabled):active { transform: scale(.97); }

.card { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 16px; }
.empty { text-align: center; color: var(--dim); }

.flash { border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-weight: 600; }
.flash.is-ok { background: #12301f; color: #9be7b5; border: 1px solid #1f5234; }
.flash.is-err { background: #3a1719; color: #ffb4b4; border: 1px solid #5b2226; }

/* login */
.login { max-width: 360px; margin: 10vh auto 0; display: flex; flex-direction: column; gap: 12px; }
.login h1 { margin: 0 0 4px; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; color: var(--dim);
  text-transform: uppercase; letter-spacing: .04em; }
input, select, textarea { font: inherit; font-size: 14px; font-weight: 400; color: var(--text); background: var(--panel-2);
  border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; text-transform: none; letter-spacing: 0; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; }

/* home */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 12px 14px; }
.stat b { display: block; font-size: 24px; }
.stat span { color: var(--dim); font-size: 12px; }
.stat.gold b { color: var(--gold); } .stat.red b { color: var(--red); }
.menu { display: flex; flex-direction: column; gap: 10px; }
.menu-item { display: flex; align-items: center; gap: 14px; padding: 16px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); }
.menu-item:hover { border-color: var(--accent); }
.menu-item b { display: block; font-size: 16px; } .menu-item small { color: var(--dim); }
.menu-ic { font-size: 26px; } .chev { margin-left: auto; font-size: 24px; color: var(--dim); }

/* users */
.head-row { display: flex; flex-direction: column; }
.back { color: var(--dim); text-decoration: none; font-size: 13px; }
.search { display: flex; gap: 8px; margin-bottom: 14px; position: sticky; top: 53px; z-index: 5;
  background: var(--bg); padding: 6px 0; }
.search input { flex: 1; } .search select { width: auto; }

.list { display: flex; flex-direction: column; gap: 8px; }
.urow { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.urow.is-banned { border-color: #5b2226; }
.urow.is-banned .avbox { filter: grayscale(.8); opacity: .7; }
.urow.is-open { border-color: var(--accent); }
.urow-main { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 8px; }
.toggle { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--text); font-size: 14px; cursor: pointer; }
.toggle span { display: inline-block; transition: transform .15s; }
.urow.is-open .toggle { background: var(--accent); border-color: var(--accent); }
.urow.is-open .toggle span { transform: rotate(90deg); }

/* Same geometry as the game's .avf: photo at 82% of the box, frame art at 147%. */
.avbox { position: relative; flex: none; width: 44px; height: 44px; display: inline-block; margin: 0 4px; }
.avbox .av { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--panel-2); }
.avf .av { inset: 9%; width: 82%; height: 82%; }
.avf .avf__art { position: absolute; left: -23.5%; top: -23.5%; width: 147%; height: 147%; pointer-events: none; }

.who { min-width: 0; flex: 1; }
.name { display: flex; align-items: center; gap: 5px; font-weight: 800; font-size: 15px; }
.name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { width: 18px; height: 18px; flex: none; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.tag { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--panel-2); color: var(--dim); }
.tag.gold { color: #2a1e08; background: var(--gold); font-weight: 700; }
.tag.red { color: #fff; background: var(--red); font-weight: 700; }
.tag.green { color: #06240f; background: var(--green, #22c55e); font-weight: 700; }
.nums { text-align: right; flex: none; }
.pts { font-weight: 800; font-size: 16px; } .pts small { color: var(--dim); font-weight: 600; font-size: 11px; }
.sub { font-size: 12px; color: var(--dim); }
.good { color: var(--green); font-weight: 700; } .mid { color: var(--amber); font-weight: 700; } .bad { color: var(--red); font-weight: 700; }

.urow-more { border-top: 1px solid var(--border-soft); padding: 12px 14px 14px; background: #131820; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 14px; margin: 0 0 12px; }
.facts dt { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 0; font-weight: 600; }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tab { font: inherit; font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--dim); }
.tab.is-on { background: var(--panel-2); color: var(--text); border-color: var(--accent); }
.pane p { margin: 4px 0 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.edit { display: flex; flex-direction: column; gap: 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label.check { flex-direction: row; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0;
  font-size: 14px; font-weight: 500; color: var(--text); }
label.check input { width: auto; }
label.check:has(input:disabled) { color: var(--dim); }
.edit .btn { align-self: flex-start; }

.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }

@media (max-width: 560px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: 1fr; }
  .search { flex-wrap: wrap; } .search input { flex-basis: 100%; }
  .search select { flex: 1; }
}

/* ---- broadcast ---- */
h2 { font-size: 16px; margin: 0 0 12px; }
h2.section { margin: 22px 0 10px; }
.small { font-size: 12px; }
code { background: var(--panel-2); padding: 1px 5px; border-radius: 5px; font-size: 12px; }
.card + .card { margin-top: 20px; }
/* A card followed by a two-column block (Players | Chat log on a game page) had nothing
   between them at all, so the two panels touched. Every top-level block on a page keeps
   the same distance from the one above it; margins collapse, so a block that already has
   its own spacing is unaffected. */
main > .card + .bc-grid,
main > .card + .list,
main > .list + .card,
main > .bc-grid + .card,
main > .card + .range,
main > .range + .card { margin-top: 20px; }
main > .bc-grid { margin-top: 20px; }
.bc-form label small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.fmt-bar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; text-transform: none; letter-spacing: 0; }
.fmt-bar button { font: inherit; font-size: 12px; color: var(--text); background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 7px; padding: 3px 9px; cursor: pointer; }
.fmt-bar .counter { margin-left: auto; font-weight: 600; }
.fmt-bar .counter.over { color: var(--red); }
.bcrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); }
.bcrow:hover { border-color: var(--accent); }
.bcrow .who { display: flex; flex-direction: column; }
.bcrow .nums { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.bc-kind { font-size: 22px; }
.tag.st.green { background: var(--green); color: #06270f; font-weight: 700; }
.tag.st.amber { background: var(--amber); color: #2a2000; font-weight: 700; }
.tag.st.red { background: var(--red); color: #fff; font-weight: 700; }
.tag.st.blue { background: var(--accent); color: #fff; font-weight: 700; }
h1 .tag { vertical-align: middle; font-size: 12px; }

.bc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; margin-bottom: 20px; }
.bc-grid .card + .card { margin-top: 0; }
.tg-preview { background: #0e1621; border-radius: 12px; padding: 14px; }
.tg-bubble { background: #182533; border-radius: 12px; overflow: hidden; max-width: 340px; }
.tg-bubble img, .tg-bubble video { display: block; width: 100%; max-height: 360px; object-fit: cover; background: #000; }
.tg-text { padding: 8px 11px 10px; white-space: normal; word-wrap: break-word; font-size: 14px; }
.tg-text a { color: #6ab3f3; }
.tg-text tg-spoiler { background: #3a4a5c; color: transparent; border-radius: 4px; }
.tg-btns { display: flex; gap: 4px; max-width: 340px; margin-top: 4px; }
.tg-btn { flex: 1; text-align: center; background: #213040; border-radius: 8px; padding: 8px; font-weight: 600; font-size: 13px; }
.test-row { display: flex; gap: 8px; margin-top: 12px; }

.bar { height: 12px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--green)); transition: width .6s; }
.live[data-status="paused"] .bar span { background: var(--amber); }
.live[data-status="stopped"] .bar span { background: var(--red); }
.bar-legend { margin: 6px 0 14px; color: var(--dim); }
.bar-legend b { color: var(--text); font-size: 18px; }
.bc-stats { margin-bottom: 14px; }
.stat.green b { color: var(--green); } .stat.amber b { color: var(--amber); }
.errs { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--dim); margin-bottom: 10px; }
.controls form { margin: 0; }
.live .flash { margin: 0 0 10px; }

@media (max-width: 760px) {
  .bc-grid { grid-template-columns: 1fr; }
}
.btn { white-space: nowrap; }
.tag.st.violet { background: #8b5cf6; color: #fff; font-weight: 700; }
.sched { display: flex; gap: 6px; }
.sched input { width: auto; }

/* ---- dashboard ---- */
.dash-tiles .stat small { display: block; color: var(--dim); font-size: 11px; margin-top: 2px; }
.dash-tiles { grid-template-columns: repeat(4, 1fr); }
.range { display: flex; gap: 6px; margin: 4px 0 12px; }
.chart-card { margin-top: 12px; }
.chart-card h2 small { font-weight: 500; font-size: 12px; margin-left: 6px; }
.chart { display: block; width: 100%; height: auto; }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .ax { fill: var(--dim); font-size: 10px; font-family: inherit; }
.chart rect:hover { opacity: .75; }

/* ---- live / game ---- */
.autoref { margin: -6px 0 12px; font-size: 13px; }
.plist { display: flex; flex-direction: column; gap: 8px; }
.prow { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.prow .avbox { width: 36px; height: 36px; }
.prow.is-dead { opacity: .5; }
.prow.is-hl, .log-msg.is-hl { background: rgba(217,168,64,.12); border-radius: 8px; }
.prow a, .log a, .hist a, .ev a, .sub a { color: var(--text); }
/* The chat log reads as a stack of separate messages, not a wall of lines: a little air
   between rows, and each one on its own faint panel. */
.log { display: flex; flex-direction: column; gap: 7px; max-height: 70vh; overflow-y: auto;
  font-size: 13px; padding-right: 6px; scroll-behavior: smooth; }
.log-msg { padding: 7px 10px; word-break: break-word; background: var(--panel-2, rgba(255,255,255,.035));
  border: 1px solid transparent; border-radius: 10px; line-height: 1.45; }
.log-msg + .log-sys, .log-sys + .log-msg { margin-top: 3px; }
.log-msg.is-mafia { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.22); }
.log-sys { color: var(--dim); font-size: 12px; text-align: center; padding: 5px 0; }
.log .t, .ev .t { color: var(--dim); font-size: 11px; font-variant-numeric: tabular-nums; }
.hist { width: 100%; border-collapse: collapse; font-size: 13px; }
.hist th { text-align: left; color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 4px 6px; }
.hist td { padding: 6px; border-top: 1px solid var(--border-soft); }
.mates { margin-top: 10px; }

/* ---- reports ---- */
.rp-head { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.rp-head .avbox { width: 64px; height: 64px; }
.rp-head h1 { margin: 0 0 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rp-head .badge { width: 22px; height: 22px; }
.bcrow.is-banned { border-color: #5b2226; }
.pts.bad { color: var(--red); }
.ev { margin-bottom: 14px; }
.ev .log-msg { font-size: 13px; }

/* ---- settings ---- */
.settings .card { margin-bottom: 12px; }
.set-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border-soft); }
.set-row:first-of-type { border-top: 0; }
.set-l { flex: 1; min-width: 0; }
.set-l small { display: block; }
.set-v { display: flex; align-items: center; gap: 6px; flex: none; }
.set-v input[type=number] { width: 96px; }
.set-v .unit { color: var(--dim); font-size: 12px; min-width: 42px; }
.save-bar { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 35%); }
.reset { margin-top: 6px; }

@media (max-width: 560px) {
  .dash-tiles { grid-template-columns: repeat(2, 1fr); }
  .rp-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Telegram Mini App shell ---------- */
/* Inside Telegram the app's own header sits over the top of the page, so the panel's
   header carries the logo only (no title, no log-out button — the sign-in is the
   Telegram account) and the page starts below the system bar. */
.top { align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-logo { height: 26px; width: auto; display: block; }
.brand-tag { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
body.is-tg .top { justify-content: center; padding-top: calc(var(--tg-safe-top, 58px) + 6px); }
body.is-tg .top--logo .brand { margin: 0 auto; }
body.is-tg .brand-logo { height: 30px; }
body.is-tg main { padding-top: 10px; }
body.is-tg .back { position: relative; z-index: 2; }
/* Telegram's own close/menu buttons live in the top-right corner. */
body.is-tg .live-dot { position: absolute; left: 12px; top: calc(var(--tg-safe-top, 58px) + 16px); }

/* Browser header: live dot · logo (centred) · Log out. The sides line up with the page's
   content column (main: 860px wide, 16px padding), not the window edges, so on a wide
   screen the button sits right above the right edge of the cards. */
body:not(.is-tg) .top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-left: max(16px, calc((100% - 860px) / 2 + 16px));
  padding-right: max(16px, calc((100% - 860px) / 2 + 16px));
}
body:not(.is-tg) .top .live-dot { grid-column: 1; grid-row: 1; justify-self: start; }
body:not(.is-tg) .top .brand { grid-column: 2; grid-row: 1; }
body:not(.is-tg) .top .logout { grid-column: 3; grid-row: 1; justify-self: end; }

/* ---------- live refresh ---------- */
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: none;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); opacity: .75;
}
.live-dot.is-bad { background: #ef4444; }
.live-dot.is-beat { animation: live-beat .6s ease-out; }
@keyframes live-beat {
  0% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  100% { opacity: .75; box-shadow: 0 0 0 9px rgba(34,197,94,0); }
}
/* A block that just changed gets a one-off edge glow, so movement is noticeable but
   never a flash of the whole page. */
.live-pulse { animation: live-pulse 1s ease-out; }
@keyframes live-pulse {
  0% { box-shadow: inset 0 0 0 2px rgba(79,124,255,.45); }
  100% { box-shadow: inset 0 0 0 2px rgba(79,124,255,0); }
}

/* ---------- Telegram sign-in card ---------- */
.tg-login { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.tg-login__spin {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.14); border-top-color: var(--accent);
  animation: tg-spin .8s linear infinite;
}
@keyframes tg-spin { to { transform: rotate(360deg); } }

/* ---------- dashboard extras ---------- */
.stat.violet b { color: #a78bfa; }


/* ---- scrollbars ----------------------------------------------------------------
   The browser default is a fat light-grey bar that fights a dark panel. This one is
   thin, rounded, and only as visible as it needs to be — it warms up on hover so it is
   still obvious that the area scrolls. */
.log, .pane, .scroll-y {
  scrollbar-width: thin;                        /* Firefox */
  scrollbar-color: rgba(140, 152, 175, .45) transparent;
}
.log::-webkit-scrollbar, .pane::-webkit-scrollbar, .scroll-y::-webkit-scrollbar { width: 8px; height: 8px; }
.log::-webkit-scrollbar-track, .pane::-webkit-scrollbar-track, .scroll-y::-webkit-scrollbar-track {
  background: rgba(255,255,255,.03); border-radius: 999px;
}
.log::-webkit-scrollbar-thumb, .pane::-webkit-scrollbar-thumb, .scroll-y::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(150,163,188,.5), rgba(110,122,146,.5));
  border-radius: 999px; border: 2px solid transparent; background-clip: padding-box;
}
.log:hover::-webkit-scrollbar-thumb, .pane:hover::-webkit-scrollbar-thumb, .scroll-y:hover::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(180,192,214,.75), rgba(130,144,170,.75));
  background-clip: padding-box;
}
.log::-webkit-scrollbar-thumb:active { background: var(--accent); background-clip: padding-box; }
/* The whole page, too, so the panel looks like one piece. */
html { scrollbar-width: thin; scrollbar-color: rgba(140,152,175,.4) transparent; }
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: transparent; }
body::-webkit-scrollbar-thumb { background: rgba(140,152,175,.35); border-radius: 999px;
  border: 3px solid transparent; background-clip: padding-box; }
body::-webkit-scrollbar-thumb:hover { background: rgba(170,182,204,.6); background-clip: padding-box; }
/* Maintenance switch (maint.php) */
.mt-card { margin-bottom: 16px; }
.mt-card.is-on { border-color: #5b2226; background: linear-gradient(180deg, rgba(239,68,68,.08), transparent 70%), var(--panel); }
.mt-row { display: flex; align-items: center; gap: 12px; }
.mt-text { flex: 1; min-width: 0; }
.mt-text b { display: flex; align-items: center; gap: 8px; }
.mt-text small { display: block; margin-top: 4px; color: var(--dim); font-size: 12.5px; line-height: 1.4; }
.mt-card form { margin: 0; flex-shrink: 0; }
.mt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.mt-stats > div { background: rgba(255,255,255,.03); border: 1px solid var(--border-soft); border-radius: 10px; padding: 10px; }
.mt-stats b { display: block; font-size: 22px; }
.mt-stats span { color: var(--dim); font-size: 11.5px; }
.mt-verdict { margin: 12px 0 0; font-size: 13.5px; }

/* Chat filter (filter.php) */
.cf-test { display: flex; gap: 8px; margin-top: 10px; }
.cf-test input { flex: 1; }
.cf-result { display: grid; gap: 8px; margin-top: 14px; padding: 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--border-soft); }
.cf-result small { display: block; }
.cf-result code { word-break: break-all; }
.cf-list { width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: 13px; line-height: 1.5; margin-top: 10px; }
.cf-actions { margin: 10px 0; }
/* Weekly winners (dash.php) */
.wr-card { margin: 16px 0; }
.wr-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13.5px; }
.wr-table td { padding: 7px 6px; border-top: 1px solid var(--border-soft); }

/* ---------- Gift codes (gifts.php). Inline style/handlers are blocked by the panel CSP. ---------- */
.gc-make, .gc-prices { margin-bottom: 14px; }
.gc-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.gc-field { display: flex; flex-direction: column; gap: 6px; text-transform: none; letter-spacing: 0; }
.gc-lab { font-size: 12px; font-weight: 600; color: var(--dim); text-transform: none; letter-spacing: 0; }
.gc-field--n input { width: 92px; }
.gc-field--note { flex: 1; min-width: 180px; }
.gc-field--price input { width: 110px; }
.gc-go { height: 40px; }
.gc-seg { display: flex; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 3px; gap: 3px; }
.gc-pick { position: relative; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 92px; height: 32px; padding: 0 12px; border-radius: 9px; color: var(--dim); text-transform: none; letter-spacing: 0; gap: 0; }
.gc-pick b { font-size: 13px; color: var(--text); line-height: 1.1; }
.gc-pick small { font-size: 10.5px; font-weight: 500; line-height: 1.1; }
.gc-pick.is-on { background: var(--accent); }
.gc-pick.is-on b, .gc-pick.is-on small { color: #fff; }
.gc-pick input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.gc-prices { padding-top: 12px; padding-bottom: 12px; }
.gc-prices__t { align-self: center; font-weight: 800; color: var(--text); font-size: 14px; margin-right: 4px; }
.gc-prices__hint { align-self: center; }
.gc-table-wrap { overflow-x: auto; margin: 0 -4px; }
.gc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gc-table th { text-align: left; color: var(--dim); font-size: 11.5px; font-weight: 600; padding: 6px 8px; white-space: nowrap; }
.gc-table td { padding: 9px 8px; border-top: 1px solid var(--border-soft); vertical-align: middle; white-space: nowrap; }
.gc-table tr.is-hl td { background: rgba(217,168,64,.1); }
.gc-table tr.is-done td { color: var(--dim); }
.gc-table tr:hover td { background: rgba(255,255,255,.025); }
.gc-code { font-weight: 800; color: var(--text); }
.gc-num { text-align: right; }
.gc-note { white-space: normal; max-width: 220px; }
.gc-act { text-align: right; }
.gc-act form { display: inline; margin: 0; }
.gc-act .btn { margin-left: 4px; }
.gc-table a { color: var(--text); }
@media (max-width: 700px) {
  .gc-field--note, .gc-go { flex-basis: 100%; }
  .gc-field--len { flex-basis: 100%; }
  .gc-seg { display: grid; grid-template-columns: repeat(4, 1fr); }
  .gc-pick { min-width: 0; padding: 0 4px; }
}
/* Fair play rows (fairplay.php) — same CSP reason. */
.fp-date { width: 92px; flex: none; }
.fp-main { flex: 1; min-width: 0; }
.fp-phone { white-space: nowrap; text-decoration: none; }
.fp-card { margin-bottom: 14px; }
/* Gift codes is a working page with a wide table: on a PC it gets a wider column (and the
   header follows it, so Log out still lines up with the cards). */
@media (min-width: 900px) {
  main:has(.gc-make) { max-width: 1160px; }
  body:not(.is-tg):has(.gc-make) .top {
    padding-left: max(16px, calc((100% - 1160px) / 2 + 16px));
    padding-right: max(16px, calc((100% - 1160px) / 2 + 16px));
  }
}

/* ---------- Notifications (notices.php) ---------- */
[hidden] { display: none !important; }
main:has(.nt-grid) { max-width: 1160px; }
@media (min-width: 900px) {
  body:not(.is-tg):has(.nt-grid) .top { padding-left: max(16px, calc((100% - 1160px) / 2 + 16px)); padding-right: max(16px, calc((100% - 1160px) / 2 + 16px)); }
}
.nt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; margin-bottom: 16px; }
@media (max-width: 900px) { .nt-grid { grid-template-columns: 1fr; } .nt-side { order: -1; } }
.nt-form { display: flex; flex-direction: column; gap: 14px; }
.nt-f { text-transform: none; letter-spacing: 0; }
.nt-lab { display: block; font-size: 12.5px; font-weight: 600; color: var(--dim); text-transform: none; letter-spacing: 0; margin-bottom: 6px; }
.nt-f .nt-lab { margin-bottom: 0; }
.nt-row { display: flex; gap: 10px; } .nt-row > * { flex: 1; }
.nt-days input { width: 120px; }
.nt-tpls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.nt-tp, .nt-seg label, .nt-chips label { position: relative; cursor: pointer; text-transform: none; letter-spacing: 0; }
.nt-tp input, .nt-seg input, .nt-chips input, .nt-drop input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.nt-tp { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--panel-2); font-size: 12px; font-weight: 700; color: var(--dim); }
.nt-tp.is-on { border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 2px rgba(79,124,255,.25); }
.nt-ico { width: 30px; height: 40px; border-radius: 5px; background: #2c3341; position: relative; overflow: hidden; display: block; }
.nt-ico::before, .nt-ico::after { content: ""; position: absolute; background: #56627e; }
.nt-ico--album::before { left: 0; right: 0; top: 0; height: 42%; } .nt-ico--album::after { left: 4px; right: 4px; top: 58%; height: 3px; box-shadow: 0 6px 0 #56627e; }
.nt-ico--portrait::before { left: 0; top: 0; bottom: 0; width: 42%; } .nt-ico--portrait::after { left: 52%; right: 4px; top: 30%; height: 3px; box-shadow: 0 6px 0 #56627e; }
.nt-ico--cover::before { inset: 0; opacity: .8; } .nt-ico--cover::after { left: 4px; right: 4px; top: 72%; height: 3px; background: #cfd6e4; }
.nt-ico--square::before { left: 25%; right: 25%; top: 10%; height: 36%; border-radius: 3px; } .nt-ico--square::after { left: 6px; right: 6px; top: 62%; height: 3px; }
.nt-ico--text::before { left: 40%; right: 40%; top: 14%; height: 7px; border-radius: 50%; } .nt-ico--text::after { left: 4px; right: 4px; top: 48%; height: 3px; box-shadow: 0 6px 0 #56627e; }
.nt-drop { display: flex; align-items: center; gap: 10px; border: 2px dashed var(--border); border-radius: 12px; padding: 12px;
  color: var(--dim); font-size: 12.5px; font-weight: 500; text-transform: none; letter-spacing: 0; flex-direction: row; cursor: pointer; }
.nt-drop b { color: var(--text); }
.nt-drop img { width: 64px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; }
.nt-seg { display: flex; gap: 4px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 3px; }
.nt-seg label { flex: 1; text-align: center; padding: 8px 6px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--dim); }
.nt-seg label.is-on { background: var(--accent); color: #fff; }
.nt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nt-chips label { flex-direction: row; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 700; color: var(--dim); }
.nt-chips label small { font-weight: 600; opacity: .7; }
.nt-chips label.is-on { background: rgba(79,124,255,.18); border-color: var(--accent); color: #cfe0ff; }
.nt-side { position: sticky; top: 70px; }
.nt-phone { position: relative; width: 380px; max-width: 100%; height: 720px; margin: 0 auto; border-radius: 40px; border: 10px solid #05070d;
  background: #0b0d12; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.6); }
.nt-phone__menu { position: absolute; inset: 0; opacity: .3; background: radial-gradient(60% 30% at 50% 8%, rgba(201,168,106,.35), transparent); }
.nt-ov--pv { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(0,0,0,.6); }
.nt-pvcap { text-align: center; margin-top: 8px; }
.nt-bar { display: block; width: 110px; height: 6px; border-radius: 9px; background: var(--panel-2); overflow: hidden; margin-top: 4px; }
.nt-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
/* The card itself — a copy of the game's style.css block, so the preview matches. */
.nt { width: 100%; max-width: 340px; max-height: 100%; overflow-y: auto; color: #eef1f6; background: linear-gradient(180deg, #1f2530, #171c25);
  border: 1px solid #232936; border-radius: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.6); display: flex; flex-direction: column; text-align: left; }
.nt__body { padding: 18px 20px 6px; }
.nt__kick { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8b93a1; margin-bottom: 9px; }
.nt__t { font-weight: 800; font-size: 19px; line-height: 1.22; margin: 0 0 7px; }
.nt__txt { font-size: 14px; line-height: 1.45; color: #aeb6c5; white-space: pre-line; overflow-wrap: anywhere; }
.nt__link { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 14px; height: 42px; border-radius: 12px;
  border: 1px solid #2c3341; background: transparent; color: #7aa2ff; font: inherit; font-weight: 700; font-size: 14px; }
.nt__link.is-promo { border: 0; color: #2a1e05; background: linear-gradient(180deg, #f3d98b, #d9a840); }
.nt__foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px 16px; }
.nt__dots { flex: 1; }
.nt__btn { height: 44px; padding: 0 20px; border-radius: 12px; border: 0; font: inherit; font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(90deg, #4f7cff, #7c5cff); }
.tpl-album .nt__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.tpl-portrait .nt__row { display: flex; }
.tpl-portrait .nt__img { width: 40%; aspect-ratio: 2/3; object-fit: cover; flex: none; display: block; }
.tpl-portrait .nt__body { padding: 16px 16px 4px; flex: 1; min-width: 0; }
.tpl-portrait .nt__t { font-size: 17px; } .tpl-portrait .nt__txt { font-size: 13px; }
.tpl-cover { position: relative; }
.tpl-cover .nt__img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.tpl-cover .nt__over { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 4/5; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, rgba(10,12,18,0) 35%, rgba(10,12,18,.92) 88%); }
.tpl-cover .nt__txt { color: #dfe5f2; } .tpl-cover .nt__foot { background: #141922; }
.tpl-square .nt__sq { display: flex; justify-content: center; padding: 22px 0 4px; }
.tpl-square .nt__img { width: 62%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; box-shadow: 0 14px 30px rgba(0,0,0,.5); }
.tpl-square .nt__body, .tpl-text .nt__body { text-align: center; }
.tpl-text .nt__emoji { font-size: 46px; line-height: 1; text-align: center; padding: 22px 0 0; }

/* Reports: the saved lobby chat (whole room), their own lines highlighted */
.ev-all { margin-top: 8px; }
.ev-all summary { cursor: pointer; color: var(--muted, #9aa3b2); font-size: 13px; padding: 4px 0; }
.ev-all .log-msg b { font-weight: 600; margin-right: 4px; }
.ev-all .log-msg.is-them { outline: 1px solid rgba(239, 68, 68, .55); }

/* Notifications: image field while a file is dragged over it */
.nt-drop.is-drag { border-color: var(--accent, #5b7cfa); background: rgba(91, 124, 250, .08); }

/* ================================================================ user page (user.php) */
main:has(.up-head) { max-width: 1180px; }
body:has(.up-head) .top { padding-left: max(16px, calc((100% - 1180px) / 2 + 16px)); padding-right: max(16px, calc((100% - 1180px) / 2 + 16px)); }
.urow .name a.uname { text-decoration: none; }
.urow .name a.uname:hover { text-decoration: underline; }
.tag.amber { color: #1c1402; background: var(--amber); font-weight: 700; }
.tag.blue { color: #dbe6ff; background: #2a3f7a; font-weight: 700; }
a.tag { text-decoration: none; }
.up-head { display: flex; gap: 18px; align-items: center; }
.up-head > .avbox { width: 84px; height: 84px; flex: none; }
.up-head > .avbox .av { width: 84px; height: 84px; }
.up-who { min-width: 0; }
.up-who h1 { margin: 0; font-size: 24px; display: flex; align-items: center; gap: 8px; }
.up-who h1 .badge { width: 26px; height: 26px; }
.up-meta { color: var(--dim); font-size: 13px; margin-top: 4px; }
.up-meta a { color: var(--text); }
.up-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.up-tags .tag { font-size: 12px; padding: 3px 9px; }
.up-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 440px; }
.good { color: #4ade80; font-weight: 600; } .bad { color: #f87171; font-weight: 600; }
.up-kpis { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin: 14px 0; }
.up-kpi { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 12px; padding: 12px 14px; }
.up-kpi b { display: block; font-size: 22px; } .up-kpi span { color: var(--dim); font-size: 12px; }
.up-kpi.warn b { color: #ff8a8a; }
.up-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 6px 0 14px; overflow-x: auto; }
.up-tabs a { padding: 10px 14px; text-decoration: none; color: var(--dim); font-weight: 700; border-bottom: 2px solid transparent; white-space: nowrap; }
.up-tabs a.on { color: var(--text); border-color: var(--accent); }
.up-tabs a em { font-style: normal; font-size: 11px; background: var(--red); color: #fff; border-radius: 99px; padding: 1px 7px; margin-left: 4px; }
.up-g2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; align-items: start; }
.up-g2.up-even { grid-template-columns: 1fr 1fr; }
.up-g2 > div > .card + .card { margin-top: 14px; }
.up-g2 h2, main:has(.up-head) > .card h2 { font-size: 15px; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.up-g2 h2 small, main:has(.up-head) .card h2 small { color: var(--dim); font-weight: 500; font-size: 12px; }
main:has(.up-head) > .card + .card { margin-top: 14px; }
.up-c-townsperson { --c: #64748b; } .up-c-mafioso { --c: #ef4444; } .up-c-godfather { --c: #b91c1c; }
.up-c-doctor { --c: #22c55e; } .up-c-detective { --c: #4f7cff; } .up-c-vigilante { --c: #eab308; }
.up-strip { display: grid; grid-template-columns: repeat(25, 1fr); gap: 4px; margin-bottom: 10px; }
.up-strip a { aspect-ratio: 1; border-radius: 4px; display: block; background: var(--c); }
.up-strip a.lost { opacity: .33; }
.up-strip a:hover { outline: 2px solid var(--text); }
.up-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--dim); margin-bottom: 12px; }
.up-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 5px; vertical-align: -1px; }
.up-bars > div { display: grid; grid-template-columns: 90px 1fr 100px; gap: 10px; align-items: center; font-size: 13px; margin: 5px 0; }
.up-bars .b { height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.up-bars .b i { display: block; height: 100%; width: 0; background: var(--c); }
.up-bars small { color: var(--dim); text-align: right; }
.up-rl { font-weight: 700; color: var(--c); }
.up-games td { white-space: nowrap; }
.up-tl { list-style: none; margin: 0 0 8px; padding: 0; }
.up-tl li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); font-size: 13px; }
.up-tl li:last-child { border: 0; }
.up-tl small { color: var(--dim); } .up-tl li > small { text-align: right; }
.up-tl a { color: var(--text); }
.up-line { margin: 0 0 10px; font-size: 13px; }
.up-sub3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.up-sub3 h3 { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 8px; }
.up-ppl { display: flex; flex-direction: column; gap: 6px; }
.up-pp { display: flex; align-items: center; gap: 8px; font-size: 13px; text-decoration: none; min-width: 0; }
.up-pp .avbox, .up-pp .av { width: 28px; height: 28px; flex: none; }
.up-pp span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-pp small { margin-left: auto; color: var(--dim); font-size: 12px; }
.up-pp:hover span { text-decoration: underline; }
.up-big .up-ppl { max-height: 520px; overflow: auto; }
.up-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 13px; margin: 0 0 12px; }
.up-facts dt { color: var(--dim); font-size: 11px; text-transform: uppercase; } .up-facts dd { margin: 0; }
.up-note textarea { width: 100%; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px; color: var(--text); font: inherit; margin: 4px 0 8px; resize: vertical; }
.rp-note { margin: 10px 0 0; padding: 8px 12px; background: #2b2410; border: 1px solid #5a4a14; border-radius: 10px; color: #fde68a; font-size: 13px; }
/* drawers: opened by #anchor (:target) — no script needed under the CSP */
.up-drawer { display: none; position: fixed; inset: 0; z-index: 50; }
.up-drawer:target { display: block; }
.up-drawer__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); }
.up-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--panel); border-left: 1px solid var(--border); padding: 22px; overflow: auto; }
.up-drawer__panel--wide { width: min(980px, 100%); }
.up-drawer__panel h2 { margin: 0 0 4px; font-size: 18px; }
.up-drawer__x { position: absolute; top: 14px; right: 16px; text-decoration: none; color: var(--dim); font-size: 18px; }
.up-drawer .choices { margin-top: 12px; }
.up-nt { display: grid; grid-template-columns: 1fr 340px; gap: 18px; margin-top: 12px; align-items: start; }
.up-nt .nt-phone { position: sticky; top: 0; }
.nt-kind { margin-bottom: 12px; }
@media (max-width: 900px) {
  .up-head { flex-wrap: wrap; } .up-actions { margin-left: 0; justify-content: flex-start; }
  .up-kpis { grid-template-columns: repeat(2, 1fr); } .up-g2, .up-g2.up-even, .up-sub3, .up-nt { grid-template-columns: 1fr; }
  .up-strip { grid-template-columns: repeat(10, 1fr); }
}
/* warning card — copy of the game's style.css (.is-warn), for the user-page preview */
.tpl-warn .nt__body { text-align: center; }
.nt.is-warn { border-color: rgba(234,179,8,.55); box-shadow: 0 0 0 1px rgba(234,179,8,.25), 0 24px 60px rgba(0,0,0,.6); }
.nt__warnic { display: flex; justify-content: center; margin: 6px 0 10px; }
.nt__warnic svg { width: 74px; height: 74px; filter: drop-shadow(0 6px 18px rgba(234,179,8,.45)); }
.is-warn .nt__t { color: #fcd34d; }
.is-warn .nt__txt { color: #eef1f6; }
.is-warn .nt__btn { background: linear-gradient(90deg, #d99a06, #eab308); color: #1c1402; }
.up-g2 > .card + .card { margin-top: 0; }

/* Ads + Night slides pages */
main:has(.ad-table) { max-width: 1160px; }
.card h2 .btn { margin-left: auto; }
.ad-form { display: flex; flex-direction: column; gap: 12px; }
.ad-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.ad-row .nt-f { flex: 0 1 220px; }
.ad-row .ad-grow { flex: 1 1 300px; }
.ad-checks { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.ad-settings { display: flex; flex-direction: column; gap: 10px; }
.ad-thumb { width: 175px; height: 50px; object-fit: cover; border-radius: 8px; display: block; }
.ad-table td:nth-child(2) { display: flex; gap: 12px; align-items: center; }
.ad-table td:nth-child(2) small { display: block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-order { white-space: nowrap; } .ad-order form { display: inline; }
.ns-thumb { height: 56px; width: 40px; object-fit: contain; }
.nt-f select { width: 100%; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 9px 10px; font: inherit; }
.nt-f input[type=datetime-local], .nt-f input[type=number] { width: 100%; }
.card h2:has(> .btn) { display: flex; align-items: center; gap: 10px; }
.ad-settings > .btn, .ad-form .ad-row .btn { align-self: flex-start; }
body:has(.ad-table) .top { padding-left: max(16px, calc((100% - 1160px) / 2 + 16px)); padding-right: max(16px, calc((100% - 1160px) / 2 + 16px)); }
.nt-drop img.nt-pick { width: 96px; height: 28px; object-fit: contain; border-radius: 6px; flex: none; background: #0b0d12; }
.nt-pickname { font-size: 12.5px; color: var(--text); }
.nt-pickname.is-bad { color: #f87171; font-weight: 700; }

/* dashboard: modes table */
.mode-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mode-table th { text-align: right; font-size: 12px; color: var(--muted, #8b93a1); font-weight: 700; padding: 6px 10px; }
.mode-table th:first-child { text-align: left; }
.mode-table td { text-align: right; padding: 8px 10px; border-top: 1px solid rgba(127,127,127,.15); white-space: nowrap; }
.mode-table td:first-child { text-align: left; }
.mode-table tr.is-now td { background: rgba(34,197,94,.06); }
.mode-card { overflow-x: auto; }

.md-legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 4px 0 12px; font-size: 13px; }
.md-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
@media (min-width: 1000px) { .md-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.md { text-align: center; padding: 10px 6px; border-radius: 12px; background: rgba(127,127,127,.06); }
.md-svg { width: 120px; height: 120px; display: block; margin: 0 auto; }
.md-n { font-size: 24px; font-weight: 800; fill: currentColor; }
.md-u { font-size: 10px; fill: #8b93a1; }
.md-t { display: block; font-size: 12.5px; margin-top: 6px; }
.md-ls { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 5px; font-size: 11.5px; color: #8b93a1; }
.md-l { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.md-l i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.md-chat i { background: #4f7cff; } .md-voice i { background: #22c55e; } .md-table i { background: #f59e0b; }

/* ---- Voice quality (2026-10-20) ---- */
.vq-period { display: flex; gap: 6px; margin: 0 0 12px; }
.vq-period .tag { font-size: 13px; padding: 4px 12px; text-decoration: none; }
.vq-period .tag.is-on { background: var(--gold); color: #2a1e08; font-weight: 700; }
.vq-wrap { overflow-x: auto; }
.vq-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.vq-tbl th { text-align: left; color: var(--dim); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); white-space: nowrap; }
.vq-tbl td { padding: 6px 8px; border-bottom: 1px solid var(--line, rgba(255,255,255,.05)); white-space: nowrap; }
.vq-tbl td.good { color: var(--green, #22c55e); } .vq-tbl td.warn { color: #f59e0b; } .vq-tbl td.bad { color: var(--red); font-weight: 700; }
.vq-hours { width: 100%; height: auto; display: block; }
.vq-hours { max-height: 170px; }

/* ---- Notifications page on a phone (Telegram webapp), 2026-10-04 ---- */
.nt-list { display: none; }
@media (max-width: 700px) {
  .nt-grid { grid-template-columns: minmax(0, 1fr); }
  .nt-grid > .card { min-width: 0; }
  .nt-side { order: 1 !important; position: static; }
  .nt-phone { width: 300px; height: 560px; border-radius: 32px; border-width: 8px; }
  .nt-tpls { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .nt-tp { font-size: 11px; padding: 8px 2px; }
  .nt-seg label { font-size: 12.5px; }
  .gc-table-wrap:has(+ .nt-list) { display: none; }
  .nt-list { display: flex; flex-direction: column; gap: 8px; }
  .nt-li { border: 1px solid var(--border-soft); border-radius: 12px; padding: 10px 12px; background: rgba(255,255,255,.02); }
  .nt-li.is-done { opacity: .6; }
  .nt-li__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; font-size: 14px; }
  .nt-li__top b { min-width: 0; overflow-wrap: anywhere; }
  .nt-li__meta { font-size: 12px; color: var(--dim); margin-top: 4px; line-height: 1.5; }
  .nt-li__meta a { color: var(--text); }
  .nt-li__seen { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12.5px; flex-wrap: wrap; }
  .nt-li__seen .nt-bar { flex: 1; min-width: 80px; }
  .nt-li__seen form { margin-left: auto; }
}
/* Earnings card (2026-10-04): so'm on the first row, Stars on the second */
.earn-tiles { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .earn-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================= 2026-10-05 wide layout: sidebar, home tiles, dashboard grid ================= */
:root { --side: 232px; }
main { max-width: 1180px; }
body.has-side main { max-width: 1640px; }
.ic { width: 18px; height: 18px; flex: none; }
.bd { font-style: normal; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 9px; background: var(--panel-2); color: #cfd3dd; }
.bd.r { background: #3a1820; color: #ff7b8a; } .bd.y { background: #3a2f12; color: #f3c55a; } .bd.g { background: #12321f; color: #5fe08f; }

/* sidebar: desktop browsers only */
.side { display: none; }
@media (min-width: 1000px) {
  body.has-side:not(.is-tg) .side { display: block; position: fixed; top: 0; bottom: 0; left: 0; width: var(--side); padding: 70px 10px 20px;
    background: var(--panel); border-right: 1px solid var(--border-soft); overflow-y: auto; z-index: 1; }
  body.has-side:not(.is-tg) .top { position: relative; z-index: 2; }
  body.has-side:not(.is-tg) main { margin-left: var(--side); padding: 22px 28px 60px; }
  body.has-side:not(.is-tg) main .back { display: none; }
}
.side h6 { margin: 16px 10px 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #5d6477; }
.side-a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: #c4c9d6; text-decoration: none; font-size: 13.5px; font-weight: 500; }
.side-a .ic { color: #7c849a; } .side-a:hover { background: var(--panel-2); }
.side-a.on { background: var(--panel-2); color: #fff; } .side-a.on .ic { color: var(--gold); }
.side-a .bd { margin-left: auto; }

/* home KPIs */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 14px 16px; }
.kpi b { display: block; font-size: 26px; line-height: 1.2; }
.kpi span { color: var(--dim); font-size: 12px; }
.kpi i { display: block; font-style: normal; font-size: 11.5px; color: var(--dim); margin-top: 2px; }
.kpi i.up { color: #5fe08f; } .kpi i.dn { color: #ff7b8a; }

/* home: tiles + right column */
.home { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tiles h6 { grid-column: 1 / -1; margin: 8px 2px 0; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #5d6477; }
.tiles h6:first-child { margin-top: 0; }
.tile { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 104px; padding: 16px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); }
.tile:hover { border-color: var(--accent); }
.tile-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--panel-2); display: grid; place-items: center; color: var(--gold); }
.tile-ic .ic { width: 20px; height: 20px; }
.tile-t b { display: block; font-size: 14px; } .tile-t small { color: var(--dim); font-size: 12px; }
.tile .bd { position: absolute; top: 12px; right: 12px; }
.home-side { display: flex; flex-direction: column; gap: 14px; }
.home-side .card { margin: 0; }
.side-card h3 { margin: 0 0 8px; font-size: 13px; display: flex; justify-content: space-between; }
.side-card h3 a { color: var(--gold); font-weight: 500; font-size: 12px; text-decoration: none; }
.side-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border-soft); text-decoration: none; font-size: 13px; }
.side-row:first-of-type { border-top: 0; } .side-row em { font-style: normal; color: var(--dim); font-size: 12px; white-space: nowrap; }
.side-row:hover span { color: #fff; text-decoration: underline; }
.side-card p { margin: 0; }

/* dashboard */
body.has-side .dash-tiles { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.dash-grid > .card { margin: 0; }
.dash-grid > .w-2 { grid-column: span 2; } .dash-grid > .w-all { grid-column: 1 / -1; }
@media (min-width: 1000px) { .mode-card .md-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home { grid-template-columns: minmax(0, 1fr) 300px; }
  .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .home { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; } .dash-grid > .w-2 { grid-column: auto; }
}
/* phones: app grid */
@media (max-width: 600px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px; } .kpi b { font-size: 22px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .tile { align-items: center; text-align: center; min-height: 0; padding: 14px 6px 12px; gap: 8px; border-radius: 16px; }
  .tile-ic { width: 46px; height: 46px; border-radius: 14px; } .tile-ic .ic { width: 24px; height: 24px; }
  .tile-t b { font-size: 12px; font-weight: 500; } .tile-t small { display: none; }
  .tile .bd { top: 6px; right: 6px; }
  .home-side .side-card { display: none; }
}
body.has-side:not(.is-tg) .top { max-width: none; }
.dash-grid { grid-auto-flow: row dense; }
@media (min-width: 1000px) { body.has-side:not(.is-tg) .top { padding-left: 20px; padding-right: 20px; } }
.fp-allow { display: inline-block; margin-right: 6px; }

/* ★ 2026-10-29 Wins per role */
.rw-card { margin: 16px 0; }
.rw-tbl td, .rw-tbl th { white-space: nowrap; }
.rw-tbl tr.rw-maf td:first-child b { color: #ef6b6b; }
.rw-bar { display: inline-block; width: 90px; height: 7px; border-radius: 4px; background: rgba(127,127,127,.2); vertical-align: middle; overflow: hidden; }
.rw-bar i { display: block; height: 100%; background: #22c55e; border-radius: 4px; }
.rw-maf .rw-bar i { background: #ef4444; }
.rw-new { font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 99px; background: rgba(217,168,64,.2); color: #d9a840; }

/* ★ 2026-10-30 Ovuls */
.ov-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 0 16px}
.ov-kpis .card{margin:0;display:flex;flex-direction:column;gap:2px}
.ov-kpis b{font-size:24px}.ov-kpis span{color:var(--muted,#8b93a1);font-size:12px}
.ov-tagp{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.06em;padding:2px 7px;border-radius:6px;color:#fff;vertical-align:1px}
.ov-cols{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.ov-cols .card{margin:0 0 16px}
.ov-rules{white-space:pre-wrap;font:inherit;font-size:13px;background:rgba(127,127,127,.08);padding:10px 12px;border-radius:10px}
.ov-msg{padding:5px 0;border-bottom:1px solid rgba(127,127,127,.12);font-size:13px}
.ov-msg.ov-system{color:#8b93a1}.ov-msg.ov-elon{color:#e0a321}.ov-msg.ov-game{color:#6f8cff}
@media (max-width:900px){.ov-kpis{grid-template-columns:1fr 1fr}.ov-cols{grid-template-columns:1fr}}

/* ★ 2026-11-01 News slides */
.ns-th{position:relative;width:150px;height:62px;border-radius:10px;overflow:hidden;flex:none;padding:8px;color:#fff;font-size:12px;margin-right:10px;display:inline-block;vertical-align:middle}
.ns-th b{position:relative;z-index:1;display:block;max-width:95px;line-height:1.2}
.ns-th img{position:absolute}
.ns-th img.pose{right:-8px;bottom:-10px;height:84px}
.ns-th img.emblem,.ns-th img.image{right:6px;top:50%;transform:translateY(-50%);height:50px}
.ad-table td:nth-child(2){display:flex;align-items:center;gap:4px}
.ns-sw{display:flex;gap:8px;margin-top:4px}
.ns-sw input{display:none}
.ns-sw i{display:block;width:30px;height:30px;border-radius:8px;border:2px solid transparent;cursor:pointer}
.ns-sw input:checked+i{border-color:#fff}
/* ★ 2026-11-02 ban drawer: optional message to the player */
.ban-form .ban-note { display: block; margin: 12px 0 4px; }
.ban-form .ban-note span { display: block; font-weight: 600; margin-bottom: 6px; }
.ban-form .ban-note small { font-weight: 400; opacity: .65; }
.ban-form textarea { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line, #2a3140); background: var(--panel2, rgba(255,255,255,.04)); color: inherit; }
/* ★ 2026-10-09 custom Pro days */
.pro-days { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(128,128,128,.25); }
.pro-days input[type=number] { width: 90px; }
.pro-days .pd-hint { flex-basis: 100%; }

/* ★ 2026-10-12 Fair play → Teaming groups */
.tm-ring { border: 1px solid var(--line, rgba(255,255,255,.08)); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.tm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.tm-users { flex: 1 1 200px; }
.tm-head .fp-allow { display: inline-flex; gap: 6px; align-items: center; }
.vq-tbl td.bad { color: #ff7a7a; font-weight: 600; }

/* ★ 2026-10-13 Reports: other accounts on the same phone */
.rp-multi { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid rgba(239,68,68,.35); background: rgba(239,68,68,.07); font-size: 13px; }
.rp-multi__a { display: inline-flex; gap: 6px; align-items: center; }

/* ★ 2026-11-06 Ovozli yozuvlar (voicerec.php + vrec.js) ------------------------------ */
.tag.r { background: #3a1719; color: #ffb4b4; font-weight: 700; }
.tag.g { background: #0f2e1c; color: #86efac; font-weight: 700; }
.tag.v { background: #2a1f4a; color: #c4b5fd; font-weight: 700; }
.tag.a { background: #3a2e0b; color: #fde68a; font-weight: 700; }
.vrl-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.vrl { padding: 4px 10px; overflow-x: auto; }
.vrl table { width: 100%; border-collapse: collapse; }
.vrl td, .vrl th { padding: 11px 8px; border-bottom: 1px solid var(--border-soft); text-align: left; vertical-align: middle; }
.vrl th { color: var(--dim); font-weight: 600; font-size: 12.5px; }
.vrl tr:last-child td { border-bottom: 0; }
.vrl .tag { margin-left: 4px; }
.vrl-soon { color: #ffb4b4; }
.vrl-act { white-space: nowrap; }
.vrl-act form { display: inline; margin: 0 0 0 4px; }

main:has(.vrp) { max-width: 1320px; }
.vrp { display: flex; gap: 24px; align-items: flex-start; }
.vrp-stagewrap { flex: none; position: relative; }
.vrp-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); background: #0b0d12; }
.vrp-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.vrp-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.vrp-head h1 { margin: 4px 0 0; }
.vrp-lbl { font-size: 12px; color: var(--dim); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.vrp-tl { position: relative; height: 54px; border-radius: 10px; background: #11151d; overflow: hidden; border: 1px solid var(--border-soft); cursor: pointer; }
.vrp-tl canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.vrp-tl-segs i { position: absolute; top: 0; bottom: 0; }
.vrp-tl-segs .ph-night { background: rgba(99, 102, 241, .38); }
.vrp-tl-segs .ph-intro, .vrp-tl-segs .ph-day_discuss { background: rgba(234, 179, 8, .26); }
.vrp-tl-segs .ph-day_vote, .vrp-tl-segs .ph-final_words { background: rgba(239, 68, 68, .34); }
.vrp-tl-segs .ph-reveal { background: rgba(148, 163, 184, .25); }
.vrp-tl-segs .ph-finished { background: rgba(34, 197, 94, .25); }
.vrp-tl-ev i { position: absolute; bottom: 2px; transform: translateX(-50%); font-size: 13px; font-style: normal; z-index: 2; pointer-events: none; }
.vrp-ab { position: absolute; top: 0; bottom: 0; z-index: 2; border-left: 2px solid var(--gold); border-right: 2px solid var(--gold); background: rgba(217, 168, 64, .12); pointer-events: none; }
.vrp-head-line { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: #fff; box-shadow: 0 0 10px #fff; z-index: 3; pointer-events: none; }
.vrp-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.vrp-play { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 18px; font-weight: 800; cursor: pointer; }
.vrp-time { font-size: 18px; font-variant-numeric: tabular-nums; margin-left: 4px; }
.vrp-seg { display: flex; background: var(--panel-2); border-radius: 10px; padding: 3px; gap: 3px; margin-left: auto; }
.vrp-seg button { border: 0; background: none; color: var(--dim); font: inherit; font-weight: 700; padding: 6px 14px; border-radius: 8px; cursor: pointer; }
.vrp-seg button.on { background: var(--accent); color: #fff; }
.vrp-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.vrp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vrp-sw { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; cursor: pointer; }
.vrp-sw input { width: 18px; height: 18px; accent-color: var(--green); }
.vrp-vol { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; }
.vrp-vol input { flex: 1; max-width: 60%; accent-color: var(--accent); }
.vrp-reels { width: 100%; margin-top: 10px; }
.vrp-note { margin: 8px 0 0; font-size: 13px; }
.vrp-ev { max-height: 380px; overflow-y: auto; }
.vrp-ev button { display: flex; gap: 10px; width: 100%; text-align: left; padding: 7px 0; border: 0; border-bottom: 1px solid var(--border-soft);
  background: none; color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; }
.vrp-ev button span:first-child { color: var(--dim); width: 44px; flex: none; font-variant-numeric: tabular-nums; }
.vrp-ev button.cur { font-weight: 700; }
.vrp-ev button.cur span:first-child { color: var(--accent); }
.vrp-del { display: flex; gap: 8px; }
.vrp-del form { margin: 0; }
.vrp-hint { display: none; }
@media (max-width: 1000px) { .vrp { flex-direction: column; } .vrp-cols { grid-template-columns: 1fr; } }
/* Reels: the 9:16 frame alone, centred, on black. Esc leaves. */
body.vrp-reels-on { background: #000; overflow: hidden; }
body.vrp-reels-on .top, body.vrp-reels-on .side, body.vrp-reels-on .vrp-side, body.vrp-reels-on .flash { display: none !important; }
body.vrp-reels-on main { max-width: none; padding: 0; margin: 0; }
body.vrp-reels-on .vrp-stagewrap { position: fixed; inset: 0; display: flex; justify-content: center; z-index: 50; background: #000; height: 100vh !important; }
body.vrp-reels-on .vrp-stage { position: relative; border-radius: 0; border: 0; box-shadow: none; transform-origin: 50% 0; flex: none; }
body.vrp-reels-on .vrp-hint { display: block; position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 60; padding: 8px 14px; border-radius: 10px;
  background: rgba(20, 24, 33, .9); color: #fff; font-size: 13px; opacity: 0; transition: opacity .3s; pointer-events: none; }
body.vrp-reels-on .vrp-hint.show { opacity: 1; }
body.vrp-nocursor, body.vrp-nocursor * { cursor: none !important; }
.vrp-sw, .vrp-vol { display: flex !important; flex-direction: row !important; text-transform: none !important; letter-spacing: 0 !important;
  font-size: 14px !important; font-weight: 500 !important; color: var(--text) !important; margin: 0 !important; text-align: left !important; }
.vrp-sw input { width: 18px !important; height: 18px; margin: 0 !important; flex: none; }
.vrp-vol input { width: auto !important; margin: 0 !important; padding: 0 !important; }
/* ★ 2026-11-07 Reel score + highlights */
.vrl-score { white-space: nowrap; }
.vrl-score b { font-size: 16px; display: block; }
.vrl-bar { display: block; width: 64px; height: 6px; border-radius: 3px; background: #2a3140; overflow: hidden; margin-top: 4px; }
.vrl-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, #ef4444); }
.vrl-bar .w0 { width: 2%; } .vrl-bar .w10 { width: 10%; } .vrl-bar .w20 { width: 20%; } .vrl-bar .w30 { width: 30%; } .vrl-bar .w40 { width: 40%; }
.vrl-bar .w50 { width: 50%; } .vrl-bar .w60 { width: 60%; } .vrl-bar .w70 { width: 70%; } .vrl-bar .w80 { width: 80%; } .vrl-bar .w90 { width: 90%; } .vrl-bar .w100 { width: 100%; }
.vrl-tags { margin-top: 4px; }
.vrl-chip { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 700; background: #1f2533; color: #c9d1e0; margin: 3px 4px 0 0; }
.vrl-sep { width: 1px; background: var(--border); margin: 0 4px; }
.vrp-score { color: #fbbf24; }
.vrp-hlhead { display: flex; justify-content: space-between; align-items: center; }
.vrp-hlhead .btn { text-transform: none; letter-spacing: 0; }
.vrp-hlz { position: absolute; top: 0; bottom: 0; z-index: 2; background: rgba(245, 158, 11, .26); border-left: 2px solid #f59e0b; border-right: 2px solid #f59e0b; pointer-events: none; }
.vrp-hlstar { position: absolute; top: 1px; transform: translateX(-50%); font-size: 14px; font-style: normal; z-index: 4; pointer-events: none; }
.vrp-hrow { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.vrp-hrow:last-child { border-bottom: 0; }
.vrp-hrow .n { width: 26px; height: 26px; border-radius: 50%; background: #3a2a0b; color: #fcd34d; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.vrp-hrow .t { flex: 1; min-width: 0; }
.vrp-hrow .t b { display: block; font-size: 14px; }
.vrp-hrow .t span { color: var(--dim); font-size: 12.5px; }
.tag.voice { background: #0f2e1c; color: #86efac; font-weight: 700; }
/* ★ 2026-10-13 timeline zoom: overview bar + frame, ticks */
.vrp-mini { position: relative; height: 30px; border-radius: 8px; background: #11151d; overflow: hidden; border: 1px solid var(--border-soft); cursor: pointer; user-select: none; }
.vrp-mini canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.vrp-mini .vrp-tl-segs i { position: absolute; top: 0; bottom: 0; }
.vrp-head-line.is-mini { width: 2px; box-shadow: none; }
.vrp-win { position: absolute; top: 0; bottom: 0; z-index: 6; border: 2px solid #fbbf24; border-radius: 6px; background: rgba(251, 191, 36, .10); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); cursor: grab; }
.vrp-win b { position: absolute; top: 50%; left: -6px; width: 9px; height: 20px; margin-top: -10px; border-radius: 4px; background: #fbbf24; cursor: ew-resize; }
.vrp-win b.r { left: auto; right: -6px; }
.vrp-zrow { display: flex; align-items: center; gap: 8px; margin: 10px 0 8px; flex-wrap: wrap; }
.vrp-zrow .vrp-lbl { margin: 0; }
.vrp-zrow .vrp-seg { margin-left: 0; }
.vrp-zinfo { margin-left: auto; font-size: 13px; color: var(--dim); }
.vrp-zinfo b { color: var(--text); }
.vrp-tl { height: 74px; }
.vrp-ticks { position: relative; height: 18px; margin-top: 4px; font-size: 11.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.vrp-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.vrp-hlstar { pointer-events: auto !important; cursor: zoom-in; }

/* ★ 2026-10-14 Replay → Profil suratlari */
.vrp-ava-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; box-sizing: border-box; }
.vrp-ava-btn small { color: var(--dim); font-weight: 400; }
.vrp-ava-btn i { font-style: normal; display: inline-block; transition: transform .15s; }
.vrp-ava-btn.is-open i { transform: rotate(180deg); }
.vrp-ava-all { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 4px; color: var(--dim); font-size: 12px; }
.vrp-ava-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border-soft); }
.vrp-ava-row img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.vrp-ava-row img.is-blur { filter: blur(4px); }
.vrp-ava-row > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vrp-seg { display: flex; flex: none; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--bg); }
.vrp-seg button { border: 0; background: none; color: var(--dim); padding: 5px 8px; font-size: 12px; cursor: pointer; }
.vrp-seg button.on { background: var(--accent); color: #fff; font-weight: 700; }

/* ★ 2026-10-14 Instagram consent */
.vrl-ig-names { font-size: 11.5px; color: #e26d6d; margin-top: 3px; max-width: 220px; }
.vrp-ig p { margin: 6px 0 0; }
.vrp-ig-ok { color: #22c55e; font-weight: 600; }
.vrp-ig-no { color: #e26d6d; font-weight: 700; }
.vrp-ig-warn { color: #eab308; font-weight: 700; }
.vrp-ig-list { margin: 8px 0 0; padding-left: 18px; line-height: 1.6; }

/* ★ 2026-10-16 (Ali) Ovul page: members, log and chat scroll inside fixed boxes instead of
   stretching the page. Headings stay pinned while the rows scroll. */
.ov-cols .card { min-width: 0; } /* phone: the tables pushed the cards past the screen edge */
.ov-scroll { max-height: 400px; overflow-y: auto; overscroll-behavior: contain; margin: 0;
  border: 1px solid var(--border-soft); border-radius: 10px; scrollbar-width: thin; }
.ov-scroll thead th { position: sticky; top: 0; z-index: 1; background: var(--panel); }
.ov-scroll.is-chat { max-height: 520px; padding: 0 12px; }
.ov-tagp.lv1 { background: #6b7486; } .ov-tagp.lv2 { background: #16a364; } .ov-tagp.lv3 { background: #2f6fe4; }
.ov-tagp.lv4 { background: #7c4ff0; } .ov-tagp.lv5 { background: #e23b3b; } .ov-tagp.lv6 { background: #e0a321; }
.ov-tagp.is-admin { background: linear-gradient(135deg, #d42a35, #3a0a10 70%, #0b0b0e); box-shadow: 0 0 8px rgba(226,40,50,.5); }

/* ★ 2026-10-16 join block card on the user page */
.jb-card { border-color: var(--amber); margin-top: 16px; padding-top: 12px; padding-bottom: 12px; }
.jb-card > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; font-size: 13.5px; }
.jb-card > summary::-webkit-details-marker { display: none; }
.jb-card > summary .jb-open { margin-left: auto; color: var(--amber); font-weight: 700; white-space: nowrap; }
.jb-card[open] > summary .jb-open { visibility: hidden; }
.jb-body { margin-top: 12px; }
.jb-acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.jb-acts form { margin: 0; }
.jb-note { margin-top: 8px; }

/* ★ 2026-11-14 ± Points drawer */
.pts-form { display: flex; flex-direction: column; gap: 12px; }
.pts-dir { display: flex; gap: 8px; }
.pts-dir label { flex: 1; }
.pts-dir input { position: absolute; opacity: 0; }
.pts-dir span { display: block; text-align: center; padding: 9px; border-radius: 10px; border: 1px solid var(--border); font-weight: 700; cursor: pointer; }
.pts-dir input:checked + span { background: var(--accent); border-color: transparent; color: #fff; }
.pts-dir label:last-child input:checked + span { background: var(--red); }
.pts-quick { display: flex; gap: 6px; }
.pts-quick .tag { cursor: pointer; border: 0; font: inherit; }
