/* Ciallo Speedtest - dark technical UI, orange signal accent */
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060608;
  --bg-2: #0a0a0e;
  --panel: rgba(17, 17, 23, 0.82);
  --panel-solid: #111117;
  --panel-2: #15151d;
  --border: #25252f;
  --border-soft: rgba(255, 255, 255, 0.06);
  --text: #f1eee8;
  --muted: #8b8b98;
  --dim: #5d5d6b;
  --orange: #ff7a1a;
  --orange-2: #ffb36b;
  --orange-dim: rgba(255, 122, 26, 0.12);
  --green: #3ddc97;
  --red: #ff5d6c;
  --yellow: #ffd166;
  --blue: #4c9aff;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --radius: 16px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  padding: 22px;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
button, input, a { font: inherit; color: inherit; }
button { cursor: pointer; }
a { text-decoration: none; }
::selection { background: rgba(255, 122, 26, 0.35); color: #fff; }

/* ------------------------------------------------------------- atmosphere */
.atmosphere { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #050507; }
.glow { position: absolute; border-radius: 50%; filter: blur(30px); pointer-events: none; }
.glow-a {
  width: 1100px; height: 860px; left: -360px; top: -420px;
  background: radial-gradient(closest-side, rgba(255, 122, 26, 0.22), rgba(255, 122, 26, 0.05) 55%, transparent 72%);
  animation: drift 18s ease-in-out infinite alternate;
}
.glow-b {
  width: 980px; height: 760px; right: -380px; top: -380px;
  background: radial-gradient(closest-side, rgba(112, 74, 255, 0.16), transparent 70%);
  animation: drift 24s ease-in-out infinite alternate-reverse;
}
.grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 78%);
}
.noise {
  position: absolute; inset: 0; opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(40px, 26px, 0) scale(1.06); } }

