/* Roger Shadelyt Admin console - light theme (2.6.0). Fonts are bundled (static/fonts, SIL OFL) so the console
   needs no internet access. Layout: white sidebar and top bar on a grey page; white panels with hairline borders;
   one indigo accent from the logo; monospace for labels, codes and times. */
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 600; font-display: swap; src: url("fonts/dm-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #f5f6f8;
  --side: #ffffff;
  --panel: #ffffff;
  --panel-2: #f8f9fb;
  --input: #ffffff;
  --border: #e3e6eb;
  --border-soft: #eef0f3;
  --border-strong: #d0d5dd;
  --text: #101828;
  --text-2: #344054;
  --muted: #667085;
  --faint: #8a94a6;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-text: #4338ca;
  --accent-soft: #eef0ff;
  --accent-line: #c7cbfb;
  --teal: #0d9488;
  --ok: #067647;
  --ok-soft: #ecfdf3;
  --ok-line: #abefc6;
  --warn: #b54708;
  --warn-text: #b54708;
  --warn-soft: #fffaeb;
  --warn-line: #fedf89;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --danger-line: #fecdca;
  --c-blocked: #4f46e5;
  --c-redacted: #14b8a6;
  --c-warned: #f5a524;
  --c-logged: #cfd5df;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 12px 32px rgba(16, 24, 40, 0.10), 0 2px 6px rgba(16, 24, 40, 0.05);
  --display: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.015em; color: var(--text); }
h1 { margin: 0 0 4px; font-size: 24px; font-weight: 600; line-height: 1.2; }
h2 { font-size: 16px; font-weight: 600; }
.muted { color: var(--muted); }
.small, .data-table td.small { font-size: 12.5px; color: var(--muted); }
.warn-text { color: var(--warn-text); }
.danger-text { color: var(--danger); }
.ok-text { color: var(--ok); }
svg { flex-shrink: 0; }

/* ---------------------------------------------------------------- shell */
.app-shell { display: flex; min-height: 100vh; align-items: stretch; }
.sidebar {
  width: 244px; flex: 0 0 244px; background: var(--side); border-right: 1px solid var(--border);
  padding: 16px 12px 14px; display: flex; flex-direction: column; gap: 14px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 12px; color: var(--text); border-bottom: 1px solid var(--border-soft); }
.brand:hover { color: var(--text); }
.brand-logo { width: 30px; height: 30px; display: block; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name b { font-family: var(--display); font-size: 15.5px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.brand-name small { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-top: 2px; }
.brand-mark { display: none; }
.sidebar nav { display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; flex: 1; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; }
.sidebar nav a .nav-icon { color: var(--faint); }
.sidebar nav a:hover { background: var(--panel-2); color: var(--text); }
.sidebar nav a:hover .nav-icon { color: var(--text-2); }
.sidebar nav a.active { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.sidebar nav a.active .nav-icon { color: var(--accent); }
.nav-icon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
.nav-count { margin-left: auto; padding: 0 7px; border-radius: 999px; background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--warn-text); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.nav-section { padding: 14px 10px 5px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; color: var(--faint); text-transform: uppercase; }
.lic-card { display: block; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; background: var(--panel-2); font-size: 12.5px; color: var(--text); }
.lic-card:hover { border-color: var(--accent-line); color: var(--text); }
.lic-card .t { font-weight: 600; color: var(--text); font-size: 13px; }
.lic-card .s { color: var(--muted); margin-top: 1px; }
.lic-card .meter { height: 5px; border-radius: 999px; background: var(--border); margin: 10px 0 6px; overflow: hidden; display: flex; }
.lic-card .meter i { display: block; height: 100%; background: var(--accent); }
.lic-card .meter b { display: block; height: 100%; background: repeating-linear-gradient(45deg, #f5a524 0 4px, #dc6803 4px 8px); }
.lic-card .row { display: flex; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.lic-card .over { color: var(--warn-text); font-weight: 700; }
.sidebar-foot { display: none; }

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 28px; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(8px); }
.search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 10px; color: var(--faint); }
.search:focus-within { border-color: var(--accent); background: var(--panel); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12); }
.search input { background: transparent; border: 0; padding: 7px 0; color: var(--text); outline: none; box-shadow: none; font-size: 13.5px; }
.search input:focus { box-shadow: none; }
.search kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--border); border-radius: 5px; padding: 0 5px; color: var(--faint); background: var(--panel); }
.topbar .spacer { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--panel); color: var(--text-2); font-size: 13px; font-weight: 500; box-shadow: var(--shadow-sm); }
.pill:hover { border-color: var(--border-strong); color: var(--text); }
.pill svg { color: var(--muted); }
.avatar { width: 32px; height: 32px; border-radius: 999px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.who { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text); font-weight: 600; line-height: 1.25; padding: 4px 6px; border-radius: var(--radius-sm); }
.who:hover { background: var(--panel-2); }
.who .role { color: var(--muted); font-size: 12px; font-weight: 500; }
.who-menu { position: relative; }
.who-menu summary { list-style: none; cursor: pointer; }
.who-menu summary::-webkit-details-marker { display: none; }
.who-menu .menu { position: absolute; right: 0; top: 46px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 5px; min-width: 190px; box-shadow: var(--shadow); }
.who-menu .menu a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--text-2); font-size: 13px; }
.who-menu .menu a:hover { background: var(--panel-2); color: var(--text); }
.page { padding: 24px 28px 64px; max-width: 1360px; width: 100%; }
.standalone { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, #d7dbe3 1px, transparent 0);
  background-size: 22px 22px; }

