/* Aruba VPN console. Shared components only: shell, buttons, badges, page header, tables, empty states, dialogs, forms.
   View-specific layout lives in views-customer.css and views-staff.css. Every colour, shadow and spacing step comes from
   tokens.css (semantic names only: no colour literals in this file; internal/portal/tokens_test.go enforces it).
   Served by the portal; no fonts or other assets are fetched. Light and dark follow prefers-color-scheme unless the account
   menu chose one (data-theme on the root element). The staff console adds .density-compact to .shell (tighter rows and cards). */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--text-secondary); font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }

h1, h2, h3 { color: var(--heading); letter-spacing: -.01em; line-height: 1.25; }
a { color: var(--link); } a:hover { color: var(--link-hover); }
::selection { background: var(--selection-bg); color: var(--selection-fg); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
::-webkit-scrollbar { width: 5px; height: 5px; } ::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--text); padding: 8px 12px; z-index: 90; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
code { font-family: var(--mono); font-size: max(.86em, 12px); color: var(--text-secondary); overflow-wrap: anywhere; }
strong { color: var(--text); font-weight: 600; }
.muted, .sub, .hint { color: var(--text-tertiary); } .sub { font-size: max(.9em, 12px); } .hint { font-size: 13px; margin: 6px 0 10px; line-height: 1.5; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; } .nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: max(.86em, 12px); color: var(--text-secondary); }
time { white-space: nowrap; }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.aruba-logo { display: block; width: 146px; height: 46px; } .logo-in { fill: var(--logo-inner); }

/* ---- AppShell ---- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--nav-bg); border-right: 1px solid var(--border); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; z-index: 40; }
.side-head { padding: 20px 20px 16px; border-bottom: 1px solid var(--border); }
.sidenav { flex: 1; overflow-y: auto; padding: 16px 12px; }
.nav-group { margin-top: 16px; } .nav-group:first-child { margin-top: 0; }
.nav-label { margin: 0 0 4px; padding: 0 12px; font-size: 12px; font-weight: 600; color: var(--text-tertiary); }
.sidenav a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin-bottom: 2px; border-radius: 8px; color: var(--nav-fg); text-decoration: none; font-weight: 500; font-size: 14px; line-height: 20px; transition: background-color .15s, color .15s; }
.sidenav a .ic { opacity: .8; }
.sidenav a:hover { background: var(--nav-hover-bg); color: var(--nav-hover-fg); }
.sidenav a:focus-visible { outline-offset: -2px; }
/* Selected navigation item: orange tint + orange text + aria-current="page". */
.sidenav a.current, .sidenav a[aria-current="page"] { background: var(--nav-selected-bg); color: var(--nav-selected-fg); font-weight: 600; box-shadow: inset 0 0 0 1px var(--nav-selected-border); }

/* Console identity and customer scope (sidebar head, and in the appbar where the sidebar is hidden).
   Console: .cid-staff (Operations console) or .cid-customer (Customer console). Scope: .cid-scope (customer name). */
.cid { margin: 12px 0 0; display: grid; gap: 6px; }
.cid-kind { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: var(--brand-soft-bg); color: var(--brand-fg); box-shadow: inset 0 0 0 1px var(--brand-soft-border); }
.cid-staff .cid-kind { background: var(--surface-sunken); color: var(--text-secondary); box-shadow: inset 0 0 0 1px var(--border); }
.cid-scope { display: grid; gap: 1px; padding: 6px 10px; border-left: 3px solid var(--brand); background: var(--surface-sunken); border-radius: 0 6px 6px 0; font-size: 13px; color: var(--text-secondary); }
.cid-scope .k { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-tertiary); }
.cid-scope strong { color: var(--text); overflow-wrap: anywhere; line-height: 1.3; }
.cid-scope a { font-size: 12px; font-weight: 500; }
.cid-bar { display: none; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.cid-bar .cid-kind { white-space: nowrap; }
.cid-bar .cid-scope { display: inline-flex; align-items: baseline; gap: 6px; padding: 2px 8px; min-width: 0; }
.cid-bar .cid-scope strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22ch; }

.side-foot { padding: 8px 12px; border-top: 1px solid var(--border); }
.railbtn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; border: 0; border-radius: 8px; background: none; color: var(--text-tertiary); font: inherit; font-size: 14px; font-weight: 500; line-height: 20px; cursor: pointer; }
.railbtn:hover { background: var(--nav-hover-bg); color: var(--nav-hover-fg); } .railbtn .ic { transform: rotate(90deg); }
/* Icon rail: desktop widths only; the phone drawer below 1024px is unchanged. */
@media (min-width: 1024px) {
  .rail .shell:not(.noside) { grid-template-columns: 56px minmax(0, 1fr); }
  .rail .side-head { padding: 0; height: 0; border: 0; overflow: hidden; }
  .rail .side-head .aruba-logo, .rail .side-head .cid { display: none; }
  .rail .appbar .logo-m { display: block; } .rail .appbar .logo-m .aruba-logo { width: auto; height: 24px; }
  .rail .appbar .cid-bar { display: inline-flex; }
  .rail .sidenav { padding: 12px 8px; overflow-x: hidden; }
  .rail .nav-label { display: none; }
  .rail .nav-group { margin-top: 0; padding-top: 8px; margin-top: 8px; border-top: 1px solid var(--border); } .rail .nav-group:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
  .rail .sidenav a, .rail .railbtn { justify-content: center; padding: 8px 0; gap: 0; }
  .rail .nl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rail .side-foot { padding: 8px; } .rail .railbtn .ic { transform: rotate(-90deg); }
}
.stage { min-width: 0; display: flex; flex-direction: column; background: var(--canvas); }
.appbar { display: flex; align-items: center; gap: 10px; padding: 0 var(--page-pad); height: 52px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }

.appbar .logo-m { display: none; } .appbar .sp { flex: 1; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; border: 0; background: none; color: var(--text-secondary); cursor: pointer; }
.iconbtn:hover { background: var(--nav-hover-bg); } .iconbtn.menu { display: none; }
.scrim { display: none; }
main { width: 100%; max-width: 1560px; margin: 0 auto; padding: var(--page-pad); flex: 1; }
.foot { width: 100%; max-width: 1560px; margin: 0 auto; padding: 0 var(--page-pad) var(--page-pad); color: var(--text-tertiary); font-size: 13px; }
.foot p { border-top: 1px solid var(--border); padding-top: 14px; margin: 0; } .foot .m { margin-top: 4px; border: 0; padding: 0; color: var(--text-tertiary); }
/* Environment badge: DEV and other non-production labels are neutral info; production is solid danger. */
.env { font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 2px 8px; border-radius: 6px; background: var(--status-info-bg); color: var(--status-info-fg); box-shadow: inset 0 0 0 1px var(--status-info-border); }
.env.prod { background: var(--action-danger-solid-bg); color: var(--action-danger-solid-fg); box-shadow: none; }
.gsearch { position: relative; flex: 1 1 320px; max-width: 460px; }
.gsearch input { padding-left: 34px; padding-right: 64px; height: 36px; min-height: 0; }
.gsearch .ic { position: absolute; left: 11px; top: 10px; color: var(--text-tertiary); pointer-events: none; }
.gsearch kbd { position: absolute; right: 8px; top: 7px; font: 11px var(--mono); border: 1px solid var(--border); border-radius: 4px; padding: 0 6px; color: var(--text-tertiary); background: var(--surface-sunken); }
.gresults { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface-raised); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-popover); z-index: 60; max-height: 60vh; overflow: auto; padding: 4px; }
.gresults p { margin: 6px 8px 2px; font-size: 12px; font-weight: 600; color: var(--text-tertiary); }
.gresults a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.gresults a:hover, .gresults a:focus { background: var(--surface-hover); outline: none; } .gresults a:focus-visible { box-shadow: inset 0 0 0 2px var(--focus-ring); } .gresults a span { color: var(--text-tertiary); font-size: 12.5px; font-family: var(--mono); }
.gresults .none { padding: 8px; color: var(--text-tertiary); font-size: 14px; }

/* ---- menus ---- */
.menu-wrap { position: relative; display: inline-block; }
.menubtn { display: inline-flex; align-items: center; gap: 6px; } .menubtn .caret { width: 14px; height: 14px; }
.menupop { position: fixed; z-index: 85; min-width: 220px; max-width: 320px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-popover); padding: 4px; list-style: none; margin: 0; }

.menupop[hidden] { display: none; } .menupop li { margin: 0; } .menupop hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
.menupop .mi { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 12px; border: 0; background: none; color: var(--text-secondary); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; border-radius: 8px; text-decoration: none; }
.menupop .mi:hover, .menupop .mi:focus { background: var(--surface-hover); color: var(--text); outline: none; } .menupop .mi:focus-visible { box-shadow: inset 0 0 0 2px var(--focus-ring); }
.menupop .mi.danger { color: var(--status-danger-fg); } .menupop .mi[disabled], .menupop .mi[aria-disabled="true"] { color: var(--text-tertiary); cursor: not-allowed; }
.menupop .mi[role="menuitemradio"]::before, .menupop .mi[role="menuitemcheckbox"]::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--control-border); border-radius: 50%; flex: none; }
.menupop .mi[role="menuitemcheckbox"]::before { border-radius: 4px; }
.menupop .mi[aria-checked="true"]::before { background: var(--action-primary-bg); border-color: var(--action-primary-bg); box-shadow: inset 0 0 0 3px var(--surface-raised); }
.menupop .who1 { padding: 8px 12px 6px; font-size: 13px; color: var(--text-tertiary); } .menupop .who1 strong { display: block; font-size: 14px; }
.menupop .lbl { padding: 6px 12px 2px; font-size: 12px; font-weight: 600; color: var(--text-tertiary); }
.kebab { min-width: 32px; height: 32px; padding: 0 6px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--text-tertiary); cursor: pointer; font-size: 18px; line-height: 1; font-weight: 700; }
.kebab:hover, .kebab[aria-expanded="true"] { background: var(--surface-sunken); border-color: var(--border); color: var(--text); }

