/* Backup Pull — neon control-room theme. */

:root {
  --bg: #05060f;
  --bg-2: #080a18;
  --panel: #0b0e20;
  --panel-2: #10142b;
  --line: #1c2145;
  --line-soft: #141834;
  --text: #e8ecff;
  --muted: #8b93bd;
  --dim: #5b638c;

  --cyan: #3ee8ff;
  --magenta: #ff4fd8;
  --violet: #b780ff;
  --lime: #a6ff5c;
  --amber: #ffc857;
  --red: #ff5a76;

  /* Chart series: validated for dark surfaces (lightness band, colour-vision separation). */
  --series-original: #0aa2c0;
  --series-backup: #c44dff;

  --glow-cyan: 0 0 0 1px rgba(62, 232, 255, .35), 0 0 18px rgba(62, 232, 255, .22);
  --glow-magenta: 0 0 0 1px rgba(255, 79, 216, .4), 0 0 18px rgba(255, 79, 216, .22);
  --radius: 10px;

  --font-display: 'Chakra Petch', 'Be Vietnam Pro', system-ui, sans-serif;
  --font-body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
/* Atmosphere: two distant glows and a faint grid, fixed behind everything. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(62, 232, 255, .13), transparent 62%),
    radial-gradient(820px 560px at 108% 108%, rgba(255, 79, 216, .11), transparent 60%),
    linear-gradient(rgba(62, 232, 255, .035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(62, 232, 255, .035) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--bg);
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: .04em; margin: 0; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--font-mono); font-size: .92em; }
code { background: rgba(62, 232, 255, .08); border: 1px solid rgba(62, 232, 255, .16); border-radius: 5px; padding: 1px 6px; color: var(--cyan); }
[hidden] { display: none !important; }
.offscreen { position: fixed; left: -9999px; top: 0; }
::selection { background: rgba(255, 79, 216, .4); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: #2a3166 transparent; }

.ico { display: inline-flex; width: 18px; height: 18px; flex: none; }
.ico svg { width: 100%; height: 100%; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.spacer { flex: 1; }

/* ----- Shell ------------------------------------------------------------------------ */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 22px 14px 16px;
  background: linear-gradient(180deg, rgba(11, 14, 32, .92), rgba(5, 6, 15, .92));
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 22px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  color: var(--cyan); background: rgba(62, 232, 255, .07); box-shadow: var(--glow-cyan);
}
.brand-mark .ico { width: 22px; height: 22px; }
.brand-name { font: 700 17px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.brand-name b { color: var(--magenta); font-weight: 700; text-shadow: 0 0 14px rgba(255, 79, 216, .7); }
.brand-sub { font: 400 10.5px/1 var(--font-mono); color: var(--dim); letter-spacing: .12em; margin-top: 6px; text-transform: uppercase; }

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-label { font: 500 10.5px/1 var(--font-mono); color: var(--dim); letter-spacing: .18em; text-transform: uppercase; padding: 14px 10px 8px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 8px; color: var(--muted);
  font: 500 14px/1.2 var(--font-display); letter-spacing: .05em;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: rgba(62, 232, 255, .06); text-decoration: none; }
.nav a.active { color: var(--cyan); background: rgba(62, 232, 255, .09); text-shadow: 0 0 12px rgba(62, 232, 255, .55); }
.nav a.active::before {
  content: ''; position: absolute; left: -14px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan);
}
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.clock { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(5, 6, 15, .5); }
.clock-time { font: 600 19px/1 var(--font-mono); color: var(--text); letter-spacing: .04em; }
.clock-zone { font: 400 10.5px/1 var(--font-mono); color: var(--dim); margin-top: 6px; letter-spacing: .06em; }
.env-flag {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px;
  border: 1px dashed rgba(255, 200, 87, .55); background: rgba(255, 200, 87, .08); color: var(--amber);
  font: 500 11px/1.2 var(--font-mono); letter-spacing: .05em;
}
.env-flag .ico { width: 15px; height: 15px; flex: none; }
.env-flag b { text-transform: uppercase; font-weight: 700; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; border: 1px solid var(--line); border-radius: 8px; }
.user-chip .name { font-family: var(--font-mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }

.main { min-width: 0; padding: 26px 30px 48px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 26px; text-transform: uppercase; letter-spacing: .1em; }
.page-head h1::after {
  content: ''; display: block; width: 46px; height: 3px; margin-top: 9px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta)); box-shadow: 0 0 12px rgba(62, 232, 255, .6);
}
.page-head p { margin: 0 0 2px; color: var(--muted); max-width: 70ch; flex: 1 1 300px; }
.view > * { animation: rise .32s both; }
.view > *:nth-child(2) { animation-delay: .04s; }
.view > *:nth-child(3) { animation-delay: .08s; }
.view > *:nth-child(4) { animation-delay: .12s; }
.view > *:nth-child(n+5) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ----- Panels ----------------------------------------------------------------------- */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(16, 20, 43, .82), rgba(11, 14, 32, .82));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}
/* HUD corner ticks. */
.panel::before, .panel::after {
  content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border: solid rgba(62, 232, 255, .65); border-width: 0;
}
.panel::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: var(--radius); }
.panel::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: var(--radius); border-color: rgba(255, 79, 216, .65); }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.panel-head h2 { font-size: 13.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--text); }
.panel-head .hint { color: var(--dim); font-size: 12.5px; }
.panel-body { padding: 16px 18px; }
.panel-flush { padding: 0; }
.grid { display: grid; gap: 16px; }
.grid-kpi { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid-2 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.mb { margin-bottom: 16px; }

/* ----- Stat tiles -------------------------------------------------------------------- */
.kpi { padding: 16px 18px 15px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kpi-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 500 11.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.kpi-label .ico { width: 15px; height: 15px; color: var(--cyan); }
.kpi-value { font: 600 30px/1.1 var(--font-display); letter-spacing: .02em; color: var(--text); white-space: nowrap; }
.kpi-value small { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.kpi-sub { color: var(--muted); font-size: 12.5px; min-height: 19px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ----- Buttons & inputs ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(16, 20, 43, .9); color: var(--text); cursor: pointer;
  font: 500 13.5px/1.2 var(--font-display); letter-spacing: .06em; white-space: nowrap;
  transition: box-shadow .15s, border-color .15s, background .15s, color .15s, transform .05s;
}
.btn:hover { border-color: rgba(62, 232, 255, .5); box-shadow: 0 0 14px rgba(62, 232, 255, .15); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn .ico { width: 16px; height: 16px; }
.btn-primary { color: #021016; background: var(--cyan); border-color: var(--cyan); font-weight: 600; box-shadow: 0 0 18px rgba(62, 232, 255, .35); }
.btn-primary:hover { background: #7cf1ff; box-shadow: 0 0 26px rgba(62, 232, 255, .55); }
.btn-danger { color: var(--red); border-color: rgba(255, 90, 118, .45); background: rgba(255, 90, 118, .08); }
.btn-danger:hover { border-color: var(--red); box-shadow: 0 0 16px rgba(255, 90, 118, .3); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn-block { width: 100%; padding: 11px 14px; font-size: 14.5px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; flex: none;
  border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; transition: all .15s;
}
.icon-btn:hover { color: var(--cyan); border-color: rgba(62, 232, 255, .4); background: rgba(62, 232, 255, .07); }
.icon-btn.danger:hover { color: var(--red); border-color: rgba(255, 90, 118, .5); background: rgba(255, 90, 118, .08); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.icon-btn .ico { width: 16px; height: 16px; }

.input {
  width: 100%; padding: 8px 11px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(5, 6, 15, .75); color: var(--text); font: 400 14px/1.4 var(--font-body);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--dim); }
.input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(62, 232, 255, .14); }
.input.mono { font-family: var(--font-mono); font-size: 13px; }
.input.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 90, 118, .12); }
select.input { appearance: none; padding-right: 30px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea.input { resize: vertical; min-height: 96px; }
input[type=date].input { font-family: var(--font-mono); font-size: 12.5px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font: 500 11.5px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field > small { color: var(--dim); font-size: 12.5px; }
.field > small.bad { color: var(--red); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { width: 38px; height: 21px; border-radius: 12px; background: #1a1f44; border: 1px solid var(--line); position: relative; transition: all .18s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--dim); transition: all .18s; }
.switch input:checked + i { background: rgba(62, 232, 255, .18); border-color: var(--cyan); box-shadow: 0 0 12px rgba(62, 232, 255, .3); }
.switch input:checked + i::after { left: 19px; background: var(--cyan); }
.switch input:focus-visible + i { outline: 2px solid var(--cyan); outline-offset: 2px; }
.switch span { font-size: 13.5px; color: var(--text); }
.check { width: 16px; height: 16px; accent-color: var(--cyan); cursor: pointer; }

.tabs { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: rgba(5, 6, 15, .6); gap: 3px; }
.tabs button {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border: 0; border-radius: 6px; cursor: pointer;
  background: transparent; color: var(--muted); font: 500 13px/1.2 var(--font-display); letter-spacing: .08em; text-transform: uppercase;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { background: rgba(62, 232, 255, .12); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(62, 232, 255, .4); }
.tabs button.active.alt { background: rgba(196, 77, 255, .13); color: #dba0ff; box-shadow: inset 0 0 0 1px rgba(196, 77, 255, .5); }

.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.filters .wide { grid-column: span 2; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 11px; border-radius: 20px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font: 500 12.5px/1.2 var(--font-mono); }
.chip.active { color: var(--cyan); border-color: var(--cyan); background: rgba(62, 232, 255, .1); }

/* ----- Tables -------------------------------------------------------------------------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left; padding: 10px 14px; white-space: nowrap;
  font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
  border-bottom: 1px solid var(--line);
}
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover, .tbl th.sorted { color: var(--cyan); }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: rgba(62, 232, 255, .04); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr.selected { background: rgba(255, 79, 216, .06); }
.tbl .actions { display: flex; gap: 2px; justify-content: flex-end; }
.tbl td.right, .tbl th.right { text-align: right; }
.tbl .name-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tbl .name-cell .ico { color: var(--muted); }
.tbl .name-cell.dir .ico { color: var(--amber); }
.tbl .name-cell button, .linklike { background: none; border: 0; padding: 0; color: var(--text); font: inherit; cursor: pointer; text-align: left; overflow-wrap: anywhere; }
.tbl .name-cell button:hover, .linklike:hover { color: var(--cyan); text-shadow: 0 0 10px rgba(62, 232, 255, .5); }
.sub { color: var(--dim); font-size: 12px; font-weight: 400; }
.detail-row td { background: rgba(5, 6, 15, .6); }
.detail-row pre { margin: 0; font: 400 12px/1.55 var(--font-mono); color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.pager-nav { display: flex; align-items: center; gap: 6px; }
.pager-page { font-family: var(--font-mono); padding: 0 8px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 20px; white-space: nowrap;
  font: 500 11.5px/1.3 var(--font-mono); letter-spacing: .03em; border: 1px solid;
}
.badge .ico { width: 13px; height: 13px; }
.badge-ok { color: var(--lime); border-color: rgba(166, 255, 92, .35); background: rgba(166, 255, 92, .07); }
.badge-bad { color: var(--red); border-color: rgba(255, 90, 118, .4); background: rgba(255, 90, 118, .08); }
.badge-warn { color: var(--amber); border-color: rgba(255, 200, 87, .4); background: rgba(255, 200, 87, .07); }
.badge-info { color: var(--cyan); border-color: rgba(62, 232, 255, .35); background: rgba(62, 232, 255, .07); }
.badge-wait { color: var(--muted); border-color: var(--line); background: rgba(139, 147, 189, .07); }
.badge-run { color: var(--violet); border-color: rgba(183, 128, 255, .45); background: rgba(183, 128, 255, .1); }
.badge-run .ico { animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tag { display: inline-block; padding: 1px 7px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); font: 400 11px/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--dim); }
.dot.on { background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: pulse 2.4s ease-in-out infinite; }
.dot.idle { background: var(--amber); box-shadow: 0 0 8px rgba(255, 200, 87, .7); }
.dot.off { background: var(--red); }
@keyframes pulse { 50% { opacity: .45; } }
.status-cell { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

.hash { display: inline-flex; align-items: center; gap: 4px; font: 400 12px/1 var(--font-mono); color: var(--muted); white-space: nowrap; }
.hash button { all: unset; cursor: pointer; display: inline-grid; color: var(--dim); }
.hash button:hover { color: var(--cyan); }
.hash .ico { width: 13px; height: 13px; }

/* ----- Progress & meters --------------------------------------------------------------- */
.bar { height: 8px; border-radius: 4px; background: #151a3a; overflow: hidden; min-width: 80px; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: var(--cyan); box-shadow: 0 0 12px rgba(62, 232, 255, .6); transition: width .3s; }
.bar.running > i { background: linear-gradient(90deg, var(--series-backup), #e3a6ff); box-shadow: 0 0 12px rgba(196, 77, 255, .6); }
.bar.indeterminate > i { width: 35%; animation: slide 1.3s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(300%); } }
.bar.bad > i { background: var(--red); box-shadow: none; }
.bar.ok > i { background: var(--lime); box-shadow: 0 0 10px rgba(166, 255, 92, .5); }

.meter { display: flex; height: 14px; border-radius: 4px; overflow: hidden; background: #151a3a; gap: 2px; }
.meter > i { display: block; height: 100%; min-width: 2px; }
.meter > i:first-child { border-radius: 4px 0 0 4px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.swatch-original { background: var(--series-original); }
.swatch-backup { background: var(--series-backup); }
.swatch-other { background: #3a4170; }
.swatch-free { background: #151a3a; border: 1px solid var(--line); }

.usage-rows { display: flex; flex-direction: column; gap: 12px; }
.usage-row { display: grid; grid-template-columns: minmax(90px, 150px) minmax(0, 1fr) 92px; gap: 12px; align-items: center; }
.usage-row .name { font-family: var(--font-mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usage-row .total { text-align: right; font: 400 12.5px/1 var(--font-mono); color: var(--muted); white-space: nowrap; }
.usage-bar { display: flex; gap: 2px; height: 14px; }
.usage-bar i { display: block; height: 100%; border-radius: 0 4px 4px 0; min-width: 3px; cursor: default; transition: filter .15s; }
.usage-bar i:hover { filter: brightness(1.35); }

.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: #1a1f44; stroke-width: 1; }
.chart .axis-label { fill: var(--dim); font: 400 11px var(--font-mono); }
.chart .bar-mark { fill: var(--series-original); transition: filter .12s; }
.chart .bar-hit { fill: transparent; cursor: default; }
.chart .bar-group:hover .bar-mark { filter: brightness(1.4) drop-shadow(0 0 6px rgba(62, 232, 255, .7)); }
.chart .bar-group:hover .bar-hit { fill: rgba(62, 232, 255, .05); }
.chart .zero-mark { fill: #252b57; }
.chart-tip {
  position: fixed; z-index: 90; pointer-events: none; padding: 9px 12px; border-radius: 8px; min-width: 150px;
  background: rgba(5, 6, 15, .96); border: 1px solid rgba(62, 232, 255, .4); box-shadow: 0 8px 30px rgba(0, 0, 0, .6), 0 0 16px rgba(62, 232, 255, .15);
  font-size: 12.5px; color: var(--muted);
}
.chart-tip strong { display: block; color: var(--text); font: 600 12.5px var(--font-mono); margin-bottom: 4px; }
.chart-tip div { display: flex; justify-content: space-between; gap: 16px; }
.chart-tip div b { color: var(--text); font: 500 12.5px var(--font-mono); }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--line-soft); align-items: start; }
.feed li:last-child { border-bottom: 0; }
.feed .ico { margin-top: 2px; width: 16px; height: 16px; }
.feed .lv-info { color: var(--cyan); } .feed .lv-warn { color: var(--amber); } .feed .lv-error { color: var(--red); }
.feed .msg { overflow-wrap: anywhere; }
.feed .meta { color: var(--dim); font: 400 11.5px/1.6 var(--font-mono); white-space: nowrap; }

/* ----- File manager -------------------------------------------------------------------- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; font: 400 13px/1.3 var(--font-mono); min-width: 0; }
.crumbs button { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 3px 6px; border-radius: 5px; display: inline-flex; align-items: center; gap: 6px; }
.crumbs button:hover { color: var(--cyan); background: rgba(62, 232, 255, .07); }
.crumbs button.here { color: var(--text); cursor: default; background: none; }
.crumbs .sep { color: var(--dim); }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dropzone {
  border: 1.5px dashed rgba(62, 232, 255, .35); border-radius: var(--radius); padding: 26px 18px; text-align: center; color: var(--muted);
  background: rgba(62, 232, 255, .03); transition: all .15s; cursor: pointer;
}
.dropzone:hover, .dropzone.over { border-color: var(--cyan); background: rgba(62, 232, 255, .08); box-shadow: inset 0 0 30px rgba(62, 232, 255, .08); color: var(--text); }
.dropzone .ico { width: 30px; height: 30px; color: var(--cyan); margin-bottom: 6px; }
.dropzone strong { display: block; font: 600 15px var(--font-display); letter-spacing: .06em; color: var(--text); }
.drag-over { outline: 2px dashed var(--cyan); outline-offset: -6px; }
.queue { display: flex; flex-direction: column; gap: 8px; }
.queue-item { display: grid; grid-template-columns: minmax(0, 1fr) 150px 110px; gap: 12px; align-items: center; padding: 9px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(5, 6, 15, .5); }
.queue-item .q-name { font: 400 12.5px/1.4 var(--font-mono); overflow-wrap: anywhere; }
.queue-item .q-note { color: var(--dim); font-size: 12px; }
.queue-item .q-state { text-align: right; font-size: 12px; }
.picker-list { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: rgba(5, 6, 15, .5); }
.picker-list button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 12px; background: none; border: 0; border-bottom: 1px solid var(--line-soft); color: var(--text); cursor: pointer; font: 400 13px var(--font-mono); text-align: left; }
.picker-list button:hover { background: rgba(62, 232, 255, .07); color: var(--cyan); }
.picker-list .ico { color: var(--amber); width: 16px; height: 16px; }
.picker-list .none { padding: 14px; color: var(--dim); font-size: 13px; }

.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 46px 20px; text-align: center; color: var(--muted); }
.empty .ico { width: 38px; height: 38px; color: var(--dim); }
.empty strong { font: 600 15px var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.empty p { margin: 0; max-width: 52ch; }
.loading { padding: 40px; text-align: center; color: var(--dim); font: 400 12.5px var(--font-mono); letter-spacing: .2em; text-transform: uppercase; }
.loading::after { content: '▮'; margin-left: 6px; color: var(--cyan); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.note { display: flex; gap: 10px; padding: 11px 14px; border-radius: 8px; border: 1px solid rgba(255, 200, 87, .35); background: rgba(255, 200, 87, .06); color: #ffe2a3; font-size: 13px; align-items: flex-start; }
.note .ico { color: var(--amber); margin-top: 1px; }
.note.info { border-color: rgba(62, 232, 255, .3); background: rgba(62, 232, 255, .05); color: #c9f6ff; }
.note.info .ico { color: var(--cyan); }
.codeblock { position: relative; margin: 0; padding: 14px 16px; border-radius: 8px; border: 1px solid var(--line); background: #04050c; font: 400 12.5px/1.7 var(--font-mono); color: #c9f6ff; white-space: pre-wrap; overflow-wrap: anywhere; }
.secret { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(255, 79, 216, .5); background: rgba(255, 79, 216, .06); box-shadow: 0 0 22px rgba(255, 79, 216, .12); }
.secret .mono { flex: 1; overflow-wrap: anywhere; color: #ffd0f4; font-size: 13.5px; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; font-size: 13px; }
.kv dt { color: var(--dim); font: 400 11.5px/1.7 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* ----- Overlay: modal & toast ----------------------------------------------------------- */
.overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: start center; padding: 9vh 16px 24px; overflow: auto; background: rgba(2, 3, 9, .74); backdrop-filter: blur(5px); animation: fade .15s both; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(520px, 100%); background: linear-gradient(180deg, #11152e, #0a0d1f); border: 1px solid rgba(62, 232, 255, .35); border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 40px rgba(62, 232, 255, .12); animation: rise .2s both; }
.modal-wide { width: min(720px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .12em; color: var(--cyan); text-shadow: 0 0 14px rgba(62, 232, 255, .5); }
.modal-body { padding: 18px; }
.modal-text { margin: 0; color: var(--text); overflow-wrap: anywhere; }
/* ----- Dump verification ------------------------------------------------------------- */
.engine-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.engine-chip {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-width: 0;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(5, 6, 15, .5);
}
.engine-chip > .ico { width: 22px; height: 22px; color: var(--violet); flex: none; }
.engine-chip strong { display: block; font: 600 13px/1.3 var(--font-mono); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.clickable:hover td { background: rgba(62, 232, 255, .04); }
.report-message { max-width: 380px; font-size: 12.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.icon-btn.verify { color: var(--violet); }
.verify-flag { border: 0; padding: 0; background: none; cursor: pointer; flex: none; }
.verify-flag .badge { font-size: 10.5px; padding: 2px 7px; }
.verify-flag.stale { opacity: .45; }
.note.verdict-ok { border-color: rgba(166, 255, 92, .35); background: rgba(166, 255, 92, .06); color: #e4ffd0; }
.note.verdict-ok .ico { color: var(--lime); }
.note.verdict-bad { border-color: rgba(255, 90, 118, .4); background: rgba(255, 90, 118, .07); color: #ffd9e0; }
.note.verdict-bad .ico { color: var(--red); }
.note.verdict-warn span, .note.verdict-ok span, .note.verdict-bad span { overflow-wrap: anywhere; }
.report-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.report-stat { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(5, 6, 15, .5); min-width: 0; }
.report-stat span { display: block; color: var(--muted); font: 500 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 7px; }
.report-stat strong { font: 600 15px/1.2 var(--font-mono); overflow-wrap: anywhere; }
.report-db { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.report-db-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: rgba(183, 128, 255, .06); }
.report-db-head .ico { width: 16px; height: 16px; color: var(--violet); }
.report-tables { max-height: 260px; overflow: auto; }
.report-title { color: var(--muted); font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.report-list { margin: 0; padding: 10px 14px 10px 30px; border-radius: 8px; font: 400 12.5px/1.55 var(--font-mono); overflow-wrap: anywhere; }
.report-list.bad { border: 1px solid rgba(255, 90, 118, .35); background: rgba(255, 90, 118, .06); color: #ffd9e0; }
.report-list.warn { border: 1px solid rgba(255, 200, 87, .35); background: rgba(255, 200, 87, .06); color: #ffeec7; }

.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.form-error { color: var(--red); font-size: 13px; min-height: 19px; }

#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: flex; flex-direction: column; gap: 9px; align-items: flex-end; }
.toast { display: flex; align-items: flex-start; gap: 9px; max-width: 420px; padding: 11px 14px; border-radius: 9px; background: rgba(8, 10, 24, .97); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .55); animation: rise .2s both; overflow-wrap: anywhere; }
.toast.leaving { opacity: 0; transform: translateX(12px); transition: all .25s; }
.toast-ok { border-color: rgba(166, 255, 92, .5); } .toast-ok .ico { color: var(--lime); }
.toast-error { border-color: rgba(255, 90, 118, .6); } .toast-error .ico { color: var(--red); }
.toast-warn { border-color: rgba(255, 200, 87, .5); } .toast-warn .ico { color: var(--amber); }
.toast-info .ico { color: var(--cyan); }

/* ----- Login ---------------------------------------------------------------------------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.login-card { width: min(430px, 100%); padding: 30px 30px 26px; }
.login-card.wide { width: min(560px, 100%); }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 24px; text-align: center; }
.login-brand .brand-mark { width: 58px; height: 58px; border-radius: 14px; }
.login-brand .brand-mark .ico { width: 32px; height: 32px; }
.login-brand h1 { font-size: 25px; letter-spacing: .2em; text-transform: uppercase; }
.login-brand h1 b { color: var(--magenta); text-shadow: 0 0 18px rgba(255, 79, 216, .8); }
.login-brand p { margin: 0; color: var(--muted); font-size: 13px; }
.steps { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.steps i { width: 34px; height: 3px; border-radius: 2px; background: var(--line); }
.steps i.done { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.otp { text-align: center; font: 600 26px/1.2 var(--font-mono) !important; letter-spacing: .42em; padding: 12px 8px 12px 18px !important; }
.qr-wrap { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 20px; align-items: start; }
.qr { width: 196px; height: 196px; border-radius: 10px; background: #fff; padding: 6px; box-shadow: var(--glow-cyan); }
.qr img { width: 100%; height: 100%; display: block; }
.howto { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 6px; }

/* ----- Responsive ----------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; gap: 10px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 6px 0 0; } .brand-text, .nav-label, .clock, .user-chip .name, .env-flag span { display: none; }
  .nav { flex-direction: row; } .nav a span:not(.ico) { display: none; } .nav a.active::before { display: none; }
  .side-foot { margin: 0 0 0 auto; flex-direction: row; }
  .main { padding: 18px 14px 40px; }
  .form-grid, .qr-wrap { grid-template-columns: minmax(0, 1fr); }
  .qr { margin: 0 auto; }
  .queue-item { grid-template-columns: minmax(0, 1fr); }
  .usage-row { grid-template-columns: minmax(0, 1fr); gap: 5px; } .usage-row .total { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ----- Copies on Bunny Storage --------------------------------------------------------- */
.icon-btn.offsite { color: var(--amber); }
.offsite-flag { margin-top: 5px; }
.offsite-flag .badge { font-size: 10.5px; padding: 2px 7px; }
.offsite-error { color: var(--red); font-size: 12px; max-width: 420px; overflow-wrap: anywhere; margin-top: 3px; }
.offsite-full { color: var(--lime); }
.code-block { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(5, 6, 15, .6); color: var(--text); font: 400 12.5px/1.7 var(--font-mono); overflow-x: auto; }
.match-list ul { margin: 6px 0 0; padding: 8px 12px; list-style: none; max-height: 168px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; background: rgba(5, 6, 15, .5); font-size: 12.5px; }
.match-list li { padding: 2px 0; overflow-wrap: anywhere; }
