/* BozkurtProxy panel */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f8fafb;
  --border: #e3e8ee;
  --border-strong: #cfd7e0;
  --text: #0f172a;
  --text-2: #475569;
  --muted: #64748b;
  --brand: #059669;
  --brand-strong: #047857;
  --brand-soft: #d1fae5;
  --brand-ink: #064e3b;
  --accent: #0891b2;
  --accent-soft: #cffafe;
  --ok: #16a34a;
  --warn: #d97706;
  --warn-soft: #fef3c7;
  --warn-ink: #78350f;
  --bad: #dc2626;
  --bad-soft: #fee2e2;
  --bad-ink: #7f1d1d;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .05);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .16);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar: 248px;
  --chart-down: #059669;
  --chart-up: #6366f1;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0e13; --surface: #121820; --surface-2: #161d26; --border: #232d39; --border-strong: #2f3b4a;
    --text: #e6eaf0; --text-2: #b4bfcc; --muted: #8894a3;
    --brand: #34d399; --brand-strong: #10b981; --brand-soft: #0b3b2c; --brand-ink: #a7f3d0;
    --accent: #22d3ee; --accent-soft: #0b3440;
    --ok: #4ade80; --warn: #fbbf24; --warn-soft: #3a2b05; --warn-ink: #fcd34d;
    --bad: #f87171; --bad-soft: #3b1414; --bad-ink: #fecaca;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
    --chart-down: #12a37a; --chart-up: #7c7ff2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0e13; --surface: #121820; --surface-2: #161d26; --border: #232d39; --border-strong: #2f3b4a;
  --text: #e6eaf0; --text-2: #b4bfcc; --muted: #8894a3;
  --brand: #34d399; --brand-strong: #10b981; --brand-soft: #0b3b2c; --brand-ink: #a7f3d0;
  --accent: #22d3ee; --accent-soft: #0b3440;
  --ok: #4ade80; --warn: #fbbf24; --warn-soft: #3a2b05; --warn-ink: #fcd34d;
  --bad: #f87171; --bad-soft: #3b1414; --bad-ink: #fecaca;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
  --chart-down: #12a37a; --chart-up: #7c7ff2;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