/* ---- PageHeader: .pagehead > div (crumbs, .titlerow { h1.page + a state badge }, .sub1) + .actions ---- */
.pagehead { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-start; justify-content: space-between; margin-bottom: var(--space-5); }
.pagehead > div:first-child { min-width: 0; flex: 1 1 320px; }
.pagehead .actions { flex: 0 1 auto; max-width: 100%; }
.titlerow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
h1.page { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin: 0; color: var(--heading); line-height: 1.25; }
.crumbs { margin: 0 0 4px; font-size: 14px; font-weight: 500; } .crumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--text-tertiary); } .crumbs a { color: var(--link); text-decoration: none; } .crumbs a:hover { text-decoration: underline; } .crumbs [aria-current] { color: var(--text-secondary); }
.sub1 { margin: 8px 0 0; max-width: 42rem; font-size: 14px; line-height: 24px; color: var(--text-secondary); }
details.help { margin: 6px 0 0; font-size: 14px; color: var(--text-secondary); max-width: 42rem; } details.help summary { cursor: pointer; color: var(--link); font-weight: 600; display: list-item; } details.help > div { margin-top: 6px; }
.lede { display: none; }
html.hide-notes .ctx { position: sticky; top: 52px; z-index: 20; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; margin: -8px 0 16px; padding: 8px 14px; background: var(--status-info-bg); border: 1px solid var(--status-info-border); border-radius: 12px; font-size: 14px; color: var(--status-info-fg); }
.ctx strong { color: inherit; } .ctx .sep { opacity: .5; }
/* the meta line of a customer page: plain, one row, a gap on both sides of each separator */
.ctx { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 12px; font-size: 13px; color: var(--text-secondary); }

/* ---- Button .btn ----
   Variant (at most one): primary (orange, the one main task) | secondary (default, no class) | danger (outline) | danger-solid (confirm of a destructive action)
   | warn (outline amber) | ghost (text, link blue) | quiet (legacy alias of secondary).
   Size (optional): small | big.   States: hover, :active (pressed), :focus-visible, [disabled] / [aria-disabled="true"], all from tokens.
   Templates build the class with {{btn "primary" "small"}}, which fails on an unknown name. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 500; font-size: 14px; line-height: 20px; padding: 8px 16px; min-height: var(--control-h); border-radius: 8px; border: 1px solid var(--action-secondary-border); background: var(--action-secondary-bg); color: var(--action-secondary-fg); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: var(--action-secondary-bg-hover); color: var(--action-secondary-fg-hover); }
.btn:active { background: var(--action-secondary-bg-pressed); }
.btn.small { padding: 4px 12px; min-height: 32px; font-size: 13px; } .btn.big { padding: 10px 20px; min-height: 44px; font-size: 15px; }
.btn.primary { background: var(--action-primary-bg); border-color: var(--action-primary-border); color: var(--action-primary-fg); }
.btn.primary:hover { background: var(--action-primary-bg-hover); border-color: var(--action-primary-bg-hover); color: var(--action-primary-fg); }
.btn.primary:active { background: var(--action-primary-bg-pressed); border-color: var(--action-primary-bg-pressed); }
.btn.danger { background: var(--action-danger-bg); color: var(--action-danger-fg); border-color: var(--action-danger-border); }
.btn.danger:hover { background: var(--action-danger-bg-hover); color: var(--action-danger-fg); } .btn.danger:active { background: var(--action-danger-bg-pressed); }
.btn.danger-solid { background: var(--action-danger-solid-bg); border-color: var(--action-danger-solid-bg); color: var(--action-danger-solid-fg); }
.btn.danger-solid:hover { background: var(--action-danger-solid-bg-hover); border-color: var(--action-danger-solid-bg-hover); color: var(--action-danger-solid-fg); }
.btn.danger-solid:active { background: var(--action-danger-solid-bg-pressed); border-color: var(--action-danger-solid-bg-pressed); }
.btn.warn { background: var(--action-warn-bg); color: var(--action-warn-fg); border-color: var(--action-warn-border); }
.btn.warn:hover { background: var(--action-warn-bg-hover); color: var(--action-warn-fg); } .btn.warn:active { background: var(--action-warn-bg-pressed); }
.btn.ghost { border-color: transparent; background: none; color: var(--action-ghost-fg); } .btn.ghost:hover { background: var(--action-ghost-bg-hover); color: var(--link-hover); }
.btn[disabled], .btn[aria-disabled="true"], .btn.primary[disabled], .btn.danger-solid[disabled] { background: var(--surface-sunken); border-color: var(--border); color: var(--text-disabled); cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }


/* ---- forms ---- */
label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--text-secondary); }
label.check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--action-primary-bg); flex: none; }
input, select, textarea { font: inherit; font-size: 14px; width: 100%; padding: 8px 12px; min-height: 40px; border: 1px solid var(--control-border); border-radius: 8px; background: var(--control-bg); color: var(--control-fg); }


input[type=radio], input[type=checkbox] { width: auto; min-height: 0; } input::placeholder { color: var(--text-tertiary); }
option { background: var(--surface); color: var(--text); }
textarea { resize: vertical; } input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 1px solid var(--focus-ring); outline-offset: 0; border-color: var(--focus-ring); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
/* Fields with a hint line up on their labels: hints of different heights must not push an input up. */
.row:has(> .field > .hint):not(:has(> .btn, > button)) { align-items: flex-start; }
.field { flex: 1 1 170px; min-width: 0; } .field.btns { flex: 0 0 auto; display: flex; gap: 8px; } .field .hint { margin: 4px 0 0; }
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.chip { font: inherit; font-size: 13px; font-weight: 500; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); border-radius: 999px; padding: 4px 14px; min-height: 32px; cursor: pointer; }
.chip:hover { background: var(--surface-hover); } .chip[aria-pressed="true"] { background: var(--nav-selected-bg); border-color: var(--action-primary-bg); color: var(--nav-selected-fg); font-weight: 600; }
.opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 8px 0; background: var(--surface); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; margin-bottom: 12px; }
.toolbar .field { flex: 0 1 170px; } .toolbar .field.q { flex: 1 1 240px; max-width: 360px; } .toolbar label { font-size: 12px; margin-bottom: 2px; color: var(--text-tertiary); font-weight: 500; }
.toolbar select, .toolbar input { min-height: 36px; padding: 6px 12px; } .toolbar .sp { flex: 1; }
.toolbar .live1 { font-size: 13px; color: var(--text-tertiary); display: inline-flex; align-items: center; gap: 4px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { font: inherit; font-size: 13px; font-weight: 500; padding: 5px 12px; border: 0; background: var(--surface); color: var(--text-secondary); cursor: pointer; min-height: 34px; } .seg button + button { border-left: 1px solid var(--border); }
.seg button[aria-pressed="true"] { background: var(--nav-selected-bg); color: var(--nav-selected-fg); font-weight: 600; box-shadow: inset 0 0 0 1px var(--nav-selected-border); }
.count { color: var(--text-tertiary); font-size: 14px; margin: 0 0 6px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0; color: var(--text-tertiary); font-size: 14px; } .pager .actions { gap: 6px; }

/* ---- cards: .card / .panel (padding --card-pad), .stat tiles, .fstrip summary strip (see admin overview block), dl.kv key-value list, .idc copyable id ---- */
.card, .panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: var(--card-pad); box-shadow: var(--shadow-card); }
.panel.tight { padding: 12px 14px; } .panel + .panel, .panel + .table-wrap, .table-wrap + .panel, .card + .card { margin-top: 16px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.two > .panel, .three > .panel, .two > .card, .two > section.card { margin-top: 0; }
.card h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--gap); margin: 0 0 var(--space-5); }
.stat { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-card); color: var(--text); text-decoration: none; transition: border-color .15s; }
a.stat:hover { border-color: var(--link); } .stat.attention { border-color: var(--brand-soft-border); } .stat.attention .v { color: var(--brand-fg); }
.stat .k { display: block; font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.stat .v { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; margin-top: 8px; color: var(--text); }
.stat .v.small { font-size: 18px; line-height: 1.9; letter-spacing: 0; margin-top: 4px; } .stat .v small { font-size: 16px; color: var(--text-tertiary); font-weight: 600; }
.stat .v a { color: inherit; text-decoration: none; } .stat .sub { display: block; font-size: 12px; line-height: 20px; color: var(--text-tertiary); margin-top: 4px; }

/* ---- DataTable table.t inside .table-wrap ----
   Variants: .compact (tighter), .table-wrap.dense (denser, one line per row), .table-wrap.sticky (sticky header), .table-wrap.flat.
   Rows: tr.grp (group row), tr.detail (expandable), tr.selected, td.empty (the empty row), td.main (the name cell), td.act1 (actions).
   Row padding follows --row-pad-y / --row-pad-x, so the staff console (.density-compact) is tighter. Below 700px rows stack as label/value pairs (data-label). */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-card); margin: 8px 0; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; padding: var(--row-pad-y) var(--row-pad-x); font-size: 12px; font-weight: 600; color: var(--text-tertiary); white-space: nowrap; background: var(--surface-sunken); }
