/* ============================================================================
   Hive MFA console + self-help design system.

   This is Automation Central's shell verbatim (see the decision log in
   features/adminSelfHelp/implementation-plan.md): the token set, surfaces,
   badges, .grid tables, drawer, cards and the phone restack rules are the
   CentralAdmin component classes, ported from the reviewed mockup
   features/adminSelfHelp/mockups/AdminSelfHelp_mockups.html. Below the
   "MFA additions" rule is only what Central has no equivalent for: the gold
   brand mark sizing and the /my self-help frame.

   Every rule is scoped under .hive-ui so Bootstrap's globals and this design
   system never fight; the mockup's @container phone rules become a plain
   @media block because the phone-frame preview was a mockup-only affordance.
   The console ships dark-only in V1 (decision log); keep colours in the
   token block so a light theme stays possible.
   ============================================================================ */

.hive-ui {
  --bg:#0c0d0f; --surface:#16181b; --surface2:#1f2226; --surface3:#2b2f35;
  /* --faint is brighter than Central's (#686e76): 10-11px labels must clear WCAG AA contrast
     on the surface tokens, proven by the axe browser tests. */
  --text:#f3f5f8; --dim:#9aa0a8; --faint:#828a94; --border:#2e3238;
  --green:#22C55E; --green-deep:#16A34A; --green-bg:rgba(34,197,94,.12);
  --amber:#F5A623; --amber-bright:#FACC15; --amber-bg:rgba(245,166,35,.12);
  --red:#F87171; --red-deep:#EF4444; --red-bg:rgba(248,113,113,.10);
  --blue:#60A5FA; --blue-bg:rgba(96,165,250,.12);
  --violet:#A78BFA; --violet-bg:rgba(167,139,250,.12);
  --gold:#FCB61E; --gold-bg:rgba(252,182,30,.12);   /* MFA brand mark only (features/branding) */
  /* Brand deviation from Central: primary actions and selection states take the gold ramp from
     features/branding (mirrors the app's Colors.xaml) instead of Central's blue. Ink text on
     brand gold for dark surfaces; the light self-help set below uses the deeper gold under white. */
  --accent:#FCB61E; --accent-bg:rgba(252,182,30,.14); --accent-text:#0D0F14;
  --shadow:0 18px 50px rgba(0,0,0,.55);
  --shglow:#14171b;
  color-scheme:dark;

  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg); color:var(--text); font-size:14px;
}
.hive-ui, .hive-ui *, .hive-ui *::before, .hive-ui *::after { box-sizing:border-box; }
.hive-ui code { color:var(--blue); font-family:ui-monospace,Menlo,Consolas,monospace; font-size:.92em; }
.hive-ui .grow { flex:1; min-width:0; }
/* Screen-reader-only text (the state-dot column header and similar). */
.hive-ui .vh, .hive-ui .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ---------- frame ---------- */
.hive-ui.hive-console { height:100vh; overflow:hidden; }
.hive-ui .app { display:flex; flex-direction:column; height:100%; }
.hive-ui .menubtn { display:none; width:36px; height:36px; border-radius:10px; border:1px solid var(--border);
  background:var(--surface2); color:var(--text); font-size:17px; cursor:pointer; flex:0 0 auto; }
.hive-ui .navscrim { display:none; }
.hive-ui .navhead { display:none; }
.hive-ui .topbar { display:flex; align-items:center; gap:14px; padding:0 20px; height:52px; flex:0 0 auto;
  background:var(--surface); border-bottom:1px solid var(--border); }
.hive-ui .brand { display:flex; align-items:center; gap:9px; font-size:15px; font-weight:800; letter-spacing:.5px;
  color:var(--text); text-decoration:none; }
.hive-ui .brand:hover { color:var(--text); text-decoration:none; }
.hive-ui .brand span { color:var(--dim); font-weight:500; }
.hive-ui .envbadge { font-size:10px; font-weight:800; letter-spacing:.8px; text-transform:uppercase;
  padding:3px 9px; border-radius:8px; color:var(--amber); background:var(--amber-bg);
  border:1px solid rgba(245,166,35,.4); }
.hive-ui .topbar .grow { flex:1; }
.hive-ui .userchip { display:flex; align-items:center; gap:9px; padding:5px 10px 5px 5px; border-radius:11px;
  border:1px solid var(--border); background:var(--surface2); cursor:pointer; color:var(--text); text-decoration:none; }
.hive-ui .userchip .av { width:26px; height:26px; border-radius:50%; background:var(--accent-bg); color:var(--accent);
  display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800; }
.hive-ui .userchip:hover { background:var(--surface3); color:var(--text); text-decoration:none; }
.hive-ui .userchip .n { font-size:12.5px; font-weight:650; }
.hive-ui .userchip .r { font-size:10px; color:var(--dim); }
.hive-ui .userchip .caret { color:var(--faint); font-size:10px; margin-left:2px; }
/* The chip's dropdown (Who am I / Logout) on the shared tokens; Havit renders Bootstrap's menu. */
.hive-ui .topbar .dropdown-menu { background:var(--surface2); border-color:var(--border); border-radius:11px; box-shadow:var(--shadow); }
.hive-ui .topbar .dropdown-item { color:var(--text); font-size:12.5px; }
.hive-ui .topbar .dropdown-item:hover, .hive-ui .topbar .dropdown-item:focus { background:var(--surface3); color:var(--text); }

.hive-ui .body { display:flex; flex:1; min-height:0; }
.hive-ui .sidenav { width:216px; flex:0 0 216px; background:var(--surface); border-right:1px solid var(--border);
  padding:14px 10px; overflow-y:auto; }
.hive-ui .navgroup { margin:14px 6px 6px; font-size:10.5px; text-transform:uppercase; letter-spacing:.9px; color:var(--faint); }
.hive-ui .navgroup:first-child { margin-top:2px; }
.hive-ui .navitem { display:flex; align-items:center; gap:10px; width:100%; text-align:left; padding:9px 11px;
  border-radius:10px; border:0; background:transparent; color:var(--dim); font-size:13px; font-weight:600;
  cursor:pointer; transition:.12s; margin-bottom:2px; text-decoration:none; }
.hive-ui .navitem:hover { background:var(--surface2); color:var(--text); }
.hive-ui .navitem.on, .hive-ui .navitem.active { background:var(--accent-bg); color:var(--accent); }
.hive-ui .navitem .ic { width:18px; text-align:center; font-size:14px; }
.hive-ui .navitem .cnt { margin-left:auto; font-size:10.5px; font-weight:700; color:var(--faint);
  background:var(--surface3); border-radius:7px; padding:1px 7px; }
.hive-ui .navitem.on .cnt, .hive-ui .navitem.active .cnt { color:var(--accent); background:var(--accent-bg); }

.hive-ui .content { flex:1; min-width:0; overflow-y:auto; padding:26px 30px 60px; }
.hive-ui .pagehead, .hive-ui .sectionhead { display:flex; align-items:flex-end; gap:14px; margin-bottom:18px; }
.hive-ui .sectionhead > :first-child { flex:1; margin:0; }
.hive-ui .actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:18px; }
.hive-ui .pagehead h2 { margin:0; font-size:21px; font-weight:800; }
.hive-ui .pagehead .sub { color:var(--dim); font-size:12.5px; padding-bottom:2px; }
.hive-ui .pagehead .grow { flex:1; }

/* ---------- shared bits ---------- */
.hive-ui .btn { padding:8px 14px; border-radius:10px; border:1px solid var(--border); background:var(--surface2);
  color:var(--text); font-size:12.5px; font-weight:650; cursor:pointer; transition:.12s; font-family:inherit; }
.hive-ui .btn:hover { background:var(--surface3); }
.hive-ui .btn:disabled { opacity:.4; cursor:not-allowed; }
.hive-ui .btn.primary { background:var(--accent); border-color:var(--accent); color:var(--accent-text); }
.hive-ui .btn.danger { color:var(--red); border-color:rgba(248,113,113,.45); background:var(--red-bg); }
.hive-ui .btn.sm { padding:5px 10px; font-size:11.5px; border-radius:8px; }
.hive-ui .btn.ghost { background:transparent; color:var(--dim); }
.hive-ui .btn.wide { width:100%; padding:11px 14px; font-size:13.5px; }
.hive-ui .search { padding:8px 12px; border-radius:10px; border:1px solid var(--border); background:var(--surface2);
  color:var(--text); font-size:12.5px; width:230px; }
.hive-ui .search::placeholder { color:var(--faint); }
.hive-ui select.search { width:auto; }

.hive-ui .badge { display:inline-block; font-size:10px; font-weight:750; letter-spacing:.4px; padding:2px 8px;
  border-radius:7px; border:1px solid var(--border); color:var(--dim); white-space:nowrap; }
.hive-ui .badge.blue { color:var(--blue); border-color:rgba(96,165,250,.5); background:var(--blue-bg); }
.hive-ui .badge.green { color:var(--green); border-color:rgba(34,197,94,.5); background:var(--green-bg); }
.hive-ui .badge.amber { color:var(--amber); border-color:rgba(245,166,35,.5); background:var(--amber-bg); }
.hive-ui .badge.red { color:var(--red); border-color:rgba(248,113,113,.5); background:var(--red-bg); }
.hive-ui .badge.violet { color:var(--violet); border-color:rgba(167,139,250,.5); background:var(--violet-bg); }

.hive-ui .dot { display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:8px; vertical-align:baseline; }
.hive-ui .dot.g { background:var(--green); box-shadow:0 0 6px rgba(34,197,94,.7); }
.hive-ui .dot.a { background:var(--amber); }
.hive-ui .dot.r { background:var(--red); }
.hive-ui .dot.x { background:var(--faint); }

.hive-ui table.grid { width:100%; border-collapse:collapse; background:var(--surface);
  border-style:hidden; box-shadow:0 0 0 1px var(--border); border-radius:14px; overflow:hidden; }
.hive-ui table.grid th { text-align:left; font-size:10.5px; text-transform:uppercase; letter-spacing:.7px;
  color:var(--faint); padding:11px 14px; border-bottom:1px solid var(--border); background:var(--surface); }
.hive-ui table.grid td { padding:12px 14px; border-bottom:1px solid var(--border); font-size:13px; background:var(--surface); }
.hive-ui table.grid tr.click { cursor:pointer; }
.hive-ui table.grid tr.click:hover td { background:var(--surface2); }
.hive-ui table.grid tr.dimmed td { background:var(--surface2); }
/* Virtualize emits empty tr spacers with an inline height. They are geometry, not row cards. */
.hive-ui table.grid tbody > tr:empty { border:0; padding:0; margin:0; box-shadow:none; background:transparent; }
.hive-ui .mono { font-family:ui-monospace,Menlo,Consolas,monospace; font-size:12px; color:var(--dim); }
.hive-ui .gridloading { display:flex; align-items:center; gap:10px; padding:18px 4px; color:var(--dim);
  font-size:13px; font-weight:600; }
.hive-ui .cellsub { font-size:11px; color:var(--faint); margin-top:2px; }

.hive-ui .cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:12px; }
.hive-ui .card { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:14px 16px; }
.hive-ui .card .k { font-size:11px; text-transform:uppercase; letter-spacing:.7px; color:var(--faint); margin-bottom:8px;
  display:flex; align-items:center; justify-content:space-between; }
.hive-ui .card .v { font-size:24px; font-weight:800; }
.hive-ui .card .v small { font-size:12px; color:var(--dim); font-weight:600; margin-left:6px; }
.hive-ui .card .d { font-size:11.5px; color:var(--dim); margin-top:4px; line-height:1.45; }

.hive-ui .panel { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:16px 18px; }
.hive-ui .panel h3 { margin:0 0 10px; font-size:13px; font-weight:750; letter-spacing:.2px; }
.hive-ui .panel h3 .hint { font-weight:500; color:var(--faint); font-size:11px; margin-left:8px; }

.hive-ui .listrow { display:flex; align-items:center; gap:12px; padding:10px 2px; border-bottom:1px solid var(--border); }
.hive-ui .listrow:last-child { border-bottom:0; }
.hive-ui .listrow .grow { flex:1; min-width:0; }
.hive-ui .listrow .t { font-size:13px; font-weight:600; }
.hive-ui .listrow .s { font-size:11.5px; color:var(--dim); margin-top:2px; line-height:1.4; }
.hive-ui .listrow .when { font-size:11px; color:var(--faint); white-space:nowrap; }

.hive-ui .toggle { width:40px; height:23px; border-radius:13px; background:var(--surface3); border:1px solid var(--border);
  position:relative; cursor:pointer; transition:.15s; flex:0 0 auto; display:inline-block; vertical-align:middle; }
