/* webco - mint glass theme. All assets are local: no external requests. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg-1: #f3fbf8;
  --bg-2: #e3f3ec;
  --bg-3: #d6eee4;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-line: rgba(255, 255, 255, 0.92);
  --solid: #ffffff;
  --ink: #12372e;
  --ink-2: #3f5f55;
  --muted: #4a675e;
  --line: #d3e7de;
  --accent: #2f9e7b;
  --accent-deep: #1f7a5e;
  --accent-soft: #d7f0e6;
  --accent-ink: #1f5e4a;
  --good: #2f9e7b;
  --good-soft: #dcf2e8;
  --warn: #b36700;
  --warn-soft: #fff1dc;
  --warn-ink: #7a4600;
  --bad: #c2352a;
  --bad-soft: #fce5e2;
  --bad-ink: #a12a20;
  --blue: #2f62d1;
  --blue-soft: #e5edfd;
  --blue-ink: #1f4aa8;
  --violet: #6b48c2;
  --violet-soft: #efe9fb;
  --violet-ink: #55369f;
  --shadow: 0 18px 40px rgba(31, 94, 74, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-sm: 0 8px 20px rgba(31, 94, 74, 0.1);
  --blur: blur(20px);
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg-1: #0d1a17;
  --bg-2: #0f201c;
  --bg-3: #122823;
  --glass: rgba(24, 44, 39, 0.62);
  --glass-strong: rgba(28, 52, 46, 0.86);
  --glass-line: rgba(132, 214, 182, 0.14);
  --solid: #15302a;
  --ink: #e5f4ee;
  --ink-2: #b9d3c9;
  --muted: #9dbbb0;
  --line: #24443c;
  --accent: #46c497;
  --accent-deep: #2f9e7b;
  --accent-soft: #163b31;
  --accent-ink: #8de3c2;
  --good-soft: #143a2f;
  --warn-soft: #3a2a10;
  --warn-ink: #f6c67e;
  --bad-soft: #401b18;
  --bad-ink: #ffaaa1;
  --blue-soft: #1a2a4d;
  --blue-ink: #a9c3ff;
  --violet-soft: #2a2245;
  --violet-ink: #cdbdff;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: var(--bg-2); }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 55%, var(--bg-3) 100%) fixed;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: var(--accent-deep); }
:root[data-theme="dark"] a { color: var(--accent-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { margin: 0; }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------- glass surfaces ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.tile {
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-md);
}
body.perf .glass, body.perf .modal-card, body.perf .sidebar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--solid); }
body.perf .leaf { display: none; }

/* ---------- app shell ---------- */
.shell { display: flex; flex-wrap: wrap; gap: 18px; padding: 18px; min-height: 100vh; position: relative; }
.sidebar {
  flex: 1 1 210px; max-width: 228px; min-width: 0;
  display: flex; flex-direction: column; gap: 4px; padding: 20px 14px;
  position: relative; z-index: 1;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 18px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  background: linear-gradient(145deg, #5bbf9a, #1f7a5e);
  box-shadow: 0 6px 16px rgba(31, 122, 94, 0.28);
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-name { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.nav-item {
  display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 14px;
  border-radius: 999px; border: 0; background: transparent; color: var(--ink-2);
  text-decoration: none; font-weight: 500; cursor: pointer; text-align: left; width: 100%;
}
.nav-item:hover { background: var(--glass-strong); color: var(--ink); }
.nav-item.active {
  background: linear-gradient(145deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 70%, var(--accent) 12%));
  color: var(--ink); font-weight: 700; box-shadow: var(--shadow-sm);
}
.nav-item .badge { margin-left: auto; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.me { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none; font-weight: 700; font-size: 13px;
  background: linear-gradient(145deg, #d7f0e6, #b7e2d0); color: #1f5e4a;
  display: inline-flex; align-items: center; justify-content: center;
}
.main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.topbar .title { flex: 1 1 320px; min-width: 0; }
.topbar h1 { font-family: var(--display); font-size: 36px; line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card-head h2 { font-family: var(--display); font-size: 21px; font-weight: 600; flex: 1 1 auto; letter-spacing: -0.01em; }
.leaf { position: fixed; pointer-events: none; z-index: 0; opacity: 0.55; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); font-weight: 600;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--solid); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary {
  border: 0; color: #fff;
  background: linear-gradient(145deg, #45b18c, #1f7a5e);
  box-shadow: 0 10px 22px rgba(31, 122, 94, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:hover { background: linear-gradient(145deg, #3ea582, #1a6b52); }
.btn-danger { border: 0; color: #fff; background: linear-gradient(145deg, #e0675b, #b8342a); box-shadow: 0 10px 22px rgba(184, 52, 42, 0.25); }
.btn-soft { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.btn-lg { min-height: 54px; border-radius: 18px; font-size: 16px; padding: 0 22px; }
.btn-sm { min-height: 32px; border-radius: 10px; padding: 0 10px; font-size: 12px; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }

.field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-2); min-width: 0; }
.input, .select, .textarea {
  min-height: 42px; padding: 0 14px; border-radius: 14px;
  border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink);
  box-shadow: inset 0 2px 5px rgba(31, 94, 74, 0.07); font-size: 14px; font-weight: 500; width: 100%;
}
.textarea { padding: 10px 14px; resize: vertical; min-height: 70px; }
.input::placeholder, .textarea::placeholder { color: #6f8a81; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 720px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--accent-soft) 75%, transparent); box-shadow: inset 0 2px 6px rgba(31, 94, 74, 0.1); }
.seg button { border: 0; background: transparent; min-height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer; color: var(--ink-2); font-weight: 600; }
.seg button.on { background: var(--solid); color: var(--ink); box-shadow: 0 4px 12px rgba(31, 94, 74, 0.14); }
.seg button:disabled { cursor: not-allowed; opacity: 0.6; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--glass-strong); border: 1px solid var(--glass-line); white-space: nowrap;
}
.chip .dot, .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.chip.good { background: var(--good-soft); color: var(--accent-ink); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn-ink); border-color: transparent; }
.chip.bad { background: var(--bad-soft); color: var(--bad-ink); border-color: transparent; }
.chip.blue { background: var(--blue-soft); color: var(--blue-ink); border-color: transparent; }
.chip.violet { background: var(--violet-soft); color: var(--violet-ink); border-color: transparent; }
.badge { min-width: 22px; padding: 2px 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; text-align: center; }
.badge.bad { background: var(--bad); }

/* status colours (never only mint: each state must be told apart) */
.st-ready { --st: var(--good); --st-bg: var(--good-soft); --st-ink: var(--accent-ink); }
.st-on_call { --st: var(--blue); --st-bg: var(--blue-soft); --st-ink: var(--blue-ink); }
.st-ringing { --st: var(--warn); --st-bg: var(--warn-soft); --st-ink: var(--warn-ink); }
.st-wrap { --st: var(--violet); --st-bg: var(--violet-soft); --st-ink: var(--violet-ink); }
.st-idle { --st: #8a7bd1; --st-bg: var(--violet-soft); --st-ink: var(--violet-ink); }
.st-break, .st-meeting { --st: #c2541b; --st-bg: #fde9de; --st-ink: #8f3a0e; }
.st-logged_off { --st: #8a9a94; --st-bg: rgba(138, 154, 148, 0.15); --st-ink: var(--muted); }
:root[data-theme="dark"] .st-break, :root[data-theme="dark"] .st-meeting { --st-bg: #3a2214; --st-ink: #ffb894; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--st-bg); color: var(--st-ink); }
.status-pill .dot { background: var(--st); }

/* ---------- lists & tables ---------- */
.list { display: flex; flex-direction: column; }
.list-item {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; padding: 11px 12px;
  border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; border-radius: 0;
}
.list-item:first-child { border-top: 0; }
.list-item:hover { background: var(--glass-strong); }
.list-item.selected { background: var(--accent-soft); }
.list-item.flagged { box-shadow: inset 3px 0 0 var(--bad); }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11px; font-weight: 700; color: var(--muted); padding: 8px 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.table td { padding: 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr.group td { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.kpi { padding: 14px 16px; text-align: left; }
.kpi .v { font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1.1; }
.kpi .l { font-size: 12px; font-weight: 600; color: var(--muted); }

/* ---------- toggles ---------- */
.switch { flex: none; width: 58px; height: 34px; border-radius: 999px; border: 0; padding: 3px; cursor: pointer; display: flex; background: #c9ddd5; box-shadow: inset 0 2px 6px rgba(31, 94, 74, 0.18); }
.switch[aria-checked="true"] { justify-content: flex-end; background: linear-gradient(145deg, #45b18c, #1f7a5e); }
.switch span { width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(31, 94, 74, 0.25); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 32px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- toast & modal ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 40px)); }
.toast { padding: 12px 16px; border-radius: 16px; background: var(--solid); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-weight: 600; }
.toast.err { border-color: var(--bad); color: var(--bad-ink); background: var(--bad-soft); }
.toast.ok { border-color: var(--accent); color: var(--accent-ink); background: var(--good-soft); }
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(8, 24, 20, 0.45); display: flex; align-items: flex-start; justify-content: center; padding: 70px 16px; overflow-y: auto; }
.modal-card { width: 100%; max-width: 540px; padding: 22px; display: flex; flex-direction: column; gap: 14px; background: var(--glass-strong); border: 1px solid var(--glass-line); border-radius: 26px; box-shadow: var(--shadow); backdrop-filter: blur(24px); }

/* ---------- agent ---------- */
.ring-wrap { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.ring-wrap svg { width: 220px; height: 220px; }
.ring-center { position: absolute; inset: 32px; border-radius: 50%; background: var(--glass-strong); box-shadow: inset 0 4px 12px rgba(31, 94, 74, 0.1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.ring-center .big { font-family: var(--display); font-size: 30px; font-weight: 600; }
.status-circles { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.status-circle { width: 82px; height: 82px; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass-strong); box-shadow: var(--shadow-sm); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 700; font-size: 13px; color: var(--ink); }
.status-circle[aria-pressed="true"] { background: linear-gradient(145deg, #e2f6ee, #c4eada); box-shadow: 0 12px 26px rgba(31, 94, 74, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.9); }
:root[data-theme="dark"] .status-circle[aria-pressed="true"] { background: var(--accent-soft); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fact { padding: 10px 12px; }
.fact .l { font-size: 11px; color: var(--muted); font-weight: 600; }
.fact .v { font-weight: 700; font-size: 15px; }
.phase { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 20px; border: 1px solid var(--glass-line); }
.phase .timer { margin-left: auto; font-size: 26px; font-weight: 600; }
.phase .pdot { width: 12px; height: 12px; border-radius: 50%; }
.phase.idle { background: var(--glass-strong); }
.phase.idle .pdot { background: #8aa79c; box-shadow: 0 0 0 5px rgba(138, 167, 156, 0.18); }
.phase.ringing { background: var(--warn-soft); color: var(--warn-ink); }
.phase.ringing .pdot { background: var(--warn); box-shadow: 0 0 0 5px rgba(179, 103, 0, 0.18); animation: pulse 1.2s infinite; }
.phase.answered { background: var(--good-soft); color: var(--accent-ink); }
.phase.answered .pdot { background: var(--good); box-shadow: 0 0 0 5px rgba(47, 158, 123, 0.2); }
.phase.wrap { background: var(--blue-soft); color: var(--blue-ink); }
.phase.wrap .pdot { background: var(--blue); }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(179, 103, 0, 0.05); } }
@media (prefers-reduced-motion: reduce) { .phase.ringing .pdot { animation: none; } }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.code-btn { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--glass-line); background: var(--glass-strong); cursor: pointer; text-align: left; font-weight: 600; color: var(--ink); }
.code-btn .k { width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); flex: none; }
.code-btn.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.steps { display: flex; gap: 6px; }
.step { flex: 1 1 0; display: flex; flex-direction: column; gap: 5px; }
.step .bar { height: 5px; border-radius: 3px; background: var(--line); }
.step.done .bar { background: var(--accent); }
.step.paid .bar { background: var(--good); }
.step .l { font-size: 11px; font-weight: 700; }
.timeline-item { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.timeline-item:first-child { border-top: 0; }
.bars { display: flex; gap: 12px; align-items: flex-end; }
.bar-col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bar-track { width: 100%; max-width: 42px; height: 120px; border-radius: 999px; background: var(--glass-strong); box-shadow: inset 0 3px 8px rgba(31, 94, 74, 0.1); display: flex; align-items: flex-end; padding: 4px; }
.bar-fill { width: 100%; border-radius: 999px; background: linear-gradient(180deg, #a9dec7, #6fc2a0); min-height: 6px; }
.bar-col.today .bar-fill { background: linear-gradient(180deg, #45b18c, #1f7a5e); }

/* ---------- supervisor ---------- */
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.agent-card { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; border-radius: 20px; background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: inset 4px 0 0 var(--st); }
.progress { height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 48px; padding: 48px 24px; position: relative; overflow: hidden; }
.login-hero { flex: 1 1 400px; max-width: 520px; display: flex; flex-direction: column; gap: 20px; position: relative; z-index: 1; }
.login-hero h1 { font-family: var(--display); font-size: clamp(40px, 6vw, 58px); line-height: 1.03; font-weight: 600; letter-spacing: -0.03em; }
.login-card { flex: 0 1 440px; padding: 32px 30px; border-radius: 30px; display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.drop { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0%, rgba(255, 255, 255, 0.4) 35%, rgba(126, 200, 168, 0.35) 100%); box-shadow: 0 4px 10px rgba(31, 94, 74, 0.15); pointer-events: none; }
body.perf .drop { display: none; }

.lock { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lock .card { max-width: 540px; width: 100%; }
.key-box { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; min-height: 110px; }
.server-id { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 700; letter-spacing: 0.03em; }

@media (max-width: 760px) {
  .shell { padding: 12px; gap: 12px; }
  .sidebar { max-width: none; flex-basis: 100%; flex-direction: row; flex-wrap: wrap; padding: 10px; }
  .brand { padding: 0 6px; flex-basis: 100%; }
  .nav-item { width: auto; }
  .side-foot { flex-basis: 100%; flex-direction: row; margin-top: 0; padding-top: 0; }
  .topbar h1 { font-size: 28px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- v0.2: live buckets, wizard, disposition picker ---------- */
.st-waiting { --st: var(--good); --st-bg: var(--good-soft); --st-ink: var(--accent-ink); }
.st-dialing { --st: #0e8fa8; --st-bg: #ddf3f7; --st-ink: #0b6577; }
.st-connected { --st: var(--blue); --st-bg: var(--blue-soft); --st-ink: var(--blue-ink); }
.st-queued { --st: var(--bad); --st-bg: var(--bad-soft); --st-ink: var(--bad-ink); }
:root[data-theme="dark"] .st-dialing { --st-bg: #10343b; --st-ink: #8fe0ef; }
.bucket-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 10px; }
.bucket { padding: 12px 14px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: inset 4px 0 0 var(--st); }
.bucket .v { font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1.05; }
.bucket .l { font-size: 12px; font-weight: 700; color: var(--st-ink); display: flex; align-items: center; gap: 6px; }
.bucket .l .dot { background: var(--st); }
.bucket.alert { background: var(--bad-soft); }
.mini { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--st-bg); color: var(--st-ink); white-space: nowrap; }
.mini .dot { background: var(--st); width: 7px; height: 7px; }
.mini.zero { opacity: 0.45; }
.wizard { display: flex; flex-direction: column; gap: 14px; }
.wizard fieldset { border: 1px solid var(--glass-line); border-radius: 18px; padding: 14px 16px; margin: 0; background: var(--glass-strong); display: flex; flex-direction: column; gap: 10px; }
.wizard legend { font-family: var(--display); font-weight: 600; font-size: 16px; padding: 0 6px; }
.modal-card.wide { max-width: 860px; }
.dp-row { display: flex; flex-wrap: wrap; gap: 6px; }
.dp-chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass-strong); cursor: pointer; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.dp-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.dp-chip .k { font-size: 10px; color: var(--muted); }
.dp-chip .dot { width: 8px; height: 8px; }
.waiting-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px 20px; text-align: center; }
.pulse-ring { width: 74px; height: 74px; border-radius: 50%; background: var(--good-soft); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 0 rgba(47, 158, 123, 0.35); animation: ring 1.8s infinite; }
@keyframes ring { 70% { box-shadow: 0 0 0 22px rgba(47, 158, 123, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 158, 123, 0); } }
@media (prefers-reduced-motion: reduce) { .pulse-ring { animation: none; } }
.plugin-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.tree-node { border: 1px solid var(--glass-line); border-radius: 16px; padding: 10px 12px; background: var(--glass-strong); display: flex; flex-direction: column; gap: 8px; }
.tree-children { margin-left: 22px; display: flex; flex-direction: column; gap: 6px; border-left: 2px solid var(--line); padding-left: 12px; }
.tree-row { display: grid; grid-template-columns: 120px minmax(140px, 1fr) 130px auto auto; gap: 8px; align-items: center; }
@media (max-width: 760px) { .tree-row { grid-template-columns: 1fr 1fr; } }
.input.sm, .select.sm { min-height: 34px; border-radius: 10px; font-size: 13px; padding: 0 10px; }
