/* Okhtapos panel design system */
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("vendor/manrope-latin.fc03edc2c673.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("vendor/manrope-latin-ext.91e6441f12d2.woff2") format("woff2-variations");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #1d1130; --ink-line: rgba(255,255,255,.08); --ink-hover: rgba(255,255,255,.06);
  --ink-active: rgba(255,255,255,.11); --ink-text: #d2c8e0; --ink-muted: #8d80a5; --ink-accent: #f08bbb;
  --bg: #f5f3f8; --surface: #ffffff; --surface-2: #faf8fc; --line: #e9e4f0; --line-strong: #d9d1e4;
  --text: #1c1426; --text-2: #4a4259; --muted: #786f8a;
  --accent: #b03a79; --accent-hover: #982e67; --accent-soft: #f9eaf2; --accent-text: #8d2a5f;
  --teal: #24818f; --plum: #6a4c9c; --gold: #c4901f;
  --good: #1d7756; --good-soft: #e2f3eb; --warn: #9c630a; --warn-soft: #fbefd9;
  --bad: #b3342e; --bad-soft: #fbe6e4;
  --r-lg: 16px; --r: 10px; --r-sm: 7px;
  --shadow: 0 1px 2px rgba(29,17,48,.04), 0 6px 20px -12px rgba(29,17,48,.12);
  --focus: 0 0 0 3px rgba(176,58,121,.24);
  color-scheme: light;
}
[data-theme="dark"] {
  --ink: #0e0818; --ink-line: rgba(255,255,255,.07); --ink-active: rgba(255,255,255,.09);
  --bg: #140d1e; --surface: #1c1429; --surface-2: #211830; --line: #2e2442; --line-strong: #3d3155;
  --text: #f0ebf6; --text-2: #cbc1d9; --muted: #9b90b0;
  --accent: #df679e; --accent-hover: #ea7fb0; --accent-soft: rgba(223,103,158,.14); --accent-text: #f193bf;
  --teal: #4fb3c0; --plum: #9d84cf; --gold: #e0b04e;
  --good: #52c49b; --good-soft: rgba(82,196,155,.13); --warn: #e7b04f; --warn-soft: rgba(231,176,79,.13);
  --bad: #f07b72; --bad-soft: rgba(240,123,114,.13);
  --shadow: 0 1px 2px rgba(0,0,0,.25), 0 8px 24px -14px rgba(0,0,0,.5);
  --focus: 0 0 0 3px rgba(223,103,158,.32);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg);
  font-feature-settings: "tnum" 0; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
p { margin: 0; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.mono { font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, monospace; font-size: 13.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(to right, var(--ink) 264px, var(--bg) 264px); }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--ink); color: var(--ink-text);
  display: flex; flex-direction: column; padding: 22px 14px 16px; scrollbar-width: thin; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 10px 18px; color: #fff; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 36px; height: 36px; color: var(--ink-accent); }
.brand-name { font-size: 19px; font-weight: 780; letter-spacing: -.02em; }
.brand-role { display: block; font-size: 12px; font-weight: 600; color: var(--ink-muted); letter-spacing: 0; margin-top: -2px; }
.nav-title { font-size: 12.5px; font-weight: 650; color: var(--ink-muted); padding: 18px 12px 6px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 11px; padding: 8.5px 12px; margin: 1px 0;
  border-radius: 9px; color: var(--ink-text); font-weight: 560; font-size: 14.5px; }
