@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');
/* IPKalix Shield console - design tokens (navy rail, brand blue, teal accent; light theme) */
:root {
    --bg: #eef2f7;
    --surface: #ffffff;
    --surface-2: #f6f9fc;
    --ink: #10243f;
    --text: #3b4d66;
    --muted: #60748f;
    --faint: #90a1b8;
    --line: #e7edf4;
    --line-strong: #d6deea;

    --brand: #1b6fd3;
    --brand-600: #155cb4;
    --brand-50: #e8f1ff;
    --brand-100: #d3e4fb;

    --accent: #11b1c6;
    --accent-50: #e3f6f9;

    --side: #0a1c36;
    --side-2: #0d2444;
    --side-text: #9fb2cc;
    --side-dim: #64789c;

    --ok: #139a67;      --ok-bg: #e4f5ed;      --ok-ink: #0d7a50;
    --danger: #df4751;  --danger-bg: #fcecee;  --danger-ink: #b4232f;
    --warn: #c9810a;    --warn-bg: #fbf1da;    --warn-ink: #8a5806;
    --neutral: #51647e; --neutral-bg: #eff3f8;

    /* Names some pages and older rules use. They point at the tokens above so there is one palette. */
    --primary-soft: var(--brand-50);
    --chip: var(--neutral-bg);
    --chip-ink: var(--neutral);
    --border: var(--line);
    --card: var(--surface);

    --radius: 12px;
    --radius-sm: 9px;
    --shadow-sm: 0 1px 2px rgba(16, 36, 63, .05), 0 1px 1px rgba(16, 36, 63, .03);
    --shadow-md: 0 8px 26px rgba(16, 36, 63, .09);
    --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    --display: "Space Grotesk", "Inter", system-ui, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; font-weight: 500; }
a:hover { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); font-family: var(--display); letter-spacing: -.02em; }
code, .mono { font-family: var(--mono); }
/* A plain h3/h4 in a page. :where keeps this weaker than any class, so .planned-h, .sec-title and .sumcard h3 still win. */
:where(.content) h3 { font-size: 16px; font-weight: 600; line-height: 1.3; }
:where(.content) h4 { font-size: 13.5px; font-weight: 650; line-height: 1.35; color: var(--ink); }
/* Links to a section (#id) land below the sticky top bar, not under it. */
:where(.content) [id] { scroll-margin-top: 80px; }

