/* Web24 Admin - command-center theme (base copied from reseller/app.css) + admin parts */
:root {
    --bg: #07070d; --bg-2: #0d0d18;
    --glass: rgba(255, 255, 255, .045); --glass-2: rgba(255, 255, 255, .075); --glass-line: rgba(255, 255, 255, .09);
    --text: #eef0ff; --muted: #8b8fa8; --dim: #5d6078;
    --red: #ff2d55; --violet: #a855f7; --cyan: #22d3ee; --ok: #34d399; --warn: #fbbf24; --bad: #fb7185; --blue: #60a5fa;
    --grad: linear-gradient(135deg, #ff2d55 0%, #c026d3 50%, #7c3aed 100%);
    --grad-cool: linear-gradient(135deg, #22d3ee, #7c3aed);
    --radius: 18px;
    --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
.login-alt { text-align: center; margin: 14px 0 0; font-size: 13px; color: var(--muted); } .login-alt a { color: var(--cyan); font-weight: 600; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--cyan); text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); } .small { font-size: 13px; } .error { color: var(--bad); min-height: 1.2em; font-size: 14px; }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }
::selection { background: rgba(168, 85, 247, .4); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 10px; }

/* ---------- living background */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%; filter: blur(90px); opacity: .32; animation: drift 26s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: #ff2d55; top: -25vmax; left: -15vmax; }
.aurora i:nth-child(2) { background: #7c3aed; bottom: -30vmax; right: -20vmax; animation-duration: 32s; }
.aurora i:nth-child(3) { background: #0891b2; top: 30%; left: 40%; width: 40vmax; height: 40vmax; opacity: .18; animation-duration: 38s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6vmax, 4vmax) scale(1.1); } 100% { transform: translate(-4vmax, 6vmax) scale(.95); } }
.grid-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); }
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.glass { background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }

/* ---------- brand */
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: #fff; color: #0b0b12; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.brand-mark span { background: var(--red); color: #fff; margin-left: 2px; padding: 0 4px; border-radius: 4px; }
.brand-mark.sm { width: auto; padding: 0 7px; height: 34px; border-radius: 10px; font-size: 13px; box-shadow: 0 0 24px rgba(255,45,85,.35); }
.brand-orb { align-self: center; padding: 6px; border-radius: 22px; background: var(--grad); box-shadow: 0 0 60px rgba(192, 38, 211, .45); animation: pulse-orb 4s ease-in-out infinite; }
@keyframes pulse-orb { 50% { box-shadow: 0 0 90px rgba(255, 45, 85, .55); } }