.hive-ui .toggle.on { background:var(--green-deep); border-color:var(--green-deep); }
.hive-ui .toggle i { position:absolute; top:2px; left:2px; width:17px; height:17px; border-radius:50%; background:#fff; transition:.15s; }
.hive-ui .toggle.on i { left:19px; }

.hive-ui .tabs { display:flex; gap:6px; border-bottom:1px solid var(--border); margin-bottom:16px; }
.hive-ui .tabs button { padding:9px 14px; border:0; background:transparent; color:var(--dim); font-size:13px; font-weight:650;
  cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px; font-family:inherit; }
.hive-ui .tabs button.on { color:var(--accent); border-bottom-color:var(--accent); }

.hive-ui .scrim { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:60; }
.hive-ui .drawer { position:fixed; inset:0; margin:auto; width:min(760px,92vw); height:fit-content;
  max-height:min(86vh,940px); background:var(--surface); border:1px solid var(--border); border-radius:16px;
  z-index:61; overflow-y:auto; padding:22px 26px 32px; box-shadow:var(--shadow); }
/* Center without a transform: nested fixed OS pickers must stay relative to the viewport,
   above this scroll container, rather than becoming clipped children of the sheet. */
.hive-ui .drawer .dh { display:flex; align-items:center; gap:12px; position:sticky; top:-22px; z-index:3;
  background:var(--surface); margin:-22px -26px 10px; padding:22px 26px 10px; border-bottom:1px solid var(--border); }
.hive-ui .drawer .dh h3 { margin:0; font-size:17px; font-weight:800; flex:1; }
.hive-ui .drawer .close { width:30px; height:30px; border-radius:9px; border:1px solid var(--border); background:var(--surface2);
  color:var(--dim); cursor:pointer; font-size:14px; }
.hive-ui .drawer .durn { font-size:11px; color:var(--faint); font-family:ui-monospace,Menlo,monospace; word-break:break-all; margin-bottom:14px; }
.hive-ui .dsec { margin-top:18px; }
.hive-ui .dsec > .t { font-size:10.5px; text-transform:uppercase; letter-spacing:.8px; color:var(--faint); margin-bottom:9px; }
.hive-ui .field { margin-bottom:12px; }
.hive-ui .field label { display:block; font-size:11px; text-transform:uppercase; letter-spacing:.6px; color:var(--faint); margin-bottom:5px; }
.hive-ui .field input, .hive-ui .field select, .hive-ui .field textarea { width:100%; padding:9px 11px; border-radius:10px;
  border:1px solid var(--border); background:var(--surface2); color:var(--text); font-size:13px; font-family:inherit; }
.hive-ui .field textarea { resize:vertical; }
.hive-ui .frow { display:flex; gap:10px; }
.hive-ui .frow .field { flex:1; }
.hive-ui .frow .field { min-width:0; }
.hive-ui .kv { display:flex; justify-content:space-between; gap:12px; padding:7px 0; font-size:12.5px; border-bottom:1px dashed var(--border); }
.hive-ui .kv:last-child { border-bottom:0; }
.hive-ui .kv .k { color:var(--faint); flex:0 0 auto; }
.hive-ui .kv .v { color:var(--text); text-align:right; word-break:break-all; }
.hive-ui .chips { display:flex; gap:6px; flex-wrap:wrap; }
.hive-ui .chipx { display:inline-flex; align-items:center; gap:6px; padding:5px 9px; border-radius:9px; border:1px solid var(--border);
  background:var(--surface2); font-size:12px; font-family:ui-monospace,Menlo,monospace; }
.hive-ui .chipx b { color:var(--faint); cursor:pointer; font-weight:400; }
.hive-ui .chipx.pick-on { border-color:color-mix(in srgb, var(--accent) 50%, transparent);
  background:var(--accent-bg); color:var(--accent); cursor:pointer; }
.hive-ui .chipx.pick-off { cursor:pointer; color:var(--dim); }
/* The subject-kind chips ("Authenticated as") carry a one-line description under the label, as the approved mockup lays them out. */
.hive-ui .kind-chips .chipx { flex-direction:column; align-items:flex-start; gap:2px; text-align:left; }
.hive-ui .kind-chips .chipdesc { font-size:11px; line-height:1.4; color:var(--dim); font-weight:400; }
.hive-ui .seg { display:inline-flex; gap:4px; background:var(--surface2); border:1px solid var(--border); border-radius:11px; padding:3px; }
.hive-ui .seg button { padding:6px 12px; border-radius:8px; border:0; background:transparent; color:var(--dim);
  font-size:12px; font-weight:650; cursor:pointer; font-family:inherit; }
.hive-ui .seg button.on { background:var(--accent-bg); color:var(--accent); box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent); }
.hive-ui .seg.small button { padding:4px 9px; font-size:11px; }
.hive-ui .seg button.on.allow { background:var(--green-bg); color:var(--green); box-shadow:inset 0 0 0 1px rgba(34,197,94,.5); }
.hive-ui .seg button.on.deny { background:var(--red-bg); color:var(--red); box-shadow:inset 0 0 0 1px rgba(248,113,113,.5); }
.hive-ui .dangerzone { border:1px solid rgba(248,113,113,.35); border-radius:12px; padding:12px 14px; margin-top:20px; }
.hive-ui .dangerzone .t { color:var(--red); font-size:11px; font-weight:800; letter-spacing:.7px; text-transform:uppercase; margin-bottom:8px; }
.hive-ui .dangerzone .row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:7px 0; }
.hive-ui .dangerzone .d { font-size:11.5px; color:var(--dim); line-height:1.4; }

.hive-ui .checkrow { display:flex; align-items:center; gap:10px; padding:7px 2px; font-size:13px; cursor:pointer; }
.hive-ui .checkrow input { accent-color:var(--accent); width:15px; height:15px; }
.hive-ui .checkrow .d { color:var(--faint); font-size:11px; margin-left:auto; text-align:right; }

.hive-ui .note { font-size:11.5px; color:var(--dim); line-height:1.5; background:var(--surface); border:1px solid var(--border);
  border-left:3px solid var(--amber); border-radius:9px; padding:10px 12px; margin:0 0 14px; }
.hive-ui .note b { color:var(--amber-bright); }
.hive-ui .note.blue { border-left-color:var(--blue); }
.hive-ui .note.blue b { color:var(--blue); }
.hive-ui .note.red { border-left-color:var(--red); }
.hive-ui .note.red b { color:var(--red); }
.hive-ui .note.green { border-left-color:var(--green); }
.hive-ui .note.green b { color:var(--green); }

.hive-ui .flash { position:fixed; bottom:22px; left:50%; transform:translateX(-50%); background:var(--surface3);
  border:1px solid var(--border); color:var(--text); padding:10px 18px; border-radius:12px; font-size:13px;
  box-shadow:var(--shadow); z-index:80; }

.hive-ui .masked { display:flex; align-items:center; gap:8px; }
.hive-ui .masked .val { flex:1; font-family:ui-monospace,Menlo,monospace; font-size:12px; color:var(--dim);
  background:var(--surface2); border:1px solid var(--border); border-radius:9px; padding:8px 11px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.hive-ui .settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; align-items:start; }
@media (max-width:1100px) { .hive-ui .settings-grid { grid-template-columns:1fr; } }
.hive-ui .two-col { display:grid; grid-template-columns:1fr 1fr; gap:14px; align-items:start; }
.hive-ui .two-col.wide-l { grid-template-columns:1.1fr .9fr; }

/* attempt timeline (authentication request drawer) */
.hive-ui .tl { border-left:2px solid var(--border); margin-left:5px; padding-left:16px; }
.hive-ui .tl .ev { position:relative; padding:8px 0; font-size:12.5px; }
.hive-ui .tl .ev::before { content:""; position:absolute; left:-22px; top:13px; width:9px; height:9px; border-radius:50%;
  background:var(--surface3); border:2px solid var(--surface); }
.hive-ui .tl .ev.ok::before { background:var(--green); }
.hive-ui .tl .ev.bad::before { background:var(--red); }
.hive-ui .tl .ev .s { color:var(--faint); font-size:11px; margin-top:2px; line-height:1.45; }

/* ======================= MFA additions (no Central equivalent) ======================= */

/* gold hive mark - the committed asset wwwroot/brand/mark-gold.svg (features/branding) */
.hive-ui .mark { width:22px; height:22px; flex:0 0 auto; display:block; }

/* self-help (/my): a centered frame at every width, like today's SelfHelpLayout */
.hive-ui.hive-selfhelp { min-height:100vh; display:flex; flex-direction:column; }
.hive-ui.hive-selfhelp .app { flex:1; min-height:0; }
.hive-ui .shwrap { flex:1; min-height:0; overflow-y:auto; display:flex; justify-content:center;
  padding:26px 18px 70px; background:radial-gradient(900px 420px at 50% -20%, var(--shglow) 0%, var(--bg) 70%); }
.hive-ui .shframe { width:100%; max-width:470px; }
.hive-ui .shcard { background:var(--surface); border:1px solid var(--border); border-radius:16px;
  padding:16px 18px 14px; box-shadow:var(--shadow); }
.hive-ui .shhead { display:flex; align-items:center; gap:11px; padding-bottom:12px; border-bottom:1px solid var(--border); }
.hive-ui .shhead .back { width:32px; height:32px; border-radius:10px; border:1px solid var(--border);
  background:var(--surface2); color:var(--dim); cursor:pointer; font-size:15px; flex:0 0 auto; font-family:inherit;
  display:flex; align-items:center; justify-content:center; text-decoration:none; }
.hive-ui .shhead h2 { margin:0; font-size:17px; font-weight:800; }
.hive-ui .shhead .upn { font-size:11.5px; color:var(--faint); margin-top:2px; word-break:break-all; }
.hive-ui .optionlist { display:flex; flex-direction:column; }
.hive-ui .option { display:flex; align-items:center; gap:12px; width:100%; text-align:left; padding:13px 2px;
  background:transparent; border:0; border-bottom:1px solid var(--border); color:var(--text);
  font-size:14px; font-family:inherit; cursor:pointer; text-decoration:none; }
.hive-ui .option:hover { background:var(--surface2); }
.hive-ui .option .oi { width:34px; height:34px; border-radius:11px; flex:0 0 auto; display:flex; align-items:center;
  justify-content:center; background:var(--surface2); font-size:16px; }
.hive-ui .option > span:nth-child(2) { flex:1; min-width:0; }
.hive-ui .option .ot { display:block; font-weight:650; }
.hive-ui .option .os { display:block; font-size:11.5px; color:var(--faint); margin-top:2px; line-height:1.4; }
.hive-ui .option .chev { margin-left:auto; color:var(--faint); font-size:13px; }
.hive-ui .option.quiet .ot { color:var(--dim); font-weight:600; }

.hive-ui .warnbox { display:flex; gap:12px; border:1px solid rgba(248,113,113,.42); background:var(--red-bg);
  border-radius:12px; padding:12px 13px; font-size:12.5px; line-height:1.5; }
.hive-ui .warnbox .wi { font-size:20px; flex:0 0 auto; }
.hive-ui .warnbox b { color:var(--red); }
.hive-ui .infobox { display:flex; gap:12px; border:1px solid var(--border); background:var(--surface2);
  border-radius:12px; padding:12px 13px; font-size:12.5px; line-height:1.5; color:var(--dim); }
.hive-ui .infobox .wi { font-size:19px; flex:0 0 auto; }

.hive-ui .codebox { display:flex; align-items:center; justify-content:space-between; gap:12px; background:var(--surface2);
  border:1px solid var(--border); border-radius:12px; padding:11px 14px; margin-top:9px; }
.hive-ui .codebox .cl { font-size:10px; text-transform:uppercase; letter-spacing:.9px; color:var(--faint); }
.hive-ui .codebox .cv { font-family:ui-monospace,Menlo,Consolas,monospace; font-size:19px; font-weight:750;
  letter-spacing:2.5px; margin-top:3px; }