/* ---------- Sign-in page brand (the console itself uses the two-tier shell further down) ---------- */
.brand { display: flex; align-items: center; justify-content: center; gap: 11px; padding: 2px 10px 16px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; text-decoration: none; }
/* the original full-colour logo sits on a clean white plate so it reads well on dark backgrounds */
.logo-plate { display: inline-block; background: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: 0 6px 22px rgba(10, 18, 38, .22); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-weight: 650; font-size: 16px; letter-spacing: -.01em; line-height: 1.1; font-family: var(--display); }
.brand-name small { display: block; margin-top: 3px; font-weight: 500; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #6f7c97; }

/* width: 100% so a wide table scrolls inside its own box instead of pushing the whole page wider than the window */
.content { width: 100%; min-width: 0; box-sizing: border-box; max-width: 1340px; margin: 0 auto; padding: 34px 44px 64px; }

/* ---------- Page header ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.content h1 { margin: 0; font-size: 27px; font-weight: 600; line-height: 1.18; letter-spacing: -.03em; }
.subtitle { margin: 7px 0 0; color: var(--muted); font-size: 14px; max-width: 70ch; }
.content h2 { margin: 34px 0 14px; font-size: 16px; font-weight: 600; }

/* ---------- Page toolbar: search and actions above a list ----------
   <div class="toolbar"><div class="searchbox">...</div><select class="sel">...</select><div class="end"><a class="btn">New</a></div></div>
   Inside a .card it sits flush at the top with a line under it. */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .searchbox { flex: 1 1 240px; max-width: 420px; }
.toolbar > .end { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar .hint { margin: 0; }
.card > .toolbar { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); }

/* ---------- Breadcrumbs (drawn by the _Crumbs partial) ---------- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 12.5px; color: var(--faint); margin-bottom: 14px; }
.crumbs a { color: var(--faint); font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.crumbs a:hover { color: var(--brand); text-decoration: none; }
.crumbs .sep { opacity: .5; }
.crumbs .here { color: var(--ink); font-weight: 600; }

/* ---------- Cards & KPIs ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h2 { margin: 0; font-size: 15px; }
.card-body { padding: 20px; }

.cards, .kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 8px; }
@media (max-width: 1100px) { .cards, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards, .kpis { grid-template-columns: 1fr; } }
.kpi { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; position: relative; overflow: hidden; }
.kpi:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kpi-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--brand-50); color: var(--brand); }
.kpi-ico .ico { width: 21px; height: 21px; }
.kpi-green .kpi-ico { background: var(--ok-bg); color: var(--ok); }
.kpi-slate .kpi-ico { background: var(--neutral-bg); color: var(--neutral); }
.kpi-amber .kpi-ico { background: var(--warn-bg); color: var(--warn); }
.kpi-red .kpi-ico { background: var(--danger-bg); color: var(--danger); }
.kpi .value { font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1.1; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi .label { margin-top: 3px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
/* clickable KPI tiles */
a.kpi { text-decoration: none; color: inherit; cursor: pointer; }
a.kpi:hover { box-shadow: 0 10px 26px rgba(16, 36, 63, .14); transform: translateY(-2px); text-decoration: none; }
.kpi-go { margin-left: auto; flex: none; display: grid; place-items: center; width: 26px; height: 26px; color: var(--muted); opacity: 0; transform: translateX(-6px); transition: opacity .18s ease, transform .18s ease, color .18s ease; }
a.kpi:hover .kpi-go { opacity: 1; transform: translateX(0); color: var(--brand); }
a.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand); opacity: 0; transition: opacity .18s ease; }
a.kpi.kpi-green::after { background: var(--ok); }
a.kpi.kpi-slate::after { background: var(--neutral); }
a.kpi.kpi-amber::after { background: var(--warn); }
a.kpi.kpi-red::after { background: var(--danger); }
a.kpi:hover::after { opacity: 1; }
a.kpi:hover .kpi-ico { transform: scale(1.06); transition: transform .18s ease; }
/* the tile whose filter is on (class "active") */
.kpi.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100), var(--shadow-sm); }
.kpi.active::after { opacity: 1; }
.kpi.active .kpi-go { opacity: 1; transform: none; color: var(--brand); }
.kpi-green.active { border-color: var(--ok); box-shadow: 0 0 0 3px rgba(19, 154, 103, .16), var(--shadow-sm); }
.kpi-slate.active { border-color: var(--neutral); box-shadow: 0 0 0 3px rgba(81, 100, 126, .16), var(--shadow-sm); }
.kpi-amber.active { border-color: var(--warn); box-shadow: 0 0 0 3px rgba(201, 129, 10, .18), var(--shadow-sm); }
.kpi-red.active { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(223, 71, 81, .16), var(--shadow-sm); }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
th { padding: 12px 18px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; color: var(--text); }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: var(--surface-2); }
td a { white-space: nowrap; }
td .name { color: var(--ink); font-weight: 600; }
td .mono { display: block; margin-top: 2px; font-size: 11.5px; color: var(--faint); word-break: break-all; }
td form { margin: 0; }
/* A wide table scrolls sideways inside its own box instead of pushing the page wider. */
.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* A table straight inside a card (or in a .table-wrap inside a card) drops its own frame, so it sits flush with the card edges. */
.card > table, .card > .table-wrap > table { border: 0; border-radius: 0; box-shadow: none; }
.card > table:last-child, .card > .table-wrap:last-child { border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px); }
.card > table:first-child, .card > .table-wrap:first-child { border-top-left-radius: calc(var(--radius) - 1px); border-top-right-radius: calc(var(--radius) - 1px); }
.card > .table-wrap > table { overflow: visible; }