#app { min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
code, .mono { font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Consolas, monospace; font-size: 12.5px; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
svg.i { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ------------------------------------------------------------ login */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 100% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    var(--bg);
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 32px;
}
.login-card h1 { font-size: 22px; margin: 18px 0 4px; letter-spacing: -.01em; }
.login-card p { margin: 0 0 22px; color: var(--muted); }
.login-card .btn { width: 100%; justify-content: center; height: 44px; margin-top: 6px; }
.login-foot { margin-top: 18px; text-align: center; color: var(--muted); font-size: 12px; }

/* ------------------------------------------------------------ brand */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #047857, #0d9488 55%, #0891b2);
  box-shadow: 0 6px 18px color-mix(in srgb, #0d9488 35%, transparent);
}
.logo-mark svg { width: 22px; height: 22px; fill: #fff; }
.logo-name { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.logo-sub { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------ shell */
.shell { display: flex; min-height: 100%; }
.sidebar {
  width: var(--sidebar);
  flex: none;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .logo { padding: 4px 8px 20px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: var(--text-2); font-weight: 500;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--brand-soft); color: var(--brand-ink); }
.nav a .badge { margin-left: auto; }
.nav-section { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 16px 12px 6px; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--border); padding-top: 14px; display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: var(--brand-soft); color: var(--brand-ink); text-transform: uppercase;
}
.sidebar-foot .who { min-width: 0; flex: 1; }
.sidebar-foot .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.topbar .sub { color: var(--muted); font-size: 12.5px; }
.topbar .spacer { flex: 1; }
.btn.menu-btn { display: none; }
.content { padding: 24px 28px 48px; max-width: 1440px; width: 100%; }

/* ------------------------------------------------------------ building blocks */
.grid { display: grid; gap: 18px; }
.grid.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.two { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid.halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 18px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.card-h h3 { margin: 0; font-size: 14.5px; }
.card-h .spacer { flex: 1; }
.card-b { padding: 16px 18px 18px; }
.card-b.flush { padding: 8px 0 4px; }

.kpi { padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; }
.kpi .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand-ink); }
.kpi .ico.cyan { background: var(--accent-soft); color: var(--accent); }
.kpi .ico.amber { background: var(--warn-soft); color: var(--warn-ink); }
.kpi .ico.slate { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.kpi .label { color: var(--muted); font-size: 12.5px; }
.kpi .value { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-top: 2px; }
.kpi .value small { font-size: 14px; font-weight: 600; color: var(--muted); }
.kpi .hint { font-size: 12px; color: var(--muted); margin-top: 2px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.btn.primary:hover { background: var(--brand); border-color: var(--brand); }
.btn.danger { color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.icon { width: 36px; padding: 0; justify-content: center; }
.btn.icon.sm { width: 30px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 99px;
  font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
  white-space: nowrap;
}
.badge.ok { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn-ink); border-color: transparent; }
.badge.bad { background: var(--bad-soft); color: var(--bad-ink); border-color: transparent; }
.badge.info { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse 2s infinite; }
.dot.warn { background: var(--warn); }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field .help { font-size: 12px; color: var(--muted); }
.input, select.input, textarea.input {
  height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: inherit; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 44px; }
.input-wrap .btn { position: absolute; right: 4px; top: 4px; height: 32px; width: 36px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }

.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); }
.seg button {
  border: 0; background: transparent; color: var(--text-2); font: inherit; font-weight: 600;
  height: 30px; padding: 0 14px; border-radius: 8px; cursor: pointer;
}
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.switch { position: relative; width: 40px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--border-strong); transition: .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + span { background: var(--brand-strong); }
.switch input:checked + span::after { transform: translateX(16px); }

.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13px; margin-bottom: 14px; }
.alert.warn { background: var(--warn-soft); color: var(--warn-ink); }
.alert.bad { background: var(--bad-soft); color: var(--bad-ink); }
.alert.info { background: var(--accent-soft); color: var(--text); }
.alert svg { margin-top: 1px; }

/* tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
.t th {
  text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2);
}
.t td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { transition: background .1s; }
.t tbody tr.clickable { cursor: pointer; }
.t tbody tr.clickable:hover { background: var(--surface-2); }
.t .sub { color: var(--muted); font-size: 12px; }
.t td.num, .t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-dev { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.dev-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); flex: none; }
.dev-ico.on { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 36px; height: 36px; opacity: .5; margin-bottom: 8px; }

/* copy chip */
.copy { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.copy code { white-space: nowrap; }
.copy button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 2px 4px; border-radius: 6px; display: grid; place-items: center; }
.copy button:hover { color: var(--brand); background: var(--surface); }
.copy button svg { width: 15px; height: 15px; }
pre.code {
  margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border);
  overflow-x: auto; font-size: 12.5px; line-height: 1.6; position: relative;
}
.code-box { position: relative; }
.code-box .btn { position: absolute; right: 8px; top: 8px; }

/* progress */
.meter { height: 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 99px; background: var(--brand); transition: width .4s; }
.meter > span.warn { background: var(--warn); }
.meter > span.bad { background: var(--bad); }
.health-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; }
.health-row .k { color: var(--muted); font-size: 12.5px; }
.health-row .v { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; text-align: right; min-width: 92px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* charts */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .down { fill: var(--chart-down); }
.chart .up { fill: var(--chart-up); }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover { fill: color-mix(in srgb, var(--text) 5%, transparent); }
.tooltip {
  position: absolute; pointer-events: none; z-index: 5; min-width: 150px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg);
  padding: 8px 10px; font-size: 12px;
}
.tooltip b { display: block; margin-bottom: 4px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.spark { height: 36px; }
.spark path.line { fill: none; stroke: var(--brand); stroke-width: 1.6; }
.spark path.area { fill: color-mix(in srgb, var(--brand) 14%, transparent); stroke: none; }
.spark.cyan path.line { stroke: var(--accent); }
.spark.cyan path.area { fill: color-mix(in srgb, var(--accent) 14%, transparent); }

/* events */
.events { list-style: none; margin: 0; padding: 0; }
.events li { display: flex; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--border); }
.events li:last-child { border-bottom: 0; }
.ev-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--text-2); }
.ev-ico svg { width: 16px; height: 16px; }
.ev-ico.warn { background: var(--warn-soft); color: var(--warn-ink); }
.ev-ico.ok { background: var(--brand-soft); color: var(--brand-ink); }
.ev-ico.bad { background: var(--bad-soft); color: var(--bad-ink); }
.ev-ico.info { background: var(--accent-soft); color: var(--accent); }
.ev-body { min-width: 0; flex: 1; }
.ev-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.ev-top b { color: var(--text); font-size: 13px; }
.ev-msg { margin-top: 2px; overflow-wrap: anywhere; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--text-2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }
.settings-card { max-width: 760px; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); cursor: pointer; }
.check input { accent-color: var(--brand-strong); width: 16px; height: 16px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 44px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700;
}

