/* ===== Neobrutalism tokens ===== */
:root {
  --bg: #fff4d6;
  --bg-dot: #e9d9a8;
  --surface: #ffffff;
  --surface-2: #fffaf0;
  --ink: #111111;
  --text: #111111;
  --muted: #5b5648;
  --on-accent: #111111;

  --yellow: #ffd43b;
  --pink: #ff8fc7;
  --blue: #7ab8ff;
  --lime: #b8f35b;
  --orange: #ffa552;
  --purple: #b79cff;
  --red: #ff6b6b;
  --cyan: #6fe3e3;
  --gray: #d9d4c7;

  --bw: 3px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --radius: 6px;

  --font: "Space Grotesk", system-ui, sans-serif;
  --font-display: "Archivo Black", "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17161b; --bg-dot: #2a2830; --surface: #222128; --surface-2: #2b2a32;
    --ink: #f3efe2; --text: #f3efe2; --muted: #b3ad9c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17161b; --bg-dot: #2a2830; --surface: #222128; --surface-2: #2b2a32;
  --ink: #f3efe2; --text: #f3efe2; --muted: #b3ad9c; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(var(--bg-dot) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.45;
}
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h1 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.5px; text-transform: uppercase; }
h3 { font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
a { color: inherit; }
code, .mono { font-family: var(--font-mono); }
code { background: var(--surface-2); border: 2px solid var(--ink); padding: 0 4px; border-radius: 4px; font-size: 0.88em; }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.break { word-break: break-all; }
.row { display: flex; align-items: center; flex-wrap: wrap; }
.gap { gap: 10px; }
.grow { flex: 1 1 200px; }

/* ===== Primitives ===== */
.card {
  background: var(--surface);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }

.btn {
  font: 700 14px/1 var(--font);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--on-accent);
  background: var(--surface);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 11px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform .08s ease, box-shadow .08s ease;
  white-space: nowrap;
}
.btn:not(.btn-yellow):not(.btn-pink):not(.btn-red):not(.btn-lime):not(.btn-blue):not(.btn-purple):not(.btn-orange) { color: var(--text); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-sm { padding: 7px 11px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-ghost:hover { box-shadow: var(--shadow-sm); background: var(--surface); }
.btn-yellow { background: var(--yellow); }
.btn-pink { background: var(--pink); }
.btn-red { background: var(--red); }
.btn-lime { background: var(--lime); }
.btn-blue { background: var(--blue); }
.btn-purple { background: var(--purple); }
.btn-orange { background: var(--orange); }

.input, .field input, .field select, .field textarea {
  font: 500 14px var(--font);
  color: var(--text);
  background: var(--surface);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  padding: 9px 11px;
  min-width: 0;
  outline: none;
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { box-shadow: var(--shadow-sm); background: var(--surface-2); }
select.input { cursor: pointer; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; }
.field small { color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { background: var(--red); color: #111; border: var(--bw) solid var(--ink); padding: 8px 10px; border-radius: var(--radius); font-weight: 600; }

.tag {
  display: inline-block;
  font: 700 11px/1 var(--font-mono);
  text-transform: uppercase;
  padding: 4px 7px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--gray);
  color: #111;
  white-space: nowrap;
}
.tag-yellow { background: var(--yellow); } .tag-pink { background: var(--pink); }
.tag-red { background: var(--red); } .tag-lime { background: var(--lime); }
.tag-blue { background: var(--blue); } .tag-purple { background: var(--purple); }
.tag-orange { background: var(--orange); } .tag-cyan { background: var(--cyan); }
.tag-off { background: transparent; color: var(--muted); border-style: dashed; }

/* Toggle switch */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: var(--bw) solid var(--ink); border-radius: var(--radius); margin-bottom: 10px; background: var(--surface-2); cursor: pointer; }
.switch b { display: block; font-size: 14px; }
.switch small { color: var(--muted); }
.switch input { appearance: none; flex: none; width: 50px; height: 28px; border: var(--bw) solid var(--ink); border-radius: 30px; background: var(--gray); position: relative; cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #111; transition: left .15s; }
.switch input:checked { background: var(--lime); }
.switch input:checked::after { left: 24px; }

/* Segmented control */
.seg { display: flex; border: var(--bw) solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.seg label { flex: 1; text-align: center; cursor: pointer; }
.seg input { display: none; }
.seg span { display: block; padding: 8px 6px; font-weight: 700; font-size: 13px; text-transform: uppercase; border-right: var(--bw) solid var(--ink); }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--yellow); color: #111; }

/* ===== Logo / top bar ===== */
.logo { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.3px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo.big { font-size: 30px; }
.logo-mark { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; background: var(--yellow); color: #111; border: var(--bw) solid var(--ink); box-shadow: var(--shadow-sm); transform: rotate(-6deg); border-radius: 4px; }
.slash { color: var(--pink); -webkit-text-stroke: 1px var(--ink); }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 12px 24px;
  background: var(--surface);
  border-bottom: var(--bw) solid var(--ink);
}
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { font: 700 14px var(--font); text-transform: uppercase; color: var(--text); background: transparent; border: var(--bw) solid transparent; border-radius: var(--radius); padding: 8px 14px; cursor: pointer; }
.tab:hover { border-color: var(--ink); }
.tab.active { background: var(--pink); color: #111; border-color: var(--ink); box-shadow: var(--shadow-sm); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.live-dot { font: 700 11px var(--font-mono); padding: 5px 8px 5px 22px; border: 2px solid var(--ink); border-radius: 30px; position: relative; background: var(--gray); color: #111; }
.live-dot::before { content: ""; position: absolute; left: 7px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #777; border: 1.5px solid #111; }
.live-dot.on { background: var(--lime); }
.live-dot.on::before { background: #e8192c; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }

.container { max-width: 1400px; margin: 0 auto; padding: 26px 24px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }

/* ===== Login ===== */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: min(420px, 100%); padding: 28px; box-shadow: var(--shadow-lg); }
.login-card .logo { margin-bottom: 6px; }
.login-card .muted { margin: 0 0 22px; }

/* ===== Dashboard ===== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 22px; }
.stat { padding: 16px 18px; }
.stat .label { font: 700 12px var(--font-mono); text-transform: uppercase; letter-spacing: .5px; }
.stat .value { font-family: var(--font-display); font-size: 34px; line-height: 1.1; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 13px; font-weight: 600; }
.stat.c-yellow { background: var(--yellow); color: #111; } .stat.c-pink { background: var(--pink); color: #111; }
.stat.c-blue { background: var(--blue); color: #111; } .stat.c-lime { background: var(--lime); color: #111; }
.stat.c-orange { background: var(--orange); color: #111; }

.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.span-2 { grid-column: span 2; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 180px; border-bottom: var(--bw) solid var(--ink); border-left: var(--bw) solid var(--ink); padding: 0 4px; }
.bar { flex: 1; display: flex; flex-direction: column-reverse; min-width: 3px; height: 100%; position: relative; }
.bar i { display: block; background: var(--blue); border: 2px solid var(--ink); border-bottom: 0; }
.bar i.err { background: var(--red); }
.bar:hover i { filter: brightness(1.1); }
.bar:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); font: 600 11px var(--font-mono); padding: 4px 6px; border-radius: 4px; white-space: nowrap; z-index: 2; pointer-events: none; }
.legend { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.sw { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--ink); margin-right: 5px; vertical-align: -1px; }
.sw-blue { background: var(--blue); } .sw-red { background: var(--red); }

.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: 46px 1fr 60px; align-items: center; gap: 8px; font: 700 13px var(--font-mono); }
.hbar .track { height: 22px; border: var(--bw) solid var(--ink); border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.hbar .fill { height: 100%; border-right: var(--bw) solid var(--ink); }
.hbar .n { text-align: right; }

.rank-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; counter-reset: rank; }
.rank-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; counter-increment: rank; }
.rank-list li::before { content: counter(rank); flex: none; display: grid; place-items: center; width: 24px; height: 24px; font: 700 12px var(--font-mono); background: var(--yellow); color: #111; border: 2px solid var(--ink); border-radius: 4px; }
.rank-list .h { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: 13px; }
.rank-list .c { font-weight: 700; font-family: var(--font-mono); font-size: 13px; }

.err-row { display: grid; grid-template-columns: 80px 70px 1fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 2px dashed var(--ink); cursor: pointer; font-size: 13px; }
.err-row:last-child { border-bottom: 0; }
.err-row .u { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); }
.err-row .e { grid-column: 1 / -1; color: var(--muted); font-size: 12px; margin-top: -4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Proxies ===== */
.proxy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.proxy-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.proxy-card .pc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: var(--bw) solid var(--ink); color: #111; }
.proxy-card .pc-name { font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proxy-card .pc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pc-port { display: flex; align-items: baseline; gap: 8px; }
.pc-port .p { font-family: var(--font-display); font-size: 40px; line-height: 1; letter-spacing: -1px; }
.pc-port .l { font: 700 12px var(--font-mono); color: var(--muted); }
.pc-url { display: flex; align-items: stretch; border: var(--bw) solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.pc-url code { flex: 1; border: 0; border-radius: 0; padding: 8px 10px; background: var(--surface-2); overflow-x: auto; white-space: nowrap; font-size: 12px; }
.pc-url button { border: 0; border-left: var(--bw) solid var(--ink); background: var(--yellow); color: #111; font: 700 12px var(--font); padding: 0 12px; cursor: pointer; text-transform: uppercase; }
.pc-url button:hover { background: var(--pink); }
.pc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: var(--bw) solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.pc-stats div { padding: 7px 8px; border-right: 2px solid var(--ink); text-align: center; }
.pc-stats div:last-child { border-right: 0; }
.pc-stats b { display: block; font: 700 15px var(--font-mono); }
.pc-stats span { font-size: 10px; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.pc-error { background: var(--red); color: #111; border: var(--bw) solid var(--ink); border-radius: var(--radius); padding: 7px 10px; font-weight: 600; font-size: 13px; }
.pc-history { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.pc-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; }
.pc-actions .btn { justify-content: center; }
.status-pill { font: 700 11px var(--font-mono); text-transform: uppercase; padding: 4px 9px; border: 2px solid #111; border-radius: 30px; background: #fff; color: #111; white-space: nowrap; }
.status-pill.running { background: var(--lime); }
.status-pill.stopped { background: var(--gray); }
.status-pill.error { background: var(--red); }
.empty-card { display: grid; place-items: center; text-align: center; padding: 40px 20px; border-style: dashed; box-shadow: none; }
.empty-card .big { font-family: var(--font-display); font-size: 26px; margin-bottom: 8px; }

/* ===== Traffic ===== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px; margin-bottom: 18px; }
.table-card { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; max-height: calc(100vh - 290px); overflow-y: auto; }
.traffic-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.traffic-table thead th { position: sticky; top: 0; z-index: 1; background: var(--yellow); color: #111; text-align: left; font: 700 12px var(--font); text-transform: uppercase; letter-spacing: .4px; padding: 10px; border-bottom: var(--bw) solid var(--ink); white-space: nowrap; }
.traffic-table td { padding: 8px 10px; border-bottom: 2px solid var(--ink); white-space: nowrap; vertical-align: middle; }
.traffic-table tbody tr { cursor: pointer; }
.traffic-table tbody tr:hover { background: var(--surface-2); }
.traffic-table tbody tr.selected { background: var(--pink); color: #111; }
.traffic-table tbody tr.flash { animation: flash 1s ease-out; }
@keyframes flash { from { background: var(--lime); } }
.traffic-table .num { text-align: right; font-family: var(--font-mono); }
.traffic-table .host { font-family: var(--font-mono); max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.traffic-table .path { font-family: var(--font-mono); max-width: 380px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.traffic-table tr.selected .path, .traffic-table tr.selected .t, .traffic-table tr.selected .muted { color: #111; }
.traffic-table .t { font-family: var(--font-mono); color: var(--muted); }
.table-foot { display: flex; justify-content: center; padding: 12px; }
.empty { padding: 40px 20px; text-align: center; font-weight: 600; color: var(--muted); }
.active-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #18a33a; border: 1.5px solid #111; margin-left: 5px; animation: blink 1.2s infinite; }

.m { font: 700 11px var(--font-mono); padding: 3px 6px; border: 2px solid #111; border-radius: 4px; color: #111; background: var(--gray); }
.m-GET { background: var(--cyan); } .m-POST { background: var(--lime); } .m-PUT { background: var(--orange); }
.m-PATCH { background: var(--purple); } .m-DELETE { background: var(--red); } .m-CONNECT { background: var(--gray); }
.m-OPTIONS, .m-HEAD { background: var(--yellow); }
.s { font: 700 12px var(--font-mono); padding: 3px 6px; border: 2px solid #111; border-radius: 4px; color: #111; background: var(--gray); }
.s-1 { background: var(--blue); } .s-2 { background: var(--lime); } .s-3 { background: var(--cyan); }
.s-4 { background: var(--orange); } .s-5, .s-err { background: var(--red); }

/* ===== Drawer ===== */
.drawer { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.35); display: flex; justify-content: flex-end; }
.drawer-panel { width: min(860px, 100%); height: 100%; background: var(--surface); border-left: var(--bw) solid var(--ink); display: flex; flex-direction: column; animation: slidein .18s ease-out; }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { --ink: #111; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: var(--bw) solid var(--ink); background: var(--yellow); color: #111; flex-wrap: wrap; }
.drawer-head .btn { color: #111; }
.drawer-title { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 300px; }
.drawer-title .u { font: 600 13px var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subtabs { display: flex; border-bottom: var(--bw) solid var(--ink); }
.subtab { flex: 1; font: 700 13px var(--font); text-transform: uppercase; padding: 11px; border: 0; border-right: var(--bw) solid var(--ink); background: var(--surface); color: var(--text); cursor: pointer; }
.subtab:last-child { border-right: 0; }
.subtab.active { background: var(--pink); color: #111; }
.drawer-body { padding: 18px; overflow-y: auto; flex: 1; }
.section { margin-bottom: 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.section-head h4 { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: .4px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; border: var(--bw) solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.kv dt, .kv dd { margin: 0; padding: 7px 10px; border-bottom: 2px solid var(--ink); font-size: 13px; }
.kv dt { font-weight: 700; background: var(--surface-2); border-right: 2px solid var(--ink); white-space: nowrap; }
.kv dd { font-family: var(--font-mono); word-break: break-all; }
.kv dt:nth-last-of-type(1), .kv dd:last-of-type { border-bottom: 0; }
.headers-table { width: 100%; border-collapse: collapse; border: var(--bw) solid var(--ink); font-size: 12.5px; }
.headers-table td { padding: 6px 9px; border-bottom: 2px solid var(--ink); vertical-align: top; font-family: var(--font-mono); word-break: break-all; }
.headers-table td:first-child { font-weight: 700; background: var(--surface-2); border-right: 2px solid var(--ink); white-space: nowrap; width: 1%; word-break: normal; }
.code { margin: 0; padding: 12px; background: #16151a; color: #f3efe2; border: var(--bw) solid var(--ink); border-radius: var(--radius); font: 12.5px/1.55 var(--font-mono); overflow: auto; max-height: 520px; white-space: pre-wrap; word-break: break-word; }
.code .k { color: #ffd43b; } .code .str { color: #b8f35b; } .code .n { color: #7ab8ff; } .code .b { color: #ff8fc7; }
.note { padding: 9px 12px; border: var(--bw) dashed var(--ink); border-radius: var(--radius); font-size: 13px; background: var(--surface-2); }
.note.warn { background: var(--orange); color: #111; border-style: solid; }
.note.err { background: var(--red); color: #111; border-style: solid; }
.body-img { max-width: 100%; border: var(--bw) solid var(--ink); border-radius: var(--radius); background: repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 0 0 / 16px 16px; }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.4); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal-card { width: min(560px, 100%); box-shadow: var(--shadow-lg); animation: pop .15s ease-out; max-height: calc(100vh - 32px); overflow-y: auto; }
@keyframes pop { from { transform: scale(.96) rotate(-1deg); opacity: 0; } }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ===== Settings ===== */
.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: start; }
.settings-grid p { margin-top: 0; }
.howto { margin-top: 14px; border: var(--bw) solid var(--ink); border-radius: var(--radius); padding: 10px 12px; background: var(--surface-2); }
.howto summary { cursor: pointer; font-weight: 700; text-transform: uppercase; font-size: 13px; }
.howto ul { padding-left: 18px; margin: 10px 0 0; font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; }
.banned-list { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.banned-item { display: inline-flex; align-items: center; gap: 6px; border: var(--bw) solid var(--ink); border-radius: var(--radius); background: var(--red); color: #111; padding: 4px 4px 4px 10px; font: 700 13px var(--font-mono); }
.banned-item button { border: 2px solid #111; background: #fff; color: #111; border-radius: 4px; cursor: pointer; font-weight: 700; padding: 1px 6px; }

/* ===== Toasts ===== */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 32px); }
.toast { background: var(--lime); color: #111; border: var(--bw) solid #111; box-shadow: 4px 4px 0 #111; border-radius: var(--radius); padding: 10px 14px; font-weight: 700; animation: pop .15s ease-out; max-width: 420px; }
.toast.err { background: var(--red); }
.toast.info { background: var(--yellow); }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 14px; }
  .topbar { padding: 10px 16px; gap: 10px; }
  .tabs { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .tab { padding: 7px 10px; font-size: 13px; }
  .container { padding: 18px 16px 40px; }
  .dash-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .proxy-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .stat .value { font-size: 28px; }
  .filters .input { flex: 1 1 140px; }
  .table-scroll { max-height: none; }
}
