/* Cloud WG Panel — iOS 17 glass design (v40).
   Tokens + components are generated from the approved mockup; the shell, popovers,
   mobile drawer and the legacy-class compatibility layer are hand-written below. */
*,*::before,*::after{ box-sizing:border-box; }
:root{ --blue:#0a84ff; --green:#30d158; --red:#ff453a; --orange:#ff9f0a; --purple:#bf5af2; --indigo:#5e5ce6; --teal:#40c8e0; --pink:#ff375f; --ink:#fff; --sec:rgba(235,235,245,.6); --ter:rgba(235,235,245,.3); --sep:rgba(84,84,88,.55); --greytext:#d5d6db; --tblue:#409cff; --tgreen:#30d158; --tpurple:#da8fff; --tred:#ff6961; --torange:#ffb340; --canvas:#000; --matbg:rgba(0,0,0,.74); --matborder:rgba(255,255,255,.1); --matsheen:rgba(255,255,255,.07); --sidebg:rgba(0,0,0,.7); --sidebd:rgba(255,255,255,.09); --tilebg:rgba(255,255,255,.03); --tilebd:rgba(255,255,255,.07); --searchbg:rgba(60,60,66,.32); --searchbd:rgba(255,255,255,.08); }
html[data-theme="light"]{ --canvas:#eef0f4; --ink:#1c1c1e; --sec:rgba(60,60,67,.62); --ter:rgba(60,60,67,.34); --sep:rgba(60,60,67,.26); --greytext:#48484a; --matbg:rgba(255,255,255,.6); --matborder:rgba(0,0,0,.07); --matsheen:rgba(255,255,255,.55); --sidebg:rgba(255,255,255,.55); --sidebd:rgba(0,0,0,.07); --tilebg:rgba(255,255,255,.4); --tilebd:rgba(0,0,0,.06); --searchbg:rgba(118,118,128,.14); --searchbd:rgba(0,0,0,.05); --blue:#007aff; --green:#34c759; --red:#ff3b30; --orange:#ff9500; --purple:#af52de; --indigo:#5856d6; --teal:#30b0c7; --pink:#ff2d55; --tblue:#0062cc; --tgreen:#1f8f3f; --tpurple:#7d2fb5; --tred:#c8302a; --torange:#b86200; }
html[data-theme="system"]{ --canvas:#2c2c2e; --matbg:rgba(80,80,86,.6); --matborder:rgba(255,255,255,.16); --matsheen:rgba(255,255,255,.18); --sidebg:rgba(70,70,76,.55); --sidebd:rgba(255,255,255,.14); --tilebg:rgba(255,255,255,.12); --tilebd:rgba(255,255,255,.16); --searchbg:rgba(140,140,148,.3); --searchbd:rgba(255,255,255,.12); --blue:color-mix(in srgb,#0a84ff 72%,#8e8e93); --green:color-mix(in srgb,#30d158 72%,#8e8e93); --red:color-mix(in srgb,#ff453a 72%,#8e8e93); --orange:color-mix(in srgb,#ff9f0a 72%,#8e8e93); --purple:color-mix(in srgb,#bf5af2 72%,#8e8e93); --indigo:color-mix(in srgb,#5e5ce6 72%,#8e8e93); --teal:color-mix(in srgb,#40c8e0 72%,#8e8e93); --pink:color-mix(in srgb,#ff375f 72%,#8e8e93); --tblue:#7db8f0; --tgreen:#6fcf8c; --tpurple:#d5a6ee; --tred:#f39a94; --torange:#f4c27a; }
html{ background:var(--canvas); }
body{ margin:0; min-height:100vh; color:var(--ink); background:transparent; position:relative;
  font-family:'Tajawal',-apple-system,BlinkMacSystemFont,'SF Pro Display','SF Arabic',system-ui,'Segoe UI',sans-serif; }
a{ color:inherit; text-decoration:none; } button{ font:inherit; }
svg{ stroke-linecap:round; stroke-linejoin:round; }
.sidebar svg,.topbar svg,.mat svg,.mt svg,.tile svg,.act svg,.btn svg,.ract svg,.tab svg,.chip svg,.phicon svg,.aav svg,.mi svg{ fill:none; stroke:currentColor; stroke-width:2; }
body::before{ content:""; position:fixed; inset:0; z-index:-1; pointer-events:none; background: radial-gradient(46% 40% at 78% 6%, rgba(10,132,255,.85), transparent 68%), radial-gradient(38% 34% at 18% 14%, rgba(191,90,242,.7), transparent 66%), radial-gradient(44% 42% at 58% 46%, rgba(94,92,230,.62), transparent 68%), radial-gradient(40% 38% at 10% 88%, rgba(48,209,88,.55), transparent 66%), radial-gradient(36% 34% at 92% 84%, rgba(255,159,10,.55), transparent 66%), radial-gradient(30% 30% at 46% 92%, rgba(255,55,95,.42), transparent 66%); filter:blur(2px) saturate(1.3); }
html[data-theme="light"] body::before{ opacity:.6; filter:blur(2px) saturate(1.05); }
html[data-theme="system"] body::before{ opacity:.3; filter:blur(2px) saturate(.8); }
.mat{ background:var(--matbg); backdrop-filter:blur(22px) saturate(1.8); -webkit-backdrop-filter:blur(22px) saturate(1.8); border:1px solid var(--matborder); position:relative; overflow:hidden; border-radius:18px; box-shadow:inset 0 1px 0 var(--matsheen), inset 0 0 0 1px rgba(127,127,127,.04), 0 26px 60px rgba(0,0,0,.42); }
.mat::before{ content:""; position:absolute; inset:0; pointer-events:none; border-radius:inherit; background:linear-gradient(160deg, var(--matsheen) 0%, transparent 22%, transparent 46%); opacity:.55; }
.brand{ display:flex; flex-direction:column; align-items:center; gap:10px; padding:12px 8px 20px; margin-bottom:14px; text-align:center; cursor:default; border-bottom:1px solid var(--sep); }
.brand .mk{ width:76px; height:76px; background:var(--logo) center/contain no-repeat; flex:none; }
.brand b{ font-size:19px; font-weight:800; display:block; letter-spacing:-.2px; }
.brand small{ color:var(--sec); font-size:13px; display:block; margin-top:2px; }
.seclbl{ color:var(--sec); font-size:12.5px; font-weight:700; letter-spacing:.4px; padding:13px 12px 6px; }
.nav{ display:flex; align-items:center; gap:13px; padding:11px 11px; border-radius:12px; font-weight:600; font-size:16.5px; color:var(--ink); margin-bottom:3px; cursor:pointer; user-select:none; }
.nav .bdg{ width:32px; height:32px; border-radius:9px; display:flex; align-items:center; justify-content:center; flex:none; }
.nav .bdg svg{ width:18px; height:18px; stroke:#fff; }
.nav.on{ background:rgba(10,132,255,.22); }
.foot{ margin-top:auto; }
.navbar .rt-page{ display:flex; align-items:center; gap:10px; }
.addbtn{ background:var(--blue); color:#fff; font-weight:700; font-size:14.5px; padding:9px 16px; border-radius:11px; display:flex; align-items:center; gap:6px; white-space:nowrap; }
.addbtn svg{ width:16px; height:16px; stroke:#fff; }
.addbtn.ghost{ background:rgba(118,118,128,.22); color:var(--ink); }
.navutils{ display:flex; align-items:center; gap:9px; margin-inline-start:14px; padding-inline-start:14px; border-inline-start:1px solid var(--sep); }
.nutil{ width:38px; height:38px; border-radius:50%; background:rgba(118,118,128,.22); backdrop-filter:blur(20px) saturate(1.8); -webkit-backdrop-filter:blur(20px) saturate(1.8); border:1px solid var(--matborder); display:flex; align-items:center; justify-content:center; position:relative; flex:none; cursor:pointer; }
.nutil svg{ width:17px; height:17px; stroke:var(--ink); }
.nutil .bdg2{ position:absolute; top:5px; left:6px; width:9px; height:9px; border-radius:50%; background:var(--red); border:2px solid var(--canvas); }
.nutil.av svg{ stroke:#fff !important; width:18px; height:18px; }
.nutil.av{ background:linear-gradient(135deg,#0a84ff,#5e5ce6); font-weight:800; font-size:15.5px; border:1px solid rgba(255,255,255,.2); color:#fff; }
.themeseg{ display:flex; align-items:center; gap:2px; background:rgba(118,118,128,.22); backdrop-filter:blur(20px) saturate(1.8); -webkit-backdrop-filter:blur(20px) saturate(1.8); border:1px solid var(--matborder); border-radius:22px; padding:3px; }
.themeseg button{ width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:transparent; border:none; cursor:pointer; padding:0; }
.themeseg button svg{ width:16px; height:16px; stroke:var(--ink); display:block; }
.themeseg button.on{ background:var(--blue); box-shadow:0 2px 8px rgba(10,132,255,.5); }
.themeseg button.on svg{ stroke:#fff; }
.sub{ color:var(--sec); font-size:15.5px; padding:0 26px 14px; }
.toolbar{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.search{ flex:1; background:var(--searchbg); backdrop-filter:blur(20px) saturate(1.8); -webkit-backdrop-filter:blur(20px) saturate(1.8); border:1px solid var(--searchbd); border-radius:11px; padding:10px 14px; color:var(--sec); font-size:15.5px; display:flex; align-items:center; gap:8px; }
.search svg{ width:16px; height:16px; stroke:var(--sec); flex:none; }
.rcard{ border-radius:26px; padding:30px 32px; }
.rhead{ display:flex; align-items:center; gap:16px; margin-bottom:22px; }
.rhead .av{ width:56px; height:56px; border-radius:16px; background:linear-gradient(135deg,#0a84ff,#5e5ce6); display:flex; align-items:center; justify-content:center; flex:none; box-shadow:0 8px 20px rgba(10,132,255,.3); }
.rhead .av svg{ width:28px; height:28px; stroke:#fff; }
.rhead h3{ margin:0; font-size:24px; font-weight:800; }
.rhead .sm{ color:var(--sec); font-size:15.5px; direction:ltr; text-align:right; margin-top:4px; }
.crumb{ display:flex; align-items:center; gap:7px; font-size:14.5px; color:var(--ter); margin-bottom:5px; min-height:0; }
.crumb:empty{ display:none; }
.crumb a{ color:var(--tblue); font-weight:700; cursor:pointer; }
.crumb em{ font-style:normal; color:var(--sec); }
[data-go]{ cursor:pointer; }
.pill{ font-size:15.5px; font-weight:700; padding:7px 14px; border-radius:20px; display:inline-flex; align-items:center; gap:7px; margin-inline-start:auto; white-space:nowrap; }
.pill.up{ background:rgba(48,209,88,.2); color:var(--tgreen); }
.pill.dn{ background:rgba(255,69,58,.2); color:var(--tred); }
.pill.wt{ background:rgba(255,159,10,.2); color:var(--torange); }
.pill i{ width:7px; height:7px; border-radius:50%; background:currentColor; box-shadow:0 0 8px currentColor; flex:none; }
.metrics{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:20px; }
.mt{ --accent:#8e8e93; min-height:98px; background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 55%, #000 45%) 100%); border:1px solid var(--tilebd); border-radius:17px; padding:17px 84px 17px 18px; position:relative; overflow:hidden; box-shadow:inset 0 1px 0 var(--matsheen); }
.mt.dev{ padding:17px 18px; }
.mt .h{ display:flex; align-items:center; gap:10px; margin-bottom:11px; }
.mt:not(.dev) .h{ justify-content:flex-end; }
.mt:not(.dev) .lbl, .mt:not(.dev) .val{ text-align:left; display:block; }
.mt:not(.dev) .val{ white-space:nowrap; }
.mt:not(.dev) .mi{ position:absolute; top:50%; right:14px; transform:translateY(-50%); width:58px; height:58px; border-radius:17px !important; background:rgba(255,255,255,.2) !important; display:flex; align-items:center; justify-content:center; flex:none; }
.mt:not(.dev) .mi svg{ width:30px; height:30px; stroke:#fff; }
.mt.dev .mi{ width:30px; height:30px; border-radius:9px; display:flex; align-items:center; justify-content:center; flex:none; background:rgba(255,255,255,.2) !important; }
.mt.dev .mi svg{ width:17px; height:17px; stroke:#fff; }
.mt .lbl{ font-size:15px; color:rgba(255,255,255,.82); font-weight:600; }
.mt .lbl b{ color:rgba(255,255,255,.65); font-weight:600; }
.mt .val{ font-size:25px; font-weight:800; letter-spacing:-.3px; font-variant-numeric:tabular-nums; color:#fff; }
.mt .val small{ font-size:14.5px; color:rgba(255,255,255,.78); font-weight:600; }
.bar{ height:5px; border-radius:5px; background:rgba(255,255,255,.28); margin-top:9px; overflow:hidden; }
.bar i{ display:block; height:100%; border-radius:5px; background:rgba(255,255,255,.92) !important; }
.spark{ width:100%; height:26px; margin-top:6px; display:block; }
.mt .spark path{ stroke:rgba(255,255,255,.92) !important; fill:rgba(255,255,255,.22) !important; }
.dev .illus{ display:flex; justify-content:center; margin:2px 0 3px; }
.dev .illus rect[stroke]{ stroke:rgba(255,255,255,.75) !important; }
.dev .illus rect[fill]{ fill:rgba(255,255,255,.28) !important; }
.dev strong{ font-size:13px; direction:ltr; display:block; text-align:center; color:rgba(255,255,255,.85); font-weight:700; }
.strip{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:20px; padding:18px 4px; margin-bottom:18px; border-top:1px solid var(--sep); border-bottom:1px solid var(--sep); }
.strip small{ color:var(--sec); font-size:13.5px; display:block; }
.strip strong{ font-size:15.5px; font-weight:700; direction:ltr; display:block; text-align:right; margin-top:4px; font-variant-numeric:tabular-nums; }
.strip .on{ color:var(--tgreen); }
.acts{ display:flex; gap:11px; flex-wrap:wrap; }
.act{ display:flex; align-items:center; gap:9px; padding:12px 18px; border-radius:14px; font-weight:700; font-size:15.5px; background:rgba(10,132,255,.16); color:var(--tblue); }
.act svg{ width:18px; height:18px; stroke:currentColor; flex:none; }
.act.green{ background:rgba(48,209,88,.18); color:var(--tgreen); }
.act.purple{ background:rgba(191,90,242,.18); color:var(--tpurple); }
.act.grey{ background:rgba(118,118,128,.2); color:var(--greytext); }
.act.red{ background:rgba(255,69,58,.18); color:var(--tred); }
.tiles4{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; margin-bottom:20px; }
.tiles{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; margin-bottom:20px; }
.tiles.three{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.mat.tile > b{ display:block; font-size:27px; font-weight:800; letter-spacing:-.3px; text-align:left; position:relative; font-variant-numeric:tabular-nums; }
.tile{ padding:18px 20px; }
.tile .ic{ width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center; margin-bottom:15px; }
.tile .ic svg{ width:28px; height:28px; stroke:#fff; }
.tile .v{ font-size:31px; font-weight:800; letter-spacing:-.4px; font-variant-numeric:tabular-nums; }
.tile .l{ color:var(--sec); font-size:14.5px; margin-top:5px; font-weight:500; }
.mat.tile, .mat.lbstat, .mat.wgstat{ --accent:#8e8e93; color:#fff; border-color:rgba(255,255,255,.14); backdrop-filter:none; -webkit-backdrop-filter:none; background:linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 55%, #000 45%) 100%); }
.mat.tile{ padding:18px 88px 18px 20px; min-height:112px; }
.mat.tile .ic{ position:absolute; top:50%; right:14px; transform:translateY(-50%); margin:0; width:60px; height:60px; border-radius:17px; background:rgba(255,255,255,.2) !important; }
.mat.tile .ic svg{ width:32px; height:32px; }
.mat.tile .v, .mat.tile .l{ text-align:left; position:relative; }
.mat.tile .l{ color:rgba(255,255,255,.82); }
.mat.lbstat, .mat.wgstat{ padding-right:88px; min-height:96px; }
.mat.lbstat .ic, .mat.wgstat .ic{ position:absolute; top:50%; right:14px; transform:translateY(-50%); width:58px; height:58px; border-radius:17px; background:rgba(255,255,255,.2) !important; }
.mat.lbstat .ic svg, .mat.wgstat .ic svg{ width:30px; height:30px; }
.mat.lbstat > div, .mat.wgstat > div{ flex:1; text-align:left; position:relative; }
.mat.lbstat small, .mat.wgstat small{ color:rgba(255,255,255,.82); }
.g2{ display:grid; grid-template-columns:1.5fr 1fr; gap:16px; }
.g2.eq{ grid-template-columns:1fr 1fr; }
.act.mini{ padding:8px 13px; font-size:14px; border-radius:11px; display:inline-flex; }
.ph{ display:flex; align-items:center; justify-content:space-between; padding:15px 18px 11px; }
.ph h3{ margin:0; font-size:15px; font-weight:800; display:flex; align-items:center; gap:9px; }
.ph .lnk{ color:var(--blue); font-size:13.5px; font-weight:700; }
.phicon{ width:34px; height:34px; border-radius:10px; display:flex; align-items:center; justify-content:center; flex:none; }
.phicon svg{ width:19px; height:19px; stroke:#fff; }
table{ width:100%; border-collapse:collapse; }
th{ text-align:right; color:var(--sec); font-size:14px; font-weight:700; padding:10px 18px; border-top:1px solid var(--sep); }
td{ padding:13px 18px; font-size:15px; border-top:1px solid var(--sep); }
td b{ font-weight:800; }
.ip{ font-family:ui-monospace,Menlo,monospace; color:var(--sec); font-size:14.5px; }
.g1{ display:grid; grid-template-columns:1fr; gap:16px; }
.g3{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.g2r{ display:grid; grid-template-columns:1fr 1.5fr; gap:16px; }
.tabstrip{ display:flex; gap:6px; padding:5px; border-radius:15px; background:var(--searchbg); border:1px solid var(--searchbd); margin-bottom:18px; width:max-content; max-width:100%; overflow-x:auto; }
.tab{ padding:9px 16px; border-radius:11px; font-size:15px; font-weight:700; color:var(--sec); display:flex; align-items:center; gap:7px; white-space:nowrap; }
.tab svg{ width:16px; height:16px; stroke:currentColor; }
.tab.on{ background:var(--matbg); color:var(--ink); box-shadow:inset 0 1px 0 var(--matsheen), 0 4px 14px rgba(0,0,0,.18); }
.form{ padding:22px 24px; }
.form h3{ margin:0 0 16px; font-size:16.5px; font-weight:800; display:flex; align-items:center; gap:9px; }
.frow{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 18px; }
.frow.one{ grid-template-columns:1fr; }
.frow.three{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.fld{ display:flex; flex-direction:column; gap:7px; min-width:0; }
.fld label{ font-size:14px; font-weight:700; color:var(--sec); }
.inp{ background:var(--searchbg); border:1px solid var(--searchbd); border-radius:12px; padding:11px 14px; font-size:15.5px; color:var(--ink); display:flex; align-items:center; gap:9px; min-height:44px; }
.inp.ph{ color:var(--ter); padding:11px 14px; justify-content:flex-start; }
.inp svg{ width:16px; height:16px; stroke:var(--sec); flex:none; }
.inp.ltr{ direction:ltr; text-align:left; font-family:ui-monospace,Menlo,monospace; font-size:14.5px; }
.sel{ justify-content:space-between; }
.sel svg{ width:14px; height:14px; }
.hint{ font-size:13.5px; color:var(--ter); margin-top:-2px; }
.tgl{ width:46px; height:28px; border-radius:14px; background:var(--searchbg); border:1px solid var(--searchbd); position:relative; flex:none; }
.tgl i{ position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.35); }
.tgl.on{ background:var(--green); border-color:transparent; }
.tgl.on i{ left:auto; right:3px; }
.tglrow{ display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px 0; border-top:1px solid var(--sep); }
.tglrow:first-child{ border-top:0; }
.tglrow b{ font-size:15.5px; font-weight:700; display:block; }
.tglrow small{ color:var(--sec); font-size:13.5px; display:block; margin-top:2px; }
.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{ padding:8px 13px; border-radius:11px; background:var(--searchbg); border:1px solid var(--searchbd); font-size:14.5px; font-weight:700; color:var(--sec); display:flex; align-items:center; gap:7px; }
.chip.on{ background:rgba(10,132,255,.16); color:var(--tblue); border-color:transparent; }
.chip svg{ width:14px; height:14px; stroke:currentColor; }
.fbar{ display:flex; gap:11px; justify-content:flex-start; margin-top:20px; padding-top:18px; border-top:1px solid var(--sep); }
.inp.ta{ min-height:84px; align-items:flex-start; white-space:pre-line; line-height:1.6; }
.fld.full{ grid-column:1 / -1; }
.btn.wide{ width:100%; justify-content:center; }
.btn{ padding:12px 22px; border-radius:13px; font-weight:800; font-size:15px; display:inline-flex; align-items:center; gap:8px; }
.btn.pri{ background:var(--blue); color:#fff; box-shadow:0 8px 20px rgba(10,132,255,.28); }
.btn.grey{ background:var(--searchbg); color:var(--ink); border:1px solid var(--searchbd); }
.btn.red{ background:rgba(255,69,58,.18); color:var(--tred); }
.btn.green{ background:var(--green); color:#fff; }
.btn svg{ width:16px; height:16px; stroke:currentColor; }
.kv{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 26px; padding:6px 24px 18px; }
.kv > div{ display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 0; border-top:1px solid var(--sep); font-size:15.5px; }
.kv small{ color:var(--sec); font-size:14px; }
.kv b{ font-weight:700; direction:ltr; font-variant-numeric:tabular-nums; }
.code{ margin:0 24px 22px; background:rgba(0,0,0,.45); border:1px solid var(--sep); border-radius:13px; padding:16px 18px; font-family:ui-monospace,Menlo,monospace; font-size:13.5px; line-height:1.75; direction:ltr; text-align:left; color:var(--greytext); white-space:pre; overflow:auto; }
html[data-theme="light"] .code{ background:rgba(255,255,255,.7); }
.code .k{ color:var(--tblue); }
.code .c{ color:var(--ter); }
.code .v{ color:var(--tgreen); }
.rowacts{ display:flex; gap:6px; justify-content:flex-start; }
.ract{ width:32px; height:32px; border-radius:10px; background:var(--searchbg); border:1px solid var(--searchbd); display:flex; align-items:center; justify-content:center; }
.ract svg{ width:15px; height:15px; stroke:var(--sec); }
.ract.red svg{ stroke:var(--tred); }
.ract.blue svg{ stroke:var(--tblue); }
.permgrp{ padding:6px 24px 10px; }
.permgrp h4{ margin:14px 0 4px; font-size:14px; font-weight:800; color:var(--ter); letter-spacing:.4px; }
.perm{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 0; border-top:1px solid var(--sep); font-size:15.5px; font-weight:600; }
.perm small{ color:var(--sec); font-weight:500; font-size:13.5px; display:block; margin-top:2px; }
tr[data-go]:hover td{ background:rgba(127,127,127,.06); }
.ntf{ display:flex; gap:14px; padding:14px 22px; border-top:1px solid var(--sep); align-items:flex-start; }
.ntf .nd{ width:10px; height:10px; border-radius:50%; margin-top:7px; flex:none; background:currentColor; box-shadow:0 0 8px currentColor; }
.ntf b{ display:block; font-size:15.5px; }
.ntf p{ margin:3px 0 0; color:var(--sec); font-size:14.5px; line-height:1.55; }
.ntf small{ margin-inline-start:auto; color:var(--ter); font-size:13px; white-space:nowrap; padding-top:3px; }
.ntf.unread{ background:rgba(10,132,255,.07); }
.aav.big{ width:88px; height:88px; border-radius:26px; margin:0 auto; }
.aav.big svg{ width:44px; height:44px; }
.empty{ padding:36px 20px; text-align:center; color:var(--sec); font-size:15.5px; }
.empty svg{ width:38px; height:38px; stroke:var(--ter); display:block; margin:0 auto 10px; }
.stepper{ display:inline-flex; align-items:center; gap:0; border:1px solid var(--searchbd); background:var(--searchbg); border-radius:12px; overflow:hidden; }
.stepper span{ padding:9px 14px; font-weight:800; font-size:15px; min-width:44px; text-align:center; font-variant-numeric:tabular-nums; }
.stepper b{ width:38px; height:40px; display:flex; align-items:center; justify-content:center; color:var(--tblue); font-size:18px; border-inline-start:1px solid var(--searchbd); }
.qr{ width:150px; height:150px; border-radius:14px; background:#fff; padding:10px; display:grid; grid-template-columns:repeat(9,1fr); gap:2px; flex:none; }
.qr i{ background:#111; border-radius:1px; }
.qr i.o{ background:transparent; }
.svc{ display:flex; align-items:center; gap:10px; justify-content:space-between; padding:12px 18px; border-top:1px solid var(--sep); font-size:14.5px; font-weight:600; }
.svc .lft{ display:flex; align-items:center; gap:10px; }
.svc .si{ width:32px; height:32px; border-radius:9px; display:flex; align-items:center; justify-content:center; flex:none; }
.svc .si svg{ width:17px; height:17px; stroke:#fff; }
.svc .st{ display:flex; align-items:center; gap:8px; color:var(--tgreen); font-weight:700; font-size:13.5px; }
.svc .st i{ width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 8px #30d158; }
.actv{ display:flex; gap:11px; padding:12px 18px; border-top:1px solid var(--sep); }
.actv .dot{ width:9px; height:9px; border-radius:50%; margin-top:5px; flex:none; box-shadow:0 0 8px currentColor; }
.actv .tx{ font-size:13.5px; }
.actv .tx small{ color:var(--sec); display:block; margin-top:2px; font-size:12px; }
.lbstats{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; margin-bottom:28px; }
.lbstat{ padding:19px 20px; display:flex; align-items:center; gap:15px; }
.lbstat .ic{ width:46px; height:46px; border-radius:14px; display:flex; align-items:center; justify-content:center; flex:none; }
.lbstat .ic svg{ width:24px; height:24px; stroke:#fff; }
.lbstat b{ font-size:26px; font-weight:800; display:block; font-variant-numeric:tabular-nums; }
.lbstat small{ color:var(--sec); font-size:14px; }
.grid2{ display:flex; flex-direction:column; gap:18px; }
.subgrid{ display:flex; flex-direction:column; gap:13px; }
.subcard{ padding:16px 22px; display:flex; align-items:center; gap:17px; }
.subcard .av{ width:42px; height:42px; border-radius:12px; background:linear-gradient(135deg,#5e5ce6,#0a84ff); display:flex; align-items:center; justify-content:center; flex:none; }
.subcard .av svg{ width:21px; height:21px; stroke:#fff; }
.subcard h3{ margin:0; font-size:16.5px; font-weight:800; }
.subname{ flex:1; min-width:0; display:flex; align-items:center; gap:13px; }
.subcount{ font-size:24px; font-weight:800; letter-spacing:-.3px; flex:none; text-align:center; min-width:92px; }
.subcount small{ font-size:13.5px; color:var(--sec); font-weight:600; display:block; }
.subfoot{ display:flex; align-items:center; gap:6px; padding-inline-start:19px; border-inline-start:1px solid var(--sep); font-size:14.5px; color:var(--blue); font-weight:700; flex:none; white-space:nowrap; }
.agrid{ display:flex; flex-direction:column; gap:15px; }
.acard{ padding:20px 24px; }
.ahead{ display:flex; align-items:center; gap:14px; margin-bottom:17px; }
.aav{ width:48px; height:48px; border-radius:14px; background:linear-gradient(135deg,#bf5af2,#5e5ce6); display:flex; align-items:center; justify-content:center; font-size:19px; font-weight:800; color:#fff; flex:none; box-shadow:0 8px 20px rgba(191,90,242,.25); }
.ahead h3{ margin:0; font-size:18px; font-weight:800; }
.ahead .sm{ color:var(--sec); font-size:14px; direction:ltr; }
.ameta{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; margin-bottom:14px; }
.am{ text-align:center; }
.am b{ display:block; font-size:18.5px; font-weight:800; }
.am span{ color:var(--sec); font-size:13px; }
.arouters{ background:rgba(255,255,255,.04); border-radius:12px; padding:11px 14px; font-size:14px; color:var(--sec); margin-bottom:15px; }
.aav svg{ width:26px; height:26px; stroke:#fff; }
.arouters b{ color:var(--ink); font-weight:700; }
.wgstats{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; margin-bottom:20px; }
.wgstat{ padding:18px 20px; display:flex; align-items:center; gap:14px; }
.wgstat .ic{ width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center; flex:none; }
.wgstat .ic svg{ width:21px; height:21px; stroke:#fff; }
.wgstat b{ font-size:24px; font-weight:800; display:block; }
.wgstat small{ color:var(--sec); font-size:13.5px; }
.wgcard{ padding:24px 26px; }
.wgfacts{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; margin:18px 0 20px; }
.wgf small{ color:var(--sec); font-size:13px; display:block; }
.wgf b{ font-size:15.5px; font-weight:700; direction:ltr; display:block; margin-top:5px; }
.setgrid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
.setcard{ padding:21px 22px; display:flex; align-items:flex-start; gap:15px; }
.setcard .ic{ width:44px; height:44px; border-radius:13px; display:flex; align-items:center; justify-content:center; flex:none; }
.setcard .ic svg{ width:21px; height:21px; stroke:#fff; }
.setcard h4{ margin:0 0 5px; font-size:15.5px; font-weight:800; }
.setcard p{ margin:0; color:var(--sec); font-size:14px; line-height:1.65; }

.themeseg{ display:flex; align-items:center; gap:2px; background:var(--searchbg); backdrop-filter:blur(20px) saturate(1.8); -webkit-backdrop-filter:blur(20px) saturate(1.8); border:1px solid var(--searchbd); border-radius:22px; padding:3px; }
.themeseg button{ width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:transparent; border:none; cursor:pointer; padding:0; color:var(--ink); }
.themeseg button svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; display:block; }
.themeseg button.on{ background:var(--blue); color:#fff; box-shadow:0 2px 8px rgba(10,132,255,.5); }


/* ============ LOGIN PAGE ============ */
.login{ min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; color:var(--ink); position:relative; isolation:isolate; overflow:hidden; padding:24px; background:var(--canvas);
  --ink:#fff; --sec:rgba(235,235,245,.6); --ter:rgba(235,235,245,.36); --canvas:#000; --blue:#0a84ff; --orange:#ff9f0a; --fieldbg:rgba(255,255,255,.05); --fieldbd:rgba(255,255,255,.1); --fieldsheen:rgba(255,255,255,.07); --toolbg:rgba(60,60,66,.32); --toolbd:rgba(255,255,255,.1); --matborder:rgba(255,255,255,.1); --cardbg:rgba(0,0,0,.76); }
html[data-theme="light"] .login{ --ink:#1c1c1e; --sec:rgba(60,60,67,.62); --ter:rgba(60,60,67,.4); --canvas:#eef0f4; --blue:#007aff; --orange:#ff9500; --fieldbg:rgba(255,255,255,.6); --fieldbd:rgba(0,0,0,.08); --fieldsheen:rgba(255,255,255,.55); --toolbg:rgba(118,118,128,.14); --toolbd:rgba(0,0,0,.06); --matborder:rgba(0,0,0,.08); --cardbg:rgba(255,255,255,.65); }
html[data-theme="system"] .login{ --canvas:#2c2c2e; --fieldbg:rgba(255,255,255,.12); --fieldbd:rgba(255,255,255,.17); --fieldsheen:rgba(255,255,255,.16); --blue:color-mix(in srgb,#0a84ff 72%,#8e8e93); --orange:color-mix(in srgb,#ff9f0a 72%,#8e8e93); --toolbg:rgba(140,140,148,.3); --toolbd:rgba(255,255,255,.16); --matborder:rgba(255,255,255,.17); --cardbg:rgba(80,80,86,.65); }

.login,.login *{ box-sizing:border-box; }
.login::before{ content:""; position:absolute; inset:0; z-index:0; pointer-events:none; background: radial-gradient(50% 46% at 80% 8%, rgba(10,132,255,.9), transparent 68%), radial-gradient(42% 40% at 12% 18%, rgba(191,90,242,.72), transparent 66%), radial-gradient(46% 44% at 55% 90%, rgba(94,92,230,.6), transparent 68%), radial-gradient(36% 34% at 96% 92%, rgba(48,209,88,.5), transparent 66%); filter:blur(2px) saturate(1.3); }
html[data-theme="light"] .login::before{ opacity:.55; filter:blur(2px) saturate(1.05); }
html[data-theme="system"] .login::before{ opacity:.3; filter:blur(2px) saturate(.8); }
.login > *{ position:relative; z-index:1; }
.login .toolsrow{ position:absolute; top:28px; left:32px; display:flex; gap:10px; z-index:2; }
.login .glassbtn{ width:40px; height:40px; border-radius:50%; background:var(--toolbg); backdrop-filter:blur(20px) saturate(1.8); -webkit-backdrop-filter:blur(20px) saturate(1.8); border:1px solid var(--toolbd); display:flex; align-items:center; justify-content:center; cursor:pointer; }
.login .glassbtn svg{ width:18px; height:18px; stroke:var(--ink); }
.login .card{ width:540px; background:var(--cardbg); backdrop-filter:blur(36px) saturate(2.1); -webkit-backdrop-filter:blur(36px) saturate(2.1); border:1px solid var(--matborder); border-radius:32px; padding:44px 46px 44px; text-align:center; position:relative; overflow:hidden; box-shadow:inset 0 1px 0 rgba(255,255,255,.18), 0 30px 70px rgba(0,0,0,.4); }
.login .card::before{ content:""; position:absolute; inset:0; pointer-events:none; border-radius:inherit; background:linear-gradient(160deg, rgba(255,255,255,.14) 0%, transparent 26%, transparent 50%); }
.login .brandband{ margin:0 0 26px; padding:0; text-align:center; position:relative; }
.login .card-a .mk{ display:block; width:140px; height:140px; margin:0 auto 14px; background:var(--logo) center/contain no-repeat; position:relative; }
.login .brandname{ font-size:23px; font-weight:800; display:block; position:relative; color:var(--ink); }
.login .brandtag{ font-size:14px; display:block; margin-top:3px; letter-spacing:.3px; position:relative; color:var(--sec); }
.login .lhead{ margin:0 0 28px; position:relative; }
.login .lhead span{ color:var(--blue); font-size:14px; font-weight:800; letter-spacing:1.8px; }
.login .lhead h2{ font-size:32px; font-weight:800; margin:11px 0 8px; letter-spacing:-.4px; }
.login .lhead p{ color:var(--sec); font-size:16px; margin:0; }
.login .field{ background:var(--fieldbg); backdrop-filter:blur(20px) saturate(1.8); -webkit-backdrop-filter:blur(20px) saturate(1.8); border:1px solid var(--fieldbd); border-radius:16px; padding:18px 20px; display:flex; align-items:center; gap:13px; margin-bottom:15px; position:relative; box-shadow:inset 0 1px 0 var(--fieldsheen); }
.login .field svg{ width:21px; height:21px; stroke:var(--sec); flex:none; }
.login .field span{ color:var(--ter); font-size:17px; }
.login .lbtn{ background:linear-gradient(135deg,#0a84ff,#5e5ce6); color:#fff; font-weight:800; font-size:17px; text-align:center; padding:18px; border-radius:16px; margin-top:10px; box-shadow:0 16px 36px rgba(10,132,255,.32); cursor:pointer; position:relative; }
.login .secure{ color:var(--ter); font-size:14px; text-align:center; margin-top:20px; display:flex; align-items:center; justify-content:center; gap:7px; position:relative; }

/* ============ SHELL: fixed glass sidebar + scrolling content ============ */
.shell{ display:flex; min-height:100vh; }
.sidebar{ position:fixed; top:0; bottom:0; inset-inline-start:0; width:280px; padding:22px 16px 18px; display:flex; flex-direction:column; overflow-y:auto;
  background:var(--sidebg); backdrop-filter:blur(22px) saturate(1.8); -webkit-backdrop-filter:blur(22px) saturate(1.8); border-inline-end:1px solid var(--sidebd); z-index:30; }
.sidebar nav{ display:flex; flex-direction:column; gap:4px; }
.sidebar nav a{ display:flex; align-items:center; gap:12px; padding:11px 12px; border-radius:14px; color:var(--sec); font-weight:700; font-size:15.5px; }
.sidebar nav a.active{ background:rgba(10,132,255,.2); color:var(--ink); box-shadow:inset 0 0 0 1px rgba(10,132,255,.35); }
.sidebar nav a:hover{ color:var(--ink); }
.sidebar nav a.nav-logout{ color:var(--tred); }
.sidebar nav a .bdg{ width:32px; height:32px; border-radius:9px; display:flex; align-items:center; justify-content:center; flex:none; } .sidebar nav a .bdg svg{ width:18px; height:18px; stroke:#fff; }
body::before{ opacity:.85; }
.sidebar .foot{ margin-top:auto; padding-top:10px; }
.sidebar .version{ color:var(--ter); font-size:13px; padding:14px 8px 0; }
.brand img{ width:76px; height:76px; object-fit:contain; display:block; }
.brand strong{ font-size:19px; font-weight:800; display:block; letter-spacing:-.2px; } .brand small{ color:var(--sec); font-size:13px; display:block; margin-top:2px; }
.sidebar-mobile-head,.mobile-menu-btn,.mobile-overlay{ display:none; }
.content{ margin-inline-start:280px; width:calc(100% - 280px); min-height:100vh; display:flex; flex-direction:column; min-width:0; }
.maintenance-banner{ background:linear-gradient(90deg,#8b5b10,#b97713); color:#fff; font-weight:800; text-align:center; padding:10px 16px; }
.topbar{ display:flex; align-items:center; justify-content:space-between; gap:18px; padding:22px 26px 16px; }
.topbar-title{ min-width:0; }
.topbar-title .crumb{ display:flex; align-items:center; gap:7px; font-size:14.5px; color:var(--ter); margin-bottom:5px; }
.topbar-title .crumb a{ color:var(--tblue); font-weight:700; } .topbar-title .crumb em{ font-style:normal; color:var(--sec); }
.topbar-title h1{ margin:0; font-size:30px; font-weight:800; letter-spacing:-.4px; line-height:1.2; }
.topbar-title p{ margin:5px 0 0; color:var(--sec); font-size:15.5px; }
.ui-controls{ display:flex; align-items:center; gap:10px; flex:none; }
.topbar-profile,.language-center,.theme-center,.notification-center{ position:relative; display:flex; align-items:center; }
.ui-icon-button,.profile-trigger{ width:40px; height:40px; border-radius:50%; background:var(--searchbg); border:1px solid var(--searchbd); display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--ink); padding:0; position:relative; }
.ui-icon-button svg,.profile-trigger svg{ width:18px; height:18px; }
.profile-trigger{ background:linear-gradient(135deg,#0a84ff,#5e5ce6); border-color:rgba(255,255,255,.2); color:#fff; }
.profile-avatar svg{ width:18px; height:18px; stroke:#fff; } .profile-avatar{ display:flex; }
.language-button svg{ width:19px; height:19px; }
.theme-center .themeseg{ height:40px; }
.notification-count{ position:absolute; top:-3px; inset-inline-end:-3px; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:var(--red); color:#fff; font-size:12px; font-weight:800; display:flex; align-items:center; justify-content:center; border:2px solid var(--canvas); }
.hidden{ display:none !important; }
.ui-popover,.profile-menu{ position:absolute; top:calc(100% + 10px); inset-inline-end:0; width:300px; max-width:calc(100vw - 24px); background:var(--matbg); backdrop-filter:blur(24px) saturate(1.8); -webkit-backdrop-filter:blur(24px) saturate(1.8); border:1px solid var(--matborder); border-radius:18px; padding:10px; box-shadow:0 22px 60px rgba(0,0,0,.35), inset 0 1px 0 var(--matsheen); display:none; z-index:999; text-align:start; }
.ui-popover.open,.topbar-profile.open .profile-menu{ display:block; }
.profile-menu{ width:250px; }
.profile-menu-identity{ display:flex; align-items:center; gap:11px; padding:8px 10px 12px; border-bottom:1px solid var(--sep); margin-bottom:6px; }
.profile-menu-identity .profile-avatar{ width:40px; height:40px; border-radius:50%; background:linear-gradient(135deg,#0a84ff,#5e5ce6); align-items:center; justify-content:center; flex:none; }
.profile-copy b{ display:block; font-size:15.5px; } .profile-copy small{ color:var(--sec); font-size:13px; }
.profile-menu a{ display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:11px; font-weight:700; font-size:15px; color:var(--ink); }
.profile-menu a:hover{ background:var(--searchbg); } .profile-menu a.profile-logout{ color:var(--tred); }
.popover-action-icon{ width:30px; height:30px; border-radius:9px; background:var(--searchbg); display:flex; align-items:center; justify-content:center; } .popover-action-icon svg{ width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; }
.notification-head{ display:flex; align-items:center; justify-content:space-between; padding:12px 16px 10px; border-bottom:1px solid var(--sep); font-weight:800; }
.notification-head-icon svg{ width:16px; height:16px; fill:none; stroke:var(--sec); stroke-width:2; }
.notification-popover{ width:min(390px,92vw); padding:0; overflow:hidden; }
.notification-list{ max-height:420px; overflow:auto; }
.notification-item{ display:block; padding:12px 18px 12px 16px; border-top:1px solid var(--sep); border-inline-start:3px solid var(--tblue); }
.notification-item:first-child{ border-top:0; }
.notification-item.success{ border-inline-start-color:var(--tgreen); } .notification-item.warning{ border-inline-start-color:var(--torange); } .notification-item.error{ border-inline-start-color:var(--tred); }
.notification-item.unread{ background:rgba(10,132,255,.08); }
.notification-item b{ display:block; font-size:15px; } .notification-item p{ margin:3px 0 4px; color:var(--sec); font-size:14px; line-height:1.55; } .notification-item small{ color:var(--ter); font-size:12.5px; }
.empty-notifications{ padding:26px; text-align:center; color:var(--sec); }
.quick-language-list{ display:flex; flex-direction:column; padding:4px 6px 6px; }
.language-popover .notification-head{ border-bottom:0; padding:12px 18px 2px; font-size:14px; font-weight:700; color:var(--sec); letter-spacing:.2px; }
.quick-language-option{ display:flex; align-items:center; gap:12px; min-height:46px; padding:8px 12px; border-radius:12px; border:0; border-top:1px solid var(--sep); background:transparent; color:var(--ink); cursor:pointer; text-align:start; font:inherit; } .quick-language-option:first-of-type{ border-top:0; }
.quick-language-option:hover{ background:var(--searchbg); border-radius:12px; } .quick-language-option.active{ background:transparent; } .quick-language-option.active b{ color:var(--tblue); }
.quick-language-option b{ flex:1; font-size:15.5px; font-weight:600; } .quick-language-option small{ color:var(--sec); font-size:13.5px; font-weight:700; letter-spacing:.04em; }
.language-check{ display:inline-flex; width:22px; justify-content:center; } .language-check svg{ width:18px; height:18px; fill:none; stroke:var(--tblue); stroke-width:2.6; }
.page-content{ padding:4px 26px 26px; flex:1; }
.app-footer{ padding:12px 26px 22px; color:var(--ter); font-size:13px; }
.alert{ margin:0 26px 14px; padding:12px 16px; border-radius:14px; font-weight:700; font-size:15px; }
.alert.success{ background:rgba(48,209,88,.16); color:var(--tgreen); }
.alert.danger,.alert.error{ background:rgba(255,69,58,.16); color:var(--tred); }
.alert.warning,.alert.info{ background:rgba(255,159,10,.16); color:var(--torange); }
body.is-loading::after{ content:""; position:fixed; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--blue),var(--purple)); animation:cwg-bar 1s linear infinite; z-index:9999; }
@keyframes cwg-bar{ from{ transform:translateX(-100%); } to{ transform:translateX(100%); } }
.copy-toast{ position:fixed; inset-inline-start:24px; bottom:24px; background:var(--matbg); backdrop-filter:blur(20px); color:var(--ink); border:1px solid var(--matborder); border-radius:13px; padding:12px 16px; opacity:0; transform:translateY(15px); pointer-events:none; transition:.2s; z-index:9999; box-shadow:0 12px 35px rgba(0,0,0,.35); }
.copy-toast.show{ opacity:1; transform:translateY(0); }
.v12-hidden{ display:none !important; }

/* ============ LEGACY CLASSES: same look for templates not yet rewritten ============ */
.panel{ background:var(--matbg); backdrop-filter:blur(22px) saturate(1.8); -webkit-backdrop-filter:blur(22px) saturate(1.8); border:1px solid var(--matborder); border-radius:22px; box-shadow:inset 0 1px 0 var(--matsheen), 0 12px 34px rgba(0,0,0,.18); margin-bottom:16px; padding:0 0 6px; position:relative; }
.panel > *:not(.panel-head):not(table):not(.pro-table-wrap):not(.table-wrap):not(.kv):not(.code):not(.empty){ margin-inline:24px; }
.panel > p{ color:var(--sec); margin-top:0; }
.panel-head{ display:flex; align-items:center; justify-content:space-between; gap:14px; padding:18px 24px 12px; flex-wrap:wrap; }
.panel-head h2,.panel > h2,.panel > h3{ margin:0; font-size:16.5px; font-weight:800; display:flex; align-items:center; gap:9px; }
.panel > h2,.panel > h3{ padding:18px 24px 6px; }
.panel-head p,.panel > p{ margin:5px 0 0; color:var(--sec); font-size:14.5px; }
.panel-head .btn{ margin:0; }
.pro-table-wrap,.table-wrap{ overflow-x:auto; }
table{ width:100%; border-collapse:collapse; }
th{ text-align:start; color:var(--sec); font-size:14px; font-weight:700; padding:10px 18px; border-top:1px solid var(--sep); }
td{ padding:13px 18px; font-size:15.5px; border-top:1px solid var(--sep); vertical-align:middle; }
td b{ font-weight:800; } td small{ display:block; color:var(--sec); margin-top:4px; font-size:13.5px; }
/* Wireless section tables read at the same size as every other panel table
   (base th 14px / td 15.5px, base padding). Cells size to their content and
   sit snug together - the table is only as wide as its columns and the wrapper
   scrolls when the full set is wider than the panel, instead of a few columns
   stretching across the whole width with big gaps between them. The actions
   cell wraps its buttons, which are kept compact so a row stays short. */
table.wt-compact{ width:auto; }
.wt-compact th,.wt-compact td{ white-space:nowrap; }
.wt-compact td.ip{ font-variant-numeric:tabular-nums; }
.wt-compact td:last-child,.wt-compact th:last-child{ white-space:normal; }
.wt-compact td:last-child{ max-width:240px; }
.wt-compact td:last-child > div{ gap:5px; }
.wt-compact td:last-child .act{ font-size:12px; padding:5px 10px; border-radius:8px; }
.ping-result{ display:inline-block; margin-inline-start:6px; font-variant-numeric:tabular-nums; color:var(--sec); font-size:13px; }
/* Discovery table: same compaction, but it has no Ping column and a bulkier
   action stack, so the last-child gets more room and the second-last (last
   seen) is left to size normally. */
.wt-disc th:nth-last-child(2){ width:auto; overflow:hidden; }
.wt-disc th:last-child,.wt-disc td:last-child{ width:300px; }
.state-pill,.status{ display:inline-flex; align-items:center; gap:7px; font-size:14.5px; font-weight:700; padding:6px 12px; border-radius:20px; white-space:nowrap; }
.state-pill::before,.status::before{ content:""; width:7px; height:7px; border-radius:50%; background:currentColor; box-shadow:0 0 8px currentColor; }
.state-pill.online,.status.on{ background:rgba(48,209,88,.2); color:var(--tgreen); }
.state-pill.offline,.status.off{ background:rgba(255,69,58,.2); color:var(--tred); }
.count-badge,.healthy{ display:inline-flex; align-items:center; padding:5px 11px; border-radius:20px; background:rgba(48,209,88,.2); color:var(--tgreen); font-size:13.5px; font-weight:700; }
.empty{ text-align:center; color:var(--sec); padding:34px 20px; font-size:15.5px; }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:11px 20px; border-radius:13px; font-weight:800; font-size:15.5px; cursor:pointer; border:1px solid var(--searchbd); background:var(--searchbg); color:var(--ink); text-decoration:none; }
.btn.primary,.btn.blue{ background:var(--blue); color:#fff; border-color:transparent; box-shadow:0 8px 20px rgba(10,132,255,.28); }
.btn.success{ background:var(--green); color:#fff; border-color:transparent; }
.btn.warning{ background:rgba(255,159,10,.2); color:var(--torange); border-color:transparent; }
.btn.danger{ background:rgba(255,69,58,.18); color:var(--tred); border-color:transparent; }
.btn.ghost{ background:transparent; }
.btn.mini{ padding:7px 12px; font-size:14px; border-radius:11px; }
.btn.wide{ width:100%; }
.btn.pri{ background:var(--blue); color:#fff; border-color:transparent; } .btn.grey{ background:var(--searchbg); } .btn.green{ background:var(--green); color:#fff; border-color:transparent; } .btn.red{ background:rgba(255,69,58,.18); color:var(--tred); border-color:transparent; }
.btn svg{ width:16px; height:16px; }
.form-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 18px; }
.form-grid .full{ grid-column:1 / -1; }
label{ display:block; color:var(--sec); font-size:14px; font-weight:700; margin:12px 0 7px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{ width:100%; background:var(--searchbg); border:1px solid var(--searchbd); border-radius:12px; padding:11px 14px; font:inherit; font-size:15.5px; color:var(--ink); outline:none; min-height:44px; }
input:focus,select:focus,textarea:focus{ border-color:var(--blue); box-shadow:0 0 0 3px rgba(10,132,255,.22); }
input::placeholder,textarea::placeholder{ color:var(--ter); }
input[type=file]{ color:var(--sec); font:inherit; }
textarea{ min-height:84px; resize:vertical; line-height:1.6; }
select{ appearance:none; -webkit-appearance:none; padding-inline-end:36px; background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat:no-repeat; background-position:left 12px center; background-size:16px; }
html[dir="ltr"] select{ background-position:right 12px center; }
input[type=radio]{ width:18px; height:18px; accent-color:var(--blue); vertical-align:middle; }
.checkbox-row{ display:flex; align-items:center; gap:8px; padding-top:30px; } .checkbox-row label{ display:flex; align-items:center; gap:8px; margin:0; color:var(--ink); }
.form-actions,.fbar{ display:flex; gap:11px; margin-top:20px; padding-top:18px; border-top:1px solid var(--sep); flex-wrap:wrap; }
pre,.script-area{ background:rgba(0,0,0,.45); border:1px solid var(--sep); border-radius:13px; padding:16px 18px; font-family:ui-monospace,Menlo,Consolas,monospace; font-size:13.5px; line-height:1.75; direction:ltr; text-align:left; color:var(--greytext); white-space:pre; overflow:auto; }
html[data-theme="light"] pre,html[data-theme="light"] .script-area{ background:rgba(255,255,255,.7); }
.credential-box{ display:flex; align-items:center; justify-content:space-between; gap:12px; background:var(--searchbg); border:1px solid var(--searchbd); border-radius:12px; padding:11px 14px; margin:10px 0; }
.credential-box span{ display:block; color:var(--sec); font-size:13px; margin-bottom:4px; } .credential-box b{ font-family:ui-monospace,Menlo,monospace; direction:ltr; display:block; word-break:break-all; }
.row-actions{ display:flex; gap:6px; } .row-actions a,.row-actions button{ width:32px; height:32px; border-radius:10px; background:var(--searchbg); border:1px solid var(--searchbd); display:inline-flex; align-items:center; justify-content:center; color:var(--sec); }
.row-actions svg{ width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; }
.hero-metrics,.stats-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; margin-bottom:18px; } .stats-grid.three{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.metric-card,.stat{ --accent:#8e8e93; position:relative; overflow:hidden; border-radius:22px; padding:18px 88px 18px 20px; min-height:112px; color:#fff; border:1px solid rgba(255,255,255,.14); display:flex; flex-direction:column; justify-content:center; background:linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 55%, #000 45%) 100%); box-shadow:inset 0 1px 0 rgba(255,255,255,.18); }
.metric-purple,.stat.purple{ --accent:var(--purple); } .metric-green,.stat.teal{ --accent:var(--green); } .metric-orange,.stat.orange{ --accent:var(--orange); } .metric-blue,.stat.blue{ --accent:var(--blue); }
.metric-card .metric-icon,.stat .stat-icon{ position:absolute; top:50%; right:14px; transform:translateY(-50%); width:60px; height:60px; border-radius:18px; background:rgba(255,255,255,.2); display:flex; align-items:center; justify-content:center; font-size:26px; }
.metric-card .metric-icon svg,.stat .stat-icon svg{ width:32px; height:32px; fill:none; stroke:#fff; stroke-width:2; }
.metric-card span,.stat span{ display:block; color:rgba(255,255,255,.82); font-size:14.5px; font-weight:600; text-align:left; }
.metric-card strong,.stat strong{ display:block; font-size:30px; font-weight:800; letter-spacing:-.4px; text-align:left; font-variant-numeric:tabular-nums; margin:2px 0; }
.metric-card small{ display:block; color:rgba(255,255,255,.72); font-size:13.5px; text-align:left; } .metric-card small i{ display:none; }
.dashboard-layout-pro{ display:grid; grid-template-columns:1.5fr 1fr; gap:16px; }
.dashboard-layout-pro .panel{ margin:0; }
.two-cols,.edit-grid{ display:grid; grid-template-columns:1.5fr 1fr; gap:16px; } .two-cols{ grid-template-columns:1fr 1fr; }
.dashboard-section-icon{ width:32px; height:32px; border-radius:10px; background:var(--blue); display:inline-flex; align-items:center; justify-content:center; }
.dashboard-section-icon svg,.mini-router-icon svg,.service-icon svg{ width:16px; height:16px; fill:none; stroke:#fff; stroke-width:2; }
.router-cell{ display:flex; align-items:center; gap:10px; } .mini-router-icon{ width:28px; height:28px; border-radius:9px; background:var(--indigo); display:inline-flex; align-items:center; justify-content:center; }
.service-stack{ display:flex; flex-direction:column; }
.service-item{ display:flex; align-items:center; gap:12px; padding:12px 24px; border-top:1px solid var(--sep); }
.service-icon{ width:32px; height:32px; border-radius:10px; background:var(--green); display:inline-flex; align-items:center; justify-content:center; flex:none; }
.service-item > div{ flex:1; } .service-item b{ display:block; font-size:15px; } .service-item small{ color:var(--sec); font-size:13.5px; }
.service-item strong{ font-size:14px; font-weight:800; display:flex; align-items:center; gap:7px; } .service-item strong i{ width:7px; height:7px; border-radius:50%; background:currentColor; box-shadow:0 0 8px currentColor; }
.service-item strong.ok{ color:var(--tgreen); } .service-item strong.down{ color:var(--tred); }
.activity-list{ display:flex; flex-direction:column; }
.activity-item{ display:flex; align-items:center; gap:12px; padding:12px 24px; border-top:1px solid var(--sep); }
.activity-badge{ width:32px; height:32px; border-radius:50%; background:var(--searchbg); display:inline-flex; align-items:center; justify-content:center; font-weight:800; font-size:14px; flex:none; }
.activity-item > div{ flex:1; min-width:0; } .activity-item b{ display:block; font-size:15px; } .activity-item small{ color:var(--sec); font-size:13.5px; } .activity-item time{ color:var(--ter); font-size:13px; white-space:nowrap; }
.period-chip{ padding:6px 12px; border-radius:20px; background:rgba(48,209,88,.2); color:var(--tgreen); font-size:13.5px; font-weight:800; }
.traffic-numbers{ display:grid; grid-template-columns:1fr 1fr; gap:14px; padding:6px 24px 10px; }
.traffic-numbers span{ display:block; color:var(--sec); font-size:13.5px; } .traffic-numbers b{ font-size:22px; font-weight:800; direction:ltr; display:block; }
.traffic-visual{ display:grid; gap:10px; padding:0 24px 8px; }
.traffic-line{ height:8px; border-radius:8px; background:rgba(127,127,127,.18); overflow:hidden; } .traffic-line span{ display:block; height:100%; width:var(--value,0%); border-radius:8px; }
.download-line span{ background:var(--green); } .upload-line span{ background:var(--blue); }
.traffic-legend{ display:flex; gap:16px; padding:6px 24px 16px; color:var(--sec); font-size:13.5px; } .traffic-legend i{ display:inline-block; width:8px; height:8px; border-radius:50%; margin-inline-end:6px; }
.download-dot{ background:var(--green); } .upload-dot{ background:var(--blue); }
.protocol-tag{ display:inline-block; background:rgba(10,132,255,.16); color:var(--tblue); border-radius:8px; padding:4px 8px; font-size:12.5px; font-weight:800; }
.plain-link,.open-link-button,.copy-link-button{ color:var(--tblue); font-weight:700; background:none; border:0; cursor:pointer; font:inherit; }
.error-text{ color:var(--tred) !important; }
.section-title{ font-weight:800; color:var(--sec); border-top:1px solid var(--sep); padding-top:18px; margin-top:20px; }
.steps{ line-height:2; color:var(--sec); }

/* ============ ROUTERS PAGE + LIVE-JS HOOKS ============ */
.v12-inline-form{ display:inline; margin:0; }
.v12-toast{ position:fixed; inset-inline-start:24px; bottom:24px; background:var(--matbg); color:var(--ink); border:1px solid var(--matborder); border-radius:13px; padding:12px 16px; opacity:0; transform:translateY(15px); pointer-events:none; transition:.2s; z-index:9999; }
.v12-toast.show{ opacity:1; transform:translateY(0); }
.tiles.three{ margin-bottom:16px; }
.tile.v12-filter{ border:1px solid rgba(255,255,255,.14); cursor:pointer; text-align:inherit; font:inherit; width:100%; opacity:.72; transition:.18s; }
.tile.v12-filter.active{ opacity:1; box-shadow:0 0 0 3px rgba(255,255,255,.55), 0 12px 30px rgba(0,0,0,.28); }
.pill.online{ background:rgba(48,209,88,.2); color:var(--tgreen); } .pill.offline{ background:rgba(255,69,58,.2); color:var(--tred); }
.bar i{ width:var(--value,0%); transition:width .4s; }
.v15-router-stack{ display:flex; flex-direction:column; gap:18px; }
.rcard .rhead .pill{ margin-inline-start:auto; }
.search input{ background:transparent; border:0; outline:0; color:inherit; flex:1; min-height:0; padding:0; font:inherit; font-size:15px; }
details.mat.form > summary{ list-style:none; cursor:pointer; } details.mat.form > summary::-webkit-details-marker{ display:none; } details.mat.form > summary h3{ margin:0; } details.mat.form[open] > summary h3{ margin-bottom:16px; }
.act.disabled{ opacity:.45; pointer-events:none; }
.mt .lbl .v15-resource-peak{ font-weight:600; opacity:.85; }
.mt.dev .illus img{ display:block; }
body.vpn-dialog-open{ overflow:hidden; }
.vpn-access-modal{ position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity .18s; }
.vpn-access-modal.open{ opacity:1; } .vpn-access-modal[hidden]{ display:none; }
.vpn-dialog-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.55); border:0; cursor:pointer; }
.vpn-dialog{ position:relative; width:min(560px,92vw); background:var(--matbg); backdrop-filter:blur(24px) saturate(1.8); -webkit-backdrop-filter:blur(24px) saturate(1.8); border:1px solid var(--matborder); border-radius:22px; padding:22px; box-shadow:0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 var(--matsheen); }
.vpn-dialog-head{ display:flex; gap:12px; align-items:flex-start; } .vpn-dialog-head > div{ flex:1; }
.vpn-dialog-head h2{ margin:0; font-size:19px; font-weight:800; } .vpn-dialog-head p{ margin:4px 0 0; color:var(--sec); font-size:14.5px; } .vpn-dialog-head strong{ display:block; margin-top:6px; color:var(--tblue); }
.vpn-dialog-symbol{ width:46px; height:46px; border-radius:14px; background:var(--teal); display:flex; align-items:center; justify-content:center; flex:none; } .vpn-dialog-symbol svg{ width:24px; height:24px; stroke:#fff; }
.vpn-dialog-close{ width:34px; height:34px; border-radius:50%; background:var(--searchbg); border:1px solid var(--searchbd); color:var(--ink); display:flex; align-items:center; justify-content:center; cursor:pointer; } .vpn-dialog-close svg{ width:16px; height:16px; }
.vpn-dialog-options{ display:grid; gap:10px; margin:18px 0 14px; }
.vpn-option{ display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:15px; background:var(--searchbg); border:1px solid var(--searchbd); color:var(--ink); } .vpn-option[hidden]{ display:none; }
.vpn-option-icon{ width:38px; height:38px; border-radius:11px; display:flex; align-items:center; justify-content:center; flex:none; } .vpn-option-icon svg{ width:20px; height:20px; stroke:#fff; }
.vpn-option-copy{ flex:1; min-width:0; } .vpn-option-copy b{ display:block; font-size:15.5px; } .vpn-option-copy small{ color:var(--sec); font-size:13.5px; }
.vpn-option-action{ color:var(--tblue); font-weight:800; font-size:14px; display:flex; align-items:center; gap:6px; white-space:nowrap; } .vpn-option-action svg{ width:14px; height:14px; }
.vpn-certificate-note{ display:flex; gap:8px; align-items:center; color:var(--sec); font-size:14px; } .vpn-certificate-note svg{ width:16px; height:16px; stroke:var(--tgreen); flex:none; }
.vpn-regenerate-form{ margin-top:12px; } .vpn-regenerate-form[hidden]{ display:none; }
.sm-busy{ position:fixed; inset:0; z-index:5000; display:none; align-items:center; justify-content:center; background:rgba(0,0,0,.45); } .sm-busy.show,.sm-busy.is-on{ display:flex; }
.sm-busy__box{ background:var(--matbg); border:1px solid var(--matborder); border-radius:18px; padding:20px 26px; display:flex; align-items:center; gap:14px; font-weight:800; }
.sm-busy__spin{ width:22px; height:22px; border:3px solid rgba(127,127,127,.3); border-top-color:var(--blue); border-radius:50%; animation:cwg-spin .8s linear infinite; }
@keyframes cwg-spin{ to{ transform:rotate(360deg); } }

/* ============ GAPS REPORTED BY THE TEMPLATE CONVERSION ============ */
[hidden]{ display:none !important; }
button.act,button.ract,button.chip,button.tile,button.lnk,button.tab{ border:0; cursor:pointer; font:inherit; text-align:inherit; color:inherit; }
button.act{ color:var(--tblue); } button.act.green{ color:var(--tgreen); } button.act.purple{ color:var(--tpurple); } button.act.grey{ color:var(--greytext); } button.act.red{ color:var(--tred); }
.fld label,label.tglrow,label.chip,label.perm,.tglrow label,.chip label,.perm label{ margin:0; }
.form > h3 + .hint,.form > h3 + p.hint{ margin:-6px 0 14px; font-size:14.5px; }
.mat:not(.form):not(.rcard):not(.acard) > .acts{ padding:0 24px 18px; }
.acard .kv{ padding-inline:0; } .ameta.two{ grid-template-columns:1fr 1fr; }
.mat > textarea,.mat > pre,.mat > .script-area{ width:calc(100% - 48px); margin:0 24px 22px; }
.setgrid{ margin-bottom:16px; }
.status-pill{ display:inline-flex; align-items:center; gap:7px; padding:6px 12px; border-radius:20px; font-size:14px; font-weight:800; background:var(--searchbg); color:var(--sec); }
.status-pill.status-running{ background:rgba(255,159,10,.2); color:var(--torange); } .status-pill.status-success{ background:rgba(48,209,88,.2); color:var(--tgreen); } .status-pill.status-failed{ background:rgba(255,69,58,.2); color:var(--tred); }
.update-spinner{ width:22px; height:22px; border:3px solid rgba(127,127,127,.3); border-top-color:var(--blue); border-radius:50%; animation:cwg-spin .8s linear infinite; display:inline-block; }
.sm-row-hidden{ display:none !important; }
.sm-just-changed{ animation:cwg-flash 1.2s ease-out; } @keyframes cwg-flash{ from{ background:rgba(10,132,255,.25); } to{ background:transparent; } }
.sm-help{ cursor:help; color:var(--tblue); font-weight:800; }
.sm-help-pop,.sm-readout{ position:absolute; z-index:60; background:var(--matbg); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); border:1px solid var(--matborder); border-radius:12px; padding:10px 12px; font-size:13.5px; color:var(--ink); box-shadow:0 12px 30px rgba(0,0,0,.3); max-width:280px; }
.sm-readout__row{ display:flex; align-items:center; gap:8px; white-space:nowrap; }
.sm-legend{ display:flex; flex-wrap:wrap; gap:12px; color:var(--sec); font-size:13.5px; } .sm-legend i,.sm-readout i{ display:inline-block; width:9px; height:9px; border-radius:50%; }
.chip.is-active,.chip.active,.chips button.active{ background:rgba(10,132,255,.16); color:var(--tblue); border-color:transparent; }
.page-button{ padding:7px 12px; border-radius:10px; background:var(--searchbg); border:1px solid var(--searchbd); color:var(--ink); cursor:pointer; font:inherit; font-weight:700; }
.page-button.active{ background:var(--blue); color:#fff; border-color:transparent; }
#subscriberPagination:not(:empty){ display:flex; gap:6px; flex-wrap:wrap; padding:12px 24px 18px; }
details > summary{ list-style:none; cursor:pointer; } details > summary::-webkit-details-marker{ display:none; }
.stepper button{ width:38px; height:40px; border:0; background:transparent; color:var(--tblue); font-size:18px; cursor:pointer; border-inline-start:1px solid var(--searchbd); }
.stepper input{ width:64px; min-height:0; height:40px; border:0; background:transparent; text-align:center; font-weight:800; padding:0; border-radius:0; }
.qr:has(img){ display:block; width:200px; height:auto; } .qr > img{ display:block; width:100%; height:auto; border-radius:8px; }
.copybtn{ background:none; border:0; color:var(--tblue); cursor:pointer; font:inherit; font-weight:700; }
.good-text{ color:var(--tgreen); } .danger-text{ color:var(--tred); }
.lb-line-row.is-selected td{ background:rgba(10,132,255,.1); }
.mat .search{ margin:0 24px 14px; }

/* ============ HOOK CLASSES THE SCRIPTS TOGGLE + PAGE-LOCAL RULES FOLDED IN ============ */
.v12-page{ display:block; } .v12-search{ font-size:15px; } .v12-empty{ padding:34px 20px; } .v15-add-router-form{ margin-top:4px; }
.v12-router-row{ position:relative; } .v12-router-avatar svg{ stroke:#fff; } .v12-progress-fill{ display:block; } .v12-status{ white-space:nowrap; }
.v15-router-card{ scroll-margin-top:16px; } .v15-router-card.is-offline .rhead h3{ opacity:.9; } .v15-router-card.is-online .rhead .av{ box-shadow:0 0 0 3px rgba(48,209,88,.25); }
.v15-router-actions{ margin-top:2px; }
.v15-sstp-state.is-online{ color:var(--tgreen); } .v15-sstp-state.is-offline{ color:var(--sec); } .v15-wg-total{ font-variant-numeric:tabular-nums; }
.v15-spark{ display:block; } .mt .spark .v15-spark-grid{ stroke:rgba(255,255,255,.18) !important; fill:none !important; } .mt .spark .v15-spark-line{ fill:none !important; }
.mt.traffic .val{ font-variant-numeric:tabular-nums; } .mt.download .mi,.mt.upload .mi{ background:rgba(255,255,255,.22) !important; }
.wireguard-option .vpn-option-icon{ background:var(--teal); } .openvpn-option .vpn-option-icon{ background:var(--orange); } .bth-option .vpn-option-icon{ background:var(--green); }
.lb-add{ display:flex; align-items:center; gap:10px; padding:12px 16px; margin-bottom:16px; } .lb-add input{ flex:1; }
.lb-empty{ display:flex; flex-direction:column; align-items:center; gap:10px; } .lb-empty svg{ width:38px; height:38px; stroke:var(--ter); } .lb-empty p{ margin:4px 0 0; color:var(--sec); }
.lb-add-line-number{ font-variant-numeric:tabular-nums; } .lb-declare{ display:inline-flex; align-items:center; gap:10px; } .lb-detail-declare{ flex-wrap:wrap; }
@media (min-width:1700px){ .v15-router-stack .v15-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.maintenance-page{ margin:0; } .subscriber-router-card{ transition:transform .15s; } .subscriber-router-card:hover{ transform:translateY(-1px); }
.dashboard-view-all{ margin:0; } .pro-panel{ min-width:0; } .pro-table{ width:100%; } .routers-overview,.services-panel,.traffic-panel{ min-width:0; }
.update-waiting{ display:flex; align-items:center; gap:12px; padding:0 24px 18px; color:var(--tgreen); font-weight:700; } .update-status-message{ padding:0 24px 16px; font-size:15.5px; }
.update-success-actions{ padding:0 24px 18px; } .update-output{ margin:0 24px 22px; }
.sm-table{ width:100%; } .sm-table th,.sm-table td{ white-space:nowrap; }
/* A cell's own dir="ltr" (an IP, a MAC, a number) fixes its reading order
   but also flips what "start" means, so the browser's default text-align
   pulls it to the wrong edge - away from its header, toward the next
   column over. Every table needs this, not just one class of table. */
[dir="rtl"] table td[dir="ltr"],[dir="rtl"] table th[dir="ltr"]{ text-align:right; }
[dir="ltr"] table td[dir="rtl"],[dir="ltr"] table th[dir="rtl"]{ text-align:left; }
.sm-router-menu{ flex-wrap:wrap; }
/* A chevron drawn with two PHYSICAL borders: logical border-inline-end beside border-bottom points sideways in RTL. */
.sm-router-menu__caret{ display:inline-block; width:8px; height:8px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); margin-inline-start:6px; }
.sm-copy{ color:var(--tblue); font-weight:700; background:none; border:0; cursor:pointer; font:inherit; }
.sm-readout{ top:0; left:0; display:none; line-height:1.6; white-space:nowrap; pointer-events:none; } .sm-readout b{ display:block; font-family:ui-monospace,Menlo,monospace; }
#permissionForm label.perm{ margin:0; }
.permission-filters-v25 button{ cursor:pointer; } .permission-filters-v25 button.active{ background:rgba(10,132,255,.16); color:var(--tblue); border-color:transparent; }
.permission-group-head-v25{ background:none; border:0; padding:0; color:inherit; font:inherit; cursor:pointer; display:flex; align-items:center; gap:8px; flex:1; text-align:start; }
.permission-group-head-v25 svg{ width:15px; height:15px; stroke:currentColor; transition:transform .2s; } .permission-group-head-v25[aria-expanded="false"] svg{ transform:rotate(-90deg); }
.permission-list-v25{ display:block; } .permgrp.collapsed .permission-list-v25,.collapsed > .permission-list-v25{ display:none; }
.permission-row-v25{ transition:background .2s; } .permission-row-v25.profile-applied-v25{ background:rgba(48,209,88,.12); border-radius:10px; }
.has-selection .permission-group-head-v25{ color:var(--tblue); }
body.menu-open{ overflow:hidden; }
.portal-offline{ box-shadow:inset 0 0 0 2px rgba(255,69,58,.45); } .good{ color:var(--tgreen); } .warn{ color:var(--torange); } .bad{ color:var(--tred); }
.health-good{ color:var(--tgreen); } .health-warn{ color:var(--torange); } .health-bad{ color:var(--tred); }
.is-ok{ color:var(--tgreen); } .is-online{ --state:var(--tgreen); } .is-offline{ --state:var(--tred); }
.is-sortable th[data-sort]{ cursor:pointer; user-select:none; } .is-sortable th[data-sort]:hover{ color:var(--ink); }

.sidebar-nav{ display:flex; flex-direction:column; } .organized-nav .seclbl:first-child{ margin-top:0; }
.language-popover{ width:260px; } .notification-button{ position:relative; } .notification-time{ display:block; } .profile-avatar-icon svg{ stroke:#fff; }
.alert-settings-form{ display:block; } .lb-add-line-ready{ color:var(--tgreen); font-weight:800; } .bth-config-text{ user-select:all; }
.activity-panel .activity-list{ max-height:420px; overflow:auto; } .dashboard-metric-card{ min-height:118px; }
.v15-metric{ min-width:0; } .v15-router-info-strip{ margin-bottom:18px; }
/* An icon pinned at the card's inline-end needs the text to stop before it: a dir="ltr" value otherwise starts underneath it. */
.sm-kpi{ position:relative; padding-inline-end:84px; } .sm-kpi__value{ font-variant-numeric:tabular-nums; }

/* ============ READABILITY: larger secondary text, stronger contrast in every theme ============ */
:root{ --sec:rgba(235,235,245,.74); --ter:rgba(235,235,245,.52); --greytext:#e5e5ea; }
html[data-theme="light"]{ --sec:rgba(60,60,67,.78); --ter:rgba(60,60,67,.58); --greytext:#3a3a3c; }
html[data-theme="system"]{ --sec:rgba(235,235,245,.8); --ter:rgba(235,235,245,.58); }
body{ line-height:1.5; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
.hint{ color:var(--sec); } .topbar-title .crumb{ color:var(--sec); } .topbar-title .crumb em{ color:var(--ink); }
.seclbl{ color:var(--sec); } .app-footer,.sidebar .version{ color:var(--sec); }
.sm-table__group th{ color:var(--sec) !important; font-size:15px !important; }
th{ color:var(--sec); } .ip{ color:var(--ink); } td .ip,th .ip{ color:inherit; }
label{ color:var(--sec); } .fld label{ color:var(--sec); }
.empty{ color:var(--sec); } .empty b{ color:var(--ink); }
.mat.tile .l,.mt .lbl{ color:rgba(255,255,255,.9); } .mt .lbl b{ color:rgba(255,255,255,.75); } .mt .val small{ color:rgba(255,255,255,.88); }
.metric-card span,.stat span{ color:rgba(255,255,255,.9); } .metric-card small{ color:rgba(255,255,255,.8); }

/* ============ iOS SWITCHES: every checkbox renders as an on/off toggle ============ */
input[type=checkbox]{ appearance:none; -webkit-appearance:none; -moz-appearance:none; width:46px; height:28px; border-radius:14px; background:var(--searchbg); border:1px solid var(--searchbd);
  position:relative; flex:none; cursor:pointer; margin:0; padding:0; vertical-align:middle; display:inline-block; outline:none; transition:background .22s ease, border-color .22s ease; }
input[type=checkbox]::before{ content:""; position:absolute; top:3px; inset-inline-start:3px; width:20px; height:20px; border-radius:50%; background:#fff; box-shadow:0 3px 8px rgba(0,0,0,.35), 0 0 0 .5px rgba(0,0,0,.06);
  transition:inset-inline-start .22s cubic-bezier(.4,0,.2,1), width .15s; }
input[type=checkbox]:checked{ background:var(--green); border-color:transparent; }
input[type=checkbox]:checked::before{ inset-inline-start:calc(100% - 23px); }
input[type=checkbox]:active::before{ width:24px; }
input[type=checkbox]:checked:active::before{ inset-inline-start:calc(100% - 27px); }
input[type=checkbox]:focus-visible{ box-shadow:0 0 0 3px rgba(10,132,255,.35); }
input[type=checkbox]:disabled{ opacity:.45; cursor:not-allowed; }
html[data-theme="light"] input[type=checkbox]{ background:rgba(120,120,128,.32); border-color:transparent; }
html[data-theme="light"] input[type=checkbox]:checked{ background:var(--green); }
/* compact switch inside tables and chips */
.sm-table input[type=checkbox],table input[type=checkbox],.chip input[type=checkbox],.chips input[type=checkbox]{ width:38px; height:22px; border-radius:11px; }
.sm-table input[type=checkbox]::before,table input[type=checkbox]::before,.chip input[type=checkbox]::before,.chips input[type=checkbox]::before{ width:16px; height:16px; top:2px; inset-inline-start:2px; }
.sm-table input[type=checkbox]:checked::before,table input[type=checkbox]:checked::before,.chip input[type=checkbox]:checked::before,.chips input[type=checkbox]:checked::before{ inset-inline-start:calc(100% - 18px); }
.sm-table input[type=checkbox]:active::before,table input[type=checkbox]:active::before,.chip input[type=checkbox]:active::before{ width:19px; }
.sm-table input[type=checkbox]:checked:active::before,table input[type=checkbox]:checked:active::before,.chip input[type=checkbox]:checked:active::before{ inset-inline-start:calc(100% - 21px); }
label.chip{ cursor:pointer; gap:9px; } label.chip:has(input:checked){ background:rgba(10,132,255,.16); color:var(--tblue); border-color:transparent; }
label.tglrow,label.perm{ cursor:pointer; }

/* ============ DEVICE CARD: MikroTik photo fills the whole tile ============ */
.mt.dev{ padding:12px 14px 10px; display:flex; flex-direction:column; min-height:210px; }
.mt.dev .h{ flex:none; }
.dev .illus{ display:flex; align-items:center; justify-content:center; margin:4px 0; flex:1; min-height:0; }
.mt.dev .illus img{ width:100%; height:100%; max-width:100%; object-fit:contain; display:block; }
.mt.dev strong{ flex:none; } .v15-device-card{ overflow:hidden; }

/* ============ APP ICONS: original brand icons in the app-traffic tables ============ */
.appic{ width:38px; height:38px; border-radius:10px; display:inline-flex; align-items:center; justify-content:center; flex:none; overflow:hidden; color:#fff; font-weight:800; font-size:15px; line-height:1; }
.appic img{ width:22px; height:22px; display:block; }
.appic.fav{ background:transparent; box-shadow:none; } .appic.fav img{ width:38px; height:38px; border-radius:10px; }
.appname{ display:inline-flex; align-items:center; gap:10px; } .appname b{ font-size:15.5px; }

/* ============ INFO STRIP: adapt to however many items a page renders ============ */
.strip{ grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); }
.v15-wg-total-rx,.v15-wg-total-tx{ display:block; margin-top:4px; color:rgba(255,255,255,.78); font-size:13.5px; font-weight:600; }

/* ============ DASHBOARD LISTS + COLUMN PRIORITY ============ */
.brk{ word-break:break-all; overflow-wrap:anywhere; white-space:normal !important; }
.activity-item{ gap:14px; padding:11px 24px; }
.actv-ic{ width:36px; height:36px; border-radius:11px; display:inline-flex; align-items:center; justify-content:center; flex:none; background:var(--searchbg); color:var(--sec); }
.actv-ic svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; }
.actv-ic.add{ background:rgba(48,209,88,.18); color:var(--tgreen); } .actv-ic.del{ background:rgba(255,69,58,.18); color:var(--tred); }
.actv-ic.edit{ background:rgba(10,132,255,.18); color:var(--tblue); } .actv-ic.auth{ background:rgba(191,90,242,.18); color:var(--tpurple); } .actv-ic.sys{ background:rgba(255,159,10,.18); color:var(--torange); }
.activity-item b{ font-size:15px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .activity-item small{ display:block; margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.activity-item time{ color:var(--sec); font-size:13.5px; font-weight:600; } .actv-ic.warn{ background:rgba(255,159,10,.18); color:var(--torange); }
.recent-routers td.c-time{ white-space:nowrap; font-size:14px; color:var(--sec); } .recent-routers td.c-ip{ font-size:15px; }
.recent-routers th,.recent-routers td{ padding:11px 18px; } .recent-routers td{ font-size:15.5px; }
.recent-routers .mini-router-icon{ width:30px; height:30px; } .recent-routers .router-cell b{ font-size:15px; }
.recent-routers .row-actions{ display:inline-flex; gap:6px; } .recent-routers .row-actions a{ width:32px; height:32px; border-radius:9px; background:var(--searchbg); display:inline-flex; align-items:center; justify-content:center; color:var(--tblue); } .recent-routers .row-actions svg{ width:16px; height:16px; }
/* col-lg-hide / col-md-hide / col-sm-hide: intentionally no-ops. Nothing on
   this page is ever hidden for width - a table that does not fit is shrunk
   to fit instead (see the zoom-fit script in base.html), never trimmed. */
.col-lg-hide,.col-md-hide,.col-sm-hide{ }

/* ============ RESPONSIVE: desktop > iPad landscape > iPad portrait (drawer) > phone ============ */
@media (max-width:1200px){
  .metrics,.tiles,.hero-metrics,.stats-grid,.wgstats,.tiles4{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-layout-pro,.g2,.g2.eq,.g2r,.two-cols,.edit-grid,.g3{ grid-template-columns:1fr; }
  .setgrid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .strip{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px 18px; }
}
@media (max-width:900px){
  .sidebar{ inset-inline-start:-300px; width:290px; transition:inset-inline-start .25s ease; }
  .sidebar.open{ inset-inline-start:0; }
  .sidebar-mobile-head{ display:flex; align-items:center; justify-content:space-between; padding:0 6px 12px; font-weight:800; }
  .sidebar-close{ background:var(--searchbg); border:1px solid var(--searchbd); color:var(--ink); width:34px; height:34px; border-radius:50%; font-size:20px; cursor:pointer; }
  .mobile-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:25; } .mobile-overlay.open{ display:block; }
  .mobile-menu-btn{ display:flex; flex-direction:column; gap:4px; width:40px; height:40px; align-items:center; justify-content:center; border-radius:50%; background:var(--searchbg); border:1px solid var(--searchbd); cursor:pointer; flex:none; }
  .mobile-menu-btn span{ width:18px; height:2px; background:var(--ink); border-radius:2px; }
  .content{ margin:0; width:100%; }
  .topbar{ padding:14px 16px 10px; gap:10px 12px; flex-wrap:wrap; align-items:center; }
  .topbar .mobile-menu-btn{ order:0; } .topbar-title{ order:1; flex:1; min-width:0; } .ui-controls{ order:2; width:100%; gap:8px; }
  .topbar-title h1{ font-size:24px; } .topbar-title p{ font-size:15px; } .topbar-title .crumb{ font-size:14px; }
  .page-content{ padding:4px 14px 24px; } .alert{ margin:0 14px 12px; } .app-footer{ padding:10px 14px 18px; }
  .metrics,.tiles,.hero-metrics,.stats-grid,.wgstats,.tiles4{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .frow,.form-grid,.kv,.setgrid,.ameta.two{ grid-template-columns:1fr; }
  .rcard{ padding:20px 18px; border-radius:22px; } .rhead{ gap:12px; margin-bottom:16px; flex-wrap:wrap; } .rhead h3{ font-size:20px; } .rhead .av{ width:48px; height:48px; }
  .strip{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 16px; padding:14px 2px; }
  .acts{ gap:8px; } .act{ padding:10px 14px; font-size:15.5px; }
  .pro-table-wrap,.table-wrap{ overflow:visible; } table{ table-layout:auto; } th,td{ padding:10px 10px; white-space:normal; overflow-wrap:anywhere; }
  .sm-table th,.sm-table td{ white-space:normal; } td[dir="ltr"]{ overflow-wrap:anywhere; }
  .ui-popover.open,.topbar-profile.open .profile-menu{ position:fixed; top:var(--pop-top,72px); inset-inline:12px; width:auto; max-width:none; } .notification-popover.open{ width:auto; }
  .mat{ border-radius:16px; } .ph h3{ font-size:16.5px; } .mat.tile{ min-height:96px; padding:14px 76px 14px 16px; } .mat.tile .ic{ width:50px; height:50px; right:12px; } .mat.tile .ic svg{ width:26px; height:26px; } .tile .v{ font-size:26px; } .tile .l{ font-size:14.5px; }
  .recent-routers thead{ display:none; } .recent-routers tr{ display:grid; grid-template-columns:1fr auto; column-gap:12px; padding:10px 16px; border-top:1px solid var(--sep); align-items:center; }
  .recent-routers tr{ grid-template-columns:1fr auto; row-gap:4px; padding:10px 16px; }
  .recent-routers td{ display:block; padding:0; border:0; } .recent-routers td.c-name{ grid-column:1; grid-row:1; } .recent-routers td.c-status{ grid-column:2; grid-row:1 / span 2; }
  .recent-routers td.c-ip{ grid-column:1; grid-row:2; color:var(--sec); font-size:14.5px; padding-inline-start:40px; }
  .recent-routers td.c-time{ grid-column:1 / -1; grid-row:3; padding-inline-start:40px; font-size:13.5px; } .recent-routers td.c-time::before{ content:attr(data-label) ": "; color:var(--sec); }
  .recent-routers td.c-act{ grid-column:1 / -1; grid-row:4; padding-inline-start:40px; margin-top:2px; }
  .recent-routers td.empty{ grid-column:1 / -1; padding:24px; }
  .tabstrip{ width:100%; flex-wrap:wrap; overflow-x:visible; }
  .sm-router-menu{ flex-wrap:wrap; overflow-x:visible; }
  .mat .search{ margin:0 16px 12px; } .ph{ padding:14px 16px 10px; flex-wrap:wrap; gap:8px; }
  .language-button small{ display:none; } .language-button{ min-width:40px; padding:0; }
  .ui-popover,.profile-menu{ max-width:calc(100vw - 28px); }
  .acard{ padding:18px 16px; } .ntf{ padding:12px 16px; }
  .lbstats{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } .toolbar{ flex-wrap:wrap; gap:10px; }
}
@media (max-width:600px){
  .topbar{ padding:12px 14px 8px; } .topbar-title h1{ font-size:22px; } .topbar-title p{ font-size:14.5px; }
  .page-content{ padding:4px 12px 22px; } .alert{ margin:0 12px 10px; }
  .tiles,.hero-metrics,.stats-grid,.wgstats,.tiles4,.stats-grid.three{ grid-template-columns:1fr; }
  .tiles.three{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
  .tiles.three .mat.tile{ padding:12px 10px 12px 10px; min-height:0; text-align:center; }
  .tiles.three .mat.tile .ic{ position:static; transform:none; width:38px; height:38px; border-radius:11px; margin:0 auto 8px; } .tiles.three .mat.tile .ic svg{ width:20px; height:20px; }
  .tiles.three .mat.tile .v,.tiles.three .mat.tile .l{ text-align:center; } .tiles.three .mat.tile .v{ font-size:22px; } .tiles.three .mat.tile .l{ font-size:13.5px; margin-top:2px; }
  .metrics{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .mt{ padding:13px 58px 13px 13px; min-height:86px; border-radius:15px; } .mt .h{ margin-bottom:6px; }
  .mt .val{ font-size:20px; } .mt .lbl{ font-size:13.5px; } .mt .val small{ font-size:13px; }
  .mt:not(.dev) .mi{ width:42px; height:42px; right:10px; border-radius:13px !important; } .mt:not(.dev) .mi svg{ width:22px; height:22px; }
  .mt.dev{ grid-column:1 / -1; padding:13px 14px; }
  .strip{ grid-template-columns:1fr 1fr; gap:10px 12px; } .strip small{ font-size:13.5px; } .strip strong{ font-size:15px; }
  .acts{ display:grid; grid-template-columns:1fr 1fr; gap:8px; } .acts form{ display:contents; } .acts .act{ justify-content:center; width:100%; padding:10px 8px; font-size:15px; }
  .rcard{ padding:16px 14px; border-radius:20px; } .rhead h3{ font-size:19px; } .rhead .sm{ font-size:15px; } .pill{ font-size:14px; padding:6px 11px; }
  .sm-table td small{ display:none; } th,td{ padding:9px 8px; font-size:15px; }
  /* Every table becomes a stacked card list on phones: a wide multi-column
     table trying to keep every column visible AND unscrolled AND readable
     at once has no solution that keeps all three - wrapping cell text
     narrow enough to avoid a scrollbar just makes it illegible instead.
     A card per row, one label:value pair per line, keeps everything
     visible and readable without ever needing to shrink text or hide a
     column. data-label on a <td> supplies the line's caption. */
  table:not(.no-stack){ display:block; }
  table:not(.no-stack) thead{ display:none; }
  table:not(.no-stack) tbody{ display:block; }
  table:not(.no-stack) tr{ display:block; background:var(--tilebg); border:1px solid var(--tilebd); border-radius:14px; padding:10px 14px; margin-bottom:10px; }
  table:not(.no-stack) tr.sm-table__group{ background:transparent; border:0; padding:14px 2px 4px; margin-bottom:2px; }
  table:not(.no-stack) td,table:not(.no-stack) th{ display:flex; align-items:baseline; justify-content:space-between; gap:14px; padding:6px 0; border:0; white-space:normal; text-align:end; }
  table:not(.no-stack) td[data-label]::before,table:not(.no-stack) th[data-label]::before{ content:attr(data-label); color:var(--sec); font-weight:700; font-size:14px; text-align:start; flex:none; }
  table:not(.no-stack) td.empty,table:not(.no-stack) td[colspan]{ display:block; text-align:center; }
  table:not(.no-stack) td.empty::before,table:not(.no-stack) td[colspan]::before{ content:none; }
  table:not(.no-stack) tr.sm-table__group th:first-child{ justify-content:flex-start; padding:2px 0; }
  .activity-item time{ font-size:12.5px; max-width:92px; white-space:normal; text-align:end; line-height:1.3; } .activity-item{ padding:10px 14px; } .activity-item b{ font-size:15.5px; }
  .sm-table th{ font-size:13.5px; } .appic{ width:34px; height:34px; } .appic.fav img{ width:34px; height:34px; } .appic img{ width:20px; height:20px; } .mt.dev{ min-height:170px; }
  .mt .lbl .v15-resource-peak{ display:none; } .table-wrap,.pro-table-wrap{ margin-inline:-4px; }
  .subcard{ flex-wrap:wrap; gap:10px 14px; padding:14px 16px; } .subname{ flex:1 1 100%; } .subcount{ flex:1; min-width:0; font-size:20px; text-align:start; }
  .subfoot{ flex:1 1 100%; border-inline-start:0; padding-inline-start:0; padding-top:8px; border-top:1px solid var(--sep); white-space:normal; justify-content:space-between; }
  .fbar{ flex-wrap:wrap; } .fbar > *{ flex:1 1 100%; } select[style*="min-width"]{ min-width:0 !important; width:100% !important; }
  .sub{ padding:0 14px 12px; font-size:15.5px; }
  .lbstats{ grid-template-columns:1fr; } .mat.lbstat,.mat.wgstat{ padding-right:76px; min-height:84px; } .mat.lbstat .ic,.mat.wgstat .ic{ width:48px; height:48px; right:12px; }
  .toolbar > *{ flex:1 1 100%; min-width:0; } .toolbar select,.toolbar .search{ width:100% !important; }
  .chips{ gap:6px; } .chip{ padding:7px 10px; font-size:14.5px; }
  .ui-controls{ justify-content:space-between; } .theme-center .themeseg{ height:36px; } .themeseg button{ width:30px; height:30px; }
  .ui-icon-button,.profile-trigger{ width:38px; height:38px; }
  .fbar,.rowacts{ flex-wrap:wrap; } .btn{ padding:10px 14px; font-size:15px; }
  .code{ margin:0 14px 16px; font-size:13.5px; padding:12px 14px; } .mat > textarea,.mat > pre,.mat > .script-area{ width:calc(100% - 28px); margin:0 14px 16px; }
  .qr:has(img){ width:100%; max-width:280px; margin:0 auto; }
  .login{ height:100vh; height:100dvh; max-height:100vh; max-height:100dvh; padding:14px; justify-content:flex-start; padding-top:88px; overflow:hidden; }
  .login .toolsrow{ top:16px; left:14px; }
  .login .card{ transform-origin:top center; flex:none; }
  .login .card{ width:100%; padding:26px 20px 24px; border-radius:26px; } .login .card-a .mk,.login .card-a img.mk{ width:110px; height:110px; } .login .lbtn{ padding:15px; font-size:16px; }
}


@media (max-height:480px) and (max-width:600px){
  .login{ padding-top:52px; } .login .toolsrow{ top:10px; left:10px; }
  .login .toolsrow .glassbtn,.login .themeseg button{ width:30px; height:30px; }
}
@media (max-height:500px) and (min-width:601px){
  .login{ height:100vh; height:100dvh; max-height:100vh; max-height:100dvh; overflow:hidden;
    padding-top:52px; justify-content:flex-start; }
  .login .toolsrow{ top:10px; left:14px; }
  .login .card{ transform-origin:top center; flex:none; }
}

.topo-map-wrap{ width:100%; padding:6px 18px 22px; overflow:hidden; }
.topo-map-wrap svg{ width:100%; height:auto; display:block; }
.topo-link{ stroke:var(--sep); stroke-width:1.5; fill:none; }
.topo-branch-link{ stroke-width:1.5; stroke-opacity:.55; fill:none; }
.topo-node circle{ stroke:var(--matbg); stroke-width:2; }
.topo-node use{ fill:none; stroke:#fff; }
.topo-node text{ fill:var(--ink); text-anchor:middle; }
.topo-node .topo-node-sub{ fill:var(--sec); font-size:9.5px; }
.topo-node .topo-node-title{ font-size:11px; font-weight:700; }
.topo-node.clickable{ cursor:pointer; }
.topo-node-router circle{ fill:var(--blue); }
.topo-node-online circle{ fill:var(--tgreen); }
.topo-node-offline circle{ fill:var(--tred); }
.topo-node-disabled circle{ fill:var(--ter); }
.topo-link-online{ stroke:var(--tgreen); stroke-opacity:.55; }
.topo-link-offline{ stroke:var(--tred); stroke-opacity:.45; }
.topo-accent-0{ fill:var(--blue); stroke:var(--blue); }
.topo-accent-1{ fill:var(--teal); stroke:var(--teal); }
.topo-accent-2{ fill:var(--indigo); stroke:var(--indigo); }
.topo-accent-3{ fill:var(--orange); stroke:var(--orange); }
.topo-accent-4{ fill:var(--purple); stroke:var(--purple); }
.topo-scan-status{ font-size:13px; color:var(--sec); margin:0 0 10px; padding:0 18px; }
.topo-scan-target{ font-size:14.5px; color:var(--ink); }
table .pon{ color:var(--tgreen); font-weight:800; }
