/* ================================================================
   NetGeoAudit demo — page frame (site theme) + Fluent (WPF-UI) windows
   ================================================================ */

/* ---------- page ---------- */
.demo-main { max-width: none; margin: 0 auto; padding: 36px 0 64px; }
.demo-head { text-align: center; margin: 0 auto 22px; padding: 0 16px; max-width: 900px; }
.demo-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .72rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent-dim); border-radius: 999px; padding: 7px 12px;
  background: var(--accent-glow);
}
.demo-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: kpulse 2.4s ease-in-out infinite; }
@keyframes kpulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent), 0 0 6px var(--accent); opacity: 1; }
  50%      { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent), 0 0 12px var(--accent); opacity: .75; }
}
@media (prefers-reduced-motion: reduce) { .demo-kicker::before { animation: none; } }
.demo-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 16px 0 8px; color: var(--text); }
.demo-head h1 em { color: var(--text-dim); font-style: italic; font-weight: 400; }
.demo-head p { color: var(--text-dim); max-width: 720px; margin: 0 auto; font-size: 1rem; line-height: 1.55; }
.stage { display: flex; justify-content: center; padding: 0 16px; }
.stage-inner { position: relative; }
.tips { max-width: 980px; margin: 30px auto 0; padding: 0 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tips .tip {
  border: 1px solid var(--border); background: color-mix(in srgb, var(--bg-elev) 80%, transparent);
  border-radius: var(--radius-lg); padding: 12px 14px; color: var(--text-dim); font-size: .9rem; line-height: 1.45;
}
.tips .tip b { color: var(--text); font-weight: 600; }
.tips .tip code { font-family: var(--font-mono); font-size: .82rem; color: var(--accent); cursor: pointer; }
.tips .tip .n { font: 600 .7rem/1 var(--font-mono); color: var(--accent); display: block; margin-bottom: 6px; letter-spacing: .06em; }
.demo-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; padding: 0 16px; }
@media (max-width: 760px) { .tips { grid-template-columns: 1fr; } }

.ptoast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); z-index: 5000;
  background: var(--bg-elev-2); color: var(--text); border: 1px solid var(--border-strong); border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg); padding: 11px 16px; font-size: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: opacity .2s, transform .2s;
}
.ptoast.show { opacity: 1; transform: translate(-50%, 0); }
.ptoast .tag { font: 600 .68rem/1 var(--font-mono); color: var(--accent); letter-spacing: .08em; text-transform: uppercase; margin-right: 8px; }

/* ---------- desktop (the area windows live in) ---------- */
.desk {
  /* Fluent dark — WPF-UI ThemesDictionary Dark + the user's accent */
  --win-bg: #202020; --content: #272727; --card: #343434;
  --fill-def: rgba(255,255,255,.061); --fill-sec: rgba(255,255,255,.084); --fill-ter: rgba(255,255,255,.033);
  --fill-input: rgba(255,255,255,.061); --fill-input-focus: #1f1f1f;
  --subtle-sec: rgba(255,255,255,.061); --subtle-ter: rgba(255,255,255,.042);
  --stroke: rgba(255,255,255,.075); --stroke-ctrl: rgba(255,255,255,.07); --stroke-input-bottom: rgba(255,255,255,.54);
  --div: #434343; --solid-base: #202020; --solid-sec: #1c1c1c; --app-bg: #202020; --popup-bg: #2c2c2c;
  --navsel: #2d2d2d; --navhov: #292929;
  --t1: #ffffff; --t2: rgba(255,255,255,.786); --t3: rgba(255,255,255,.545); --t4: rgba(255,255,255,.363); --t-desc: rgba(255,255,255,.72);
  --acc: #85b5bd; --acc-hov: #7aa6ad; --acc-press: #6f979e; --on-acc: #000; --acc-text: #8fc3cb; --acc-sec: #4f8f99;
  --danger: #f44336; --danger-hov: #e0392d; --on-danger: #fff;
  --success: #6ccb5f; --caution: #fce100; --critical: #ff99a4; --ok: #4caf50; --red: #f44336;
  --scroll: rgba(255,255,255,.4);
  --shadow: 0 24px 70px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.35);
  position: relative; overflow: hidden; color: var(--t1); border-radius: 12px;
  background: color-mix(in srgb, var(--bg-elev) 35%, transparent); box-shadow: inset 0 0 0 1px var(--border);
  font-family: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px; font-weight: 400; line-height: 1.33; text-align: left; -webkit-font-smoothing: antialiased;
}
.desk.light {
  --win-bg: #d6d6d6; --content: #ebebeb; --card: #f9f9f9;
  --fill-def: rgba(255,255,255,.7); --fill-sec: rgba(249,249,249,.5); --fill-ter: rgba(249,249,249,.3);
  --fill-input: rgba(255,255,255,.7); --fill-input-focus: #ffffff;
  --subtle-sec: rgba(0,0,0,.037); --subtle-ter: rgba(0,0,0,.024);
  --stroke: rgba(0,0,0,.0578); --stroke-ctrl: rgba(0,0,0,.0578); --stroke-input-bottom: rgba(0,0,0,.446);
  --div: #d0d0d0; --solid-base: #f3f3f3; --solid-sec: #eeeeee; --app-bg: #f3f3f3; --popup-bg: #f9f9f9;
  --navsel: rgba(0,0,0,.06); --navhov: rgba(0,0,0,.035);
  --t1: #1b1b1b; --t2: rgba(0,0,0,.606); --t3: rgba(0,0,0,.446); --t4: rgba(0,0,0,.361); --t-desc: rgba(0,0,0,.66);
  --acc: #2c7a85; --acc-hov: #347f8a; --acc-press: #3f8792; --on-acc: #fff; --acc-text: #1f6670; --acc-sec: #5ca3ad;
  --success: #0f7b0f; --caution: #9d5d00; --critical: #c42b1c; --ok: #2e8b32;
  --scroll: rgba(0,0,0,.4);
  --shadow: 0 24px 70px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.12);
}
.desk * { box-sizing: border-box; }
.desk h2, .desk h3 { font-family: inherit; letter-spacing: 0; line-height: 1.33; font-size: inherit; font-weight: inherit; margin: 0; }
:where(.desk) button { font: inherit; color: inherit; border: 0; background: none; cursor: default; padding: 0; }
:where(.desk) input, :where(.desk) textarea { font-family: inherit; }
.desk img, .desk svg { max-width: none; }
.desk .ico { width: 1em; height: 1em; fill: currentColor; flex: none; display: block; }
.desk ::-webkit-scrollbar { width: 6px; height: 6px; }
.desk ::-webkit-scrollbar-thumb { background: var(--scroll); border-radius: 3px; }
.desk ::-webkit-scrollbar-track, .desk ::-webkit-scrollbar-corner { background: transparent; }
.desk * { scrollbar-width: thin; scrollbar-color: var(--scroll) transparent; }
.mono { font-family: Consolas, "Cascadia Mono", "JetBrains Mono", monospace; }

