/* Solo Shield - black & white */
:root {
  --bg: #000000;
  --bg2: #080808;
  --panel: #0e0e0e;
  --panel2: #151515;
  --panel3: #1c1c1c;
  --line: #1f1f1f;
  --line2: #2b2b2b;
  --line3: #3a3a3a;
  --text: #f4f4f4;
  --text2: #d4d4d4;
  --muted: #9a9a9a;
  --faint: #616161;
  --white: #ffffff;
  --g1: #ffffff;
  --g2: #c8c8c8;
  --g3: #969696;
  --g4: #6a6a6a;
  --g5: #444444;
  --g6: #2a2a2a;
  --soft: rgba(255, 255, 255, .06);
  --soft2: rgba(255, 255, 255, .1);
  --red: #e5484d;
  --red-soft: rgba(229, 72, 77, .12);
  --radius: 14px;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(900px 500px at 70% -10%, rgba(255, 255, 255, .05), transparent 70%);
}
#app, #modal-root, #toasts { position: relative; z-index: 1; }
a { color: var(--text); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #fff; color: #000; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 10px; border: 2px solid var(--bg); }

.boot { min-height: 100vh; display: grid; place-items: center; }
.boot img { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.94); } }

/* ---------------- layout */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--bg2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 16px 12px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; }
.brand img { width: 32px; height: 32px; }
.brand b { display: block; font-size: 15.5px; letter-spacing: .2px; }
.brand small { color: var(--muted); font-size: 11.5px; }
.nav-label { color: var(--faint); font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 14px 10px 6px; }
.nav a, .nav button.srv {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 1px 0; width: 100%;
  border-radius: 9px; color: var(--muted); font-weight: 500; transition: .15s; background: none; border: 0; cursor: pointer; text-align: left;
}
.nav a svg, .nav button.srv svg { width: 17px; height: 17px; flex: none; }
.nav a:hover, .nav button.srv:hover { background: var(--panel); color: var(--text); }
.nav a.on { background: var(--panel2); color: var(--white); box-shadow: inset 2px 0 0 var(--white); }
.nav button.srv { color: var(--text2); font-weight: 600; }
.nav button.srv .chev { margin-left: auto; transition: transform .15s; width: 14px; height: 14px; }
.nav button.srv.open .chev { transform: rotate(90deg); }
.nav .sub { margin: 2px 0 6px 10px; padding-left: 8px; border-left: 1px solid var(--line2); }
.nav .sub a { padding: 6px 10px; font-size: 13px; }
.nav .tag { margin-left: auto; font-size: 10px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--line3); color: var(--muted); }
.side-foot { margin-top: auto; padding-top: 14px; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; }
.me:hover { border-color: var(--line2); }
.me .who { min-width: 0; }
.me .who b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .who small { color: var(--muted); font-size: 11.5px; }

.main { min-width: 0; }
.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px;
  padding: 12px 28px; background: rgba(0, 0, 0, .8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.top .grow { flex: 1; }
.menu-btn { display: none !important; }
.content { padding: 24px 28px 60px; max-width: 1600px; }
.page-h { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-h .ph-ic { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel); display: grid; place-items: center; }
.page-h .ph-ic svg { width: 20px; height: 20px; }
.page-h h1 { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -.3px; }
.page-h p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.page-h .grow { flex: 1; }
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 10px 28px; background: var(--panel2); border-bottom: 1px solid var(--line2); color: var(--text2); font-size: 13px; }
.demo-bar b { color: var(--white); }

.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 30px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line2); background: var(--panel); color: var(--muted); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g5); flex: none; }
.dot.on { background: var(--white); box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); }
.dot.off { background: var(--g5); }