.hive-ui .qrwrap { text-align:center; margin:14px 0 4px; }
.hive-ui .qr { display:inline-block; background:#fff; border-radius:12px; padding:10px; line-height:0; }
.hive-ui .qrcap { font-size:11px; color:var(--faint); margin-top:7px; }

.hive-ui .devcard { display:flex; align-items:center; gap:12px; border:1px solid var(--border); background:var(--surface2);
  border-radius:13px; padding:12px 13px; margin-top:10px; }
.hive-ui .devcard .di { width:36px; height:36px; border-radius:11px; background:var(--surface3); display:flex;
  align-items:center; justify-content:center; font-size:17px; flex:0 0 auto; }
.hive-ui .devcard .dn { font-weight:650; font-size:13.5px; }
.hive-ui .devcard .ds { font-size:11.5px; color:var(--faint); margin-top:3px; line-height:1.45; }

.hive-ui .confirm { position:absolute; inset:0; z-index:75; display:flex; align-items:center; justify-content:center;
  padding:22px; background:rgba(0,0,0,.6); }
.hive-ui .confirm .box { width:100%; max-width:360px; background:var(--surface); border:1px solid var(--border);
  border-radius:15px; padding:18px; box-shadow:var(--shadow); }
.hive-ui .confirm h4 { margin:0 0 8px; font-size:15px; font-weight:800; }
.hive-ui .confirm p { margin:0 0 16px; font-size:12.5px; color:var(--dim); line-height:1.55; }
.hive-ui .confirm .row { display:flex; gap:10px; justify-content:flex-end; }

.hive-ui .steps { display:flex; gap:8px; margin:2px 0 14px; }
.hive-ui .steps .st { flex:1; height:4px; border-radius:3px; background:var(--surface3); }
.hive-ui .steps .st.on { background:var(--accent); }

/* ======================= THEME: self-help follows the device =======================
   The console is dark-only in V1 (decision log); self-help follows prefers-color-scheme like the
   refreshed authentication pages. Light is the .hive-selfhelp default so a phone in daylight gets
   a readable frame; the dark media block below restores the shared dark set. */
.hive-ui.hive-selfhelp {
  --bg:#eef0f4; --surface:#ffffff; --surface2:#f3f4f8; --surface3:#e5e8ee;
  --text:#191c22; --dim:#5b6270; --faint:#656d7a; --border:#d9dde4;
  /* Accents are darker than their dark-theme cousins: 10px badge/emphasis text on the light
     surfaces must clear WCAG AA, proven by the axe browser tests. */
  --green:#166534; --green-deep:#14532D; --green-bg:rgba(22,101,52,.10);
  --amber:#854D0E; --amber-bright:#713F12; --amber-bg:rgba(133,77,14,.10);
  --red:#B91C1C; --red-deep:#991B1B; --red-bg:rgba(185,28,28,.08);
  --blue:#1D4ED8; --blue-bg:rgba(29,78,216,.10);
  --violet:#6D28D9; --violet-bg:rgba(109,40,217,.10);
  /* Deeper than the dark theme's brand gold for the same reason as the accents above: the
     accent is also drawn as text on its own tint (the user-chip avatar), where #916710 measured
     4.3:1 against the blended background and failed AA at 12px. */
  --accent:#7A5606; --accent-bg:rgba(122,86,6,.12); --accent-text:#ffffff;
  --shadow:0 18px 45px rgba(15,23,42,.14);
  --shglow:#e6e9f0;
  color-scheme:light;
}
@media (prefers-color-scheme: dark) {
  .hive-ui.hive-selfhelp {
    --bg:#0c0d0f; --surface:#16181b; --surface2:#1f2226; --surface3:#2b2f35;
    --text:#f3f5f8; --dim:#9aa0a8; --faint:#686e76; --border:#2e3238;
    --green:#22C55E; --green-deep:#16A34A; --green-bg:rgba(34,197,94,.12);
    --amber:#F5A623; --amber-bright:#FACC15; --amber-bg:rgba(245,166,35,.12);
    --red:#F87171; --red-deep:#EF4444; --red-bg:rgba(248,113,113,.10);
    --blue:#60A5FA; --blue-bg:rgba(96,165,250,.12);
    --violet:#A78BFA; --violet-bg:rgba(167,139,250,.12);
    --accent:#FCB61E; --accent-bg:rgba(252,182,30,.14); --accent-text:#0D0F14;
    --shadow:0 18px 50px rgba(0,0,0,.55);
    --shglow:#14171b;
    --faint:#828a94;
    color-scheme:dark;
  }
}

/* ======================= PHONE / NARROW (adaptive) =======================
   Central's block, verbatim, plus the self-help frame rules at the end. The
   mockup keyed these off a @container so its phone-frame preview worked; the
   real pages key off the viewport. */
@media (max-width:720px) {
  .hive-ui .topbar { padding:0 12px; gap:10px; }
  .hive-ui .brand { font-size:14px; }
  .hive-ui .brand span { display:none; }
  .hive-ui .menubtn { display:inline-flex; align-items:center; justify-content:center; }
  .hive-ui .userchip { padding:3px; gap:0; border-radius:50%; }
  .hive-ui .userchip > span:not(.av) { display:none; }

  .hive-ui .body { position:relative; }
  .hive-ui .sidenav { position:absolute; top:0; left:0; bottom:0; width:272px; flex:none; z-index:71;
    transform:translateX(-104%); transition:transform .22s ease; box-shadow:var(--shadow);
    border-right:1px solid var(--border); padding-top:10px; }
  .hive-ui .sidenav.open { transform:none; }
  .hive-ui .navscrim { display:block; position:absolute; inset:0; background:rgba(0,0,0,.55); z-index:70;
    opacity:0; pointer-events:none; transition:opacity .2s; }
  .hive-ui .navscrim.open { opacity:1; pointer-events:auto; }
  .hive-ui .navhead { display:flex; align-items:center; gap:10px; padding:4px 8px 10px; margin-bottom:6px;
    border-bottom:1px solid var(--border); font-size:13px; font-weight:800; }
  .hive-ui .navhead .close { margin-left:auto; width:28px; height:28px; border-radius:8px; border:1px solid var(--border);
    background:var(--surface2); color:var(--dim); cursor:pointer; }
  .hive-ui .navitem { padding:12px 12px; font-size:14px; }

  .hive-ui .content { padding:16px 14px 90px; }
  .hive-ui .pagehead, .hive-ui .sectionhead { display:grid; grid-template-columns:1fr; gap:8px; align-items:stretch; margin-bottom:14px; }
  .hive-ui .pagehead h2 { font-size:19px; }
  .hive-ui .pagehead .sub { padding:0; margin-top:-4px; }
  .hive-ui .pagehead .grow { display:none; }
  .hive-ui .search, .hive-ui select.search { width:100%; }
  .hive-ui .pagehead .btn { width:100%; padding:10px 14px; }
  .hive-ui .tabs { overflow-x:auto; scrollbar-width:none; }
  .hive-ui .tabs button { white-space:nowrap; }

  .hive-ui .cards { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; }
  .hive-ui .card { padding:12px 13px; min-width:0; }
  .hive-ui .card .v, .hive-ui .card .d, .hive-ui .panel, .hive-ui .two-col > * { overflow-wrap:anywhere; min-width:0; }
  .hive-ui .card .v { font-size:20px; }
  .hive-ui .card .v small { display:block; margin:2px 0 0; }
  .hive-ui .two-col, .hive-ui .two-col.wide-l { grid-template-columns:1fr; }
  .hive-ui .settings-grid { grid-template-columns:1fr; }
  .hive-ui .frow { flex-direction:column; gap:0; }
  .hive-ui .kv { flex-wrap:wrap; }
  .hive-ui .kv .v { text-align:left; }
  .hive-ui .listrow { flex-wrap:wrap; }
  .hive-ui .listrow .when { flex:0 0 100%; padding-left:24px; margin-top:-4px; }
  .hive-ui .dangerzone .row { flex-direction:column; align-items:stretch; }
  .hive-ui .dangerzone .row .btn { align-self:flex-end; }

  /* tables -> stacked row cards */
  .hive-ui table.grid, .hive-ui table.grid tbody, .hive-ui table.grid tr, .hive-ui table.grid td { display:block; }
  .hive-ui table.grid { box-shadow:none; border:0; background:transparent; }
  .hive-ui table.grid thead { display:none; }
  .hive-ui table.grid tr { background:var(--surface); border:1px solid var(--border); border-radius:13px;
    padding:11px 13px 9px; margin-bottom:10px; }
  .hive-ui table.grid tr.click:hover td { background:transparent; }
  .hive-ui table.grid td { padding:3px 0; border:0; background:transparent; }
  .hive-ui table.grid td.hide-p { display:none; }
  .hive-ui table.grid td.pri { font-size:14px; padding-bottom:6px; }
  .hive-ui table.grid td.dotc { display:inline-block; width:18px; vertical-align:top; padding-top:8px; }
  .hive-ui table.grid td.dotc + td.pri { display:inline-block; width:calc(100% - 20px); }
  .hive-ui table.grid td[data-l] { display:flex; align-items:center; gap:10px; min-height:26px; }
  .hive-ui table.grid td[data-l]::before { content:attr(data-l); flex:0 0 84px; font-size:10px; text-transform:uppercase;
    letter-spacing:.7px; color:var(--faint); }
  .hive-ui table.grid td[data-l] .cellsub { margin:0 0 0 6px; display:inline; }
  .hive-ui table.grid td.right { text-align:left !important; padding-top:8px; }
  .hive-ui table.grid td.right .btn { width:100%; }

  /* Centered sheet -> full-width bottom sheet. Fixed positioning follows the real viewport. */
  .hive-ui .drawer { top:56px; left:0; right:0; bottom:0; margin:0; width:auto; height:auto; max-width:none;
    max-height:none; border-width:1px 0 0; border-radius:20px 20px 0 0; padding:26px 16px 40px; }
  .hive-ui .drawer .dh { position:static; background:transparent; border-bottom:0; margin:0 0 6px; padding:0; }
  .hive-ui .drawer::before { content:""; position:absolute; top:9px; left:50%; transform:translateX(-50%); width:42px; height:5px;
    border-radius:3px; background:var(--surface3); }
  .hive-ui .drawer .dh h3 { font-size:16px; }
  .hive-ui .flash { bottom:18px; width:max-content; max-width:88%; text-align:center; }

  /* self-help: the frame already is the phone layout - just tighten it */
  .hive-ui .shwrap { padding:14px 12px 70px; }
  .hive-ui .shcard { border-radius:14px; padding:14px 15px 12px; }
  .hive-ui .devcard { flex-wrap:wrap; }
}

/* create/edit drawer additions (authenticator create flow) */
.hive-ui .fielderr { color:var(--red); font-size:11.5px; margin-top:5px; }
.hive-ui .fieldhint { color:var(--dim); font-size:11.5px; margin-top:5px; line-height:1.45; }
.hive-ui .chipx .chipdel { border:0; background:transparent; color:var(--dim); cursor:pointer; padding:0 2px;
  font-size:11px; font-family:inherit; line-height:1; }
.hive-ui .chipx .chipdel:hover { color:var(--text); }
.hive-ui .chip-add { margin-top:8px; }
.hive-ui .masked .val.wrap { white-space:normal; word-break:break-all; overflow:visible; text-overflow:clip; color:var(--text); }
.hive-ui .field .seg { margin-bottom:4px; }
.hive-ui .cred { margin-top:14px; }
.hive-ui .devcard .dn { display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.hive-ui .devcard .rename { border:0; background:transparent; color:var(--dim); cursor:pointer; font-size:14px;
  padding:0 5px; line-height:1; font-family:inherit; border-radius:6px; }
.hive-ui .devcard .rename:hover { color:var(--text); background:var(--surface3); }
.hive-ui .devcard .masked .val { color:var(--text); }

/* Keep policy choices readable and separately clickable at phone widths. */
.hive-ui .policy-section-title { font-size:17px; margin:0 0 12px; }
.hive-ui .policy-rules-heading { margin-top:22px; margin-bottom:12px; }
.hive-ui .policy-rules-heading h3 { font-size:17px; margin:0; }
.hive-ui .policy-tester { margin-top:14px; padding:16px 18px; border:1px solid var(--border);
  border-radius:14px; background:var(--surface); }
.hive-ui .policy-tester > summary { cursor:pointer; font-size:13px; font-weight:650; }
.hive-ui .policy-tester[open] > summary { margin-bottom:14px; }
.hive-ui .policy-order { width:96px; }
.hive-ui .policy-name { border:0; background:transparent; color:inherit; font:inherit; font-weight:650;
  text-align:left; padding:0; cursor:pointer; }
.hive-ui .policy-name:focus-visible { outline:2px solid var(--blue); outline-offset:4px; border-radius:3px; }
.hive-ui .policy-name:disabled { cursor:default; }
.hive-ui .policy-scenarios { display:flex; flex-wrap:wrap; gap:4px; min-width:0; }
.hive-ui .policy-scenarios .badge { white-space:normal; overflow-wrap:anywhere; }
.hive-ui .policy-conditions { color:var(--dim); font-size:12px; }
.hive-ui .policy-set-row td, .hive-ui .policy-rule-row td { overflow-wrap:anywhere; }
.hive-ui table.grid tr.selected td { background:var(--surface2); }
.hive-ui table.grid tr.selected td:first-child { box-shadow:inset 3px 0 0 var(--blue); }
.hive-ui table.grid tr.dragging td { opacity:.4; }
.hive-ui table.grid tr.dropping td { box-shadow:inset 0 2px 0 var(--accent); }
.hive-ui .handle { cursor:grab; color:var(--faint); font-size:15px; user-select:none; line-height:1; }
.hive-ui .handle:active { cursor:grabbing; }
.hive-ui .ordc { white-space:nowrap; }
.hive-ui .ord { display:inline-flex; align-items:center; justify-content:center; min-width:22px; height:22px;
  padding:0 5px; border-radius:7px; background:var(--surface3); color:var(--dim); font-size:11px; font-weight:750; }
.hive-ui .reorder { display:inline-flex; flex-direction:column; gap:2px; vertical-align:middle; }
.hive-ui .reorder button { width:20px; height:14px; padding:0; border:1px solid var(--border); background:var(--surface2);
  border-radius:4px; color:var(--dim); font-size:8px; line-height:1; cursor:pointer; }
.hive-ui .reorder button:disabled { opacity:.3; cursor:not-allowed; }
.hive-ui .toggle[aria-disabled=true] { opacity:.5; cursor:default; }
@media (max-width:720px) {
  .hive-ui table.grid tr.selected { border-color:var(--blue); box-shadow:inset 3px 0 0 var(--blue); }
  .hive-ui table.grid tr.selected td, .hive-ui table.grid tr.selected td:first-child { background:transparent; box-shadow:none; }
  .hive-ui table.grid tr.policy-set-row.dimmed td, .hive-ui table.grid tr.policy-rule-row.dimmed td { background:transparent; }
  .hive-ui table.grid td.ordc { display:inline-block; width:76px; vertical-align:top; padding-top:4px; }
  .hive-ui table.grid td.ordc + td.pri { display:inline-block; width:calc(100% - 80px); }
  .hive-ui table.grid .endpoint-row td.dotc + td.pri { width:calc(100% - 26px); }
  .hive-ui table.grid .policy-set-row td[data-l], .hive-ui table.grid .policy-rule-row td[data-l] { align-items:flex-start; }
}
.hive-ui .policy-choices { display:flex; flex-wrap:wrap; gap:8px 14px; margin:14px 0; }
.hive-ui .policy-choices legend { width:100%; font-size:13px; font-weight:600; margin-bottom:8px; }
.hive-ui .policy-choices label { display:inline-flex; align-items:center; gap:6px; }

/* Shared ISE editor vocabulary: group suggestions, compact attribute rows and decision traces. */
.hive-ui .pick { position:relative; }
.hive-ui .pickmenu { position:absolute; z-index:9; top:calc(100% + 4px); left:0; right:0; max-height:196px; overflow-y:auto;
  background:var(--surface2); border:1px solid var(--border); border-radius:11px; box-shadow:var(--shadow); }
.hive-ui .pickmenu button { display:block; width:100%; text-align:left; padding:8px 11px; background:transparent;
  border:0; color:var(--text); font-size:12.5px; cursor:pointer; font-family:inherit; border-bottom:1px solid var(--border); }
.hive-ui .pickmenu button:last-child { border-bottom:0; }
.hive-ui .pickmenu button:hover, .hive-ui .pickmenu button[aria-selected=true] { background:var(--surface3); }
.hive-ui .pickmenu button:disabled { opacity:.4; cursor:not-allowed; }
.hive-ui .pickmenu .sid { display:block; font-family:ui-monospace,Menlo,monospace; font-size:10px;
  color:var(--faint); margin-top:3px; overflow-wrap:anywhere; }
.hive-ui .pickmenu .empty { padding:10px 11px; font-size:12px; color:var(--faint); }
.hive-ui .grouprow { display:flex; align-items:center; gap:10px; padding:7px 0; border-bottom:1px dashed var(--border); }
.hive-ui .grouprow:last-child { border-bottom:0; }
.hive-ui .grouprow .n { font-size:12.5px; font-weight:600; }
.hive-ui .grouprow .sid { font-family:ui-monospace,Menlo,monospace; font-size:10.5px; color:var(--faint);
  margin-top:2px; word-break:break-all; }
.hive-ui .erow { display:flex; gap:8px; align-items:center; margin-bottom:8px; }
.hive-ui .erow .in { flex:1; min-width:0; padding:8px 10px; border-radius:9px; border:1px solid var(--border);
  background:var(--surface2); color:var(--text); font-size:12.5px; font-family:ui-monospace,Menlo,Consolas,monospace; }
.hive-ui .erow .in.k { flex:0 0 190px; }
.hive-ui .erow .x { width:26px; height:26px; flex:0 0 auto; border-radius:8px; border:1px solid var(--border);
  background:var(--surface2); color:var(--faint); cursor:pointer; font-size:11px; font-family:inherit; }
.hive-ui .erow.derived .in { color:var(--dim); }
.hive-ui .hchk { display:flex; align-items:flex-start; gap:10px; padding:8px 2px; border-bottom:1px dashed var(--border); }
.hive-ui .hchk:last-child { border-bottom:0; }
.hive-ui .hchk .t { font-size:12.5px; font-weight:600; }
.hive-ui .hchk .s { font-size:11px; color:var(--faint); margin-top:2px; line-height:1.45; }
/* A block that is itself a link (the Endpoints sheet's last activity, 2026-09-28): the whole row opens what it names. */
.hive-ui a.hchk { color:inherit; text-decoration:none; }
.hive-ui .hchk.click { cursor:pointer; border-radius:8px; margin:0 -6px; padding-left:8px; padding-right:8px; }
.hive-ui .hchk.click:hover, .hive-ui .hchk.click:focus-visible { background:var(--surface2); }
.hive-ui .hchk .chev { margin-left:auto; align-self:center; flex:0 0 auto; color:var(--faint); font-size:15px; }
.hive-ui .verdict { display:flex; align-items:center; gap:12px; border:1px solid var(--border); background:var(--surface2);
  border-radius:12px; padding:12px 14px; margin-bottom:12px; }
.hive-ui .verdict.allow { border-color:rgba(34,197,94,.45); background:var(--green-bg); }
.hive-ui .verdict.deny { border-color:rgba(248,113,113,.45); background:var(--red-bg); }
.hive-ui .verdict .big { font-size:15px; font-weight:800; }
.hive-ui .verdict .sub2 { font-size:11.5px; color:var(--dim); margin-top:3px; line-height:1.45; }
.hive-ui .trace { font-size:12px; }
.hive-ui .trace .tr { display:flex; gap:10px; padding:6px 2px; border-bottom:1px dashed var(--border); }
.hive-ui .trace .tr:last-child { border-bottom:0; }
.hive-ui .trace .tr .why { color:var(--faint); font-size:11px; margin-top:2px; }
.hive-ui .trace .tr.hit .nm { color:var(--green); font-weight:700; }
.hive-ui .trace .tr.skip, .hive-ui .trace .tr.after { color:var(--dim); }
.hive-ui .badge.new { margin-left:6px; color:var(--green); border-color:rgba(34,197,94,.5); background:var(--green-bg); }
@media (max-width:720px) {
  .hive-ui .seg { flex-wrap:wrap; }
  .hive-ui .erow { flex-wrap:wrap; }
  .hive-ui .erow .in, .hive-ui .erow .in.k { flex:1 1 100%; }
  .hive-ui .erow .x { margin-left:auto; }
  .hive-ui .verdict { flex-wrap:wrap; }
}
/* OS certificate picker (features/iseReplacement/mockups): a dialog above the drawer that opened it. */
.hive-ui .pickscrim { position:fixed; inset:0; background:rgba(0,0,0,.62); z-index:70; }
.hive-ui .picker { position:fixed; z-index:71; top:5vh; left:50%; transform:translateX(-50%); width:1040px; max-width:94vw; height:90vh;
  background:var(--surface); border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow); display:flex;
  flex-direction:column; overflow:hidden; }
.hive-ui .picker .grow { flex:1; min-width:0; }
.hive-ui .picker .ph { display:flex; align-items:center; gap:12px; padding:16px 20px 12px; border-bottom:1px solid var(--border); }
.hive-ui .picker .ph h3 { margin:0; font-size:16px; font-weight:800; }
.hive-ui .picker .ph .where { font-size:11px; color:var(--faint); font-family:ui-monospace,Menlo,monospace; overflow-wrap:anywhere; }
.hive-ui .picker .close { width:30px; height:30px; border-radius:9px; border:1px solid var(--border); background:var(--surface2);
  color:var(--dim); cursor:pointer; font-size:14px; }
.hive-ui .picker .pbar { display:flex; gap:8px; flex-wrap:wrap; align-items:center; padding:10px 20px; border-bottom:1px solid var(--border); }
.hive-ui .picker .pbar input, .hive-ui .picker .pbar select, .hive-ui .picker .rulebox select { padding:7px 10px; border-radius:9px;
  border:1px solid var(--border); background:var(--surface2); color:var(--text); font-size:12.5px; font-family:inherit; }
.hive-ui .picker .pbar input { flex:1 1 220px; min-width:0; }
.hive-ui .picker .pbody { flex:1; min-height:0; display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); }
.hive-ui .picker .plist { overflow-y:auto; border-right:1px solid var(--border); }
.hive-ui .picker .pdetail { overflow-y:auto; padding:14px 18px 20px; }
.hive-ui .picker .pfoot { display:flex; align-items:center; gap:10px; padding:12px 20px; border-top:1px solid var(--border); font-size:11.5px; color:var(--dim); }
.hive-ui .picker .pstate { flex:1; padding:46px 30px; text-align:center; color:var(--dim); font-size:13px; line-height:1.6; }
.hive-ui .picker .pstate b { display:block; color:var(--text); font-size:14.5px; margin-bottom:6px; }
.hive-ui .certrow { display:flex; gap:10px; align-items:flex-start; padding:10px 16px; border-bottom:1px solid var(--border); cursor:pointer; }
.hive-ui .certrow:hover { background:var(--surface2); }
.hive-ui .certrow.cur { background:var(--blue-bg); box-shadow:inset 3px 0 0 var(--blue); }
.hive-ui .certrow.off { color:var(--dim); }
.hive-ui .certrow .n { font-size:12.5px; font-weight:650; overflow-wrap:anywhere; }
.hive-ui .certrow .m { font-size:11px; color:var(--faint); margin-top:2px; overflow-wrap:anywhere; }
.hive-ui .certrow .why { font-size:11px; color:var(--red); margin-top:3px; }
.hive-ui .certrow input { margin-top:3px; }
.hive-ui .rulebox { border:1px solid var(--border); background:var(--surface2); border-radius:12px; padding:12px 14px; margin-top:12px; }
.hive-ui .rulebox .rt { font-size:12.5px; font-weight:700; margin-bottom:8px; overflow-wrap:anywhere; }
.hive-ui .mini { width:100%; border-collapse:collapse; font-size:11.5px; margin-top:8px; }
.hive-ui .mini th { text-align:left; color:var(--faint); font-size:10px; text-transform:uppercase; letter-spacing:.7px; padding:4px 6px; }
.hive-ui .mini td { padding:6px; border-top:1px solid var(--border); vertical-align:top; overflow-wrap:anywhere; }
.hive-ui .mini td.m { font-family:ui-monospace,Menlo,Consolas,monospace; color:var(--dim); }
.hive-ui .mini td.m.ok { color:var(--green); }
.hive-ui .mini td.m.bad { color:var(--red); }
@media (max-width:720px) {
  .hive-ui .picker { top:40px; left:0; right:0; bottom:0; transform:none; width:auto; max-width:none; height:auto;
    border-radius:20px 20px 0 0; border-width:1px 0 0; }
  .hive-ui .picker .pbody { grid-template-columns:1fr; grid-template-rows:minmax(0,1fr) minmax(0,1fr); }
  .hive-ui .picker .plist { border-right:0; border-bottom:1px solid var(--border); }
  .hive-ui .picker .pfoot { flex-wrap:wrap; }
}