/* ---------- Fluent window ---------- */
.fw {
  position: absolute; display: flex; flex-direction: column; background: var(--win-bg); color: var(--t1);
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden;
  user-select: none;
}
.desk.light .fw { border-color: rgba(0,0,0,.18); }
.fw.min, .fw.hidden { display: none; }
.fw.max { border-radius: 0; }
.fw-tb { height: 48px; flex: none; display: flex; align-items: flex-start; }
.fw-tb .cap { flex: 1; min-width: 0; font-size: 12px; line-height: 48px; padding-left: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-tb .cap.pad { padding-left: 32px; }
.fw:not(.active) .fw-tb .cap { color: var(--t3); }
.fw .capbtns { display: flex; flex: none; }
.fw .capbtn { width: 44px; height: 32px; display: grid; place-items: center; color: var(--t1) !important; }
.fw .capbtn svg { width: 10px; height: 10px; }
.fw .capbtn:hover { background: var(--subtle-sec) !important; }
.fw .capbtn.x:hover { background: #c42b1c !important; color: #fff !important; }
.fw-body { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.fw.auto { height: auto !important; }
.fw.auto .fw-body { flex: none; }
.fw .rz { position: absolute; z-index: 40; }
.fw .rz.n { left: 6px; right: 6px; top: -3px; height: 7px; cursor: ns-resize; }
.fw .rz.s { left: 6px; right: 6px; bottom: -3px; height: 7px; cursor: ns-resize; }
.fw .rz.e { top: 6px; bottom: 6px; right: -3px; width: 7px; cursor: ew-resize; }
.fw .rz.w { top: 6px; bottom: 6px; left: -3px; width: 7px; cursor: ew-resize; }
.fw .rz.se { right: -3px; bottom: -3px; width: 12px; height: 12px; cursor: nwse-resize; }
.fw .rz.sw { left: -3px; bottom: -3px; width: 12px; height: 12px; cursor: nesw-resize; }
.fw .rz.ne { right: -3px; top: -3px; width: 12px; height: 12px; cursor: nesw-resize; }
.fw .rz.nw { left: -3px; top: -3px; width: 12px; height: 12px; cursor: nwse-resize; }
.fw.flash { animation: fwflash .12s 4 alternate; }
@keyframes fwflash { to { box-shadow: 0 0 0 2px var(--acc), var(--shadow); } }
.modal-block { position: absolute; inset: 0; background: transparent; }
.desk.dragging, .desk.dragging * { cursor: inherit !important; user-select: none !important; }

/* ---------- controls (WPF-UI look) ---------- */
.wb {
  height: 32px; padding: 0 11px; border-radius: 4px; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  background: var(--fill-def) !important; color: var(--t1) !important; box-shadow: inset 0 0 0 1px var(--stroke-ctrl), inset 0 -1px 0 rgba(0,0,0,.1);
}
.wb:hover { background: var(--fill-sec) !important; }
.wb:active { background: var(--fill-ter) !important; color: var(--t2) !important; }
.wb:disabled { opacity: .4; pointer-events: none; }
.wb .ico { font-size: 14px; }
.wb.pri { background: var(--acc) !important; color: var(--on-acc) !important; box-shadow: inset 0 -1px 0 rgba(0,0,0,.16); }
.wb.pri:hover { background: var(--acc-hov) !important; }
.wb.pri:active { background: var(--acc-press) !important; color: var(--on-acc) !important; }
.wb.danger { background: var(--danger) !important; color: var(--on-danger) !important; box-shadow: none; }
.wb.danger:hover { background: var(--danger-hov) !important; }
.wb.success { background: #4caf50 !important; color: #fff !important; box-shadow: none; }   /* WPF-UI palette: Success / Caution / Info / Danger */
.wb.caution { background: #ff9800 !important; color: #fff !important; box-shadow: none; }
.wb.info { background: #03a9f4 !important; color: #fff !important; box-shadow: none; }
.wb.success:hover, .wb.caution:hover, .wb.info:hover { filter: brightness(.92); }
.wb.trans { background: transparent !important; box-shadow: inset 0 0 0 1px var(--stroke-ctrl); }
.wb.trans:hover { background: var(--subtle-sec) !important; }
.wb.wide { width: 100%; }
.ibtn { height: 32px; min-width: 32px; padding: 0 6px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
        box-shadow: inset 0 0 0 1px var(--stroke-ctrl); background: transparent !important; }
.ibtn:hover { background: var(--subtle-sec) !important; }
.ibtn:active { opacity: .75; }
.ibtn.on { color: var(--acc-text) !important; }
.tbx {
  height: 32px; padding: 0 10px; border-radius: 4px; outline: none; font-size: 14px; color: var(--t1); user-select: text;
  background: var(--fill-input); border: 1px solid var(--stroke-ctrl); border-bottom-color: var(--stroke-input-bottom);
}
.tbx::placeholder { color: var(--t3); }
.tbx:hover { background: var(--fill-sec); }
.tbx:focus { background: var(--fill-input-focus); border-bottom: 2px solid var(--acc); padding-bottom: 0; }
.tbx-icon { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 4px;
            background: var(--fill-input); border: 1px solid var(--stroke-ctrl); border-bottom-color: var(--stroke-input-bottom); }
.tbx-icon:focus-within { background: var(--fill-input-focus); border-bottom: 2px solid var(--acc); }
.tbx-icon .ico { font-size: 16px; color: var(--t2); }
.tbx-icon input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--t1); font-size: 12px; user-select: text; height: 100%; }
.tbx-icon input::placeholder { color: var(--t3); }
/* NumberBox, compact spinner */
.numbox { display: inline-flex; align-items: center; height: 34px; border-radius: 4px; background: var(--fill-input);
          border: 1px solid var(--stroke-ctrl); border-bottom-color: var(--stroke-input-bottom); }
.numbox:focus-within { background: var(--fill-input-focus); border-bottom: 2px solid var(--acc); }
.numbox input { flex: 1; min-width: 0; width: 100%; border: 0; outline: none; background: none; color: var(--t1); font-size: 14px; padding: 0 10px; user-select: text; }
.numbox .spin { display: flex; flex-direction: column; margin-right: 4px; }
.numbox .spin button { width: 22px; height: 14px; display: grid; place-items: center; font-size: 10px; border-radius: 3px; color: var(--t2) !important; }
.numbox .spin button:hover { background: var(--subtle-sec) !important; }
/* ToggleSwitch */
.tsw { display: inline-flex; align-items: center; gap: 12px; cursor: default; font-size: 14px; }
.tsw .track { width: 40px; height: 20px; border-radius: 10px; position: relative; flex: none; box-shadow: inset 0 0 0 1px var(--t2); transition: background .15s; }
.tsw .track::after { content: ""; position: absolute; left: 4px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--t2); transition: left .15s, width .1s; }
.tsw:hover .track::after { width: 14px; height: 14px; top: 3px; left: 3px; }
.tsw.on .track { background: var(--acc); box-shadow: none; }
.tsw.on .track::after { left: 24px; background: var(--on-acc); }
.tsw.on:hover .track::after { left: 23px; }
.tsw.green.on .track { background: var(--ok); }

/* ---------- main window ---------- */
.mw-toolbar { height: 33px; flex: none; margin: 0 12px 2px; display: flex; align-items: center; }
.mw-admin { display: flex; align-items: center; color: var(--success); font-size: 12px; gap: 6px; }
.mw-admin .ico { font-size: 16px; }
.mw-toolbar .grow { flex: 1; }
.mw-toolbar .ibtn { margin-left: 4px; }
.mw-toolbar .ibtn.upd { color: var(--success); }
.mw-exit { height: 32px; margin-left: 4px; padding: 0 8px; border-radius: 4px; font-size: 13px; box-shadow: inset 0 0 0 1px var(--stroke-ctrl); }
.mw-exit:hover { color: var(--critical) !important; background: var(--subtle-sec) !important; }
.mw-nav { height: 480px; flex: none; margin: 0 12px; position: relative; display: flex; border-radius: 8px; overflow: hidden; }
.mw-pane { width: 169px; flex: none; position: relative; padding-top: 7px; }
.nitem { position: relative; display: flex; align-items: center; width: 158px; height: 38px; margin: 0 0 2px 5px; border-radius: 4px; font-size: 14px; white-space: nowrap; }
.nitem:hover { background: var(--navhov) !important; }
.nitem.sel { background: var(--navsel) !important; }
.nitem.sel::before { content: ""; position: absolute; left: 1px; top: 11px; width: 3px; height: 16px; border-radius: 2px; background: var(--acc); }
.nitem .ico { font-size: 20px; margin: 0 10px; }
.mw-content { flex: 1; min-width: 0; background: var(--content); border-radius: 8px 0 0 0; position: relative; }
.mw-content > .page { position: absolute; inset: 0; overflow-y: auto; padding: 16px 24px; }
.mw-nav .tbx.side { position: absolute; left: 2px; width: 157px; height: 34px; font: 12px Consolas, "Cascadia Mono", monospace; }
.mw-nav .tbx.trace { bottom: 38px; }
.mw-nav .tbx.ip { bottom: 2px; }

.ptitle { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.ptitle .l { display: flex; align-items: center; }
.ptitle h2, .page-title { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; font-size: 24px !important; font-weight: 600 !important; }
.page-title { margin-bottom: 4px !important; }
.sysdot { width: 10px; height: 10px; border-radius: 50%; background: #808080; margin: 4px 0 0 8px; cursor: pointer; transition: background .2s; }
.systxt { font-size: 12px; color: #808080; margin: 4px 0 0 5px; cursor: pointer; transition: color .2s; }
.sysdot.ok { background: #4caf50; } .systxt.ok { color: #4caf50; }
.sysdot.bad { background: #f44336; } .systxt.bad { color: #f44336; }
.wfp { font-size: 12px; color: var(--t3); margin-right: 12px; }
.wfp.on { color: var(--success); } .wfp.err { color: var(--critical); }
.pdesc { color: var(--t1); opacity: .72; margin-bottom: 12px; white-space: pre-line; }
.ccard { border-radius: 8px; background: var(--card); padding: 12px 16px; margin-bottom: 8px; }
.ccard.two { display: grid; grid-template-columns: 1fr 1px 1fr; }
.desk.light .ccard { box-shadow: 0 0 0 1px rgba(0,0,0,.04); }
.ccard .col { display: grid; grid-template-rows: auto 1fr auto; }
.ccard .col:first-child { margin-right: 16px; }
.ccard .col:last-child { margin-left: 16px; }
.ccard .div { background: var(--div); margin: 2px 0; }
.ctitle { font-size: 14px; font-weight: 600; }
.cdesc { font-size: 12px; opacity: .72; margin-top: 4px; white-space: pre-line; }
.btns { display: flex; gap: 8px; margin-top: 10px; }

/* session log (main panel + detached window share it) */
.slog { flex: 1; min-height: 0; margin: 12px; border-radius: 8px; background: var(--fill-def); display: flex; flex-direction: column; }
.slog-head { display: flex; align-items: center; margin: 6px 12px 4px; }
.slog-head .t { font-size: 12px; font-weight: 600; color: var(--t2); flex: 1; }
.slog-head .ibtn { margin-left: 4px; box-shadow: inset 0 0 0 1px var(--stroke-ctrl); }
.slog-search { margin: 0 12px 4px; border-radius: 6px; padding: 8px 10px; background: var(--fill-sec); }
.lrows { flex: 1; min-height: 0; overflow: auto; margin: 0 12px 4px; font: 12px/14px Consolas, "Cascadia Mono", "JetBrains Mono", monospace; user-select: text; }
.lrow { padding: 1px 2px; border-radius: 2px; white-space: pre; width: max-content; min-width: 100%; }
.lrows .lrow:nth-child(even) { background: var(--subtle-ter); }
.lrows .lrow:hover { background: var(--subtle-sec); }
.lrow.WARN { color: var(--caution); }
.lrow.ERROR { color: var(--critical); }

/* bottom progress (update download) */
.mw-prog { flex: none; margin: 0 12px 8px; padding: 8px 10px; border-radius: 6px; background: var(--fill-def); border: 1px solid var(--stroke-ctrl); display: flex; align-items: center; }
.mw-prog .l { flex: 1; min-width: 0; }
.mw-prog .st { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.segs { display: grid; grid-template-columns: repeat(24, 1fr); height: 10px; margin: 6px 0 4px; }
.segs i { margin: 0 1.5px; border-radius: 3px; background: rgba(128,128,128,.2); }
.segs i.on { background: #4ade80; }
.mw-prog .nums { display: flex; justify-content: space-between; font: 11px Consolas, monospace; color: var(--t2); }
.mw-prog .nums b { color: #4ade80; font-weight: 600; }
.mw-prog .wb { margin-left: 10px; }

/* dialogs */
.dlg { padding: 8px 24px 24px; }
.dlg .msg { font-size: 13px; line-height: 19px; white-space: pre-line; max-height: 420px; overflow: auto; }
.dlg .two-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.dlg .two-btns .wb { width: 100%; }
.dlg-sec { color: var(--t2); }
.dlg-status { margin-top: 12px; border-radius: 6px; padding: 10px 12px; background: var(--fill-sec); font-size: 12px; line-height: 18px; }
.hint11 { font-size: 11px; color: var(--t3); margin-top: 4px; }
.about-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--t2); }
.about-row .ico { font-size: 16px; }
.lnk { color: var(--acc-text); cursor: pointer; }
.lnk:hover { text-decoration: underline; }
.sep { height: 1px; background: var(--t1); opacity: .3; margin: 4px 0 12px; }

/* borderless "info popup" (status / legends) */
.ipop { position: absolute; z-index: 1; max-width: 520px; padding: 16px 20px; border-radius: 12px; background: var(--solid-base);
        border: 1px solid var(--stroke); box-shadow: 0 4px 20px rgba(0,0,0,.3); color: var(--t1); cursor: move; user-select: none; }
.ipop .tt { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.ipop .row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--t2); max-width: 400px; margin-bottom: 2px; }
.ipop .row .dot { font-size: 14px; line-height: 1; }
.ipop .body { font-size: 12px; color: var(--t2); white-space: pre-wrap; }
.ipop .ok { display: flex; justify-content: flex-end; margin-top: 12px; }
.ipop .ok .wb { height: 26px; padding: 0 12px; font-size: 12px; cursor: default; }

/* splash */
.splash { position: absolute; z-index: 3000; width: 230px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.4)); pointer-events: none; animation: spl .25s ease-out; }
@keyframes spl { from { opacity: 0; transform: scale(.96); } }


/* ---------- taskbar under the desktop ---------- */
.taskbar { height: 44px; display: flex; align-items: center; gap: 4px; padding: 0 8px; margin-top: 10px; border-radius: 10px;
           background: color-mix(in srgb, var(--bg-elev) 85%, transparent); border: 1px solid var(--border); font: 12px "Segoe UI", system-ui, sans-serif; color: var(--text); }
.taskbar .grow { flex: 1; }
.tb-btn { height: 34px; max-width: 220px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 6px; cursor: pointer; position: relative; white-space: nowrap; overflow: hidden; }
.tb-btn span { overflow: hidden; text-overflow: ellipsis; }
.tb-btn:hover { background: var(--bg-elev-2); }
.tb-btn.active { background: var(--bg-elev-2); }
.tb-btn.active::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 2px; height: 3px; border-radius: 2px; background: var(--accent); }
.tb-btn.minimized::after { content: ""; position: absolute; left: 42%; right: 42%; bottom: 2px; height: 3px; border-radius: 2px; background: var(--text-muted); }
.tb-btn img { width: 18px; height: 18px; flex: none; }
.tb-launch { opacity: .9; }
.tray { display: flex; align-items: center; gap: 6px; padding: 0 6px; height: 34px; border-radius: 6px; }
.tray img { width: 18px; height: 18px; cursor: pointer; }
.tray-menu { position: absolute; z-index: 4000; min-width: 160px; padding: 4px; background: #2c2c2c; color: #fff; border: 1px solid #3f3f3f; border-radius: 8px;
             box-shadow: 0 14px 40px rgba(0,0,0,.55); font: 13px "Segoe UI", system-ui, sans-serif; }
.tray-menu button { display: block; width: 100%; text-align: left; padding: 7px 12px; border-radius: 5px; border: 0; background: none; color: inherit; font: inherit; cursor: default; }
.tray-menu button:hover { background: rgba(255,255,255,.08); }
.tray-menu hr { border: 0; border-top: 1px solid #3a3a3a; margin: 4px 2px; }
.tb-clock { font-size: 11px; color: var(--text-dim); text-align: right; line-height: 1.25; padding: 0 6px; }
/* Net Log Live fits the fixed 480px nav row without a scrollbar */
.mw-content > .page.util { padding-bottom: 0; }
.mw-content > .page.util .pdesc { margin-bottom: 8px; }
.mw-content > .page.util .ccard:last-child { margin-bottom: 0; }

/* ---------- UtilityLogWindow ---------- */
.uw-trace { display: flex; gap: 6px; margin: 0 12px 6px; }
.uw-trace .tbx { flex: 1; height: 34px; font: 12px Consolas, "Cascadia Mono", monospace; }
.uw-trace .wb { width: 82px; height: 34px; font-size: 11px; gap: 4px; padding: 0 10px; }
.uw-card { flex: 1; min-height: 0; margin: 0 12px 12px; border-radius: 8px; background: var(--fill-def); display: flex; flex-direction: column; position: relative; }
.uw-tb { display: flex; align-items: center; margin: 6px 12px 4px; min-height: 32px; }
.uw-tb .lbl { font-size: 12px; font-weight: 600; color: var(--t2); white-space: nowrap; }
.uw-tb .grow { flex: 1; }
.uw-tb .sm { height: 24px; padding: 0 8px; font-size: 11px; margin-left: 8px; gap: 4px; }
.uw-tb .sm .ico { font-size: 14px; }
.uw-tb .tiny { height: 24px; min-width: 24px; padding: 0 4px; margin-left: 4px; font-size: 14px; box-shadow: none; }
.uw-tb .icons { display: flex; align-items: center; }
.uw-tb .icons .ibtn { margin-left: 4px; box-shadow: none; }
.uw-tb .icons .ibtn.dim { color: var(--t3) !important; }
.uw-tb .icons .ibtn.flip .ico { transform: scaleY(-1); }
.uw-tb .dsec { display: flex; align-items: center; margin-left: 4px; }
.uw-tb .dsec button { padding: 2px 4px; font: 700 13px "Segoe UI", system-ui, sans-serif; border-radius: 4px; }
.uw-tb .dsec button:hover { background: var(--subtle-sec) !important; }
.uw-tb .dsec span { min-width: 24px; text-align: center; font-size: 12px; color: var(--t2); margin: 0 2px; }
.uw-tb .tsw { font-size: 11px; margin-right: 12px; gap: 8px; }
.ring { width: 16px; height: 16px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--acc); border-right-color: var(--acc); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.uw-panel { margin: 0 12px 4px; border-radius: 6px; padding: 8px 10px; background: var(--fill-sec); }
.uw-panel .cap11 { font-size: 11px; margin: 0 0 4px; }
.chips { display: flex; flex-wrap: wrap; }
.chip { width: 68px; height: 24px; margin: 0 4px 4px 0; padding: 0 4px; border-radius: 4px; font-size: 11px; white-space: nowrap; overflow: hidden;
        background: var(--fill-def) !important; box-shadow: inset 0 0 0 1px var(--stroke-ctrl); }
.chip:hover { background: var(--fill-sec) !important; }
.chip.on { background: var(--acc) !important; color: var(--on-acc) !important; box-shadow: none; }
.chip.on:hover { background: var(--acc-hov) !important; }
.uw-frow { display: flex; align-items: flex-start; }
.uw-frow .chips { flex: 1; }
.uw-frow .tbx-icon { width: 143px; flex: none; margin-left: 6px; }
.uw-arch { padding: 10px 12px; }
.uw-arch .r { display: flex; align-items: center; margin-bottom: 8px; font-size: 12px; }
.uw-arch .r .k { width: 46px; }
.uw-arch .r .dash { margin: 0 10px; }
.uw-arch input { height: 28px; padding: 0 8px; font: 12px "Segoe UI", system-ui, sans-serif; border-radius: 4px; outline: none; color: var(--t1); user-select: text;
                 background: var(--fill-input); border: 1px solid var(--stroke-ctrl); border-bottom-color: var(--stroke-input-bottom); }
.uw-arch input:focus { background: var(--fill-input-focus); border-bottom: 2px solid var(--acc); }
.uw-arch input.d { width: 86px; } .uw-arch input.t { width: 52px; text-align: center; }
.uw-arch .cal { width: 28px; height: 28px; padding: 0; margin-left: 4px; font-size: 15px; }
.uw-arch .foot { display: flex; align-items: center; margin-top: 2px; }
.uw-arch .hint { flex: 1; min-width: 0; font-size: 11px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uw-arch .apply { height: 28px; padding: 0 18px; font-size: 12px; }
.uw-head { margin: 2px 12px 0; background: #202020; border-radius: 4px; padding: 3px 0; font: 12px/14px Consolas, "Cascadia Mono", monospace; color: rgba(255,255,255,.545); white-space: pre; overflow: hidden; }
.uw-rows { flex: 1; min-height: 0; overflow: auto; margin: 0 12px 4px; font: 12px/14px Consolas, "Cascadia Mono", "JetBrains Mono", monospace; user-select: text; }
.uw-rows .lrow b { font-weight: 400; color: var(--acc-text); }
.uw-rows .lrow.app { cursor: pointer; }
.uw-rows .lrow:nth-child(even) { background: var(--subtle-ter); }
.uw-rows .lrow:hover { background: var(--subtle-sec); }
.uw-border { position: absolute; left: 2px; top: 2px; pointer-events: none; z-index: 30; display: none; overflow: visible; }
.uw-border rect { fill: none; }
.uw-border.run { display: block; }
.uw-border.run rect { stroke: var(--acc-sec); stroke-width: 4; animation: dashrun linear infinite; }
.uw-border.pulse { display: block; }
.uw-border.pulse rect { stroke-width: 2; animation: pulse 1.5s ease-in-out infinite alternate; }
@keyframes pulse { from { stroke: rgba(204,51,51,.19); } to { stroke: rgba(221,34,34,.8); } }
@keyframes dashrun { from { stroke-dashoffset: 0; } to { stroke-dashoffset: var(--dash-to); } }
.uw-toast { position: absolute; left: 50%; top: 80px; transform: translateX(-50%); z-index: 35; padding: 10px 16px; border-radius: 8px; display: flex; align-items: center; gap: 8px;
            background: var(--popup-bg); border: 1px solid var(--stroke); box-shadow: 0 2px 16px rgba(0,0,0,.3); font-size: 13px; white-space: nowrap; opacity: 0; transition: opacity .3s; pointer-events: none; }
.uw-toast.show { opacity: 1; }
.uw-toast.err { border-color: var(--critical); color: var(--critical); transition: opacity .2s; }
.uw-toast .em { font-size: 18px; }
.uw-ov { position: absolute; left: 0; right: 0; bottom: 0; z-index: 55; background: rgba(0,0,0,.6); display: grid; place-items: center; }
.uw-ov .box { max-width: 440px; padding: 24px 28px; border-radius: 10px; background: var(--app-bg); border: 1px solid var(--stroke); box-shadow: 0 2px 24px rgba(0,0,0,.35); text-align: center; }
.uw-ov .box h4 { font-size: 17px; font-weight: 600; margin: 0 0 10px; font-family: inherit; letter-spacing: 0; line-height: 1.3; }
.uw-ov .box p { font-size: 13px; line-height: 20px; color: var(--t2); margin: 0 0 16px; }
.uw-ov .bar { height: 6px; border-radius: 3px; background: var(--fill-sec); overflow: hidden; margin-bottom: 12px; }
.uw-ov .bar i { display: block; height: 100%; width: 0; background: var(--acc); transition: width .15s; }
.uw-ov .bar.ind i { width: 30%; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.uw-ov .sc { font-size: 13px; margin-bottom: 4px; }
.uw-ov .eta { font-size: 12px; color: var(--t3); min-height: 16px; margin-bottom: 20px; }
.uw-ov .ring { width: 28px; height: 28px; margin: 0 auto 12px; border-width: 3px; }
.uw-onb .box { max-width: 470px; padding: 22px 26px; text-align: left; }
.uw-onb .it { display: flex; gap: 12px; margin-bottom: 14px; font-size: 13px; line-height: 19px; color: var(--t2); }
.uw-onb .it .ico { font-size: 18px; color: var(--t1); margin-top: 1px; }
.uw-onb .ok { display: flex; justify-content: flex-end; margin-top: 6px; }
.uw-onb .ok .wb { min-width: 90px; }
.uw-tb .icons.wink { animation: wink .3s ease-in-out 10 alternate; }
@keyframes wink { to { transform: scale(1.05); filter: drop-shadow(0 0 8px rgba(244,67,54,.95)); } }
/* calendar popup (WPF Calendar) */
.calpop { position: absolute; z-index: 60; padding: 8px; border-radius: 8px; background: var(--app-bg); border: 1px solid var(--stroke); box-shadow: 0 2px 16px rgba(0,0,0,.4); width: 232px; font-size: 12px; }
.calpop .hd { display: flex; align-items: center; margin-bottom: 6px; }
.calpop .hd b { flex: 1; text-align: center; font-weight: 600; }
.calpop .hd button { width: 26px; height: 24px; border-radius: 4px; }
.calpop .hd button:hover { background: var(--subtle-sec) !important; }
.calpop .g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.calpop .g span { color: var(--t3); font-size: 11px; padding: 2px 0; }
.calpop .g button { height: 26px; border-radius: 4px; }
.calpop .g button:hover { background: var(--subtle-sec) !important; }
.calpop .g button.sel { background: var(--acc) !important; color: var(--on-acc) !important; }
.calpop .g button.today { box-shadow: inset 0 0 0 1px var(--acc); }
.calpop .g button:disabled { opacity: .3; }
/* trace history dropdown */
.hist { position: absolute; z-index: 70; padding: 4px; border-radius: 8px; background: var(--app-bg); border: 1px solid var(--stroke); box-shadow: 0 4px 16px rgba(0,0,0,.4); max-height: 320px; overflow: auto; }
.hist div { padding: 5px 8px; border-radius: 4px; cursor: pointer; font: 12px Consolas, monospace; white-space: nowrap; }
.hist div:hover { background: var(--subtle-sec); }
/* RdpPortDialog */
.warnbox { margin-top: 12px; border-radius: 6px; padding: 10px 12px; background: var(--fill-def); border: 1px solid var(--stroke-ctrl); font-size: 12px; line-height: 18px; }
.errtxt { color: var(--critical); font-size: 12px; margin-top: 6px; }

/* ---------- Control Rules ---------- */
.cr-top { display: flex; align-items: center; margin: 0 12px 4px; min-height: 29px; flex: none; }
.cr-top .crtab { height: 29px; padding: 0 10px; font-size: 14px; margin-right: 4px; }
.cr-top .cr-att { font-size: 12px; color: var(--t2); margin-left: 8px; white-space: nowrap; }
.cr-top .crx { height: 18px; padding: 0 4px; font-size: 10px; border-radius: 4px; margin-left: 4px; }
.cr-top .grow { flex: 1; }
.cr-top .cr-rds { font-size: 11px; margin-right: 16px; gap: 8px; }
.cr-top .cr-ago { font-size: 11px; color: var(--t3); margin-right: 6px; white-space: nowrap; }
.cr-top .cr-ago.stale { color: var(--critical); }
.cr-top .cr-ref { height: 28px; min-width: 30px; }
.cr-top .cr-ref:disabled { opacity: .4; pointer-events: none; }
.cr-content { height: 480px; min-height: 150px; flex: none; margin: 0 12px; display: flex; flex-direction: column; }
.cr-content.fill { flex: 1; height: auto !important; margin-bottom: 12px; }
.cr-tab { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cr-fbar { flex: none; display: flex; align-items: center; margin-bottom: 12px; padding: 6px 12px; border-radius: 8px; background: var(--fill-def); overflow: hidden; }
.crf { width: 72px; height: 28px; flex: none; margin-right: 4px; border-radius: 4px; font-size: 11px; color: var(--t2) !important; background: transparent !important;
       box-shadow: inset 0 0 0 1px var(--stroke-ctrl); white-space: nowrap; overflow: hidden; }
.desk:not(.light) .crf { box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); }
.crf:hover { background: var(--fill-sec) !important; }
.crf.on { background: var(--acc) !important; color: var(--on-acc) !important; box-shadow: inset 0 0 0 1px var(--acc); }
.cr-cols { flex: 1; min-height: 0; display: grid; }
.cr-card { min-width: 0; min-height: 0; border-radius: 8px; background: var(--fill-def); display: flex; flex-direction: column; overflow: hidden; }
.cr-vs { cursor: ew-resize; }
.cr-head { flex: none; display: flex; align-items: center; margin: 4px 4px 2px; min-height: 24px; }
.cr-head .grow { flex: 1; }
.cr-head .crb { height: 17px; padding: 0 4px; font-size: 10px; border-radius: 4px; margin-left: 4px; }
.cr-head .crcb + .crb { margin-left: 0; }
.cr-head .cri { height: 24px; padding: 0 4px; margin-left: 4px; font-size: 14px; }
.cr-head .cra { height: 26px; padding: 0 5px; margin-right: 4px; font-size: 11px; gap: 3px; }
.cr-head .cra .ico { font-size: 14px; }
.crcb { width: 20px; height: 20px; margin-right: 4px; flex: none; display: grid; place-items: center; cursor: default; }
.crcb .box, .rcb { width: 20px; height: 20px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--t3); position: relative; display: block; }
.crcb:hover .box { background: var(--subtle-sec); }
.crcb.on .box::after, .rcb.on::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid var(--t3); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.rcb { width: 15px; height: 15px; flex: none; margin: 0 2px 0 4px; border-radius: 3px; }
.rcb.on::after { left: 5px; top: 2px; width: 4px; height: 8px; border-width: 0 1.3px 1.3px 0; }
.crs { position: relative; width: 120px; height: 24px; flex: none; display: block; }
.crs input { width: 100%; height: 100%; padding: 2px 4px; border-radius: 4px; outline: none; font: 11px Consolas, "Cascadia Mono", monospace; color: var(--t1); user-select: text;
             background: transparent; border: 1px solid var(--stroke-ctrl); border-bottom-color: var(--stroke-input-bottom); }
.desk:not(.light) .crs input { border-color: rgba(255,255,255,.09); border-bottom-color: rgba(255,255,255,.4); }
.crs input:focus { border-bottom: 2px solid var(--acc); }
.crs .ph { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); font: 11px Consolas, "Cascadia Mono", monospace; color: var(--t3); pointer-events: none; white-space: nowrap; }
.crs.filled .ph { display: none; }
.cr-foot { flex: none; display: flex; align-items: center; margin: 4px; }
.cr-foot .crs + .crs { margin-left: 4px; }
.cr-foot .crclr { height: 22px; padding: 0 4px; margin-left: 4px; font-size: 12px; box-shadow: none; }
.cr-list { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; font: 11px Consolas, "Cascadia Mono", "JetBrains Mono", monospace; }
.crr { height: 22px; display: flex; align-items: center; white-space: nowrap; cursor: default; }
.crr:hover { background: var(--subtle-sec); }
.crr.sel, .crr.sel:hover { background: color-mix(in srgb, var(--acc-sec) 60%, transparent); }
.crr.dim { opacity: .35; }
.crr img { width: 10px; height: 10px; margin: 0 6px; flex: none; }
.crr .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding-right: 5px; }
.crr .p { width: 140px; flex: none; overflow: hidden; text-overflow: ellipsis; padding-right: 5px; }
.crr.g .n { padding-left: 5px; }
.cr-hs { height: 6px; margin: 0 12px; flex: none; cursor: ns-resize; }
.cr-log { flex: 1; min-height: 80px; margin: 6px 12px 12px; border-radius: 8px; background: var(--fill-def); display: flex; flex-direction: column; }
.cr-loghead { display: flex; align-items: center; margin: 4px 12px 2px; flex: none; }
.cr-loghead .t { flex: 1; font-size: 12px; font-weight: 600; color: var(--t2); }
.cr-loghead .ibtn { margin-left: 4px; }
.cr-lrows .lrow.HL { color: #ff9800; }
.cr-lrows .lrow.DBG { color: var(--t3); }
.cr-lrows .lrow.OK { color: var(--success); }
.cr-lrows .lrow.BLUE { color: #42a5f5; }
.cr-lrows.jr .lrow { cursor: pointer; }
.ipop.cr-pop { padding: 16px 20px; max-width: 520px; }
.cr-leg { font-size: 12px; color: var(--t2); }
.cr-leg .hd { font-weight: 600; margin-bottom: 2px; }
.cr-leg .ln { line-height: 26px; }
.cr-leg .dot { font-size: 20px; line-height: 1; vertical-align: -2px; }
/* ControlRulesPage */
.mw-content > .page.crpage { display: grid; place-items: center; }
.crp { display: flex; flex-direction: column; align-items: center; text-align: center; }
.crp .big { font-size: 48px; color: var(--t3); }
.crp .t { font-size: 16px; font-weight: 600; margin: 12px 0 4px; }
.crp .d { font-size: 12px; color: var(--t2); max-width: 360px; white-space: pre-line; }
.crp .wb { margin-top: 12px; }
/* SafeBlockDialog */
.sbd { flex: 1; display: flex; flex-direction: column; padding: 0 24px 24px; }
.sbd .hd { display: flex; align-items: center; margin-top: 8px; font-size: 16px; font-weight: 600; }
.sbd .hd .i { font-size: 28px; color: var(--caution); margin-right: 12px; }
.sbd .intro { font-size: 13px; margin-top: 14px; }
.sbd .names { margin-top: 6px; font-size: 14px; opacity: .72; white-space: pre-line; word-break: break-word; overflow: hidden; max-height: 100px; }
.sbd .cd { display: flex; align-items: center; margin-top: 16px; font-size: 14px; }
.sbd .cd .i { font-size: 18px; color: var(--caution); margin-right: 8px; }
.sbd .cd b { color: var(--caution); }
.sbd .bar { height: 4px; margin-top: 12px; border-radius: 2px; background: var(--fill-sec); overflow: hidden; flex: none; }
.sbd .bar i { display: block; height: 100%; background: var(--acc); transition: width .3s linear; }
.sbd .two { margin-top: auto; padding-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sbd .two .wb { height: 34px; }
/* RemoteAddressEditDialog */
.eip { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.eip-in { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 8px 24px 0; }
.eip .lb { font-size: 12px; color: var(--t2); margin-bottom: 4px; }
.eip .eip-name { height: 32px; font-size: 13px; padding: 0 8px; flex: none; }
.eip .sub { font-size: 13px; color: var(--t2); margin-top: 14px; line-height: 1.35; }
.eip-box { flex: 1; min-height: 0; margin-top: 12px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--stroke-ctrl); padding: 6px; overflow-y: auto; }
.desk:not(.light) .eip-box { box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); }
.eip-hd { display: grid; grid-template-columns: 1fr 8px 1fr 34px; font-size: 11px; color: var(--t3); margin-bottom: 4px; }
.eip-hd span { padding-left: 6px; }
.eip-hd span:nth-child(2) { grid-column: 3; }
.eip-row { display: grid; grid-template-columns: 1fr 8px 1fr 34px; align-items: center; margin: 2px 0; }
.eip-row input { height: 28px; padding: 3px 6px; border-radius: 4px; outline: none; font-size: 13px; color: var(--t1); user-select: text; min-width: 0;
                 background: transparent; border: 1px solid var(--stroke-ctrl); border-bottom-color: var(--stroke-input-bottom); }
.desk:not(.light) .eip-row input { border-color: rgba(255,255,255,.09); border-bottom-color: rgba(255,255,255,.4); }
.eip-row input:focus { border-bottom: 2px solid var(--acc); }
.eip-row .eip-a { font-family: Consolas, "Cascadia Mono", monospace; }
.eip-row .eip-n { grid-column: 3; }
.eip-row .eip-del { height: 26px; padding: 0 6px; margin-left: 6px; font-size: 14px; box-shadow: none; }
.eip .eip-add { margin-top: 8px; align-self: flex-start; flex: none; }
.eip .errtxt { color: #f44336; flex: none; }
.eip-btns { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 24px 24px; }

/* ---------- Normalizer / Firewall Builder / Geo Audit cards (ContentCard) ---------- */
.pc-row { display: flex; align-items: flex-end; gap: 12px; }
.pc-row > .l { flex: 1; min-width: 0; align-self: center; }
.pc-row .ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-row .tbx { height: 32px; flex: none; }
.pc-btns { display: flex; gap: 8px; margin-top: 8px; }
.pc-ring { display: block; width: 24px; height: 24px; margin-top: 8px; border-width: 3px; }
.fb-src { flex: none; display: flex; flex-direction: column; }
.fb-line { display: flex; align-items: center; }
.fb-country { position: relative; width: 200px; margin-left: 8px; }
.fb-ctog { width: 100%; min-height: 34px; padding: 6px 8px; text-align: left; border-radius: 4px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
           background: var(--fill-def) !important; box-shadow: inset 0 0 0 1px var(--stroke-ctrl); }
.fb-ctog:hover { background: var(--fill-sec) !important; }
.fb-ctog.on { background: var(--acc) !important; color: var(--on-acc) !important; }
.fb-ctog span { display: block; overflow: hidden; text-overflow: ellipsis; }
.fb-pop { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; background: var(--app-bg); border: 1px solid var(--stroke); border-radius: 0 0 4px 4px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.fb-pop .tbx-icon { margin: 4px; }
.fb-list { max-height: 250px; overflow-y: auto; padding: 0 4px 4px; }
.fb-list .it { padding: 6px 8px; border-radius: 4px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; }
.fb-list .it:hover { background: var(--subtle-sec); }
.fb-list .it.sel { background: var(--subtle-sec); box-shadow: inset 3px 0 0 var(--acc); }
.fb-act, .fb-ports { display: flex; align-items: center; flex: none; }
.fb-ports .tbx { width: 160px; margin-left: 4px; height: 32px; }
.rb, .cbx { display: inline-flex; align-items: center; gap: 8px; margin-right: 16px; font-size: 14px; cursor: default; }
.cbx { margin: 0 0 0 12px; }
.rb input, .cbx input { display: none; }
.rb i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--t2); position: relative; flex: none; }
.rb input:checked + i { background: var(--acc); box-shadow: none; }
.rb input:checked + i::after { content: ""; position: absolute; left: 6px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--on-acc); }
.cbx i { width: 20px; height: 20px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--t2); position: relative; flex: none; }
.cbx input:checked + i { background: var(--acc); box-shadow: none; }
.cbx input:checked + i::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid var(--on-acc); border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* Win Geo Audit window */
.ga-rows { flex: 1; min-height: 0; overflow: auto; margin: 0 12px 4px; font: 12px/16px Consolas, "Cascadia Mono", monospace; user-select: text; }
.ga { white-space: pre; width: max-content; min-width: 100%; }
.ga.ga-header { font-weight: 600; color: var(--acc-text); margin: 6px 0 1px; }
.ga.ga-region { color: var(--success); }
.ga.ga-notfound { color: var(--t4); }
.ga.ga-verdict { font-weight: 600; color: var(--caution); }
.ga.ga-warning { font-weight: 600; color: #e06c75; }
.ga.ga-section { font-weight: 600; color: #c678dd; margin: 8px 0 2px; }
.ga.ga-separator { color: #555; margin: 4px 0; }
/* Settings */
.sc-card { display: flex; align-items: center; min-height: 68px; padding: 12px 16px; margin-bottom: 8px; border-radius: 6px; background: var(--card); }
.desk.light .sc-card, .desk.light .sc-exp { box-shadow: 0 0 0 1px rgba(0,0,0,.04); }
.sc-card .l { flex: 1; min-width: 0; }
.sc-card .t { font-weight: 600; }
.sc-card .d { font-size: 12px; color: var(--t2); }
.sc-card .r { flex: none; display: flex; align-items: center; margin-left: 12px; }
.sc-card .tsw { gap: 0; }
.sc-sel { height: 32px; width: 140px; padding: 0 8px; border-radius: 4px; font-size: 14px; color: var(--t1); outline: none; background: var(--fill-def); border: 1px solid var(--stroke-ctrl); border-bottom-color: var(--stroke-input-bottom); }
.sc-sel option { background: var(--app-bg); color: var(--t1); }
.sc-v { display: flex; flex-direction: column; align-items: flex-end; }
.sc-v span { font-size: 12px; color: var(--t2); }
.sc-v span.new { color: var(--success); }
.sc-int { width: 64px; text-align: center; height: 32px; }
.sc-suf { margin-left: 8px; font-size: 12px; color: var(--t2); }
.sc-h { font-size: 20px; font-weight: 600; margin: 24px 0 8px; }
.sc-exp { margin-bottom: 4px; border-radius: 6px; background: var(--card); }
.sc-exp .hd { display: flex; align-items: center; min-height: 64px; padding: 10px 16px; cursor: default; border-radius: 6px; }
.sc-exp .hd:hover { background: var(--fill-sec); }
.sc-exp .hd > .ico { font-size: 20px; margin-right: 12px; }
.sc-exp .hd .tx { flex: 1; min-width: 0; }
.sc-exp .hd .t { font-weight: 600; font-size: 14px; }
.sc-exp .d { font-size: 12px; color: var(--t2); }
.sc-exp .chev { font-size: 14px; transition: transform .15s; }
.sc-exp.open .chev { transform: rotate(180deg); }
.sc-exp .bd { display: none; padding: 12px 16px 16px 48px; border-top: 1px solid var(--stroke); }
.sc-exp.open .bd { display: block; }
.sc-exp .bd .u { font-size: 12px; font-weight: 600; }
.sc-exp .bd .u + .d { margin-top: 2px; }
/* Services */
.mw-content > .page.svc { display: flex; flex-direction: column; overflow: hidden; }
.sv-bar { flex: none; display: flex; align-items: center; padding: 6px 8px; margin-bottom: 8px; border-radius: 8px; background: var(--fill-def); }
.sv-q { width: 200px; height: 28px; margin-right: 10px; }
.sv-q input, .sv-q .ph { font: 12px "Segoe UI", system-ui, sans-serif; }
.sv-q .ph { left: 8px; }
.sv-ib { height: 28px; padding: 0 8px; margin-right: 4px; font-size: 16px; }
.sv-ib .ico { font-size: 16px; }
.sv-f { width: auto; padding: 0 10px; height: 26px; }
.sv-grid { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 8px; padding: 4px; background: var(--fill-def); font-size: 12px; }
.sv-head, .sv-r { display: grid; grid-template-columns: 36px 2fr 1.3fr 2.6fr 115px 100px; align-items: center; }
.sv-head { flex: none; font-size: 11px; color: var(--t2); padding: 4px 0; border-bottom: 1px solid var(--stroke-ctrl); }
.sv-head [data-sort] { cursor: default; white-space: nowrap; overflow: hidden; }
.sv-head [data-sort]:hover { color: var(--t1); }
.sv-head i { font-style: normal; font-size: 8px; margin-left: 4px; }
.sv-rows { flex: 1; min-height: 0; overflow-y: auto; }
.sv-r { height: 26px; }
.sv-r:hover { background: var(--subtle-sec); }
.sv-r.sel, .sv-r.sel:hover { background: color-mix(in srgb, var(--acc-sec) 60%, transparent); }
.sv-r > span, .sv-head > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 8px; }
.sv-r .c0, .sv-head .c0 { padding: 0 0 0 8px; overflow: visible; }
.sv-r .rcb, .sv-head .rcb { margin: 0; }
.rcb.part::after { content: ""; position: absolute; left: 4px; right: 4px; top: 6px; height: 2px; background: var(--t3); }
.sv-foot { flex: none; display: flex; justify-content: space-between; gap: 12px; margin: 8px 2px 0; font-size: 11px; }
.sv-foot [data-status] { color: var(--t3); }
.sv-foot [data-result] { color: var(--t2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 620px; }
.sdlg { padding: 8px 24px 20px; }
.sdlg .nm { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.sdlg .g { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 6px; align-items: center; font-size: 12px; }
.sdlg .g .k { color: var(--t2); }
.sdlg .g .k.top { align-self: start; }
.sdlg .g [data-file] { word-break: break-all; }
.sdlg .bt { display: flex; gap: 8px; margin-top: 20px; }
.sdlg .bt .grow { flex: 1; }
.sdlg .bt .wb { font-size: 12px; height: 28px; padding: 0 10px; }
.sdlg .bt .wb.pri, .sdlg .bt [data-a=cancel] { min-width: 90px; }