/* ---------------- cards */
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: 1.6fr 1fr; }
.g2e { grid-template-columns: 1fr 1fr; }
.g211 { grid-template-columns: 2fr 1fr 1fr; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-h h3 { margin: 0; font-size: 14.5px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card-h h3 svg { width: 17px; height: 17px; }
.card-h .grow { flex: 1; }
.card-h small { color: var(--muted); }
.card-b { padding: 16px 18px; }
.card-b.flush { padding: 0; }
.mt { margin-top: 14px; }

.kpi { padding: 16px 18px; position: relative; overflow: hidden; border-left: 2px solid var(--line3); }
.kpi .lbl { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.kpi .lbl svg { width: 15px; height: 15px; }
.kpi .v { font-size: 30px; font-weight: 800; margin-top: 10px; letter-spacing: -.8px; }
.kpi .v small { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.kpi.k1 { border-left-color: var(--g1); }
.kpi.k2 { border-left-color: var(--g2); }
.kpi.k3 { border-left-color: var(--g3); }
.kpi.k4 { border-left-color: var(--g4); }
.info { padding: 16px 18px; }
.info .lbl { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.info .lbl svg { width: 15px; height: 15px; }
.info .row2 { display: flex; align-items: center; gap: 10px; margin-top: 14px; min-height: 30px; }
.info .row2 b { font-size: 17px; }
.info .mono-v { font-family: var(--mono); font-size: 15px; letter-spacing: .5px; }
.info .bar { height: 5px; border-radius: 5px; background: var(--panel3); overflow: hidden; margin-top: 10px; }
.info .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--g3), var(--white)); }

/* ---------------- table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .7px; color: var(--faint); padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr:hover { background: rgba(255, 255, 255, .02); }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.nowrap { white-space: nowrap; }
.ellip { max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { padding: 40px 18px; text-align: center; color: var(--muted); }
.empty svg { width: 36px; height: 36px; color: var(--faint); display: block; margin: 0 auto 10px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 650; background: var(--panel2); color: var(--text2); border: 1px solid var(--line2); white-space: nowrap; }
.badge.w { background: var(--white); color: #000; border-color: var(--white); }
.badge.l { background: var(--soft2); color: var(--white); border-color: var(--line3); }
.badge.d { background: transparent; color: var(--faint); border-color: var(--line2); }
.badge.red { background: var(--red-soft); color: var(--red); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }

.trust { display: inline-flex; align-items: center; gap: 9px; min-width: 110px; }
.trust .bar { flex: 1; height: 5px; border-radius: 6px; background: var(--panel3); overflow: hidden; min-width: 50px; }
.trust .bar i { display: block; height: 100%; border-radius: 6px; }
.trust b { font-size: 12.5px; width: 36px; text-align: right; }

.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-size: 12.5px; flex: none; color: #000; background: var(--g2); }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.avatar.s1 { background: #ffffff; } .avatar.s2 { background: #d0d0d0; } .avatar.s3 { background: #a8a8a8; }
.avatar.s4 { background: #7c7c7c; color: #fff; } .avatar.s5 { background: #555; color: #fff; } .avatar.s6 { background: #333; color: #fff; border: 1px solid var(--line3); }
.pname { display: flex; align-items: center; gap: 11px; }
.pname b { font-weight: 600; }
.pname small { display: block; color: var(--faint); font-size: 11.5px; font-family: var(--mono); }

/* ---------------- controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text);
  font-weight: 600; font-size: 13px; cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn:hover { border-color: var(--line3); background: var(--panel3); }
.btn svg { width: 16px; height: 16px; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.icon { width: 32px; padding: 0; height: 32px; }
.btn.primary { background: var(--white); border-color: var(--white); color: #000; }
.btn.primary:hover { background: #dcdcdc; }
.btn.danger { background: var(--red-soft); color: var(--red); border-color: rgba(229, 72, 77, .25); }
.btn.danger:hover { background: rgba(229, 72, 77, .2); }
.btn.solid-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--panel2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }

.input, select.input, textarea.input {
  height: 38px; padding: 0 12px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line2);
  outline: none; transition: .15s; min-width: 0;
}
select.input { padding-right: 28px; }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; min-height: 80px; }
.input:focus { border-color: var(--g3); box-shadow: 0 0 0 3px var(--soft); }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); }
.search .input { padding-left: 36px; width: 300px; }
.search.wide { flex: 1; }
.search.wide .input { width: 100%; }
label.f { display: block; margin-bottom: 14px; }
label.f > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
label.f .input { width: 100%; }
.hint { color: var(--faint); font-size: 12px; margin-top: 5px; }

.tabs { display: inline-flex; gap: 3px; padding: 3px; background: var(--bg2); border: 1px solid var(--line); border-radius: 11px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 12.5px; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; }
.tabs button .n { color: var(--faint); font-weight: 500; }
.tabs button.on { background: var(--panel3); color: var(--white); }
.tabs button.on .n { color: var(--muted); }

.check { display: flex; align-items: flex-start; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--bg2); }
.check:hover { border-color: var(--line2); }
.check input { margin-top: 3px; accent-color: #fff; }
.check b { display: block; font-size: 13px; }
.check small { color: var(--muted); font-size: 12px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checks.c3 { grid-template-columns: 1fr 1fr 1fr; }

.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 22px; background: var(--panel3); border: 1px solid var(--line3); transition: .15s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--g4); transition: .15s; }
.switch input:checked + span { background: var(--white); border-color: var(--white); }
.switch input:checked + span::after { left: 19px; background: #000; }
.switch input:disabled + span { opacity: .5; cursor: not-allowed; }

.pager { display: flex; align-items: center; gap: 8px; padding: 12px 16px; color: var(--muted); font-size: 13px; }
.pager.top { padding: 0; }

/* ---------------- charts */
.chart { width: 100%; height: 260px; display: block; }
.chart text { fill: var(--faint); font-size: 10.5px; font-family: Inter, sans-serif; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); justify-content: center; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.donut { position: relative; width: 150px; height: 150px; }
.donut svg { width: 150px; height: 150px; transform: rotate(-90deg); }
.donut .c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut .c b { font-size: 26px; display: block; line-height: 1; }
.donut .c small { color: var(--muted); font-size: 11px; }
.dlist { width: 100%; list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.dlist li { display: flex; align-items: center; gap: 9px; padding: 4px 0; }
.dlist i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dlist span { flex: 1; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlist b { color: var(--muted); font-weight: 600; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.feed li:last-child { border-bottom: 0; }
.feed .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--panel3); }
.feed .ico svg { width: 15px; height: 15px; }
.feed .body { min-width: 0; flex: 1; }
.feed .body .d { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .when { color: var(--faint); font-size: 12px; white-space: nowrap; }

/* ---------------- player cards */
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; transition: .15s; position: relative; }
.pcard:hover { border-color: var(--line3); transform: translateY(-1px); }
.pcard .top1 { display: flex; align-items: center; gap: 11px; }
.pcard .top1 b { display: block; font-size: 14.5px; }
.pcard .top1 small { color: var(--faint); font-size: 12px; }
.pcard .ping { margin-left: auto; align-self: flex-start; font-size: 11.5px; color: var(--muted); display: flex; gap: 4px; align-items: center; }
.pcard .ping svg { width: 13px; height: 13px; }
.pcard .lic { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin: 12px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter { margin-bottom: 11px; }
.meter .mh { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.meter .mh b { color: var(--text); }
.meter .mt2 { height: 4px; border-radius: 4px; background: var(--panel3); overflow: hidden; }
.meter .mt2 i { display: block; height: 100%; border-radius: 4px; background: var(--white); }
.meter.arm .mt2 i { background: var(--g3); }
.meter.low .mt2 i { background: var(--red); }
.pcard .foot { display: flex; align-items: center; gap: 10px; padding-top: 11px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.pcard .foot .st { display: flex; align-items: center; gap: 5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.pcard .foot .st svg { width: 13px; height: 13px; }
.pcard .foot .st.dead { color: var(--red); }
.pcard .foot .w { border: 1px solid var(--line2); border-radius: 6px; padding: 1px 6px; display: flex; gap: 4px; align-items: center; }
.pcard .foot svg { width: 12px; height: 12px; }
.pcard .flags { position: absolute; top: 14px; right: 60px; display: flex; gap: 4px; }
.pcard .acts { display: none; position: absolute; right: 12px; bottom: 44px; gap: 5px; }
.pcard:hover .acts { display: flex; }

/* ---------------- multi stream */
.ms { display: grid; grid-template-columns: 1fr 270px; min-height: calc(100vh - 57px); }
.ms.collapsed { grid-template-columns: 1fr 0; }
.ms.collapsed .ms-side { display: none; }
.ms-main { padding: 14px; display: flex; flex-direction: column; min-width: 0; }
.ms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; align-content: start; flex: 1; }
.ms-tile { position: relative; aspect-ratio: 16 / 9; background: #050505; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.ms-tile img, .ms-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ms-tile .nm { position: absolute; top: 8px; left: 8px; z-index: 2; background: rgba(0, 0, 0, .75); border: 1px solid var(--line3); padding: 2px 9px; border-radius: 7px; font-size: 12px; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.ms-tile .nm svg { width: 12px; height: 12px; }
.ms-tile .tb { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; flex-direction: column; gap: 5px; }
.ms-tile .tb button { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line3); background: rgba(0, 0, 0, .7); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ms-tile .tb button:hover { background: #fff; color: #000; }
.ms-tile .tb button.rec { background: var(--red); border-color: var(--red); }
.ms-tile .tb svg { width: 14px; height: 14px; }
.ms-tile .msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 12.5px; text-align: center; padding: 20px; }
.ms-tile .fps { position: absolute; bottom: 7px; left: 8px; z-index: 2; font-size: 10.5px; color: #ddd; background: rgba(0, 0, 0, .6); padding: 0 6px; border-radius: 5px; }
.ms-foot { display: flex; align-items: center; gap: 10px; padding: 10px 2px 0; margin-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.ms-side { border-left: 1px solid var(--line); background: var(--bg2); padding: 12px; overflow-y: auto; max-height: calc(100vh - 57px); position: sticky; top: 57px; }
.ms-side .input { width: 100%; margin-bottom: 10px; }
.ms-p { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 11px; margin-bottom: 5px; border-radius: 9px; border: 1px solid transparent; background: transparent; cursor: pointer; text-align: left; font-weight: 600; font-size: 13px; color: var(--text2); }
.ms-p:hover { background: var(--panel); }
.ms-p.on { border-color: var(--line3); background: var(--panel2); color: #fff; }
.ms-p .dd { margin-left: auto; font-size: 10.5px; color: var(--red); font-weight: 700; }
.ms-p.dead { color: var(--red); }
.fullscreen-tile { position: fixed !important; inset: 0; z-index: 70; border-radius: 0 !important; aspect-ratio: auto !important; }
.fullscreen-tile img, .fullscreen-tile video { object-fit: contain !important; }

/* ---------------- ban cards */
.bcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.bcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: .15s; }
.bcard:hover { border-color: var(--line3); }
.bcard .ev { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(180deg, #0c0c0c, #050505); display: grid; place-items: center; color: var(--faint); font-size: 12.5px; text-align: center; }
.bcard .ev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bcard .ev svg { width: 26px; height: 26px; display: block; margin: 0 auto 8px; }
.bcard .ev .nm { position: absolute; top: 9px; left: 9px; background: rgba(0, 0, 0, .78); border: 1px solid var(--line3); padding: 1px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; color: #fff; z-index: 1; }
.bcard .ev .dt { position: absolute; bottom: 8px; left: 9px; font-size: 11px; color: #ddd; z-index: 1; text-shadow: 0 1px 3px #000; }
.bcard .ev .stt { position: absolute; bottom: 7px; right: 9px; z-index: 1; }
.bcard .bb { padding: 12px 14px; display: flex; align-items: flex-end; gap: 8px; }
.bcard .bb b { display: block; font-size: 14px; }
.bcard .bb small { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.bcard .bb .rem { margin-left: auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; }

/* ---------------- model cards */
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.mcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mcard.blocked { border-color: rgba(229, 72, 77, .5); }
.mcard .mi { aspect-ratio: 16 / 10; background: radial-gradient(circle at 50% 60%, #1a1a1a, #070707 70%); display: grid; place-items: center; position: relative; color: var(--g5); }
.mcard .mi img { max-width: 92%; max-height: 92%; object-fit: contain; }
.mcard .mi svg { width: 42px; height: 42px; }
.mcard .mi .bl { position: absolute; top: 8px; right: 8px; }
.mcard .mb { padding: 10px 12px 12px; }
.mcard .mb .cat { font-size: 11px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.mcard .mb .nmm { font-family: var(--mono); font-weight: 700; font-size: 13px; margin: 6px 0 2px; display: flex; align-items: center; gap: 6px; }
.mcard .mb .lbl2 { font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard .mb .hash { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); border-top: 1px solid var(--line); margin-top: 9px; padding-top: 8px; font-family: var(--mono); }
.mcard .mb .row { margin-top: 9px; }
.copy { cursor: pointer; color: var(--faint); background: none; border: 0; padding: 0; display: inline-flex; }
.copy:hover { color: #fff; }
.copy svg { width: 13px; height: 13px; }

/* ---------------- configuration */
.cfg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; align-items: start; }
.cfg-row { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.cfg-row:last-child { border-bottom: 0; }
.cfg-row .nm { flex: 1; min-width: 0; }
.cfg-row .nm b { font-size: 13px; font-weight: 600; display: block; }
.cfg-row .nm small { color: var(--faint); font-size: 11.5px; display: block; }
.cfg-row select.input { height: 32px; font-size: 12.5px; width: 104px; }
.cfg-row.off .nm b { color: var(--muted); }
.wh-row { display: grid; grid-template-columns: 220px 1fr; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.wh-row:last-child { border-bottom: 0; }
.wh-row b { font-size: 13px; }
.wh-row small { display: block; color: var(--faint); font-size: 11.5px; font-weight: 400; }

/* ---------------- profile */
.hero { display: flex; gap: 18px; align-items: center; padding: 22px; flex-wrap: wrap; }
.hero h2 { margin: 0; font-size: 22px; }
.hero .meta { color: var(--muted); font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; align-items: center; }
.ring { position: relative; width: 92px; height: 92px; flex: none; }
.ring svg { width: 92px; height: 92px; transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; font-weight: 750; }
.ring small { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl { position: relative; padding: 0 0 18px; }
.tl::before { content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 4px var(--panel); }
.tl.revoked::before { background: var(--g5); }
.tl .h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tl p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

/* ---------------- viewer (single live) */
.viewer { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
.viewer .frame { background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; display: grid; place-items: center; position: relative; color: var(--faint); border: 1px solid var(--line2); }
.viewer .frame img, .viewer .frame video { width: 100%; height: 100%; object-fit: contain; }
.livebadge { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #000; font-size: 10.5px; font-weight: 800; letter-spacing: .8px; padding: 2px 8px; border-radius: 6px; }
.livebadge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse 1s infinite; }
.viewer .frame .livebadge { position: absolute; top: 12px; left: 12px; z-index: 1; }

/* ---------------- landing / home */
.land { min-height: 100vh; display: flex; flex-direction: column; }
.land-nav { display: flex; align-items: center; gap: 12px; padding: 18px 36px; border-bottom: 1px solid var(--line); }
.land-hero { flex: 1; display: grid; place-items: center; text-align: center; padding: 60px 24px; position: relative; overflow: hidden; }
.land-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(circle at 50% 40%, #000, transparent 65%); opacity: .7; }
.land-hero > div { position: relative; max-width: 820px; }
.land-hero h1 { font-size: 56px; line-height: 1.04; letter-spacing: -2px; margin: 0 0 18px; }
.land-hero h1 span { background: linear-gradient(180deg, #fff, #7a7a7a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.land-hero p { color: var(--muted); font-size: 17px; max-width: 600px; margin: 0 auto 28px; }
.land-hero .row { justify-content: center; }
.land-hero .btn { height: 44px; padding: 0 22px; font-size: 14px; }
.feat4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 46px; text-align: left; }
.feat4 div { padding: 16px; border: 1px solid var(--line2); border-radius: 12px; background: rgba(14, 14, 14, .85); }
.feat4 svg { width: 20px; height: 20px; margin-bottom: 10px; }
.feat4 b { display: block; font-size: 13.5px; }
.feat4 small { color: var(--muted); }
.nosub { max-width: 760px; margin: 30px auto; text-align: center; }
.nosub .big-ic { width: 64px; height: 64px; border-radius: 18px; border: 1px solid var(--line2); background: var(--panel); display: grid; place-items: center; margin: 0 auto 18px; }
.nosub .big-ic svg { width: 30px; height: 30px; }
.nosub h2 { font-size: 28px; margin: 0 0 8px; letter-spacing: -.5px; }
.nosub > p { color: var(--muted); margin: 0 0 26px; }
.redeem-box { display: flex; gap: 8px; max-width: 520px; margin: 0 auto; }
.redeem-box .input { flex: 1; font-family: var(--mono); letter-spacing: 1px; text-transform: uppercase; height: 44px; }
.redeem-box .btn { height: 44px; }

.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-box { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line2); border-radius: 18px; padding: 28px; }
.auth-box .brand { padding: 0 0 18px; }
.auth-box h1 { font-size: 22px; margin: 0 0 6px; }
.auth-box > p { color: var(--muted); margin: 0 0 22px; }
.auth-box .btn.full { width: 100%; height: 42px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; margin: 18px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line2); }
.code-big { font-family: var(--mono); font-size: 24px; letter-spacing: 3px; text-align: center; padding: 16px; border-radius: 12px; background: var(--bg2); border: 1px dashed var(--line3); margin: 12px 0; user-select: all; }
.err-box { background: var(--red-soft); color: #ff9a9d; padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; }
.note { background: var(--panel2); border: 1px solid var(--line2); color: var(--text2); padding: 11px 13px; border-radius: 10px; font-size: 13px; }
.keylist { font-family: var(--mono); font-size: 13px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 12px; max-height: 300px; overflow: auto; white-space: pre; user-select: all; }

/* ---------------- modal / toast */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .78); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); animation: pop .18s; }
.modal.wide { max-width: 1100px; }
.modal.mid { max-width: 680px; }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-h h3 { margin: 0; font-size: 16px; flex: 1; display: flex; align-items: center; gap: 8px; }
.modal-b { padding: 18px; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.toast { min-width: 260px; max-width: 380px; padding: 12px 14px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line3); box-shadow: 0 14px 40px rgba(0, 0, 0, .6); font-size: 13.5px; animation: pop .2s; border-left: 3px solid #fff; }
.toast.err { border-left-color: var(--red); }

/* ---------------- responsive */
@media (max-width: 1250px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g2, .g211 { grid-template-columns: 1fr; } .viewer { grid-template-columns: 1fr; } .feat4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; left: 0; width: 262px; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 30px 0 80px rgba(0, 0, 0, .7); }
  .menu-btn { display: inline-flex !important; }
  .g3, .g2e { grid-template-columns: 1fr; }
  .content { padding: 18px 16px 50px; }
  .top, .demo-bar, .land-nav { padding-left: 16px; padding-right: 16px; }
  .search .input { width: 100%; }
  .search { flex: 1; }
  .checks, .checks.c3 { grid-template-columns: 1fr; }
  .ms { grid-template-columns: 1fr; }
  .ms-side { position: static; max-height: 320px; border-left: 0; border-top: 1px solid var(--line); order: -1; }
  .wh-row { grid-template-columns: 1fr; gap: 6px; }
  .land-hero h1 { font-size: 38px; }
  .cfg-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .g4, .feat4 { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; } .redeem-box { flex-direction: column; } }