/* W5a */
.hive-ui .policy-back, .hive-ui .policy-rules-error { display:none; }
.hive-ui .grouprow .grow { min-width:0; }
.hive-ui .policy-group-picker > .hint { font-size:11px; color:var(--faint); font-weight:400; margin-bottom:10px; }
.hive-ui .policy-group-picker .seg { max-width:100%; flex-wrap:wrap; }
.hive-ui .policy-group-picker .seg button { min-width:0; overflow-wrap:anywhere; }
.hive-ui .pickmenu[hidden] { display:none; }
.hive-ui .policy-group-picker .pickmenu { scroll-margin-block:12px; }
.hive-ui .policy-check input[type=checkbox], .hive-ui .policy-choices input[type=checkbox] { width:auto; }
.hive-ui .field.policy-choices { border:0; padding:0; }
.hive-ui .field.policy-choices label { margin:0; font-weight:400; }
.hive-ui .policy-page .duplicate-rule { white-space:nowrap; }
@media (max-width:720px) {
  .hive-ui .policy-page:not(.show-rules) .policy-rules-view,
  .hive-ui .policy-page:not(.show-rules) > .policy-tester,
  .hive-ui .policy-page.show-rules .policy-sets-view { display:none; }
  .hive-ui .policy-page.show-rules .policy-back { display:inline-flex; margin-bottom:12px; }
  .hive-ui .policy-page.show-rules .policy-rules-error { display:block; }
  .hive-ui .policy-rules-heading { margin-top:0; }
}

