.dash-main section { display: flex; flex-direction: column; gap: 16px; }
.dash-main section[hidden] { display: none; }

.lock-notice { border-color: rgba(255, 196, 107, 0.45); background: rgba(255, 196, 107, 0.07); }
.role-pill { align-self: flex-start; padding: 4px 10px; border-radius: 99px; font-size: 0.78rem; font-weight: 700; color: #ffb3c1; background: rgba(255, 92, 122, 0.1); border: 1px solid rgba(255, 92, 122, 0.35); }
.nav-count { margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: 0.72rem; font-weight: 700; background: var(--danger); color: #fff; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 16px; }
.stat strong { font-size: 1.5rem; letter-spacing: -0.02em; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bar-fill { width: 100%; min-height: 2px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), #5e2da7); }
.bar-n { font-size: 0.72rem; color: var(--muted); }
.bar-d { font-size: 0.7rem; color: var(--muted); }

.mini-list { display: flex; flex-direction: column; }
.mini-list .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.mini-list .row:last-child { border-bottom: none; }
.mini-list .row a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ulink { color: var(--accent); font-weight: 600; }
.ulink:hover { text-decoration: underline; }
.nowrap { white-space: nowrap; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar .input { flex: 1; min-width: 160px; }
.toolbar select.input { flex: 0 0 auto; width: auto; }

.table-card { padding: 0; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.pill { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 0.74rem; font-weight: 600; background: var(--card-2); border: 1px solid var(--border); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: rgba(74, 222, 128, 0.3); }
.pill.bad { color: var(--danger); border-color: rgba(255, 92, 122, 0.4); background: rgba(255, 92, 122, 0.08); }
.pill.warn { color: #ffc46b; border-color: rgba(255, 196, 107, 0.35); }
.pill.gold { color: #ffc83c; border-color: rgba(255, 200, 60, 0.4); }
.pill.host { color: #67e8f9; border-color: rgba(103, 232, 249, 0.35); }
.key-code { font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; letter-spacing: 0.03em; }
.key-list { width: 100%; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; resize: vertical; margin-bottom: 8px; }

.role { font-size: 0.78rem; font-weight: 700; text-transform: capitalize; }
.role.admin { color: var(--danger); }
.role.moderator { color: #6ee7f9; }
.role.user { color: var(--muted); }

.seg { display: inline-flex; align-self: flex-start; padding: 4px; gap: 4px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); }
.seg button { padding: 6px 14px; border-radius: 7px; border: none; background: none; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.seg button.on { background: var(--accent-soft); color: #fff; }

.r-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.r-bar .seg b { font-size: 0.72rem; opacity: 0.7; margin-left: 2px; }
.r-bar .u-filters { margin: 0; }
select.r-sort { width: auto; margin-left: auto; }
.report-list { display: flex; flex-direction: column; gap: 12px; }
.report-item { display: flex; flex-direction: column; gap: 10px; }
.report-item.hot { border-color: rgba(255, 92, 122, 0.35); }
.r-head { display: flex; align-items: center; gap: 12px; }
.r-who { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.r-who > div { display: flex; flex-direction: column; min-width: 0; }
.r-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-av { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; font-weight: 700; object-fit: cover;
  background: var(--accent-soft) center / cover no-repeat; color: var(--accent); font-size: 1.1rem; }
.r-count { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 6px 10px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--border); font-size: 1.3rem; font-weight: 700; line-height: 1.1; }
.r-count small { font-size: 0.65rem; font-weight: 500; color: var(--muted); }
.r-count.hot { color: var(--danger); border-color: rgba(255, 92, 122, 0.35); background: rgba(255, 92, 122, 0.08); }
.r-reasons { display: flex; gap: 6px; flex-wrap: wrap; }
.r-notes { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.r-note-row { padding: 8px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); }
.r-note { color: #d6d6e2; margin-top: 3px; white-space: pre-wrap; word-break: break-word; font-size: 0.88rem; }
.r-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.r-spacer { flex: 1; }
.r-empty { text-align: center; padding: 40px 20px; }
.r-empty-icon { font-size: 2.2rem; margin-bottom: 6px; }

.bulk-bar { position: sticky; top: 10px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--accent); }
.bulk-bar span { flex: 1; font-weight: 600; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.file-card { position: relative; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.file-card.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.f-check { position: absolute; top: 8px; left: 8px; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: rgba(0, 0, 0, 0.6); cursor: pointer; }
.f-check input { accent-color: var(--accent); cursor: pointer; }
.f-prev { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--bg-2); overflow: hidden; }
.f-prev img, .f-prev video { width: 100%; height: 100%; object-fit: cover; }
.f-icon { font-size: 2rem; }
.f-meta { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; min-width: 0; }
.f-meta strong { font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; max-height: 260px; overflow-y: auto; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border-radius: 99px; font-size: 0.82rem; background: var(--bg-2); border: 1px solid var(--border); }
.chip button { border: none; background: none; cursor: pointer; color: var(--muted); font-size: 0.75rem; padding: 0 4px; }
.chip button:hover { color: var(--danger); }
.builtin { margin-top: 8px; }
.builtin summary { cursor: pointer; }
.builtin p { margin-top: 6px; line-height: 1.7; }

.settings-form { display: flex; flex-direction: column; gap: 14px; }
.settings-form .btn { align-self: flex-start; }

.admin-modal { width: min(620px, 100%); max-height: 88vh; overflow-y: auto; background: var(--card); border-color: var(--border); }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.m-section { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.m-section h4 { font-size: 0.9rem; }
.m-section .btn { align-self: flex-start; }
.m-section .toolbar .btn { align-self: center; }
.danger-zone h4 { color: var(--danger); }
.badge-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.badge-tile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.1s; }
.badge-tile:hover { border-color: #3a3a50; }
.badge-tile:active { transform: scale(0.98); }
.badge-tile:disabled { opacity: 0.6; cursor: wait; }
.badge-tile.on { border-color: var(--accent); background: var(--accent-soft); }
.bt-icon { font-size: 1.25rem; display: flex; flex-shrink: 0; }
.badge-tile:not(.on) .bt-icon { filter: grayscale(0.8); opacity: 0.7; }
.bt-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.bt-text b { font-size: 0.88rem; }
.bt-text small { font-size: 0.74rem; color: var(--muted); }
.bt-state { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; border: 1px solid var(--border); color: var(--muted); flex-shrink: 0; }
.badge-tile.on .bt-state { background: var(--accent); border-color: var(--accent); color: #0b0b12; }
@media (max-width: 560px) { .badge-tiles { grid-template-columns: 1fr; } }
.badge-years { display: flex; flex-direction: column; gap: 6px; }
.by-row { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-2); }
.by-row b { flex: 1; font-size: 0.85rem; }
.by-row .input { width: 110px; flex: none; }
.by-row .bt-icon .bico { width: 26px; height: 26px; }
.notice-history { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; margin-top: 4px; }
.nh-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-2); }
.nh-row > div { flex: 1; min-width: 0; }
.nh-row p { margin-top: 3px; white-space: pre-wrap; word-break: break-word; }
.nh-row .pill { flex: none; }
.ban-line { color: #ffc2cd; }

/* ---------- users ---------- */
.u-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.u-filter { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; font: inherit; font-size: 0.84rem; font-weight: 600; color: var(--muted); cursor: pointer; background: var(--card); border: 1px solid var(--border); transition: border-color 0.15s, color 0.15s, background 0.15s; }
.u-filter b { padding: 1px 7px; border-radius: 99px; font-size: 0.74rem; background: var(--bg-2); color: var(--text); }
.u-filter:hover { border-color: #33334a; color: var(--text); }
.u-filter.on { color: #fff; border-color: var(--accent); background: var(--accent-soft); }
.u-filter.on b { background: var(--accent); color: #0b0b12; }
.u-table th.num, .u-table td.num { text-align: right; }
.u-check { width: 36px; padding-right: 0 !important; }
.u-check input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.u-row { cursor: pointer; }
.u-row.sel { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.u-row.sel:hover { background: color-mix(in srgb, var(--accent) 12%, transparent) !important; }
.u-cell { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.u-av, .m-av { display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; font-weight: 800; color: #fff; background: var(--card-2) center / cover; border: 1px solid var(--border); }
.u-av { width: 34px; height: 34px; font-size: 0.9rem; }
.u-names { display: flex; flex-direction: column; min-width: 0; }
.u-names b { font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.u-names span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.u-2fa { font-size: 0.75rem; }
.u-badges { display: flex; align-items: center; gap: 4px; font-size: 0.8rem; flex-wrap: wrap; }
td.u-badges { display: table-cell; white-space: nowrap; }
td.u-badges > span { margin-right: 3px; }
.u-badges .bico:hover { transform: none; }
.u-badges.big { font-size: 1rem; gap: 6px; }
.u-more-b { font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.u-empty { text-align: center; padding: 30px !important; }
.u-more { align-self: center; }
.u-bulk { flex-wrap: wrap; }
.u-bulk > span { flex: 0 0 auto; }
.u-bulk-actions { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.u-bulk .u-bulk-more { width: auto; flex: none; padding: 6px 10px; font-size: 0.82rem; }
.u-bulk.busy { opacity: 0.6; pointer-events: none; }

.admin-modal.manage-modal { width: min(760px, 100%); gap: 14px; }
.m-head { display: flex; align-items: center; gap: 14px; }
.m-av { width: 56px; height: 56px; font-size: 1.4rem; }
.m-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.m-who h3 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.m-head-actions { display: flex; gap: 6px; align-self: flex-start; }
.m-tabs { align-self: stretch; display: flex; }
.m-tabs button { flex: 1; }
.m-panel { display: flex; flex-direction: column; gap: 14px; }
.m-panel[hidden] { display: none; }
.m-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 18px; padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); font-size: 0.88rem; }
.m-info > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.m-form { display: flex; flex-direction: column; gap: 10px; }
.m-form .btn { align-self: flex-end; }
@media (max-width: 560px) { .m-head { flex-wrap: wrap; } }
.temp-pw { padding: 2px 8px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--accent); font-size: 0.95rem; user-select: all; }

/* ---------- shell ---------- */
.admin-sidebar { background: radial-gradient(120% 40% at 0% 0%, rgba(255, 92, 122, 0.08), transparent 70%), linear-gradient(180deg, #09080c, #050507); }
.side-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 0 8px; }
.side-brand .logo { flex-shrink: 0; }
.brand-tag { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.18em; padding: 3px 7px; border-radius: 6px; color: #ffb3c1; background: rgba(255, 92, 122, 0.1); border: 1px solid rgba(255, 92, 122, 0.3); }
.side-nav .nav-count { margin-left: auto; }
.side-nav a.nav-hot { color: #f5d0fe; }
.side-nav a.nav-hot svg { color: #f472b6; opacity: 1; }
.side-nav a[hidden] { display: none; }

.admin-main { display: flex; flex-direction: column; gap: 18px; }
.admin-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; margin: -30px calc(-1 * clamp(16px, 3vw, 40px)) 0; padding: 14px clamp(16px, 3vw, 40px); background: rgba(5, 5, 7, 0.75); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.top-search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; cursor: pointer; text-align: left; color: var(--muted); font: inherit; font-size: 0.88rem; background: var(--card); border: 1px solid var(--border); transition: border-color 0.15s; }
.top-search:hover { border-color: #33334a; }
.top-search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }
.top-search span { flex: 1; }
kbd { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; padding: 2px 6px; border-radius: 5px; background: var(--bg-2); border: 1px solid var(--border); color: var(--muted); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 600; color: var(--ok); padding: 5px 10px; border-radius: 99px; background: rgba(74, 222, 128, 0.07); border: 1px solid rgba(74, 222, 128, 0.25); }
.live-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: livePulse 2s infinite; }
.live-dot.off { color: var(--danger); background: rgba(255, 92, 122, 0.07); border-color: rgba(255, 92, 122, 0.3); }
@keyframes livePulse { 50% { opacity: 0.35; } }
.giveaway-btn { background: linear-gradient(135deg, #f472b6, #a78bfa); border: none; color: #fff; box-shadow: 0 0 18px rgba(244, 114, 182, 0.35); }
.giveaway-btn:hover { filter: brightness(1.1); }

/* ---------- overview ---------- */
.ov-hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 26px; border-radius: 18px; border: 1px solid var(--border);
  background: radial-gradient(80% 140% at 100% 0%, rgba(244, 114, 182, 0.16), transparent 60%), radial-gradient(70% 120% at 0% 100%, rgba(139, 123, 255, 0.18), transparent 60%), var(--card); }
.ov-kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.ov-title { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.03em; margin-bottom: 6px; }
.ov-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 92px; padding: 12px 10px; border-radius: 12px; font: inherit; font-size: 0.78rem; font-weight: 600; color: #dcdce6; cursor: pointer; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); transition: transform 0.15s, border-color 0.15s, background 0.15s; }
.qa span { font-size: 1.3rem; }
.qa:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--accent-soft); }
.qa[hidden] { display: none; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.kpi { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; color: inherit; transition: transform 0.15s, border-color 0.15s; --tone: var(--accent); }
a.kpi:hover { transform: translateY(-2px); border-color: var(--tone); }
.kpi::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--tone); opacity: 0.09; filter: blur(10px); }
.kpi-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; font-size: 1rem; margin-bottom: 6px; background: color-mix(in srgb, var(--tone) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent); }
.kpi-label { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.kpi-value { font-size: 1.65rem; letter-spacing: -0.03em; }
.kpi-sub { font-size: 0.75rem; }
.tone-violet { --tone: #a78bfa; } .tone-cyan { --tone: #67e8f9; } .tone-teal { --tone: #2dd4bf; } .tone-red { --tone: #ff5c7a; }
.tone-green { --tone: #4ade80; } .tone-pink { --tone: #f472b6; } .tone-amber { --tone: #fbbf24; }
.trend { font-weight: 700; }
.trend.up { color: var(--ok); } .trend.down { color: var(--danger); } .trend.flat { color: var(--muted); }

.ov-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.bar-fill.views { background: linear-gradient(180deg, #67e8f9, #1d6f86); }
.feed { display: flex; flex-direction: column; gap: 12px; max-height: 240px; overflow-y: auto; }
.feed-row { display: flex; gap: 10px; font-size: 0.85rem; line-height: 1.35; }
.feed-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; flex-shrink: 0; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* ---------- host giveaway ---------- */
.ga-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ga-form { display: flex; flex-direction: column; gap: 16px; }
.ga-mode { align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; }
.ga-form [hidden] { display: none !important; }
.pool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 6px 0; }
.pool { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 10px; font: inherit; color: var(--text); text-align: left; cursor: pointer; background: var(--bg-2); border: 1px solid var(--border); transition: border-color 0.15s, background 0.15s; }
.pool span { font-size: 1.1rem; }
.pool b { font-size: 0.82rem; }
.pool small { font-size: 0.72rem; color: var(--muted); }
.pool.on { border-color: #f472b6; background: rgba(244, 114, 182, 0.09); }
.ga-form input[type=range] { width: 100%; accent-color: #f472b6; }
.ga-go { padding: 14px; font-size: 1rem; font-weight: 800; letter-spacing: 0.06em; border: none; color: #fff; background: linear-gradient(135deg, #f472b6, #a78bfa 60%, #67e8f9); background-size: 200% 100%; box-shadow: 0 0 26px rgba(244, 114, 182, 0.35); animation: gaShine 4s linear infinite; }
.ga-go:disabled { opacity: 0.6; cursor: wait; }
@keyframes gaShine { to { background-position: 200% 0; } }
.ga-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; min-height: 340px;
  background: radial-gradient(60% 60% at 50% 40%, rgba(244, 114, 182, 0.12), transparent 70%), var(--card); }
.ga-wheel { width: min(320px, 100%); height: 110px; display: grid; place-items: center; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--border); box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5); overflow: hidden; }
.ga-wheel.spinning { border-color: #f472b6; box-shadow: 0 0 30px rgba(244, 114, 182, 0.35), inset 0 0 30px rgba(0, 0, 0, 0.5); }
.ga-idle { font-size: 3rem; animation: gaFloat 2.4s ease-in-out infinite; }
@keyframes gaFloat { 50% { transform: translateY(-6px) rotate(-4deg); } }
.ga-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 14px; }
.ga-name.win { background: linear-gradient(90deg, #fbbf24, #f472b6, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; animation: gaPop 0.5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes gaPop { from { transform: scale(0.5); opacity: 0; } }
.ga-caption { font-size: 0.92rem; color: #d6d6e2; }
.ga-winners { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ga-chip { padding: 6px 12px; border-radius: 99px; font-size: 0.85rem; font-weight: 700; color: #fde68a; background: rgba(251, 191, 36, 0.09); border: 1px solid rgba(251, 191, 36, 0.35); animation: gaPop 0.4s backwards; }
code.ga-chip { color: #e0f2fe; background: rgba(103, 232, 249, 0.07); border-color: rgba(103, 232, 249, 0.3); border-radius: 8px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px; animation: confettiFall linear forwards; }
@keyframes confettiFall { to { transform: translate(var(--drift), 105vh) rotate(720deg); opacity: 0.7; } }

/* ---------- command palette ---------- */
.palette { position: fixed; inset: 0; z-index: 150; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); }
.palette[hidden] { display: none; }
.palette-box { width: min(600px, 100%); display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid #2a2a3a; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); animation: fadeIn 0.15s ease; }
.palette-input { padding: 16px 18px; font: inherit; font-size: 1rem; color: var(--text); background: none; border: none; border-bottom: 1px solid var(--border); outline: none; }
.palette-list { display: flex; flex-direction: column; max-height: 50vh; overflow-y: auto; padding: 6px; }
.pal-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font: inherit; color: var(--text); text-align: left; cursor: pointer; background: none; border: none; }
.pal-item.on, .pal-item:hover { background: var(--accent-soft); }
.pal-kind { flex-shrink: 0; width: 56px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pal-label { flex: 1; font-size: 0.9rem; }
.pal-empty { padding: 14px; }
.health-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; color: inherit; --hc: #4ade80; border-color: color-mix(in srgb, var(--hc) 35%, transparent); background: color-mix(in srgb, var(--hc) 6%, var(--card)); }
.health-strip.hs-degraded { --hc: #facc15; } .health-strip.hs-outage { --hc: #f87171; } .health-strip.hs-maintenance { --hc: #60a5fa; }
.hs-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hc) 22%, transparent); }
.hs-go { margin-left: auto; color: var(--accent); font-size: 0.85rem; font-weight: 600; }

.potw-now { display: flex; align-items: center; gap: 14px; }
.potw-av { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; background: var(--card-2) center / cover; box-shadow: 0 0 0 2px rgba(253, 224, 71, 0.7), 0 0 18px rgba(253, 224, 71, 0.25); }
.potw-now > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.cb-admin { display: flex; flex-direction: column; gap: 6px; }
.cb-admin-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: var(--card-2); }
.cb-admin-row .bico { font-size: 1.1rem; }
.cb-admin-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cb-admin-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#incidentList { display: flex; flex-direction: column; gap: 12px; }
.incident { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--border); }
.incident.is-resolved { opacity: 0.75; }
.inc-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inc-top .muted { margin-left: auto; }
.inc-update { padding-left: 10px; border-left: 2px solid var(--border); }
.inc-update b { text-transform: capitalize; font-size: 0.85rem; }
.inc-actions .input { min-width: 140px; }

.palette-hint { display: flex; gap: 6px; align-items: center; padding: 10px 16px; font-size: 0.75rem; color: var(--muted); border-top: 1px solid var(--border); }

@media (max-width: 1100px) {
  .ov-grid, .ga-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .top-search span, .top-search kbd { display: none; }
  .top-search { flex: 0 0 auto; }
}