table.t td { text-align: left; padding: var(--row-pad-y) var(--row-pad-x); border-top: 1px solid var(--border); vertical-align: top; color: var(--text-secondary); }
table.t tbody tr:first-child td { border-top: 0; } table.t thead + tbody tr:first-child td, table.t thead + tbody tr.grp + tr td { border-top: 1px solid var(--border); }
table.t tbody tr { transition: background-color .15s; } table.t tbody tr:hover td { background: var(--surface-hover); }
table.t td.empty { text-align: center; color: var(--text-tertiary); padding: 32px 16px; }
table.t.compact th, table.t.compact td { padding: 6px 12px; }
table.t td strong, table.t td a strong { color: inherit; }
table.t td.main strong { color: var(--text); font-weight: 500; }
.tags { margin-top: 3px; } .tag { display: inline-block; font-size: 12px; font-weight: 500; background: var(--status-neutral-bg); color: var(--status-neutral-fg); box-shadow: inset 0 0 0 1px var(--status-neutral-border); border-radius: 999px; padding: 0 9px; margin-right: 4px; }
.table-wrap.dense table.t th { padding: 8px 14px; } .table-wrap.dense table.t td { padding: 8px 14px; vertical-align: middle; }
.table-wrap.dense table.t .sub { display: inline; margin-left: 8px; font-size: 12.5px; }
table.t th.sel, table.t td.sel { width: 36px; padding-right: 0; } table.t input[type=checkbox] { width: 16px; height: 16px; min-height: 0; accent-color: var(--action-primary-bg); }
table.t tr.selected td { background: var(--selected-row-bg); }
table.t th .sort { font: inherit; font-weight: 600; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
table.t th .sort::after { content: "\2195"; font-size: 11px; color: var(--text-tertiary); }
table.t th[aria-sort="ascending"] .sort::after { content: "\25B2"; color: var(--text); } table.t th[aria-sort="descending"] .sort::after { content: "\25BC"; color: var(--text); }
/* The actions column shrinks to its kebab; the cards of narrow screens keep their full-width blocks. */
@media (min-width: 701px) { table.t td.act1 { width: 1%; white-space: nowrap; } }
table.t td.r, table.t th.r { text-align: right; } table.t th.r .sort { flex-direction: row-reverse; } table.t td.c1 { vertical-align: middle; }
.hc-dns .c-dns, .hc-tags .c-tags, .hc-traffic .c-traffic, .hc-gw .c-gw, .hc-ip .c-ip { display: none; }
.stval { display: block; font-size: 12px; line-height: 20px; color: var(--text-tertiary); margin-top: 2px; }
.idc { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.idc .copy { opacity: 0; border: 0; background: none; color: var(--text-tertiary); cursor: pointer; padding: 2px 4px; border-radius: 4px; line-height: 0; }
.idc:hover .copy, .idc:focus-within .copy, .copy:focus-visible { opacity: 1; } .idc .copy .ic { width: 14px; height: 14px; } .idc .copy:hover { color: var(--link); }
@media (hover: none) { .idc .copy { opacity: 1; } }
dl.kv .idc { white-space: normal; } dl.kv code { overflow-wrap: anywhere; word-break: break-all; }
@media (min-width: 1101px) { .table-wrap.sticky { overflow: visible; } .table-wrap.sticky table.t thead th { position: sticky; top: 52px; z-index: 3; } .table-wrap.sticky table.t thead th:first-child { border-top-left-radius: 15px; } .table-wrap.sticky table.t thead th:last-child { border-top-right-radius: 15px; } }
.exp { font: inherit; border: 0; background: none; cursor: pointer; padding: 2px 6px; color: var(--text-tertiary); border-radius: 4px; } .exp[aria-expanded="true"] .tri { transform: rotate(90deg); } .tri { display: inline-block; transition: transform .1s; }
tr.detail > td { background: var(--surface-sunken) !important; padding: 12px 16px 14px 48px; } tr.detail[hidden] { display: none; } tr.detail table.t { width: auto; min-width: 420px; }
tr.grp th { background: var(--surface-sunken); font-size: 13px; color: var(--text); text-align: left; padding: 8px 16px; position: static; }
tr[hidden] { display: none !important; }
.bulkbar { position: sticky; bottom: 12px; z-index: 25; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; margin: 12px 0; background: var(--surface); border: 1px solid var(--link); border-radius: 12px; box-shadow: var(--shadow-popover); }
.bulkbar[hidden] { display: none; } .bulkbar .n { font-weight: 600; color: var(--text); }
.loadbar { display: inline-flex; align-items: center; gap: 8px; } .loadbar svg { width: 90px; height: 8px; } .loadbar .track { fill: var(--surface-sunken); stroke: var(--border); stroke-width: .6; } .loadbar .fill { fill: var(--status-neutral-dot); } .loadbar.warn .fill { fill: var(--status-warning-dot); } .loadbar.hot .fill { fill: var(--status-danger-dot); }

/* ---- StatusBadge .badge ----
   Tone (one): ok | warn | bad | info | off (neutral; also the default with no tone). Modifiers: plain (no dot), strong (filled neutral, see below).
   The state is always written in words inside the badge: colour and dot only add to the text.
   Meaning: ok = working, warn = needs someone, bad = broken or blocked on purpose, info = in progress / by design, off = neutral fact
   (offline, revoked, none, unknown). Modifier strong: a filled neutral (navy in light, inverse in dark) for a fact that matters but is
   not a state, such as the Admin role; keeps blue for links and amber for "needs someone". Build the class with {{badge "ok"}} or use a Go mapping (internal/portal/ui.go). */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 2px 10px; border-radius: 999px; background: var(--status-neutral-bg); color: var(--status-neutral-fg); box-shadow: inset 0 0 0 1px var(--status-neutral-border); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--status-neutral-dot); }
.badge.ok { background: var(--status-success-bg); color: var(--status-success-fg); box-shadow: inset 0 0 0 1px var(--status-success-border); } .badge.ok::before { background: var(--status-success-dot); }
.badge.info { background: var(--status-info-bg); color: var(--status-info-fg); box-shadow: inset 0 0 0 1px var(--status-info-border); } .badge.info::before { background: var(--status-info-dot); }
.badge.bad { background: var(--status-danger-bg); color: var(--status-danger-fg); box-shadow: inset 0 0 0 1px var(--status-danger-border); } .badge.bad::before { background: var(--status-danger-dot); }
.badge.warn { background: var(--status-warning-bg); color: var(--status-warning-fg); box-shadow: inset 0 0 0 1px var(--status-warning-border); } .badge.warn::before { background: var(--status-warning-dot); }
.badge.off { background: var(--status-neutral-bg); color: var(--status-neutral-fg); box-shadow: inset 0 0 0 1px var(--status-neutral-border); }
.badge.plain::before { display: none; }
.badge.strong { background: var(--status-strong-bg); color: var(--status-strong-fg); box-shadow: none; font-weight: 600; }
.live { font-weight: 600; color: var(--text-tertiary); white-space: nowrap; } .live i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--status-neutral-dot); margin-right: 6px; }
.live.on { color: var(--status-success-fg); } .live.on i { background: var(--status-success-dot); box-shadow: 0 0 0 3px var(--status-success-border); }

.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--status-success-dot); margin-right: 6px; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--status-success-dot) 50%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---- tabs (MembershipTabs) ---- */
.tabs, [role="tablist"] { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin: 8px 0 16px; overflow-x: auto; flex-wrap: nowrap; }
[role="tab"] { font: inherit; font-size: 14px; font-weight: 500; padding: 10px 16px; margin-bottom: -1px; border: 1px solid transparent; border-radius: 8px 8px 0 0; background: none; color: var(--text-tertiary); cursor: pointer; white-space: nowrap; }
[role="tab"]:hover { color: var(--tab-selected-fg); } 
[role="tab"][aria-selected="true"] { border-color: var(--border); border-bottom-color: var(--surface); background: var(--surface); color: var(--tab-selected-fg); }

[role="tab"] .badge { margin-left: 6px; }

/* ---- Notice (rounded-xl) and callouts ---- */
.banner, .callout { position: relative; display: block; padding: 12px 16px 12px 46px; border-radius: 12px; margin: 0 0 14px; border: 1px solid var(--status-info-border); background: var(--status-info-bg); color: var(--status-info-fg); font-size: 14px; }
.banner::before, .callout::before { content: "i"; position: absolute; left: 16px; top: 14px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 1.5px solid currentColor; }
.callout { margin: 14px 0; } .banner p, .callout p { margin: 0 0 4px; line-height: 1.5; } .banner p:last-child, .callout p:last-child { margin: 0; } .banner strong, .callout strong { color: inherit; font-weight: 600; } .banner a, .callout a { color: inherit; font-weight: 600; text-decoration: underline; } .banner code, .callout code { color: inherit; }
.banner.ok { background: var(--status-success-bg); border-color: var(--status-success-border); color: var(--status-success-fg); } .banner.ok::before { content: "\2713"; }
.banner.warn, .callout.warn { background: var(--status-warning-bg); border-color: var(--status-warning-border); color: var(--status-warning-fg); } .banner.warn::before, .callout.warn::before { content: "!"; }
.banner.error, .banner.danger, .callout.danger { background: var(--status-danger-bg); border-color: var(--status-danger-border); color: var(--status-danger-fg); } .banner.error::before, .banner.danger::before, .callout.danger::before { content: "!"; }
.banner .x { float: right; margin-left: 12px; } .banner h3, .callout h3 { color: inherit; }
.warnline { font-weight: 600; background: var(--status-warning-bg); color: var(--status-warning-fg); border: 1px solid var(--status-warning-border); border-radius: 12px; padding: 8px 12px; margin: 8px 0; font-size: 14px; } .warnline[hidden] { display: none; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 95; display: flex; flex-direction: column; gap: 8px; max-width: min(430px, calc(100vw - 32px)); }
.toast { background: var(--toast-bg); color: var(--toast-fg); border-radius: 12px; padding: 11px 14px; box-shadow: var(--shadow-toast); display: flex; gap: 12px; align-items: center; border-left: 4px solid var(--status-success-dot); font-size: 14px; } .toast.warn { border-left-color: var(--status-warning-dot); }
.toast button { font: inherit; background: none; border: 1px solid color-mix(in srgb, var(--toast-fg) 40%, transparent); color: var(--toast-fg); border-radius: 8px; padding: 1px 10px; cursor: pointer; }
dl.kv { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; margin: 0; font-size: 14px; } dl.kv dt { color: var(--text-tertiary); } dl.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--text); }
pre { background: var(--code-block-bg); color: var(--code-block-fg); border-radius: 12px; padding: 10px 14px; overflow-x: auto; margin: 8px 0; font-size: 13px; } pre code { color: inherit; }
.rec { display: grid; grid-template-columns: 56px 1fr; gap: 4px 10px; align-items: baseline; font-size: 13.5px; background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; margin: 6px 0; } .rec b { font-size: 12px; letter-spacing: .06em; color: var(--text-tertiary); } .rec code { color: var(--text); }

/* ---- dialogs, drawers ----
   dialog.drawer = side panel (add .pop for a centred popup). ConfirmDialog = dialog.confirm-dlg and, without script, the page-level
   .static-dialog.confirm-page; its destructive button is the shared .btn.danger-solid (ConfirmPage.ToneClass). */
dialog { border: 0; border-radius: 16px; padding: 0; max-width: 520px; width: calc(100vw - 32px); box-shadow: var(--shadow-dialog); background: var(--surface-raised); color: var(--text-secondary); }
dialog::backdrop { background: var(--scrim); }
dialog .dlg { padding: 24px 24px 16px; } dialog h2 { margin: 0 0 8px; font-size: 20px; font-weight: 600; }
dialog .who, .static-dialog .who { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; margin: 10px 0; font-size: 14px; }
dialog .undo { margin: 8px 0 0; font-size: 14px; color: var(--text-tertiary); }
dialog .foot-actions, .static-dialog .foot-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding: 14px 24px; background: var(--surface-sunken); border-top: 1px solid var(--border); }
.static-dialog { max-width: 520px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card); border: 1px solid var(--border); overflow: hidden; } .static-dialog .dlg { padding: 20px 22px 14px; } .static-dialog h3 { font-size: 19px; margin: 0 0 8px; }
dialog.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(480px, 100vw); max-width: 100vw; border-radius: 0; display: none; flex-direction: column; border-left: 1px solid var(--border); }
dialog.drawer[open] { display: flex; }
/* A drawer marked "pop" opens as a centred popup instead of a side panel (rule creation). Without script it is a section like the others. */
.js dialog.drawer.pop { margin: auto; height: fit-content; max-height: calc(100vh - 64px); width: min(560px, calc(100vw - 32px)); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
@media (max-width: 600px) { .js dialog.drawer.pop { width: calc(100vw - 16px); max-height: calc(100vh - 16px); } }
dialog.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); } dialog.drawer header h2 { margin: 0; font-size: 18px; }
dialog.drawer .body { padding: 16px 20px; overflow: auto; flex: 1; } dialog.drawer .body .field { margin-bottom: 14px; flex: none; }
dialog.drawer footer { padding: 12px 20px; border-top: 1px solid var(--border); background: var(--surface-sunken); display: flex; gap: 10px; justify-content: flex-end; }
dialog.drawer .raw { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; font-size: 13px; }