/* W6 */
.hive-ui .live-list-controls { margin: 0 0 12px; gap: 10px; }
.hive-ui .live-list-controls .sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hive-ui .live-list-new { margin-left: 6px; }
.hive-ui .live-list-reason { min-width: 0; overflow-wrap: anywhere; }
.hive-ui .command-filters .field { margin: 0; min-width: 0; }
@media (max-width: 720px) {
  .hive-ui .live-list-controls { align-items: flex-start; }
  .hive-ui .command-filters .field { width: 100%; }
  .hive-ui table.grid td[data-l] .live-list-reason .cellsub { display: block; margin: 2px 0 0; }
}

/* W3 */
.hive-ui .listener-head-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.hive-ui [data-testid="listener-tls-current"] { overflow-wrap:anywhere; }
.hive-ui [data-testid="listener-tls-editor"] .actions { margin-bottom:18px; }
.hive-ui .dsec > .hint, .hive-ui [data-testid="listener-tls-editor"] .dsec > p:not(.note) { color:var(--dim); font-size:12px; line-height:1.5; margin-bottom:10px; }

.hive-ui [data-listener] .btn + .btn { margin-left:8px; }

/* W5b */
.hive-ui .policy-scenario-group { margin:10px 0; }
.hive-ui .policy-scenario-group label { text-transform:none; letter-spacing:normal; }
.hive-ui .policy-scenario-group label:has(input:disabled) { opacity:.55; }
.hive-ui .policy-scenario-group + .btn { margin-bottom:10px; }
.hive-ui .policy-kind-summary > .hint, .hive-ui .policy-scenario-section > .hint,
.hive-ui .policy-result-section > .hint { margin-top:8px; color:var(--dim); font-size:12px; font-weight:400; line-height:1.6; }
.hive-ui .policy-tester .policy-classification { margin:14px 0; align-items:center; }
.hive-ui .policy-tester .policy-match { flex-wrap:wrap; }

/* W4 */
.hive-ui .certificate-trust-source { padding: 8px 0 16px; border-bottom: 1px solid var(--border); }
.hive-ui .certificate-trust-source > .listrow { gap: 10px; flex-wrap: wrap; }
.hive-ui .certificate-trust-source > .listrow .grow { min-width: 100px; }
.hive-ui .certificate-trust-source .kv .v { overflow-wrap: anywhere; }
.hive-ui [data-testid="certificate-editor"] .actions { margin: 12px 0; }
.hive-ui [data-testid="certificate-editor"] .note { margin-top: 10px; }

/* W7a */
.hive-ui .request-client { min-width: 0; overflow-wrap: anywhere; }
.hive-ui table.grid td[data-l] .request-client .cellsub { display: block; margin: 2px 0 0; }
.hive-ui [data-testid="decision-path"] > .t .hint { margin-left: 6px; text-transform: none; letter-spacing: normal; font-weight: 400; }
.hive-ui [data-testid="decision-path"] .note { margin-bottom: 10px; }
.hive-ui [data-testid="decision-path"] .hchk .s { overflow-wrap: anywhere; }
.hive-ui [data-testid="decision-path"] .hchk[data-state="not-reached"] .t,
.hive-ui [data-testid="decision-path"] .hchk[data-state="not-reached"] .s { color: var(--faint); }
.hive-ui [data-testid="decision-path"] .hchk .badge { white-space: nowrap; }

/* E1 */
.hive-ui .endpoint-seen-head { margin-bottom: 12px; }
.hive-ui .endpoint-seen-head .checkrow { padding: 0; }
.hive-ui .endpoint-import-preview .policy-scenarios { margin-top: 3px; }
.hive-ui .policy-scenario-picker { margin-top: 10px; }
.hive-ui .policy-scenario-kind { margin-bottom: 12px; }
.hive-ui .policy-scenario-kind .kindhead { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 6px;
  font-size: 11px; line-height: 1.45; color: var(--faint); }
.hive-ui .policy-scenario-kind .kindhead .grow { flex: 1 1 220px; }
.hive-ui .policy-scenario-picker .chipx { cursor: pointer; line-height: 1.35; text-align: left; }
.hive-ui .policy-scenario-picker .chipx[aria-disabled="true"] { opacity: .55; border-style: dashed; }
.hive-ui .policy-scenario-picker .chipx:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hive-ui .rulebox .listrow { padding: 6px 0; }
.hive-ui .rulebox .field + .fieldhint { margin: -6px 0 8px; }
/* The selected picker row sits on --blue-bg, where --faint is 4.2:1; --dim keeps its secondary lines readable (AA). */
.hive-ui .certrow.cur .m { color: var(--dim); }
/* Short accepted results (trusted, winner, a stored MAC) never break mid-word in a narrow preview column. */
.hive-ui .mini td.m.ok { white-space: nowrap; }
@media (max-width:720px) {
  /* Add Windows directory renders its sheet inside the Factors page head; the head's phone rules must not reach it. */
  .hive-ui .pagehead .drawer .grow { display: revert; }
  .hive-ui .pagehead .drawer .actions .btn { width: auto; padding: 8px 14px; }
}

/* E2a */
/* A MAC as sent in the import preview is one token: it never breaks across lines, and its column sizes to it. */
.hive-ui .mini .mac { white-space: nowrap; }
.hive-ui .field > .chips + .fieldhint { margin-top: 6px; }
.hive-ui .field > .chips .chipx, .hive-ui .policy-certificate-factors .listrow .t { overflow-wrap: anywhere; }
.hive-ui .field > .chips .chipx:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hive-ui .policy-certificate-factors .listrow .badge { margin-left: 4px; }
/* The certificate-factor fieldset is a wrapping flex row (.policy-choices); its factor rows and notes take the full width. */
.hive-ui .policy-certificate-factors { row-gap: 0; }
.hive-ui .policy-certificate-factors > .listrow, .hive-ui .policy-certificate-factors > .note { flex: 1 1 100%; }
/* A chip field directly after another field's hint keeps the field gap. */
.hive-ui .fieldhint + .field:has(> .chips) { margin-top: 12px; }
/* ToggleSwitch is a native button (Enter and Space activate it; Space no longer scrolls the sheet): reset the button chrome so it
   renders exactly as the span did. */
.hive-ui button.toggle { padding: 0; margin: 0; font: inherit; color: inherit; appearance: none; -webkit-appearance: none; }
.hive-ui button.toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* E2c */
@media (max-width:720px) {
  /* A row that leads with a state dot is a wrapping flex line on a phone: the dot and the primary cell share the first line,
     as in the mockup, and every other cell keeps a full-width line of its own. As inline blocks, the whitespace the renderer
     leaves between the two cells pushed a primary cell sized to the remaining width onto a line of its own. */
  .hive-ui table.grid tbody tr:has(> td.dotc) { display: flex; flex-wrap: wrap; align-items: flex-start; }
  .hive-ui table.grid tbody tr:has(> td.dotc) > td { flex: 0 0 100%; min-width: 0; }
  .hive-ui table.grid tbody tr:has(> td.dotc) > td.dotc { flex: 0 0 18px; }
  .hive-ui table.grid tbody tr:has(> td.dotc) > td.dotc + td.pri { flex: 1 1 0; width: auto; }
}
/* W9c-policy */
/* The tester's requirements trace: each level's badge keeps its own height beside a wrapped description. */
.hive-ui [data-testid="tester-requirements-trace"] .tr { align-items: center; }
.hive-ui [data-testid="tester-requirements-trace"] .tr .badge { flex: 0 0 auto; white-space: nowrap; }
/* What policy sees for the chosen client: sentences and labels wrap between words, never inside one. */
.hive-ui [data-testid="tester-effective"] .kv .v { word-break: normal; overflow-wrap: anywhere; }

/* W9c-devices */
/* Network devices page, device sheet and the in-place client editor (mockup NetworkDevices, NetworkDeviceDrawer, BindingEditor). */
.hive-ui .device-intro { margin-bottom: 14px; }
.hive-ui .device-name { font-weight: 650; overflow-wrap: anywhere; }
.hive-ui .device-name .badge { margin-left: 6px; }
.hive-ui .device-shared { color: var(--amber); }
.hive-ui .device-protocol { margin-bottom: 5px; }
.hive-ui .device-count { font-size: 11.5px; color: var(--dim); margin-left: 4px; }
.hive-ui .device-none { color: var(--faint); }
.hive-ui .device-client-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hive-ui .device-add-client { margin-top: 10px; }
.hive-ui .device-sharing { margin-top: 18px; }
.hive-ui .binding-back { margin-bottom: 14px; }
.hive-ui .binding-secret-once { margin-top: 12px; }
.hive-ui .binding-secret-entry { margin-top: 8px; }
.hive-ui .relying-party-detail { color: var(--dim); }
@media (max-width:720px) {
  /* A disabled device or relying party is a phone card with a grey dot and its badge; a td background would band its first line. */
  .hive-ui table.grid tr.dimmed[data-device] td, .hive-ui table.grid tr.dimmed[data-relying-party] td { background:transparent; }
}

/* E2d */
/* A stat card's headline number takes the console's text colour: Bootstrap's own .card rule otherwise colours it with the light
   theme's body text, dark on the console's dark surface. */
.hive-ui .card { color:var(--text); }
/* A key-value value wraps between words; only a token too long for its line, such as a fingerprint or record ID, breaks anywhere. */
.hive-ui .kv .v { word-break:normal; overflow-wrap:anywhere; }
/* The console's confirmations (Havit's message box, rendered inside the console) on its sheet tokens, not Bootstrap's light modal:
   surface, text, dividers and close button follow the dark console, and the default button is the console's primary. */
.hive-ui.hive-console .hx-modal .modal-content { background:var(--surface); color:var(--text); border:1px solid var(--border);
  border-radius:16px; box-shadow:var(--shadow); }
.hive-ui.hive-console .hx-modal .modal-header, .hive-ui.hive-console .hx-modal .modal-footer { border-color:var(--border); }
.hive-ui.hive-console .hx-modal .modal-title { font-size:16px; font-weight:800; }
.hive-ui.hive-console .hx-modal .modal-body { font-size:13.5px; line-height:1.55; }
.hive-ui.hive-console .hx-modal .btn-close { filter:invert(1) grayscale(1) brightness(1.8); }
.hive-ui.hive-console .hx-modal .btn-primary { background:var(--accent); border-color:var(--accent); color:var(--accent-text); }
/* Overview's accounting store keeps the card gap below the stat cards, as the panels after it do. */
.hive-ui .cards + .accounting-health { margin-top:14px; }
/* A note reads from its left edge wherever it sits, including in a right-aligned button row (Farm & settings). */
.hive-ui .note { text-align:left; }
/* A sheet's or the policy tester's plain sub-heading (attribute conditions, output attributes, dictionary attributes) is the
   console's section label, not a bare heading larger than the sheet's own title. */
.hive-ui .drawer h4, .hive-ui .policy-tester h4 { margin:18px 0 9px; font-size:10.5px; font-weight:600; text-transform:uppercase;
  letter-spacing:.8px; color:var(--faint); }
/* A policy set's or rule's name keeps its words: the rows' anywhere-wrapping let the name column shrink to a letter wide. A rule
   that inherits its set's scenarios keeps "Same as set" above its chips on a phone, as on a desktop, in one value block. */
.hive-ui .policy-set-row td.pri, .hive-ui .policy-rule-row td.pri { overflow-wrap:break-word; }
@media (min-width:721px) { .hive-ui .policy-set-row td.pri, .hive-ui .policy-rule-row td.pri { min-width:150px; } }
@media (max-width:720px) { .hive-ui table.grid .policy-rule-row td[data-l="Scenario"] .cellsub { display:block; margin:0 0 4px; } }
/* The console's toasts (Havit's messenger, rendered inside the console) on its tokens. Havit colours a toast with Bootstrap's
   text-bg-* classes, which set white on the theme's cyan with !important; the success (primary) toast is the console's dark card. */
.hive-ui.hive-console .hx-toast { border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow); }
.hive-ui.hive-console .hx-toast.text-bg-primary { background-color:var(--surface2) !important; color:var(--text) !important; }
/* The tester's evaluation trace rows centre their badge, as its requirements trace does. */
.hive-ui [data-testid="tester-trace"] .tr { align-items:center; }
.hive-ui [data-testid="tester-trace"] .tr .badge { flex:0 0 auto; white-space:nowrap; }
/* The farm CA's details wrap a long token (its SHA-256 fingerprint, the farm's record ID) inside the sheet instead of widening it. */
.hive-ui [data-testid="farm-ca-export"] { overflow-wrap:anywhere; }
/* The certificate-factor picker's legend is a field label like its siblings in a policy sheet, not a bold heading. */
.hive-ui .policy-certificate-factors > legend { font-size:11px; font-weight:400; text-transform:uppercase; letter-spacing:.6px; color:var(--faint);
  margin-bottom:5px; }