/* drawer + modal */
.overlay { position: fixed; inset: 0; background: rgba(2, 6, 23, .45); z-index: 40; animation: fade .15s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); z-index: 41;
  background: var(--bg); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; animation: slide .2s ease-out;
}
.drawer-h { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); background: var(--surface); }
.drawer-h h3 { margin: 0; font-size: 16px; }
.drawer-b { padding: 18px 20px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 41;
  width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 22px; animation: pop .15s ease-out;
}
.modal h3 { margin: 0 0 6px; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
@keyframes pop { from { transform: translate(-50%, -48%); opacity: 0; } }

/* toasts */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 380px; padding: 11px 14px;
  border-radius: 12px; background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg); font-weight: 500;
  animation: pop2 .2s ease-out;
}
.toast.bad { background: var(--bad); color: #fff; }
@keyframes pop2 { from { transform: translateY(8px); opacity: 0; } }

.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .grid.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.two { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .shell.nav-open .sidebar { transform: none; }
  .btn.menu-btn { display: inline-flex; }
  .topbar { padding: 12px 16px; }
  .content { padding: 16px 16px 40px; }
  .grid.halves, .form-grid, .check-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .grid.kpis { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kpi { padding: 14px; gap: 10px; }
  .kpi .ico { display: none; }
  .kpi .value { font-size: 20px; }
  .topbar .sub { display: none; }
}
.spark path.line.down { stroke: var(--chart-down); }
.spark path.line.up { stroke: var(--chart-up); }
.chart-total { font-size: 13px; color: var(--muted); }
.chart-total b { color: var(--text); font-size: 15px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.toolbar .search svg { position: absolute; left: 11px; top: 11px; color: var(--muted); }
.toolbar .search .input { padding-left: 38px; }
.toolbar select.input { width: auto; min-width: 170px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
details.more { border-top: 1px solid var(--border); }
details.more summary { cursor: pointer; padding: 12px 18px; color: var(--text-2); font-weight: 600; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { border-bottom: 1px solid var(--border); }
tr.sel td { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.proxy-lines { display: flex; flex-direction: column; gap: 8px; }
.proxy-lines .copy { justify-content: space-between; }
.proxy-lines .copy code { overflow: hidden; text-overflow: ellipsis; }
.secret { filter: blur(5px); transition: filter .15s; }
.secret.shown { filter: none; }
[hidden] { display: none !important; }
.tabs { overflow-y: hidden; }
pre.code { white-space: pre-wrap; word-break: break-all; padding-right: 104px; }
.t td.num { white-space: nowrap; }
.nowrap { flex-wrap: nowrap !important; white-space: nowrap; }
.card-h { flex-wrap: wrap; row-gap: 6px; }
.actions-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.actions-grid .btn { justify-content: flex-start; }
.btn.danger { color: var(--bad); }
.cmd-result { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 13px; }
.cmd-result.ok { background: var(--brand-soft); color: var(--brand-ink); }
.cmd-result.bad { background: var(--bad-soft); color: var(--bad-ink); }
.cmd-result .muted { color: inherit; opacity: .75; }
.bulk-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.check-col { width: 36px; padding-right: 0 !important; }
.check-col input, .check input { accent-color: var(--brand-strong); width: 16px; height: 16px; cursor: pointer; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.seg button:disabled { cursor: default; }
@media (max-width: 560px) { .actions-grid { grid-template-columns: 1fr; } }
.field .seg { align-self: flex-start; }