/* ---- loading, empty ---- */
.skel { display: block; height: 12px; border-radius: 6px; background: var(--border); opacity: .7; animation: sk 1.6s ease-in-out infinite; } .skelrow { height: 56px; border-radius: 12px; margin-bottom: 12px; }
@keyframes sk { 0%, 100% { opacity: .7; } 50% { opacity: .35; } }
/* ---- EmptyState .emptystate ----
   Variants: (default) no records yet | .error the data could not be read (shown instead of a misleading "none").
   Inline: .unavail = a value or block that could not be read; .unk = one missing value ("Unknown" / "Not reported"), written as an
   em dash plus visible words. Never show an unknown value as zero, "ok" or "offline". */
.emptystate { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 56px 24px; text-align: center; box-shadow: var(--shadow-card); }
.emptystate .ic { width: 32px; height: 32px; color: var(--text-tertiary); margin-bottom: 14px; } .emptystate h3 { font-size: 18px; font-weight: 600; } .emptystate p { max-width: 28rem; margin: 8px auto 20px; font-size: 14px; line-height: 24px; color: var(--text-secondary); }
.emptystate.error { border-color: var(--status-danger-border); background: var(--status-danger-bg); } .emptystate.error .ic, .emptystate.error h3 { color: var(--status-danger-fg); }
.unavail { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; font-size: 13px; font-weight: 500; background: var(--status-danger-bg); color: var(--status-danger-fg); box-shadow: inset 0 0 0 1px var(--status-danger-border); }
.unk { display: inline-flex; align-items: baseline; gap: 6px; color: var(--text-tertiary); font-size: 13px; font-style: normal; }
.unk [aria-hidden="true"] { color: var(--text-tertiary); }
@media (prefers-reduced-motion: reduce) { .skel, .pulse { animation: none; } * { transition: none !important; scroll-behavior: auto !important; } }

/* ---- WizardLayout, timeline, checklists ---- */
.wsteps { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0 0 24px; overflow-x: auto; counter-reset: w; }
.wsteps li { counter-increment: w; flex: 1 1 0; min-width: 120px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--text-tertiary); padding: 4px 6px; position: relative; }
.wsteps li::before { content: counter(w); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; background: var(--step-bg); color: var(--step-fg); position: relative; z-index: 1; }

.wsteps li::after { content: ""; position: absolute; top: 26px; left: calc(50% + 28px); right: calc(-50% + 28px); height: 2px; background: var(--border); } .wsteps li:last-child::after { display: none; }
.wsteps li.done { color: var(--text-secondary); } .wsteps li.done::before { content: "\2713"; background: var(--step-done-bg); color: var(--step-done-fg); } .wsteps li.done::after { background: var(--step-done-bg); }
.wsteps li.on { color: var(--text); } .wsteps li.on::before { background: var(--step-on-bg); color: var(--step-on-fg); transform: scale(1.05); box-shadow: 0 0 0 4px var(--step-on-ring); }

.wizard.wiz-on .wstep { display: none; } .wizard.wiz-on .wstep.on { display: block; } .wizard:not(.wiz-on) .wsteps { display: none; }
.wstep > h2:first-child { margin-top: 0; } .wstep h2:focus { outline: none; }
.wnav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; } .wnav .actions { margin-left: auto; }
.timeline { list-style: none; margin: 4px 0 0 12px; padding: 0; border-left: 2px solid var(--border); }
.timeline li { position: relative; margin-left: 24px; padding-bottom: 24px; } .timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -35px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--border-strong); box-shadow: 0 0 0 4px var(--surface); }
.timeline li::after { content: ""; position: absolute; left: -28px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--surface); }
.timeline li.now::before { background: var(--status-info-dot); } .timeline li.event::before { width: 10px; height: 10px; left: -30px; top: 7px; } .timeline li.event::after { display: none; }
.timeline time { font-size: 12px; color: var(--text-tertiary); margin-left: 8px; } .timeline p { margin: 2px 0 0; font-size: 12px; line-height: 20px; color: var(--text-tertiary); } .timeline .event span { font-size: 14px; color: var(--text-tertiary); }
.check-list { list-style: none; padding: 0; margin: 0; } .check-list > li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); } .check-list > li:last-child { border-bottom: 0; }
.check-list .n { width: 28px; height: 28px; border-radius: 50%; background: var(--step-bg); color: var(--step-fg); display: grid; place-items: center; font-weight: 600; font-size: 13px; }

.check-list .done .n { background: var(--step-done-bg); color: var(--step-done-fg); } .check-list .doing .n { background: var(--step-on-bg); color: var(--step-on-fg); } 
.moreh { margin: 6px 0 4px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.more-list { list-style: disc; margin: 0; padding-left: 20px; font-size: 14px; } .more-list li { margin: 4px 0; }
.check-list h3 { margin: 0 0 2px; font-size: 15px; }
.rules-list { margin: 0; padding-left: 20px; } .rules-list li { margin: 4px 0; }
/* Numbered steps with a title, a short reason and a command each (gateway token page). */
ol.steps { margin: 0; padding-left: 24px; max-width: 920px; } ol.steps > li { margin: 0 0 20px; padding-left: 4px; } ol.steps > li::marker { font-weight: 600; color: var(--text); }
ol.steps > li > p { margin: 4px 0 8px; color: var(--text-secondary); } ol.steps > li > ul { margin: 8px 0 0; padding-left: 18px; color: var(--text-tertiary); font-size: 13px; } ol.steps > li > ul li { margin: 3px 0; }
ol.steps pre { margin: 8px 0; overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); } .cmp th, .cmp td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; } .cmp thead th { background: var(--surface-sunken); color: var(--text-tertiary); font-size: 12px; } .cmp tbody th { font-weight: 600; width: 22%; color: var(--text); }
.reach { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; } .reach .panel { margin: 0; } .reach .vpn { border-top: 4px solid var(--status-success-dot); } .reach .pub { border-top: 4px solid var(--border-strong); } .reach ul { margin: 6px 0 0; padding-left: 18px; }
.secret-box { font-family: var(--mono); font-size: 14px; border: 2px solid var(--link); }
.queue { list-style: none; margin: 12px 0 0; padding: 0; } .queue li { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--border); } .queue li:first-child { border-top: 0; padding-top: 0; }
.queue p { margin: 0; } .queue .t1 { font-weight: 600; color: var(--text); font-size: 14px; } .queue .t2 { font-size: 14px; color: var(--text-tertiary); } .queue .r { display: flex; gap: 12px; align-items: center; }
.hd { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; } .card > h2:first-child, .card > .hd:first-child h2 { margin-top: 0; } .sec { margin-top: 24px; }
h2 { font-size: 18px; font-weight: 600; margin: 28px 0 8px; }
.sentence { font-size: 14px; color: var(--text); } .sentence b { font-weight: 600; } .rawline { display: block; font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }
.cards2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 12px 0; }
.choice { position: relative; display: block; border: 1px solid var(--border); border-radius: 16px; padding: 18px 18px 16px 52px; cursor: pointer; background: var(--surface); font-weight: 400; font-size: 14px; margin: 0; color: var(--text-secondary); box-shadow: var(--shadow-card); }
.choice:has(input:checked) { border-color: var(--link); background: var(--status-info-bg); } .choice:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.choice input { position: absolute; left: 18px; top: 20px; width: 20px; height: 20px; accent-color: var(--action-primary-bg); } .choice strong { display: block; font-size: 16px; margin-bottom: 4px; } .choice .tagline { display: inline-block; font-size: 12px; font-weight: 600; color: var(--status-success-fg); margin-bottom: 4px; }
.healthline { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding: 14px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 16px; font-size: 14px; box-shadow: var(--shadow-card); }
.progress { height: 8px; border-radius: 4px; background: var(--border); width: 160px; overflow: hidden; display: inline-block; vertical-align: middle; } .progress i { display: block; height: 100%; background: var(--status-success-dot); }
kbd { font: 12px var(--mono); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; background: var(--surface-sunken); color: var(--text-secondary); }

/* ---- drawer nav and phone width (Hermes: top bar + drawer below lg) ---- */
@media (max-width: 1023px) {
  .shell { display: block; } .cid-bar { display: inline-flex; flex-wrap: wrap; } .side-foot { display: none !important; }
  .iconbtn.menu { display: inline-flex; } .appbar { padding: 0 16px; border-bottom: 1px solid var(--border); position: static; flex-wrap: wrap; height: auto; min-height: 56px; padding-top: 8px; padding-bottom: 8px; gap: 8px; }
  .appbar .logo-m { display: block; } .appbar .logo-m .aruba-logo { width: auto; height: 24px; }
  .gsearch { order: 7; flex: 1 0 100%; max-width: none; } .appbar .env { order: 3; }
  .js .side { position: fixed; left: 0; top: 0; bottom: 0; width: 288px; max-width: 85vw; transform: translateX(-102%); visibility: hidden; transition: transform .2s ease, visibility 0s .2s; box-shadow: var(--shadow-dialog); z-index: 80; }
  .js.nav-open .side { transform: none; visibility: visible; transition: transform .2s ease; }
  .js.nav-open .scrim { display: block; position: fixed; inset: 0; background: var(--scrim); z-index: 70; border: 0; }
  :root:not(.js) .side { position: static; height: auto; }
  main { padding: 16px; } .foot { padding: 0 16px 24px; } .ctx { position: static; margin-top: 0; } h1.page { font-size: 24px; }
}
@media (min-width: 640px) { h1.page { font-size: 30px; } }
@media (max-width: 700px) {
  dl.kv { grid-template-columns: 1fr; gap: 0; } dl.kv dt { margin-top: 8px; }
  .btn { min-height: 40px; } .btn.small { min-height: 36px; padding: 6px 12px; } .toasts { left: 16px; right: 16px; max-width: none; }
  .wsteps li { min-width: 92px; } .wsteps li::before { width: 36px; height: 36px; } .wsteps li::after { top: 22px; left: calc(50% + 22px); right: calc(-50% + 22px); }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; } .stat { padding: 14px; } .stat .v { font-size: 26px; } .stat .v.small { font-size: 16px; }
  .reach, .two, .three { grid-template-columns: 1fr; } .menubtn .nm { display: none; }
  .pagehead .actions { flex-basis: 100%; } .badge { white-space: normal; } .card, .panel { padding: 16px; }
  table.t thead { position: absolute; left: -9999px; }
  table.t, table.t tbody, table.t tr, table.t td { display: block; width: 100%; }
  table.t tr { padding: 10px 4px; border-bottom: 1px solid var(--border); } table.t tbody tr:last-child { border-bottom: 0; }
  table.t td { border: none !important; padding: 4px 12px; display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; background: none !important; }
  table.t td::before { content: attr(data-label); color: var(--text-tertiary); font-size: 12px; font-weight: 600; flex: 0 0 84px; padding-top: 2px; }
  table.t td.empty { display: block; } table.t td.empty::before, table.t td[data-label=""]::before { content: none; }
  table.t td > * { min-width: 0; } table.t td.main { display: block; padding-top: 2px; } table.t td.main::before { content: none; }
  table.t td.act, table.t td.act1, table.t td.sel { display: block; } table.t td.act::before, table.t td.act1::before, table.t td.sel::before { content: none; } table.t td.sel { padding-bottom: 0; }
  table.t td .sub { display: block; margin-left: 0; } tr.detail > td { padding-left: 12px; } .bulkbar { bottom: 8px; }
  .cmp th, .cmp td { padding: 6px 8px; font-size: 13px; }
}
@media (max-width: 380px) { .stats { grid-template-columns: 1fr; } }