/* E3a */
/* The shell's banner (ConsoleShell's header) keeps the top bar at its own height in the column; main is the scrolling content. */
.hive-ui .app > header.shellbar { flex:0 0 auto; }
/* A list's own notes follow its table: its empty state, where it ends, what it keeps. They are neutral, not the caution accent;
   a red, blue or green note keeps its colour. .note.neutral gives any other neutral note (guidance, not a caution) the same look. */
.hive-ui table.grid ~ .note:not(.red):not(.blue):not(.green), .hive-ui .note.neutral { border-left-color:var(--faint); }
.hive-ui table.grid ~ .note:not(.red):not(.blue):not(.green) b, .hive-ui .note.neutral b { color:var(--text); }
/* On a desktop an empty list's header strip and its note are one panel: the strip's lower corners square off and the note joins
   it edge to edge. A phone hides the header, so its note stands alone. */
@media (min-width:721px) {
  .hive-ui table.grid:not(:has(> tbody > tr:not(:empty))) { border-bottom-left-radius:0; border-bottom-right-radius:0; }
  .hive-ui table.grid:not(:has(> tbody > tr:not(:empty))) th { border-bottom:0; }
  .hive-ui table.grid:not(:has(> tbody > tr:not(:empty))) + .note { margin:1px -1px 14px; border-top:0; border-top-left-radius:0;
    border-top-right-radius:0; }
}
/* A dimmed row is one surface on a phone card, as the dimmed row is on a desktop: the card takes the dimmed tone and its cells
   stay transparent, so no lighter band runs through it. Devices and relying parties keep their plain card (W9c-devices). */
@media (max-width:720px) {
  .hive-ui table.grid tr.dimmed:not([data-device]):not([data-relying-party]) { background:var(--surface2); }
  .hive-ui table.grid tr.dimmed td { background:transparent; }
}
/* An empty chip list says what empty means as plain muted text, not a chip (ChipListEditor). */
.hive-ui .chips .chip-empty { font-size:11.5px; color:var(--faint); align-self:center; }
/* A delete confirmation's sentence is the danger zone's own text, in the text colour; its buttons sit apart in their own row. */
.hive-ui .dangerzone .d.ask { color:var(--text); }
.hive-ui .dangerzone .dangeractions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:8px; }
/* A field that carries an error is marked: its control takes the error colour. */
.hive-ui .field:has(> .fielderr) :is(input, select, textarea), .hive-ui :is(input, select, textarea)[aria-invalid="true"] { border-color:var(--red); }
/* A sheet brings a new error into view with its field, and the section label above it, clear of the sheet's sticky header
   (EditDrawer.razor.js). */
.hive-ui .drawer .field, .hive-ui .drawer .fielderr, .hive-ui .drawer .note { scroll-margin:104px 0 16px; }
/* A sheet's record line wraps between words; only a token too long for its line (a URN, a GUID) breaks anywhere. */
.hive-ui .drawer .durn { word-break:normal; overflow-wrap:anywhere; }
/* The console's confirmations (ConsoleMessageBoxHost) use the console's buttons: the destructive action is the danger button on
   an opaque tint of the sheet (the same colour as on a sheet), Cancel the ghost button. They sit where the sheets sit: centred
   on a desktop, a full-width bottom sheet on a phone. */
.hive-ui.hive-console .hx-modal.console-message .btn.danger { background:color-mix(in srgb, var(--red) 10%, var(--surface)); }
@media (max-width:720px) {
  .hive-ui.hive-console .hx-modal.console-message .modal-dialog { margin:0; max-width:none; min-height:100%; align-items:flex-end; }
  .hive-ui.hive-console .hx-modal.console-message .modal-content { border-width:1px 0 0; border-radius:20px 20px 0 0; }
}

/* E3c */
/* Settings pages (O2): a page with one settings panel (Web & OIDC) gives it the full width instead of half the grid. */
.hive-ui .settings-grid > .panel:only-child { grid-column:1 / -1; }
/* A write-only setting's explanation sits under its replace control, inside the field's own spacing. */
.hive-ui .field + .fieldhint.setting-hint { margin:-6px 0 12px; }
/* The diagnostics fence's buttons: Bootstrap's global .row (negative gutters, wrapping, full-width children) reached the
   fence's button row and stacked Cancel and Arm across, and beyond, the box. */
.hive-ui .confirm .row { margin:0; flex-wrap:nowrap; }
.hive-ui .confirm .row > * { width:auto; max-width:none; margin-top:0; flex-shrink:1; }
/* Farm & settings keeps the page's panel gap between the moved-settings panel and the restart note under it. */
.hive-ui .farm-moved { margin-bottom:14px; }
/* Listeners (O3): a listener's name leads its row, as every console list's primary cell does. */
.hive-ui .listener-name { font-weight:650; }
/* A native file input (PFX, PEM) keeps its native behaviour and semantics, drawn as a console field with a console button. */
.hive-ui .field input[type=file] { padding:6px; color:var(--dim); cursor:pointer; }
.hive-ui .field input[type=file]::file-selector-button { margin-right:10px; padding:5px 10px; border-radius:8px; border:1px solid var(--border);
  background:var(--surface3); color:var(--text); font:inherit; font-size:11.5px; font-weight:650; cursor:pointer; }
.hive-ui .field input[type=file]:disabled { cursor:not-allowed; opacity:.6; }
/* Paragraphs, steps and details inside a listener's notes keep the note's own padding at their foot (the staged identity). */
.hive-ui [data-testid="listener-tls-editor"] .note p, .hive-ui [data-testid="listener-tls-editor"] .note ol { margin:6px 0 0; }
.hive-ui [data-testid="listener-tls-editor"] .note > :first-child { margin-top:0; }
.hive-ui [data-testid="listener-tls-editor"] .note > details { margin-top:6px; }
/* The farm CA's details are key-value rows between its load and download buttons. */
.hive-ui .farm-ca-details { margin:10px 0 12px; }
/* The server-identity picker leads with its selection rule; the chosen certificate's details follow it. */
.hive-ui .picker .pdetail > .rulebox:first-child { margin-top:0; }
.hive-ui .picker .pdetail > .rulebox + .kv { margin-top:10px; }
/* Picker selection uses the console accent (DD1), not the browser's blue check and the mockup's blue bar. */
.hive-ui .certrow input { accent-color:var(--accent); }
.hive-ui .certrow.cur { background:var(--accent-bg); box-shadow:inset 3px 0 0 var(--accent); }
/* Factors (O4): the MS-CHAPv2 self-check rows line their state dot up with the check's title and keep the badge whole. */
.hive-ui [data-testid="mschapv2-editor"] .hchk .dot { margin:5px 0 0; flex:0 0 auto; }
.hive-ui [data-testid="mschapv2-editor"] .hchk .badge { flex:0 0 auto; }
.hive-ui [data-testid="mschapv2-editor"] .hchk:last-of-type { margin-bottom:6px; }
/* A certificate source's explanation keeps the field gap above the next label. */
.hive-ui .certificate-trust-source > .fieldhint { margin-bottom:12px; }
/* A trust source's head keeps Remove source on its line: the name, with its kind badge after it, wraps instead. */
.hive-ui .certificate-trust-source > .listrow { flex-wrap:nowrap; }
.hive-ui .certificate-trust-source > .listrow .grow { min-width:0; }
.hive-ui .certificate-trust-source > .listrow .t { overflow-wrap:anywhere; }
.hive-ui .certificate-trust-source > .listrow .t .badge { margin-left:4px; }
.hive-ui .certificate-trust-source > .listrow .btn { white-space:nowrap; }
/* Endpoints (O7): a MAC is the row's primary identifier, in the text colour and the list weight rather than dim mono. */
.hive-ui .endpoint-mac { color:var(--text); font-weight:650; }
.hive-ui .endpoint-known-tags { margin:-6px 0 10px; }
/* Users (O8): a danger zone's button row is the console's row, not Bootstrap's global .row (negative gutters, full-width
   children), so its buttons keep their own width inside the zone's padding. */
.hive-ui .dangerzone .row.dz-row { margin:0; }
.hive-ui .dangerzone .row.dz-row > * { width:auto; max-width:none; margin-top:0; }
.hive-ui .dangerzone .row.dz-row > :not(.btn) { padding-left:0; padding-right:0; }
/* Alerts (O14): an acknowledged alert's row is dimmed (the mockup halves its opacity; --dim text keeps AA contrast), and on a
   desktop a node name keeps one line instead of breaking at its hyphens. */
.hive-ui table.grid tr.alert-row.dimmed td { color:var(--dim); }
@media (min-width:721px) {
  .hive-ui table.grid tr.alert-row td[data-l=Node], .hive-ui table.grid tr.family-row td[data-l=Node],
  .hive-ui table.grid tr.alert-row td[data-l=Raised] { white-space:nowrap; }
  .hive-ui table.grid tr.alert-row td[data-l=Raised] .cellsub { white-space:normal; }
}
/* E3b */
/* Policies (mockup Policies, phone): a phone's rules view has no set list on screen, so it offers "Edit this set" in its head. */
.hive-ui .policy-edit-selected { display:none; }
@media (max-width:720px) { .hive-ui .policy-page.show-rules .policy-edit-selected { display:inline-flex; justify-content:center; } }
/* A policy sheet's section labels and fields keep the sheet's gap below a switch row, a section or a tag picker; a result section's
   later sub-heads (shell profile, ordered command rules, factor preference order) keep the section gap above them. */