/* --------------------------------------------------------------- pieces */
.eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.actions, .btn-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.actions form { margin: 0; }

.card, .chart-card, .panel-card, .stacked-form, .auth-box {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.card { margin-bottom: 16px; }
.card h2 { margin: 0 0 6px; }
.card > p.muted { margin-top: 0; font-size: 13px; }
.card h3, .chart-card h3, .panel-card h3 { margin: 0 0 14px; font-family: var(--display); font-size: 14.5px; font-weight: 600; color: var(--text); text-transform: none; letter-spacing: -0.005em; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head h3 { margin: 0; }
.card-head a { font-size: 12.5px; font-weight: 600; color: var(--accent-text); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin: 16px 0 24px; }
.card-grid > .card, .card-grid > .card + .card { margin: 0; }
.card.warn-note { background: var(--warn-soft); border-color: var(--warn-line); color: #7a2e0e; }
.card.warn-note strong { color: #7a2e0e; }
.card.warn-note ul { margin: 8px 0 0; padding-left: 18px; }
.stacked-form { max-width: 520px; margin-bottom: 24px; }
.hr { height: 1px; background: var(--border-soft); margin: 16px 0; }

/* buttons */
button, .btn, .btn-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-top: 16px;
  padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--accent); background: var(--accent); color: #fff;
  font: 600 13.5px var(--body); cursor: pointer; text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-sm);
  transition: background-color .12s, border-color .12s, color .12s;
}
button:hover, .btn:hover, .btn-link:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
button[disabled] { opacity: .5; cursor: not-allowed; }
.btn-secondary, .btn-link.btn-secondary, button.btn-secondary { background: var(--panel); border-color: var(--border-strong); color: var(--text); }
.btn-secondary:hover, .btn-link.btn-secondary:hover, button.btn-secondary:hover { background: var(--panel-2); border-color: var(--border-strong); color: var(--text); }
.btn-small, button.btn-small { margin-top: 0; padding: 5px 10px; font-size: 12.5px; font-weight: 600; border-radius: 6px; background: var(--panel); border: 1px solid var(--border-strong); color: var(--text-2); box-shadow: var(--shadow-sm); }
.btn-small:hover, button.btn-small:hover { background: var(--panel-2); border-color: var(--border-strong); color: var(--text); }
.btn-danger, button.btn-danger { background: var(--panel); border: 1px solid var(--danger-line); color: var(--danger); }
.btn-danger:hover, button.btn-danger:hover { background: var(--danger-soft); border-color: #fda29b; color: var(--danger); }
.btn-ghost { background: transparent; border: 1px solid transparent; color: var(--text-2); box-shadow: none; }
.btn-ghost:hover { background: var(--panel-2); color: var(--text); border-color: transparent; }
.page-head .btn, .page-head .btn-link, .actions button, .actions .btn { margin-top: 0; }

/* forms */
form label { display: block; margin: 12px 0 5px; font-size: 12.5px; color: var(--text-2); font-weight: 600; }
input, select, textarea {
  width: 100%; padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--input);
  color: var(--text); font: 14px var(--body); outline: none; box-shadow: var(--shadow-sm); transition: border-color .12s, box-shadow .12s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); box-shadow: none; }
input[type=file] { padding: 6px; }
textarea { min-height: 90px; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 18px; }
.form-grid .span-all { grid-column: 1 / -1; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.inline-form { display: flex; gap: 10px; margin: 14px 0 20px; flex-wrap: wrap; align-items: center; }
.inline-form input, .inline-form select { width: auto; flex: 1; min-width: 160px; }
.inline-form button { margin-top: 0; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); margin: 8px 0 0; font-weight: 500; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.radio-card { flex: 1; min-width: 220px; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); margin: 0; background: var(--panel); font-weight: 400; }
.radio-card:hover { border-color: var(--border-strong); }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.radio-card input { margin-top: 3px; }
.radio-card strong { display: block; margin-bottom: 2px; color: var(--text); }
.rule-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rule-form select { width: auto; }
.rule-form .check { margin: 0; }
.rule-form button { margin-top: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: flex-end; }
.row-actions form { display: flex; gap: 6px; align-items: flex-end; flex-wrap: wrap; margin: 0; }
.row-actions input, .row-actions select { width: auto; min-width: 90px; padding: 6px 9px; font-size: 13px; }
.row-actions button { margin-top: 0; padding: 6px 12px; font-size: 13px; }
details.inline summary { cursor: pointer; color: var(--accent-text); font-size: 13px; font-weight: 600; }