/* ---- portal additions: progressive enhancement, menus as <details>, server-rendered tabs and chips ---- */
:root:not(.js) .js-only { display: none !important; }
.js .nojs-only { display: none !important; }
.shell.noside { display: block; }
.noside .appbar .logo-m, .unauth .appbar .logo-m { display: block; }
.noside .cid-bar { display: inline-flex; }
.noside .appbar .logo-m .aruba-logo, .unauth .appbar .logo-m .aruba-logo { width: auto; height: 26px; }
.unauth { min-height: 100vh; display: flex; flex-direction: column; }
.unauth main { flex: 1; }
.hero { max-width: 640px; margin: 48px auto; }
.hero .crumbs { color: var(--link); font-weight: 500; }
.aruba-logo.big { width: 220px; height: auto; margin-bottom: 24px; }
.sp1 { margin-top: 12px; } .sp2 { margin-top: 24px; }
h2.first { margin-top: 0; }
.card h2.first, .card .hd h2 { font-size: 17px; }
.table-wrap.flat { box-shadow: none; margin: 10px 0 0; }
.plainlist { list-style: none; margin: 8px 0 0; padding: 0; } .plainlist li { padding: 6px 0; }
.picker { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.picker .pick { display: block; text-decoration: none; color: var(--text); } .picker .pick:hover { border-color: var(--link); } .picker .pick strong { display: block; font-size: 16px; }
fieldset.choices { border: 0; padding: 0; margin: 12px 0; } fieldset.choices legend { font-weight: 600; color: var(--text); padding: 0; }
form.inline { display: inline-flex; gap: 6px; margin: 0; align-items: center; } form.inline select { width: auto; min-height: 32px; padding: 3px 8px; }
.role-form { display: flex; gap: 8px; align-items: center; margin: 0; } .inline-select { width: auto; min-height: 32px; padding: 3px 8px; }
.live1.stale { color: var(--status-warning-fg); } .live1.stale .pulse { background: var(--status-warning-dot); animation: none; }
.healthline > span + span { padding-left: 20px; border-left: 1px solid var(--border); }

/* menus: a <details> works without script; the script places the popup next to its button */
details.dd { position: relative; display: inline-block; }
details.dd > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
details.dd > summary::-webkit-details-marker { display: none; }
details.dd > summary.kebab { justify-content: center; }
details.dd .menupop { position: absolute; right: 0; top: calc(100% + 4px); left: auto; }
details.dd.account .menupop { min-width: 260px; }
.menupop label.mi { cursor: pointer; } .menupop label.mi input { width: 16px; height: 16px; min-height: 0; accent-color: var(--action-primary-bg); }
.menupop button.mi[data-theme-set]::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--control-border); border-radius: 50%; flex: none; }
.menupop .mi[aria-pressed="true"]::before { background: var(--action-primary-bg); border-color: var(--action-primary-bg); box-shadow: inset 0 0 0 3px var(--surface); }
.menupop form { margin: 0; } .menupop li > span.mi { display: flex; }
.who1 { padding: 8px 12px 6px; font-size: 13px; color: var(--text-tertiary); } .who1 strong { display: block; font-size: 14px; }
.lbl { padding: 6px 12px 2px; font-size: 12px; font-weight: 600; color: var(--text-tertiary); }

/* server-rendered tabs and quick filters */
.tabs { overflow-x: auto; overflow-y: hidden; } a.tab:focus-visible { outline-offset: -3px; }
a.tab { font-size: 14px; font-weight: 500; padding: 10px 16px; margin-bottom: -1px; border: 1px solid transparent; border-radius: 8px 8px 0 0; color: var(--text-tertiary); text-decoration: none; white-space: nowrap; }
a.tab:hover { color: var(--tab-selected-fg); }
a.tab.current { border-color: var(--border); border-bottom-color: var(--surface); background: var(--surface); color: var(--tab-selected-fg); }
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
a.chip[aria-current="true"] { background: var(--nav-selected-bg); border-color: var(--action-primary-bg); color: var(--nav-selected-fg); font-weight: 600; }
.toolbar .chips { margin: 0; }
table.t th .sort { color: inherit; text-decoration: none; }
table.t th.r .sort { flex-direction: row-reverse; }

/* drawers: without script the form is shown below the list, like any other section */
dialog.drawer > form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
:root:not(.js) dialog.drawer { display: block; position: static; width: auto; max-width: none; height: auto; max-height: none; margin: 16px 0; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-card); }
:root:not(.js) dialog.drawer > form { display: block; }
dialog.confirm-dlg .confirm-form, .confirm-page .confirm-form { display: block; margin: 0; }
.confirm-page .dlg { padding: 20px 22px 14px; }
.bulkbar { margin: 12px 0; }
details.more { margin: 16px 0; } details.more > summary { cursor: pointer; color: var(--link); font-weight: 600; }
.static-dialog.confirm-page { max-width: 560px; }
/* The confirmation page is a centred card that carries its own question, like a popup. */
.static-dialog.confirm-page { margin: 48px auto 0; } .confirm-page h1.page { font-size: 22px; line-height: 1.3; margin: 0 0 10px; }
.confirm-page .dlg > p { margin: 0 0 10px; } .confirm-page .dlg { padding: 24px 24px 18px; }
ul.who.facts { list-style: none; padding: 4px 12px; } ul.who.facts li { padding: 6px 0; border-bottom: 1px solid var(--border-subtle); } ul.who.facts li:last-child { border-bottom: 0; }
.static-dialog .undo { margin: 10px 0 0; font-size: 14px; color: var(--text-tertiary); }
@media (max-width: 600px) { .static-dialog.confirm-page { margin-top: 16px; } }
.dlg .who { margin: 8px 0; }
.dlg .warnline { margin: 8px 0; }

@media (max-width: 700px) {
  .account .nm { display: none; }
  .menupop { max-width: calc(100vw - 16px); }
  .hero { margin: 24px auto; }
}

@media (max-width: 700px) {
  .toolbar .field, .toolbar .field.q { flex: 1 1 calc(50% - 8px); max-width: none; }
  .toolbar .field.q { flex-basis: 100%; }
  .toolbar .seg, .toolbar details.dd { display: none; }
  .toolbar .chips { flex-basis: 100%; }
}

/* ---- landing (signed-out) page: white header with pill buttons, hero with
   a diagram, three cards, a step grid, a white card beside a navy card, a closing call to action ---- */