.hive-ui .policy-page ~ .drawer .listrow + .field, .hive-ui .policy-page ~ .drawer .dsec + .field,
.hive-ui .policy-page ~ .drawer .dsec + .listrow { margin-top:14px; }
.hive-ui .dsec > .t.policy-subhead { margin-top:18px; }
.hive-ui .policy-tag-picker { margin-bottom:16px; }
/* The tag picker's "Add and apply a tag" disclosure is a quiet action in its section, not text larger than the section. */
.hive-ui .policy-tag-add > summary { font-size:12px; font-weight:600; color:var(--dim); cursor:pointer; margin-top:8px; }
.hive-ui .policy-tag-add[open] > summary { margin-bottom:10px; }
/* The identity group suggestions float above the sheet: a deeper shadow and a lighter edge than the fields they cover. */
.hive-ui .policy-group-picker .pickmenu { border-color:#3b4048; box-shadow:0 16px 40px rgba(0,0,0,.75), 0 2px 8px rgba(0,0,0,.6); }
/* A denied factor reads as denied, in the deny colours the mockup's Deny segment uses; an unselected one is an outlined choice. */
.hive-ui .chipx.deny-chip.pick-off { background:transparent; }
.hive-ui .chipx.deny-chip.pick-on { color:var(--red); border-color:rgba(248,113,113,.55); background:var(--red-bg); }
.hive-ui .chipx.deny-chip.pick-on::before { content:"\2298"; margin-right:1px; }
/* The rules view's heading is the page's second level (an h2, so a phone's rules view, which hides the sets view, keeps its heading
   order under the console's h1) at the size the h3 had. */
.hive-ui .policy-rules-heading h2 { font-size:17px; margin:0; }
/* Policy tester (mockup PolicyTester): the verdict card leads with its icon; a result or refusal keeps a gap below Evaluate. */
.hive-ui .verdict .verdict-icon { font-size:22px; line-height:1; flex:0 0 auto; }
.hive-ui .policy-tester [data-testid="tester-run"] ~ .verdict, .hive-ui .policy-tester [data-testid="tester-run"] ~ .note { margin-top:14px; }
/* The evaluation trace's Sets and "Rules in" groups are labelled as the mockup's are; an entered set reads in the accent of its badge. */
.hive-ui .trace .trace-group { font-size:10.5px; text-transform:uppercase; letter-spacing:.8px; color:var(--faint); margin:12px 0 6px; }
.hive-ui .trace .trace-group:first-of-type { margin-top:4px; }
.hive-ui .trace .tr.entered .nm { color:var(--blue); font-weight:650; }
.hive-ui .trace .tr.gate .nm { color:var(--red); font-weight:650; }
.hive-ui .trace .trace-empty { padding:6px 2px; }
/* What policy sees reads as labelled lines, the value beside its label, not pushed to the far edge of a wide panel. */
@media (min-width:721px) {
  .hive-ui [data-testid="tester-effective"] .kv { justify-content:flex-start; }
  .hive-ui [data-testid="tester-effective"] .kv .k { flex:0 0 170px; }
  .hive-ui [data-testid="tester-effective"] .kv .v { text-align:left; }
}
/* The tester's Add attribute keeps the field gap below it; its own sub-heading is an h3 under the rules view's h2, drawn as the
   section label its h4 was (E2d). */
.hive-ui .policy-tester [data-testid="tester-add-attribute"] { margin-bottom:14px; }
.hive-ui .policy-tester h3 { margin:18px 0 9px; font-size:10.5px; font-weight:600; text-transform:uppercase; letter-spacing:.8px; color:var(--faint); }
/* Network devices and relying parties: a device's or client's Disable offer in the danger zone undoes Bootstrap's global .row
   (negative gutters and full-width children) for that row only, so its button sits inside the zone's padding. */
.hive-ui .dangerzone .row.device-alternative { --bs-gutter-x:0; --bs-gutter-y:0; margin:10px 0 0; flex-wrap:nowrap; }
.hive-ui .dangerzone .row.device-alternative > * { width:auto; max-width:none; margin-top:0; flex:0 0 auto; }
.hive-ui .dangerzone .row.device-alternative > .d { flex:1 1 auto; min-width:0; }
/* Live lists, requests and sessions: a time keeps its date and its time whole (a narrow cell wraps between them, never before
   AM/PM); an empty or still-running value reads quietly; a disconnect refusal sits on its row under the button pressed. */
.hive-ui .nowrap, .hive-ui table.grid td.when-cell { white-space:nowrap; }
.hive-ui .empty-value { color:var(--faint); }
.hive-ui .disconnect-refusal { margin-top:6px; }
/* A session's serving node is a long URN: on a desktop it wraps inside its own cell instead of squeezing the rule beside it. */
.hive-ui table.grid td.session-node { overflow-wrap:anywhere; }
@media (min-width:721px) {
  .hive-ui table.grid td.session-node { max-width:230px; }
  .hive-ui table.grid td.session-rule { min-width:120px; }
}
/* A request drawer's path states a failure once: the stored reason and whether it is user-safe read inside the red box. */
.hive-ui [data-testid="decision-ended"] .decision-reason { margin-top:6px; color:var(--text); }
.hive-ui [data-testid="decision-ended"] .decision-safety { margin-top:4px; color:var(--faint); }
/* Overview: the planes panel keeps the page's panel gap below the accounting store. */
.hive-ui .overview-planes { margin-top:14px; }
/* EAP-TLS options (features/certificateFactor/accepted-factors-rescope-plan.md): a "…" button and count beside the EAP-TLS method,
   opening a compact picker dialog with the rule's accepted certificate factors. */
.hive-ui .method-options { display:inline-flex; align-items:center; gap:6px; }
.hive-ui .method-more { min-width:30px; padding:4px 8px; border-radius:9px; border:1px solid var(--border); background:var(--surface2);
  color:var(--text); font-size:13px; line-height:1; cursor:pointer; font-family:inherit; }
.hive-ui .method-more:disabled { opacity:.45; cursor:not-allowed; }
.hive-ui .method-more:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.hive-ui .method-count { font-size:11.5px; color:var(--dim); }
/* features/policySetMethods: a method the rule keeps that its policy set has dropped (decision 2), and the set's offer order. */
.hive-ui .chipx.pick-dropped { border-color:rgba(245,166,35,.5); background:var(--amber-bg); color:var(--amber); cursor:pointer; }
.hive-ui .chipx.pick-dropped s { text-decoration-color:rgba(245,166,35,.7); }
.hive-ui .chipx .method-order { color:inherit; opacity:.7; font-weight:600; }
.hive-ui .picker.compact { width:640px; height:auto; max-height:90vh; }
.hive-ui .picker.compact:focus { outline:none; }
.hive-ui .picker .pscroll { flex:1; min-height:0; overflow-y:auto; padding:6px 20px 14px; }
@media (max-width:720px) {
  .hive-ui .picker.compact { width:auto; max-height:none; }
}

/* Public certificate downloads (features/webRefinements slice 2): one box per certificate, a
   chain's members indented under its leaf. */
.hive-ui .cert { border:1px solid var(--border); background:var(--surface2); border-radius:12px; padding:10px 12px; margin-top:8px; }
.hive-ui .cert .ch { display:flex; align-items:flex-start; gap:10px; }
.hive-ui .cert .grow { flex:1 1 auto; min-width:0; }
.hive-ui .cert .cn { font-size:12.5px; font-weight:650; overflow-wrap:anywhere; }
.hive-ui .cert .cm { font-size:11px; color:var(--faint); margin-top:2px; overflow-wrap:anywhere; }
.hive-ui .cert .cm.fp { font-family:ui-monospace,Menlo,Consolas,monospace; }
.hive-ui .cert .cb { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; flex:0 0 auto; }
.hive-ui .cert.chainlink { margin-left:16px; border-style:dashed; }
.hive-ui .cert-status { font-size:11px; color:var(--faint); margin-top:4px; }
@media (max-width:720px) {
  .hive-ui .cert .ch { flex-wrap:wrap; }
  .hive-ui .cert .cb { justify-content:flex-start; flex:1 1 100%; }
  .hive-ui .cert.chainlink { margin-left:8px; }
}

/* One Live traffic list (features/webRefinements slice 4): the name a refused device sent, a run's count, the line
   saying what an endpoint did before this run, a run's attempt times, and an endpoint's rows in the drawer. */
.hive-ui .tabs .n { font-size:10.5px; color:var(--faint); margin-left:5px; font-weight:700; }
.hive-ui .claimed { font-size:9.5px; font-weight:750; letter-spacing:.5px; text-transform:uppercase; color:var(--faint);
  border:1px dashed var(--border); border-radius:6px; padding:1px 6px; margin-left:6px; vertical-align:1px; cursor:help; }
.hive-ui .count { display:inline-block; font-size:10.5px; font-weight:800; color:var(--red); background:var(--red-bg);
  border:1px solid rgba(248,113,113,.5); border-radius:7px; padding:1px 7px; margin-left:6px; }
.hive-ui .cellsub.changed { color:var(--amber); }
.hive-ui .switchlabel { font-size:12px; color:var(--dim); cursor:help; margin-right:6px; }
.hive-ui .traffic-group { display:inline-flex; align-items:center; margin-right:10px; }
/* Live traffic, one log per listener (features/liveTraffic): the listener tabs, the Show chips, the kind tag, the sources strip, the parts. */
.hive-ui .lstabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.hive-ui .lstab { display:inline-flex; align-items:center; gap:8px; padding:7px 10px; border:1px solid var(--border); border-radius:10px; background:transparent;
  color:var(--dim); cursor:pointer; font-size:12.5px; }
.hive-ui .lstab.on { border-color:var(--accent); color:var(--text); background:var(--accent-bg, rgba(255,255,255,.03)); }
.hive-ui .lstab .nm { font-weight:650; }
.hive-ui .lstab .pt { font-size:11px; color:var(--faint); }
.hive-ui .lstab .n { font-size:10.5px; font-weight:700; color:var(--faint); padding:1px 6px; border:1px solid var(--border); border-radius:999px; }
.hive-ui .lstab .ret { font-size:9.5px; font-weight:750; letter-spacing:.5px; text-transform:uppercase; color:var(--amber); }
.hive-ui .lstab .gear { border:0; background:transparent; color:var(--faint); cursor:pointer; font-size:14px; padding:0 2px; line-height:1; }
.hive-ui .lstab .gear:hover { color:var(--text); }
.hive-ui .chips { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:-6px 0 12px; }
.hive-ui .chips .lbl { font-size:11px; color:var(--faint); text-transform:uppercase; letter-spacing:.5px; margin-right:4px; }
.hive-ui .chips button { padding:4px 10px; border:1px solid var(--border); border-radius:999px; background:transparent; color:var(--dim); font-size:12px; cursor:pointer; }
.hive-ui .chips button.on { border-color:var(--accent); color:var(--text); }
.hive-ui .chips button.off { border-style:dashed; color:var(--faint); }
.hive-ui .chips button .n { font-size:10.5px; color:var(--faint); margin-left:5px; font-weight:700; }
.hive-ui .kind { display:inline-flex; align-items:center; gap:5px; font-size:12px; white-space:nowrap; }
.hive-ui .kind .p { font-size:9.5px; font-weight:750; letter-spacing:.5px; text-transform:uppercase; padding:1px 5px; border-radius:4px; border:1px solid var(--border); color:var(--faint); }
.hive-ui .kind.radius .p { color:var(--violet); border-color:rgba(167,139,250,.5); }
.hive-ui .kind.tacacs .p { color:var(--amber); border-color:rgba(245,166,35,.5); }
.hive-ui .srcstrip { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 12px; font-size:12px; }
.hive-ui .srccard { display:inline-flex; align-items:center; gap:8px; padding:5px 10px; border:1px solid var(--border); border-radius:8px; color:var(--dim); }
.hive-ui .srccard.log { border-color:rgba(167,139,250,.5); }
.hive-ui .srccard.warn { border-color:rgba(245,166,35,.5); color:var(--amber); }
.hive-ui .srccard .n { font-weight:700; color:var(--text); }
.hive-ui .srccard .w { font-size:11px; color:var(--faint); }
.hive-ui .links { display:flex; flex-direction:column; gap:6px; }
.hive-ui .links .link { display:flex; justify-content:space-between; gap:12px; padding:7px 10px; border:1px solid var(--border); border-radius:8px; color:var(--text); text-decoration:none; font-size:12.5px; }
.hive-ui .links .link .s { color:var(--faint); overflow-wrap:anywhere; text-align:right; }
.hive-ui .part { display:flex; align-items:center; gap:12px; padding:8px 0; border-bottom:1px dashed var(--border); }
.hive-ui .part:last-child { border-bottom:0; }
.hive-ui .part .t { font-size:12.5px; font-weight:650; }
.hive-ui .part .s { font-size:11.5px; color:var(--faint); }
.hive-ui .seg { display:inline-flex; flex-wrap:wrap; gap:4px; }
.hive-ui .seg button { padding:5px 10px; border:1px solid var(--border); border-radius:8px; background:transparent; color:var(--dim); font-size:12px; cursor:pointer; }
.hive-ui .seg button.on { border-color:var(--accent); color:var(--text); }
.hive-ui .count.quiet { color:var(--faint); background:transparent; border:1px solid var(--border); }
@media (max-width:720px) { .hive-ui table.grid td[data-l="Kind"] .kind { display:inline-flex; } }
/* webRefinements slice 5: what the drawer reads out of a stored presented certificate, and the farm switch that keeps them. */
.hive-ui .dsec .t.presented-read { margin-top:14px; font-size:10.5px; text-transform:uppercase; letter-spacing:.8px; color:var(--faint); }
.hive-ui .kv.switchrow { align-items:center; }
.hive-ui .kv.switchrow .v { display:flex; justify-content:flex-end; }
.hive-ui .occ { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.hive-ui .occ span { font-family:ui-monospace,Menlo,Consolas,monospace; font-size:11px; color:var(--dim);
  background:var(--surface2); border:1px solid var(--border); border-radius:7px; padding:2px 7px; }
.hive-ui .hist { display:flex; align-items:center; gap:10px; padding:7px 8px; border-radius:9px; font-size:12.5px; cursor:pointer;
  width:100%; border:0; background:transparent; color:var(--text); text-align:left; font-family:inherit; }
.hive-ui .hist:hover { background:var(--surface2); }
.hive-ui .hist.cur { background:var(--blue-bg); cursor:default; }
.hive-ui .hist .dot { margin-right:0; }
.hive-ui .hist .mono { flex:0 0 auto; }
.hive-ui .hist .grow { flex:1 1 auto; min-width:0; }

/* ======================= Users page (features/dataBoundaries, lane E) =======================
   The identity-source Users page at /admin/users, ported from the mockup's additions
   (features/internalUserStore/mockups/InternalUserStore_mockups.html, "internal-user-store additions" and its phone rules).
   The create flow's steps are .createsteps: .steps .st above already means progress bars. */
.hive-ui { --teal:#2DD4BF; --teal-bg:rgba(45,212,191,.12); }
.hive-ui .badge.teal { color:var(--teal); border-color:rgba(45,212,191,.5); background:var(--teal-bg); }
.hive-ui .badges { display:flex; flex-wrap:wrap; gap:5px; }
.hive-ui button.link { color:var(--blue); background:none; border:0; padding:0; font:inherit; cursor:pointer; text-decoration:none; }
.hive-ui button.link:hover { text-decoration:underline; }
.hive-ui .fieldhint.bad { color:var(--red); }
.hive-ui .fieldhint.good { color:var(--green); }
.hive-ui .field input.bad, .hive-ui .inline-edit input.bad { border-color:rgba(248,113,113,.7); }
.hive-ui .field input.good { border-color:rgba(34,197,94,.6); }
.hive-ui .note .srcname { font-weight:700; }
.hive-ui .note .srcname.dir { color:var(--violet); }
.hive-ui .note .srcname.int { color:var(--teal); }
.hive-ui .dsec > .t:has(> .hint), .hive-ui .dsec > .t:has(> .grow) { display:flex; align-items:center; gap:8px; }
.hive-ui .dsec > .t > .hint { text-transform:none; letter-spacing:0; }
.hive-ui .dsec > .chips .chipx { overflow-wrap:anywhere; }

/* the identity-source filter: one chip per source, the answer to "two stores?" */
.hive-ui .srcbar { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:12px; }
.hive-ui .src { display:inline-flex; align-items:center; gap:8px; padding:7px 12px 7px 10px; border-radius:12px;
  border:1px solid var(--border); background:var(--surface); color:var(--dim); font-size:12.5px; font-weight:650;
  cursor:pointer; font-family:inherit; white-space:nowrap; }
.hive-ui .src:hover { background:var(--surface2); color:var(--text); }
.hive-ui .src.on { background:var(--accent-bg); color:var(--accent); border-color:color-mix(in srgb, var(--accent) 55%, transparent); }
.hive-ui .src .ico { width:22px; height:22px; border-radius:7px; display:grid; place-items:center; font-size:12px; }
.hive-ui .src .ico.dir { background:var(--violet-bg); color:var(--violet); }
.hive-ui .src .ico.int { background:var(--teal-bg); color:var(--teal); }
.hive-ui .src .ico.all { background:var(--surface3); color:var(--dim); }
.hive-ui .src .n { font-size:11px; color:var(--faint); font-weight:750; }
.hive-ui .src.on .n { color:var(--accent); }
.hive-ui .src .warnpip { width:7px; height:7px; border-radius:50%; background:var(--red); position:relative; }
.hive-ui .src.add { border-style:dashed; color:var(--dim); }

/* the selected source, in one strip: what it is, who owns the password, its switches */
.hive-ui .srcstrip { display:flex; align-items:center; gap:14px; padding:12px 14px; border:1px solid var(--border);
  border-radius:13px; background:var(--surface); margin-bottom:14px; flex-wrap:wrap; }
.hive-ui .srcstrip .who { min-width:0; flex:1 1 280px; }
.hive-ui .srcstrip .who .t { font-size:13.5px; font-weight:750; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.hive-ui .srcstrip .who .s { font-size:11.5px; color:var(--dim); margin-top:3px; line-height:1.45; }
.hive-ui .facts { display:flex; gap:6px; flex-wrap:wrap; min-width:0; }
.hive-ui .fact { display:inline-flex; align-items:center; gap:6px; font-size:11px; font-weight:650; color:var(--dim);
  border:1px solid var(--border); background:var(--surface2); border-radius:8px; padding:3px 8px; white-space:nowrap; }
.hive-ui .fact.wrap { white-space:normal; overflow-wrap:anywhere; }
.hive-ui .fact .dot { margin:0; width:7px; height:7px; }
.hive-ui .fact.bad { color:var(--red); border-color:rgba(248,113,113,.5); background:var(--red-bg); }
.hive-ui .fact.warn { color:var(--amber); border-color:rgba(245,166,35,.5); background:var(--amber-bg); }

.hive-ui .toolbar { display:flex; align-items:center; gap:10px; margin-bottom:10px; flex-wrap:wrap; }
.hive-ui .toolbar .lbl { font-size:10.5px; text-transform:uppercase; letter-spacing:.7px; color:var(--faint); }
.hive-ui .toolbar .seg, .hive-ui .createflow .field > .seg { flex-wrap:wrap; max-width:100%; }
.hive-ui .createflow .field > .seg button { min-width:0; overflow-wrap:anywhere; text-align:left; }

.hive-ui .srcbadge { display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:650; color:var(--dim); white-space:nowrap; }
.hive-ui .srcbadge .ico { width:16px; height:16px; border-radius:5px; display:grid; place-items:center; font-size:9px; }
.hive-ui .srcbadge .ico.dir { background:var(--violet-bg); color:var(--violet); }
.hive-ui .srcbadge .ico.int { background:var(--teal-bg); color:var(--teal); }
.hive-ui .srcstrip .srcbadge { font-size:13.5px; font-weight:750; color:var(--text); }

.hive-ui table.grid td.pri .rowname { font-weight:650; overflow-wrap:anywhere; }
.hive-ui table.grid td.pri .rowname .badge { margin-left:4px; }
.hive-ui table.grid td.rowdim { color:var(--dim); }
.hive-ui .acctname { font-family:ui-monospace,Menlo,Consolas,monospace; font-size:13px; }
.hive-ui table.grid tr.hl td { animation:hive-users-hl 1.8s ease-out; }
@keyframes hive-users-hl { from { background:var(--accent-bg); } to { background:var(--surface); } }

/* the sheets: a head with badges and tabs, a narrow dialog, the checklist and a lockout's clear */
.hive-ui .drawer.narrow { width:min(560px,92vw); }
.hive-ui .drawer .dh.rich { flex-wrap:wrap; }
.hive-ui .drawer .dh.rich h3 { overflow-wrap:anywhere; min-width:0; }
.hive-ui .drawer .dh.rich .tabs { flex:1 1 100%; margin:6px 0 -11px; border-bottom:0; }
.hive-ui .tabs .n.warn { color:var(--amber); }
.hive-ui .hchk .mk { flex:0 0 20px; height:20px; border-radius:50%; display:grid; place-items:center; font-size:11px; font-weight:900; margin-top:1px; }
.hive-ui .hchk .mk.ok { background:var(--green-bg); color:var(--green); }
.hive-ui .hchk .mk.no { background:var(--red-bg); color:var(--red); }
.hive-ui .hchk .mk.warn { background:var(--amber-bg); color:var(--amber); }
.hive-ui .hchk .mk.info { background:var(--surface3); color:var(--dim); }
.hive-ui .clearx { flex:0 0 auto; width:26px; height:26px; border-radius:8px; border:1px solid var(--border); background:var(--surface2);
  color:var(--dim); cursor:pointer; font-size:11px; font-family:inherit; margin-top:-2px; }
.hive-ui .clearx:hover { color:var(--text); border-color:rgba(248,113,113,.6); background:var(--red-bg); }
.hive-ui .clearx:disabled { opacity:.4; cursor:not-allowed; }

/* the password shown once */
.hive-ui .secret { font-family:ui-monospace,Menlo,Consolas,monospace; font-size:17px; letter-spacing:.5px; padding:14px 16px;
  border-radius:12px; background:var(--bg); border:1px solid rgba(245,166,35,.55); color:var(--amber-bright);
  overflow-wrap:anywhere; user-select:all; margin:10px 0; }

.hive-ui .createsteps { display:flex; gap:6px; margin:0 0 16px; flex-wrap:wrap; }
.hive-ui .createsteps span { font-size:11px; font-weight:750; color:var(--faint); padding:4px 10px; border-radius:8px; border:1px solid var(--border); }
.hive-ui .createsteps span.on { color:var(--accent); border-color:color-mix(in srgb, var(--accent) 55%, transparent); background:var(--accent-bg); }
.hive-ui .createsteps span.done { color:var(--green); border-color:rgba(34,197,94,.45); }

/* History: one applied change per line */
.hive-ui .audit { display:flex; gap:10px; align-items:flex-start; padding:8px 2px; border-bottom:1px dashed var(--border); font-size:12.5px; }
.hive-ui .audit:last-of-type { border-bottom:0; }
.hive-ui .audit .w { flex:0 0 96px; color:var(--faint); font-size:11.5px; }
.hive-ui .audit .m { flex:1; min-width:0; overflow-wrap:anywhere; }
.hive-ui .audit .m .s { font-size:11px; color:var(--faint); margin-top:2px; }

/* a store's groups, renamed and deleted in place */
.hive-ui .storegroup .rules { font-size:11px; color:var(--faint); margin-top:3px; overflow-wrap:anywhere; }
.hive-ui .storegroup .rules b { color:var(--dim); font-weight:600; }
.hive-ui .storegroup .t { overflow-wrap:anywhere; }
.hive-ui .inline-edit { display:flex; gap:8px; align-items:center; }
.hive-ui .inline-edit input { flex:1; padding:7px 10px; border-radius:9px; border:1px solid var(--border); background:var(--surface2);
  color:var(--text); font-size:12.5px; font-family:inherit; min-width:0; }

/* a store's lockout policy (wave 2): the counts typed inside the sentence, the whole-account scope shown but not offered */
.hive-ui .policyrow { font-size:12.5px; color:var(--dim); line-height:2.3; margin:4px 0 8px; }
.hive-ui .policyrow input { width:64px; padding:4px 7px; border-radius:8px; border:1px solid var(--border); background:var(--surface2);
  color:var(--text); font-size:12.5px; font-family:inherit; margin:0 3px; }
.hive-ui .policyrow input.bad { border-color:rgba(248,113,113,.7); }
.hive-ui .seg button:disabled { cursor:not-allowed; opacity:.55; }

@media (max-width:720px) {
  .hive-ui .srcbar { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; margin:0 -14px 12px; padding:0 14px; }
  .hive-ui .srcstrip { padding:11px 12px; }
  .hive-ui .srcstrip .who { flex-basis:100%; }
  .hive-ui .audit .w { flex-basis:72px; }
  .hive-ui .toolbar .lbl { display:none; }
  .hive-ui .drawer.narrow { width:auto; }
  .hive-ui .drawer .dh.rich h3 { flex:1 1 calc(100% - 50px); }
  .hive-ui .drawer .dh.rich .close { order:1; }
  .hive-ui .drawer .dh.rich > .badge, .hive-ui .drawer .dh.rich > .srcbadge { order:2; }
  .hive-ui .drawer .dh.rich .tabs { order:3; margin:6px 0 0; }
  .hive-ui .storegroup { flex-wrap:wrap; }
  .hive-ui .storegroup > .grow { flex-basis:100%; }
  .hive-ui .inline-edit { flex-wrap:wrap; }
  .hive-ui .inline-edit input { flex-basis:100%; }
}

/* The node that answered a request or holds a session (features/farmTopology/serving-node.md): a column in Sign-in activity
   and On now, a chip under the time in Live traffic (its densest table), a link to Farm & settings in a drawer. */
.hive-ui td.node-cell { white-space:nowrap; }
.hive-ui a.node-name { color:var(--accent); text-decoration:none; }
.hive-ui a.node-name:hover { text-decoration:underline; }
.hive-ui .traffic-node { margin-top:3px; }
.hive-ui .node-chip { display:inline-block; font-family:ui-monospace,Menlo,Consolas,monospace; font-size:10.5px; line-height:1.5;
  padding:0 6px; border:1px solid var(--border); border-radius:6px; color:var(--dim); background:var(--surface2); white-space:nowrap; }
.hive-ui .node-chip.unlisted { border-style:dashed; color:var(--faint); }
@media (max-width:720px) {
  .hive-ui table.grid td[data-l] .traffic-node { display:inline; margin:0 0 0 8px; }
}

/* features/radiusConditions: the typed condition editor (PolicyConditionEditor) on the policy set and the rule. */
.hive-ui .policy-condition-editor .condrows { display:flex; flex-direction:column; gap:8px; margin:8px 0; }
.hive-ui .policy-condition-editor .condrow { background:var(--surface2); border:1px solid var(--border); border-radius:10px; padding:10px 12px; }
.hive-ui .policy-condition-editor .condline { display:grid; grid-template-columns:170px 110px minmax(0,1fr) auto; gap:8px; align-items:center; }
.hive-ui .policy-condition-editor .condline.raw { grid-template-columns:170px 190px 110px minmax(0,1fr) auto; }
.hive-ui .policy-condition-editor .condline select, .hive-ui .policy-condition-editor .condline input { width:100%; min-width:0; }
.hive-ui .policy-condition-editor .condline .chips .chipx { cursor:pointer; }
.hive-ui .policy-condition-editor .condline .chips .chipx:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.hive-ui .policy-condition-editor .stored { margin-top:6px; font-size:12px; color:var(--faint); overflow-wrap:anywhere; }
.hive-ui .policy-condition-editor .stored b { color:var(--dim); font-weight:500; }
.hive-ui .policy-condition-editor .picker { position:relative; display:inline-block; margin-top:4px; }
.hive-ui .policy-condition-editor .pop { position:absolute; z-index:20; top:100%; left:0; margin-top:6px; width:min(460px, calc(100vw - 32px)); max-height:420px; overflow:auto;
  background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:6px; box-shadow:0 8px 24px rgba(0,0,0,.25); }
.hive-ui .policy-condition-editor .pop .grp { color:var(--faint); font-size:11px; text-transform:uppercase; letter-spacing:.5px; padding:8px 10px 2px; }
.hive-ui .policy-condition-editor .pop button { display:block; width:100%; text-align:left; background:none; border:0; color:var(--text); padding:8px 10px; border-radius:8px; cursor:pointer; font:inherit; }
.hive-ui .policy-condition-editor .pop button:hover, .hive-ui .policy-condition-editor .pop button:focus-visible { background:var(--surface2); outline:none; }
.hive-ui .policy-condition-editor .pop button .d { display:block; color:var(--dim); font-size:12px; margin-top:2px; line-height:1.4; }
.hive-ui .policy-condition-editor .pop button .a { float:right; color:var(--faint); font-size:11px; font-family:ui-monospace,Menlo,Consolas,monospace; }
@media (max-width:720px) {
  .hive-ui .policy-condition-editor .condline, .hive-ui .policy-condition-editor .condline.raw { grid-template-columns:1fr; }
}