.nav-link:hover { background: var(--ink-hover); color: #fff; text-decoration: none; }
.nav-link.active { background: var(--ink-active); color: #fff; }
.nav-link.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--ink-accent); }
.nav-link .ic { opacity: .85; }
.nav-badge { margin-left: auto; min-width: 22px; text-align: center; background: var(--ink-accent); color: #2b0d1e;
  font-size: 11.5px; font-weight: 750; padding: 1px 7px; border-radius: 99px; }
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ink-line); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.me-name { color: #fff; font-weight: 650; font-size: 14px; line-height: 1.2; }
.me-sub { color: var(--ink-muted); font-size: 12.5px; }
.foot-actions { display: flex; gap: 4px; padding: 4px 6px 0; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 0;
  background: transparent; color: var(--ink-text); cursor: pointer; }
.icon-btn:hover { background: var(--ink-hover); color: #fff; }
.theme-dark-only { display: none; }
[data-theme="dark"] .theme-dark-only { display: inline; }
[data-theme="dark"] .theme-light-only { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.mobilebar { display: none; }
.content { width: 100%; max-width: 1380px; padding: 34px 40px 72px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  margin-bottom: 26px; }
.page-head h1 { font-size: 28px; font-weight: 780; letter-spacing: -.025em; }
.page-head p { color: var(--muted); margin-top: 5px; max-width: 64ch; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px;
  margin-bottom: 10px; }
.back .ic { width: 16px; height: 16px; }

/* ---------- surfaces ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 4px; }
.panel-head h2 { font-size: 16px; font-weight: 720; letter-spacing: -.01em; }
.panel-head .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.panel-body { padding: 16px 22px 22px; }
.panel-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center;
  justify-content: flex-end; }
.panel + .panel, .grid + .panel, .panel + .grid, .grid + .grid, .stats + .grid, .stats + .panel,
.panel + .stats, .grid + .stats { margin-top: 20px; }
.grid.grid > * { margin-top: 0; }
/* panels in a row share the row height; charts grow to fill it */
.grid > .panel, .stack > .panel:only-child { display: flex; flex-direction: column; }
.grid > .panel > .panel-body:has(> .chart) { flex: 1; display: flex; flex-direction: column; }
.grid > .panel > .panel-body > .chart { flex: 1 0 auto; }
.chart canvas { position: absolute; inset: 0; }
.grid { display: grid; gap: 20px; }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack > * + * { margin-top: 20px; }

/* stat strip: one panel divided by hairlines */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.stat { background: var(--surface); padding: 19px 22px 20px; min-width: 0; }
.stat-label { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 620; color: var(--muted); }
.stat-label .ic { width: 16px; height: 16px; }
.stat-value { font-size: 27px; font-weight: 780; letter-spacing: -.025em; margin-top: 6px; font-variant-numeric: tabular-nums;
  white-space: nowrap; }
.stat-note { font-size: 13px; color: var(--muted); margin-top: 3px; }
.stat-note.up { color: var(--good); } .stat-note.down { color: var(--bad); }
.stat a { color: inherit; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 640; color: var(--muted); font-size: 13px; padding: 11px 16px;
  background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table td.wrap { white-space: normal; min-width: 200px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table th:first-child, .table td:first-child { padding-left: 22px; }
.table th:last-child, .table td:last-child { padding-right: 22px; }
.table .num { text-align: right; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.panel > .table-wrap:first-child .table th:first-child { border-top-left-radius: var(--r-lg); }
.cell-main { font-weight: 660; color: var(--text); }
.cell-main a { color: var(--text); }
.cell-sub { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.amount-in { color: var(--good); font-weight: 680; }
.amount-out { color: var(--text-2); font-weight: 600; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px 14px 22px;
  border-bottom: 1px solid var(--line); }
.toolbar .grow { flex: 1; }
.search { position: relative; min-width: 220px; flex: 1; max-width: 360px; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 17px; }
.search .input { padding-left: 38px; height: 38px; }
.toolbar .input.select { height: 38px; width: auto; min-width: 150px; }

.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px;
  gap: 2px; flex-wrap: wrap; }
.seg a { padding: 5px 12px; border-radius: 7px; font-weight: 620; font-size: 13.5px; color: var(--muted); }
.seg a:hover { color: var(--text); text-decoration: none; }
.seg a.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(29,17,48,.08); }

/* ---------- elements ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: 99px;
  font-size: 12.5px; font-weight: 660; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-good { background: var(--good-soft); color: var(--good); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-accent { background: var(--accent-soft); color: var(--accent-text); }
.count { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 8px; border-radius: 99px;
  font-size: 12.5px; font-weight: 750; font-variant-numeric: tabular-nums; background: var(--surface-2); color: var(--muted); }
.count.good { background: var(--good-soft); color: var(--good); } .count.warn { background: var(--warn-soft); color: var(--warn); }
.count.bad { background: var(--bad-soft); color: var(--bad); } .count.accent { background: var(--accent-soft); color: var(--accent-text); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 650;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; }
.pills { display: flex; flex-wrap: wrap; gap: 5px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 660; font-size: 14.5px; cursor: pointer;
  white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn .ic { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--muted); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-danger:hover { border-color: var(--bad); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); font-weight: 650;
  cursor: pointer; }

.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent-text); font-weight: 760; font-size: 13px; text-transform: uppercase; }
.sidebar .avatar { background: rgba(240,139,187,.16); color: var(--ink-accent); }
.avatar-lg { width: 52px; height: 52px; font-size: 18px; }
.flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; vertical-align: -3px;
  box-shadow: 0 0 0 1px rgba(28,20,38,.1); display: inline-block; background: var(--surface-2); }
.flag-lg { width: 30px; height: 22px; border-radius: 4px; }

.bar { height: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.bar.good > span { background: var(--good); } .bar.warn > span { background: var(--gold); } .bar.bad > span { background: var(--bad); }
.bar-sm { height: 6px; width: 90px; display: inline-block; vertical-align: middle; }
.meter { display: flex; align-items: center; gap: 10px; }
.meter .num { font-size: 13px; color: var(--muted); min-width: 34px; }

.dl { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 11px 16px; font-size: 14px; margin: 0; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }

.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.list-row:first-child { padding-top: 2px; }
.list-row .grow { flex: 1; min-width: 0; }

.empty { text-align: center; padding: 46px 24px; }
.empty-icon { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text); }
.empty-icon .ic { width: 24px; height: 24px; }
.empty h3 { font-size: 16px; font-weight: 720; }
.empty p { color: var(--muted); margin: 6px auto 18px; max-width: 42ch; font-size: 14.5px; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r);
  background: var(--accent-soft); color: var(--text); font-size: 14px; }
.notice .ic { color: var(--accent-text); margin-top: 2px; }
.notice.warn { background: var(--warn-soft); } .notice.warn .ic { color: var(--warn); }
.notice.bad { background: var(--bad-soft); } .notice.bad .ic { color: var(--bad); }
.notice.good { background: var(--good-soft); } .notice.good .ic { color: var(--good); }

.secret { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 8px 8px 12px; }
.secret code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: ui-monospace, "Cascadia Mono", Menlo, monospace;
  font-size: 13.5px; }

/* two-factor: recovery codes and one-line forms */
.codes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; margin: 0;
  padding: 16px 20px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px;
  font-size: 16px; letter-spacing: .04em; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form .input { flex: 1; min-width: 0; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 18px; }
.form-grid .span-2, .form-grid .field-wide { grid-column: 1 / -1; }
.field label.label { display: block; font-weight: 640; font-size: 14px; margin-bottom: 7px; color: var(--text); }
.input { width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 14.5px; transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.input:hover { border-color: var(--muted); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.input::placeholder { color: var(--muted); opacity: .7; }
.select { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23786f8a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 18px; }
select[multiple].input { height: auto; padding: 6px; }
.check { width: 18px; height: 18px; accent-color: var(--accent); vertical-align: -3px; margin: 0; }
.check-row { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; cursor: pointer; }
.help { color: var(--muted); font-size: 13px; margin-top: 6px; }
.errors { color: var(--bad); font-size: 13px; margin-top: 6px; font-weight: 600; }
.has-error .input { border-color: var(--bad); }
.form-errors { margin-bottom: 16px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line-strong);
  border-radius: 99px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.chip-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.chip-check input { accent-color: var(--accent); }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.option-card { position: relative; display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 1px solid var(--line-strong);
  border-radius: 12px; cursor: pointer; font-weight: 650; font-size: 14px; transition: border-color .15s, background .15s; }
.option-card:hover { border-color: var(--muted); }
.option-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.option-card input { accent-color: var(--accent); margin: 0; }
.quick { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.label-static { display: block; font-weight: 640; font-size: 14px; margin-bottom: 7px; color: var(--text); }

/* ---------- payment methods ---------- */
.brand-tile { width: 40px; height: 27px; flex: none; border-radius: 5px; display: block;
  box-shadow: 0 1px 2px rgba(29,17,48,.12); }
.brand-row, .pay-brands { display: flex; gap: 5px; flex-wrap: wrap; }
.pay-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.pay-tile { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 13px;
  border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; background: var(--surface);
  transition: border-color .15s, background .15s; }
.pay-tile:hover { border-color: var(--muted); }
.pay-tile input { position: absolute; opacity: 0; pointer-events: none; }
.pay-tile .pay-brands { margin-bottom: 10px; }
.pay-name { font-weight: 700; font-size: 14.5px; }
.pay-sub { color: var(--muted); font-size: 12.5px; }
.pay-check { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; opacity: 0; transform: scale(.7);
  transition: opacity .15s, transform .15s; }
.pay-check .ic { width: 14px; height: 14px; stroke-width: 3; }
.pay-tile:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.pay-tile:has(input:checked) .pay-check { opacity: 1; transform: none; }
.pay-tile:has(input:focus-visible) { box-shadow: var(--focus); }
.has-error .pay-tile { border-color: var(--bad); }

.notice + .grid { margin-top: 20px; }
.gw-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.gw-title .brand-row { flex-wrap: nowrap; }
.gw-card .panel-head { align-items: flex-start; }
.gw-switches { display: grid; gap: 12px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r); }
.gw-switches .help { margin-left: 28px; margin-top: 2px; }
.gw-cred-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.gw-cred-meta:empty { display: none; }
.pill-warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.gw-events { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gw-events code { display: inline-block; padding: 3px 9px; border-radius: 7px; background: var(--surface-2);
  border: 1px solid var(--line); font-size: 12.5px; }
.gw-card .divider { margin: 4px 0; }

/* ---------- charts ---------- */
.chart { position: relative; height: 270px; }
.chart.sm { height: 220px; }
.chart.xs { height: 180px; }
.legend-inline { display: flex; gap: 16px; font-size: 13px; color: var(--muted); font-weight: 600; }
.legend-inline i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- customer hero ---------- */
.hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 30px; align-items: center; padding: 28px 30px; }
.ring { position: relative; width: 148px; height: 148px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: var(--surface-2); stroke: color-mix(in srgb, var(--line) 80%, transparent); }
.ring .value { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 402; transition: stroke-dashoffset 1.1s cubic-bezier(.2,.7,.2,1); }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-label b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-label span { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.hero h2 { font-size: 24px; font-weight: 780; letter-spacing: -.02em; }
.hero .lead { color: var(--muted); margin-top: 6px; }
.hero-meta { display: flex; gap: 28px; margin-top: 18px; flex-wrap: wrap; }
.hero-meta div span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.hero-meta div b { font-size: 16px; font-weight: 720; font-variant-numeric: tabular-nums; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.state-dot { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.state-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--good);
  box-shadow: 0 0 0 4px var(--good-soft); }
.state-dot.off::before { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }

/* ---------- plan cards ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan-flag { position: absolute; top: -12px; left: 22px; background: var(--accent); color: #fff; font-size: 12.5px;
  font-weight: 720; padding: 3px 11px; border-radius: 99px; }
.plan h3 { font-size: 17px; font-weight: 740; }
.plan .desc { color: var(--muted); font-size: 14px; margin-top: 4px; min-height: 42px; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan .price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.plan .price b { font-size: 38px; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.plan .price span { color: var(--muted); font-weight: 600; }
.plan .billed { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; font-size: 14px; }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li .ic { color: var(--accent); width: 17px; height: 17px; margin-top: 2px; }
.plan form { margin-top: auto; }

/* ---------- platform cards ---------- */
.platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.platform { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); }
.platform .ic { width: 26px; height: 26px; color: var(--accent-text); margin-bottom: 8px; stroke-width: 1.6; }
.platform b { font-size: 15px; }
.platform span { color: var(--muted); font-size: 13px; }
.platform .btn { margin-top: 12px; }
.proto-list { display: grid; gap: 8px; }
.proto { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px;
  color: var(--text); }
.proto:hover { border-color: var(--line-strong); background: var(--surface-2); text-decoration: none; }
.proto.on { border-color: var(--accent); background: var(--accent-soft); }
.proto b { font-size: 14px; display: block; }
.proto span { font-size: 12.5px; color: var(--muted); }

/* ---------- tickets ---------- */
.thread { display: grid; gap: 14px; }
.msg { max-width: 760px; padding: 14px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.msg.staff { background: var(--accent-soft); border-color: transparent; margin-left: auto; }
.msg-head { display: flex; gap: 10px; align-items: baseline; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.msg-head b { color: var(--text); font-size: 14px; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- toasts ---------- */
.toasts { position: fixed; top: 18px; right: 18px; z-index: 50; display: grid; gap: 10px; width: min(380px, calc(100vw - 36px)); }
.toast { display: flex; gap: 11px; align-items: flex-start; padding: 13px 14px 13px 16px; background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; box-shadow: 0 12px 32px -12px rgba(29,17,48,.35);
  font-size: 14px; font-weight: 560; animation: toast-in .25s ease-out; }
.toast.success { border-left-color: var(--good); } .toast.error { border-left-color: var(--bad); }
.toast.warning { border-left-color: var(--gold); }
.toast .grow { flex: 1; }
.toast button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; }
@keyframes toast-in { from { transform: translateY(-6px); opacity: 0; } }

/* ---------- pagination ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 22px;
  border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.pager .btns { display: flex; gap: 8px; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--surface); }
.auth-art { position: relative; overflow: hidden; background: var(--ink); color: var(--ink-text); padding: 44px 52px;
  display: flex; flex-direction: column; justify-content: space-between; }
.auth-art .brand { padding: 0; }
.auth-art .big-mark { position: absolute; right: -80px; bottom: -60px; width: 540px; height: 540px; color: var(--ink-accent);
  opacity: .55; stroke-width: .55; }
.auth-art h1 { position: relative; color: #fff; font-size: clamp(34px, 3.4vw, 50px); font-weight: 780; letter-spacing: -.035em;
  line-height: 1.08; max-width: 12ch; }
.auth-art p { position: relative; margin-top: 16px; max-width: 34ch; color: var(--ink-text); font-size: 16px; }
.auth-art small { position: relative; color: var(--ink-muted); font-size: 13px; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h2 { font-size: 26px; font-weight: 780; letter-spacing: -.025em; }
.auth-card .lead { color: var(--muted); margin: 6px 0 26px; }
.auth-card .field + .field { margin-top: 16px; }
.auth-card .btn { margin-top: 24px; height: 46px; }
.auth-alt { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .g-2-1, .g-1-2, .g-3 { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: auto minmax(0, 1fr); }
  .hero-actions { grid-column: 1 / -1; flex-direction: row; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); background: var(--bg); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 40; transform: translateX(-100%);
    transition: transform .22s ease; }
  .nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(14,8,24,.45); }
  .mobilebar { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 16px; background: var(--ink);
    color: #fff; position: sticky; top: 0; z-index: 30; }
  .mobilebar .brand { padding: 0; }
  .mobilebar .brand-mark { width: 30px; height: 30px; }
  .mobilebar .icon-btn { color: #fff; }
  .content { padding: 22px 16px 56px; }
  .g-2, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { min-height: 220px; padding: 28px 24px; }
  .auth-art .big-mark { width: 300px; height: 300px; right: -60px; bottom: -70px; opacity: .5; }
  .auth-art h1 { font-size: 30px; }
  .auth-art p, .auth-art small { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); justify-items: start; padding: 22px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .page-head h1 { font-size: 24px; }
  .stat-value { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
[data-theme="dark"] .btn-primary, [data-theme="dark"] .plan-flag { color: #23091a; }

/* Node diagnostics */
.diag-mark { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; background: var(--surface-2); color: var(--muted); margin-top: 1px; }
.diag-mark .ic { width: 15px; height: 15px; }
.diag-mark.diag-pass { background: var(--good-soft); color: var(--good); }
.diag-mark.diag-warn { background: var(--warn-soft); color: var(--warn); }
.diag-mark.diag-fail { background: var(--bad-soft); color: var(--bad); }
.diag-mark.diag-info { background: var(--surface-2); color: var(--muted); }
.diag-fix { margin-top: 6px; font-size: 13px; color: var(--text-2); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; }
.diag-more summary { cursor: pointer; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 6px; }
.diag-pre { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 12px; margin: 8px 0 0; font-size: 12px; max-height: 240px; overflow: auto; }
.diag-history { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line); }
.diag-history .pill { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.diag-history .pill.on { outline: 2px solid var(--line-strong); }
.diag-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); display: inline-block; }
.diag-dot.diag-pass { background: var(--good); } .diag-dot.diag-warn { background: var(--gold); }
.diag-dot.diag-fail, .diag-dot.diag-error { background: var(--bad); }

/* ---------- coupons, bulk actions, reports (3.3b) ---------- */
.coupon-box .inline-form { flex-wrap: wrap; }
.coupon-box .label-static { margin: 0 6px 0 0; white-space: nowrap; }
.coupon-box .inline-form .input { flex: 0 1 220px; }
.plan .billed s { margin-right: 2px; }
.table .pick { width: 1%; padding-right: 0; }
.table .pick .check { margin: 0; vertical-align: middle; }
.bulk-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px 12px 22px;
  border-bottom: 1px solid var(--line); background: var(--surface-2); }
.bulk-bar .input { height: 36px; width: auto; }
.bulk-bar .input.num-in { width: 110px; }
.bulk-bar .bulk-count { font-weight: 640; color: var(--text-2); margin-right: 4px; white-space: nowrap; }
.bulk-bar[data-empty] .bulk-controls { opacity: .55; }
.bulk-bar [hidden] { display: none; }
.range-form { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.range-form .field { margin: 0; }
.range-form .input { height: 38px; width: auto; }
.report-table .panel-head .page-actions { margin: 0; }
.steps { margin: 0; padding-left: 20px; } .steps li + li { margin-top: 6px; }
.steps code, .code-line { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.code-line { display: block; padding: 8px 10px; margin-top: 6px; white-space: pre-wrap; word-break: break-all; }

/* probe -> exit path */
.path-flow { display: grid; grid-template-columns: minmax(0,1fr) minmax(120px,1.2fr) minmax(0,1fr); align-items: center; gap: 10px; padding: 10px 0; }
.path-flow + .path-flow { border-top: 1px solid var(--line); }
.path-flow .node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; min-width: 0; }
.path-flow .node span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.path-flow .node .flag, .path-flow .node .ic { width: 22px; height: 16px; }
.path-flow .wire { position: relative; text-align: center; padding: 14px 4px 0; }
.path-flow .wire::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 3px; border-radius: 2px; background: var(--muted); }
.path-flow .wire::after { content: ""; position: absolute; right: -2px; top: 2px; border: 5.5px solid transparent; border-left: 9px solid var(--muted); }
.path-flow .wire.good::before { background: var(--good); } .path-flow .wire.good::after { border-left-color: var(--good); }
.path-flow .wire.bad::before { background: var(--bad); } .path-flow .wire.bad::after { border-left-color: var(--bad); }
.path-flow .wire.warn::before { background: var(--warn); } .path-flow .wire.warn::after { border-left-color: var(--warn); }
.path-flow .wire span { font-weight: 600; font-size: 13px; display: block; }
.path-flow .wire small { font-size: 11.5px; color: var(--muted); display: block; }
.path-line { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.path-line .cell-sub { margin-left: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--muted); }
.dot-good { background: var(--good); } .dot-bad { background: var(--bad); } .dot-warn { background: var(--warn); } .dot-accent { background: var(--accent); }

/* ---------- insights: ranges, sparklines, quota, heatmap, timeline, flow, tiles, live ---------- */
.seg button { padding: 5px 12px; border-radius: 7px; font: 620 13.5px/1.4 inherit; font-family: inherit; color: var(--muted);
  background: none; border: 0; cursor: pointer; min-height: 30px; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(29,17,48,.08); }
.panel-head .seg { margin-left: auto; }
.sums { display: flex; flex-wrap: wrap; gap: 8px 26px; padding: 14px 22px 0; }
.sums .k { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; color: var(--muted); }
.sums .v { font-size: 20px; font-weight: 780; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.key { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.spark { display: block; width: 100%; height: 34px; margin-top: 8px; }
.spark-sm { width: 120px; height: 26px; display: block; }
.tone-accent { color: var(--accent); } .tone-teal { color: var(--teal); } .tone-plum { color: var(--plum); }
.tone-gold { color: var(--gold); } .tone-good { color: var(--good); } .tone-warn { color: var(--warn); } .tone-bad { color: var(--bad); }
.tone-muted { color: var(--muted); }
.spark path.l { fill: none; stroke: currentColor; stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.spark path.a, .spark-sm path.a { fill: currentColor; opacity: .13; }
.spark-sm path.l { fill: none; stroke: var(--accent); stroke-width: 1.8; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); display: inline-block; flex: none;
  box-shadow: 0 0 0 0 rgba(29,119,86,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(82,196,155,.55); } 70% { box-shadow: 0 0 0 8px rgba(82,196,155,0); } 100% { box-shadow: 0 0 0 0 rgba(82,196,155,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.qbar { position: relative; height: 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line);
  overflow: hidden; margin: 12px 0 8px; }
.qbar > .used { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 99px; }
.qbar > .proj { position: absolute; top: 0; bottom: 0;
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent) 38%, transparent) 0 4px, transparent 4px 8px); }
.qbar.bad > .used { background: var(--bad); }
.heat { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 3px; align-items: center; }
.heat .d { font-size: 11.5px; color: var(--muted); font-weight: 650; }
.heat .c { height: 18px; border-radius: 3px; background: var(--accent); }
.heat .c.zero { background: var(--surface-2); }
.heat-axis { display: flex; justify-content: space-between; padding-left: 37px; font-size: 11px; color: var(--muted); margin-top: 4px; }
.tl { display: flex; flex-direction: column; gap: 6px; }
.tl-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 70px; gap: 10px; align-items: center; }
.tl-day { font-size: 12.5px; color: var(--muted); font-weight: 650; }
.tl-lane { position: relative; height: 22px; background: var(--surface-2); border-radius: 6px; }
.tl-bar { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; opacity: .85; min-width: 3px; }
.tl-bar.live { opacity: 1; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px currentColor; }
.tl-sum { font-size: 12.5px; text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tl-axis { display: flex; justify-content: space-between; margin: 2px 80px 0 66px; font-size: 11px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.hbars { display: flex; flex-direction: column; gap: 9px; }
.hbar-row { display: grid; grid-template-columns: minmax(80px, 34%) minmax(0, 1fr) 72px; gap: 10px; align-items: center; font-size: 13.5px; }
.hbar-row .v { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }
.flow svg { display: block; width: 100%; height: auto; }
.flow text { font-family: inherit; fill: var(--text); }
.flow text.sub { fill: var(--muted); }
.flow path { opacity: .24; } .flow path:hover { opacity: .5; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); min-width: 0; }
.tile-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.tile-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) 40px; gap: 8px; align-items: center; font-size: 12.5px; }
.tile-row .bar { height: 7px; }
.tile-foot { font-size: 12px; color: var(--text-2); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 15px 16px 10px;
  box-shadow: var(--shadow); min-width: 0; }
.kpi .stat-value { font-size: 25px; margin-top: 2px; }
.kpis + .panel, .kpis + .grid, .panel + .kpis, .notice + .kpis, .kpis + .notice, .tiles + .grid, .section-head + .tiles { margin-top: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 24px; }
.section-head h2 { font-size: 17px; }
.live-big { font-size: 36px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.events { display: flex; flex-direction: column; max-height: 520px; overflow-y: auto; }
.event { display: grid; grid-template-columns: 64px 10px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line);
  font-size: 13.5px; align-items: baseline; }
.event .t { color: var(--muted); font-variant-numeric: tabular-nums; }
.event .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.event .dot.good { background: var(--good); } .event .dot.warn { background: var(--gold); } .event .dot.bad { background: var(--bad); }
.event.fresh { animation: fresh 1.6s ease-out; }
@keyframes fresh { from { background: var(--accent-soft); } to { background: transparent; } }

/* ---------- world map ---------- */
.wmap { --sea: #f6f3fa; --land: #e6e0ee; --land-line: #fff; --users: var(--accent); }
[data-theme="dark"] .wmap { --sea: #170f22; --land: #2c2340; --land-line: #170f22; }
.wmap-stage { position: relative; border-radius: var(--r); overflow: hidden; background: var(--sea); border: 1px solid var(--line); }
.wmap-svg { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; cursor: grab; touch-action: none; user-select: none; }
.wmap-active .wmap-svg:active { cursor: grabbing; }
.wmap-sea { fill: var(--sea); }
.wmap-land path { fill: var(--land); stroke: var(--land-line); stroke-width: calc(.6px / var(--z, 1)); vector-effect: none;
  transition: fill-opacity .3s; }
.wmap-land path.has-users { fill: var(--users); }
.wmap-land path:hover { fill: color-mix(in srgb, var(--land) 70%, var(--text)); }
.wmap-land path.has-users:hover { fill: var(--accent-hover); }
.wmap-tunnel { fill: none; stroke: var(--teal); stroke-width: calc(2px / var(--z, 1)); stroke-linecap: round; opacity: .85; }
.wmap-tunnel.standby { stroke: var(--muted); stroke-dasharray: calc(3px / var(--z, 1)) calc(4px / var(--z, 1)); opacity: .55; }
.wmap-tunnel.carrying { stroke-dasharray: calc(7px / var(--z, 1)) calc(5px / var(--z, 1)); animation: wmap-flow 1.2s linear infinite; }
@keyframes wmap-flow { to { stroke-dashoffset: calc(-12px / var(--z, 1)); } }
.wmap-tunnel:hover { stroke-width: calc(3.5px / var(--z, 1)); opacity: 1; }
.wmap-userline { fill: none; opacity: .32; stroke-linecap: round; pointer-events: none; transition: opacity .2s; }
.wmap-focus .wmap-userline { opacity: .08; }
.wmap-focus .wmap-userline.hot { opacity: .95; }
.wmap-cluster { cursor: pointer; }
.wmap-cluster .dot { stroke: var(--surface); stroke-width: calc(1.2px / var(--z, 1)); }
.wmap-cluster .halo { opacity: .22; animation: wmap-breathe 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.wmap-cluster.approx .dot { stroke-dasharray: 2 1.5; }
.wmap-cluster .count { font-size: 8px; font-weight: 800; fill: #fff; pointer-events: none; }
.wmap-cluster:hover .dot { stroke: var(--text); }
@keyframes wmap-breathe { 50% { transform: scale(1.35); opacity: .08; } }
.wmap-server { cursor: pointer; }
.wmap-server circle { fill: var(--accent); stroke: var(--surface); stroke-width: 1.5px; }
.wmap-server circle.ring { fill: var(--accent); opacity: .18; stroke: none; }
.wmap-server rect { fill: var(--teal); stroke: var(--surface); stroke-width: 1.5px; }
.wmap-server.down circle, .wmap-server.down rect { fill: var(--muted); stroke: var(--bad); }
.wmap-server .label { font-size: 11px; font-weight: 700; fill: var(--text); paint-order: stroke; stroke: var(--sea);
  stroke-width: 3px; stroke-linejoin: round; display: none; pointer-events: none; }
.wmap-few .wmap-server .label, .wmap-near .wmap-server .label, .wmap-server:hover .label { display: block; }
.wmap-svg g.wmap-servers, .wmap-svg g.wmap-clusters { transform-origin: 0 0; }
.wmap-server > * { transform: scale(calc(1 / var(--z, 1))); }
.wmap-cluster > * { transform: scale(calc(1 / max(1, var(--z, 1) * .6))); }
.wmap-tip { position: absolute; left: 0; top: 0; z-index: 3; max-width: 320px; pointer-events: none; background: var(--text);
  color: var(--surface); font-size: 12.5px; line-height: 1.45; padding: 8px 11px; border-radius: 8px; box-shadow: var(--shadow); }
.wmap-tip .muted { color: color-mix(in srgb, var(--surface) 70%, transparent); }
.wmap-tip .bad { color: #ff9a92; }
.wmap-tip .row { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; }
.wmap-tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin: 0 4px 0 6px; }
.wmap-zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 4px; }
.wmap-zoom button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: 700 16px/1 inherit; font-family: inherit; cursor: pointer; box-shadow: var(--shadow); }
.wmap-zoom button:hover { background: var(--surface-2); }
.wmap-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; font-size: 13px; color: var(--text-2); }
.wmap-legend .item { display: inline-flex; align-items: center; gap: 6px; }
.wmap-legend .lg-probe { fill: var(--accent); } .wmap-legend .lg-exit { fill: var(--teal); }
.wmap-legend .lg-tunnel { stroke: var(--teal); stroke-width: 2; stroke-dasharray: 5 3; }
.wmap-legend .chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 99px; padding: 3px 10px; font: 600 12.5px inherit; font-family: inherit; color: var(--text-2); cursor: pointer; min-height: 28px; }
.wmap-legend .chip i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.wmap-legend .chip b { font-weight: 750; color: var(--text); }
.wmap-legend .chip.off { opacity: .45; text-decoration: line-through; }
.wmap-legend .attr { margin-left: auto; font-size: 11.5px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .wmap-tunnel.carrying, .wmap-cluster .halo { animation: none; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow); }
.facts > div { background: var(--surface); padding: 11px 14px; display: flex; flex-direction: column; min-width: 0; }
.facts span { font-size: 12px; color: var(--muted); font-weight: 620; }
.facts b { font-size: 15px; font-weight: 760; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 18px; margin-top: 12px; }
.place { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.place .grow { flex: 1; min-width: 0; }
.dev-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center;
  color: var(--text-2); flex: none; }
.wmap-body { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .wmap-body { grid-template-columns: minmax(0, 1fr); } }
.wmap-side { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; min-width: 0; }
.wmap-side-h { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 8px; }
.wmap-side-h:first-child { margin-top: 0; }
.wmap-rank { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; }
.wmap-rank .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wmap-rank b { font-weight: 750; font-variant-numeric: tabular-nums; }
.wmap-rank .bar { grid-column: 2 / 4; height: 5px; border: 0; }
.wmap-rank i { width: 10px; height: 10px; border-radius: 3px; justify-self: center; }
.wmap-userline { opacity: 1; }
.wmap-userflow { fill: none; stroke-linecap: round; opacity: .55; pointer-events: none;
  stroke-dasharray: 1.5 9; animation: wmap-userflow 1.6s linear infinite; }
@keyframes wmap-userflow { to { stroke-dashoffset: -10.5; } }
.wmap-focus .wmap-userflow { opacity: .1; } .wmap-focus .wmap-userflow.hot { opacity: .9; }
@media (prefers-reduced-motion: reduce) { .wmap-userflow { animation: none; } }
@media (min-width: 1101px) {
  .wmap-body { align-items: stretch; }
  .wmap-side { height: 0; min-height: 100%; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
}
.wmap-geo { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; }
.wmap-geo .msg { font-size: 12.5px; }

/* App notifications */
.an-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.an-tags:empty { display: none; }
.an-tag { display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text);
  border: 1px solid var(--accent); padding: 3px 6px 3px 10px; font-size: 13px; font-weight: 600; }
.an-tag button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 12px; padding: 0 4px; opacity: .7; }
.an-tag button:hover { opacity: 1; }
.an-phone { width: 280px; border-radius: 32px; background: #120e26; padding: 16px 14px 22px; color: #f2efff; box-shadow: var(--shadow);
  font-size: 12.5px; line-height: 1.4; }
.an-clock { text-align: center; font-size: 12px; opacity: .7; }
.an-notif { display: block; background: rgba(255,255,255,.1); border-radius: 14px; padding: 10px 12px; margin-top: 8px; overflow-wrap: anywhere; }
.an-notif b { display: block; font-size: 13px; margin: 2px 0; }
.an-notif.an-new { background: #211b49; box-shadow: inset 3px 0 0 #4ff0d2; }
.an-app { display: block; opacity: .65; font-size: 11.5px; }
.an-inbox-h { margin-top: 18px; font-weight: 700; }
.an-btn { display: inline-block; margin-top: 7px; font-weight: 650; color: #120e26; background: #4ff0d2; padding: 3px 10px; border-radius: 8px; }
.an-btn[hidden] { display: none; }