.lp { min-height: 100vh; background: var(--canvas); color: var(--text-secondary); }
.lp main { max-width: none; padding: 0; outline: none; }
.lp-wrap { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.lp-head { background: var(--surface); border-bottom: 1px solid var(--border); }
.lp-head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.lp-logo { width: auto; height: 30px; }
.lp-head-act { display: flex; align-items: center; gap: 12px; }
.lp-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 20px; border-radius: 999px; border: 1px solid var(--action-primary-bg); background: var(--action-primary-bg); color: var(--action-primary-fg); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.lp-pill:hover { background: var(--action-primary-bg-hover); border-color: var(--action-primary-bg-hover); color: var(--action-primary-fg); }
.lp-pill.big { min-height: 48px; padding: 12px 28px; }
.lp-eyebrow { margin: 0; color: var(--action-primary-bg); font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; }
.lp-eyebrow.light { color: var(--landing-on-navy-faint); }
.lp h1, .lp h2, .lp h3 { color: var(--text); letter-spacing: -.02em; }
.lp-hero { background: var(--surface); border-bottom: 1px solid var(--border); background-image: radial-gradient(700px 360px at 85% 40%, var(--landing-glow), transparent 70%); }
.lp-hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.lp-hero h1 { margin: 20px 0 0; font-size: 56px; font-weight: 800; line-height: 1.02; }
.lp-lead { margin: 24px 0 0; max-width: 560px; font-size: 18px; line-height: 1.75; color: var(--text-tertiary); }
.lp-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; } .lp-cta.center { justify-content: center; }
.lp-fine { margin: 16px 0 0; font-size: 13px; color: var(--text-tertiary); }
.lp-art { margin: 0; }
.lp-art svg { display: block; width: 100%; height: auto; }
.lp-art figcaption { margin-top: 10px; font-size: 13px; color: var(--text-tertiary); text-align: center; }
.a-dc rect { fill: var(--canvas); stroke: var(--border); stroke-dasharray: 5 5; }
.a-cap { fill: var(--text-tertiary); font: 600 11px var(--font); letter-spacing: .14em; text-transform: uppercase; }
.a-node rect, .a-dev rect { fill: var(--surface); stroke: var(--border-strong); }
.a-gw rect { stroke: var(--brand); stroke-width: 2; filter: var(--shadow-drop); }
.a-stby rect { stroke-dasharray: 4 4; }
.a-t { fill: var(--text); font: 600 14px var(--font); } .a-s { fill: var(--text-tertiary); font: 12px var(--font); }
.a-rule rect { fill: var(--status-warning-bg); stroke: none; } .a-rule text { fill: var(--brand-fg); font: 600 11px var(--font); }
.a-tun { fill: none; stroke: var(--link); stroke-width: 2.5; stroke-dasharray: 7 6; animation: a-flow 1.6s linear infinite; }
.a-dot { fill: var(--link); }
.a-lab { fill: var(--link); font: 600 11px var(--font); }
@keyframes a-flow { to { stroke-dashoffset: -26; } }
@media (prefers-reduced-motion: reduce) { .a-tun { animation: none; } }
.lp-sec { padding-top: 56px; padding-bottom: 56px; }
.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-card { background: var(--surface); border: 1px solid var(--border); padding: 28px; box-shadow: var(--shadow-landing); }
.lp-card h2 { margin: 16px 0 0; font-size: 22px; font-weight: 650; line-height: 1.3; }
.lp-card > p:not(.lp-eyebrow) { margin: 14px 0 0; font-size: 14px; line-height: 1.75; color: var(--text-tertiary); }
.lp-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-intro { max-width: 720px; } .lp-intro h2 { margin: 16px 0 0; font-size: 36px; font-weight: 800; line-height: 1.15; }
.lp-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.lp-steps li { background: var(--surface); padding: 28px; }
.lp-steps .n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--selected-row-bg); color: var(--link); font-weight: 700; font-size: 14px; }
.lp-steps h3 { margin: 16px 0 0; font-size: 18px; font-weight: 650; } .lp-steps p { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: var(--text-tertiary); }
.lp-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; }
.lp-roles h2, .lp-navy h2 { margin: 16px 0 0; font-size: 28px; font-weight: 800; line-height: 1.2; }
.lp-navy { background: var(--landing-navy); color: var(--landing-on-navy); padding: 32px; box-shadow: var(--shadow-landing-navy); }
.lp-navy h2 { color: var(--text-on-solid); }
.lp-navy dl { margin: 28px 0 0; } .lp-navy dl > div { padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--landing-on-navy-rule); } .lp-navy dl > div:last-child { border: 0; margin: 0; padding: 0; }
.lp-navy dt { color: var(--text-on-solid); font-weight: 600; font-size: 14px; } .lp-navy dd { margin: 6px 0 0; font-size: 14px; line-height: 1.7; }
.lp-last { padding-top: 8px; padding-bottom: 64px; }
.lp-final { text-align: center; padding: 40px 32px; }
.lp-final h2 { font-size: 30px; font-weight: 800; } .lp-final > p:not(.lp-eyebrow) { max-width: 620px; margin-left: auto; margin-right: auto; }
.lp-foot { background: var(--surface); border-top: 1px solid var(--border); padding: 28px 0; font-size: 13px; line-height: 1.8; color: var(--text-tertiary); }
.lp-foot p { margin: 0; } .lp-foot .m { color: var(--text-tertiary); }
@media (max-width: 960px) {
  .lp-hero-in, .lp-split { grid-template-columns: 1fr; } .lp-hero-in { padding-top: 40px; padding-bottom: 40px; gap: 32px; }
  .lp-hero h1 { font-size: 38px; } .lp-lead { font-size: 16px; }
  .lp-cards, .lp-steps { grid-template-columns: 1fr 1fr; } .lp-intro h2 { font-size: 28px; }
}
@media (max-width: 600px) {
  .lp-wrap { padding-left: 16px; padding-right: 16px; } .lp-head-act .env { display: none; }
  .lp-cards, .lp-steps { grid-template-columns: 1fr; } .lp-sec { padding-top: 40px; padding-bottom: 40px; }
  .lp-hero h1 { font-size: 32px; } .lp-cta .lp-pill { flex: 1 1 100%; } .lp-navy, .lp-card { padding: 22px; }
}
/* landing: who uses the console, one row per role with icon, scope and tasks */
.lp-roles-lead { margin: 14px 0 0; font-size: 14px; line-height: 1.7; color: var(--text-tertiary); }
.lp-role-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--border); }
.lp-role-list > li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.lp-role-list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.lp-role-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft-bg); color: var(--brand-fg); box-shadow: inset 0 0 0 1px var(--brand-soft-border); }
.lp-role-ic .ic { width: 22px; height: 22px; }
.lp-role-list h3 { margin: 0; font-size: 16px; font-weight: 650; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lp-scope { font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: var(--status-neutral-bg); color: var(--status-neutral-fg); box-shadow: inset 0 0 0 1px var(--status-neutral-border); }
.lp-role-list li > div > p { margin: 4px 0 0; font-size: 14px; color: var(--text-tertiary); }
.lp-tasks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.lp-tasks li { position: relative; padding-left: 20px; font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.lp-tasks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 9px; height: 5px; border-left: 2px solid var(--link); border-bottom: 2px solid var(--link); transform: rotate(-45deg); }
@media (max-width: 600px) { .lp-tasks { grid-template-columns: 1fr; } }

.lp .banner { margin-top: 16px; }
/* registration keys: how many of the 20 active keys are in use */
.keyquota { margin: 0 12px 0 0; font-size: 13px; color: var(--text-tertiary); align-self: center; }
.keyquota strong { color: var(--text); }
.keyquota.full { color: var(--status-warning-fg); font-weight: 600; }
.keyquota.full strong { color: inherit; }
details.help ul { margin: 8px 0 0; padding-left: 18px; } details.help li + li { margin-top: 6px; } details.help p { margin: 0; }
/* create customer: sizing helper */
fieldset.sizer { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px 16px; margin: 0; background: var(--surface-sunken); min-width: 0; }
fieldset.sizer legend { padding: 0 6px; font-weight: 600; color: var(--text); font-size: 14px; }
fieldset.sizer .row { display: flex; flex-wrap: wrap; gap: 12px; }
fieldset.sizer .hint { margin-top: 0; }
.suggest { margin: 10px 0 8px; font-size: 14px; color: var(--text); }
.capline { color: var(--text-secondary); }
/* account menu: theme as an icon segmented control; sign out lives here only */
.themeseg { padding: 6px 12px 10px; }
.themeseg .lbl { display: block; padding: 0 0 6px; }
.themeseg .seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; border-radius: 10px; background: var(--surface-sunken); box-shadow: inset 0 0 0 1px var(--border); }
.themeseg button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px 6px; border: 0; border-radius: 8px; background: transparent; color: var(--text-tertiary); font: 500 12px var(--font); cursor: pointer; min-width: 64px; }
.themeseg button .ic { width: 18px; height: 18px; }
.themeseg button:hover { color: var(--text); background: var(--surface-hover); }
.themeseg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--border); }
.themeseg button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.menupop .mi.signout { color: var(--status-danger-fg); }
/* create customer: site picker, one selectable card per data center */
fieldset.sites { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.sites legend { padding: 0; margin-bottom: 2px; font-weight: 600; font-size: 14px; color: var(--text); }
fieldset.sites > .hint { margin: 0 0 10px; }
.sitegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.sitecard { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.sitecard:hover { border-color: var(--control-border); }
.sitecard input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sitecard:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.sitecard:has(input:checked) { border-color: var(--action-primary-bg); background: var(--nav-selected-bg); box-shadow: inset 0 0 0 1px var(--action-primary-bg); }
.sc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sc-name { font-weight: 650; color: var(--text); font-size: 15px; font-family: var(--mono); }
.sc-tick { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border-strong); flex: none; }
.sitecard:has(input:checked) .sc-tick { border-color: var(--action-primary-bg); background: var(--action-primary-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.sc-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-tertiary); }
.sc-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--status-success-dot); flex: none; }
.sc-meta .dot.off { background: var(--status-neutral-dot); }
fieldset.sites .warnline { margin-top: 10px; font-weight: 500; }
details.sp1 > .row { align-items: flex-start; }
/* customer console: the status board (Overview), and the flow through the gateway and the access matrix (Access rules) */
.stat.bad { background: var(--status-danger-bg); border-color: var(--status-danger-border); } .stat.bad .v, .stat.bad .k { color: var(--status-danger-fg); }
.stat.warn { background: var(--status-warning-bg); border-color: var(--status-warning-border); } .stat.warn .v, .stat.warn .k { color: var(--status-warning-fg); }
.skiplink { font-size: 13px; }
/* visually hidden but focusable once the Flow/Matrix toggle is there (#effect.eff-js); without script the link shows */
.eff-js .sr-focus:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eff-js .skipline { margin: 0; }
.dotkey { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 12px; margin: -4px 0 10px; padding: 0; font-size: 12px; color: var(--text-tertiary); }
.dotkey li { display: inline-flex; align-items: center; gap: 2px; }
.dotkey .dot { transform: scale(.6); margin: 0 -3px; } /* the key is a reminder, not content: smaller marks than the devices' own */
.board { display: grid; gap: 10px; }
.brow { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 8px 20px; align-items: start; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.bname { margin: 0; font-size: 15px; } .bhead .sub { margin: 2px 0 0; } .breach { margin: 6px 0 0; font-size: 13px; color: var(--text-secondary); overflow-wrap: anywhere; }
.dots { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.dchips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.dchips li { min-width: 0; }
.dchip { display: inline-flex; align-items: center; gap: 7px; max-width: 220px; box-sizing: border-box; padding: 3px 10px 3px 8px; font-size: 13px; line-height: 20px; color: var(--text); text-decoration: none; background: var(--surface-sunken); border: 1px solid var(--border); border-radius: 999px; }
.dchip:hover { border-color: var(--text-tertiary); }
.dchip:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.dchip .cn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dchip.more { padding-left: 10px; color: var(--text-secondary); font-weight: 600; }
.dot { display: inline-block; position: relative; width: 16px; height: 16px; flex: none; box-sizing: border-box; border-radius: 50%; background: var(--status-success-dot); }
a.dot:hover { transform: scale(1.25); } a.dot:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.dot.st-offline { background: transparent; border: 2px solid var(--text-tertiary); }
.dot.st-blocked { background: var(--status-danger-dot); border-radius: 3px; } .dot.st-blocked::before, .dot.st-blocked::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; background: var(--surface); transform: rotate(45deg); } .dot.st-blocked::after { transform: rotate(-45deg); }
.dot.st-signin, .dot.st-routes { background: var(--status-warning-dot); border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); width: 18px; height: 16px; }
.dot.st-signin::before, .dot.st-routes::before { content: "!"; position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font: 700 10px/12px var(--font); color: var(--status-warning-on-dot); }