/* filter bar + segmented tabs */
.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin: 16px 0; box-shadow: var(--shadow-sm); }
.filter-bar .field { display: flex; flex-direction: column; gap: 4px; }
.filter-bar .field label { margin: 0; font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.filter-bar .field input, .filter-bar .field select { padding: 6px 9px; font-size: 13px; min-width: 130px; }
.filter-bar .field.grow { flex: 1; min-width: 180px; }
.filter-bar button { margin-top: 0; }
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: #eceef2; border: 1px solid var(--border); flex-wrap: wrap; }
.tabs a { padding: 5px 11px; border-radius: 6px; color: var(--text-2); font-size: 13px; font-weight: 500; }
.tabs a:hover { color: var(--text); }
.tabs a b { font-weight: 600; margin-left: 4px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tabs a.on { background: var(--panel); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.10); }
.tabs a.on b { color: var(--accent-text); }
.tabs a.warn b { color: var(--warn-text); }
.result-summary { color: var(--muted); font-size: 13px; margin: 4px 0 10px; }

/* tables */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.data-table th, .data-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; vertical-align: middle; }
.data-table th { color: var(--muted); font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; background: var(--panel-2); border-bottom-color: var(--border); white-space: nowrap; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #fafbfc; }
.data-table td { font-variant-numeric: tabular-nums; }
.data-table td.time { white-space: nowrap; font-family: var(--mono); font-size: 11.5px; line-height: 1.6; }
.review-cell { white-space: nowrap; }
.review-cell .badge { margin-right: 6px; }
details.review { display: inline-block; vertical-align: middle; }
details.review summary::-webkit-details-marker { display: none; }
details.review[open] summary { background: var(--panel-2); }
.review-form { flex-direction: column; align-items: stretch !important; gap: 6px !important; margin-top: 8px; min-width: 190px; }
.review-form select, .review-form input { width: 100%; padding: 5px 8px; font-size: 12.5px; }
.data-table select { padding: 4px 8px; font-size: 12.5px; width: auto; }
.card .data-table { margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.card .data-table th { background: transparent; border-bottom-color: var(--border-soft); }
.table-wrap { overflow-x: auto; }

/* people */
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person .ini { width: 30px; height: 30px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; flex-shrink: 0; }
.person .nm { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ini.c0 { background: #e0e3ff; color: #3730a3; } .ini.c1 { background: #d1fadf; color: #05603a; }
.ini.c2 { background: #fef0c7; color: #93370d; } .ini.c3 { background: #fce7f6; color: #9e165f; }
.ini.c4 { background: #e0f2fe; color: #026aa2; } .ini.c5 { background: #ccfbef; color: #125d56; }
.ini.none { background: var(--panel-2); color: var(--faint); border: 1px dashed var(--border-strong); }

/* badges and status */
.badge, .state, .tag, .chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.badge { text-transform: none; background: #f2f4f7; color: var(--text-2); border: 1px solid var(--border); }
.badge::before, .dot::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.badge-blocked, .badge-tamper, .badge-detected, .badge-unsanctioned, .badge-blocked-tool, .badge-offline, .badge-never_seen, .badge-red, .badge-EMERGENCY, .badge-UNPROTECTED { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.badge-alert, .badge-warned, .badge-tolerated, .badge-degraded, .badge-stale, .badge-amber, .badge-overridden, .badge-DEGRADED, .badge-NOT_REPORTED { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn-text); }
.badge-allowed, .badge-sanctioned, .badge-healthy, .badge-redacted, .badge-green, .badge-ENFORCING { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.badge-monitored, .badge-violet { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-text); }
.badge-logged, .badge-clipboard, .badge-cancelled, .badge-abandoned, .badge-muted { background: #f2f4f7; border-color: var(--border); color: var(--muted); }
.state { text-transform: uppercase; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; border: 1px solid transparent; }
.state-active { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.state-grace { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn-text); }
.state-restricted { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.state-suspended { background: var(--danger); color: #fff; }
.state-unlicensed { background: #f2f4f7; border-color: var(--border); color: var(--muted); }
.tag { font-size: 11px; padding: 1px 7px; background: #f2f4f7; color: var(--muted); font-weight: 500; border: 1px solid var(--border); }
.chip { background: var(--panel); border: 1px solid var(--border); font-size: 11.5px; font-weight: 500; margin: 2px; color: var(--text-2); }
.key, .pattern, code { font-family: var(--mono); font-size: 12px; color: var(--text-2); word-break: break-all; }
code { background: #f2f4f7; border: 1px solid var(--border-soft); border-radius: 5px; padding: 0 5px; }
code.secret { background: var(--panel-2); border: 1px solid var(--border); padding: 2px 7px; border-radius: 6px; }
.sev-critical { color: #912018; font-weight: 700; } .sev-high { color: var(--danger); font-weight: 600; }
.sev-medium { color: var(--warn-text); font-weight: 600; } .sev-low { color: var(--muted); }
.issue { display: inline-block; font-size: 11.5px; margin: 1px 4px 1px 0; padding: 1px 7px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text-2); }
.issue.high { border-color: var(--danger-line); background: var(--danger-soft); color: var(--danger); } .issue.medium { border-color: var(--warn-line); background: var(--warn-soft); color: var(--warn-text); }

/* notices */
.notice, .alert, .notice-info, .notice-warn, .notice-danger, .mode-banner, .hint {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-radius: var(--radius); padding: 10px 14px; margin: 0 0 16px; font-size: 13.5px; border: 1px solid;
}
.notice { background: var(--ok-soft); border-color: var(--ok-line); color: #054f31; }
.alert, .notice-danger { background: var(--danger-soft); border-color: var(--danger-line); color: #7a271a; }
.notice-warn, .mode-banner { background: var(--warn-soft); border-color: var(--warn-line); color: #7a2e0e; }
.notice-info, .hint { background: var(--accent-soft); border-color: var(--accent-line); color: #2d2a7a; }
.notice a, .alert a, .mode-banner a, .notice-info a, .notice-warn a, .notice-danger a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.license-banner { margin: 0 0 16px; }
.banner-big { align-items: flex-start; padding: 14px 16px; }
.banner-big .ico { width: 34px; height: 34px; border-radius: 8px; background: #fef0c7; color: var(--warn-text); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.banner-big .txt { flex: 1; min-width: 240px; color: var(--text-2); }
.banner-big .txt strong { color: #7a2e0e; }
.banner-big .btn, .banner-big .btn-link { margin-top: 0; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 16px 0 18px; }
.kpi { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 16px 14px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.kpi .v { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--muted); font-size: 13px; margin-top: 2px; }
.kpi.warn { border-color: var(--warn-line); } .kpi.bad { border-color: var(--danger-line); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-ico { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid; }
.kpi-ico svg { width: 17px; height: 17px; }
.kpi-ico.violet { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.kpi-ico.amber { background: var(--warn-soft); border-color: var(--warn-line); color: #dc6803; }
.kpi-ico.green { background: var(--ok-soft); border-color: var(--ok-line); color: #079455; }
.kpi-ico.pink { background: #f0fdf9; border-color: #99f6e0; color: var(--teal); }
.kpi .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 12px; }
.kpi .v small { font-size: 15px; color: var(--muted); font-weight: 500; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; padding: 1px 6px; border-radius: 6px; border: 1px solid; }
.delta.up { color: var(--ok); background: var(--ok-soft); border-color: var(--ok-line); } .delta.down { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-line); }
.delta.neutral { color: var(--muted); background: #f2f4f7; border-color: var(--border); }
.kpi .foot { font-size: 12.5px; color: var(--muted); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.spark { display: block; }
.spark polyline { stroke: var(--accent); }
.spark.amber polyline { stroke: var(--c-warned); }
.stat-row { display: flex; gap: 14px; margin: 16px 0 22px; flex-wrap: wrap; }
.stat-card { flex: 1; min-width: 150px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.stat-card.highlight { border-color: var(--danger-line); }
.stat-num { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* overview */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin-bottom: 16px; }
.hero h1 { font-size: 26px; margin-top: 6px; }
.hero .lead { font-family: var(--display); font-size: 17px; font-weight: 600; margin: 8px 0 2px; color: var(--text); max-width: 760px; letter-spacing: -0.01em; }
.hero .lead em { font-style: normal; color: var(--accent-text); }
.ring-card { display: flex; align-items: center; gap: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 18px 12px 12px; box-shadow: var(--shadow-sm); }
.ring-card .rtxt .t { font-weight: 600; } .ring-card .rtxt .s { font-size: 12.5px; color: var(--muted); }
.ring-track { stroke: var(--border-soft); }
.ring-num { fill: var(--text); font-family: var(--display); }
.ring-sub { fill: var(--muted); font-family: var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.mode-chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--ok-line); background: var(--ok-soft); color: var(--ok); margin-bottom: 6px; }
.mode-chip.monitor { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn-text); }
.dash-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 14px; margin-bottom: 14px; align-items: stretch; }
.dash-grid-3 { display: grid; grid-template-columns: 1.65fr 1fr; gap: 14px; margin-bottom: 14px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.i-blocked { background: var(--c-blocked); } .i-redacted { background: var(--c-redacted); } .i-warned { background: var(--c-warned); } .i-logged { background: var(--c-logged); }
.chart { display: grid; grid-template-columns: 34px 1fr; gap: 8px; margin-top: 16px; }
.yaxis { display: flex; flex-direction: column; justify-content: space-between; height: 200px; font-family: var(--mono); font-size: 10.5px; color: var(--faint); text-align: right; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 200px; position: relative;
  background: repeating-linear-gradient(to bottom, transparent 0 49px, var(--border-soft) 49px 50px); border-bottom: 1px solid var(--border); }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; cursor: default; }
.bar-stack { width: 100%; max-width: 28px; margin: 0 auto; display: flex; flex-direction: column-reverse; border-radius: 4px 4px 0 0; overflow: hidden; min-height: 2px; gap: 1px; }
.bar-stack i { display: block; width: 100%; }
.bar { width: 100%; max-width: 28px; margin: 0 auto; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bar-labels { display: flex; gap: 8px; margin-left: 42px; margin-top: 8px; }
.bar-labels span, .bar-label { flex: 1; text-align: center; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.tip { display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 3; min-width: 150px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; box-shadow: var(--shadow); font-size: 12px; color: var(--text-2); }
.bar-col:hover .tip { display: block; }
.bar-col:hover .bar-stack { box-shadow: 0 0 0 2px var(--accent-line); }
.tip .d { font-weight: 700; color: var(--text); margin-bottom: 6px; }
.tip div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.tip i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 6px; }
.tip .tot { border-top: 1px solid var(--border-soft); margin-top: 6px; padding-top: 6px; font-weight: 700; color: var(--text); }
.found-list { list-style: none; margin: 0; padding: 0; }
.found-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; }
.found-list li:last-child { border-bottom: 0; }
.found-list .bar-bg { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: var(--border-soft); margin-top: -2px; overflow: hidden; }
.found-list .bar-bg i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.found-list .n { font-weight: 700; font-variant-numeric: tabular-nums; }
.top-policy-list { list-style: none; margin: 0; padding: 0; }
.top-policy-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); font-size: 13px; }
.top-policy-list .tp-bar-wrap { flex: 1; height: 5px; background: var(--border-soft); border-radius: 4px; margin: 0 10px; overflow: hidden; }
.top-policy-list .tp-bar { height: 100%; background: var(--accent); border-radius: 4px; }
.top-policy-list .tp-count { color: var(--muted); min-width: 26px; text-align: right; font-variant-numeric: tabular-nums; }
.mini-bar { display: inline-block; height: 5px; background: var(--accent); border-radius: 4px; vertical-align: middle; min-width: 2px; }
.tool-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.tool-row:last-child { border-bottom: 0; }
.tool-logo { width: 32px; height: 32px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.tool-row .nm { font-weight: 600; } .tool-row .sub { font-size: 12px; color: var(--muted); }
.tool-row .badge { margin-left: auto; }
.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.donut-legend div { display: flex; align-items: center; gap: 8px; }
.donut-legend i { width: 9px; height: 9px; border-radius: 2px; }
.donut-legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.empty-note { color: var(--muted); font-size: 13px; padding: 10px 0; }

/* devices: seat meter */
.seat-card { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.seat-meter { height: 10px; border-radius: 999px; background: var(--border-soft); overflow: hidden; display: flex; margin: 12px 0 8px; }
.seat-meter .used { background: var(--accent); }
.seat-meter .free { background: transparent; }
.seat-meter .overflow { background: repeating-linear-gradient(45deg, #f5a524 0 5px, #dc6803 5px 10px); }
.seat-scale { position: relative; height: 16px; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.seat-scale span { position: absolute; top: 0; white-space: nowrap; }
.seat-scale .mark { transform: translateX(-50%); }
.seat-scale .end { right: 0; }
.seat-stats { display: flex; gap: 26px; }
.seat-stats div { text-align: left; }
.seat-stats .n { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.seat-stats .n.warn { color: var(--warn-text); }
.seat-stats .l { font-size: 12px; color: var(--muted); }
.status { display: inline-flex; flex-direction: column; gap: 2px; }
.status .badge { align-self: flex-start; }
.status .line { font-size: 11.5px; color: var(--muted); padding-left: 2px; }
.assign { font-size: 12.5px; color: var(--accent-text); font-weight: 600; }
.assign-form { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr auto auto; gap: 8px; align-items: center; margin-top: 8px; }
.assign-form input { padding: 6px 9px; font-size: 13px; }
.assign-form button { margin-top: 0; padding: 6px 12px; }

/* integrations */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; background: var(--panel-2); font-size: 13px; color: var(--text-2); }
.step b { color: var(--text); display: block; margin-bottom: 4px; font-family: var(--display); font-weight: 600; }
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 12px; }
.section-title h2 { margin: 0; font-size: 17px; }
.section-title span { color: var(--muted); font-size: 13px; }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.int { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm); }
.int.on { border-color: var(--ok-line); }
.int.soon { opacity: .6; }
.int-head { display: flex; align-items: center; gap: 12px; }
.int-logo { width: 38px; height: 38px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; font-size: 12px; color: #fff; flex-shrink: 0; }
.int-head .nm { font-weight: 600; font-size: 14px; } .int-head .sub { font-size: 12px; color: var(--muted); }
.int-head .badge { margin-left: auto; }
.int p { margin: 0; font-size: 13px; color: var(--muted); }
.int .foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.int .foot form { margin: 0; }
.int .foot button, .int .foot .btn { margin-top: 0; }
.int details summary { cursor: pointer; list-style: none; }
summary.btn-small { display: inline-flex; width: auto; list-style: none; cursor: pointer; }
summary.btn-small::-webkit-details-marker { display: none; }
.int details summary::-webkit-details-marker { display: none; }
.int details[open] summary { margin-bottom: 4px; }
.int form label { margin-top: 8px; }
.card.script-open { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.script-box { position: relative; }
.script-box pre { background: #0f172a; border: 1px solid #1e293b; border-radius: var(--radius); padding: 14px; overflow: auto; max-height: 360px; font: 12px/1.55 var(--mono); color: #e2e8f0; margin: 8px 0 0; white-space: pre; }
.steps-list { margin: 8px 0 0; padding-left: 20px; color: var(--text-2); font-size: 13.5px; }
.steps-list li { margin: 6px 0; }
.lg-ms { background: #2563eb; } .lg-ad { background: #0284c7; }
.lg-csv { background: #059669; } .lg-gw { background: #dc2626; }
.lg-okta { background: #475467; } .lg-api { background: #4f46e5; }
.lg-in { background: #1d4ed8; } .lg-gp { background: #0369a1; }
.lg-aws { background: #d97706; } .lg-az { background: #0077c2; }
.lg-rmm { background: #0d9488; } .lg-sec { background: #c11574; }

/* auth */
.auth-box { width: 100%; max-width: 400px; padding: 28px; box-shadow: var(--shadow); }
.auth-box h1 { font-size: 22px; margin-bottom: 4px; }
.auth-box .brand { padding: 0 0 18px; margin-bottom: 20px; }
.auth-box button { width: 100%; }

/* legacy dashboard bits kept for other pages */
.nav-icon-emoji { display: none; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.pagination { display: flex; gap: 6px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 5px 10px; border-radius: 6px; font-size: 13px; color: var(--text-2); border: 1px solid var(--border); background: var(--panel); font-variant-numeric: tabular-nums; }
.pagination a:hover { color: var(--text); border-color: var(--border-strong); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .disabled { opacity: .4; pointer-events: none; }
.content .page a.inline-link, .content .page p a, .content .page td a:not(.btn-small):not(.btn-link) { color: var(--accent-text); }
.content .page p a:hover, .content .page td a:not(.btn-small):not(.btn-link):hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
  .dash-grid, .dash-grid-3 { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .steps3 { grid-template-columns: 1fr; }
  .seat-card { grid-template-columns: 1fr; }
  .assign-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .sidebar { display: none; }
  .page { padding: 18px 16px 40px; }
  .topbar { padding: 0 16px; }
  .topbar .pill, .who .nm { display: none; }
}

/* accounts */
.btn-block { display: block; text-align: center; padding: 9px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--panel); color: var(--text); text-decoration: none; font-weight: 600; box-shadow: var(--shadow-sm); }
.btn-block:hover { background: var(--panel-2); color: var(--text); }
.who-menu .menu form { margin: 0; }
.who-menu .menu .menu-button { display: block; width: 100%; text-align: left; margin: 0; background: transparent; border: 0;
  box-shadow: none; color: var(--text-2); font: 500 13px var(--body); padding: 7px 10px; border-radius: 6px; cursor: pointer; }
.who-menu .menu .menu-button:hover { background: var(--panel-2); color: var(--text); }

/* Dropdowns: menus that aren't clipped by tables */
.who-menu .menu { z-index: 1000; }
.who-menu.row-menu .menu { position: fixed; top: auto; right: auto; z-index: 2000; max-height: calc(100vh - 16px); overflow-y: auto; }
tr[hidden] { display: none; }
.who-menu .menu .menu-section { border-top: 1px solid var(--border-soft); margin-top: 5px; padding-top: 5px; }
.who-menu .menu .menu-label { padding: 6px 10px 4px; color: var(--muted); line-height: 1.5; }
.who-menu .menu .menu-label strong { color: var(--text-2); font-weight: 600; }
.who-menu .menu .menu-button.danger-text { color: var(--danger); }

/* Settings pages: section links, two-column card grid, tidy status lists */
.section-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; position: sticky; top: 60px; z-index: 4;
  padding: 10px 0; background: var(--bg); }
.section-nav a { padding: 5px 11px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-weight: 500;
  color: var(--text-2); text-decoration: none; background: var(--panel); }
.section-nav a:hover { border-color: var(--border-strong); color: var(--text); }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; margin-bottom: 16px; }
.settings-grid > .card { margin: 0; }
.card + .card, .card + .settings-grid, .settings-grid + .card { margin-top: 16px; }
.card h2 { margin-top: 0; }
.card form button[type=submit]:not(.btn-small):not(.menu-button) { margin-top: 14px; }
.form-grid-3 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.inline-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.inline-row select { width: auto; min-width: 150px; padding: 6px 9px; font-size: 13px; }
.inline-row .check { margin: 0; }
.status-list { display: grid; grid-template-columns: minmax(160px, auto) 1fr; gap: 10px 16px; margin: 6px 0 0; align-items: baseline; }
.status-list dt { color: var(--text-2); font-size: 13.5px; }
.status-list dd { margin: 0; }
.menu-inline { display: flex; gap: 6px; padding: 2px 10px 8px; }
.menu-inline input { padding: 6px 9px; font-size: 13px; }
/* Native file pickers in the console's look */
input[type=file] { padding: 5px; cursor: pointer; }
input[type=file]::file-selector-button { margin-right: 10px; padding: 5px 11px; border-radius: 6px; border: 1px solid var(--border-strong);
  background: var(--panel-2); color: var(--text); font: 600 12.5px var(--body); cursor: pointer; }
input[type=file]::file-selector-button:hover { background: #eceef2; }
@media (max-width: 700px) { .settings-grid { grid-template-columns: 1fr; } .status-list { grid-template-columns: 1fr; } }
.settings-grid > .card + .card { margin-top: 0; }
.status-list { grid-template-columns: 1fr; gap: 4px; }
.status-list dt { margin-top: 10px; font-weight: 600; }
.status-list dd { color: var(--text-2); font-size: 13px; }

/* Event details (2.3.0): what was entered, masked */
.event-detail { margin-top: 6px; }
.event-detail summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.event-detail .detail-label { margin: 8px 0 4px; font-size: 12px; font-weight: 600; }
.preview-snippet { font-family: var(--mono); font-size: 12px; white-space: pre-wrap; word-break: break-word; background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; margin: 4px 0; max-width: 560px; }
.detail-kv { grid-template-columns: 130px 1fr; font-size: 12.5px; margin-top: 8px; max-width: 560px; }

/* ------------------------------------------------------------------ the built-in guide (/guide) */
.pill.on { border-color: var(--accent-line); color: var(--accent-text); background: var(--accent-soft); }
.pill.on svg { color: var(--accent); }
.guide { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.guide-toc { position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow: auto; display: flex; flex-direction: column;
             gap: 1px; font-size: 13px; }
.guide-toc b { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 4px 10px 8px; }
.guide-toc a { color: var(--text-2); padding: 5px 10px; border-radius: 6px; }
.guide-toc a:hover { color: var(--text); background: var(--panel); }
.guide-body { max-width: 940px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
              padding: 32px 40px; font-size: 15px; line-height: 1.65; box-shadow: var(--shadow-sm); }
.guide-body h1 { font-family: var(--display); font-size: 28px; line-height: 1.2; margin: 0 0 14px; }
.guide-body h2 { font-family: var(--display); font-size: 21px; margin: 40px 0 10px; padding-top: 22px;
                 border-top: 1px solid var(--border-soft); scroll-margin-top: 90px; }
.guide-body h3 { font-size: 16px; margin: 26px 0 8px; scroll-margin-top: 90px; }
.guide-body p, .guide-body li { color: var(--text-2); }
.guide-body li { margin: 4px 0; }
.guide-body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.guide-body table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 14px; display: block; overflow-x: auto; }
.guide-body th, .guide-body td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.guide-body th { background: var(--panel-2); color: var(--text); }
.guide-body td { color: var(--text-2); }
.guide-body blockquote { margin: 16px 0; padding: 12px 16px; border: 1px solid var(--accent-line); background: var(--accent-soft);
                         border-radius: var(--radius); }
.guide-body blockquote p { margin: 2px 0; }
.guide-body code { font-family: var(--mono); font-size: .86em; background: #f2f4f7; border: 1px solid var(--border-soft);
                   border-radius: 5px; padding: 0 5px; overflow-wrap: anywhere; }
.guide-body figure { margin: 18px 0 26px; }
.guide-body figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border);
                         box-shadow: var(--shadow); }
.guide-body figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.guide-body figure a { display: block; cursor: zoom-in; }
.guide-body figcaption::after { content: " · click to enlarge"; color: var(--faint); }
@media (max-width: 1000px) {
  .guide { grid-template-columns: 1fr; }
  .guide-toc { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; }
  .guide-body { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ------------------------------------------------------------------ detail pages (2.6): events, devices, AI tools */
.crumbs { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-text); }
.crumbs span:last-child { color: var(--text-2); }
.page-head h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.head-badge { font-size: 12.5px; padding: 3px 9px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.detail-main, .detail-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.detail-main > .card, .detail-side > .card { margin: 0; }
.detail-side .card h3 { margin-bottom: 10px; }
@media (max-width: 1100px) { .detail-grid { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 4px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline .tl-step { position: relative; padding: 0 0 18px 30px; }
.timeline .tl-step:last-child { padding-bottom: 0; }
.timeline .tl-step::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 999px;
  background: var(--panel); border: 2px solid var(--border-strong); box-sizing: border-box; }
.timeline .tl-step.tone-accent::before { border-color: var(--accent); background: var(--accent-soft); }
.timeline .tl-step.tone-red::before { border-color: var(--danger); background: var(--danger-soft); }
.timeline .tl-step.tone-amber::before { border-color: #f5a524; background: var(--warn-soft); }
.timeline .tl-step.tone-green::before { border-color: #12b76a; background: var(--ok-soft); }
.timeline .tl-step.tone-violet::before { border-color: var(--accent); background: var(--accent-soft); }
.timeline .tl-step-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.timeline .tl-step-head b { font-size: 14px; font-weight: 600; }
.timeline .tl-step-head time { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.timeline .tl-step p { margin: 3px 0 0; color: var(--text-2); font-size: 13px; }
.timeline .tl-step code.path { display: inline-block; margin-top: 5px; padding: 3px 7px; font-size: 12px; word-break: break-all; }
.timeline .tl-outcome b { font-size: 15px; }
.timeline .tl-step.tone-red.tl-outcome b { color: var(--danger); }
.timeline .tl-step.tone-green.tl-outcome b { color: var(--ok); }
.timeline .tl-step.tone-amber.tl-outcome b { color: var(--warn-text); }

pre.snippet { margin: 0 0 8px; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: 12.5px/1.55 var(--mono); color: var(--text); white-space: pre-wrap; word-break: break-word; }
.facts { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 7px 12px; margin: 0; font-size: 13px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.facts dd a { color: var(--accent-text); }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 0;
  border-bottom: 1px solid var(--border-soft); color: var(--text-2); font-size: 12.5px; }
.mini-list li:last-child a { border-bottom: 0; }
.mini-list li a:hover { color: var(--text); }
.mini-list .ml-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list time { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.review-side { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.review-side select, .review-side input { padding: 6px 9px; font-size: 13px; }
.review-side button { align-self: flex-start; margin-top: 2px; }
.issues { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }

.person-lg { gap: 14px; }
.person-lg .ini { width: 44px; height: 44px; font-size: 15px; }
.person-lg h1 { margin: 0; }
.person-lg p { margin: 2px 0 0; color: var(--muted); }
.tool-logo-lg { width: 44px; height: 44px; font-size: 14px; border-radius: 10px; }
.tabs.period a { padding: 4px 9px; font-size: 12.5px; }

/* things that open a detail page */
a.kpi-link { display: block; color: var(--text); transition: border-color .12s, box-shadow .12s, transform .12s; }
a.kpi-link:hover { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--text); }
a.kpi-link .l { margin: 0 0 6px; }
.kpi-link .kpi-go { position: absolute; top: 14px; right: 14px; color: var(--faint); }
a.kpi-link:hover .kpi-go { color: var(--accent); }
a.ring-card { color: var(--text); }
a.ring-card:hover { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--text); }
.data-table.clickable tbody tr[data-href] { cursor: pointer; }
.data-table.clickable tbody tr[data-href]:hover td { background: var(--accent-soft); }
.data-table td.open-cell { width: 1%; white-space: nowrap; text-align: right; }
a.bar-col { text-decoration: none; }
.found-list li > a, .found-list li > span:first-child { color: var(--text); }
.found-list li > a:hover { color: var(--accent-text); }
a.tool-row { color: var(--text); }
a.tool-row:hover .nm { color: var(--accent-text); }
.donut-legend a { display: flex; align-items: center; gap: 8px; width: 100%; color: var(--text); }
.donut-legend a:hover { color: var(--accent-text); }
.filter-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: -4px 0 10px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-text); }
.filter-chip:hover { background: #e2e5ff; color: var(--accent-hover); }
.week-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; border-bottom: 1px solid var(--border); padding-top: 6px; }
.week-bars .wk { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; position: relative; }
.week-bars .wk i { display: block; width: 100%; max-width: 30px; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; }
.week-bars .wk span { position: absolute; bottom: -18px; font-family: var(--mono); font-size: 10px; color: var(--faint); }
.week-bars { margin-bottom: 22px; }
.tool-row > .btn-small { margin-left: auto; }

/* ------------------------------------------------------------------ agent updates (2.6) */
.release-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.release-version { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
pre.snippet.notes { font-family: var(--body); font-size: 13px; white-space: pre-wrap; }
.update-form { display: flex; flex-direction: column; gap: 8px; }
.update-form .radio-card { min-width: 0; }
.update-form .radio-card > span { display: flex; flex-direction: column; gap: 4px; }
.update-form .radio-card .rc-sub { display: block; color: var(--text-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.update-form .radio-card select { width: auto; max-width: 260px; padding: 5px 8px; font-size: 13px; }
.update-form button { align-self: flex-start; margin-top: 4px; }
.auto-row { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.bulk-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; padding: 8px 12px;
  background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius); }
.bulk-bar button { margin: 0; }
.data-table th.pick, .data-table td.pick { width: 1%; padding-right: 0; }
.device-update { margin-top: 10px; }
.device-update button { margin: 0; }
.nav-count.nav-new { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-text); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.facts dd .badge { margin-left: 4px; }
.update-form .radio-card .rc-sub a { color: var(--accent-text); }

/* Trial or Enterprise (plan_gate.py): what a trial doesn't include */
.nav-count.nav-lock { background: #f2f4f7; border-color: var(--border); color: var(--muted); font-size: 10px; font-weight: 600; }
.plan-features { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.plan-features li { font-size: 13.5px; line-height: 1.45; }
.plan-features li.off { color: var(--muted); }
.plan-lock { margin: 12px 0; }
.plan-lock-note { margin: 2px 0 6px; color: var(--muted); }