/* ---------- sign in */
#login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-box { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px; text-align: center; padding: 30px 26px; border-radius: 26px; animation: rise .5s ease both; }
.login-box h1 { margin: 6px 0 0; font-size: 24px; letter-spacing: -.02em; }
.login-box label { text-align: left; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

input, select, textarea { background: rgba(0,0,0,.35); border: 1px solid var(--glass-line); border-radius: 12px; padding: 11px 13px; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(168,85,247,.7); box-shadow: 0 0 0 4px rgba(168,85,247,.15); }
select option { background: #15151f; }

.btn { border: 1px solid var(--glass-line); background: var(--glass-2); border-radius: 12px; padding: 11px 18px; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .12s, background .15s, box-shadow .2s; color: var(--text); }
.btn:hover { background: rgba(255,255,255,.11); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; }
.btn.primary:hover { box-shadow: 0 8px 30px rgba(192, 38, 211, .45); }
.btn.glow { box-shadow: 0 8px 30px rgba(255, 45, 85, .35); }
.btn.cool { background: var(--grad-cool); border-color: transparent; color: #fff; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 7px 13px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.btn.danger, .danger { color: var(--bad) !important; border-color: rgba(251,113,133,.35) !important; }
.icon-btn { border: 0; background: transparent; width: 40px; height: 40px; border-radius: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--text); position: relative; }
.icon-btn:hover { background: var(--glass-2); }

/* ---------- shell */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-top)) 16px 10px; background: rgba(7,7,13,.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--glass-line); }
.top-title { font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.search-btn { flex: 1; max-width: 460px; margin-left: auto; display: none; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(0,0,0,.3); color: var(--muted); cursor: pointer; text-align: left; }
.search-btn span { flex: 1; }
kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--glass-line); border-radius: 6px; padding: 2px 6px; color: var(--muted); background: rgba(255,255,255,.04); }
.bell { margin-left: auto; }
.bell b { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; padding: 0 5px; box-shadow: 0 0 12px rgba(255,45,85,.8); }
.credits-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 14px 6px 8px; font-weight: 700; font-size: 14px; white-space: nowrap; background: rgba(0,0,0,.35); border: 1px solid rgba(251,191,36,.3); font-family: var(--mono); cursor: pointer; }
.coin { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fde68a, #f59e0b 60%, #b45309); box-shadow: 0 0 10px rgba(251,191,36,.6); }
.sidebar { position: fixed; z-index: 30; top: 0; bottom: 0; left: 0; width: 262px; padding: calc(74px + var(--safe-top)) 12px 16px; display: flex; flex-direction: column; gap: 3px; transform: translateX(-105%); transition: transform .25s ease; background: rgba(10,10,18,.92); border-right: 1px solid var(--glass-line); backdrop-filter: blur(18px); }
.sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.55); }
.sidebar a { color: var(--muted); padding: 10px 12px; border-radius: 12px; display: flex; align-items: center; gap: 12px; font-weight: 500; transition: background .15s, color .15s; position: relative; }
.sidebar a:hover { color: var(--text); background: var(--glass); }
.sidebar a.on { color: var(--text); background: linear-gradient(90deg, rgba(255,45,85,.18), rgba(124,58,237,.08)); }
.sidebar a.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--grad); box-shadow: 0 0 12px rgba(255,45,85,.8); }
.sidebar a.accent { color: #fff; background: var(--grad); margin: 8px 0; justify-content: center; font-weight: 700; box-shadow: 0 8px 26px rgba(192,38,211,.35); }
.side-foot { margin-top: auto; padding: 10px 12px; font-size: 12px; color: var(--dim); border-top: 1px solid var(--glass-line); }
.nav-badge { background: var(--red); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 800; margin-left: auto; }
.content { padding: 18px 16px calc(100px + var(--safe-bottom)); max-width: none; margin: 0 auto; animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tabbar { position: fixed; z-index: 25; left: 12px; right: 12px; bottom: calc(10px + var(--safe-bottom)); display: flex; align-items: center; justify-content: space-around; padding: 8px 6px; border-radius: 22px; background: rgba(14,14,24,.85); border: 1px solid var(--glass-line); backdrop-filter: blur(18px); box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.tabbar a { color: var(--dim); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 12px; }
.tabbar a.on { color: var(--text); }
.tabbar a.on svg { color: var(--red); filter: drop-shadow(0 0 6px rgba(255,45,85,.7)); }
.tabbar .fab { width: 54px; height: 54px; border-radius: 18px; background: var(--grad); color: #fff; justify-content: center; margin-top: -26px; box-shadow: 0 10px 30px rgba(192,38,211,.55); }
.tabbar .fab svg { width: 26px; height: 26px; }
@media (min-width: 960px) {
    .menu-btn, .tabbar { display: none; }
    .search-btn { display: flex; }
    .bell { margin-left: 0; }
    .sidebar { transform: none; top: 61px; padding-top: 16px; }
    .sidebar.open { box-shadow: none; }
    .content { margin-left: 262px; padding: 26px 32px 40px; }
}

/* ---------- cards & stats */
h2 { font-size: 16px; margin: 0 0 14px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.card { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); padding: 18px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); position: relative; animation: rise .45s ease both; }
.card + .card { margin-top: 14px; }
.grid > .card + .card, .cols > .card + .card { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { overflow: hidden; }
.stat .n { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-family: var(--mono); }
.stat .l { color: var(--muted); font-size: 13px; }
.stat .ico { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.05); }
.stat .ico svg { width: 18px; height: 18px; }
.stat.click { cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .2s; }
.stat.click:hover { transform: translateY(-3px); border-color: rgba(168,85,247,.45); box-shadow: 0 14px 40px rgba(124,58,237,.18); }
.c-ok .n { color: var(--ok); } .c-cyan .n { color: var(--cyan); } .c-warn .n { color: var(--warn); } .c-bad .n { color: var(--bad); } .c-violet .n { color: #c084fc; }
.c-ok .ico { color: var(--ok); } .c-cyan .ico { color: var(--cyan); } .c-warn .ico { color: var(--warn); } .c-bad .ico { color: var(--bad); } .c-violet .ico { color: #c084fc; }
.cols { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 14px; }
@media (min-width: 1100px) { .cols { grid-template-columns: 1.35fr 1fr; } .cols.three { grid-template-columns: 1fr 1fr 1fr; } }
.cols .card + .card { margin-top: 0; }

/* hero */
.hero { display: grid; gap: 18px; grid-template-columns: auto 1fr; align-items: center; padding: 22px; background: linear-gradient(135deg, rgba(255,45,85,.12), rgba(124,58,237,.1) 55%, rgba(34,211,238,.06)); border-color: rgba(255,255,255,.12); margin-bottom: 14px; }
.hero h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.hero .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.gauge { width: 132px; height: 132px; position: relative; }
.gauge svg { width: 132px; height: 132px; transform: rotate(-90deg); }
.gauge .val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge .val b { font-size: 26px; font-family: var(--mono); }
.gauge .val span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 560px) { .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } .hero-actions { justify-content: center; } }

/* live */
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); display: inline-block; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.bars { display: flex; flex-direction: column; gap: 9px; }
.hbar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; }
.hbar .track { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.06); overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 6px; background: var(--grad); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.hbar .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .v { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.flags { display: flex; flex-wrap: wrap; gap: 8px; }
.flag { background: rgba(255,255,255,.05); border: 1px solid var(--glass-line); border-radius: 999px; padding: 4px 11px; font-size: 13px; }
.flag { display: inline-flex; align-items: center; gap: 7px; } .flag img { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; } .flag b { font-family: var(--mono); }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; } .mini div { background: rgba(0,0,0,.25); border: 1px solid var(--glass-line); border-radius: 12px; padding: 10px 12px; } .mini b { display: block; font-family: var(--mono); font-size: 20px; } .mini span { color: var(--muted); font-size: 12px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.06); font-size: 14px; cursor: pointer; }
.feed li:last-child { border-bottom: 0; }
.feed .who { font-weight: 600; font-family: var(--mono); font-size: 13px; } .feed .what { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

/* insights */
.insight { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--glass-line); }
.insight + .insight { margin-top: 10px; }
.insight .ic { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.insight .tx { flex: 1; font-size: 14px; color: var(--muted); } .insight .tx b { color: var(--text); } .insight .tx b.t { display: block; font-size: 15px; margin-bottom: 2px; }
.ic.warn { background: rgba(251,191,36,.12); color: var(--warn); } .ic.cyan { background: rgba(34,211,238,.12); color: var(--cyan); }
.ic.violet { background: rgba(168,85,247,.14); color: #c084fc; } .ic.ok { background: rgba(52,211,153,.12); color: var(--ok); } .ic.bad { background: rgba(251,113,133,.12); color: var(--bad); }
.spark { width: 100%; height: 72px; display: block; }

/* announcement / warnings */
.announce { display: flex; gap: 12px; align-items: flex-start; background: linear-gradient(90deg, rgba(34,211,238,.12), rgba(124,58,237,.08)); border: 1px solid rgba(34,211,238,.25); border-radius: 14px; padding: 13px 15px; margin-bottom: 14px; white-space: pre-wrap; }
.warn-box { background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3); border-radius: 14px; padding: 13px 15px; margin-bottom: 14px; }

/* lists & lines */
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-bottom: 1px solid rgba(255,255,255,.06); padding: 11px 2px; }
.list li:last-child { border-bottom: 0; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar input { flex: 1; min-width: 180px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 8px; margin-bottom: 8px; }
.chip { border: 1px solid var(--glass-line); background: var(--glass); border-radius: 999px; padding: 7px 14px; cursor: pointer; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--muted); transition: all .15s; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 20px rgba(192,38,211,.35); }
.line-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.05); cursor: pointer; transition: background .12s; }
.line-row:hover { background: rgba(255,255,255,.035); }
.line-row:last-child { border-bottom: 0; }
.line-row .avatar { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex: none; background: rgba(255,255,255,.06); position: relative; text-transform: uppercase; }
.line-row .avatar.on::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); border: 2px solid #0d0d18; box-shadow: 0 0 8px var(--ok); }
.line-row .main { flex: 1; min-width: 0; }
.line-row .u { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 14px; }
.line-row .sub { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.life { height: 4px; border-radius: 4px; background: rgba(255,255,255,.07); margin-top: 6px; overflow: hidden; max-width: 260px; }
.life i { display: block; height: 100%; border-radius: 4px; }
.line-row .pick { width: 18px; height: 18px; flex: none; accent-color: #c026d3; }
.badge { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; border-radius: 7px; padding: 4px 8px; text-transform: uppercase; white-space: nowrap; }
.badge.active { background: rgba(52,211,153,.12); color: var(--ok); }
.badge.trial { background: rgba(96,165,250,.14); color: var(--blue); }
.badge.expired, .badge.banned { background: rgba(251,113,133,.12); color: var(--bad); }
.badge.disabled { background: rgba(139,143,168,.15); color: var(--muted); }
.more { text-align: center; padding: 14px; }
.bulkbar { position: sticky; bottom: 0; background: rgba(14,14,24,.92); backdrop-filter: blur(14px); border-top: 1px solid var(--glass-line); padding: 12px 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; z-index: 5; border-radius: 0 0 var(--radius) var(--radius); }
.bulkbar select { flex: 1; min-width: 180px; }

/* forms */
.form { display: flex; flex-direction: column; gap: 14px; max-width: 600px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { flex-direction: row !important; align-items: center; gap: 10px !important; color: var(--text) !important; font-size: 15px !important; }
.check input { width: auto; accent-color: #c026d3; }
.summary { background: rgba(0,0,0,.3); border: 1px solid var(--glass-line); border-radius: 14px; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 14px; }
.summary b { text-align: right; font-family: var(--mono); }
.pkg { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.price { font-weight: 800; white-space: nowrap; font-family: var(--mono); }
.pkg-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pkg-card { padding: 18px; border-radius: 16px; background: rgba(0,0,0,.25); border: 1px solid var(--glass-line); display: flex; flex-direction: column; gap: 6px; transition: transform .15s, border-color .15s; }
.pkg-card:hover { transform: translateY(-3px); border-color: rgba(168,85,247,.45); }
.pkg-card .p { font-size: 26px; font-weight: 800; font-family: var(--mono); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* sheet */
.sheet-back { position: fixed; inset: 0; z-index: 50; background: rgba(3,3,8,.65); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; animation: fadein .2s ease both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.sheet { background: rgba(16,16,28,.92); width: 100%; max-width: 660px; max-height: 92vh; border-radius: 24px 24px 0 0; display: flex; flex-direction: column; animation: up .28s cubic-bezier(.2,.8,.2,1) both; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 720px) { .sheet-back { align-items: center; } .sheet { border-radius: 24px; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; }
.sheet-head h2 { margin: 0; font-family: var(--mono); }
.sheet-body { overflow-y: auto; padding: 6px 18px calc(20px + var(--safe-bottom)); }
.kv { display: grid; grid-template-columns: auto 1fr auto; gap: 9px 12px; align-items: center; margin: 8px 0 14px; }
.kv dt { color: var(--muted); font-size: 13px; } .kv dd { margin: 0; font-weight: 600; word-break: break-all; font-family: var(--mono); font-size: 13.5px; }
.copy { border: 1px solid var(--glass-line); background: var(--glass-2); border-radius: 8px; padding: 4px 10px; cursor: pointer; font-size: 12px; color: var(--text); }
.copy:hover { border-color: rgba(168,85,247,.6); }
.sec { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin: 18px 0 9px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* palette */
.palette-back { position: fixed; inset: 0; z-index: 60; background: rgba(3,3,8,.6); backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 14px 0; animation: fadein .15s ease both; }
.palette { width: 100%; max-width: 620px; border-radius: 20px; background: rgba(16,16,28,.92); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(168,85,247,.25); overflow: hidden; animation: up .2s ease both; }
.palette-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--glass-line); color: var(--muted); }
.palette-in input { border: 0; background: transparent; padding: 4px 0; font-size: 17px; box-shadow: none !important; }
.palette-list { max-height: 55vh; overflow-y: auto; padding: 6px; }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.pal-item.sel, .pal-item:hover { background: linear-gradient(90deg, rgba(255,45,85,.16), rgba(124,58,237,.1)); }
.pal-item .t { flex: 1; min-width: 0; } .pal-item .t small { display: block; color: var(--muted); font-size: 12px; }
.pal-group { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; padding: 10px 12px 4px; }

/* notifications */
.notif { position: fixed; z-index: 55; top: calc(64px + var(--safe-top)); right: 12px; width: min(380px, calc(100vw - 24px)); border-radius: 18px; background: rgba(16,16,28,.94); box-shadow: 0 30px 80px rgba(0,0,0,.6); padding: 8px; animation: up .2s ease both; }
.notif .it { display: flex; gap: 10px; padding: 11px 12px; border-radius: 12px; cursor: pointer; font-size: 14px; align-items: flex-start; }
.notif .it:hover { background: var(--glass-2); }
.notif .empty { padding: 18px; text-align: center; color: var(--muted); }

/* tables, misc */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 6px; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: top; }
.table th { color: var(--dim); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 6px; }
.chart .bar { border-radius: 4px 4px 0 0; min-height: 2px; background: var(--grad); }
.chart .bar.renew { background: var(--grad-cool); }
.chart-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.msg { border-radius: 16px; padding: 11px 14px; margin: 8px 0; white-space: pre-wrap; max-width: 88%; font-size: 14px; }
.msg.you { background: linear-gradient(135deg, rgba(255,45,85,.22), rgba(124,58,237,.2)); margin-left: auto; border-bottom-right-radius: 4px; }
.msg.admin { background: var(--glass-2); border-bottom-left-radius: 4px; }
.msg .meta { font-size: 11px; color: var(--muted); margin-top: 4px; }
.qr { background: #fff; padding: 10px; border-radius: 12px; display: inline-block; }
.status-pill { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; border-radius: 7px; padding: 4px 8px; }
.status-pill.pending { background: rgba(251,191,36,.12); color: var(--warn); }
.status-pill.approved { background: rgba(52,211,153,.12); color: var(--ok); }
.status-pill.rejected, .status-pill.cancelled { background: rgba(139,143,168,.15); color: var(--muted); }

/* skeleton + toast + loader */
.skel { border-radius: 16px; height: 96px; background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 37%, rgba(255,255,255,.04) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; }
.skel.tall { height: 220px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.loading-inline { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 18px 4px; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: calc(100px + var(--safe-bottom)); transform: translateX(-50%); z-index: 70; background: rgba(20,20,34,.95); color: var(--text); border: 1px solid rgba(168,85,247,.4); border-radius: 14px; padding: 12px 18px; font-weight: 600; max-width: 90vw; box-shadow: 0 16px 50px rgba(0,0,0,.5), 0 0 30px rgba(124,58,237,.25); }
@media (min-width: 960px) { .toast { bottom: 28px; } }
.loader { position: fixed; inset: 0; z-index: 65; display: flex; align-items: center; justify-content: center; background: rgba(3,3,8,.45); backdrop-filter: blur(3px); }
.loader .ring { width: 54px; height: 54px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--red); border-right-color: var(--violet); animation: spin .8s linear infinite; box-shadow: 0 0 40px rgba(192,38,211,.4); }

/* AI assistant + Channel Doctor */
.sidebar a.ai-link { color: var(--text); background: linear-gradient(90deg, rgba(34,211,238,.14), rgba(124,58,237,.12)); border: 1px solid rgba(34,211,238,.25); }
.ai-orb { width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad-cool); box-shadow: 0 0 40px rgba(34,211,238,.4); animation: pulse-ai 3.5s ease-in-out infinite; }
.ai-orb svg { width: 30px; height: 30px; }
.ai-orb.sm { width: 40px; height: 40px; border-radius: 13px; } .ai-orb.sm svg { width: 20px; height: 20px; }
@keyframes pulse-ai { 50% { box-shadow: 0 0 70px rgba(124,58,237,.55); } }
.ai-wrap { display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 460px; padding: 0; overflow: hidden; }
@media (max-width: 959px) { .ai-wrap { height: calc(100vh - 190px); } }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--glass-line); }
.ai-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ai-hello { margin: auto; text-align: center; max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ai-hello h1 { margin: 6px 0 0; font-size: 24px; }
.ai-msg { display: flex; gap: 10px; align-items: flex-end; max-width: 86%; animation: rise .3s ease both; }
.ai-msg.you { margin-left: auto; flex-direction: row-reverse; }
.ai-av { width: 30px; height: 30px; border-radius: 10px; background: var(--grad-cool); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.ai-av svg { width: 16px; height: 16px; }
.ai-b { padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; background: var(--glass-2); border: 1px solid var(--glass-line); border-bottom-left-radius: 5px; word-break: break-word; }
.ai-msg.you .ai-b { background: linear-gradient(135deg, rgba(255,45,85,.28), rgba(124,58,237,.26)); border-color: rgba(255,45,85,.3); border-bottom-left-radius: 16px; border-bottom-right-radius: 5px; }
.ai-meta { font-size: 11px; color: var(--muted); margin-top: 5px; }
.ai-typing { padding: 0 18px 8px; color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 4px; }
.ai-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: blink 1.2s infinite; }
.ai-typing span:nth-child(2) { animation-delay: .2s; } .ai-typing span:nth-child(3) { animation-delay: .4s; }
.ai-caret { display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--cyan); animation: blink 1s infinite; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ai-in { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--glass-line); align-items: flex-end; }
.ai-in textarea { resize: none; min-height: 46px; max-height: 140px; }
.ai-in .btn { height: 46px; width: 52px; padding: 0; }
.ai-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 14px 12px; }
.doc-row { display: flex; gap: 12px; align-items: flex-start; padding: 15px 16px; border-bottom: 1px solid rgba(255,255,255,.05); }
.doc-row:last-child { border-bottom: 0; }
.doc-row .main { flex: 1; min-width: 0; } .doc-row .u { font-weight: 700; } .doc-row .sub { color: var(--muted); font-size: 13px; }
.doc-out { margin-top: 10px; }

/* =================================================================== admin panel */
.search-mobile { margin-left: auto; }
.user-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 4px 12px 4px 4px; background: rgba(0,0,0,.35); border: 1px solid var(--glass-line); cursor: pointer; font-weight: 600; font-size: 14px; white-space: nowrap; }
.user-pill .av { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
#newtab-btn { color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
#newtab-btn[hidden] { display: none; }
@media (min-width: 960px) { .search-mobile { display: none; } .search-btn { margin-left: auto; } }
@media (max-width: 560px) { #user-name { display: none; } .user-pill { padding: 4px; } .top-title { font-size: 15px; overflow: hidden; text-overflow: ellipsis; } }

/* sidebar with groups */
.sidebar { overflow-y: auto; gap: 2px; scrollbar-width: thin; }
.sidebar a { padding: 8px 12px; font-size: 14px; }
.sidebar a.hot svg { color: #c084fc; }
.nav-group { display: flex; flex-direction: column; }
.nav-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; text-align: left; }
.nav-head:hover { color: var(--text); background: var(--glass); }
.nav-head span { flex: 1; }
.nav-head svg:last-child { width: 15px; height: 15px; transition: transform .2s; opacity: .6; }
.nav-group.open > .nav-head { color: var(--text); }
.nav-group.open > .nav-head svg:last-child { transform: rotate(90deg); }
.nav-sub { display: none; flex-direction: column; margin: 2px 0 6px 21px; padding-left: 10px; border-left: 1px solid var(--glass-line); }
.nav-group.open > .nav-sub { display: flex; }
.nav-sub a { padding: 6px 10px; font-size: 13.5px; }
.nav-sub a.on::before { left: -11px; }
/* compact menu 2026-10-21: tighter rows, one group open at a time, rarely used pages folded under "N more" */
.sidebar { gap: 1px; }
.nav-head { padding: 8px 12px; gap: 10px; font-size: 13.5px; }
.nav-sub { margin: 1px 0 5px 19px; padding-left: 10px; }
.nav-sub a { padding: 5px 10px; font-size: 13px; }
.nav-more { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 2px; padding: 4px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--dim, var(--muted)); font-size: 12px; font-weight: 600; cursor: pointer; text-align: left; }
.nav-more:hover { color: var(--text); background: var(--glass); }
.nav-more span { flex: 1; }
.nav-more > svg:last-child { width: 13px; height: 13px; opacity: .6; transition: transform .2s; }
.nav-more.open > svg:last-child { transform: rotate(90deg); }
.nav-more .ng-dot { width: 6px; height: 6px; } .nav-more.open .ng-dot { display: none; }
.nav-more-list { display: none; flex-direction: column; }
.nav-more.open + .nav-more-list { display: flex; }
.side-foot a { color: var(--dim); } .side-foot a:hover { color: var(--muted); }

/* classic (old admin) pages inside the panel */
.content.wide { max-width: none; padding: 0; animation: none; }
.classic-wrap { position: relative; height: calc(100vh - 61px - var(--safe-top)); }
.classic-wrap iframe { width: 100%; height: 100%; border: 0; display: block; background: transparent; }
.classic-load { position: absolute; top: 0; left: 0; right: 0; padding: 10px 24px; }
@media (min-width: 960px) { .content.wide { margin-left: 262px; padding: 0; } }

/* Console Center */
.hero-admin { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding: 24px; margin-bottom: 14px;
    background: radial-gradient(120% 140% at 0% 0%, rgba(255,45,85,.16), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(34,211,238,.12), transparent 55%), var(--glass); }
.hero-admin .eyebrow { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-family: var(--mono); }
.hero-admin h1 { margin: 6px 0 2px; font-size: 44px; font-weight: 800; letter-spacing: -.03em; font-family: var(--mono); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-admin h1 span { font-size: 18px; font-family: Inter, system-ui, sans-serif; -webkit-text-fill-color: var(--muted); color: var(--muted); font-weight: 600; letter-spacing: 0; }
.hero-admin .sub { color: var(--muted); }
.hero-side { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; border: 1px solid var(--glass-line); background: rgba(0,0,0,.3); color: var(--text); }
.pill svg { width: 16px; height: 16px; }
.pill.ok { color: var(--ok); border-color: rgba(52,211,153,.3); } .pill.warn { color: var(--warn); border-color: rgba(251,191,36,.35); } .pill.bad { color: var(--bad); border-color: rgba(251,113,133,.4); box-shadow: 0 0 22px rgba(251,113,133,.2); }
.c-bad .n { color: var(--bad); } .c-bad .ico { color: var(--bad); }
h2.sec { margin: 22px 0 12px; }
.servers { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 14px; }
.servers > .card + .card { margin-top: 0; }
.srv { display: flex; flex-direction: column; gap: 10px; }
.srv.off { border-color: rgba(251,113,133,.45); }
.srv-head { display: flex; align-items: center; gap: 8px; } .srv-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; } .dot.ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); } .dot.bad { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.srv-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.srv-big div { background: rgba(0,0,0,.25); border-radius: 12px; padding: 8px 10px; }
.srv-big b { display: block; font-family: var(--mono); font-size: 20px; } .srv-big span { color: var(--muted); font-size: 11.5px; }
.srv-big .bad b { color: var(--bad); } .srv-big .ok b { color: var(--ok); }
.srv-m { display: grid; grid-template-columns: 34px 1fr 74px; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.srv-m em { font-style: normal; font-family: var(--mono); text-align: right; color: var(--text); }
.meter { height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 6px; background: var(--ok); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.meter.warn i { background: var(--warn); } .meter.bad i { background: var(--bad); } .meter.cyan i { background: var(--cyan); }
.card.alerts.ok { border-color: rgba(52,211,153,.3); background: linear-gradient(135deg, rgba(52,211,153,.07), rgba(34,211,238,.03)); }
.card.alerts .al-ok { margin: 6px 0 0; }
.al-crit { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(251,113,133,.18); color: var(--bad); vertical-align: middle; }
.pills-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; } .pills-row .pill { text-decoration: none; }
/* sortable table headers (server-backed via data-sort, or in-browser for every other table) */
div.table th, .table th { cursor: pointer; user-select: none; }
div.table th.ck, .table th.ck, div.table th:empty, .table th:empty { cursor: default; }
th .sarr { margin-left: 6px; font-size: 10px; opacity: .35; } th.sortable.on .sarr, th.sorted-asc .sarr, th.sorted-desc .sarr { opacity: 1; }
th.sortable.on, th.sorted-asc, th.sorted-desc { color: var(--cyan); }
/* theme button: moon in dark, sun in light */
#theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
#theme-btn .ic-sun { display: none; } [data-theme="light"] #theme-btn .ic-sun { display: block; } [data-theme="light"] #theme-btn .ic-moon { display: none; }
.theme-pick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
/* Panel status (old dashboard cards, live) */
.sec .sec-note { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
.live-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.stat.lt .n { font-size: 26px; } .stat.lt .n small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.stat.lt .meter { margin-top: 10px; } .stat.lt .sub { margin-top: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ai-stats div { background: rgba(168,85,247,.08); border: 1px solid rgba(168,85,247,.18); border-radius: 12px; padding: 10px 12px; }
.ai-stats b { display: block; font-family: var(--mono); font-size: 22px; } .ai-stats span { color: var(--muted); font-size: 12px; }
.mini span { display: block; color: var(--muted); font-size: 11.5px; } .mini b { font-family: var(--mono); }
.feed .tag { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border-radius: 7px; background: rgba(34,211,238,.1); color: var(--cyan); flex: none; }
.feed .what { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13.5px; } .feed .what b { color: var(--text); }
.feed .when { color: var(--dim); font-size: 12px; font-family: var(--mono); flex: none; }

/* tables, sessions, palette */
div.table { overflow-x: auto; } div.table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
div.table th, div.table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid rgba(255,255,255,.06); white-space: nowrap; }
div.table th { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
div.table tr.bad td { color: var(--bad); }
.sess { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pal-item { color: var(--text); }
.pal-item.on { background: linear-gradient(90deg, rgba(255,45,85,.16), rgba(124,58,237,.1)); }
.pal-type { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 3px 7px; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--muted); width: 66px; text-align: center; flex: none; }
.pal-type.line { color: var(--ok); background: rgba(52,211,153,.1); } .pal-type.reseller { color: #c084fc; background: rgba(168,85,247,.12); } .pal-type.stream { color: var(--cyan); background: rgba(34,211,238,.1); }
.pal-t { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-s { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }

/* top-level links (Console Center, Reseller Portal) as bold as the group titles */
.sidebar > a { font-weight: 700; color: var(--text); }
/* search palette 2026-10-04: hint on open, grouped results */
.palette-list { padding: 8px; }
.pal-hint { padding: 18px 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.pal-hint b { font-size: 15px; }
.pal-hint span { color: var(--muted); font-size: 13.5px; }
.pal-kinds { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.pal-kinds .pal-type { width: auto; }
.pal-type.page { color: #fbbf24; background: rgba(251,191,36,.1); }
.pal-group { padding: 12px 12px 4px; }
.pal-item { gap: 12px; }
.pal-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.06); color: var(--muted); }
.pal-ico svg { width: 17px; height: 17px; }
.pal-ico.line { color: var(--ok); background: rgba(52,211,153,.1); } .pal-ico.reseller { color: #c084fc; background: rgba(168,85,247,.12); }
.pal-ico.stream { color: var(--cyan); background: rgba(34,211,238,.1); } .pal-ico.page { color: #fbbf24; background: rgba(251,191,36,.1); }
.pal-ico.customer, .pal-type.customer { color: #60a5fa; background: rgba(96,165,250,.12); }
.pal-ico.invoice, .pal-type.invoice, .pal-ico.payment, .pal-ico.order { color: #fb923c; background: rgba(251,146,60,.12); }
.pal-ico.service { color: var(--ok); background: rgba(52,211,153,.1); }
.pal-ico.ticket { color: #f472b6; background: rgba(244,114,182,.12); }
.pal-ico.server, .pal-ico.provider { color: var(--muted); background: rgba(255,255,255,.08); }
.pal-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pal-txt .pal-s { margin-left: 0; max-width: 100%; font-size: 12px; }
.pal-enter { color: var(--dim); opacity: 0; transition: opacity .15s; } .pal-enter svg { width: 15px; height: 15px; }
.pal-item.on .pal-enter, .pal-item:hover .pal-enter { opacity: 1; }
.pal-busy { display: flex; align-items: center; gap: 10px; padding: 12px; color: var(--muted); font-size: 13.5px; }
.pal-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--cyan); animation: palspin .8s linear infinite; }
@keyframes palspin { to { transform: rotate(360deg); } }
.pal-none { padding: 16px; color: var(--muted); }
/* top-bar logo = link to the Console Center (dashboard) */
a.brand-home { text-decoration: none; color: #0b0b12; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
a.brand-home:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(255,45,85,.6); }
a.brand-home:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
/* providers page: the three card buttons stay on one line */
.pv-acts { display: flex; flex-wrap: nowrap; gap: 6px; justify-content: stretch; }
.pv-acts .btn { flex: 1 1 auto; min-width: 0; justify-content: center; padding-left: 8px; padding-right: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-acts .btn svg { flex: none; }
.srv .actions select.sm { width: auto; height: 30px; padding: 0 8px; font-size: 12px; border-radius: 8px; }
.srv .srv-head .badge { margin-left: 4px; }
.nav-head .nh-t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.nav-head .nh-t small { font-size: 11px; font-weight: 400; color: var(--dim, var(--muted)); opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .nb { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; min-width: 18px; padding: 1px 6px; border-radius: 9px; text-align: center; line-height: 16px; }
.sidebar .nb:empty { display: none; }
.nb.bad { background: rgba(255,45,85,.18); color: #ff6b86; } .nb.warn { background: rgba(251,191,36,.16); color: #fbbf24; } .nb.info { background: var(--glass); color: var(--muted); }
.sidebar a .pin { font-style: normal; font-size: 12px; opacity: 0; color: var(--dim, var(--muted)); cursor: pointer; padding: 0 2px; transition: opacity .15s, color .15s; }
.sidebar a .nb:empty + .pin { margin-left: auto; }
.sidebar a:hover .pin { opacity: .55; } .sidebar a .pin:hover { opacity: 1; color: #fbbf24; } .sidebar a .pin.on { color: #fbbf24; } .sidebar a:hover .pin.on { opacity: 1; }
.ng-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; } .ng-dot.bad { background: #ff2d55; box-shadow: 0 0 8px rgba(255,45,85,.8); } .ng-dot.warn { background: #fbbf24; }
.nav-group.open > .nav-head .ng-dot { display: none; }
.nav-pins { display: flex; flex-direction: column; margin: 6px 0 8px; padding: 6px 0; border-top: 1px solid var(--glass-line); border-bottom: 1px solid var(--glass-line); }
.nav-pins .np-h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim, var(--muted)); padding: 2px 12px 4px; }
.nav-pins a { padding: 7px 12px; font-size: 13.5px; }
.side-foot .small { display: block; margin-bottom: 8px; line-height: 1.4; }
.top-title .crumb { color: var(--muted); font-weight: 500; } .top-title .crumb::after { content: " › "; color: var(--dim, var(--muted)); }
@media (max-width: 760px) { .top-title .crumb { display: none; } }
.tasks h2 .mini-btn { margin-left: auto; }
.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.task { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.task:hover { border-color: rgba(255,45,85,.45); transform: translateY(-1px); }
.task .tk-i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(124,58,237,.16); color: #c084fc; flex: none; }
.task .tk-i svg { width: 18px; height: 18px; }
.task .tk-t { display: flex; flex-direction: column; min-width: 0; flex: 1; } .task .tk-t b { font-size: 14px; font-weight: 600; }
.task .tk-t small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task .nb { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 9px; }
.nav-head .nh-t small { white-space: normal; }

/* =================================================================== AI dashboard */
.ph .ai-orb.sm { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin-bottom: 16px; border-radius: 16px; background: rgba(0,0,0,.25); border: 1px solid var(--glass-line); scrollbar-width: none; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.tab svg { width: 16px; height: 16px; } .tab:hover { color: var(--text); background: var(--glass); }
.tab.on { color: #fff; background: var(--grad); box-shadow: 0 6px 24px rgba(192,38,211,.35); }
.tab b { background: var(--red); color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11px; } .tab b:empty { display: none; }
.big-state { font-size: 26px; font-weight: 800; font-family: var(--mono); margin: 4px 0; } .big-state.ok { color: var(--ok); } .big-state.bad { color: var(--bad); }
.seg { display: inline-flex; border: 1px solid var(--glass-line); border-radius: 12px; overflow: hidden; margin: 6px 0 8px; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 8px 16px; font-weight: 800; cursor: pointer; letter-spacing: .05em; }
.seg button.on.m-off { background: rgba(251,113,133,.2); color: var(--bad); } .seg button.on.m-dry { background: rgba(251,191,36,.2); color: var(--warn); } .seg button.on.m-live { background: rgba(52,211,153,.2); color: var(--ok); box-shadow: inset 0 0 20px rgba(52,211,153,.25); }
.bars14 { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.b14 { flex: 1; display: flex; flex-direction: column-reverse; align-items: stretch; gap: 1px; position: relative; padding-bottom: 18px; height: 100%; justify-content: flex-start; }
.b14 i { display: block; border-radius: 3px; } .b14 span { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--dim); font-family: var(--mono); }
.l-ok { background: var(--ok); } .l-bad { background: var(--bad); } .l-warn { background: var(--warn); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 8px; } .legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.legend .l-ok, .legend .l-bad, .legend .l-warn { background: none; } .legend .l-ok::before { background: var(--ok); } .legend .l-bad::before { background: var(--bad); } .legend .l-warn::before { background: var(--warn); }
.tag.t-cyan { background: rgba(34,211,238,.12); color: var(--cyan); } .tag.t-blue { background: rgba(96,165,250,.12); color: var(--blue); } .tag.t-violet { background: rgba(168,85,247,.14); color: #c084fc; }
.tag.t-warn { background: rgba(251,191,36,.12); color: var(--warn); } .tag.t-muted { background: rgba(255,255,255,.06); color: var(--muted); }
.fixbtns { display: flex; gap: 4px; flex-wrap: wrap; } .fixbtns .btn { padding: 5px 9px; font-size: 12px; }
.page-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.stat .n.small-n { font-size: 18px; }
.hours24 { display: flex; align-items: flex-end; gap: 3px; height: 110px; } .hours24 i { flex: 1; background: var(--grad-cool); border-radius: 3px 3px 0 0; opacity: .9; }
.kb-grid { display: grid; gap: 14px; grid-template-columns: 1fr; } @media (min-width: 1100px) { .kb-grid { grid-template-columns: 320px 1fr; } }
.kb-file { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; color: var(--text); margin-bottom: 4px; } .kb-file:hover { background: var(--glass-2); }
.kb-file.on { background: linear-gradient(90deg, rgba(255,45,85,.18), rgba(124,58,237,.08)); }
.kb-pre { white-space: pre-wrap; font: 12.5px/1.5 var(--mono); color: var(--muted); margin: 8px 0 0; }
.kb-sec .srv-head .btn { margin-left: 4px; } .kb-sec .srv-head b { flex: 1; }
.set-grid { display: flex; flex-direction: column; } .set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.set-row:last-child { border-bottom: 0; } .set-row select { width: auto; }
.cand { max-height: 45vh; overflow: auto; } .nowrap { white-space: nowrap; } .ev { max-width: 380px; white-space: normal !important; }
#kb-ed { width: 100%; font-size: 12.5px; }
details summary { cursor: pointer; }
/* dashboard AI activity: clickable rows + detail sheet */
.feed li[data-aid] { cursor: pointer; border-radius: 10px; transition: background .15s; } .feed li[data-aid]:hover { background: rgba(255,255,255,.05); }
.aid-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; } .aid-head b { font-size: 16px; } .aid-when { margin-left: auto; }
.aid-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-bottom: 6px; }
.aid-grid > div { background: rgba(0,0,0,.22); border-radius: 12px; padding: 9px 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.aid-grid > div > span:first-child { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.aid-h { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 8px; font-weight: 600; }
.ai-text { white-space: pre-wrap; font-size: 13.5px; line-height: 1.55; background: rgba(0,0,0,.22); border-radius: 12px; padding: 12px 14px; max-height: 50vh; overflow: auto; }
table.kv { width: 100%; border-collapse: collapse; font-size: 13.5px; } table.kv th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 12px 6px 0; width: 40%; vertical-align: top; }
table.kv td { font-family: var(--mono); padding: 6px 0; word-break: break-word; } table.kv tr + tr th, table.kv tr + tr td { border-top: 1px solid rgba(255,255,255,.05); }
.aid-tl { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 10px; }
.aid-tl li { position: relative; } .aid-tl li::before { content: ''; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.2); }
.aid-tl li.on::before { background: #22d3ee; box-shadow: 0 0 10px #22d3ee; } .aid-tl-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.aid-src { word-break: break-all; margin-top: 3px; }

/* =================================================================== pages: shared */
.page-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.ph { margin: 2px 0 4px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; } .back svg { width: 16px; height: 16px; }
.actions.end { justify-content: flex-end; margin-top: 16px; }
.btn.danger-solid { background: linear-gradient(135deg, #fb7185, #e11d48); color: #fff; border-color: transparent; }
.btn.on { border-color: rgba(52,211,153,.45); color: var(--ok); box-shadow: 0 0 18px rgba(52,211,153,.18); }
.btn svg { width: 17px; height: 17px; vertical-align: -3px; margin-right: 6px; }
.btn.sm svg { width: 15px; height: 15px; margin-right: 4px; }
.soon { margin-left: auto; font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.05); color: var(--dim); }
.sidebar a.is-soon { color: var(--dim); cursor: default; } .sidebar a.is-soon:hover { background: transparent; color: var(--muted); }
.search-in { flex: 1; min-width: 220px; position: relative; display: flex; align-items: center; }
.search-in svg { position: absolute; left: 12px; width: 17px; height: 17px; color: var(--dim); pointer-events: none; }
.search-in input { padding-left: 38px; width: 100%; }
.toolbar select { width: auto; min-width: 150px; }
.empty { text-align: center; padding: 50px 10px; color: var(--muted); } .empty svg { width: 40px; height: 40px; opacity: .4; }
.dim { opacity: .55; transition: opacity .2s; }
.mini-btn { border: 0; background: transparent; color: var(--dim); cursor: pointer; padding: 2px; border-radius: 6px; display: inline-flex; vertical-align: middle; }
.mini-btn:hover { color: var(--text); background: var(--glass-2); } .mini-btn svg { width: 14px; height: 14px; }
.chip b { font-family: var(--mono); font-weight: 700; margin-left: 4px; opacity: .8; }
.chip.warnchip { border-color: rgba(251,191,36,.3); }

/* =================================================================== lines table */
.table-card { padding: 0; overflow: hidden; }
.lines-t th { position: sticky; top: 0; background: rgba(12,12,22,.96); z-index: 1; padding: 12px 10px; }
.lines-t td { padding: 11px 10px; vertical-align: middle; white-space: normal; }
.lines-t tbody tr { transition: background .15s; }
.lines-t tbody tr:hover { background: rgba(255,255,255,.03); }
.lines-t tr.picked { background: linear-gradient(90deg, rgba(255,45,85,.12), rgba(124,58,237,.06)) !important; }
.lines-t .ck { width: 34px; } .lines-t input[type=checkbox] { width: 17px; height: 17px; accent-color: #c026d3; padding: 0; }
.ln-main .u { font-family: var(--mono); font-weight: 700; color: var(--text); font-size: 14.5px; }
.ln-main .u:hover { color: var(--cyan); text-shadow: 0 0 12px rgba(34,211,238,.5); }
.lines-t .sub { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.owner { color: #c4b5fd; font-weight: 600; }
.tagx { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--muted); font-family: Inter, sans-serif; }
.tagx svg { width: 11px; height: 11px; } .tagx.trial { color: var(--blue); background: rgba(96,165,250,.12); }
.conn { font-family: var(--mono); font-weight: 700; padding: 3px 9px; border-radius: 8px; background: rgba(255,255,255,.04); color: var(--dim); }
.conn.on { color: var(--ok); background: rgba(52,211,153,.1); box-shadow: 0 0 16px rgba(52,211,153,.2); }
.conn.share { color: var(--warn); background: rgba(251,191,36,.12); box-shadow: 0 0 16px rgba(251,191,36,.25); }
.warn-t { color: var(--warn) !important; }
.lines-t .life { width: 110px; }
div.table .pm-t td { white-space: nowrap; }
div.table .pm-t td.what { white-space: normal; width: 100%; max-width: 0; }
.pm-t td.what .sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f2.er-f { grid-template-columns: 1fr 1fr 200px; }
.er-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.06); }
.er-apply { margin-left: auto; display: flex; align-items: flex-end; gap: 8px; }
.er-apply .lbl input { width: 120px; }
[data-theme="light"] .er-actions { border-top-color: rgba(0,0,0,.06); }
@media (max-width: 700px) { .f2.er-f { grid-template-columns: 1fr; } .er-apply { margin-left: 0; width: 100%; } .er-apply .lbl { flex: 1; } .er-apply .lbl input { width: 100%; } }
.row-act { width: 46px; text-align: right; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0; }
.pager select { width: auto; }
.pager { flex-wrap: wrap; }
.pager .pg-total { margin-right: 6px; font-variant-numeric: tabular-nums; }
.pager .pg-jump { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pager .pg-jump input { width: 72px; text-align: center; padding: 6px 8px; font-family: var(--mono); -moz-appearance: textfield; }
.pager .pg-jump input::-webkit-outer-spin-button, .pager .pg-jump input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pager .btn svg + svg { margin-left: -9px; }
.bulk { position: sticky; top: 70px; z-index: 15; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px; margin-bottom: 12px;
    background: linear-gradient(90deg, rgba(255,45,85,.18), rgba(124,58,237,.16)); border: 1px solid rgba(255,45,85,.3); box-shadow: 0 10px 40px rgba(192,38,211,.25); }
.bulk b { margin-right: 6px; font-family: var(--mono); }
.ctx { position: fixed; z-index: 55; min-width: 220px; padding: 6px; border-radius: 14px; background: rgba(16,16,28,.97); border: 1px solid var(--glass-line); box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(168,85,247,.15); }
.ctx button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; text-align: left; font-size: 14px; }
.ctx button:hover { background: var(--glass-2); } .ctx button svg { width: 16px; height: 16px; color: var(--muted); } .ctx button.danger { color: var(--bad); }
@media (max-width: 760px) {
    .lines-t thead { display: none; }
    .lines-t tr { display: grid; grid-template-columns: 30px 1fr auto; gap: 2px 8px; padding: 10px 6px; border-bottom: 1px solid rgba(255,255,255,.06); }
    .lines-t td { padding: 2px 4px; border: 0; }
    .lines-t td:nth-child(2) { grid-column: 2; } .lines-t td.row-act { grid-column: 3; grid-row: 1; }
    .lines-t td:nth-child(n+3):not(.row-act) { grid-column: 2 / 4; }
    .pm-t tr { grid-template-columns: 1fr auto; }
    .pm-t td.what { grid-column: 1; max-width: none; width: auto; }
    .pm-t td:nth-child(n+3):not(.row-act) { grid-column: 1; }
    .pm-t td.row-act { grid-column: 2; grid-row: 1 / 3; align-self: center; }
}

/* =================================================================== sheet extras */
.sheet-back.wide .sheet { max-width: 860px; }
.ext-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.row-in { display: flex; gap: 8px; align-items: center; } .row-in input, .row-in select { flex: 1; }
.mrow { display: grid; grid-template-columns: 190px 1fr; gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.mk { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; } .mk input { width: 17px; height: 17px; accent-color: #c026d3; }
.inl { display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; font-size: 14px; } .inl input { width: 16px; height: 16px; }
@media (max-width: 600px) { .mrow { grid-template-columns: 1fr; } .ext-grid { grid-template-columns: repeat(2, 1fr); } }

/* =================================================================== line page */
.lp-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 1200px) { .lp-grid { grid-template-columns: minmax(0, 1fr) 380px; } .lp-side { position: sticky; top: 76px; align-self: start; } }
.lp-form .card + .card, .lp-side .card + .card { margin-top: 14px; }
.f2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.f2 label, .lp-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .f2 { grid-template-columns: 1fr; } }
.in-btn { position: relative; } .in-btn input { width: 100%; padding-right: 36px; font-family: var(--mono); }
.in-btn .mini-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.quick-ext { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 4px; }
.sw-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 12px 0; }
.sw { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px !important; cursor: pointer; color: var(--text) !important; font-size: 14px !important; }
.sw input { display: none; }
.sw i { width: 40px; height: 23px; border-radius: 999px; background: rgba(255,255,255,.1); position: relative; flex: none; transition: background .2s, box-shadow .2s; }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .2s; }
.sw input:checked + i { background: var(--grad); box-shadow: 0 0 16px rgba(192,38,211,.45); }
.sw input:checked + i::after { transform: translateX(17px); }
.sw small { display: block; color: var(--dim); font-size: 11.5px; }
.bq-list { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); max-height: 360px; overflow-y: auto; padding-right: 4px; }
.bq-list.sm { max-height: 220px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.bq { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px !important; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid transparent; cursor: pointer; color: var(--text) !important; font-size: 13px !important; }
.bq:hover { border-color: var(--glass-line); } .bq input { width: 16px; height: 16px; accent-color: #c026d3; flex: none; }
.bq span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bq em { font-style: normal; color: var(--dim); font-size: 11px; font-family: var(--mono); }
.bq[hidden] { display: none !important; }
.live-card { background: radial-gradient(120% 100% at 100% 0%, rgba(52,211,153,.1), transparent 60%), var(--glass); }
.live-list { list-style: none; margin: 0; padding: 0; }
.live-list li { padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.08); } .live-list li:last-child { border-bottom: 0; }
.lv-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .lv-top b { color: var(--ok); }
.live-list .sub { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; margin-top: 2px; } .live-list .sub img { width: 18px; border-radius: 3px; }
.live-list .sub.dim { color: var(--dim); opacity: 1; }
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .qa .btn { justify-content: center; }
.links { list-style: none; margin: 0; padding: 0; }
.links li { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; font-size: 12.5px; }
.links li span { color: var(--muted); } .links code { font-family: var(--mono); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(0,0,0,.3); padding: 4px 7px; border-radius: 6px; }
/* line page: VPN access card */
.vpn-card h2 .badge { margin-left: auto; }
.vq-row { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 4px 0 2px; }
.vq-row > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .vq-row b { font-size: 14px; }
.vq-row code { font-size: 11.5px; padding: 0 4px; border-radius: 4px; background: rgba(255,255,255,.07); }
.vq-check { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.06); }
.vq-res { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.vq-big { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 12px; font-family: var(--mono); }
.vq-big span { color: var(--muted); font-size: 13px; } .vq-big b { font-size: 20px; }
.vq-big.on { background: rgba(52,211,153,.12); color: #6ee7b7; } .vq-big.off { background: rgba(255,255,255,.05); }
.vq-res table.kv th { width: 45%; font-family: var(--mono); font-size: 12.5px; } .vq-res table.kv td { font-size: 12.5px; }

/* =================================================================== bouquets, security, logs, tickets, settings */
.bq-name { flex: 1; color: var(--text); } .bq-counts { display: flex; gap: 5px; flex-wrap: wrap; }
.pick-list { max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; }
.pick { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; background: rgba(255,255,255,.025); font-size: 13.5px; }
.pick:not(.in) { grid-template-columns: 1fr auto auto; }
.pick .pn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick.has { opacity: .55; } .pick.gone .pn { color: var(--bad); text-decoration: line-through; }
.pick:hover { background: rgba(255,255,255,.05); }
.ticket-msg { padding: 12px 14px; border-radius: 14px; margin-bottom: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--glass-line); white-space: pre-wrap; }
.ticket-msg.admin { background: linear-gradient(135deg, rgba(255,45,85,.12), rgba(124,58,237,.1)); margin-left: 40px; }
.ticket-msg .meta { color: var(--dim); font-size: 12px; margin-top: 6px; }
.unread b { color: var(--text); } .unread::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 6px; box-shadow: 0 0 8px var(--red); }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px 18px; }
.kv label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
.kv label.sw { flex-direction: row; }
.set-row.changed { background: linear-gradient(90deg, rgba(251,191,36,.08), transparent); border-radius: 10px; padding-left: 8px; }
.set-in { flex: 0 0 min(420px, 50%); display: flex; justify-content: flex-end; } .set-in input, .set-in textarea, .set-in select { width: 100%; }
.poster { aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.04); display: flex; align-items: center; justify-content: center; color: var(--dim); }
.poster img { width: 100%; height: 100%; object-fit: cover; } .poster svg { width: 48px; height: 48px; }
.poster-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.pcard { display: flex; flex-direction: column; gap: 4px; color: var(--text); } .pcard:hover .pimg { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(124,58,237,.3); }
.pimg { aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: var(--glass); border: 1px solid var(--glass-line); display: flex; align-items: center; justify-content: center; transition: transform .2s, box-shadow .2s; }
.pimg img { width: 100%; height: 100%; object-fit: cover; } .pimg svg { width: 40px; height: 40px; color: var(--dim); }
.sess.fp { cursor: pointer; } .sess.fp:hover { background: rgba(255,255,255,.04); } .sess.fp.on { background: linear-gradient(90deg, rgba(255,45,85,.14), rgba(124,58,237,.08)); }
#fp-ul { max-height: 60vh; overflow-y: auto; }
.out-pre { white-space: pre-wrap; font-family: var(--mono); font-size: 12px; max-height: 60vh; overflow: auto; background: rgba(0,0,0,.25); padding: 10px; border-radius: 10px; }
/* tool cards (Stream tools, Server IP / image host, Log clean-up, Fingerprint …): fields spaced, buttons in one row at the bottom of every card */
.cols > .card { display: flex; flex-direction: column; }
.cols > .card > .lbl + .lbl, .cols > .card > .lbl + .f2, .cols > .card > .f2 + .lbl { margin-top: 12px; }
.cols > .card > p.muted + .lbl, .cols > .card > p.muted + .f2 { margin-top: 4px; }
.cols > .card > .actions { margin-top: auto; padding-top: 16px; }
.cols > .card > .actions .btn { min-width: 112px; justify-content: center; }
.cols > .card > .actions + div:not(:empty) { margin-top: 10px; }
/* provider login change preview */
.cr-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.cr-sum div { background: rgba(0,0,0,.22); border-radius: 12px; padding: 10px 12px; } .cr-sum b { display: block; font-family: var(--mono); font-size: 22px; } .cr-sum span { color: var(--muted); font-size: 12px; }
.cr-list { display: flex; flex-direction: column; gap: 10px; max-height: 46vh; overflow: auto; padding-right: 4px; }
.cr-item { background: rgba(255,255,255,.03); border-radius: 12px; padding: 10px 12px; }
.cr-diff { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; margin-top: 6px; word-break: break-all; }
.cr-diff .o { color: #fca5a5; text-decoration: line-through; opacity: .8; } .cr-diff .n { color: #6ee7b7; }
/* Stream tools: "Provider changed its login" takes the whole row, fields side by side */
.cols > .card.cr-card { grid-column: 1 / -1; }
.cr-card > p.muted { max-width: 760px; }
@media (min-width: 1100px) {
  .cr-card { display: grid !important; grid-template-columns: 1.2fr 4fr auto; grid-template-areas: "h h h" "p p p" "host creds go" "out out out"; column-gap: 12px; align-items: end; }
  .cr-card > h2 { grid-area: h; } .cr-card > p.muted { grid-area: p; } .cr-card > .lbl { grid-area: host; margin: 0 !important; }
  .cr-card > .f2 { grid-area: creds; grid-template-columns: repeat(4, 1fr); margin: 0 !important; gap: 12px; }
  .cr-card > .actions { grid-area: go; margin: 0 !important; padding: 0 !important; } .cr-card > #tcr-out { grid-area: out; }
}
.pp-out:empty { display: none; } .pp-out { margin-top: -2px; }
/* providers: SWAP balance */
.swap-box { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.2); }
.sw-row { display: grid; grid-template-columns: 104px 1fr 92px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.sw-row em { font-style: normal; font-family: var(--mono); text-align: right; color: var(--text); }
.sw-sub { font-size: 11.5px; margin: -3px 0 2px 112px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-verdict { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.06); align-self: flex-start; white-space: nowrap; }
.sw-verdict.warn { background: rgba(251,191,36,.14); color: #fcd34d; } .sw-verdict.info { background: rgba(34,211,238,.12); color: #67e8f9; }
.sw-verdict.ok { background: rgba(52,211,153,.12); color: #6ee7b7; } .sw-verdict.muted { color: var(--muted); }
#pv-bal .card { margin-bottom: 14px; }
/* scheduler */
.jb-params { margin-top: 6px; } .jb-params .sw { margin-top: 8px; }
.jb-when { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; align-items: start; }
.jb-when [hidden] { display: none !important; } .jb-when .chips { margin-top: 6px; }
#jb-kinds { margin-top: 2px; }
#jb-days { display: flex; flex-wrap: wrap; gap: 6px; } .jb-when > div[data-for="weekly"] { grid-column: span 2; min-width: 0; }
@media (max-width: 700px) { .jb-when > div[data-for="weekly"] { grid-column: auto; } }

/* =================================================================== resellers, groups, packages */
.gdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: 0; box-shadow: 0 0 10px currentColor; }
.credit-card { background: radial-gradient(120% 120% at 100% 0%, rgba(251,191,36,.16), transparent 60%), var(--glass); }
.credit-card .btn { margin-top: 10px; }
.price-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.price { display: grid !important; grid-template-columns: 1fr 110px; align-items: center; gap: 10px !important; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.03); }
.price span { color: var(--text); font-size: 13.5px; } .price em { display: block; font-style: normal; color: var(--dim); font-size: 11.5px; font-family: var(--mono); }
.perm-grid { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.perm-grid .bq span { text-transform: capitalize; }
a.gcard, .pk { color: var(--text); cursor: pointer; transition: transform .15s, border-color .15s; }
a.gcard:hover, .pk:hover { transform: translateY(-3px); border-color: rgba(168,85,247,.45); }

/* =================================================================== servers + connections */
.servers.big { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
a.srvlink { color: var(--text); transition: transform .15s, border-color .15s, box-shadow .2s; }
a.srvlink:hover { transform: translateY(-3px); border-color: rgba(34,211,238,.4); box-shadow: 0 14px 40px rgba(34,211,238,.12); }
.charts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-bottom: 14px; }
.mchart { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); padding: 14px 16px 10px; min-width: 0; overflow: hidden; }
.mchart-head { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--muted); white-space: nowrap; min-width: 0; }
.mchart-head b { font-family: var(--mono); font-size: 20px; color: var(--text); } .mchart-head em { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--dim); font-family: var(--mono); }
.mchart svg { width: 100%; height: 96px; display: block; margin-top: 10px; }
.logbox { background: #05050a; border: 1px solid var(--glass-line); border-radius: 12px; padding: 12px; margin-top: 12px; max-height: 420px; overflow: auto; font: 12px/1.45 var(--mono); color: #c7d2fe; white-space: pre-wrap; word-break: break-all; }
.hbar.click { cursor: pointer; border-radius: 8px; padding: 2px 4px; } .hbar.click:hover { background: rgba(255,255,255,.04); }
.sync { height: 3px; width: 40px; border-radius: 3px; margin-top: 4px; } .sync.ok { background: var(--ok); } .sync.warn { background: var(--warn); } .sync.bad { background: var(--bad); }
a.card.srv { color: inherit; text-decoration: none; }
.sec a.muted { margin-left: 8px; font-weight: 400; }
/* dashboard: server history, monitor issues, errors, alerts */
.spark { margin: 8px 0 4px; } .spark svg { width: 100%; height: 46px; display: block; overflow: visible; }
.spark polyline { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: all .6s ease; }
.spark .sp-in { stroke: #22d3ee; } .spark .sp-out { stroke: #ff2d55; }
.spark.empty { padding: 6px 0; }
.sp-leg { display: flex; gap: 10px; font-size: 11px; color: var(--muted, #9aa3b2); margin-top: 2px; } .sp-leg span:last-child { margin-left: auto; }
.sp-leg .i::before, .sp-leg .o::before { content: ''; display: inline-block; width: 10px; height: 2px; margin-right: 4px; vertical-align: middle; background: #22d3ee; } .sp-leg .o::before { background: #ff2d55; }
.iss { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.iss-t { font-size: 11.5px; padding: 2px 7px; border-radius: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iss-t.bad { background: rgba(248,113,113,.14); color: #fca5a5; } .iss-t.warn { background: rgba(251,191,36,.13); color: #fcd34d; }
.srv-err { display: block; font-size: 12px; margin: 4px 0; color: var(--muted, #9aa3b2); text-decoration: none; } .srv-err.has { color: #fcd34d; }
.srv-err svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.bad-t { color: var(--bad, #f87171); }
.dot.warn { background: var(--warn, #fbbf24); box-shadow: 0 0 10px rgba(251,191,36,.6); }
.card.alerts { border-color: rgba(248,113,113,.35); background: linear-gradient(135deg, rgba(248,113,113,.08), rgba(251,191,36,.04)); margin-bottom: 14px; }
.card.alerts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.card.alerts li a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; color: inherit; text-decoration: none; font-size: 13.5px; }
.card.alerts li a:hover { background: rgba(255,255,255,.05); } .card.alerts li.bad a { color: #fecaca; } .card.alerts li.warn a { color: #fde68a; }
.card.alerts h2 { display: flex; align-items: center; gap: 8px; } .al-act { margin-left: auto; display: flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 400; }
.al-act a { color: var(--muted, #9aa3b2); } .al-act .mini-btn { display: inline-flex; align-items: center; gap: 4px; width: auto; padding: 0 8px; font-size: 12px; }
.card.alerts li { display: flex; align-items: center; gap: 4px; transition: opacity .25s; } .card.alerts li.gone { opacity: .3; }
.card.alerts li a { flex: 1; min-width: 0; } .al-t { flex: 1; min-width: 0; } .al-since { white-space: nowrap; }
.al-x { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent; color: var(--muted, #9aa3b2); cursor: pointer; display: grid; place-items: center; }
.al-x:hover { background: rgba(255,255,255,.08); color: #fff; } .al-x svg { width: 14px; height: 14px; }
tr.nt-read td { opacity: .7; }
/* dashboard server cards (streaming + VPN share one layout) */
.dash-srv { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); align-items: stretch; }
.dcard { gap: 12px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.dcard:hover { border-color: rgba(34,211,238,.35); transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0,0,0,.35); }
.dc-head { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.dc-head .dot { flex: none; }
.dc-id { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.dc-id b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-id span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.dc-cc { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--muted);
  padding: 4px 8px 4px 6px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--glass-line); }
.dc-cc img { width: 18px; height: 13px; border-radius: 3px; object-fit: cover; display: block; } .dc-cc > span { font-size: 13px; }
.dcard .srv-big { gap: 8px; } .dcard .srv-big div { padding: 9px 10px; min-width: 0; }
.dcard .srv-big b { font-size: 19px; line-height: 1.2; }
.dcard .srv-big span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.dc-meters { display: flex; flex-direction: column; gap: 7px; }
.dcard .srv-m { grid-template-columns: 30px 1fr 86px; }
.dcard .srv-m em small { font-size: 10.5px; color: var(--muted); }
.dcard .spark { margin: 0; padding-top: 2px; border-top: 1px solid rgba(255,255,255,.05); padding-top: 10px; }
.dcard .srv-err { display: flex; align-items: center; gap: 6px; margin: 0; cursor: pointer; } .dcard .srv-err span { margin-left: auto; font-size: 11px; color: var(--muted); }
.dcard .srv-err svg { margin: 0; flex: none; }
.dcard .iss { margin: 0; }
.dc-foot { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); padding-top: 10px; border-top: 1px solid rgba(255,255,255,.05); }
.sec-link { margin-left: 10px; font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; color: #22d3ee; text-decoration: none; opacity: .8; } .sec-link:hover { opacity: 1; }
/* server page: graphs without the icon stroke, one-column action list */
.mchart svg polygon { stroke: none; }
.act-list { display: flex; flex-direction: column; gap: 8px; }
.act-list .btn { width: 100%; justify-content: flex-start; gap: 10px; padding: 11px 14px; text-align: left; white-space: nowrap; }
.act-list .btn svg { width: 17px; height: 17px; opacity: .85; }
/* live connections: active filters */
.cn-active { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 10px; } .cn-active:empty { display: none; }
.cn-active .chip { display: inline-flex; align-items: center; gap: 6px; } .cn-active .chip svg { width: 13px; height: 13px; opacity: .7; }
.hbar.click { cursor: pointer; border-radius: 8px; transition: background .15s; } .hbar.click:hover { background: rgba(255,255,255,.04); }
.hbar.on { background: rgba(34,211,238,.1); box-shadow: inset 3px 0 0 #22d3ee; } .hbar.on .name { color: #67e8f9; }
/* sortable table headers */
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; transition: color .15s; } th.sortable:hover { color: var(--text); }
th.sortable .sarr { margin-left: 6px; font-size: 10px; opacity: .35; } th.sortable.on { color: #67e8f9; } th.sortable.on .sarr { opacity: 1; }
/* flags everywhere: small, same size (the dashboard chip and pills set their own) */
img.fl { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; vertical-align: -2px; display: inline-block; }
.bars .name img.fl { margin-right: 6px; }
/* live connections table: keep the stop / block buttons visible */
#cn-list .row-act { width: 1%; white-space: nowrap; text-align: right; }
#cn-list .row-act .btn { margin-left: 2px; }
#cn-list td.small.muted { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#cn-list td:nth-child(2) { max-width: 320px; } #cn-list td:nth-child(2) a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#cn-list td:nth-child(3) .sub { white-space: nowrap; }
.toolbar label.inl { flex: none; display: inline-flex; align-items: center; gap: 8px; width: auto; white-space: nowrap; }
.toolbar label.inl input { width: auto; margin: 0; }
/* ---- all tables: long text wraps instead of pushing the right-hand columns (and their buttons) out of the card ----
   The base CSS kept every cell on one line. Short values still stay on one line while there is room; only long notes,
   errors, messages and commands wrap. Header labels, action cells, checkboxes and badges never wrap. */
div.table td { white-space: normal; overflow-wrap: break-word; word-break: normal; }
div.table td.nowrap, div.table td.ck, div.table td.row-act, div.table td .badge, div.table td .btn, div.table td .tagx, div.table td .chip { white-space: nowrap; }
div.table td:last-child:has(.btn, .icon-btn, .mini-btn) { width: 1%; white-space: nowrap; }
div.table td.mono, div.table td .mono { overflow-wrap: anywhere; }
/* stream speed (27-speed.js) */
.spd{display:inline-block;font:700 13px/1.4 var(--mono, ui-monospace, monospace);padding:2px 8px;border-radius:8px}
.spd.ok{color:#38f2a0;background:rgba(56,242,160,.12)}
.spd.mid{color:#ffc24b;background:rgba(255,194,75,.14)}
.spd.bad{color:#ff6b81;background:rgba(255,45,75,.16)}
.spd-wait{display:flex;gap:16px;align-items:center;padding:18px 4px}
.spd-ring{width:38px;height:38px;border-radius:50%;border:4px solid rgba(255,255,255,.12);border-top-color:#8b6cff;animation:spdspin .9s linear infinite;flex:none}
@keyframes spdspin{to{transform:rotate(360deg)}}
.spd-big{font:800 52px/1 var(--mono, ui-monospace, monospace);margin:6px 0 4px}
.spd-big.ok,.spd-verdict.ok{color:#38f2a0}
.spd-big.mid,.spd-verdict.mid{color:#ffc24b}
.spd-big.bad,.spd-verdict.bad{color:#ff6b81}
.spd-verdict{font-weight:700;font-size:18px;margin-bottom:6px}
.spd-facts{display:grid;gap:8px;margin-top:12px}
.spd-facts small{display:block;opacity:.6;font-size:11px;text-transform:uppercase;letter-spacing:.06em}
.ns-top .btn.sm{margin-left:auto}

/* =================================================================== streams */
.st-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.st-name img, .st-ph { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; background: rgba(255,255,255,.06); flex: none; padding: 3px; }
.st-ph { display: flex; align-items: center; justify-content: center; color: var(--dim); } .st-ph svg { width: 18px; height: 18px; }
.ln-main .u.sans { font-family: Inter, sans-serif; font-weight: 700; }
.ok-t { color: var(--ok); font-family: var(--mono); }
.badge.ondemand { background: rgba(236,72,153,.14); color: #f472b6; }
.chip.badchip { border-color: rgba(251,113,133,.45); color: var(--bad); box-shadow: 0 0 18px rgba(251,113,133,.18); }
.ctx-sep { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 8px 12px 3px; border-top: 1px solid var(--glass-line); margin-top: 4px; }
.fixbox { display: flex; gap: 14px; align-items: center; padding: 10px 0 6px; }
.ai-orb.sm { width: 46px; height: 46px; }
.pv { width: 100%; border-radius: 14px; background: #000; margin-top: 10px; max-height: 60vh; }
.srv-row, .src-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.07); }
.srv-row select { width: auto; min-width: 170px; }
.src-row input { flex: 1; min-width: 240px; }
.epg-now { list-style: none; margin: 12px 0 0; padding: 0; }
.epg-now li { display: flex; gap: 10px; padding: 6px 10px; border-radius: 10px; color: var(--muted); font-size: 13.5px; }
.epg-now li.now { background: linear-gradient(90deg, rgba(34,211,238,.14), transparent); color: var(--text); }
.epg-now .mono { color: var(--cyan); }
.chip-ck { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--glass-line); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.chip-ck input { width: 14px; height: 14px; accent-color: #c026d3; }
.ph-logo { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; background: rgba(255,255,255,.06); padding: 3px; }
.code-wrap { display: block; font-family: var(--mono); font-size: 11.5px; word-break: break-all; background: rgba(0,0,0,.3); padding: 10px; border-radius: 10px; color: var(--muted); }
.cat-ul { list-style: none; margin: 0; padding: 0; }
.cat-ul li { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,.05); border-radius: 10px; }
.cat-ul li b { flex: 1; } .cat-ul li:hover { background: rgba(255,255,255,.03); }
.cat-ul li.dragging { opacity: .4; background: rgba(168,85,247,.12); }
.grip { cursor: grab; color: var(--dim); letter-spacing: -2px; user-select: none; }
.lbl { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; }
.src-row.src-on .s-src { border-color: rgba(52,211,153,.55); box-shadow: 0 0 0 1px rgba(52,211,153,.25) inset; }
.src-live { align-self: center; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #34d399; white-space: nowrap; padding: 2px 6px; border-radius: 6px; background: rgba(52,211,153,.12); }
.now-src .ns-row { padding: 8px 0; border-top: 1px solid rgba(255,255,255,.06); } .now-src .ns-row:first-of-type { border-top: 0; padding-top: 0; }
.now-src .ns-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; } .now-src .ns-host { margin: 4px 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.src-row > .row-in { display: flex; align-items: center; gap: 8px; width: 100%; }
.src-res { width: 100%; font-size: 12.5px; padding-left: 2px; } .src-res:empty { display: none; }
.src-res.ok { color: #34d399; } .src-res.bad { color: var(--bad, #f87171); } .src-res.busy { color: var(--muted, #9aa3b2); }
.src-find { margin-top: 12px; } .src-find .pick-list { margin-top: 6px; max-height: 280px; }
.src-find .pick { grid-template-columns: 1fr auto; }
/* streams list: long channel names are cut with … so the table fits and the row menu stays visible */
.streams-t td:nth-child(2) { max-width: 360px; }
.streams-t .st-name { min-width: 0; max-width: 100%; }
.streams-t .st-name > div { min-width: 0; overflow: hidden; }
.streams-t .st-name a, .streams-t .st-name .sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.streams-t td:nth-child(3) { max-width: 240px; } .streams-t td:nth-child(3) .sub, .streams-t td:nth-child(3) .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.lines-t td.row-act { width: 1%; white-space: nowrap; }
.fixbox > div:nth-child(2) { flex: 1; min-width: 0; } .fixbox .fx-play { flex: none; margin-left: auto; }

/* move channels to another server */
.mv-what { margin: 4px 0 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); }
.mv-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 8px; }
.mv-sum > div { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.05); }
.mv-sum b { display: block; font-size: 22px; line-height: 1.2; } .mv-sum span { font-size: 12px; color: var(--muted); }
.mv-why { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.mv-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.mv-chips { margin: 12px 0 4px; } .mv-table { max-height: 46vh; overflow: auto; margin-top: 10px; }
.mv-jobs { display: grid; gap: 6px; }
.mv-jobs button { display: flex; justify-content: space-between; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); color: inherit; font: inherit; cursor: pointer; }
.mv-jobs button:hover { background: rgba(255,255,255,.09); }
@media (max-width: 600px) { .mv-sum { grid-template-columns: repeat(2, 1fr); } .mv-jobs button { flex-direction: column; align-items: flex-start; } }

/* ==== light theme (generated by light.py from the dark rules above - edit the dark rules or the overrides in admin_extra.css, not this) */
[data-theme="light"] {
    --bg: #f3f4f8; --bg-2: #ffffff;
    --glass: rgba(0,0,0,.035); --glass-2: rgba(0,0,0,.06); --glass-line: rgba(0,0,0,.1);
    --text: #15172b; --muted: #5b6078; --dim: #8b90a6;
    --red: #e11d48; --violet: #7c3aed; --cyan: #0891b2; --ok: #059669; --warn: #d97706; --bad: #dc2626; --blue: #2563eb;
    color-scheme: light;
}
[data-theme="light"] body { background: var(--bg); color: var(--text); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.085); }
[data-theme="light"] /* ---------- brand */
.brand-mark { color: #f7f7fb; }
[data-theme="light"] input, [data-theme="light"] select, [data-theme="light"] textarea { background: rgba(0,0,0,0.049); }
[data-theme="light"] select option { background: #ffffff; }
[data-theme="light"] .btn:hover { background: rgba(0,0,0,0.0935); }
[data-theme="light"] /* ---------- shell */
.topbar { background: rgba(255,255,255,0.92); }
[data-theme="light"] .search-btn { background: rgba(0,0,0,0.042); }
[data-theme="light"] kbd { background: rgba(0,0,0,0.034); }
[data-theme="light"] .credits-pill { background: rgba(0,0,0,0.049); }
[data-theme="light"] .sidebar { background: rgba(255,255,255,0.92); }
[data-theme="light"] .sidebar.open { box-shadow: 0 0 0 100vmax rgba(0,0,0,0.077); }
[data-theme="light"] .tabbar { background: rgba(255,255,255,0.92); box-shadow: 0 10px 40px rgba(0,0,0,0.07); }
[data-theme="light"] .stat .ico { background: rgba(0,0,0,0.0425); }
[data-theme="light"] /* hero */
.hero { border-color: rgba(0,0,0,0.102); }
[data-theme="light"] .hbar .track { background: rgba(0,0,0,0.051); }
[data-theme="light"] .flag { background: rgba(0,0,0,0.0425); }
[data-theme="light"] .mini div { background: rgba(0,0,0,0.035); }
[data-theme="light"] .feed li { border-bottom: 1px dashed rgba(0,0,0,0.051); }
[data-theme="light"] /* insights */
.insight { background: rgba(0,0,0,0.035); }
[data-theme="light"] .list li { border-bottom: 1px solid rgba(0,0,0,0.051); }
[data-theme="light"] .line-row { border-bottom: 1px solid rgba(0,0,0,0.0425); }
[data-theme="light"] .line-row:hover { background: rgba(0,0,0,0.0298); }
[data-theme="light"] .line-row .avatar { background: rgba(0,0,0,0.051); }
[data-theme="light"] .line-row .avatar.on::after { border: 2px solid #ffffff; }
[data-theme="light"] .life { background: rgba(0,0,0,0.0595); }
[data-theme="light"] .bulkbar { background: rgba(255,255,255,0.92); }
[data-theme="light"] .summary { background: rgba(0,0,0,0.042); }
[data-theme="light"] .pkg-card { background: rgba(0,0,0,0.035); }
[data-theme="light"] /* sheet */
.sheet-back { background: rgba(255,255,255,0.92); }
[data-theme="light"] .sheet { background: rgba(255,255,255,0.92); }
[data-theme="light"] /* palette */
.palette-back { background: rgba(255,255,255,0.92); }
[data-theme="light"] .palette { background: rgba(255,255,255,0.92); box-shadow: 0 30px 80px rgba(0,0,0,0.084), 0 0 0 1px rgba(168,85,247,.25); }
[data-theme="light"] /* notifications */
.notif { background: rgba(255,255,255,0.94); box-shadow: 0 30px 80px rgba(0,0,0,0.084); }
[data-theme="light"] .table th, [data-theme="light"] .table td { border-bottom: 1px solid rgba(0,0,0,0.051); }
[data-theme="light"] /* skeleton + toast + loader */
.skel { background: linear-gradient(90deg, rgba(0,0,0,0.034) 25%, rgba(0,0,0,0.0765) 37%, rgba(0,0,0,0.034) 63%); }
[data-theme="light"] .spinner { border: 2px solid rgba(0,0,0,0.128); }
[data-theme="light"] .toast { background: rgba(255,255,255,0.95); box-shadow: 0 16px 50px rgba(0,0,0,0.07), 0 0 30px rgba(124,58,237,.25); }
[data-theme="light"] .loader { background: rgba(255,255,255,0.92); }
[data-theme="light"] .doc-row { border-bottom: 1px solid rgba(0,0,0,0.0425); }
[data-theme="light"] .user-pill { background: rgba(0,0,0,0.049); }
[data-theme="light"] .pill { background: rgba(0,0,0,0.042); }
[data-theme="light"] .srv-big div { background: rgba(0,0,0,0.035); }
[data-theme="light"] .meter { background: rgba(0,0,0,0.0595); }
[data-theme="light"] div.table th, [data-theme="light"] div.table td { border-bottom: 1px solid rgba(0,0,0,0.051); }
[data-theme="light"] .pal-type { background: rgba(0,0,0,0.051); }
[data-theme="light"] .pal-ico { background: rgba(0,0,0,0.051); }
[data-theme="light"] .pal-spin { border: 2px solid rgba(0,0,0,0.128); }
[data-theme="light"] /* top-bar logo = link to the Console Center (dashboard) */
a.brand-home { color: #f7f7fb; }
[data-theme="light"] .tabs { background: rgba(0,0,0,0.035); }
[data-theme="light"] .tag.t-muted { background: rgba(0,0,0,0.051); }
[data-theme="light"] .set-row { border-bottom: 1px solid rgba(0,0,0,0.0425); }
[data-theme="light"] .feed li[data-aid]:hover { background: rgba(0,0,0,0.0425); }
[data-theme="light"] .aid-grid > div { background: rgba(0,0,0,0.0308); }
[data-theme="light"] .ai-text { background: rgba(0,0,0,0.0308); }
[data-theme="light"] table.kv tr + tr th, [data-theme="light"] table.kv tr + tr td { border-top: 1px solid rgba(0,0,0,0.0425); }
[data-theme="light"] .aid-tl { border-left: 2px solid rgba(0,0,0,0.068); }
[data-theme="light"] .aid-tl li::before { background: rgba(0,0,0,0.17); }
[data-theme="light"] .soon { background: rgba(0,0,0,0.0425); }
[data-theme="light"] .lines-t th { background: rgba(255,255,255,0.96); }
[data-theme="light"] .lines-t tbody tr:hover { background: rgba(0,0,0,0.0255); }
[data-theme="light"] .tagx { background: rgba(0,0,0,0.051); }
[data-theme="light"] .conn { background: rgba(0,0,0,0.034); }
[data-theme="light"] .ctx { background: rgba(255,255,255,0.97); box-shadow: 0 20px 60px rgba(0,0,0,0.084), 0 0 0 1px rgba(168,85,247,.15); }
[data-theme="light"] .lines-t tr { border-bottom: 1px solid rgba(0,0,0,0.051); }
[data-theme="light"] .mrow { border-bottom: 1px solid rgba(0,0,0,0.0425); }
[data-theme="light"] .sw i { background: rgba(0,0,0,0.085); }
[data-theme="light"] .bq { background: rgba(0,0,0,0.0255); }
[data-theme="light"] .live-list li { border-bottom: 1px dashed rgba(0,0,0,0.068); }
[data-theme="light"] .links code { background: rgba(0,0,0,0.042); }
[data-theme="light"] .vq-row code { background: rgba(0,0,0,0.0595); }
[data-theme="light"] .vq-check { border-top: 1px solid rgba(0,0,0,0.051); }
[data-theme="light"] .vq-big.off { background: rgba(0,0,0,0.0425); }
[data-theme="light"] .pick { background: rgba(0,0,0,0.0213); }
[data-theme="light"] .pick:hover { background: rgba(0,0,0,0.0425); }
[data-theme="light"] .ticket-msg { background: rgba(0,0,0,0.034); }
[data-theme="light"] .poster { background: rgba(0,0,0,0.034); }
[data-theme="light"] .sess.fp:hover { background: rgba(0,0,0,0.034); }
[data-theme="light"] .out-pre { background: rgba(0,0,0,0.035); }
[data-theme="light"] .cr-sum div { background: rgba(0,0,0,0.0308); }
[data-theme="light"] .cr-item { background: rgba(0,0,0,0.0255); }
[data-theme="light"] /* providers: SWAP balance */
.swap-box { background: rgba(0,0,0,0.028); }
[data-theme="light"] .sw-verdict { background: rgba(0,0,0,0.051); }
[data-theme="light"] .price { background: rgba(0,0,0,0.0255); }
[data-theme="light"] .logbox { background: #eceef4; }
[data-theme="light"] .hbar.click:hover { background: rgba(0,0,0,0.034); }
[data-theme="light"] .card.alerts li a:hover { background: rgba(0,0,0,0.0425); }
[data-theme="light"] .al-x:hover { background: rgba(0,0,0,0.068); }
[data-theme="light"] .dcard:hover { box-shadow: 0 12px 34px rgba(0,0,0,0.049); }
[data-theme="light"] .dc-cc { background: rgba(0,0,0,0.0425); }
[data-theme="light"] .dcard .spark { border-top: 1px solid rgba(0,0,0,0.0425); }
[data-theme="light"] .dc-foot { border-top: 1px solid rgba(0,0,0,0.0425); }
[data-theme="light"] .hbar.click:hover { background: rgba(0,0,0,0.034); }
[data-theme="light"] .spd-ring { border: 4px solid rgba(0,0,0,0.102); }
[data-theme="light"] .st-name img, [data-theme="light"] .st-ph { background: rgba(0,0,0,0.051); }
[data-theme="light"] .srv-row, [data-theme="light"] .src-row { border-bottom: 1px dashed rgba(0,0,0,0.0595); }
[data-theme="light"] .ph-logo { background: rgba(0,0,0,0.051); }
[data-theme="light"] .code-wrap { background: rgba(0,0,0,0.042); }
[data-theme="light"] .cat-ul li { border-bottom: 1px solid rgba(0,0,0,0.0425); }
[data-theme="light"] .cat-ul li:hover { background: rgba(0,0,0,0.0255); }
[data-theme="light"] .now-src .ns-row { border-top: 1px solid rgba(0,0,0,0.051); }
[data-theme="light"] /* move channels to another server */
.mv-what { background: rgba(0,0,0,0.0425); }
[data-theme="light"] .mv-sum > div { background: rgba(0,0,0,0.0425); }
[data-theme="light"] .mv-jobs button { border: 1px solid rgba(0,0,0,0.068); background: rgba(0,0,0,0.034); }
[data-theme="light"] .mv-jobs button:hover { background: rgba(0,0,0,0.0765); }
[data-theme="light"] .topbar { background: rgba(246,247,251,.8); }
[data-theme="light"] .sidebar { background: #ffffff; }
[data-theme="light"] .card, [data-theme="light"] .stat { background: #ffffff; border-color: rgba(0,0,0,.08); box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.05); }
[data-theme="light"] .user-pill { background: rgba(0,0,0,.05); }
[data-theme="light"] .card.alerts li.bad a { color: #b91c1c; } [data-theme="light"] .card.alerts li.warn a { color: #b45309; }
[data-theme="light"] .card.alerts { background: linear-gradient(135deg, rgba(220,38,38,.06), rgba(217,119,6,.04)); }
[data-theme="light"] .hero-admin h1 span, [data-theme="light"] .muted { color: var(--muted); }
[data-theme="light"] kbd { background: rgba(0,0,0,.06); color: var(--muted); }
[data-theme="light"] .meter { background: rgba(0,0,0,.08); }
[data-theme="light"] .table thead th, [data-theme="light"] .lines-t thead th, [data-theme="light"] .table th { background: #eef0f6; color: var(--muted); }
[data-theme="light"] .table thead { background: #eef0f6; }
[data-theme="light"] input, [data-theme="light"] select, [data-theme="light"] textarea { background: #ffffff; color: var(--text); border-color: rgba(0,0,0,.14); }
[data-theme="light"] select option { background: #ffffff; color: var(--text); }
[data-theme="light"] .search-btn { background: rgba(0,0,0,.05); color: var(--muted); }
[data-theme="light"] .srv-big div, [data-theme="light"] .mini > div, [data-theme="light"] .ai-stats > div { background: rgba(0,0,0,.05); }
[data-theme="light"] .sheet, [data-theme="light"] .palette { background: #ffffff; }
[data-theme="light"] .sheet-back, [data-theme="light"] .palette-back { background: rgba(20,22,40,.35); }
[data-theme="light"] body { background-image: none; }
[data-theme="light"] .aurora { opacity: .35; } [data-theme="light"] .grid-bg { opacity: .6; }
[data-theme="light"] .hero-admin { background: radial-gradient(120% 140% at 0% 0%, rgba(255,45,85,.08), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(34,211,238,.08), transparent 55%), #ffffff; }
[data-theme="light"] .badge.active { background: rgba(5,150,105,.12); } [data-theme="light"] .badge.trial { background: rgba(37,99,235,.12); }
[data-theme="light"] .badge.expired, [data-theme="light"] .badge.banned { background: rgba(220,38,38,.1); } [data-theme="light"] .badge.disabled { background: rgba(91,96,120,.12); }
[data-theme="light"] .line-row .avatar.on::after { border-color: #ffffff; }
[data-theme="light"] .btn.primary, [data-theme="light"] .pill, [data-theme="light"] .badge { color: #fff; }
[data-theme="light"] .brand-mark, [data-theme="light"] a.brand-home { background: #0b0b12; color: #ffffff; box-shadow: 0 2px 10px rgba(16,24,40,.18); }
[data-theme="light"] .pill.ok { color: #065f46; } [data-theme="light"] .pill.warn { color: #92400e; } [data-theme="light"] .pill.bad { color: #991b1b; } [data-theme="light"] .pill:not(.ok):not(.warn):not(.bad) { color: #155e75; }

/* blocking problem message (catch-up guard) */
.problem-back { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .2s; }
.problem { background: rgba(16,16,28,.96); border: 1px solid var(--glass-line); border-left: 4px solid var(--warn); border-radius: var(--radius); max-width: 560px; width: 100%; padding: 20px 22px; box-shadow: 0 18px 60px rgba(0,0,0,.55); }
.problem h3 { margin: 0 0 10px; font-size: 18px; color: var(--warn); }
.problem p { margin: 0 0 16px; color: var(--text); line-height: 1.55; }
[data-theme="light"] .problem { background: rgba(255,255,255,.97); }
.sp-tools input { width: 100%; margin-bottom: 10px; }
.sp-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 230px) auto; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--glass-line); }
#sp-on .sp-row:first-child, .sp-h + .sp-row { border-top: 0; }
.sp-row.on .sp-main b { color: var(--text); }
.sp-main { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.sp-main b, .sp-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-act { display: flex; gap: 4px; }
.sp-act .btn[disabled] { opacity: .3; }
.sp-st { text-align: right; }
.sp-h { margin: 20px 0 4px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sp-k { background: rgba(255,255,255,.06); color: var(--muted); }
.sp-k.k-fight { color: #fb7185; } .sp-k.k-golf { color: #34d399; } .sp-k.k-racing { color: #fbbf24; } .sp-k.k-tennis { color: #60a5fa; }
@media (max-width: 760px) { .sp-row { grid-template-columns: auto minmax(0, 1fr) auto; } .sp-k { display: none; } .sp-st { grid-column: 2 / -1; text-align: left; } }
.sp-k.k-cricket { color: #a3e635; }

/* ---- Billing section */
.bl-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
.bl-kpis.four { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.bl-kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--radius, 14px); background: var(--glass-2); border: 1px solid var(--glass-line); color: var(--text); text-decoration: none; }
.bl-kpi b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.bl-kpi span { font-size: 12px; color: var(--muted); }
.bl-kpi.ok b { color: #22c55e; } .bl-kpi.warn b { color: #f59e0b; } .bl-kpi.bad b { color: #ef4444; }
a.bl-kpi:hover { border-color: rgba(168,85,247,.6); }
.bl-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.bl-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.bl-grid2.wide { grid-template-columns: 2fr 1fr; }
.bl-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
@media (max-width: 1100px) { .bl-grid2, .bl-grid2.wide, .bl-grid3 { grid-template-columns: 1fr; } }
.bl-kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; align-items: baseline; margin: 6px 0 12px; font-size: 13.5px; }
.bl-k { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.bl-v { word-break: break-word; }
.bl-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.bl-search { display: flex; gap: 6px; margin-left: auto; }
.bl-search input { min-width: 240px; }
.bl-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.bl-acts { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.bl-msg { padding: 10px 12px; border-radius: 12px; margin: 8px 0; background: var(--glass-2); border: 1px solid var(--glass-line); font-size: 13.5px; line-height: 1.45; white-space: normal; }
.bl-msg.me { border-left: 3px solid #3b82f6; }
.bl-msg.them { border-left: 3px solid #22c55e; }
.bl-msg.internal { border-style: dashed; opacity: .9; }
.bl-thread { max-height: 60vh; overflow: auto; padding-right: 4px; margin-bottom: 10px; }
.bl-total { display: grid; gap: 4px; justify-content: end; margin: 8px 0; }
.bl-total div { display: flex; gap: 18px; justify-content: space-between; min-width: 220px; font-size: 13.5px; }
.bl-total div:last-child b { font-size: 15px; }
.bl-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.bl-plan.off { opacity: .6; }
.bl-price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; }
.bl-price span { font-size: 13px; font-weight: 500; color: var(--muted); }
.bl-ul { margin: 8px 0; padding-left: 18px; }
.bl-svc { border: 1px solid var(--glass-line); background: var(--glass-2); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.bl-svc .bl-svc-h { font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bl-svc .bl-kv { margin: 8px 0 6px; }
.bl-svc .bl-svc-a { display: flex; flex-wrap: wrap; gap: 6px; }
.bl-ul.small { font-size: 12.5px; color: var(--muted); }
.bl-preview { width: 100%; height: 70vh; border: 1px solid var(--glass-line); border-radius: 10px; background: #fff; }
.lbl.chk, label.chk { display: flex; flex-direction: row; align-items: center; gap: 8px; }
label.chk.big { font-size: 15px; display: inline-flex; width: auto; max-width: none; white-space: normal; }
label.chk input { flex: none; width: auto; }
td.r { text-align: right; }
td.bl-bad, .bl-bad { color: #ef4444; }
textarea.mono, .mono { font-family: var(--mono); }

tr.gone td{opacity:.55}
tr.gone td a{color:var(--muted)}
.bl-tfs{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.bl-tf{position:relative;display:block;width:104px;height:104px;border-radius:10px;overflow:hidden;border:1px solid var(--line2);background:rgba(0,0,0,.3);text-decoration:none;transition:.2s}
.bl-tf:hover{border-color:var(--violet)}
.bl-tf img{width:100%;height:100%;object-fit:cover;display:block}
.bl-tf.bad{opacity:.4}
.bl-tfd{position:absolute;left:0;right:0;bottom:0;padding:3px 6px;font:600 11px Inter,sans-serif;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.75))}
.bl-reply { gap: 14px; margin-top: 12px; }
.bl-reply select { width: auto; flex: none; min-width: 148px; padding: 9px 12px; }
.bl-reply .chk { white-space: nowrap; }
.bl-reply .muted.small { margin-left: auto; }
.page-head .actions select { width: auto; flex: none; min-width: 150px; padding: 9px 12px; }
.bl-bulk { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(168,85,247,.10); }
.bl-bulk b { font-size: 15px; }
.lines-t td.pick, .lines-t th:first-child { width: 34px; padding-right: 0; }
.lines-t td.pick input, .lines-t th input { width: auto; margin: 0; cursor: pointer; }

/* ---- Billing: the futuristic overview */
.bl-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 14px; }
@media (max-width: 1000px) { .bl-hero { grid-template-columns: 1fr; } }
.bl-money { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 18px; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--text); background: var(--glass-2); border: 1px solid var(--glass-line); transition: transform .18s, border-color .18s, box-shadow .18s; }
.bl-money:before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(168,85,247,.9), transparent); opacity: .8; }
.bl-money.ok:before { background: linear-gradient(90deg, transparent, #22c55e, transparent); }
.bl-money.warn:before { background: linear-gradient(90deg, transparent, #f59e0b, transparent); }
.bl-money.bad:before { background: linear-gradient(90deg, transparent, #ef4444, transparent); }
.bl-money:hover { transform: translateY(-2px); border-color: rgba(168,85,247,.55); box-shadow: 0 18px 40px -26px rgba(168,85,247,.9); }
.bl-money-l { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.bl-money b { font: 800 34px/1.05 inherit; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bl-money.ok b { color: #22c55e; } .bl-money.warn b { color: #f59e0b; } .bl-money.bad b { color: #ef4444; }
.bl-money-s { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.bl-dir { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; }
.bl-dir.up { border-bottom: 7px solid #22c55e; }
.bl-dir.down { border-top: 7px solid #ef4444; }

.bl-live { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0 0 14px; }
.bl-live-i { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--glass-line); }
.bl-live-i > i { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #6b7280; }
.bl-live-i.ok > i { background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.55); animation: blPulse 2.4s infinite; }
.bl-live-i.warn > i { background: #f59e0b; }
.bl-live-i.bad > i { background: #ef4444; box-shadow: 0 0 0 0 rgba(239,68,68,.55); animation: blPulse 1.4s infinite; }
.bl-live-i b { display: block; font-size: 13px; }
.bl-live-i span { display: block; font-size: 11.5px; color: var(--muted); }
@keyframes blPulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 7px rgba(0,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } }
@media (prefers-reduced-motion: reduce) { .bl-live-i > i { animation: none !important; } }

.bl-panel-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.bl-panel-h h2 { margin: 0; }
.bl-panel-r { text-align: right; }
.bl-panel-r b { display: block; font: 800 20px/1.1 inherit; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bl-panel-r span { font-size: 11.5px; color: var(--muted); }
.bl-chart { display: flex; align-items: flex-end; gap: 3px; height: 132px; padding: 0 2px; }
.bl-chart i { flex: 1; min-width: 3px; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, rgba(168,85,247,.95), rgba(59,130,246,.45)); transition: filter .15s, transform .15s; }
.bl-chart i:hover { filter: brightness(1.35); transform: scaleX(1.25); }
.bl-chart i.zero { background: rgba(255,255,255,.07); }
.bl-chart i.now { background: linear-gradient(180deg, #22d3ee, rgba(34,211,238,.35)); box-shadow: 0 0 16px -2px rgba(34,211,238,.7); }
.bl-chart-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 7px; }

.bl-plan-row { display: grid; grid-template-columns: 1fr 96px auto; gap: 12px; align-items: center; padding: 8px 0; font-size: 13.5px; border-bottom: 1px solid var(--glass-line); }
.bl-plan-row:last-child { border-bottom: 0; }
.bl-plan-row i { display: block; height: 6px; border-radius: 99px; background: linear-gradient(90deg, rgba(168,85,247,.95), rgba(34,211,238,.8)); }
.bl-plan-row b { font-variant-numeric: tabular-nums; }
.bl-kpis.six { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.bl-kpi { transition: transform .15s, border-color .15s; }
a.bl-kpi:hover { transform: translateY(-2px); }

/* ---- Billing: shared futuristic polish across every page of the section */
.bl-grid3 .lines-t td:first-child a { white-space: nowrap; }
.bl-grid3 .lines-t th, .bl-grid3 .lines-t td { padding-left: 10px; padding-right: 10px; }
.bl-grid3 .lines-t { font-size: 12.5px; }

.lines-t thead th { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.lines-t tbody tr { position: relative; transition: background .14s; }
.lines-t tbody tr:hover { background: rgba(168,85,247,.07); }
.lines-t tbody td:first-child { position: relative; }
.lines-t tbody tr:hover td:first-child:before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, #a855f7, #22d3ee); }
.lines-t td b, .lines-t td .mono { font-variant-numeric: tabular-nums; }

.table-card, .bl-panel { position: relative; overflow: hidden; }
.table-card:before, .bl-panel:before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(168,85,247,.55), rgba(34,211,238,.35), transparent); }

.bl-bulk { position: relative; overflow: hidden; }
.bl-bulk:before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(168,85,247,.8), transparent); }

.badge { letter-spacing: .04em; }
.page-head .ph { letter-spacing: -.02em; }
.chips .chip.on { box-shadow: 0 8px 22px -12px rgba(168,85,247,.9); }

/* ---- Billing settings: a plain form instead of raw JSON */
.bl-sf2 { display: grid; gap: 16px; }
.bl-sf { display: block; }
.bl-sf-l { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.bl-sf input { width: 100%; }
.bl-sf-h { display: block; font-size: 12px; line-height: 1.5; color: var(--muted); margin-top: 5px; }
.bl-sf-t { padding: 10px 12px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--glass-line); }
.bl-sf-t > span:first-child { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.bl-sf-t input { width: auto; flex: none; }
.bl-save { position: sticky; bottom: 0; display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: rgba(10,10,16,.92); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); }
.bl-save .btn { min-width: 170px; }
.bl-bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; margin-top: 6px; }
.bl-bars .bl-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bl-bars .bl-bar i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--c-cyan, #22d3ee), rgba(34,211,238,.25)); }
.bl-fun { display: grid; grid-template-columns: 220px 1fr 46px; gap: 12px; align-items: center; margin: 0 0 10px; }
.bl-jr { padding: 12px 0; border-top: 1px solid var(--line, rgba(255,255,255,.08)); }
.bl-jr:first-of-type { border-top: 0; }
.bl-jr-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 8px; }
.bl-jr-p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bl-jr-s { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 999px; background: var(--glass-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.bl-jr-s i { font-style: normal; font-weight: 500; opacity: .7; }
.bl-jr-s.end { background: transparent; border: 1px dashed rgba(255,255,255,.22); color: var(--muted); font-weight: 500; }
.bl-jr-s.err { background: rgba(251,113,133,.14); color: var(--bad); }
.bl-jr-a { color: var(--muted); font-size: 13px; }
.bl-fun-l { display: flex; flex-direction: column; }
.bl-fun-l b { font-weight: 600; }
.bl-fun-l span { color: var(--muted); font-size: 12.5px; }
.bl-fun-b { height: 10px; border-radius: 999px; background: var(--glass-2); overflow: hidden; }
.bl-fun-b i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.bl-fun-p { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .bl-fun { grid-template-columns: 1fr; } .bl-fun-p { text-align: left; } }

/* Providers page cards */
.pv-card { gap: 12px; }
.pv-card .srv-head .tagx.off { color: #fda4af; background: rgba(251,113,133,.14); }
.pv-host { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; line-height: 1.45; }
.pv-stats { grid-template-columns: repeat(2, 1fr); }
.pv-stats div { padding: 10px 12px; min-width: 0; }
.pv-stats b { font-size: 22px; line-height: 1.15; }
.pv-stats span { display: block; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-last { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.pv-last b { color: var(--text); font-weight: 600; }
.pv-last .pv-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.pv-last.warn { color: #fcd34d; } .pv-last.warn .pv-dot { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.pv-last.none .pv-dot { background: rgba(255,255,255,.22); box-shadow: none; }
.pv-last .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pv-card .pv-acts { margin-top: auto; padding-top: 2px; }
.pv-acts .btn.sm { padding: 8px 10px; }
.pv-acts .btn.pv-go { color: var(--cyan); border-color: rgba(34,211,238,.35); background: rgba(34,211,238,.08); }
.pv-acts .btn.pv-go:hover { background: rgba(34,211,238,.16); }
[data-theme="light"] .pv-card .srv-head .tagx.off { background: rgba(220,38,38,.1); color: #b91c1c; }
[data-theme="light"] .pv-last.warn { color: #b45309; }
[data-theme="light"] .pv-last.none .pv-dot { background: rgba(0,0,0,.2); }
[data-theme="light"] .pv-acts .btn.pv-go { color: #0e7490; border-color: rgba(14,116,144,.3); background: rgba(14,116,144,.07); }
.sw-src { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px; border-radius: 6px; vertical-align: 1px; font-family: Inter, sans-serif; }
.sw-src.api { color: #67e8f9; background: rgba(34,211,238,.12); }
.sw-src.live { color: #c4b5fd; background: rgba(168,85,247,.16); }
.sw-sub .sw-src { margin-right: 2px; }
[data-theme="light"] .sw-src.api { color: #0e7490; background: rgba(14,116,144,.1); }
[data-theme="light"] .sw-src.live { color: #6d28d9; background: rgba(109,40,217,.1); }
.sw-sub.sw-why { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.5; }
/* Providers page: swap verdict strip (foot of the swap box) */
.pv-card .sw-vd { display: flex; align-items: center; gap: 10px; margin: 4px -12px -10px; padding: 9px 12px 10px; border-top: 1px solid rgba(255,255,255,.07); border-radius: 0 0 12px 12px; font-size: 12.5px; font-weight: 600; color: var(--text); background: rgba(255,255,255,.03); }
.sw-vd-i { width: 24px; height: 24px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; background: rgba(255,255,255,.08); color: var(--muted); }
.sw-vd-i svg { width: 14px; height: 14px; }
.sw-vd-t { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.sw-vd-r { flex: none; font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.pv-card .sw-vd.ok { background: linear-gradient(90deg, rgba(52,211,153,.16), rgba(52,211,153,.03)); border-top-color: rgba(52,211,153,.22); } .sw-vd.ok .sw-vd-i { background: rgba(52,211,153,.2); color: #6ee7b7; }
.pv-card .sw-vd.info { background: linear-gradient(90deg, rgba(34,211,238,.16), rgba(34,211,238,.03)); border-top-color: rgba(34,211,238,.22); } .sw-vd.info .sw-vd-i { background: rgba(34,211,238,.2); color: #67e8f9; }
.pv-card .sw-vd.warn { background: linear-gradient(90deg, rgba(251,191,36,.16), rgba(251,191,36,.03)); border-top-color: rgba(251,191,36,.22); } .sw-vd.warn .sw-vd-i { background: rgba(251,191,36,.2); color: #fcd34d; }
.pv-card .sw-vd.muted { color: var(--muted); }
[data-theme="light"] .pv-card .sw-vd { border-top-color: rgba(0,0,0,.07); background: rgba(0,0,0,.03); }
[data-theme="light"] .sw-vd-i { background: rgba(0,0,0,.06); }
[data-theme="light"] .pv-card .sw-vd.ok { background: linear-gradient(90deg, rgba(5,150,105,.12), rgba(5,150,105,.02)); border-top-color: rgba(5,150,105,.2); } [data-theme="light"] .sw-vd.ok .sw-vd-i { background: rgba(5,150,105,.14); color: #047857; }
[data-theme="light"] .pv-card .sw-vd.info { background: linear-gradient(90deg, rgba(14,116,144,.12), rgba(14,116,144,.02)); border-top-color: rgba(14,116,144,.2); } [data-theme="light"] .sw-vd.info .sw-vd-i { background: rgba(14,116,144,.14); color: #0e7490; }
[data-theme="light"] .pv-card .sw-vd.warn { background: linear-gradient(90deg, rgba(180,83,9,.12), rgba(180,83,9,.02)); border-top-color: rgba(180,83,9,.2); } [data-theme="light"] .sw-vd.warn .sw-vd-i { background: rgba(180,83,9,.14); color: #b45309; }
/* Providers page: swap balance table spread across the full width */
.sb-t { table-layout: fixed; }
.sb-t th:nth-child(1), .sb-t td:nth-child(1) { width: 22%; padding-left: 16px; }
.sb-t th:nth-child(2), .sb-t td:nth-child(2) { width: 21%; }
.sb-t th:nth-child(3), .sb-t td:nth-child(3) { width: 25%; }
.sb-t th:nth-child(4), .sb-t td:nth-child(4) { width: 12%; }
.sb-t th:nth-child(5), .sb-t td:nth-child(5) { width: 20%; padding-right: 16px; }
.sb-t td.sb-c { padding-right: 22px; }
.sb-n { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 13.5px; white-space: nowrap; }
.sb-n .mono { font-size: 13.5px; }
.sb-t .meter { height: 5px; max-width: 220px; }
.sb-r { color: var(--muted); font-size: 13px; }
.sb-t tbody td:first-child b { display: block; }
.sb-t tbody td:first-child .sub { margin-top: 2px; }
@media (max-width: 760px) {
    .sb-t tr { grid-template-columns: 1fr 1fr; }
    .sb-t td:nth-child(1), .sb-t td:nth-child(5) { grid-column: 1 / 3; width: auto; }
    .sb-t td:nth-child(2) { grid-column: 1; } .sb-t td:nth-child(3) { grid-column: 2; } .sb-t td:nth-child(4) { grid-column: 1 / 3; }
    .sb-t td.sb-c { padding-right: 4px; } .sb-t .meter { max-width: none; }
}
/* AI Dashboard > Providers: health table spread across the full width */
#pv-list .lines-t { table-layout: fixed; }
#pv-list .lines-t th:nth-child(1), #pv-list .lines-t td:nth-child(1) { width: 15%; padding-left: 16px; }
#pv-list .lines-t th:nth-child(2), #pv-list .lines-t td:nth-child(2) { width: 10%; }
#pv-list .lines-t th:nth-child(3), #pv-list .lines-t td:nth-child(3) { width: 15%; }
#pv-list .lines-t th:nth-child(4), #pv-list .lines-t td:nth-child(4) { width: 14%; }
#pv-list .lines-t th:nth-child(5), #pv-list .lines-t td:nth-child(5) { width: 13%; }
#pv-list .lines-t th:nth-child(6), #pv-list .lines-t td:nth-child(6) { width: 9%; }
#pv-list .lines-t th:nth-child(7), #pv-list .lines-t td:nth-child(7) { width: 11%; }
#pv-list .lines-t th:nth-child(8), #pv-list .lines-t td:nth-child(8) { width: 13%; padding-right: 16px; }
#pv-list .lines-t .row-in .mini-btn { flex: none; }
#pv-list .lines-t td:nth-child(3) { min-width: 0 !important; padding-right: 20px; }
#pv-list .lines-t td.nowrap { white-space: normal; }
#pv-list .lines-t td:nth-child(8) .btn { display: flex; width: 100%; justify-content: center; white-space: nowrap; margin: 0 0 6px; box-sizing: border-box; }
#pv-list .lines-t td:nth-child(8) .btn:last-child { margin-bottom: 0; }
#pv-list .lines-t .badge { white-space: normal; line-height: 1.3; text-align: center; }
#pv-list .lines-t .sub { overflow-wrap: anywhere; }
#pv-list .lines-t .row-in { flex-wrap: nowrap; }
#pv-list .lines-t .row-in input { min-width: 0; width: 100% !important; }
/* AI Dashboard > Providers: source changes (undo) list */
.sc-batch { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.sc-batch:last-child { border-bottom: 0; }
.sc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.sc-head b { font-weight: 600; }
.sc-head .pv-undo { margin-left: auto; }
.sc-kind { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 7px; }
.sc-kind.sw { color: #67e8f9; background: rgba(34,211,238,.12); }
.sc-kind.ppv { color: #fcd34d; background: rgba(251,191,36,.14); }
.sc-kind.off { color: #fda4af; background: rgba(251,113,133,.14); }
.sc-id { font-size: 11px; color: var(--dim); }
.sc-undone { font-size: 12px; color: var(--muted); }
.sc-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 4px 24px; margin-top: 8px; }
.sc-item { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 12.5px; padding: 4px 0; }
.sc-ch { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 500; }
.sc-move { flex: none; display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; }
.sc-src { padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--muted); white-space: nowrap; }
.sc-src.to { color: #6ee7b7; background: rgba(52,211,153,.12); }
.sc-src.to.same { color: var(--muted); background: rgba(255,255,255,.06); }
.sc-src.back { color: #c4b5fd; background: rgba(168,85,247,.16); }
.sc-arrow { color: var(--dim); }
.sc-batch.undone .sc-ch { color: var(--muted); }
[data-theme="light"] .sc-batch { border-bottom-color: rgba(0,0,0,.07); }
[data-theme="light"] .sc-kind.sw { color: #0e7490; background: rgba(14,116,144,.1); }
[data-theme="light"] .sc-kind.ppv { color: #b45309; background: rgba(180,83,9,.12); }
[data-theme="light"] .sc-kind.off { color: #b91c1c; background: rgba(220,38,38,.1); }
[data-theme="light"] .sc-src { background: rgba(0,0,0,.06); }
[data-theme="light"] .sc-src.to { color: #047857; background: rgba(5,150,105,.12); }
[data-theme="light"] .sc-src.back { color: #6d28d9; background: rgba(109,40,217,.1); }
/* Provider streams: table + Play preview (through Main) */
.ps-t { table-layout: fixed; }
.ps-t th:nth-child(1), .ps-t td:nth-child(1) { width: 40px; padding-left: 14px; padding-right: 0; }
.ps-t th:nth-child(2), .ps-t td:nth-child(2) { width: 36%; }
.ps-t th:nth-child(3), .ps-t td:nth-child(3) { width: 11%; }
.ps-t th:nth-child(4), .ps-t td:nth-child(4) { width: 17%; }
.ps-t th:nth-child(5), .ps-t td:nth-child(5) { width: 11%; }
.ps-t th:nth-child(6), .ps-t td:nth-child(6) { width: 10%; white-space: nowrap; }
.ps-t th:nth-child(7), .ps-t td:nth-child(7) { padding-right: 14px; text-align: right; }
.ps-t td .st-name > div { min-width: 0; }
.ps-t td .st-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.ps-t td:nth-child(3), .ps-t td:nth-child(4), .ps-t td:nth-child(5) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-t tr.picked td { background: rgba(192,38,211,.08); }
.ps-t .ps-ck, #ps-all { width: 18px; height: 18px; accent-color: #c026d3; margin: 0; vertical-align: middle; }
.ps-ours-row { display: flex; flex-wrap: wrap; gap: 3px 8px; margin-top: 3px; white-space: normal; }
.ps-ours { display: inline-flex; align-items: center; gap: 3px; color: var(--ok); font-weight: 600; } .ps-ours svg { width: 11px; height: 11px; }
.ps-btns { display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; }
.ps-btns .btn.sm { padding: 6px 9px; font-size: 12.5px; }
.ps-btns .icon-btn.sm { width: 32px; height: 32px; border-radius: 9px; }
.ps-chk { margin-top: 6px; display: flex; justify-content: flex-start; }
.chk-pill { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; overflow: hidden; padding: 5px 10px 5px 9px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); font-size: 12px; color: var(--text); white-space: nowrap; }
.chk-pill b { font-weight: 650; }
.chk-pill .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--muted); }
.chk-pill.ok { border-color: rgba(52,211,153,.28); background: rgba(52,211,153,.08); } .chk-pill.ok .dot { background: var(--ok); box-shadow: 0 0 8px rgba(52,211,153,.8); }
.chk-pill.bad { border-color: rgba(251,113,133,.3); background: rgba(251,113,133,.08); } .chk-pill.bad .dot { background: var(--bad); box-shadow: 0 0 8px rgba(251,113,133,.7); }
.chk-pill.busy { color: var(--muted); } .chk-pill .spinner { width: 12px; height: 12px; border-width: 2px; }
.chk-tags { display: inline-flex; gap: 4px; }
.chk-tags span { font-family: var(--mono); font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 6px; background: rgba(255,255,255,.07); color: var(--muted); }
.chk-tags span.fast { color: var(--ok); } .chk-tags span.mid { color: var(--text); } .chk-tags span.slow { color: var(--warn); background: rgba(251,191,36,.12); }
.chk-err { font-family: var(--mono); font-size: 11px; color: var(--bad); max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
[data-theme="light"] .chk-tags span { background: rgba(0,0,0,.06); }
.ps-src { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; flex-wrap: wrap; }
.ps-h { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin: 18px 0 8px; }
.ps-new .f2 + .f2 { margin-top: 12px; }
.ps-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ps-mode { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--glass-line); cursor: pointer; background: rgba(255,255,255,.025); transition: border-color .15s, background .15s; }
.ps-mode input { display: none; } .ps-mode b { font-size: 13.5px; } .ps-mode small { color: var(--dim); font-size: 11.5px; line-height: 1.35; }
.ps-mode:has(input:checked) { border-color: rgba(192,38,211,.6); background: rgba(192,38,211,.12); box-shadow: inset 0 0 0 1px rgba(192,38,211,.35); }
.ps-att .pick-list { max-height: 280px; margin-top: 8px; }
.pick.pa-row { cursor: pointer; grid-template-columns: 34px minmax(0, 1fr) auto auto; } .pick.pa-row .btn { width: auto; }
.pick.on { background: rgba(192,38,211,.14); box-shadow: inset 0 0 0 1px rgba(192,38,211,.4); }
.pick img, .pick .st-ph { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; background: rgba(255,255,255,.06); flex: none; padding: 2px; }
.ps-already { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 6px; } .ps-already svg { width: 14px; height: 14px; }
.ps-prog { margin-top: 12px; display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.ps-res { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); font-size: 13.5px; }
.ps-res svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--ok); }
.ps-res ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; max-height: 200px; overflow-y: auto; }
.chip-ck.warn { border-color: rgba(251,191,36,.45); } .chip-ck small { color: var(--dim); font-size: 11px; margin-left: 2px; }
[data-theme="light"] .ps-mode, [data-theme="light"] .pick img, [data-theme="light"] .pick .st-ph { background: rgba(0,0,0,.035); }
@media (max-width: 1100px) { .ps-btns .btn.sm span, .ps-btns .btn.sm { font-size: 12px; } .ps-btns .btn.sm { padding: 6px 8px; } }
@media (max-width: 900px) { .ps-modes { grid-template-columns: 1fr; } .ps-t th:nth-child(5), .ps-t td:nth-child(5), .ps-t th:nth-child(6), .ps-t td:nth-child(6) { display: none; } }
.pp { display: flex; flex-direction: column; gap: 10px; }
.pp-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pp-via { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.pp-via svg { width: 14px; height: 14px; }
.pp-box { background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.pp-box video { width: 100%; height: 100%; display: block; background: #000; }
.pp-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.05); color: var(--muted); }
.pp-info svg { width: 15px; height: 15px; flex: none; }
.pp-info.ok { color: var(--text); background: rgba(52,211,153,.1); } .pp-info.ok svg { color: #6ee7b7; }
.pp-info.bad { color: #fda4af; background: rgba(251,113,133,.12); } .pp-info.bad svg { color: #fb7185; }
.pp-info .small { flex-basis: 100%; }
[data-theme="light"] .pp-info { background: rgba(0,0,0,.05); }
[data-theme="light"] .pp-info.ok { background: rgba(5,150,105,.1); } [data-theme="light"] .pp-info.bad { background: rgba(220,38,38,.08); color: #b91c1c; }
.pp-info .spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--cyan); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
/* Provider import history: even columns, numbers right-aligned, error text wraps */
.pr-t { table-layout: fixed; }
.pr-t th:nth-child(1), .pr-t td:nth-child(1) { width: 13%; padding-left: 16px; }
.pr-t th:nth-child(2), .pr-t td:nth-child(2) { width: 14%; }
.pr-t th:nth-child(3), .pr-t td:nth-child(3) { width: 10%; }
.pr-t th:nth-child(4), .pr-t td:nth-child(4) { width: 10%; }
.pr-t th:nth-child(5), .pr-t td:nth-child(5) { width: 8%; }
.pr-t th:nth-child(6), .pr-t td:nth-child(6) { width: 10%; }
.pr-t th:nth-child(7), .pr-t td:nth-child(7) { width: 8%; }
.pr-t th:nth-child(8), .pr-t td:nth-child(8) { padding-right: 16px; }
.pr-t th.num, .pr-t td.mono { text-align: right; padding-right: 22px; font-variant-numeric: tabular-nums; }
.pr-t td:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-t td.warn-t { white-space: normal; line-height: 1.35; }
@media (max-width: 900px) { .pr-t th:nth-child(4), .pr-t td:nth-child(4), .pr-t th:nth-child(6), .pr-t td:nth-child(6) { display: none; } }
/* remove a load balancer - step list */
.rm-t td.rm-ic { width: 28px; text-align: center; font-family: var(--mono); font-size: 15px; vertical-align: top; padding-top: 12px; }
.rm-t .rm-wait { color: var(--muted); }
.rm-t .rm-note { margin-top: 2px; white-space: normal; line-height: 1.35; }
.rm-t .rm-note.bad-t { color: var(--bad, #f87171); }
#rm-foot { align-items: center; gap: 12px; }
#rm-foot #rm-sum { flex: 1; text-align: left; }

/* N24 2026-10-21: tables that use class "tbl" (DB backups, Log clean-up, Server IP page, Live Chat, Remote Help) had no rule at all and rendered unstyled; same look as .table */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { text-align: left; padding: 9px 8px; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: middle; }
.tbl th { color: var(--dim); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; cursor: default; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: rgba(255,255,255,.025); }
.tbl td.nowrap { white-space: nowrap; width: 1%; }
.tbl td .btn + .btn { margin-left: 6px; }
.tbl td.mono { font-size: 12.5px; }
[data-theme="light"] .tbl th, [data-theme="light"] .tbl td { border-bottom: 1px solid rgba(0,0,0,0.051); }
[data-theme="light"] .tbl thead th { background: #eef0f6; color: var(--muted); }
[data-theme="light"] .tbl tbody tr:hover td { background: rgba(0,0,0,.025); }

/* DNS servers page (2026-10-21): own table (host names never break), compact chips, 4 stats per row, short action row */
.dns-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dns-t th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--glass-line); white-space: nowrap; font-weight: 600; }
.dns-t td { padding: 8px 12px; vertical-align: middle; border-bottom: 1px solid rgba(255,255,255,.05); white-space: normal; overflow-wrap: normal; }
.dns-t td:first-child { white-space: nowrap; font-family: var(--mono); font-weight: 600; font-size: 13px; }
.dns-t td:last-child { text-align: right; white-space: nowrap; width: 1%; }
.dns-t tbody tr:last-child td { border-bottom: 0; }
.dns-t .pill { padding: 3px 10px; font-size: 12.5px; font-family: var(--mono); font-weight: 600; margin: 2px 4px 2px 0; box-shadow: none; }
.dns-page .pill { padding: 3px 9px; font-size: 12px; gap: 4px; }
.dns-page .pill.bad { box-shadow: none; }
.dns-page .srv-big { grid-template-columns: repeat(4, 1fr); }
.dns-page .srv-big b { font-size: 18px; }
.dns-page .srv-big span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dns-st { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 12.5px; }
.dns-st:empty { display: none; }
.dns-act { margin-top: auto; padding-top: 2px; flex-wrap: nowrap; }
.dns-act .btn.sm { white-space: nowrap; padding: 7px 11px; }
.dns-act select.sm { margin-left: auto; max-width: 110px; }
[data-theme="light"] .dns-t td { border-bottom-color: rgba(0,0,0,.06); }
@media (max-width: 720px) {
    .dns-page .srv-big { grid-template-columns: repeat(2, 1fr); }
    .dns-t th:nth-child(3), .dns-t td:nth-child(3) { display: none; }
    .dns-t td { padding: 8px 6px; }
    .dns-act { flex-wrap: wrap; }
}

/* ---- Email Marketing */
.em-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin-bottom: 16px; border-radius: 16px; background: rgba(0,0,0,.25); border: 1px solid var(--glass-line); scrollbar-width: none; }
[data-theme="light"] .em-tabs { background: rgba(0,0,0,.035); }
.em-tabs .tab svg { width: 15px; height: 15px; }
.em-ftabs .tab small { font-weight: 500; opacity: .7; margin-left: 2px; }
.em-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 0 0 14px; }
.em-tile .n { font-family: var(--mono); font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.em-tile .l { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .05em; }
.em-tile .s { margin-top: 6px; line-height: 1.4; }
.em-tile .meter { margin: 6px 0 4px; }
.em-tile.ok .n { color: var(--ok); }
.em-tile.bad .n { color: var(--bad); }
.em-tile.warn .n { color: var(--warn); }
.em-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; align-items: start; }
.em-grid2 > .card { margin-top: 0 !important; }
.em-senders { display: flex; flex-direction: column; gap: 10px; }
.em-sender { padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.2); border: 1px solid var(--glass-line); }
[data-theme="light"] .em-sender { background: rgba(0,0,0,.03); }
.em-sender.off { opacity: .55; }
.em-sender .t { display: flex; align-items: center; gap: 8px; }
.em-sender .t b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em-sender .meter { margin-top: 6px; }
.em-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.em-cards > .card { margin-top: 0 !important; }
.em-card.off { opacity: .6; }
.em-card .srv-big { margin: 10px 0; }
.em-events { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; }
.em-ev { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 10px; align-items: center; padding: 7px 10px; border-radius: 10px; background: rgba(0,0,0,.18); font-size: 13px; }
[data-theme="light"] .em-ev { background: rgba(0,0,0,.03); }
.em-ev > .small:nth-child(3) { grid-column: 2; }
.em-ek { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--muted); }
.em-ek.open { color: var(--blue); background: rgba(96,165,250,.14); }
.em-ek.click { color: var(--ok); background: rgba(52,211,153,.14); }
.em-ek.unsubscribe, .em-ek.unsub { color: var(--warn); background: rgba(251,191,36,.14); }
.em-ek.failed, .em-ek.bounce, .em-ek.bounced, .em-ek.complaint { color: var(--bad); background: rgba(251,113,133,.14); }
.em-st { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 7px; background: rgba(255,255,255,.08); color: var(--muted); white-space: nowrap; }
[data-theme="light"] .em-st { background: rgba(0,0,0,.06); }
.em-st.ok { color: var(--ok); background: rgba(52,211,153,.14); }
.em-st.warn { color: var(--warn); background: rgba(251,191,36,.16); }
.em-st.bad { color: var(--bad); background: rgba(251,113,133,.14); }
.em-pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 0 2px; }
.em-sample { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.em-sample span { font-family: var(--mono); font-size: 11.5px; padding: 3px 8px; border-radius: 8px; background: rgba(0,0,0,.2); }
[data-theme="light"] .em-sample span { background: rgba(0,0,0,.05); }
.em-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 42%); gap: 14px; align-items: start; }
.em-editor .card { margin-top: 0 !important; }
.em-editor > div > .card + .card { margin-top: 14px !important; }
.em-editor textarea { width: 100%; font-size: 12.5px; line-height: 1.45; resize: vertical; }
.em-editor .f2 .wide { grid-column: 1 / -1; }
.em-preview { position: sticky; top: 76px; }
.em-preview iframe, .em-side iframe { width: 100%; height: 640px; border-radius: 12px; background: #fff; border: 1px solid var(--glass-line); }
.em-side iframe { height: 480px; }
.em-frame { width: 100%; height: 320px; border-radius: 12px; background: #fff; border: 1px solid var(--glass-line); margin-top: 8px; }
.em-vars { margin-top: 12px; }
.em-vars summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.em-varlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; margin-top: 10px; }
.em-var { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--glass-line); background: rgba(0,0,0,.18); color: var(--text); cursor: pointer; text-align: left; font: inherit; }
[data-theme="light"] .em-var { background: rgba(0,0,0,.03); }
.em-var:hover { border-color: rgba(168,85,247,.45); }
.em-var code { font-family: var(--mono); font-size: 12px; color: var(--violet); }
.em-var span { font-size: 11.5px; color: var(--muted); }
.em-picks { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; max-height: 300px; overflow-y: auto; }
.em-pick { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--glass-line); background: rgba(0,0,0,.18); cursor: pointer; font-size: 13px; }
[data-theme="light"] .em-pick { background: rgba(0,0,0,.03); }
.em-pick input { width: auto; margin: 0; }
.em-pick span { flex: 1; }
.em-est { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 13.5px; }
.em-launch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.em-launch .btn { justify-content: center; }
.em-tl { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 4px 0 0; overflow-x: auto; }
.em-bar { flex: 1 0 14px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.em-bar i { display: block; width: 100%; min-height: 3px; border-radius: 4px 4px 0 0; background: var(--grad-cool); }
.em-bar span { font-size: 10px; color: var(--dim); font-family: var(--mono); }
.em-bridge { margin-top: 14px; }
.em-secret { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.em-secret code { font-family: var(--mono); font-size: 12px; padding: 6px 10px; border-radius: 8px; background: rgba(0,0,0,.25); word-break: break-all; }
[data-theme="light"] .em-secret code { background: rgba(0,0,0,.05); }
@media (max-width: 1100px) { .em-hero { grid-template-columns: repeat(3, 1fr); } .em-editor { grid-template-columns: 1fr; } .em-preview { position: static; } }
@media (max-width: 760px) { .em-hero, .em-grid2 { grid-template-columns: 1fr; } .em-launch { grid-template-columns: 1fr; } }
.em-lists td:first-child { min-width: 260px; }
.em-lists td:nth-child(4) { min-width: 200px; }
#er-rows td:first-child, #em-aud td:first-child { min-width: 240px; word-break: normal; }
.em-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.em-mini div { background: rgba(0,0,0,.25); border-radius: 12px; padding: 8px 10px; }
[data-theme="light"] .em-mini div { background: rgba(0,0,0,.04); }
.em-mini b { display: block; font-family: var(--mono); font-size: 20px; }
.em-mini span { color: var(--muted); font-size: 11.5px; }
.em-mini + .em-mini { margin-top: 8px; }
.em-eq { align-items: stretch; }
.em-eq > .card { display: flex; flex-direction: column; }
.em-eq > .card > .table { flex: 1; }
.em-hero { align-items: stretch; }
.em-tile { display: flex; flex-direction: column; }
.em-tile .s { margin-top: auto; padding-top: 6px; }
.em-hero > .card, .em-eq > .card, .em-cards > .card { margin-top: 0 !important; }
.em-tile.click { cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .2s; }
.em-tile.click:hover { transform: translateY(-3px); border-color: rgba(168,85,247,.45); box-shadow: 0 14px 40px rgba(124,58,237,.18); }
.em-tile.click:active { transform: translateY(-1px); }

/* 2026-10-22 provider find results: Play + Add side by side */
.pick-act { display: flex; gap: 6px; align-items: center; flex: none; }
.cu-tabs { gap: 4px; }
.cu-tab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 13.5px; white-space: nowrap; text-decoration: none; }
.cu-tab svg { width: 15px; height: 15px; } .cu-tab.on { background: var(--grad); color: #fff; } .cu-tab:hover { color: var(--text); }
.cu-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.cu-tile { display: block; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: inherit; }
.cu-tile b { display: block; font-family: var(--mono); font-size: 22px; font-weight: 800; } .cu-tile span { color: var(--muted); font-size: 12px; }
.cu-warn { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13.5px; }
.cu-warn:last-child { border-bottom: 0; } .cu-warn span { flex: 1; } .cu-warn .dot { flex: none; }
.cu-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; margin: 10px 0; align-items: center; }
.cu-kv span { color: var(--muted); } .cu-kv b { font-family: var(--mono); font-weight: 600; }
.cu-srv { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.05); margin: 1px 0; white-space: nowrap; }
.cu-srv.ok { background: rgba(52,211,153,.12); } .cu-srv.warn { background: rgba(251,191,36,.12); } .cu-srv small { color: var(--dim); } .cu-srv b { font-family: var(--mono); }
.cu-srv .dot { width: 7px; height: 7px; }
.cu-toolbar { flex-wrap: wrap; align-items: center; } .cu-toolbar input, .cu-toolbar select { min-width: 140px; } .cu-toolbar input:not([type=checkbox]) { flex: 1 1 160px; max-width: 240px; } .cu-toolbar label.inl input { flex: none; max-width: none; } .cu-toolbar select { flex: 0 1 auto; }
.cu-toolbar .cu-count { margin-left: auto; white-space: nowrap; }
.cu-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; background: rgba(192,38,211,.08); border-bottom: 1px solid var(--glass-line); } .cu-bulk b { margin-right: 6px; }
.cu-t tr.sel td { background: rgba(192,38,211,.07); }
.cu-quick { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 8px 14px; border-bottom: 1px solid var(--glass-line); }
.cu-add { grid-template-columns: 1fr; }
@media (min-width: 1100px) { .cu-add { grid-template-columns: 1.6fr 1fr; align-items: start; } .cols.two { grid-template-columns: 1fr 1fr; } }
.cu-planbox { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.25); font-size: 13.5px; } .cu-planbox ul { margin: 8px 0 0 18px; padding: 0; }
.cu-help { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; color: var(--muted); } .cu-help b { color: var(--text); }
.cu-list { list-style: none; margin: 0; padding: 0; } .cu-list li { display: grid; grid-template-columns: 72px 1fr; gap: 2px 10px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13px; }
.cu-list li span:last-child { grid-column: 2; color: var(--muted); }
.ok-t { color: var(--ok) !important; }
.cu-gamey td:nth-child(2) b { color: var(--cyan); }
.cu-srv-card .tagx { margin-left: auto; }
.cu-warn-card { border-color: rgba(251,191,36,.25); }
.cu-kv input[type=number] { padding: 4px 8px; font-family: var(--mono); }
.cu-kv b { display: flex; align-items: center; gap: 6px; }
.cu-up td:first-child { min-width: 300px; } .cu-up td:nth-child(2) { min-width: 220px; }
.cu-srvs { display: grid; grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); gap: 14px; margin-bottom: 14px; }
.cu-srv-card .cu-kv { grid-template-columns: auto 1fr auto 1fr; }
.cu-ch td:nth-child(2) { min-width: 196px; max-width: 280px; } .cu-ch td:nth-child(5) { min-width: 130px; } .cu-ch td:nth-child(4) { min-width: 140px; max-width: 196px; }
.cu-ch td.mono, .cu-ch td:nth-child(3), .cu-ch td:nth-child(6), .cu-ch td.nowrap, .cu-up td.mono { white-space: nowrap; }
.cu-ch .icon-btn { width: 28px; height: 28px; border-radius: 8px; } .cu-ch td.row-act { padding-left: 4px; }
.cu-ch td, .cu-ch th { padding-left: 5px; padding-right: 5px; } .cu-ch td:nth-child(2) { min-width: 210px; }
.table-card > .cu-toolbar { padding: 12px 14px; margin: 0; border-bottom: 1px solid var(--glass-line); }
.table-card .cu-t th:first-child, .table-card .cu-t td:first-child { padding-left: 14px; }
.table-card .cu-t th:last-child, .table-card .cu-t td:last-child { padding-right: 10px; }
.table-card .cu-t td { padding-top: 12px; padding-bottom: 12px; }
.cu-ch .sub { margin-top: 2px; }
.cu-ch td:nth-child(5) .sub { white-space: normal; max-width: 220px; }
.cu-ch td:nth-child(2) .sub { white-space: normal; }
@media (min-width: 1100px) { .cu-add > .cu-plan { position: sticky; top: 76px; } }

.badge.ls-susp { background: rgba(251,146,60,.16); color: #fb923c; } .badge.ls-open { background: rgba(96,165,250,.1); color: var(--muted); }
[data-theme="light"] .badge.ls-susp { background: rgba(234,88,12,.12); color: #fff; } [data-theme="light"] .badge.ls-open { background: rgba(100,116,139,.18); color: #fff; }
.ls-mode { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 16px; border-color: rgba(251,191,36,.3); } .ls-mode.live { border-color: rgba(52,211,153,.3); } .ls-mode span { flex: 1; font-size: 13.5px; line-height: 1.45; } .ls-mode .dot { flex: none; }
.ls-last { margin: -4px 0 14px; }
.ls-two { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px; margin-bottom: 14px; } .ls-two .card { margin-bottom: 0; } .ls-two .card h2, .ls-head h2 { font-size: 15px; margin: 0 0 10px; }
.ls-score { display: flex; align-items: center; gap: 8px; min-width: 90px; } .ls-score b { font-size: 13px; width: 28px; } .ls-score .meter { flex: 1; min-width: 44px; }
.ls-why { margin: 8px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.5; } .ls-why li { margin: 2px 0; }
.ls-feed { display: flex; flex-direction: column; gap: 2px; } .ls-ev { display: grid; grid-template-columns: 80px auto 1fr; gap: 10px; align-items: start; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 13px; } .ls-ev:last-child { border-bottom: 0; } .ls-ev.bad .sub { color: var(--bad); } .ls-ev .pill { white-space: nowrap; }
.ls-trend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } .ls-bars { display: flex; align-items: flex-end; gap: 3px; height: 48px; margin-top: 6px; } .ls-bars i { flex: 1; background: var(--grad); border-radius: 3px 3px 0 0; opacity: .85; min-width: 4px; } .ls-bars i.bad { background: var(--bad); } .ls-bars i.warn { background: #fb923c; }
.ls-toolbar { flex-wrap: wrap; gap: 8px; } .ls-toolbar .chips { margin: 0; } .ls-toolbar select { max-width: 200px; }
.ls-t td { vertical-align: top; } .ls-row-bad td { background: rgba(251,113,133,.05); } .ls-whycell, .ls-uas, .ls-names { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; } .ls-head-l { min-width: 0; } .ls-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; } .ls-title b { font-size: 20px; letter-spacing: -.01em; } .ls-head .cu-kv { margin: 0; } .ls-head .cu-kv b { font-family: inherit; font-weight: 600; flex-wrap: wrap; }
.ls-actions { display: flex; flex-wrap: wrap; gap: 8px; } .ls-actions .btn { font-size: 12.5px; }
.ls-ips { display: flex; flex-wrap: wrap; gap: 4px; } .chip-sm { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--glass-line); } .chip-sm.bad { border-color: rgba(251,113,133,.5); color: var(--bad); } .chip-sm.muted { opacity: .55; }
.ls-x { cursor: pointer; color: var(--muted); padding: 0 2px; font-weight: 700; } .ls-x:hover { color: var(--bad); } .ls-listwrap { max-height: 220px; overflow: auto; padding: 4px 0; }
.tagx.ls-dc { border-color: rgba(251,113,133,.45); color: var(--bad); } .tagx.ls-res { color: var(--ok); }
.ls-sw { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; } .ls-sw span { display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; } .ls-sw small { font-size: 12px; }
.lbl small { display: block; margin-top: 3px; font-size: 11.5px; } .ls-save { margin: 0 0 16px; } .ls-own { margin: 8px 0; } .ls-own div { margin-top: 6px; word-break: break-all; }
[data-theme="light"] .ls-ev, [data-theme="light"] .chip-sm { border-color: rgba(16,24,40,.1); } [data-theme="light"] .chip-sm { background: rgba(16,24,40,.05); } [data-theme="light"] .ls-row-bad td { background: rgba(220,38,38,.05); }
@media (max-width: 900px) { .ls-head { grid-template-columns: 1fr; } .ls-trend { grid-template-columns: 1fr; } .ls-ev { grid-template-columns: 70px 1fr; } .ls-ev .pill { grid-column: 2; } .ls-ev > span:last-child { grid-column: 1 / -1; } }
#ls-body .lines-t td:first-child { white-space: nowrap; } .ls-now td:nth-child(2) { width: 45%; } .ls-now td, .ls-t td { white-space: nowrap; } .ls-t td.ls-whycell, .ls-t td.ls-uas, .ls-t td.ls-names, .ls-t td.small { white-space: normal; }

/* ticket desk */
.tk-grid > div { min-width: 0; }
.tk-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.tk-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; background: rgba(148,163,184,.14); color: var(--text); border: 1px solid var(--glass-line); white-space: nowrap; }
.tk-tag.t-security { background: rgba(251,146,60,.14); color: #fb923c; } .tk-tag.t-billing { background: rgba(52,211,153,.12); color: var(--ok); } .tk-tag.t-at-risk { background: rgba(251,113,133,.14); color: var(--bad); }
.tk-tag.t-app, .tk-tag.t-setup { background: rgba(96,165,250,.14); color: #60a5fa; } .tk-tag.t-vip { background: rgba(192,132,252,.16); color: #c084fc; } .tk-tag.t-cinema-pro { background: rgba(250,204,21,.14); color: #facc15; }
.tk-tag-x { all: unset; cursor: pointer; opacity: .6; padding: 0 2px; font-size: 13px; line-height: 1; } .tk-tag-x:hover { opacity: 1; }
.tk-tagsel { width: auto; padding: 3px 8px; font-size: 12px; border-radius: 999px; min-width: 0; }
.tk-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 8px; }
.tk-tools select { width: auto; flex: none; min-width: 180px; padding: 8px 10px; font-size: 13px; }
.tk-ai { display: flex; gap: 6px; align-items: center; margin-left: auto; min-width: 0; } .tk-ai input { width: 240px; max-width: 100%; padding: 8px 10px; font-size: 13px; }
.btn.cool { border-color: rgba(124,58,237,.4); color: #c084fc; background: rgba(124,58,237,.1); } .btn.cool:hover { background: rgba(124,58,237,.2); }
.bl-msg.sys { border-left: 3px solid var(--muted); opacity: .85; font-size: 13px; }
.tk-banner { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-color: rgba(251,191,36,.45); font-size: 13.5px; } .tk-banner svg { width: 18px; height: 18px; flex: none; }
.tk-line h2 .mono { font-weight: 600; font-size: 15px; } .tk-line .bl-kv { margin-top: 8px; }
.tk-sec { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--glass-line); } .tk-sec > b.small { display: block; margin-bottom: 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.tk-live { font-size: 13px; margin: 3px 0; }
.tk-warn { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.35); font-size: 13px; } .tk-warn svg { width: 16px; height: 16px; flex: none; color: var(--warn); }
.tk-ls .split { margin-bottom: 6px; } .tk-ls .ls-score { margin: 6px 0; }
.tk-acts { margin-top: 10px; } .tk-acts .btn { font-size: 12px; padding: 7px 10px; }
.tk-ev { list-style: none; margin: 10px 0 0; padding: 0; font-size: 12.5px; } .tk-ev li { padding: 4px 0; border-top: 1px dashed var(--glass-line); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .tk-ev .pill { padding: 2px 8px; font-size: 11.5px; }
.tk-dev { margin-top: 12px; } .tk-dev summary { cursor: pointer; color: var(--muted); display: flex; align-items: center; gap: 6px; } .tk-dev summary svg { width: 14px; height: 14px; }
.tk-devt td { white-space: normal; font-size: 12.5px; vertical-align: top; } .tk-devt .badge { font-size: 10.5px; padding: 1px 7px; }
.tk-t td { font-size: 13px; } .tk-t .r, .tk-devt .r { text-align: right; } .tk-over td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.tk-find { margin-top: 12px; } .tk-find input { flex: 1; min-width: 0; }
.tk-rel { list-style: none; margin: 0; padding: 0; font-size: 13px; } .tk-rel li { padding: 6px 0; border-top: 1px solid var(--glass-line); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .tk-rel li:first-child { border-top: 0; } .tk-rel svg { width: 14px; height: 14px; color: var(--warn); }
.tk-cform { padding: 12px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--glass-line); margin-bottom: 14px; }
.tk-cn { padding: 10px 0; border-top: 1px solid var(--glass-line); } .tk-cn .actions { margin-top: 6px; }
.tk-pre { white-space: pre-wrap; font-family: inherit; font-size: 13px; line-height: 1.45; margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.18); max-height: 180px; overflow: auto; }
[data-theme="light"] .tk-pre { background: rgba(16,24,40,.05); } [data-theme="light"] .tk-tag { background: rgba(16,24,40,.06); } [data-theme="light"] .tk-warn { background: rgba(251,191,36,.14); }
@media (max-width: 1100px) { .tk-ai { margin-left: 0; width: 100%; } .tk-ai input { flex: 1; width: auto; } }

/* ---------- DMCA Safe */
.dm-ph h1 svg { width: 26px; height: 26px; vertical-align: -5px; margin-right: 8px; color: var(--cyan); }
.dm-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.dm-kpi { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 14px; padding: 10px 14px; position: relative; overflow: hidden; }
.dm-kpi::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--grad-cool); opacity: .6; }
.dm-kpi b { display: block; font-family: var(--mono); font-size: 22px; line-height: 1.1; } .dm-kpi span { color: var(--muted); font-size: 11.5px; }
.dm-kpi.bad b { color: var(--bad); } .dm-kpi.bad::after { background: var(--bad); }
.dm-warnbox { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; margin-bottom: 14px; background: rgba(251,113,133,.12); border: 1px solid rgba(251,113,133,.4); }
.dm-warnbox svg { color: var(--bad); width: 24px; height: 24px; }
.dm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; margin-bottom: 14px; }
.dm-rule { overflow: hidden; }
.dm-rule::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-cool); opacity: .9; }
.dm-rule.locked { box-shadow: 0 0 0 1px rgba(34,211,238,.25), 0 10px 40px rgba(34,211,238,.08); }
.dm-rule.locked::before { background: linear-gradient(90deg, #22d3ee, #34d399); }
.dm-rule.window::before { background: linear-gradient(90deg, #fbbf24, #f97316); } .dm-rule.window { box-shadow: 0 0 0 1px rgba(251,191,36,.35); }
.dm-rule.open::before { background: linear-gradient(90deg, #fb7185, #ff2d55); } .dm-rule.open { box-shadow: 0 0 0 1px rgba(251,113,133,.35); }
.dm-rule.paused { opacity: .7; } .dm-rule.paused::before { background: var(--dim); }
.dm-rule.srv-off { box-shadow: 0 0 0 1px rgba(251,113,133,.5); }
.dm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.dm-lockico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(34,211,238,.12); color: var(--cyan); flex: none; }
.dm-lockico svg { width: 22px; height: 22px; }
.dm-rule.locked .dm-lockico { animation: dmpulse 2.6s ease-in-out infinite; }
.dm-rule.window .dm-lockico, .dm-rule.open .dm-lockico { background: rgba(251,191,36,.14); color: var(--warn); }
.dm-rule.open .dm-lockico { background: rgba(251,113,133,.14); color: var(--bad); }
@keyframes dmpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,211,238,.35); } 50% { box-shadow: 0 0 0 8px rgba(34,211,238,0); } }
.dm-title { flex: 1; min-width: 0; } .dm-title b { font-size: 17px; } .dm-title .sub { color: var(--muted); font-size: 12.5px; }
.dm-pin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 10px; } .dm-pin b { color: var(--text); } .dm-pin svg { width: 16px; height: 16px; }
.dm-chips, .dm-tpl { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; align-items: center; }
.dm-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 10px; background: rgba(255,255,255,.06); border: 1px solid var(--glass-line); color: var(--text); }
.dm-chip svg { width: 13px; height: 13px; }
.dm-chip.lg { background: rgba(34,211,238,.12); border-color: rgba(34,211,238,.35); color: var(--cyan); }
.dm-chip.cat { background: rgba(168,85,247,.14); border-color: rgba(168,85,247,.4); }
.dm-chip.w { background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.35); }
.dm-chip.src { background: rgba(96,165,250,.12); border-color: rgba(96,165,250,.35); }
.dm-chip.ex { background: rgba(251,113,133,.1); border-color: rgba(251,113,133,.35); color: var(--bad); }
.dm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.dm-stats div { background: rgba(0,0,0,.25); border-radius: 12px; padding: 8px 10px; }
.dm-stats b { display: block; font-family: var(--mono); font-size: 19px; } .dm-stats span { color: var(--muted); font-size: 11px; }
.dm-stats .ok b { color: var(--ok); } .dm-stats .warn b { color: var(--warn); } .dm-stats .bad b { color: var(--bad); }
.dm-stats.pv { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.dm-jobrow { margin-bottom: 8px; font-size: 13px; color: var(--cyan); } .dm-job { display: inline-flex; align-items: center; gap: 8px; } .spinner.xs { width: 12px; height: 12px; border-width: 2px; }
.dm-act { gap: 6px; flex-wrap: wrap; } .dm-foot { margin-top: 8px; }
.dm-empty { text-align: center; padding: 40px 20px; grid-column: 1 / -1; } .dm-empty svg { width: 48px; height: 48px; color: var(--cyan); margin-bottom: 8px; } .dm-empty p { max-width: 560px; margin: 8px auto 16px; }
.dm-log { display: flex; flex-direction: column; gap: 4px; max-height: 420px; overflow: auto; }
.dm-logrow { display: grid; grid-template-columns: 76px 64px 1fr; gap: 10px; align-items: baseline; font-size: 13px; padding: 5px 8px; border-radius: 8px; }
.dm-logrow:nth-child(odd) { background: rgba(255,255,255,.03); }
.dm-k { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 6px; padding: 2px 6px; background: rgba(255,255,255,.08); text-align: center; }
.dm-k.bad { background: rgba(251,113,133,.18); color: var(--bad); } .dm-k.ok { background: rgba(52,211,153,.16); color: var(--ok); } .dm-k.warn { background: rgba(251,191,36,.16); color: var(--warn); } .dm-k.cyan { background: rgba(34,211,238,.16); color: var(--cyan); }
.dm-lt { color: var(--muted); font-size: 12px; white-space: nowrap; } .dm-lx em { color: var(--muted); font-style: normal; }
.dm-form .dm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0; }
.dm-pick { border: 1px solid var(--glass-line); border-radius: 12px; margin-bottom: 10px; background: rgba(0,0,0,.15); }
.dm-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--glass-line); }
.dm-pick-head input { width: 150px; padding: 5px 8px; font-size: 12.5px; }
.dm-pick-list { max-height: 190px; overflow: auto; padding: 4px; }
.dm-opt { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.dm-opt:hover { background: rgba(255,255,255,.05); } .dm-opt.on { background: rgba(34,211,238,.12); } .dm-opt small { margin-left: auto; color: var(--dim); white-space: nowrap; }
.dm-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px; border: 1px solid var(--glass-line); border-radius: 12px; background: rgba(0,0,0,.15); min-height: 42px; }
.dm-tags input { flex: 1; min-width: 140px; border: 0; background: transparent; padding: 4px; } .dm-tags input:focus { outline: none; }
.dm-tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(52,211,153,.14); border: 1px solid rgba(52,211,153,.35); border-radius: 999px; padding: 3px 8px 3px 10px; font-size: 12.5px; font-weight: 600; }
.dm-tag i { font-style: normal; cursor: pointer; opacity: .7; } .dm-tag i:hover { opacity: 1; color: var(--bad); }
.dm-opts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 8px 0; }
.dm-pv { margin: 10px 0; } .dm-sample { max-height: 300px; overflow: auto; margin-top: 8px; } .dm-sample tr.dim { opacity: .55; } .dm-cats { margin: 4px 0 8px; }
.dm-bars { display: flex; flex-direction: column; gap: 5px; margin: 6px 0 10px; }
.dm-bar { display: grid; grid-template-columns: 170px 1fr 50px; align-items: center; gap: 10px; font-size: 12.5px; }
.dm-bar i { display: block; height: 8px; border-radius: 999px; background: var(--grad-cool); min-width: 3px; } .dm-bar b { font-family: var(--mono); text-align: right; }
.dm-unl { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 10px 0 14px; }
.dm-radio { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--glass-line); border-radius: 12px; cursor: pointer; font-weight: 600; }
.dm-radio:has(input:checked) { border-color: var(--warn); background: rgba(251,191,36,.12); }
.dm-chh { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; } .dm-chh input { flex: 1; min-width: 180px; }
.tagx.dm-tag { padding: 2px 7px; } .st-name .tagx.dm-lock { background: rgba(34,211,238,.14); color: var(--cyan); border-color: rgba(34,211,238,.35); } .st-name .tagx.dm-lock svg { width: 11px; height: 11px; vertical-align: -1px; margin-right: 3px; }
.dm-banner { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; margin: 14px 0; background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.35); } .dm-banner svg { color: var(--cyan); width: 22px; height: 22px; flex: none; } .dm-banner:first-child { margin-top: 0; }
@media (max-width: 900px) { .dm-form .dm-cols { grid-template-columns: 1fr; } .dm-grid { grid-template-columns: 1fr; } .dm-logrow { grid-template-columns: 70px 1fr; } .dm-logrow .dm-lt { display: none; } .dm-bar { grid-template-columns: 110px 1fr 44px; } }

/* ---------- Streams Monitor */
.content.mn-full { max-width: none; padding: 10px 12px calc(14px + var(--safe-bottom)); animation: none; }
.mn-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr) 340px; gap: 12px; height: calc(100vh - 86px - var(--safe-top) - var(--safe-bottom)); min-height: 520px; }
.mn-wrap.no-picker { grid-template-columns: minmax(0, 1fr) 340px; } .mn-wrap.no-picker .mn-picker { display: none; }
.mn-wrap.no-dock { grid-template-columns: 300px minmax(0, 1fr); } .mn-wrap.no-dock .mn-dock { display: none; }
.mn-wrap.no-picker.no-dock { grid-template-columns: minmax(0, 1fr); }
.mn-picker, .mn-dock { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.mn-ph { padding: 10px 10px 8px; border-bottom: 1px solid var(--glass-line); display: flex; flex-direction: column; gap: 8px; }
.mn-tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.mn-tabs button, .mn-dtabs button { background: transparent; border: 1px solid transparent; color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 700; padding: 4px 6px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.mn-tabs button.on, .mn-dtabs button.on { color: var(--text); background: var(--glass-2); border-color: var(--glass-line); }
.mn-tabs button i, .mn-dtabs button i { font-style: normal; font-weight: 800; font-size: 10.5px; color: var(--cyan); margin-left: 3px; }
.mn-ph .search-in input { font-size: 13px; }
.mn-sel { display: flex; gap: 6px; } .mn-sel select { flex: 1; min-width: 0; }
.mn-listw { overflow: auto; flex: 1; min-height: 0; padding: 6px; }
.mn-row { padding: 8px 9px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; margin-bottom: 3px; }
.mn-row:hover { background: var(--glass-2); } .mn-row.ingrid { border-color: rgba(34,211,238,.4); background: rgba(34,211,238,.07); }
.mn-rt { display: flex; align-items: center; gap: 7px; min-width: 0; } .mn-rt b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.mn-cl { font-size: 11px; font-weight: 800; color: var(--ok); background: rgba(52,211,153,.12); border-radius: 6px; padding: 1px 6px; }
.mn-st { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.mn-st.running { background: var(--ok); box-shadow: 0 0 6px rgba(52,211,153,.6); } .mn-st.down { background: var(--bad); } .mn-st.starting { background: var(--warn); } .mn-st.ondemand { background: var(--blue); }
.mn-rs { display: flex; gap: 8px; font-size: 11px; color: var(--muted); margin-top: 2px; flex-wrap: wrap; } .mn-rs .bad { color: var(--bad); }
.mn-rf { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.mn-flag { font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: var(--glass-2); color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-flag.reported { color: var(--warn); background: rgba(251,191,36,.14); } .mn-flag.ai { color: var(--violet); background: rgba(168,85,247,.16); } .mn-flag.loop { color: var(--cyan); background: rgba(34,211,238,.14); }
.mn-flag.errors { color: var(--bad); background: rgba(251,113,133,.14); } .mn-flag.slow { color: var(--warn); background: rgba(251,191,36,.12); }
.mn-flag.waiting { color: #fff; background: var(--red); } .mn-flag.down { color: var(--bad); background: rgba(251,113,133,.12); }
.mn-emptyl { text-align: center; color: var(--muted); padding: 30px 10px; font-size: 13px; } .mn-emptyl svg { width: 26px; height: 26px; color: var(--ok); }
.mn-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; gap: 10px; }
.mn-tb { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mn-pill { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12.5px; font-weight: 600; color: var(--muted); align-items: center; }
.mn-pill span { display: inline-flex; align-items: center; gap: 5px; } .mn-pill svg { width: 14px; height: 14px; } .mn-pill .bad { color: var(--bad); } .mn-pill .warn { color: var(--warn); }
.mn-tbr { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mn-tbr .btn.on { border-color: rgba(34,211,238,.5); color: var(--cyan); }
.mn-gsel { display: inline-flex; border: 1px solid var(--glass-line); border-radius: 9px; overflow: hidden; }
.mn-gsel button { background: transparent; border: 0; color: var(--muted); font: inherit; font-size: 12px; font-weight: 800; padding: 6px 9px; cursor: pointer; } .mn-gsel button.on { background: var(--glass-2); color: var(--text); }
.mn-stage { display: grid; gap: 8px; flex: 1; min-height: 0; grid-auto-rows: 1fr; align-content: start; overflow: auto; }
.mn-stage.mn-g1 { grid-template-columns: minmax(0, 1fr); } .mn-stage.mn-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mn-stage.mn-g6, .mn-stage.mn-g9 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mn-stage.mn-g16 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mn-stage .mn-tile { min-width: 0; min-height: 0; }
.mn-empty { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); pointer-events: none; }
.mn-empty svg { width: 34px; height: 34px; color: var(--dim); } .mn-empty p { margin: 8px 0 0; }
.mn-main { position: relative; } .mn-empty[hidden] { display: none; }
.mn-tile { position: relative; background: #000; border-radius: 12px; overflow: hidden; border: 2px solid transparent; aspect-ratio: 16 / 9; min-height: 0; }
.mn-tile.on { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(34,211,238,.3), 0 0 22px rgba(34,211,238,.18); }
.mn-tile.alert { border-color: var(--warn); }
.mn-tile video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.mn-th { position: absolute; z-index: 2; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: linear-gradient(rgba(0,0,0,.75), rgba(0,0,0,0)); font-size: 12px; color: #fff; opacity: .95; }
.mn-num { font-weight: 800; font-size: 10.5px; background: rgba(255,255,255,.18); border-radius: 5px; padding: 1px 5px; }
.mn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; } .mn-dot.ok { background: var(--ok); } .mn-dot.bad { background: var(--bad); animation: blink 1s infinite; } .mn-dot.wait { background: var(--warn); } .mn-dot.pause { background: var(--blue); }
.mn-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; } .mn-srv { color: rgba(255,255,255,.7); font-size: 11px; white-space: nowrap; }
.mn-ta { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; } .mn-tile:hover .mn-ta, .mn-tile.on .mn-ta { opacity: 1; }
.mn-ta button, .mn-ta a { background: rgba(0,0,0,.45); border: 0; color: #fff; width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.mn-ta button:hover, .mn-ta a:hover { background: rgba(34,211,238,.5); } .mn-ta svg { width: 13px; height: 13px; } .mn-tile.audio .mn-ta [data-ta="audio"] { background: rgba(52,211,153,.6); }
.mn-hud { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; flex-wrap: wrap; padding: 5px 8px; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.75)); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10.5px; color: rgba(255,255,255,.85); }
.mn-hud .warn { color: var(--warn); } .mn-hud .bad { color: var(--bad); }
.mn-msg { position: absolute; z-index: 1; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; text-align: center; padding: 10px; }
.mn-msg.show { display: flex; } .mn-tile.busy .mn-ta { opacity: 1; } .mn-msg-act { display: flex; gap: 6px; margin-top: 8px; } .mn-msg-act .btn { padding: 4px 10px; font-size: 11.5px; } .mn-msg .sub { font-size: 11px; color: rgba(255,255,255,.65); } .mn-msg .big svg { width: 26px; height: 26px; color: var(--warn); }
.mn-msg .spin { width: 22px; height: 22px; border: 2px solid rgba(255,255,255,.25); border-top-color: var(--cyan); border-radius: 50%; animation: spin .8s linear infinite; }
.mn-dh { padding: 12px 12px 0; border-bottom: 1px solid var(--glass-line); } .mn-dhn { display: flex; align-items: center; gap: 8px; } .mn-dhn b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-dtabs { display: flex; gap: 2px; flex-wrap: wrap; margin: 8px -4px 6px; }
.mn-dbody { overflow: auto; flex: 1; min-height: 0; padding: 10px 12px 14px; font-size: 13px; }
.mn-note { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.35); font-size: 12px; margin-bottom: 8px; } .mn-note svg { width: 16px; height: 16px; color: var(--cyan); flex: none; }
.mn-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.mn-k { background: var(--glass-2); border-radius: 10px; padding: 8px 10px; min-width: 0; } .mn-k.w { grid-column: 1 / -1; }
.mn-k b { display: block; font-size: 15px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mn-k b.small { font-size: 12px; white-space: normal; }
.mn-k span { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; margin-top: 2px; }
.mn-k.cyan b { color: var(--cyan); } .mn-k.warn b { color: var(--warn); } .mn-k.bad b { color: var(--bad); }
.mn-sec { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--muted); margin: 14px 0 6px; }
.mn-spark { width: 100%; height: 44px; display: block; background: var(--glass-2); border-radius: 8px; }
.mn-acts { display: flex; flex-wrap: wrap; gap: 6px; } .mn-acts .btn, .mn-acts select { font-size: 12px; }
.mn-log { display: flex; flex-direction: column; gap: 3px; font-size: 12px; } .mn-log > div { padding: 5px 8px; border-radius: 8px; background: var(--glass-2); word-break: break-word; }
.mn-log .t { font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--muted); margin-right: 7px; }
.mn-log .ok { border-left: 3px solid var(--ok); } .mn-log .warn { border-left: 3px solid var(--warn); } .mn-log .err { border-left: 3px solid var(--bad); } .mn-log .info { border-left: 3px solid var(--blue); }
.mn-src { padding: 8px 10px; border-radius: 10px; background: var(--glass-2); margin-bottom: 6px; border: 1px solid transparent; } .mn-src.on { border-color: rgba(52,211,153,.4); }
.mn-srct { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .mn-srct b { font-size: 12px; background: var(--glass); border-radius: 6px; padding: 1px 6px; } .mn-srct .mono { font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.mn-srct .pill { padding: 3px 8px; font-size: 11px; } .mn-srcb { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.mn-dock .mn-srv { padding: 8px 0; border-bottom: 1px solid var(--glass-line); } .mn-dock .mn-srv:last-child { border-bottom: 0; }
.mn-stage.mn-g6 .mn-th .mn-srv, .mn-stage.mn-g9 .mn-th .mn-srv, .mn-stage.mn-g16 .mn-th .mn-srv { display: none; }
.mn-rep textarea { width: 100%; font-size: 13px; } .mn-rr { padding: 8px 10px; border-radius: 10px; background: var(--glass-2); margin-top: 6px; font-size: 12.5px; } .mn-rr.done { opacity: .6; }
.mn-dbody .hint { padding: 20px 4px; }
@media (max-width: 1250px) { .mn-wrap, .mn-wrap.no-picker, .mn-wrap.no-dock { grid-template-columns: 260px minmax(0, 1fr); } .mn-dock { grid-column: 1 / -1; max-height: 42vh; } .mn-wrap { height: auto; } .mn-stage { min-height: 320px; } }
@media (max-width: 800px) { .mn-wrap, .mn-wrap.no-picker, .mn-wrap.no-dock { grid-template-columns: 1fr; } .mn-picker { max-height: 40vh; } .mn-stage.mn-g6, .mn-stage.mn-g9, .mn-stage.mn-g16 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
:root[data-theme="light"] .mn-tile { background: #111; } :root[data-theme="light"] .mn-k b { color: var(--text); }

[data-theme="light"] .dm-stats div, [data-theme="light"] .dm-pick, [data-theme="light"] .dm-tags { background: rgba(16,24,40,.05); } [data-theme="light"] .dm-logrow:nth-child(odd) { background: rgba(16,24,40,.04); }

.gd-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); } .gd-grid .card + .card { margin-top: 0; }
.gd-card { display: flex; flex-direction: column; gap: 10px; } .gd-card .actions { margin-top: auto; } .gd-card p { margin: 0; }
.gd-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .gd-top h2 { margin: 0; font-size: 16px; }
.gd-pill { padding: 3px 10px; font-size: 12px; white-space: nowrap; } .gd-card.gd-off { border-color: rgba(251,113,133,.35); }
.gd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; } .gd-stats div { background: rgba(255,255,255,.04); border-radius: 10px; padding: 7px 10px; }
.gd-stats b { display: block; font-family: var(--mono); font-size: 17px; } .gd-stats span { color: var(--muted); font-size: 11.5px; }
.gd-where { overflow-wrap: anywhere; } .gd-url { max-width: 520px; overflow-wrap: anywhere; } .gd-sel { margin-left: 8px; font-size: 13px; }
[data-theme="light"] .gd-stats div { background: rgba(16,24,40,.05); }

.srv-drm { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(52,211,153,.07); border: 1px solid rgba(52,211,153,.22); font-size: 12.5px; }
.srv-drm.bad { background: rgba(251,113,133,.08); border-color: rgba(251,113,133,.3); } .srv-drm-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-drm .btn.sm { padding: 4px 9px; font-size: 12px; flex: none; } .kv div { padding: 3px 0; }

/* ---- Event Slots (#events) */
.ev-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.ev-st { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.ev-st.is-on { border-color: rgba(52,211,153,.35); box-shadow: inset 0 0 0 1px rgba(52,211,153,.08), 0 10px 30px -18px rgba(52,211,153,.6); }
.ev-st-h { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ev-st-h svg { width: 15px; height: 15px; }
.ev-st-h .sw { margin-left: auto; }
.ev-st-n { font-family: var(--mono); font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.ev-st-n span { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.ev-st-l { color: var(--muted); font-size: 12.5px; }
.ev-bar { height: 5px; border-radius: 99px; background: var(--glass-2); overflow: hidden; }
.ev-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #34d399, #22d3ee); }

.ev-job { border: 1px solid var(--glass-line); background: var(--glass); border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; }
.ev-job-row { display: flex; align-items: center; gap: 12px; }
.ev-job-t { flex: 1; min-width: 0; font-size: 14px; }
.ev-job-s { color: var(--muted); font-size: 12.5px; font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.ev-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--ok); box-shadow: 0 0 0 4px rgba(52,211,153,.15); }
.ev-job.bad .ev-dot { background: var(--bad); box-shadow: 0 0 0 4px rgba(251,113,133,.15); }
.ev-job.run .ev-dot { background: var(--cyan); animation: evPulse 1s ease-in-out infinite; }
.ev-job.bad { border-color: rgba(251,113,133,.35); }
@keyframes evPulse { 50% { box-shadow: 0 0 0 7px rgba(34,211,238,.05); opacity: .6; } }
.ev-log { display: none; margin: 10px 0 2px; max-height: 240px; overflow: auto; white-space: pre-wrap; font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--glass); border-radius: 10px; padding: 10px 12px; }
.ev-job.open .ev-log { display: block; }

.ev-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); margin-bottom: 14px; max-width: 100%; overflow-x: auto; }
.ev-tabs button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.ev-tabs button svg { width: 16px; height: 16px; }
.ev-tabs button:hover { color: var(--text); }
.ev-tabs button.on { background: var(--grad); color: #fff; box-shadow: 0 8px 22px -12px rgba(168,85,247,.9); }

.ev-card { padding: 0; overflow: hidden; }
.ev-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--glass-line); }
.ev-search { display: flex; align-items: center; gap: 8px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 10px; padding: 0 10px; flex: 0 1 300px; }
.ev-search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.ev-search input { border: 0 !important; background: transparent !important; padding: 8px 0 !important; box-shadow: none !important; width: 100%; }
.ev-hint { flex: 1; min-width: 180px; }
.ev-card .table { border: 0; border-radius: 0; margin: 0; }
.ev-t td { vertical-align: middle; padding-top: 11px; padding-bottom: 11px; }
.ev-t tr.ev-off td { opacity: .5; }
.ev-name { font-weight: 700; font-size: 14.5px; }
.ev-note { color: var(--muted); font-size: 12px; margin-top: 4px; max-width: 360px; }
.ev-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.ev-pill { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; border: 1px solid transparent; white-space: nowrap; }
.ev-pill.on { color: var(--ok); background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.25); }
.ev-pill.off { color: var(--muted); background: var(--glass-2); }
.ev-pill.auto { color: var(--violet); background: rgba(168,85,247,.1); border-color: rgba(168,85,247,.25); }
.ev-pill.stable { color: var(--cyan); background: rgba(34,211,238,.08); border-color: rgba(34,211,238,.22); }
.ev-pill.export { color: var(--warn); background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.22); }
.ev-cat, .ev-prov { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.ev-sub { color: var(--muted); font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.ev-live { width: 130px; }
.ev-live-n { white-space: nowrap; font-family: var(--mono); font-size: 13px; margin-bottom: 5px; }
.ev-live-n b { font-size: 15px; } .ev-live-n span { color: var(--muted); }
.ev-act { white-space: nowrap; text-align: right; width: 1%; }
.ev-act .btn { padding: 6px 9px; }
@media (max-width: 1100px) { .ev-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ev-stats { grid-template-columns: 1fr; } .ev-t th:nth-child(4), .ev-t td:nth-child(4) { display: none; } .ev-search { flex: 1 1 100%; } }
.ev-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.ev-set .card + .card { margin-top: 0; }
.ev-sec { max-width: none; }
.ev-sec-h { display: flex; gap: 12px; align-items: flex-start; }
.ev-sec-h > svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--violet); }
.ev-sec-h h3 { margin: 0 0 2px; font-size: 16px; }
.ev-sec-h p { margin: 0; }
.ev-sec .row3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.ev-swcell { display: flex; align-items: flex-end; padding-bottom: 8px; margin: 0; }
.ev-hr { border: 0; border-top: 1px solid var(--glass-line); margin: 2px 0; width: 100%; }
.ev-fmts { display: flex; gap: 6px; flex-wrap: wrap; }
.ev-fmts span { font-family: var(--mono); font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: var(--glass-2); color: var(--muted); }
.ev-savebar { position: sticky; bottom: 12px; margin-top: 14px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 10px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--glass-line); box-shadow: 0 12px 30px -16px rgba(0,0,0,.6); z-index: 2; }
@media (max-width: 1000px) { .ev-set { grid-template-columns: 1fr; } }
/* Event Slots sheets */
.evp-intro { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; } .evp-intro svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.evp-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.evp-t { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.evp-t b { font-family: var(--mono); font-size: 22px; } .evp-t span { color: var(--muted); font-size: 12px; }
.evp-t.hi b { color: var(--violet); } .evp-t.ok b { color: var(--ok); } .evp-t.bad b { color: var(--bad); } .evp-t.warn b { color: var(--warn); }
.evp-r { border: 1px solid var(--glass-line); border-radius: 14px; background: var(--glass); margin-bottom: 10px; overflow: hidden; }
.evp-r > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.evp-r > summary::-webkit-details-marker { display: none; }
.evp-r > summary > svg { width: 16px; height: 16px; margin-left: auto; color: var(--muted); transform: rotate(90deg); transition: transform .2s; flex: none; }
.evp-r[open] > summary > svg { transform: rotate(-90deg); }
.evp-r[open] > summary { border-bottom: 1px solid var(--glass-line); }
.evp-rn { font-weight: 700; font-size: 15px; white-space: nowrap; }
.evp-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); } .evp-meta b { color: var(--text); } .evp-ch { color: var(--violet); font-weight: 700; }
.evp-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--glass-line); }
.evp-r > summary + .evp-row, .evp-r > summary + .evp-warn { border-top: 0; }
.evp-id { font-size: 12px; color: var(--muted); }
.evp-new { font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; } .evp-old { color: var(--muted); font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.k-tidy .evp-new, .k-end .evp-new { color: var(--muted); font-weight: 500; }
.evp-tag { text-align: right; white-space: nowrap; }
.ev-pill.new { color: var(--ok); background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.25); }
.ev-pill.end { color: var(--bad); background: rgba(251,113,133,.08); border-color: rgba(251,113,133,.25); }
.ev-pill.tidy { color: var(--muted); background: var(--glass-2); }
.ev-pill.show { color: var(--ok); background: rgba(52,211,153,.06); border-color: rgba(52,211,153,.2); }
.ev-pill.ren { color: var(--cyan); background: rgba(34,211,238,.08); border-color: rgba(34,211,238,.22); }
.evp-tidy { border-top: 1px solid var(--glass-line); } .evp-tidy > summary { cursor: pointer; padding: 9px 14px; color: var(--muted); font-size: 12.5px; }
.evp-warn { display: flex; gap: 10px; padding: 10px 14px; background: rgba(251,191,36,.06); color: var(--text); font-size: 13px; } .evp-warn svg { width: 16px; height: 16px; color: var(--warn); flex: none; margin-top: 2px; }
.evp-same { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 4px; } .evp-same > .muted { margin-right: 4px; }
.evp-chip { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--glass-line); } .evp-chip b { color: var(--ok); font-family: var(--mono); margin-left: 3px; }
.evp-pick { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; } .evp-cnt { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.evp-provs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.evp-p { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--glass-line); background: var(--glass); cursor: pointer; transition: border-color .15s, background .15s; }
.evp-p input { position: absolute; opacity: 0; pointer-events: none; }
.evp-p:hover { border-color: rgba(168,85,247,.4); }
.evp-p:has(input:checked) { border-color: rgba(168,85,247,.7); background: rgba(168,85,247,.08); }
.evp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); margin-top: 6px; flex: none; } .evp-dot.ok { background: var(--ok); } .evp-dot.bad { background: var(--bad); }
.evp-pn { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; } .evp-pn b { font-size: 14px; }
.evp-use { font-size: 11.5px; color: var(--violet); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evp-ck { width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--glass-line); display: flex; align-items: center; justify-content: center; flex: none; }
.evp-ck svg { width: 13px; height: 13px; opacity: 0; color: #fff; }
.evp-p:has(input:checked) .evp-ck { background: var(--grad); border-color: transparent; } .evp-p:has(input:checked) .evp-ck svg { opacity: 1; }
.evp-run { display: flex; flex-direction: column; gap: 14px; }
.evp-lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.evp-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--glass-line); border-radius: 12px; background: var(--glass); cursor: pointer; }
.evp-opt > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.evp-note { display: flex; gap: 10px; font-size: 13px; color: var(--muted); } .evp-note svg { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 2px; }
#sheet .ev-savebar { bottom: calc(-20px - var(--safe-bottom)); margin: 16px -18px calc(-20px - var(--safe-bottom)); border-radius: 0; border-width: 1px 0 0; box-shadow: 0 -12px 24px -14px rgba(0,0,0,.7); padding: 12px 18px calc(12px + var(--safe-bottom)); }
.ev-savebar .btn { white-space: nowrap; flex: none; } .ev-savebar > .muted { flex: 1; min-width: 0; }
@media (max-width: 760px) { .evp-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } .evp-row { grid-template-columns: 52px minmax(0, 1fr); } .evp-tag { grid-column: 2; text-align: left; } }