.flow-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 6px 2px; }
.flow { display: block; width: 100%; min-width: 760px; height: auto; }
.flow text { font-family: var(--font); }
.fhead { font-size: 13px; font-weight: 600; fill: var(--text-tertiary); text-transform: uppercase; letter-spacing: .08em; }
.fbox { outline: none; } .fbox rect { fill: var(--surface-sunken); stroke: var(--border-strong); stroke-width: 1.5; }
.fbox:focus-visible rect, .fbox:hover rect { stroke: var(--link); stroke-width: 2.5; } .fbox:focus-visible rect { stroke: var(--focus-ring); }
.fbox .ft { font-size: 15px; font-weight: 700; fill: var(--text); } .fbox .fs { font-size: 14px; fill: var(--text-secondary); }
.fbox.muted rect { fill: var(--surface); stroke-dasharray: 4 4; } .fbox.muted .ft { fill: var(--text-tertiary); } .fbox.muted .fs { fill: var(--text-tertiary); }
.gbox { fill: var(--status-info-bg); stroke: var(--link); stroke-width: 2; } .gbox.warn { stroke: var(--status-warning-dot); fill: var(--status-warning-bg); }
.fgate .gt { font-size: 15px; font-weight: 700; fill: var(--text); text-transform: capitalize; } .fgate .gs { font-size: 13px; fill: var(--text-secondary); }
.bpath { fill: none; stroke: var(--fc, var(--link)); stroke-opacity: .6; stroke-linecap: butt; }
.band.part .bpath { stroke-dasharray: 10 6; stroke-opacity: .8; }
.bhead { fill: var(--fc, var(--link)); fill-opacity: .85; }
.fstripe { fill: var(--fc, transparent); stroke: none; }
.bplate { fill: var(--surface); fill-opacity: .96; stroke: var(--fc, var(--border-strong)); stroke-width: 1.5; }
.band.part .bplate { stroke-dasharray: 4 3; }
.bl { font-size: 14px; font-weight: 600; fill: var(--text); } .bl .bl2, .bl2 { font-weight: 500; fill: var(--text-secondary); }
.flow.has-em .band:not(.is-em) { opacity: .15; } .flow.has-em .fbox:not(.is-rel):not(.is-em) { opacity: .45; }
.band.is-em .bpath { stroke-opacity: 1; }
.flow .flit { fill: var(--link); }
@media (prefers-reduced-motion: reduce) { a.dot { transition: none; } }

.mxwrap table.t { min-width: 640px; }
.mx th, .mx td { vertical-align: top; } .mx th .sub, .mx thead th .sub { display: block; margin: 0; font-weight: 400; }
.mx tbody th[scope="row"] { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 130px; }
.mxc0 { min-width: 130px; }
.mxy { background: var(--status-success-bg); } .mxy.sel { box-shadow: inset 0 0 0 2px var(--link); }
.mxy.part { border-left: 3px dashed var(--status-success-dot); } .mxy.full { border-left: 3px solid var(--status-success-dot); }
.mxy.lat { background: var(--status-warning-bg); border-left: 3px dotted var(--status-warning-dot); } .mxy.lat .mxv, .mxy.lat .mxn { color: var(--status-warning-fg); }
.mxa { display: grid; gap: 2px; color: var(--text); text-decoration: none; min-width: 150px; } .mxa:hover .mxp { text-decoration: underline; } .mxa:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.mxp { font-weight: 600; overflow-wrap: anywhere; } .mxv, .mxn { font-size: 12.5px; color: var(--text-secondary); }
.mxn0 { color: var(--text-tertiary); background: var(--status-neutral-bg); } .mxn0 .muted { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; } .mxn0 .ic { width: 14px; height: 14px; flex: none; }
.mxrule { margin: 0 0 4px; font-size: 15px; color: var(--text); }
.badge .ic { width: 12px; height: 12px; }
.cellnote { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--status-warning-bg); color: var(--status-warning-fg); } .cellnote .ic { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.mxcell { margin-top: 16px; } .mxcell h4 { font-size: 14px; margin: 14px 0 6px; } .cellfacts, .cellrules { margin: 6px 0; padding-left: 18px; font-size: 14px; color: var(--text-secondary); }
@media (max-width: 900px) { .brow { grid-template-columns: 1fr; } }

/* flow: a colour per source group, from a small set; the label, the pattern and the position say the same */
.flow .c0 { --fc: var(--series-0); } .flow .c1 { --fc: var(--series-1); } .flow .c2 { --fc: var(--series-2); } .flow .c3 { --fc: var(--series-3); } .flow .c4 { --fc: var(--series-4); } .flow .c5 { --fc: var(--series-5); }
/* matrix: the badge hugs its text, headers and cells share the top alignment */
.mxa { justify-items: start; }
.table-wrap.dense table.t.mx th, .table-wrap.dense table.t.mx td { vertical-align: top; }
.mxy:has(.mxa[aria-current="true"]) { box-shadow: inset 0 0 0 2px var(--link); }
.mxa[aria-current="true"] .mxp::after { content: " (open)"; font-weight: 500; color: var(--text-tertiary); }
.mxcell h3:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
/* phone width: only the flow and the matrix scroll, each inside its own wrapper */
.sec, .board, .brow, .bhead, .dots { min-width: 0; }

/* flow: allowed by a rule, but nothing active: thin, amber, dotted, no light */
.band.lat .bpath { stroke: var(--status-warning-dot); stroke-width: 2px; stroke-dasharray: 2 5; stroke-opacity: .9; stroke-linecap: round; }
.band.lat .bhead { fill: var(--status-warning-dot); } .band.lat .bplate { stroke: var(--status-warning-dot); stroke-dasharray: 2 3; } .band.lat .bl { fill: var(--status-warning-fg); }

/* customer Overview: the strip, the status tiles, a compact attention card, the slim setup row */
.strip { margin-bottom: 16px; } .strip .stripc { color: var(--text-secondary); } .strip .stripr { margin-left: auto; color: var(--text-tertiary); } .strip .stripr a { color: var(--text-secondary); font-weight: 500; }
a.stat.bad:hover { border-color: var(--status-danger-dot); } a.stat.warn:hover { border-color: var(--status-warning-dot); }
.tiles .stat { padding: 16px 18px; } .tiles .stat .sub { margin-top: 2px; }
.attn { margin-bottom: 16px; padding: 14px 18px; } .attn h2 { font-size: 15px; margin: 0 0 6px; }
.attnlist { list-style: none; margin: 0; padding: 0; } .attnlist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--border-subtle); } .attnlist li:first-child { border-top: 0; }
.attnlist .an { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .attnlist .an .sub { margin-left: 6px; }
.attnmore { margin: 6px 0 0; font-size: 13px; }
.setup { padding: 12px 18px; } .setuprow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; } .setuprow h2 { font-size: 15px; margin: 0; }
progress { width: 140px; height: 8px; accent-color: var(--action-primary-bg); } .setupall { margin-top: 8px; } .setupall > summary { cursor: pointer; font-size: 13px; color: var(--text-secondary); }
.breach a { color: var(--text-secondary); text-decoration: none; } .breach a:hover { text-decoration: underline; }
@media (max-width: 600px) { .strip .stripr { margin-left: 0; flex-basis: 100%; } .attnlist .an { white-space: normal; } }
.tilestotal { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }

/* ---- admin overview: status strip, fleet by site, calm cards ---- */
.fstrip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--border-subtle); padding: 0; margin-bottom: 16px; overflow: hidden; }
.fstrip.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fstrip > a, .fstrip > div { display: grid; gap: 2px; align-content: start; padding: 14px 18px; background: var(--surface); color: inherit; text-decoration: none; min-width: 0; }
.fstrip > a:hover { background: var(--surface-hover); }
.fstrip .k { font-size: 12px; font-weight: 500; color: var(--text-tertiary); }
.fstrip .v { font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: var(--text); line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; } .fstrip .v small { font-size: 14px; font-weight: 500; color: var(--text-tertiary); }
.fstrip .s { font-size: 12px; color: var(--text-tertiary); overflow-wrap: anywhere; } .fstrip .s.warn { color: var(--status-warning-fg); font-weight: 600; }
.calm { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 20px; margin-bottom: 16px; } .calm h2 { font-size: 14px !important; margin: 0; white-space: nowrap; } .calm p { margin: 0; color: var(--text-secondary); }
.ov2, .ov3 { align-items: start; margin-top: 0; margin-bottom: 16px; }
.ov2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.fsites { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.fsite { border: 1px solid var(--border); border-radius: 10px; background: var(--surface-sunken); padding: 10px; min-width: 0; }
.fsh { display: flex; align-items: baseline; gap: 8px; } .fsh h3 { margin: 0; font-size: 14px; } .fsh span { margin-left: auto; font-size: 12px; color: var(--text-tertiary); white-space: nowrap; }
.fnodes { list-style: none; margin: 0; padding: 0; }
.fnode { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 8px; padding: 8px 10px; margin-top: 6px; border: 1px solid var(--border); border-left: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: inherit; text-decoration: none; }
.fnode:hover { border-color: var(--border-strong); }
.fnode.warn, .fnode.bad, .fnode.info, .fnode.off { border-left-width: 3px; padding-left: 8px; }
.fnode.warn { border-left-color: var(--status-warning-dot); } .fnode.bad { border-left-color: var(--status-danger-dot); } .fnode.info { border-left-color: var(--status-info-dot); } .fnode.off { border-left-color: var(--status-neutral-dot); }
.fnode .fn { overflow-wrap: anywhere; font-size: 13px; } .fnode .fm { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text-tertiary); }
.ov-recent td, .ov-risk td { white-space: nowrap; }
.tgt { white-space: nowrap; overflow-wrap: normal; }
.wh { display: flex; align-items: baseline; gap: 0 6px; min-width: 0; }
.wh > * { flex: none; }
.wh > .tw { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1599px) { .ov3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1100px) { .ov2 { grid-template-columns: minmax(0, 1fr); } .fstrip, .fstrip.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fstrip > a:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 700px) { .ov-recent td, .ov-risk td { white-space: normal; } .tgt { white-space: normal; overflow-wrap: anywhere; } .wh { flex-wrap: wrap; } .wh > .tw { white-space: normal; overflow: visible; } .fstrip > a, .fstrip > div { padding: 10px 12px; } .fstrip .v { font-size: 20px; } .calm p { flex-basis: 100%; } .calm { padding: 12px 16px; } }

/* field-level error under an input (add gateway, change allowed address) */
.ferr { margin: 6px 0 0; font-size: 14px; color: var(--status-danger-fg); }
.field input[aria-invalid="true"] { border-color: var(--status-danger-fg); }