/* rich table cells (opt-in, used on Computers/Incidents/etc.) */
.cell { display: flex; align-items: center; gap: 11px; }
.cell .logo, .cell .ava { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.cell .logo { background: var(--surface-2); border: 1px solid var(--line); color: var(--brand); }
.cell .ava { border-radius: 50%; background: linear-gradient(140deg, #1b6fd3, #11b1c6); color: #fff; }
.cell .nm { color: var(--ink); font-weight: 600; line-height: 1.2; }
.cell .sub { font-size: 11.5px; color: var(--faint); }
.tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; background: var(--brand-50); color: var(--brand); border-radius: 7px; padding: 3px 9px; }
.count-chip { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; background: var(--brand); color: #fff; border-radius: 7px; padding: 2px 7px; margin-left: 4px; }
.ver { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--muted); }
.ver.old { color: var(--warn); }
.health { display: flex; align-items: center; gap: 8px; }
.health .bar { width: 72px; height: 6px; border-radius: 20px; background: var(--line); overflow: hidden; }
.health .bar > i { display: block; height: 100%; border-radius: 20px; background: var(--ok); }
.health span { font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rowacts { display: flex; gap: 4px; justify-content: flex-end; }
.ra { width: 30px; height: 30px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--faint); display: grid; place-items: center; cursor: pointer; }
.ra:hover { background: var(--surface); border-color: var(--line); color: var(--brand); }
.ra .ico, .ra svg { width: 16px; height: 16px; }

/* ---------- Badges / chips ---------- */
.badge, .chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; background: var(--neutral-bg); color: var(--neutral); }
.badge::before, .chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-ok, .chip-on { background: var(--ok-bg); color: var(--ok); }
.badge-danger, .badge-bad, .chip-bad { background: var(--danger-bg); color: var(--danger); }
.badge-pending, .chip-pend { background: var(--warn-bg); color: var(--warn); }
.badge-muted, .chip-off { background: var(--neutral-bg); color: var(--neutral); }
.badge + .badge { margin-left: 4px; }
/* operating system chips (Computers list, endpoint details) */
.chip-win { background: var(--brand-50); color: var(--brand-600); }
.chip-linux { background: var(--accent-50); color: #0b7d8e; }
.chip-mac { background: #eceff5; color: var(--text); }

/* ---------- Data-classification tags (PII, Financial, Health, ...) ---------- */
.dc { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; border-radius: 7px; padding: 2px 8px; white-space: nowrap; background: var(--neutral-bg); color: var(--neutral); }
.dc-pii { background: #e8f1ff; color: #155cb4; }
.dc-government { background: #ecebfb; color: #5947c7; }
.dc-financial { background: #e4f5ed; color: #0f7a51; }
.dc-health { background: #fcecee; color: #c13843; }
.dc-credentials { background: #fbf1da; color: #a66b06; }
.dc-confidential { background: #e3f6f9; color: #0b7d8e; }
.dc-other { background: #eff3f8; color: #51647e; }

/* ---------- Brand logos (BrandLogo helper) ---------- */
.applogo { display: inline-grid; place-items: center; border-radius: 8px; color: #fff; font-weight: 700; font-family: var(--display); vertical-align: middle; flex: none; overflow: hidden; }
.applogo svg { display: block; }
.logocell { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.logocell .nm { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ Page polish + policy-editor layout ============ */
body { background:
    radial-gradient(1000px 460px at 100% -6%, rgba(27, 111, 211, .07), transparent 70%),
    var(--bg); background-attachment: fixed; }

/* A chosen option lights up */
.check-list label:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }

/* Status chip in a page header */
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.statuschip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ok); background: var(--ok-bg); padding: 7px 13px; border-radius: 9px; }
.statuschip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; box-shadow: 0 0 0 3px rgba(19, 154, 103, .18); }
.statuschip.off { color: var(--neutral); background: var(--neutral-bg); }
.statuschip.off i { background: var(--neutral); box-shadow: 0 0 0 3px rgba(81, 100, 126, .15); }

/* Two-column editor: the form, and a dark summary that stays in view. The summary moves under the form when the form would get
   narrower than 480px, measured on the space the page really has (the menu included), not on the window. */
.ped { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.ped-main { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ped > .sticky-sum { flex: 1 1 320px; min-width: 0; }
.sticky-sum { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 14px; }
.sumcard { position: relative; overflow: hidden; border-radius: 16px; padding: 22px; color: #fff; box-shadow: var(--shadow-md); background: linear-gradient(160deg, #0a1c36, #15346a); }
.sumcard::after { content: ""; position: absolute; top: -45px; right: -45px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(17, 177, 198, .35), transparent 70%); }
.sumcard h3 { color: #fff; font-size: 15px; margin: 0 0 13px; position: relative; }
.sumcard ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 9px; position: relative; }
.sumcard li { color: #cdddf2; font-size: 12.8px; }
.sumstat { display: flex; gap: 10px; margin-top: 18px; position: relative; }
.sumstat > div { flex: 1; background: rgba(255, 255, 255, .08); border-radius: 11px; padding: 12px; }
.sumstat .n { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; color: #fff; line-height: 1; }
.sumstat .l { font-size: 11px; color: #9fb2cc; }

/* Classified Policies: group header with an icon tile */
.pol-group { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; font-size: 16px; font-weight: 600; color: var(--ink); font-family: var(--display); }
.pol-group .kpi-ico { width: 30px; height: 30px; border-radius: 9px; }
.pol-group .kpi-ico .ico { width: 16px; height: 16px; }
.pol-group .badge { font-family: var(--font); }
.tabnum { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid transparent; background: var(--brand); color: #fff; font: inherit; font-weight: 600; font-size: 13.5px; line-height: 1.3; cursor: pointer; box-shadow: 0 2px 8px rgba(27, 111, 211, .3); transition: background .15s, box-shadow .15s, filter .15s, transform .05s; }
.btn:hover { background: var(--brand); filter: brightness(1.07); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .ico, .btn svg { width: 16px; height: 16px; }
.btn-secondary, .btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover, .btn-ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--brand); }
.btn-ghost { color: var(--muted); }
.btn-danger { background: var(--danger); box-shadow: none; }
.btn-danger:hover { background: var(--danger); filter: brightness(1.05); }
/* a quieter red button, for an action that is risky but not final (restart, lock, block sign-in) */
.btn-danger-soft { background: var(--danger-bg); color: var(--danger-ink); border-color: #f3cdd1; box-shadow: none; }
.btn-danger-soft:hover { background: #f9dde0; color: var(--danger-ink); border-color: var(--danger); filter: none; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 9px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; filter: none; transform: none; }

/* ---------- Forms ---------- */
/* Baseline look for EVERY text control, even ones not inside a styled form/filter block. :where() keeps specificity at zero,
   so form.stacked, .filters, .sel and .searchbox inputs below all still win. Checkboxes/radios are left to the browser. */
:where(input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=date], input[type=time], input[type=tel], input[type=url], input:not([type]), textarea, select) {
    font: inherit; font-size: 14px; color: var(--ink); background: #fff;
    border: 1px solid var(--line-strong); border-radius: 9px; padding: 9px 12px;
}
:where(input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=date], input[type=time], input[type=tel], input[type=url], input:not([type]), textarea, select):focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100);
}
form.stacked { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
form.stacked label { display: block; margin-bottom: 7px; color: var(--ink); font-weight: 600; font-size: 13px; }
form.stacked input[type=text], form.stacked input[type=email], form.stacked input[type=password], form.stacked input:not([type]), form.stacked select, form.stacked textarea,
.filters input, .filters select { width: 100%; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
form.stacked input:focus, form.stacked select:focus, form.stacked textarea:focus, .filters input:focus, .filters select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
form.stacked textarea { font-family: var(--mono); font-size: 12.5px; line-height: 1.6; resize: vertical; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand); vertical-align: -3px; margin-right: 8px; }
input[type=radio] { accent-color: var(--brand); }
.hint { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }
.hint a { font-weight: 600; }
.form-actions { display: flex; gap: 10px; padding-top: 6px; }

.check-list { display: grid; gap: 8px; }
.check-list label { display: flex; align-items: center; margin: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; }
.check-list label:hover { border-color: #bfcbf5; background: var(--surface-2); }

/* Option row: a tick box or radio, a bold label and a short hint under it, lined up without inline styles.
   <label class="opt"><input type="checkbox" name="x" value="true" /><span><b>Block downloads</b><small>What it does, in one line.</small></span></label>
   .opt.sub is an option that only matters when the one above it is on; it sits indented under it.
   .opts stacks options with a thin line between them. .opt-more holds a field that belongs to the option above (a list of
   addresses, a number), lined up with the option's label. Inside .check-list an .opt gets the bordered row look. */
.opt, form.stacked .opt { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 11px; align-items: start; margin: 0; padding: 9px 0; color: var(--text); font-size: 13.5px; font-weight: 400; line-height: 1.45; cursor: pointer; }
.opt > input[type=checkbox], .opt > input[type=radio] { grid-column: 1; width: 16px; height: 16px; margin: 2px 0 0; vertical-align: baseline; accent-color: var(--brand); }
/* everything but the tick box goes in the text column, even when it is not wrapped in a span */
.opt > :not(input) { grid-column: 2; min-width: 0; }
.opt > span { display: block; }
.opt b { color: var(--ink); font-weight: 600; }
.opt small, .opt .hint { display: block; margin: 2px 0 0; color: var(--muted); font-size: 12.5px; font-weight: 400; line-height: 1.5; }
.opt:has(> input:disabled) { cursor: default; opacity: .55; }
.opt.sub, form.stacked .opt.sub { margin-left: 27px; padding-left: 12px; border-left: 2px solid var(--line); }
.opts { display: flex; flex-direction: column; }
.opts > .opt + .opt { border-top: 1px solid var(--line); }
.opts > .opt.sub { border-top: 0; padding-top: 3px; }
.opt-more { margin: 0 0 10px 27px; display: grid; gap: 6px; }
.opt.sub + .opt-more { margin-left: 54px; }
.opt-more > label, form.stacked .opt-more > label { margin: 0; font-size: 12.5px; }
.check-list > .opt, form.stacked .check-list > .opt { display: grid; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.check-list > .opt:has(> input:checked) { border-color: var(--brand); background: var(--brand-50); }

/* Titled sub-panel inside a card: a group of options that belong together.
   <div class="box"><div class="box-head"><h4>Secure web gateway</h4><span class="badge">Beta</span><p class="hint">One line.</p></div>...</div> */
.box { padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); min-width: 0; }
.box + .box { margin-top: 12px; }
.box-head { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin-bottom: 8px; }
.box-head > h3, .box-head > h4, .box-head > b, .box-head > .box-title { margin: 0; font-family: var(--font); font-size: 13.5px; font-weight: 650; letter-spacing: 0; color: var(--ink); }
.box-head > .end { margin-left: auto; }
.box-head > p, .box-head > .hint { flex-basis: 100%; margin: 0; }
.box.warn { background: var(--warn-bg); border-color: #f1dfb0; }

/* Two columns that fall to one by the space the grid itself has (inside a form, beside a summary, with the menu open or closed).
   Never more than two. A child with .span-2 takes the whole row. */
.grid-2 { --gap: 18px; display: grid; gap: var(--gap); align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(360px, (100% - var(--gap)) / 2)), 1fr)); }
.grid-2 > * { min-width: 0; }
.grid-2 > .span-2 { grid-column: 1 / -1; }
/* A column with even spacing. On a card (class="card card-body stack") its title and hints need no inline margin:0. */
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stack > .sec-title, .stack > .planned-h, .stack > .hint, .stack > p { margin: 0; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; padding: 15px 18px; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.filters > div:last-child { margin-left: auto; }
.filters label { display: flex; flex-direction: column; gap: 6px; flex: 1 1 130px; max-width: 190px; min-width: 130px; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
/* an inline tick box in a filter bar: <label class="chk"><input type="checkbox" name="OnlyFailed" value="true" /> Only failed</label> */
.filters label.chk, .filters .chk { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 8px; min-width: 0; max-width: none; min-height: 41px; color: var(--ink); font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; cursor: pointer; }
.filters .chk input[type=checkbox], .filters .chk input[type=radio] { width: 16px; height: 16px; padding: 0; margin: 0; border: 0; box-shadow: none; flex: none; }

/* inline pill-select used in rich filter rows (opt-in) */
.sel { appearance: none; -webkit-appearance: none; background: var(--surface); border: 1px solid var(--line-strong); color: var(--muted); font: inherit; font-weight: 500; font-size: 12.5px; border-radius: 9px; padding: 8px 32px 8px 13px; cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%2360748f' stroke-width='2' stroke-linecap='round'><path d='M2 4l4 4 4-4'/></svg>"); background-repeat: no-repeat; background-position: right 11px center; }
.sel:hover { border-color: var(--brand); color: var(--ink); }

/* search box (opt-in) */
.searchbox { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px; padding: 0 12px; min-width: 200px; }
.searchbox .ico, .searchbox svg { width: 16px; height: 16px; color: var(--faint); flex: none; }
.searchbox input { border: 0; background: transparent; outline: none; padding: 9px 0; font: inherit; font-size: 13px; color: var(--ink); width: 100%; }
.searchbox input:focus { box-shadow: none; }
.searchbox:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }

/* segmented toggle (Table/Cards, 7D/30D) */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.seg button, .seg a { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 12.5px; padding: 6px 13px; border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button.on, .seg a.on { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }

/* pagination */
.pager { display: flex; align-items: center; gap: 6px; }
.pager .pg { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; font: inherit; font-weight: 600; font-size: 12.5px; display: grid; place-items: center; }
.pager .pg.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager .pg:hover:not(.on) { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* ---------- Tabs ----------
   <div class="tabs" data-tabs><button type="button" class="tab on" data-pane="t-a">A</button>...</div><div class="tabpane on" id="t-a">...</div>
   The shared script in _Layout does the switching and remembers the open tab. */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs .tab { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 13.5px; padding: 10px 16px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 7px; }
.tabs .tab:hover { color: var(--ink); text-decoration: none; }
.tabs .tab:focus-visible { outline: 2px solid var(--brand-100); outline-offset: -2px; border-radius: 8px 8px 0 0; }
.tabs .tab.on { color: var(--brand); border-bottom-color: var(--brand); }
.tabs .tab .pill { font-size: 10.5px; font-weight: 700; background: var(--brand-50); color: var(--brand); border-radius: 20px; padding: 1px 7px; }
.tabpane { display: none; }
.tabpane.on { display: block; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; align-items: start; }

/* dashboard two-column (wide chart + narrow breakdown) */
.dash-2col { display: grid; grid-template-columns: 1.65fr 1fr; gap: 16px; align-items: stretch; margin-bottom: 8px; }
@media (max-width: 900px) { .dash-2col { grid-template-columns: 1fr; } }
.donut-legend { display: grid; gap: 10px; }
.donut-legend .row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.donut-legend .sw { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.donut-legend .nm { color: var(--text); }
.donut-legend .n { margin-left: auto; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Alerts / empty ---------- */
.alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 18px; border-radius: 12px; font-size: 13.5px; font-weight: 500; border: 1px solid transparent; }
.alert .ico { width: 18px; height: 18px; }
.alert-info { background: var(--brand-50); color: #17407e; border-color: var(--brand-100); }
.alert-error { background: var(--danger-bg); color: var(--danger-ink); border-color: #f6cccf; }
.alert-warn, .alert-warning { background: var(--warn-bg); color: var(--warn-ink); border-color: #f1dfb0; }
.alert-ok, .alert-success { background: var(--ok-bg); color: var(--ok-ink); border-color: #c4e8d6; }
.empty { padding: 56px 24px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty .empty-ico { width: 46px; height: 46px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-50); color: var(--brand); }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* ---------- Section titles and the old planned-page parts (still used across the console) ---------- */
.content h1 .badge { margin-left: 12px; vertical-align: middle; position: relative; top: -2px; }
.planned-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
/* .sec-title is the one section title inside a card. .planned-h is the older name for the same look and stays. */
.planned-h, .sec-title { margin: 0 0 14px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.plain-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.plain-list li { position: relative; padding-left: 22px; color: var(--ink); min-width: 0; }   /* min-width: a wide code block inside scrolls instead of widening the page */
.plain-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.muted-list li { color: var(--text); }
.muted-list li::before { background: var(--faint); }

/* ---------- Danger zone (the _DangerZone partial): an action that cannot be undone, kept apart at the end of a page ---------- */
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-top: 28px; padding: 18px 20px 18px 23px; border-color: #f3cdd1; box-shadow: inset 3px 0 0 var(--danger), var(--shadow-sm); }
.danger-zone-text { flex: 1 1 320px; min-width: 0; }
.danger-zone .sec-title { margin: 0 0 4px; color: var(--danger-ink); }
.danger-zone p { margin: 0; color: var(--text); font-size: 13px; max-width: 72ch; }
.danger-zone-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.danger-zone-act form { margin: 0; }

/* ---------- Section list for long pages ----------
   <div class="with-sec-nav"><nav class="sec-nav"><div class="sec-title">On this page</div><a href="#s-sites">Sites</a>...</nav><div class="sec-body">...</div></div>
   The shared script lights the link for the section at the top of the screen. */
.with-sec-nav { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: start; }
.sec-body { min-width: 0; }
.sec-nav { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.sec-nav .sec-title { margin: 0; padding: 4px 10px 6px; }
.sec-nav a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.sec-nav a .ico { width: 16px; height: 16px; }
.sec-nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.sec-nav a.on { background: var(--brand-50); color: var(--brand); font-weight: 600; }
@media (max-width: 1180px) {
    .with-sec-nav { grid-template-columns: minmax(0, 1fr); }
    .sec-nav { top: 60px; z-index: 5; flex-direction: row; overflow-x: auto; scrollbar-width: thin; }
    .sec-nav .sec-title { display: none; }
    .sec-nav a { flex: none; white-space: nowrap; }
}

/* ---------- Where it applies (the _PolicyTargets partial) and other pick lists ---------- */
.targets { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.targets > .sec-title { margin: 0; }
.targets > .targets-hint { margin: -8px 0 0; }
.pick { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pick-label { color: var(--ink); font-weight: 600; font-size: 13px; }
.pick-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pick-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pick-tools .pick-search { flex: 1 1 180px; min-width: 0; padding: 7px 11px; font-size: 13px; }
.pick-list { max-height: 264px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pick-row, form.stacked .pick-row { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.pick-row:last-child { border-bottom: 0; }
.pick-row:hover { background: var(--surface-2); }
.pick-row:has(> input:checked) { background: var(--brand-50); }
.pick-row > input[type=checkbox], .pick-row > input[type=radio] { margin: 0; flex: none; }
.pick-row .pick-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-row small { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.pick-row[hidden], .pick-none[hidden] { display: none; }
.pick-none { margin: 0; }

/* ---------- Detail header ---------- */
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px 24px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.detail-head h1 { display: flex; align-items: center; gap: 14px; }
.facts { display: flex; gap: 28px; flex-wrap: wrap; }
.facts div { min-width: 0; }
.facts small { display: block; color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.facts span { color: var(--ink); font-weight: 500; font-size: 13.5px; }
.facts .mono { font-size: 12px; color: var(--muted); }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.auth-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 54px 64px; color: #fff; background: radial-gradient(900px 500px at 15% 105%, rgba(17, 177, 198, .4), transparent 60%), radial-gradient(700px 420px at 100% 0%, rgba(27, 111, 211, .45), transparent 55%), linear-gradient(150deg, #0a1c36 0%, #112a54 55%, #1b3f86 100%); }
.auth-brand .brand { padding: 0; }
.auth-brand h2 { margin: 0 0 14px; max-width: 460px; color: #fff; font-size: 38px; line-height: 1.12; font-weight: 600; letter-spacing: -.03em; border: 0; font-family: var(--display); }
.auth-brand p { max-width: 430px; margin: 0; color: #b9c4e0; font-size: 15.5px; }
.auth-points { display: grid; gap: 14px; margin-top: 34px; }
.auth-points div { display: flex; align-items: center; gap: 12px; color: #d3dcf3; font-size: 14px; }
.auth-points .dot { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #8fd6e0; }
.auth-points .ico { width: 15px; height: 15px; }
.auth-foot { color: #7f8db0; font-size: 12.5px; }
.auth-form-wrap { display: grid; place-items: center; padding: 40px 28px; background: var(--bg); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { margin: 0 0 6px; font-size: 26px; font-weight: 600; }
.auth-card .subtitle { margin: 0 0 28px; }
.auth-card form.stacked { max-width: none; gap: 18px; }
.auth-card .btn { width: 100%; padding: 12px; font-size: 14.5px; }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* the menu's dark backdrop on a phone, hidden on the desktop layout */
.nav-scrim { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .content { padding: 20px 16px 48px; }
    .planned-grid { grid-template-columns: 1fr; }
    table { display: block; overflow-x: auto; white-space: nowrap; }
    .auth { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
}

/* ---------- Multi-client ---------- */
.owner-note { margin: 2px 0 14px; padding: 12px 13px 13px; border-radius: 11px; background: var(--accent-50); border: 1px solid var(--line); color: var(--muted); display: grid; gap: 5px; font-size: 12px; line-height: 1.45; }
.owner-note b { color: var(--ink); font-size: 13.5px; }
.owner-note form { margin: 4px 0 0; }

/* Two-step sign-in QR code: fixed box, the picture fills it */
.qr-box { width: 200px; height: 200px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-sizing: border-box; overflow: hidden; }
.qr-box svg { display: block; width: 100%; height: 100%; }
/* Phone enrolment codes carry more text than a sign-in code, so they get a bigger box to stay easy to scan */
.qr-box.qr-wide { width: 260px; height: 260px; }

/* ============ Two-tier app shell: dark icon rail + white section panel + top bar ============ */
.shell2 { display: flex; min-height: 100vh; }
.navwrap { display: flex; flex: 0 0 auto; }
.rail { width: 74px; flex: none; background: var(--side); display: flex; flex-direction: column; align-items: center; padding: 14px 0; position: sticky; top: 0; height: 100vh; }
.rail-logo { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; margin-bottom: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(10, 18, 38, .3); }
.rail-logo img { width: 36px; height: auto; display: block; }
.rail-items { display: flex; flex-direction: column; gap: 4px; width: 100%; align-items: center; flex: 1; overflow-y: auto; scrollbar-width: none; }
.rail-items::-webkit-scrollbar { display: none; }
.rail-btn { width: 64px; min-height: 50px; flex: none; border: 0; background: transparent; color: var(--side-dim); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 12px; cursor: pointer; font: inherit; font-size: 9.5px; font-weight: 600; letter-spacing: .2px; transition: .15s; padding: 6px 3px; }
.rail-btn > span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2; }
.rail-btn .ico { width: 21px; height: 21px; }
.rail-btn:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.rail-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rail-btn.on { color: #fff; background: linear-gradient(145deg, rgba(27, 111, 211, .95), rgba(17, 177, 198, .6)); box-shadow: 0 4px 12px rgba(27, 111, 211, .35); }
.rail-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 10px; }
.rail-ava { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(140deg, #1b6fd3, #11b1c6); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.rail-logout { width: 44px; height: 40px; border: 0; background: transparent; color: var(--side-dim); border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.rail-logout:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.rail-logout .ico { width: 19px; height: 19px; }

.side2 { width: 244px; flex: none; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side2-head { padding: 20px 18px 12px; font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -.3px; }
.side2-scroll { flex: 1; overflow-y: auto; padding: 0 12px 16px; scrollbar-width: thin; }
.side-panel { display: none; flex-direction: column; gap: 2px; }
.side-panel.on { display: flex; }
/* sub-heading inside a group (SIA, DLP, Limitations ...) */
.side-sub { padding: 14px 12px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); cursor: default; }
.side-panel > .side-sub:first-child { padding-top: 2px; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 13.5px; transition: .12s; }
.side-link .ico { width: 18px; height: 18px; opacity: .9; flex: none; }
.side-link:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.side-link.active { background: var(--primary-soft); color: var(--brand); font-weight: 600; }
.side-link.active .ico { opacity: 1; }
.side-link span { flex: 1; min-width: 0; }
.side-link .soon { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 20px; background: var(--chip); color: var(--chip-ink); }
.side-link .count-pill { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 20px; background: var(--danger); color: #fff; }
.side-link.locked { opacity: .55; }

.main2 { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar2 { height: 60px; flex: none; display: flex; align-items: center; gap: 14px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 0 22px; position: sticky; top: 0; z-index: 20; }
.topbar2 .tenant { display: inline-flex; align-items: center; gap: 8px; min-width: 0; background: var(--primary-soft); color: var(--brand); font-weight: 600; font-size: 12.5px; border-radius: 20px; padding: 5px 13px 5px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar2 .tenant .d { width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 10px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.icon-btn2 { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; position: relative; }
.icon-btn2:hover { color: var(--brand); border-color: var(--brand); text-decoration: none; }
.icon-btn2 .ico { width: 18px; height: 18px; }
.icon-btn2 .badge-dot { position: absolute; top: -6px; right: -6px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; border-radius: 20px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; }
.who2 { display: flex; align-items: center; gap: 8px; }
.who2 .nm { font-size: 13px; font-weight: 600; line-height: 1.15; color: var(--ink); }
.who2 .rl { font-size: 11px; color: var(--faint); }
.hamburger2 { display: none; }
.collapse-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.collapse-btn:hover { color: var(--brand); border-color: var(--brand); }
.collapse-btn .ico { width: 18px; height: 18px; transition: transform .2s ease; transform: rotate(180deg); }
body.side-collapsed .collapse-btn .ico { transform: rotate(0deg); }
@media (min-width: 961px) { body.side-collapsed .navwrap .side2 { display: none; } }
@media (max-width: 960px) { .collapse-btn { display: none; } }

@media (max-width: 960px) {
    .navwrap { position: fixed; inset: 0 auto 0 0; transform: translateX(-100%); transition: transform .22s ease; z-index: 80; box-shadow: 0 0 44px rgba(0, 0, 0, .45); }
    body.nav-open .navwrap { transform: translateX(0); }
    .shell2 > .nav-scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .22s ease; z-index: 70; }
    body.nav-open .shell2 > .nav-scrim { opacity: 1; pointer-events: auto; }
    body.nav-open { overflow: hidden; }
    .hamburger2 { display: inline-flex; background: none; border: 0; color: var(--ink); padding: 6px; cursor: pointer; border-radius: 8px; }
    .hamburger2:hover { background: var(--surface-2); }
    .who2 .meta { display: none; }
    /* the drawer is the rail plus the panel, so keep the panel narrower than the phone */
    .side2 { width: min(244px, calc(100vw - 74px - 24px)); }
}
@media (max-width: 720px) {
    .topbar2 { padding: 0 12px; gap: 10px; }
    .topbar2 .tenant { max-width: 42vw; }
}