/* ------------------------------------------------------------------- app */
.app {
  width: min(1480px, 100%);
  height: calc(100vh - 44px);
  min-height: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), transparent 130px),
    rgba(9, 9, 13, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  overflow: hidden;
  animation: appIn 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes appIn { from { opacity: 0; transform: translateY(14px) scale(0.995); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- topbar */
.topbar {
  height: 66px;
  flex: 0 0 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
}
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; position: relative;
  display: grid; place-items: center; flex: 0 0 38px;
  background: linear-gradient(135deg, #ff6a00 0%, #ffb36b 100%);
  box-shadow: 0 0 26px rgba(255, 122, 26, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.22); mix-blend-mode: overlay;
}
.brand-mark span { font-family: var(--mono); font-weight: 700; font-size: 20px; color: #160b03; transform: translateY(-1px); }
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-name { font-family: var(--mono); font-weight: 700; font-size: 17px; letter-spacing: 0.26em; line-height: 1; }
.brand-sub { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; color: var(--dim); white-space: nowrap; }
.brand-sub i { color: var(--orange); font-style: normal; margin: 0 3px; }
.topbar-right { display: flex; align-items: center; gap: 9px; }
.chip {
  height: 26px; display: inline-flex; align-items: center; gap: 7px;
  padding: 0 10px; border: 1px solid var(--border); border-radius: 999px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; color: var(--muted);
  background: rgba(255, 255, 255, 0.018); white-space: nowrap;
}
.chip-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(61, 220, 151, 0.8); }
.chip-live.offline .dot { background: var(--red); box-shadow: 0 0 10px rgba(255, 93, 108, 0.7); }
.chip-demo { color: var(--yellow); border-color: rgba(255, 209, 102, 0.3); background: rgba(255, 209, 102, 0.07); }
.chip-net { color: var(--text); }
.net-dots { display: inline-flex; gap: 2px; }
.net-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); opacity: 0.9; }
.net-dots i:nth-child(2) { background: var(--blue); }
.net-dots i:nth-child(3) { background: var(--green); }
.ver { font-family: var(--mono); font-size: 9px; color: var(--dim); padding-left: 8px; border-left: 1px solid var(--border); }

/* ---------------------------------------------------------------- layout */
.layout { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 372px minmax(0, 1fr); }
.rail {
  border-right: 1px solid var(--border);
  padding: 22px 22px 16px;
  display: flex; flex-direction: column; min-height: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 200px);
}
.rail-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 3px; scrollbar-width: thin; scrollbar-color: #2c2c36 transparent; }
.rail-scroll::-webkit-scrollbar { width: 4px; }
.rail-scroll::-webkit-scrollbar-thumb { background: #2c2c36; border-radius: 4px; }
.block { margin-bottom: 24px; animation: rise 620ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.block:nth-child(2) { animation-delay: 60ms; }
.block:nth-child(3) { animation-delay: 110ms; }
.block:nth-child(4) { animation-delay: 160ms; }
.block:nth-child(5) { animation-delay: 210ms; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.label {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em;
  color: #b9b9c4; text-transform: uppercase; margin-bottom: 10px;
}
.label .idx { color: var(--orange); font-size: 9px; letter-spacing: 0.06em; }
.label .label-en { color: var(--dim); letter-spacing: 0.16em; font-size: 8px; }
.label-gap { margin-top: 18px; }
.dot-sep { color: var(--dim); margin: 0 5px; }

/* --------------------------------------------------------------- combo */
.combo-field {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 13px 13px 15px; text-align: left;
  border: 1px solid #30303b; border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)), #0e0e14;
  transition: border-color 180ms, box-shadow 180ms, transform 180ms;
}
.combo-field:hover { border-color: #454552; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.025); }
.combo-field:focus-visible { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.14); }
.combo-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.combo-name { font-size: 14px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo-sub { font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo-right { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.key-badge {
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; color: var(--dim);
  border: 1px solid #2d2d38; border-radius: 5px; padding: 4px 6px; white-space: nowrap;
}
.key-badge b { color: var(--orange-2); font-weight: 400; margin-left: 3px; }
.chev { color: var(--dim); transition: transform 180ms; }
.combo-field[aria-expanded="true"] .chev { transform: rotate(180deg); }
.combo-foot { display: flex; align-items: center; margin-top: 8px; font-family: var(--mono); font-size: 8.5px; color: var(--dim); letter-spacing: 0.06em; }
.hint { margin: 9px 0 0; color: var(--dim); font-size: 10.5px; line-height: 1.7; }

/* ------------------------------------------------------------- segmented */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: #0d0d12; }
.seg button {
  height: 38px; border: 0; background: transparent; color: var(--muted);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  border-right: 1px solid var(--border); transition: background 160ms, color 160ms;
  position: relative;
}
.seg button:last-child { border-right: 0; }
.seg button:hover:not(.active):not(:disabled) { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.seg button.active { color: #1a0d03; background: linear-gradient(180deg, #ffb36b, #ff7a1a); font-weight: 700; }
.seg button:disabled { color: #4a4a56; cursor: not-allowed; }
.seg-sm button { height: 34px; font-family: var(--sans); font-size: 11px; letter-spacing: 0.02em; }

/* -------------------------------------------------------------- params */
.param-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.param-head label { font-size: 11px; color: var(--muted); }
.param-head output { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; line-height: 1; }
.range { --p: 7%; width: 100%; height: 20px; margin: 0; appearance: none; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--orange) 0 var(--p), #2a2a34 var(--p) 100%); }
.range::-moz-range-track { height: 3px; border-radius: 3px; background: #2a2a34; }
.range::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--orange); }
.range::-webkit-slider-thumb { appearance: none; width: 13px; height: 13px; margin-top: -5px; border-radius: 50%; background: #0b0b0f; border: 2px solid var(--orange); box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.12), 0 0 12px rgba(255, 122, 26, 0.5); }
.range::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: #0b0b0f; border: 2px solid var(--orange); }
.range:focus-visible { outline: none; }
.range-marks { display: flex; justify-content: space-between; margin: -2px 0 14px; font-family: var(--mono); font-size: 8px; color: var(--dim); }
.check-row { display: flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; padding: 2px 0; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox { width: 15px; height: 15px; border: 1px solid #3b3b47; border-radius: 4px; background: #0d0d12; display: grid; place-items: center; transition: all 160ms; flex: 0 0 15px; }
.checkbox::after { content: ""; width: 7px; height: 4px; border-left: 1.5px solid #160b03; border-bottom: 1.5px solid #160b03; transform: rotate(-45deg) translateY(-1px); opacity: 0; transition: opacity 120ms; }
.check-row input:checked + .checkbox { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 12px rgba(255, 122, 26, 0.3); }
.check-row input:checked + .checkbox::after { opacity: 1; }
.check-row input:focus-visible + .checkbox { box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.16); }
.check-row input:disabled + .checkbox { opacity: 0.35; }
.check-label { font-size: 11.5px; color: var(--text); }
.check-tip { margin-left: auto; font-family: var(--mono); font-size: 8px; color: var(--dim); text-align: right; }

/* ------------------------------------------------------------- evidence */
.ev-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.055); font-size: 10.5px; color: var(--muted); }
.ev-row:last-child { border-bottom: 0; }
.ev-icon { width: 15px; height: 15px; display: grid; place-items: center; border: 1px solid #33333e; border-radius: 4px; font-size: 9px; color: var(--orange); flex: 0 0 15px; }
.ev-text { color: #c6c6cf; }
.ev-state { margin-left: auto; font-family: var(--mono); font-size: 8px; color: var(--dim); white-space: nowrap; }

/* ------------------------------------------------------------------ run */
.rail-bottom { flex: 0 0 auto; padding-top: 14px; border-top: 1px solid var(--border); }
.run-btn {
  width: 100%; height: 56px; border: 0; border-radius: 10px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(120deg, #ff6a00 0%, #ff8a2c 48%, #ffb36b 100%);
  color: #170b03; font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: 0.06em;
  box-shadow: 0 10px 30px rgba(255, 106, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 160ms, box-shadow 160ms, filter 160ms;
}
.run-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.25) 48%, transparent 62%); transform: translateX(-120%); transition: transform 700ms; }
.run-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 40px rgba(255, 106, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.run-btn:hover::after { transform: translateX(120%); }
.run-btn:active { transform: translateY(0); }
.run-btn:disabled { filter: grayscale(0.4) brightness(0.8); cursor: not-allowed; transform: none; }
.run-btn.running { background: linear-gradient(120deg, #2a1608, #3a1d08); color: var(--orange-2); box-shadow: inset 0 0 0 1px rgba(255, 122, 26, 0.4), 0 0 30px rgba(255, 122, 26, 0.12); }
.run-btn.running::after { background: linear-gradient(105deg, transparent 30%, rgba(255, 122, 26, 0.16) 48%, transparent 62%); transform: translateX(-120%); animation: scan 2.4s linear infinite; }
@keyframes scan { to { transform: translateX(120%); } }
.run-icon { font-size: 12px; width: 18px; height: 18px; display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; }
.run-btn.running .run-icon { border-radius: 3px; }
.run-btn.running .run-icon::before { content: ""; width: 7px; height: 7px; background: currentColor; }
.run-btn.running .run-icon { font-size: 0; }
.run-label em { font-style: normal; font-weight: 400; font-family: var(--sans); font-size: 11px; letter-spacing: 0.02em; opacity: 0.75; margin-left: 4px; }
.run-pct { position: absolute; right: 16px; font-size: 11px; opacity: 0.8; }
.run-sub { margin-top: 8px; text-align: center; font-family: var(--mono); font-size: 8px; letter-spacing: 0.06em; color: var(--dim); }

/* ----------------------------------------------------------------- stage */
.stage { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 20px 24px 14px; }
.stage-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 2px 0 16px; }
.state { display: flex; align-items: center; gap: 12px; min-width: 0; }
.state-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(61, 220, 151, 0.6); flex: 0 0 8px; transition: background 200ms, box-shadow 200ms; }
.state-dot.running { background: var(--orange); box-shadow: 0 0 14px rgba(255, 122, 26, 0.8); animation: pulseDot 1.3s ease-in-out infinite; }
.state-dot.error { background: var(--red); box-shadow: 0 0 14px rgba(255, 93, 108, 0.7); }
.state-dot.warn { background: var(--yellow); box-shadow: 0 0 14px rgba(255, 209, 102, 0.6); }
@keyframes pulseDot { 50% { opacity: 0.35; transform: scale(0.75); } }
.state-copy { min-width: 0; }
.state-text { font-size: 18px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.25; }
.state-msg { font-family: var(--mono); font-size: 9px; color: var(--dim); letter-spacing: 0.03em; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.progress { width: 270px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.progress-num { font-family: var(--mono); font-size: 22px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.progress-num small { font-size: 10px; color: var(--dim); font-weight: 400; margin-left: 2px; }
.progress-track { width: 100%; height: 3px; background: #24242d; border-radius: 3px; overflow: hidden; }
.progress-track i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--orange-2)); box-shadow: 0 0 12px rgba(255, 122, 26, 0.5); transition: width 420ms cubic-bezier(0.16, 1, 0.3, 1); }

/* ----------------------------------------------------------------- table */
.table-shell { position: relative; flex: 1 1 auto; min-height: 260px; border: 1px solid var(--border); border-radius: 13px; background: rgba(13, 13, 18, 0.62); overflow: auto; scrollbar-width: thin; scrollbar-color: #2c2c36 transparent; }
.table-shell::-webkit-scrollbar { width: 5px; height: 5px; }
.table-shell::-webkit-scrollbar-thumb { background: #2c2c36; border-radius: 4px; }
.table { min-width: 760px; display: flex; flex-direction: column; min-height: 100%; }
.thead, .row { display: grid; align-items: center; padding: 0 16px; }
.iperf .thead, .iperf .row { grid-template-columns: 1.42fr 1.62fr 0.7fr repeat(4, 1fr); }
.proxy-table .thead, .proxy-table .row { grid-template-columns: 1.45fr 1.4fr 0.65fr 1fr 1fr 0.8fr; }
.thead { position: sticky; top: 0; z-index: 2; height: 34px; background: rgba(16, 16, 22, 0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 8px; letter-spacing: 0.12em; color: var(--dim); text-transform: uppercase; }
.thead > span { padding: 0 8px; }
.row { min-height: 72px; border-bottom: 1px solid rgba(255, 255, 255, 0.052); position: relative; transition: background 180ms; }
.row:last-child { border-bottom: 0; }
.row:hover { background: rgba(255, 255, 255, 0.018); }
.row.active { background: linear-gradient(90deg, rgba(255, 122, 26, 0.075), transparent 55%); }
.row.active::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--orange); box-shadow: 0 0 12px rgba(255, 122, 26, 0.6); }
.row.error { background: rgba(255, 93, 108, 0.035); }
.cell { padding: 9px 8px; min-width: 0; }
.isp { display: flex; align-items: center; gap: 9px; min-width: 0; }
.isp-dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; box-shadow: 0 0 8px currentColor; }
.isp-name { font-size: 14px; font-weight: 600; line-height: 1.2; }
.isp-sub { font-family: var(--mono); font-size: 8px; color: var(--dim); margin-top: 3px; letter-spacing: 0.03em; }
.stack { display: inline-flex; margin-left: 6px; padding: 1px 5px; border: 1px solid #30303b; border-radius: 3px; font-family: var(--mono); font-size: 7px; color: var(--muted); vertical-align: 1px; }
.egress-ip { font-family: var(--mono); font-size: 11px; color: #dcdce4; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.egress-geo { font-size: 9px; color: var(--dim); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; padding: 1px 5px; border-radius: 3px; font-family: var(--mono); font-size: 7px; letter-spacing: 0.04em; border: 1px solid transparent; }
.badge.ok { color: var(--green); background: rgba(61, 220, 151, 0.08); border-color: rgba(61, 220, 151, 0.2); }
.badge.warn { color: var(--yellow); background: rgba(255, 209, 102, 0.08); border-color: rgba(255, 209, 102, 0.18); }
.badge.err { color: var(--red); background: rgba(255, 93, 108, 0.08); border-color: rgba(255, 93, 108, 0.18); }
.badge.wait { color: var(--dim); background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.06); }
.lat-val { font-family: var(--mono); font-size: 16px; font-weight: 700; line-height: 1; }
.lat-unit { font-family: var(--mono); font-size: 8px; color: var(--dim); margin-left: 2px; }
.loss { font-family: var(--mono); font-size: 8px; color: var(--dim); margin-top: 5px; white-space: nowrap; }
.speed { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.speed-val { font-family: var(--mono); font-size: 17px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.speed-val.empty { color: #454552; font-weight: 400; }
.speed-unit { font-family: var(--mono); font-size: 7px; color: var(--dim); letter-spacing: 0.06em; margin-top: 1px; }
.speed-bar { width: 100%; max-width: 92px; height: 2px; border-radius: 2px; background: #262630; margin-top: 6px; overflow: hidden; }
.speed-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #ff7a1a, #ffb36b); transition: width 500ms cubic-bezier(0.16, 1, 0.3, 1); }
.row.active .speed-bar i { background: linear-gradient(90deg, #ff7a1a, #ffd166); }
.row .speed.pending .speed-val { color: #454552; }
.spin-dot { width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--orange); border-top-color: transparent; animation: spin 0.8s linear infinite; display: inline-block; vertical-align: -1px; margin-right: 5px; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty { position: absolute; inset: 34px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; transition: opacity 260ms, visibility 260ms; background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(255, 122, 26, 0.045), transparent 70%); }
.empty.hidden { opacity: 0; visibility: hidden; }
.gauge { width: 148px; height: 148px; margin-bottom: 16px; opacity: 0.9; }
.gauge svg { width: 100%; height: 100%; overflow: visible; }
.gauge-ring { fill: none; stroke: rgba(255, 255, 255, 0.075); stroke-width: 1; transform-origin: 110px 110px; }
.gauge-ring.r2 { stroke-dasharray: 2 7; stroke: rgba(255, 255, 255, 0.1); animation: rotate 34s linear infinite; }
.gauge-ring.r1 { stroke-dasharray: 1 11; animation: rotate 60s linear infinite reverse; }
.gauge-arc { fill: none; stroke: url(#g); stroke: var(--orange); stroke-width: 1.3; stroke-linecap: round; opacity: 0.28; stroke-dasharray: 40 160; animation: rotate 8s linear infinite; transform-origin: 110px 110px; }
.gauge-core { fill: var(--orange); opacity: 0.8; filter: drop-shadow(0 0 8px rgba(255, 122, 26, 0.7)); }
.gauge-tick { stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; }
@keyframes rotate { to { transform: rotate(360deg); } }
.empty-title { font-size: 17px; font-weight: 600; letter-spacing: 0.02em; }
.empty-title span { color: var(--orange); font-family: var(--mono); }
.empty-sub { margin-top: 7px; font-family: var(--mono); font-size: 8.5px; color: var(--dim); letter-spacing: 0.04em; }

/* ----------------------------------------------------------------- proof */
.proof { flex: 0 0 auto; padding-top: 14px; }
.proof-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.proof-head .label { margin-bottom: 0; }
.proof-hint { font-family: var(--mono); font-size: 8px; color: var(--dim); letter-spacing: 0.04em; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.proof-card { border: 1px solid var(--border); border-radius: 9px; padding: 9px 11px 8px; background: rgba(16, 16, 22, 0.6); min-width: 0; position: relative; overflow: hidden; }
.proof-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--pc, var(--orange)); opacity: 0.55; }
.proof-card.ok { border-color: rgba(61, 220, 151, 0.16); }
.proof-top { display: flex; align-items: center; gap: 7px; min-width: 0; }
.proof-isp { font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.proof-ip { font-family: var(--mono); font-size: 8px; color: var(--dim); margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proof-cmd { font-family: var(--mono); font-size: 7.5px; color: var(--orange-2); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.9; }
.proof-raw { font-family: var(--mono); font-size: 7.5px; color: var(--muted); margin-top: 4px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proof-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; gap: 6px; }
.proof-geo { font-size: 7.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ok-badge { font-family: var(--mono); font-size: 7px; letter-spacing: 0.05em; color: var(--green); background: rgba(61, 220, 151, 0.08); border: 1px solid rgba(61, 220, 151, 0.18); border-radius: 3px; padding: 1px 4px; white-space: nowrap; }
.ok-badge.wait { color: var(--dim); border-color: rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.02); }

/* ------------------------------------------------------------------- log */
.log { flex: 0 0 auto; margin-top: 10px; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: rgba(11, 11, 15, 0.72); }
.log-head { width: 100%; height: 32px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 0; background: transparent; text-align: left; }
.log-kicker { font-family: var(--mono); font-size: 7px; letter-spacing: 0.14em; color: var(--dim); }
.log-last { font-family: var(--mono); font-size: 8px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.log-count { font-family: var(--mono); font-size: 7px; color: var(--dim); }
.log-head .chev { transition: transform 180ms; }
.log.open .log-head .chev { transform: rotate(180deg); }
.log-body { max-height: 0; overflow: auto; transition: max-height 260ms cubic-bezier(0.16, 1, 0.3, 1); padding: 0 11px; scrollbar-width: thin; }
.log.open .log-body { max-height: 120px; padding-bottom: 8px; }
.log-line { display: flex; gap: 8px; font-family: var(--mono); font-size: 7.5px; line-height: 1.75; color: var(--muted); white-space: nowrap; }
.log-time { color: #484853; flex: 0 0 auto; }
.log-level { width: 34px; flex: 0 0 34px; letter-spacing: 0.04em; color: var(--dim); }
.log-level.info { color: #6f9cff; }
.log-level.error { color: var(--red); }
.log-level.warn { color: var(--yellow); }
.log-text { overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------------ foot */
.stage-foot { flex: 0 0 auto; height: 46px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 10px; }
.foot-actions { display: flex; gap: 8px; }
.ghost-btn { height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; border: 1px solid #30303b; border-radius: 5px; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; transition: all 160ms; }
.ghost-btn:hover:not(:disabled) { color: var(--text); border-color: #4a4a58; background: rgba(255, 255, 255, 0.03); }
.ghost-btn.accent { color: var(--orange-2); border-color: rgba(255, 122, 26, 0.35); }
.ghost-btn.accent:hover:not(:disabled) { background: rgba(255, 122, 26, 0.08); border-color: var(--orange); }
.ghost-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.foot-meta { font-family: var(--mono); font-size: 7.5px; color: var(--dim); display: flex; align-items: center; gap: 6px; white-space: nowrap; padding-bottom: 7px; }
.foot-meta b { color: var(--muted); font-weight: 400; }
.foot-meta .sep { color: #33333d; }

/* --------------------------------------------------------------- popover */
.popover { position: fixed; z-index: 70; width: 430px; max-width: calc(100vw - 24px); padding: 8px; border: 1px solid #33333e; border-radius: 12px; background: rgba(15, 15, 21, 0.98); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); backdrop-filter: blur(20px); animation: popIn 160ms ease-out both; }
@keyframes popIn { from { opacity: 0; transform: translateY(-5px) scale(0.99); } to { opacity: 1; transform: none; } }
.pop-head { display: flex; align-items: center; justify-content: space-between; padding: 7px 9px 8px; font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; color: var(--muted); }
.pop-head span { color: var(--dim); font-size: 7px; }
.pop-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; text-align: left; }
.pop-item:hover { background: rgba(255, 255, 255, 0.035); }
.pop-item.active { border-color: rgba(255, 122, 26, 0.25); background: rgba(255, 122, 26, 0.06); }
.pop-item-main { min-width: 0; flex: 1; }
.pop-item-name { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-item-sub { font-family: var(--mono); font-size: 7.5px; color: var(--dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-item-key { font-family: var(--mono); font-size: 7.5px; color: var(--orange-2); border: 1px solid rgba(255, 122, 26, 0.2); border-radius: 3px; padding: 2px 4px; white-space: nowrap; }

/* ------------------------------------------------------------------ lock */
.lock { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(4, 4, 6, 0.72); backdrop-filter: blur(18px) saturate(0.8); -webkit-backdrop-filter: blur(18px) saturate(0.8); animation: fadeIn 240ms ease-out both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lock-card { width: min(430px, 100%); border: 1px solid #2d2d38; border-radius: 18px; padding: 30px 30px 22px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%), #0f0f15; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05); position: relative; overflow: hidden; }
.lock-card::before { content: ""; position: absolute; width: 300px; height: 200px; top: -120px; left: 50%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 122, 26, 0.22), transparent); pointer-events: none; }
.lock-mark { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #ff6a00, #ffb36b); display: grid; place-items: center; margin-bottom: 20px; box-shadow: 0 0 30px rgba(255, 122, 26, 0.3); }
.lock-mark span { font-family: var(--mono); font-weight: 700; font-size: 22px; color: #160b03; }
.lock-kicker { font-family: var(--mono); font-size: 8px; letter-spacing: 0.16em; color: var(--orange); margin-bottom: 8px; }
.lock-title { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: 0.01em; }
.lock-sub { margin: 9px 0 20px; color: var(--muted); font-size: 11.5px; line-height: 1.75; }
.lock-form { display: flex; gap: 8px; }
.lock-form input { flex: 1; min-width: 0; height: 46px; padding: 0 13px; border: 1px solid #34343f; border-radius: 8px; background: #0a0a0e; color: var(--text); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; outline: none; transition: border-color 160ms, box-shadow 160ms; }
.lock-form input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.12); }
.lock-form button { width: 46px; height: 46px; border: 0; border-radius: 8px; background: linear-gradient(135deg, #ff6a00, #ffb36b); color: #170b03; font-family: var(--mono); font-size: 18px; font-weight: 700; }
.lock-error { min-height: 18px; margin-top: 8px; color: var(--red); font-family: var(--mono); font-size: 8.5px; }
.lock-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 7.5px; color: var(--dim); letter-spacing: 0.03em; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lock-admin { border: 0; background: transparent; color: var(--orange-2); font-family: var(--mono); font-size: 8px; letter-spacing: 0.05em; padding: 2px 0; white-space: nowrap; }
.lock-admin:hover { color: var(--orange); text-decoration: underline; }

/* ----------------------------------------------------------------- modal */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3, 3, 5, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: fadeIn 200ms ease-out both; }
.modal-card { position: relative; width: min(1060px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; border: 1px solid #30303b; border-radius: 16px; background: #0d0d12; box-shadow: 0 50px 120px rgba(0, 0, 0, 0.7); overflow: hidden; animation: modalIn 320ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.985); } to { opacity: 1; transform: none; } }
.modal-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.modal-kicker { font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.14em; color: var(--orange); }
.modal-title { font-size: 15px; font-weight: 600; margin-top: 2px; }
.icon-btn { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; display: grid; place-items: center; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.modal-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 14px; background: #08080b; }
.modal-body img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid #26262f; }
.modal-foot { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--border); }
.modal-note { font-family: var(--mono); font-size: 8px; color: var(--dim); }
.modal-actions { display: flex; gap: 8px; }

/* --------------------------------------------------------------- confirm */
.confirm { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; background: rgba(3, 3, 5, 0.7); backdrop-filter: blur(10px); }
.confirm-card { width: min(400px, 100%); border: 1px solid #33333e; border-radius: 14px; background: #101016; padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); animation: modalIn 220ms ease-out both; }
.confirm-title { font-size: 15px; font-weight: 600; }
.confirm-text { margin-top: 8px; color: var(--muted); font-size: 11.5px; line-height: 1.7; white-space: pre-line; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* ----------------------------------------------------------------- toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 120; display: flex; align-items: center; gap: 9px; max-width: min(560px, calc(100vw - 32px)); padding: 10px 16px; border: 1px solid #34343f; border-radius: 999px; background: rgba(16, 16, 22, 0.96); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); font-family: var(--mono); font-size: 9px; color: var(--text); animation: toastIn 300ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.toast-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(61, 220, 151, 0.7); flex: 0 0 6px; }
.toast.error .toast-dot { background: var(--red); box-shadow: 0 0 8px rgba(255, 93, 108, 0.7); }
.toast.warn .toast-dot { background: var(--yellow); }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1240px) {
  .layout { grid-template-columns: 342px minmax(0, 1fr); }
  .rail { padding-left: 18px; padding-right: 18px; }
  .progress { width: 220px; }
  .foot-meta span:nth-last-child(-n+2) { display: none; }
}
@media (max-width: 980px) {
  body { padding: 10px; overflow: auto; }
  .app { height: auto; min-height: calc(100vh - 20px); border-radius: 15px; }
  .layout { display: block; overflow: visible; }
  .rail { border-right: 0; border-bottom: 1px solid var(--border); }
  .rail-scroll { overflow: visible; }
  .rail-bottom { margin-top: 4px; }
  .stage { padding: 16px 16px 12px; }
  .table-shell { height: 420px; flex: none; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-card { min-height: 0; }
  .stage-head { align-items: flex-start; }
  .state-msg { max-width: 60vw; }
  .topbar { padding: 0 16px; }
  .chip-net, .ver { display: none; }
}
@media (max-width: 620px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 15px; }
  .stage-head { flex-direction: column; gap: 10px; }
  .progress { width: 100%; align-items: stretch; }
  .progress-num { align-self: flex-end; }
  .state-msg { max-width: 80vw; }
  .foot-meta { display: none; }
  .stage-foot { justify-content: flex-start; }
  .report-modal, .lock-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ------------------------------------------------------------------ admin */
.gear { width: 30px; height: 30px; border-radius: 8px; color: var(--muted); }
.gear:hover { color: var(--orange-2); border-color: rgba(255,122,26,.35); background: rgba(255,122,26,.06); }
.admin { position: fixed; inset: 0; z-index: 101; display: grid; place-items: center; padding: 20px; }
.admin-backdrop { position: absolute; inset: 0; background: rgba(3,3,5,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: fadeIn 200ms ease-out both; }
.admin-panel { position: relative; width: min(880px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; border: 1px solid #30303b; border-radius: 16px; background: #0d0d12; box-shadow: 0 50px 120px rgba(0,0,0,.7); overflow: hidden; animation: modalIn 300ms cubic-bezier(.16,1,.3,1) both; }
.admin-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.admin-auth { padding: 26px 24px; }
.admin-auth-label { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--muted); margin-bottom: 10px; }
.admin-auth-label span { color: var(--dim); }
.admin-auth-row { display: flex; gap: 8px; }
.admin-auth-row input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #34343f; border-radius: 8px; background: #0a0a0e; color: var(--text); font-family: var(--mono); font-size: 12px; outline: none; }
.admin-auth-row input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,26,.12); }
.admin-auth-err { min-height: 16px; margin-top: 8px; color: var(--red); font-family: var(--mono); font-size: 8.5px; }
.admin-auth-hint { margin-top: 10px; color: var(--dim); font-size: 10.5px; line-height: 1.7; }
.admin-body { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.admin-tabs { flex: 0 0 auto; display: flex; gap: 2px; padding: 10px 14px 0; border-bottom: 1px solid var(--border); }
.admin-tabs button { border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 8px 14px; border-radius: 8px 8px 0 0; border-bottom: 2px solid transparent; transition: all 150ms; }
.admin-tabs button:hover { color: var(--text); }
.admin-tabs button.active { color: var(--orange-2); border-bottom-color: var(--orange); background: rgba(255,122,26,.05); }
.admin-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 18px; scrollbar-width: thin; scrollbar-color: #2c2c36 transparent; }
.admin-content::-webkit-scrollbar { width: 5px; }
.admin-content::-webkit-scrollbar-thumb { background: #2c2c36; border-radius: 4px; }
.adm-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.adm-hint { font-size: 10px; color: var(--dim); }
.adm-item { position: relative; border: 1px solid var(--border); border-radius: 10px; padding: 12px 40px 12px 12px; margin-bottom: 10px; background: rgba(16,16,22,.5); }
.adm-item-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; }
.adm-item label { display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 8px; letter-spacing: .06em; color: var(--dim); }
.adm-item input[type="text"], .adm-item input[type="number"], .adm-item input:not([type]), .adm-item select, .adm-item textarea { height: 32px; padding: 0 9px; border: 1px solid #30303b; border-radius: 6px; background: #0a0a0e; color: var(--text); font-family: var(--mono); font-size: 11px; outline: none; width: 100%; }
.adm-item textarea { height: auto; min-height: 54px; padding: 7px 9px; resize: vertical; line-height: 1.5; }
.adm-item input:focus, .adm-item select:focus, .adm-item textarea:focus { border-color: var(--orange); }
.adm-item select { appearance: none; }
.adm-en { flex-direction: row !important; align-items: center; gap: 7px !important; align-self: end; height: 32px; color: var(--muted) !important; font-size: 10px !important; }
.adm-en input { width: 14px; height: 14px; accent-color: var(--orange); }
.adm-del { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border: 1px solid rgba(255,93,108,.25); border-radius: 6px; background: transparent; color: var(--red); font-size: 13px; line-height: 1; display: grid; place-items: center; }
.adm-del:hover { background: rgba(255,93,108,.1); }
.adm-checks { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.adm-check { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); border: 1px solid #30303b; border-radius: 6px; padding: 4px 8px; cursor: pointer; }
.adm-check input { accent-color: var(--orange); width: 12px; height: 12px; }
.adm-check.on { border-color: rgba(255,122,26,.4); color: var(--orange-2); background: rgba(255,122,26,.06); }
.adm-key-row { display: flex; gap: 7px; align-items: center; }
.adm-key-row input { flex: 1; }
.adm-mini { height: 32px; padding: 0 10px; border: 1px solid #30303b; border-radius: 6px; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .06em; white-space: nowrap; }
.adm-mini:hover { color: var(--orange-2); border-color: rgba(255,122,26,.35); }
.adm-section-title { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--dim); margin: 4px 0 10px; }
.adm-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: rgba(16,16,22,.5); }
.adm-toggle-copy { min-width: 0; }
.adm-toggle-name { font-size: 12px; font-weight: 600; }
.adm-toggle-desc { font-size: 10px; color: var(--dim); margin-top: 2px; }
.adm-switch { position: relative; width: 38px; height: 21px; flex: 0 0 38px; }
.adm-switch input { position: absolute; opacity: 0; }
.adm-switch i { position: absolute; inset: 0; border-radius: 999px; background: #2a2a34; transition: background 160ms; cursor: pointer; }
.adm-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #6a6a76; transition: all 160ms; }
.adm-switch input:checked + i { background: var(--orange); }
.adm-switch input:checked + i::after { left: 20px; background: #160b03; }
.admin-foot { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--border); }
.admin-status { font-family: var(--mono); font-size: 8.5px; color: var(--dim); }
.admin-status.dirty { color: var(--yellow); }
.admin-status.saved { color: var(--green); }
.admin-status.err { color: var(--red); }
.admin-actions { display: flex; gap: 8px; }
.adm-empty { text-align: center; color: var(--dim); font-size: 11px; padding: 30px 0; }
@media (max-width: 620px) { .admin-panel { max-height: calc(100vh - 20px); } .admin-tabs { overflow-x: auto; } .adm-item { padding-right: 12px; } .adm-del { position: static; margin-top: 8px; } }