/* ---- customer console v2, round 1 ---- */
/* the scrollers contain the visually hidden (position: absolute) labels inside them, so these cannot widen the page */
.table-wrap, .flow-scroll { position: relative; }
/* members: the last admin's note stays on the badge's line */
.lastnote { font-size: 12px; color: var(--text-tertiary); margin-left: 6px; white-space: nowrap; }
/* customer Overview strip: the status strip of the Aruba Overview with the device counts folded in */
.cstrip { grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr)) minmax(0, 1.3fr); }
.cstrip .cs-svc .v { font-size: 15px; font-weight: 600; line-height: 1.7; white-space: normal; }
.cstrip .cs-svc .s, .cstrip .cs-links .s { font-size: 13px; color: var(--text-secondary); }
.cstrip .cs-links .s { line-height: 1.8; } .cstrip .cs-links a { color: var(--text-secondary); font-weight: 500; }
.cstrip > a.bad .v, .cstrip > a.bad .k { color: var(--status-danger-fg); } .cstrip > a.warn .v, .cstrip > a.warn .k { color: var(--status-warning-fg); }
@media (max-width: 1100px) { .cstrip { grid-template-columns: repeat(12, minmax(0, 1fr)); } .cstrip > a { grid-column: span 3; } .cstrip .cs-svc { grid-column: 1 / 8; grid-row: 1; } .cstrip .cs-links { grid-column: 8 / 13; grid-row: 1; } }
@media (max-width: 700px) { .cstrip { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cstrip > a { grid-column: auto; } .cstrip .cs-svc, .cstrip .cs-links { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 700px) { .cstrip > a .k { font-size: 12px; } .cstrip .cs-svc .v { line-height: 1.5; } }
/* device list: one bar (search, tag, quick filters, View menu) */
.devbar { flex-wrap: wrap; align-items: center; gap: 8px; }
.devbar .devsearch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 224px; min-width: 0; margin: 0; }
.devbar .devsearch .field { flex: 0 1 96px; margin: 0; } .devbar .devsearch .field.q { flex: 1 1 120px; max-width: 280px; min-width: 110px; }
.devbar select, .devbar input { min-height: 34px; padding: 5px 10px; font-size: 13px; }
.devbar .sbox { position: relative; } .devbar .sbox input { padding-right: 36px; width: 100%; }
.devbar .sbtn { position: absolute; right: 2px; top: 2px; width: 30px; height: 30px; border: 0; border-radius: 6px; background: none; color: var(--text-tertiary); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.devbar .sbtn:hover { background: var(--surface-hover); color: var(--text); } .devbar .sbtn .ic { width: 16px; height: 16px; }
.devbar .chips { flex: 0 0 auto; flex-wrap: nowrap; gap: 4px; margin: 0; }
.devbar .chip { padding: 2px 8px; min-height: 30px; font-size: 12.5px; white-space: nowrap; }
.devbar .chip .n { font-weight: 600; font-variant-numeric: tabular-nums; margin-left: 2px; opacity: .8; }
.devbar .view { margin-left: auto; } .devbar .view > summary { padding: 4px 8px; }
.menupop .mlabel { display: block; padding: 6px 12px 2px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-tertiary); }
.menupop .seg { margin: 4px 8px 6px; }
.hint .live1 { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; font-size: 13px; color: var(--text-tertiary); }
@media (max-width: 700px) {
  .devbar .devsearch, .devbar .chips { flex: 1 1 100%; } .devbar .devsearch .field { flex: 1 1 calc(50% - 8px); } .devbar .devsearch .field.q { flex: 1 1 100%; max-width: none; }
  .devbar .chips { flex-wrap: wrap; } .devbar .view { display: none; }
}
/* device rows: status and traffic cells hold one block each; in Compact (dense) the second line joins the first */
.cell2 { display: block; }
@media (min-width: 701px) { .table-wrap.dense td .cell2 .stval { display: inline; margin: 0 0 0 8px; } .table-wrap.dense td .cell2 { white-space: normal; } }
@media (min-width: 1101px) { .table-wrap.dense td .cell2 { white-space: nowrap; } }
/* Narrow desktop: each piece (badge, handshake, down, up) stays whole and moves to a second line as a unit. */
@media (min-width: 701px) and (max-width: 1100px) { .table-wrap.dense td .cell2 > * { white-space: nowrap; } .table-wrap.dense td .cell2 .stval { display: inline-block; } }
@media (max-width: 700px) { table.t td.r::before { text-align: left; } }
/* Access rules: the flow is drawn 1216 units wide; above that it stays at 1:1 (text 15px, captions 14px), centred. Matrix: group columns share the width equally. */
.flow { max-width: 1216px; margin-inline: auto; }
.mx thead th { width: 240px; } .mx thead th.mxc0 { width: 120px; }

/* ---- customer console v2, round 2 ---- */
/* device page: one fact strip, edit links on the Details rows, popups for rename / tags / routes */
.devstrip { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 16px; }
.devstrip .v { font-size: 18px; white-space: normal; overflow-wrap: anywhere; }
.editlink { font-size: 13px; font-weight: 500; margin-left: 6px; white-space: nowrap; }
h1.page .editlink { font-size: 14px; vertical-align: middle; }
@media (max-width: 700px) { .devstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .devstrip > div:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* audit log: filters in one disclosure (open and without its summary on a wide screen: app.js), one-line rows */
.filters { padding: 10px 14px; }
.filters .row { gap: 8px 10px; }
.filters label { font-size: 12px; margin-bottom: 2px; color: var(--text-tertiary); font-weight: 500; }
.filters select, .filters input { min-height: 34px; padding: 5px 10px; font-size: 13px; }
.filters .field { flex: 1 1 118px; } .filters .field.btns .btn { min-height: 34px; padding: 5px 14px; }
.fdisc > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-secondary); padding: 2px 0; } .fdisc[open] > summary { margin-bottom: 8px; }
@media (min-width: 701px) { .js .fdisc > summary { display: none; } }
table.auditt td { white-space: nowrap; } table.auditt tr.detail td { white-space: normal; }
.auditt .clip { display: inline-block; max-width: 24ch; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.auditt td.a-det .clip { max-width: 32ch; }
@media (min-width: 701px) and (max-width: 1279px) { .auditt .a-det { display: none; } }
@media (max-width: 700px) {
  table.t.auditt tbody tr:not(.detail) { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: "exp time res" ". actor act" ". cust cust" ". tgt tgt" ". det det"; align-items: center; padding: 6px 4px; }
  table.t.auditt tbody tr:not(.detail) td { display: block; width: auto; padding: 1px 8px; white-space: normal; min-width: 0; }
  table.t.auditt td::before { content: none; }
  .auditt .a-exp { grid-area: exp; padding: 0 !important; } .auditt .a-time { grid-area: time; } .auditt .a-res { grid-area: res; } .auditt .a-actor { grid-area: actor; }
  .auditt .a-act { grid-area: act; text-align: right; } .auditt .a-cust { grid-area: cust; } .auditt .a-tgt { grid-area: tgt; } .auditt .a-det { grid-area: det; }
  table.t.auditt td.none, table.t.auditt td:empty { display: none; }
  .auditt .clip, .auditt td.a-det .clip { display: block; max-width: 100%; white-space: nowrap; }
  .auditt .a-tgt code { overflow-wrap: anywhere; } .auditt .a-time, .auditt .a-actor { font-size: 13px; }
  .auditt .a-det { color: var(--text-tertiary); font-size: 13px; }
}
/* customer Overview: Recent changes under the board (stacked rows on a phone, from the shared table rules) */
@media (max-width: 700px) { .ov-recent td { overflow-wrap: anywhere; } }
/* device page: code text never below 12px (timeline, popups, callout) */
.timeline code, dialog.drawer code, .callout code, dl.kv code { font-size: max(12px, .8em); }
@media (min-width: 701px) and (max-width: 1279px) { .table-wrap.dense table.t.auditt th, .table-wrap.dense table.t.auditt td { padding-left: 8px; padding-right: 8px; } }
@media (max-width: 700px) { table.t.auditt tbody tr:not(.detail) td { line-height: 20px; font-size: 13px; } table.t.auditt tbody tr:not(.detail) { padding: 4px 4px; } .auditt .a-res .badge { padding-top: 0; padding-bottom: 0; } }
/* Recent changes on the customer Overview, phone: time and result, actor and action, target (three lines, as the audit log) */
@media (max-width: 700px) {
  table.t.rc tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "time res" "actor act" "tgt tgt"; align-items: center; padding: 6px 4px; }
  table.t.rc tbody tr td { display: block; width: auto; padding: 1px 8px; line-height: 20px; min-width: 0; }
  table.t.rc td::before { content: none; }
  table.t.rc td.empty { grid-column: 1 / -1; }
  .rc .a-time { grid-area: time; } .rc .a-res { grid-area: res; } .rc .a-actor { grid-area: actor; } .rc .a-act { grid-area: act; text-align: right; } .rc .a-tgt { grid-area: tgt; }
}

/* ---- Access rules, design critique ---- */
/* helper paragraphs keep a readable measure */
.sec > .hint, .sec > p.sub, #effect > .hint { max-width: 90ch; }
/* the flow heading is a step below the section heading (h2 18px) */
#effect .effview > h3 { font-size: 15px; font-weight: 600; margin: 14px 0 6px; }
#effect > .callout { max-width: 90ch; margin: 8px 0 12px; }
/* the raw rule spans the whole row, under the rule's own cells */
table.t tbody tr.rawrow td { border-top: 0; padding-top: 0; padding-bottom: 10px; }
table.t tr.rawrow .rawline { display: block; margin: 0; }
.rules-t .kebab { min-width: 32px; min-height: 32px; height: 32px; }
@media (max-width: 700px) {
  table.t tr:has(+ tr.rawrow) { border-bottom: 0; padding-bottom: 0; }
  table.t tr.rawrow { padding-top: 0; }
  table.t td.rawcell { display: block; }
}

/* ---- Access rules, design critique ---- */
/* helper paragraphs keep a readable measure */
.sec > .hint, .sec > p.sub, #effect > .hint { max-width: 90ch; }
/* the flow heading is a step below the section heading (h2 18px) */
#effect .effview > h3 { font-size: 15px; font-weight: 600; margin: 14px 0 6px; }
#effect > .callout { max-width: 90ch; margin: 8px 0 12px; }
/* the raw rule spans the whole row, under the rule's own cells */
table.t tbody tr.rawrow td { border-top: 0; padding-top: 0; padding-bottom: 10px; }
table.t tr.rawrow .rawline { display: block; margin: 0; }
.rules-t .kebab { min-width: 32px; min-height: 32px; height: 32px; }
@media (max-width: 700px) {
  table.t tr:has(+ tr.rawrow) { border-bottom: 0; padding-bottom: 0; }
  table.t tr.rawrow { padding-top: 0; }
  table.t td.rawcell { display: block; }
}
