/* Morning-Rounds — Web UI Stylesheet */
:root {
    --bg:        #0f172a;
    --surface:   #1e293b;
    --surface2:  #263548;
    --border:    #334155;
    --text:      #e2e8f0;
    --muted:     #94a3b8;
    --accent:    #38bdf8;
    --ok:        #22c55e;
    --warn:      #f59e0b;
    --crit:      #ef4444;
    --nav-bg:    #020617;
    --inner-bg:  #0d1929;
    --row-hover: rgba(255,255,255,.02);
    --shadow:    0 1px 2px rgba(0,0,0,.28);
    --shadow-lg: 0 10px 30px rgba(0,0,0,.40);
    --accent-soft: rgba(56,189,248,.14);
    --ok-soft:   rgba(34,197,94,.14);
    --warn-soft: rgba(245,158,11,.14);
    --crit-soft: rgba(239,68,68,.14);
    --font:      'Segoe UI', Arial, Helvetica, sans-serif;
}

/* ── Dark themes ── */
html.theme-obsidian {
    --bg: #0a0a0f; --surface: #131318; --surface2: #1c1c24; --border: #2a2a38;
    --text: #e8e8f4; --muted: #7878a0; --accent: #00d4ff;
    --nav-bg: #060609; --inner-bg: #0e0e14;
}
html.theme-ocean {
    --bg: #050d1c; --surface: #0a1828; --surface2: #0f2035; --border: #163050;
    --text: #c8dff5; --muted: #5080a0; --accent: #06b6d4;
    --nav-bg: #030810; --inner-bg: #060f18;
}
html.theme-forest {
    --bg: #06130a; --surface: #0a2010; --surface2: #112818; --border: #1a3822;
    --text: #c4e8cc; --muted: #508858; --accent: #22c55e;
    --nav-bg: #030c06; --inner-bg: #07100a;
}
html.theme-amethyst {
    --bg: #0c0814; --surface: #150d22; --surface2: #1e1230; --border: #2c1c48;
    --text: #e0d4f8; --muted: #8060b8; --accent: #c084fc;
    --nav-bg: #08050e; --inner-bg: #0f0818;
}
html.theme-crimson {
    --bg: #150808; --surface: #220e0e; --surface2: #2c1414; --border: #401818;
    --text: #f0d8d8; --muted: #a06060; --accent: #f87171;
    --nav-bg: #0e0505; --inner-bg: #160808;
}
html.theme-amber {
    --bg: #12100a; --surface: #1e1a0e; --surface2: #272212; --border: #3d3018;
    --text: #f0e8cc; --muted: #aa8844; --accent: #fbbf24;
    --nav-bg: #0c0a06; --inner-bg: #161208;
}
/* Atlas (2026-10-21): the old dark black/white Atlas colour swap is replaced by the Atlas design in
   web/public/atlas.css (a light theme, loaded last by the page shell). */

/* ── Light themes ──
   Light mode lifts cards with shadow elevation (see html.theme-is-light below),
   so page bg is a soft neutral and cards stay pure white. Borders are a step
   stronger than the page so panels read even before the shadow. */
html.theme-slate {
    --bg: #f1f5f9; --surface: #ffffff; --surface2: #e2e8f0; --border: #cbd5e1;
    --text: #0f172a; --muted: #64748b; --accent: #2563eb;
    --ok: #16a34a; --warn: #d97706; --crit: #dc2626;
    --nav-bg: #ffffff; --inner-bg: #eef2f7; --row-hover: rgba(15,23,42,.035);
}
html.theme-cloud {
    --bg: #f4f4f5; --surface: #ffffff; --surface2: #e4e4e7; --border: #d4d4d8;
    --text: #18181b; --muted: #52525b; --accent: #4f46e5;
    --ok: #16a34a; --warn: #b45309; --crit: #dc2626;
    --nav-bg: #ffffff; --inner-bg: #efeff1; --row-hover: rgba(0,0,0,.035);
}
html.theme-glacier {
    --bg: #eef6fd; --surface: #ffffff; --surface2: #d8ecfb; --border: #a9d3ef;
    --text: #0c2a3f; --muted: #2f6d96; --accent: #0284c7;
    --ok: #16a34a; --warn: #b45309; --crit: #dc2626;
    --nav-bg: #ffffff; --inner-bg: #e3f1fb; --row-hover: rgba(8,47,73,.04);
}
html.theme-meadow {
    --bg: #eef8f1; --surface: #ffffff; --surface2: #d6f0de; --border: #a9dcb8;
    --text: #052e16; --muted: #2f6b46; --accent: #15803d;
    --ok: #15803d; --warn: #b45309; --crit: #dc2626;
    --nav-bg: #ffffff; --inner-bg: #e3f4e8; --row-hover: rgba(5,46,22,.04);
}
html.theme-blossom {
    --bg: #fdeff2; --surface: #ffffff; --surface2: #fbdde4; --border: #f3bccb;
    --text: #4a0d1c; --muted: #9f2d44; --accent: #e11d48;
    --ok: #16a34a; --warn: #b45309; --crit: #be123c;
    --nav-bg: #ffffff; --inner-bg: #fbe6ea; --row-hover: rgba(74,13,28,.04);
}
html.theme-daybreak {
    --bg: #fff7ec; --surface: #ffffff; --surface2: #ffead3; --border: #fbcf9e;
    --text: #2a1304; --muted: #9a5621; --accent: #ea580c;
    --ok: #16a34a; --warn: #c2570a; --crit: #dc2626;
    --nav-bg: #ffffff; --inner-bg: #fff1e0; --row-hover: rgba(42,19,4,.04);
}
html.theme-dusk {
    --bg: #f6f6f4; --surface: #ffffff; --surface2: #eaeae6; --border: #d9d9d3;
    --text: #191917; --muted: #6b6b66; --accent: #2383e2;
    --ok: #16a34a; --warn: #b45309; --crit: #dc2626;
    --nav-bg: #ffffff; --inner-bg: #efefec; --row-hover: rgba(25,25,23,.035);
}

/* ── Shared light-theme adjustments ── */
/* Light-mode elevation + status tints: drop-shadows do the depth work that
   bg/surface lightness does in dark mode. Neutral-tinted, never pure black. */
html.theme-is-light {
    --shadow:    0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.05);
    --shadow-lg: 0 10px 28px rgba(15,23,42,.14), 0 3px 8px rgba(15,23,42,.08);
    --accent-soft: rgba(37,99,235,.10);
    --ok-soft:   rgba(22,163,74,.12);
    --warn-soft: rgba(217,119,6,.14);
    --crit-soft: rgba(220,38,38,.10);
}
html.theme-is-light .kpi-blue   { color: var(--accent); }
html.theme-is-light .kpi-purple { color: #7c3aed; }
html.theme-is-light .hc-status-ok   { background: #dcfce7; border-color: #16a34a; }
html.theme-is-light .hc-status-warn { background: #fef3c7; border-color: #d97706; }
html.theme-is-light .hc-status-crit { background: #fee2e2; border-color: #ef4444; }
html.theme-is-light .hc-nav-link:hover,
html.theme-is-light .hc-nav-config:hover { background: var(--surface2); }
html.theme-is-light .hc-nav-active,
html.theme-is-light .hc-nav-config.hc-nav-active { background: var(--surface2) !important; }
html.theme-is-light .hc-theme-btn:hover { background: var(--surface2); }
html.theme-is-light .hc-nav {
    background: rgba(248,250,252,0.97);
    box-shadow: 0 1px 8px rgba(0,0,0,.12);
}
html.theme-is-light .hc-nav-link { color: #374151; }
html.theme-is-light .hc-nav-link:hover { color: #111827; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navigation ── */
.hc-nav {
    background: var(--nav-glass, var(--nav-bg));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 28px;
    height: 54px;
    position: sticky;
    top: 0;
    z-index: 200;
    gap: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

.hc-nav-brand {
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.hc-nav-brand .bolt { color: var(--accent); font-size: 18px; }

.hc-nav-links { display: flex; gap: 2px; flex: 1; }

.hc-nav-link {
    color: var(--muted);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.hc-nav-link:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.hc-nav-active { background: var(--surface); color: var(--accent) !important; border: 1px solid var(--border); }

.hc-nav-config {
    color: var(--muted);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    transition: background .15s, color .15s;
    white-space: nowrap;
    border: 1px solid var(--border);
}
.hc-nav-config:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.hc-nav-config.hc-nav-active { background: var(--surface); color: var(--accent) !important; }

.hc-nav-time { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ── Layout ── */
.hc-main { padding: 28px 36px; max-width: 1440px; margin: 0 auto; }
.hc-main.hc-main-wide { max-width: none; }

.hc-footer {
    text-align: center;
    padding: 18px;
    color: var(--muted);
    font-size: 11px;
    border-top: 1px solid var(--border);
    margin-top: 48px;
}

/* ── Page header ── */
.hc-page-header { margin-bottom: 24px; }
.hc-page-header h1 { font-size: 22px; font-weight: 800; line-height: 1.2; }
.hc-page-header .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ── Cards ── */
.hc-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.hc-card-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

/* ── Status banner ── */
.hc-status-banner {
    border-radius: 10px;
    padding: 22px 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid;
}
.hc-status-ok   { background: linear-gradient(135deg, #052e16 0%, #0a4a23 60%, #052e16 100%); border-color: #166534; }
.hc-status-warn { background: linear-gradient(135deg, #431407 0%, #6b1e0b 60%, #431407 100%); border-color: #92400e; }
.hc-status-crit { background: linear-gradient(135deg, #0e0808 0%, #1e0e0e 40%, #2a1212 60%, #160a0a 100%); border-color: #6b2020; }

.hc-status-label { font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; }
.hc-status-sub   { font-size: 12px; color: var(--muted); margin-top: 4px; }
.hc-status-score { font-size: 62px; font-weight: 900; line-height: 1; }
.hc-status-grade { font-size: 11px; color: var(--muted); text-align: right; margin-top: 3px; }

/* ── KPI Row (flex, used on Certificates tab) ── */
.hc-kpi-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hc-kpi-row .hc-kpi { flex: 1 1 160px; }

/* ── KPI Grid ── */
.hc-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}
.hc-kpi {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow);
}
.hc-kpi-value { font-size: 34px; font-weight: 900; line-height: 1.1; }
/* KPI chips (used on Hypervisors/VM fleet cards) — previously unstyled */
.hc-kpi-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 88px;
    box-shadow: var(--shadow);
}
.hc-kpi-val { font-size: 22px; font-weight: 800; line-height: 1.1; color: var(--text); }
.hc-kpi-lbl { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 3px; }
.hc-kpi-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 7px;
}
.kpi-blue   { color: var(--accent); }
.kpi-green  { color: var(--ok); }
.kpi-amber  { color: var(--warn); }
.kpi-red    { color: var(--crit); }
.kpi-purple { color: #a78bfa; }

/* ── Tables ── */
.hc-table-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid var(--border); }
.hc-table { width: 100%; border-collapse: collapse; }
/* #30 Sortable column affordance (headers enhanced by hc.js) */
.hc-table th[data-hc-sortable] { cursor: pointer; user-select: none; white-space: nowrap; }
.hc-table th[data-hc-sortable]::after { content: '\2195'; opacity: .3; margin-left: 5px; font-size: .85em; }
.hc-table th[data-hc-dir='asc']::after { content: '\2191'; opacity: .9; }
.hc-table th[data-hc-dir='desc']::after { content: '\2193'; opacity: .9; }
/* #29 Skeleton loaders for async-hydrated panels */
@keyframes hc-skel-shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.hc-skel-line {
    height: 11px; border-radius: 5px; margin: 10px 0;
    background: linear-gradient(90deg, var(--surface2) 25%, rgba(255,255,255,.08) 37%, var(--surface2) 63%);
    background-size: 800px 100%;
    animation: hc-skel-shimmer 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .hc-skel-line { animation: none; } }
.hc-skel-line.w90 { width: 90%; } .hc-skel-line.w80 { width: 80%; }
.hc-skel-line.w70 { width: 70%; } .hc-skel-line.w40 { width: 40%; }
/* #89 Table CSV export button */
.hc-csv-bar { display: flex; justify-content: flex-end; gap: 6px; margin: 0 0 6px; }
/* #90 Column show/hide menu */
.hc-col-menu { position: relative; display: inline-block; }
.hc-col-menu > summary { list-style: none; cursor: pointer; background: var(--surface2); color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px; font-size: 11px; font-family: inherit; user-select: none; }
.hc-col-menu > summary::-webkit-details-marker { display: none; }
.hc-col-menu > summary:hover, .hc-col-menu[open] > summary { color: var(--text); border-color: var(--accent); }
.hc-col-menu-body { position: absolute; right: 0; top: 100%; margin-top: 4px; z-index: 50; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; min-width: 160px; max-height: 280px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.hc-col-menu-body label { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text); padding: 3px 0; cursor: pointer; white-space: nowrap; }
.hc-csv-btn {
    background: var(--surface2); color: var(--muted); border: 1px solid var(--border);
    border-radius: 6px; padding: 3px 10px; font-size: 11px; font-family: inherit;
    cursor: pointer; transition: color .15s, border-color .15s;
}
.hc-csv-btn:hover { color: var(--text); border-color: var(--accent); }
.hc-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid var(--border);
    background: var(--surface2);
    white-space: nowrap;
}
.hc-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: middle; }
.hc-table tr:last-child td { border-bottom: none; }
/* #60 Subtle zebra striping (hover rule below is more specific, so it still wins) */
.hc-table tbody tr:nth-child(even) td { background: var(--row-hover); }
.hc-table tr:hover td { background: var(--row-hover); }
.hc-table .plat-row td {
    background: var(--surface2);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 8px 14px;
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
}

/* ── Badges ── */
.badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge-crit { background: color-mix(in srgb, var(--crit) 15%, transparent);  color: var(--crit); border: 1px solid color-mix(in srgb, var(--crit) 40%, transparent); }
.badge-warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.badge-ok   { background: color-mix(in srgb, var(--ok) 15%, transparent);  color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.badge-info { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.badge-mute { background: rgba(148,163,184,.1); color: var(--muted); border: 1px solid var(--border); }

/* ── Score pill ── */
.score-pill { display: inline-block; padding: 3px 13px; border-radius: 20px; font-weight: 800; font-size: 14px; color: #fff; min-width: 44px; text-align: center; }
.score-high { background: var(--ok); }
.score-mid  { background: var(--warn); }
.score-low  { background: var(--crit); }

/* ── Filter bar ── */
.hc-filters {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 18px;
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.hc-filter-group { display: flex; flex-direction: column; gap: 5px; }
.hc-filter-group label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.hc-filter-group select,
.hc-filter-group input[type=date],
.hc-filter-group input[type=text] {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    padding: 7px 10px;
    font-size: 13px;
    font-family: inherit;
    min-width: 160px;
}
.hc-filter-group select:focus,
.hc-filter-group input:focus { outline: 1px solid var(--accent); border-color: var(--accent); }

/* ── Buttons ── */
.hc-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
    transition: opacity .15s;
    white-space: nowrap;
    vertical-align: middle;
}
.hc-btn:hover { opacity: .82; }
.hc-btn-primary   { background: var(--accent); color: #0f172a; border-color: var(--accent); }
.hc-btn-secondary { background: var(--surface2); color: var(--text); border-color: var(--border); }
.hc-btn-danger    { background: transparent; color: var(--crit); border-color: var(--crit); }
.hc-btn-sm        { padding: 4px 12px; font-size: 12px; border-radius: 5px; }

/* ── Form ── */
.hc-form { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 22px 26px; margin-bottom: 20px; }
.hc-form-title { font-size: 13px; font-weight: 700; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.hc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.hc-form-group { margin-bottom: 14px; }
.hc-form-group label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.hc-form-group input,
.hc-form-group select,
.hc-form-group textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
}
.hc-form-group textarea { min-height: 72px; resize: vertical; }
.hc-form-group input:focus,
.hc-form-group select:focus,
.hc-form-group textarea:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
.hc-form-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.hc-form-actions { margin-top: 18px; display: flex; gap: 10px; }

/* ── Accordion ── */
details.hc-group { border-radius: 0 6px 6px 0; margin-bottom: 4px; overflow: hidden; }
details.hc-group > summary { padding: 8px 12px 8px 14px; cursor: pointer; background: var(--surface2); display: flex; align-items: center; justify-content: space-between; list-style: none; user-select: none; }
details.hc-group > summary::-webkit-details-marker { display: none; }
details.hc-group > summary::marker { display: none; }
details.hc-group[open] > summary { border-bottom: 1px solid var(--border); }
.hc-group-inner { background: var(--inner-bg); border-left: 3px solid transparent; }

/* ── Alerts / Flash ── */
.hc-alert { padding: 12px 18px; border-radius: 8px; margin-bottom: 18px; font-size: 13px; font-weight: 500; }
.hc-alert-ok  { background: color-mix(in srgb, var(--ok) 10%, transparent);  border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent);  color: var(--ok); }
.hc-alert-err { background: color-mix(in srgb, var(--crit) 10%, transparent);  border: 1px solid color-mix(in srgb, var(--crit) 30%, transparent);  color: var(--crit); }
.hc-alert-inf { background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); color: var(--accent); }

/* ── Progress bar ── */
.hc-bar-track { display: inline-block; background: var(--border); border-radius: 4px; height: 8px; width: 120px; vertical-align: middle; overflow: hidden; }
.hc-bar-fill  { height: 8px; border-radius: 4px; }
/* Threshold-marker variant (Get-HcBar -ShowThresholds): ticks need an absolutely-positioned
   fill within a relatively-positioned, non-clipping track. Scoped via :has() to only the
   variant that actually has tick children, rather than duplicating .hc-bar-track/.hc-bar-fill
   wholesale further down the file (which silently applied to every plain bar too). */
.hc-bar-track:has(.hc-bar-tick) { overflow: visible; position: relative; }
.hc-bar-track:has(.hc-bar-tick) > .hc-bar-fill { position: absolute; top: 0; left: 0; }

/* ── Utility ── */
.mono   { font-family: 'Consolas', 'Courier New', monospace; font-size: 12px; }
.muted  { color: var(--muted); }
.tr     { text-align: right; }
.tc     { text-align: center; }
.nowrap { white-space: nowrap; }
.fw700  { font-weight: 700; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); font-size: 14px; }
.empty-state .big { font-size: 40px; margin-bottom: 12px; }

/* ── Theme picker button ── */
.hc-theme-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--muted);
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    padding: 5px 10px;
    transition: background .15s, color .15s;
    font-family: inherit;
}
.hc-theme-btn:hover { background: var(--surface); color: var(--text); }

/* ── Action banner (dismissable critical alert) ── */
.hc-action-banner {
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.4);
    border-left: 4px solid var(--crit);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--crit);
}
.hc-action-banner a { color: var(--crit); text-decoration: underline; }
.hc-action-banner .hc-dismiss { cursor: pointer; opacity: .6; font-size: 18px; line-height: 1; background: none; border: none; color: var(--crit); padding: 0 4px; }
.hc-action-banner .hc-dismiss:hover { opacity: 1; }

/* ── Heatmap grid ── */
.hc-heatmap { display: inline-grid; gap: 2px; }
.hc-heatmap-cell {
    width: 16px; height: 16px; border-radius: 3px; cursor: default;
    transition: transform .1s;
}
.hc-heatmap-cell:hover { transform: scale(1.25); z-index: 1; position: relative; }
.hc-hm-ok   { background: var(--ok); }
.hc-hm-warn { background: var(--warn); }
.hc-hm-crit { background: var(--crit); }
.hc-hm-none { background: var(--border); }

/* ── Inline-edit cell ── */
.hc-inline-edit { cursor: text; position: relative; }
.hc-inline-edit:hover { background: rgba(56,189,248,.08); border-radius: 4px; }
.hc-inline-edit::after { content: ' ✎'; opacity: 0; font-size: 10px; color: var(--accent); }
.hc-inline-edit:hover::after { opacity: .6; }
.hc-inline-input {
    background: var(--bg); border: 1px solid var(--accent); border-radius: 4px;
    color: var(--text); font-family: inherit; font-size: inherit;
    padding: 2px 6px; width: 100%; outline: none;
}

/* ── Streak badge ── */
.hc-streak { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; white-space: nowrap; }
.hc-streak-ok   { background: rgba(34,197,94,.15);  color: var(--ok);  border: 1px solid rgba(34,197,94,.3); }
.hc-streak-fail { background: rgba(239,68,68,.15);  color: var(--crit); border: 1px solid rgba(239,68,68,.3); }

/* ── Broad-scope suppression badge ── */
.hc-broad-badge { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 10px; font-weight: 700; background: rgba(245,158,11,.15); color: var(--warn); border: 1px solid rgba(245,158,11,.4); white-space: nowrap; }

/* ── Report preview drawer (Reports, its History pages, Guides; hc.js hcOpenDrawer) ── */
/* wide enough for a report at its desktop layout; the whole screen on a phone */
.hc-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(1240px, 94vw);
    background: var(--surface); border-left: 1px solid var(--border);
    box-shadow: -8px 0 32px rgba(0,0,0,.4); z-index: 1000;
    display: flex; flex-direction: column;
    transform: translateX(105%); visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
}
.hc-drawer.open { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
.hc-drawer-header { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 52px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.hc-drawer-nav, .hc-drawer-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.hc-drawer-nav .hc-btn { min-width: 34px; padding-left: 8px; padding-right: 8px; font-size: 17px; line-height: 1; }
.hc-drawer-nav .hc-btn[hidden] { display: none; }
.hc-drawer-actions a.hc-btn { text-decoration: none; }
.hc-drawer-ttl { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.hc-drawer-ttl #hc-drawer-title { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-drawer-pos { font-size: 11px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hc-drawer-close { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 24px; line-height: 1; padding: 2px 6px; }
.hc-drawer-close:hover, .hc-drawer-close:focus-visible { color: var(--text); }
.hc-drawer-body { flex: 1; overflow: hidden; position: relative; background: #fff; }
.hc-drawer-body iframe { display: block; width: 100%; height: 100%; border: none; background: #fff; }
.hc-drawer-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #fff; color: #5f5f5f; font-size: 13px; }
.hc-drawer-loading[hidden] { display: none; }
.hc-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 999; display: none; }
.hc-drawer-overlay.open { display: block; }
html.hc-drawer-lock { overflow: hidden; }
@media (max-width: 760px) {
    .hc-drawer { width: 100vw; border-left: 0; }
    .hc-drawer-header { flex-wrap: wrap; row-gap: 8px; }
    .hc-drawer-ttl { order: -1; flex-basis: 100%; }
    .hc-drawer-actions { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .hc-drawer, .hc-drawer.open { transition: none; } }

/* ── Progress bar with threshold markers ── */
/* .hc-bar-track/.hc-bar-fill overrides for this variant now live with the base
   definitions above (scoped via :has(.hc-bar-tick)) instead of being duplicated here. */
.hc-bar-tick  { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--bg); opacity: .7; border-radius: 1px; pointer-events: none; }

/* ── SVG line chart (area sparkline) ── */
.hc-chart-svg { display: block; overflow: visible; }

/* ── Expiry urgency text colours ── */
.expiry-soon  { color: var(--warn); font-weight: 700; }
.expiry-crit  { color: var(--crit); font-weight: 700; }

/* ── Outcome badge ── */
.badge-clean { background: rgba(34,197,94,.15); color: var(--ok); border: 1px solid rgba(34,197,94,.4); }
.badge-err   { background: rgba(148,163,184,.1); color: var(--muted); border: 1px solid var(--border); }

/* ═══════════════════════════════════════════════════════════════════════════
   Batch 1 — Visual improvements
   ═══════════════════════════════════════════════════════════════════════════ */

/* #1 — Glassmorphism nav: per-theme semi-transparent glass variables */
:root               { --nav-glass: rgba(2,6,23,.85); }
html.theme-obsidian { --nav-glass: rgba(6,6,9,.85); }
html.theme-ocean    { --nav-glass: rgba(3,8,16,.85); }
html.theme-forest   { --nav-glass: rgba(3,12,6,.85); }
html.theme-amethyst { --nav-glass: rgba(8,5,14,.85); }
html.theme-crimson  { --nav-glass: rgba(14,5,5,.85); }
html.theme-amber    { --nav-glass: rgba(12,10,6,.85); }
html.theme-atlas    { --nav-glass: rgba(0,0,0,.9); }
html.theme-is-light { --nav-glass: rgba(255,255,255,.93); }

/* #4 — Pulse dot on last-run badge */
@keyframes hc-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}
.hc-pulse-dot { animation: hc-pulse 2s ease-in-out infinite; display: inline-block; }

/* #6 — Status banner sweep shimmer */
@keyframes hc-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}
.hc-status-banner { position: relative; overflow: hidden; }
.hc-status-banner::after {
    content: '';
    position: absolute; top: 0; left: 0; width: 45%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
    animation: hc-shimmer 4.5s linear infinite;
    pointer-events: none;
}

/* #7 — Table row stagger fade-in */
@keyframes hc-row-in {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hc-table tbody tr:not(.plat-row) {
    animation: hc-row-in .22s ease both;
}

/* #13 — KPI card traffic-light top accent border */
.hc-kpi:has(.kpi-green)  { border-top: 3px solid var(--ok); }
.hc-kpi:has(.kpi-amber)  { border-top: 3px solid var(--warn); }
.hc-kpi:has(.kpi-red)    { border-top: 3px solid var(--crit); }
.hc-kpi:has(.kpi-blue)   { border-top: 3px solid #60a5fa; }
.hc-kpi:has(.kpi-purple) { border-top: 3px solid #a78bfa; }

/* #24 — Platform group row collapse */
.plat-row { cursor: pointer; user-select: none; }
.plat-row:hover { filter: brightness(1.12); }
.plat-row-hidden { display: none !important; }
.plat-toggle { display: inline-block; transition: transform .18s; margin-right: 6px; font-size: 9px; opacity: .6; }
.plat-row.collapsed .plat-toggle { transform: rotate(-90deg); }

/* ═══════════════════════════════════════════════════════════════════════════
   Batch 7–9 — Additional visual polish
   ═══════════════════════════════════════════════════════════════════════════ */

/* Card hover lift */
.hc-card { transition: box-shadow .2s, transform .2s; }
.hc-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }

/* Critical row pulse animation */
@keyframes hc-crit-pulse {
    0%, 100% { background: transparent; }
    50%       { background: rgba(239,68,68,.07); }
}
/* Score pill glow */
.score-high { box-shadow: 0 0 10px rgba(34,197,94,.35); }
.score-mid  { box-shadow: 0 0 10px rgba(245,158,11,.35); }
.score-low  { box-shadow: 0 0 10px rgba(239,68,68,.35); }

/* kbd element styling (keyboard shortcut hints) */
kbd {
    display: inline-block;
    font-family: 'Consolas','Courier New',monospace;
    font-size: 10px;
    font-weight: 700;
    background: var(--surface2);
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 5px;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(0,0,0,.3);
}

/* Scroll-to-top button (sat at bottom:136px to clear the floating Live Events
   button, which was removed 2026-10-22) */
.hc-scroll-top {
    position: fixed; bottom: 80px; right: 24px; z-index: 500;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 50%; width: 38px; height: 38px;
    display: none; align-items: center; justify-content: center;
    color: var(--muted); cursor: pointer; font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    transition: background .15s, color .15s, opacity .2s;
}
.hc-scroll-top.visible { display: flex; }
.hc-scroll-top:hover { background: var(--surface2); color: var(--text); }

/* Improve details/summary accordion hover */
details.hc-group > summary:hover { background: var(--surface2); }
details.hc-group { transition: box-shadow .15s; }
details.hc-group[open] { box-shadow: 0 2px 10px rgba(0,0,0,.15); }

/* KPI card hover */
.hc-kpi { transition: box-shadow .2s, transform .2s; }
.hc-kpi:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* Page transition fade-in */
@keyframes hc-page-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* 'backwards', not 'both': a kept transform would make .hc-main the containing block for every
   position:fixed element inside it (side panels, drawers), so they scrolled away with the page. */
.hc-main { animation: hc-page-in .25s ease backwards; }

/* ── Quick search (Ctrl+K), rebuilt 2026-11-07: web/public/hc.js builds it; pages first, then the systems,
   then everything else from /api/search. Colour means something: the place or platform on the tile, the score
   in its colour, CRITICAL and WARNING words, a tenant in pink. ── */
.hc-qs-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:9999;display:flex;align-items:flex-start;justify-content:center;padding:80px 16px 16px;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);}
.hc-qs{background:var(--surface);border:1px solid var(--border);border-radius:10px;width:660px;max-width:100%;box-shadow:0 24px 60px rgba(0,0,0,.5);overflow:hidden;display:flex;flex-direction:column;max-height:min(72vh,680px);animation:hc-qs-in .14s ease-out;}
@keyframes hc-qs-in{from{opacity:0;transform:translateY(-6px) scale(.985);}to{opacity:1;transform:none;}}
.hc-qs-h{display:flex;align-items:center;gap:10px;padding:0 14px 0 16px;border-bottom:1px solid var(--border);flex:none;}
.hc-qs-h>svg{width:18px;height:18px;color:var(--muted);flex:none;}
.hc-qs-h input{flex:1;min-width:0;padding:15px 0;background:transparent;border:0;color:var(--text);font-size:15px;outline:none;font-family:inherit;}
.hc-qs-h input::placeholder{color:var(--muted);}
.hc-qs-h kbd,.hc-qs-f kbd{font:600 10.5px/1 ui-monospace,Consolas,monospace;background:var(--surface2);color:var(--muted);border:1px solid var(--border);border-radius:4px;padding:3px 6px;}
.hc-qs-h kbd{cursor:pointer;}
.hc-qs-b{overflow-y:auto;flex:1;min-height:0;padding-bottom:4px;}
.hc-qs-s{display:flex;align-items:center;gap:8px;padding:10px 16px 4px;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);}
.hc-qs-s::before{content:'';width:8px;height:8px;border-radius:2px;background:var(--c,var(--border));flex:none;}
.hc-qs-s em{font-style:normal;margin-left:auto;font-variant-numeric:tabular-nums;font-weight:700;}
.hc-qs-row{display:flex;align-items:center;gap:11px;padding:8px 16px;color:var(--text);text-decoration:none;font-size:13px;cursor:pointer;}
.hc-qs-row:hover,.hc-qs-row.sel{background:var(--surface2);text-decoration:none;color:var(--text);}
.hc-qs-row.sel{box-shadow:inset 3px 0 0 var(--accent);}
.hc-qs-tile{flex:none;width:30px;height:30px;border-radius:6px;display:grid;place-items:center;background:color-mix(in srgb,var(--c,var(--muted)) 16%,transparent);color:var(--c,var(--muted));}
.hc-qs-n{flex:1;min-width:0;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.hc-qs-n small{display:block;font-size:11.5px;font-weight:400;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px;}
.hc-qs-x{flex:none;display:flex;align-items:center;gap:8px;}
.hc-qs-x:empty{display:none;}
.hc-qs-u{font:11px ui-monospace,Consolas,monospace;color:var(--muted);white-space:nowrap;}
.hc-qs-score{display:inline-block;min-width:34px;text-align:center;font-weight:900;font-size:11.5px;padding:3px 7px;border-radius:5px;color:#fff;background:var(--sc,var(--muted));font-variant-numeric:tabular-nums;}
.hc-qs-sev{font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;white-space:nowrap;}
.hc-qs-sev.crit{color:var(--crit);} .hc-qs-sev.warn{color:var(--warn);} .hc-qs-sev.off{color:var(--muted);}
.hc-qs-tag{font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;border:1px solid #ff00a3;color:#ff00a3;border-radius:4px;padding:1px 6px;white-space:nowrap;}
.hc-qs-mark{background:none;color:inherit;box-shadow:inset 0 -2px 0 #ff00a3;border-radius:1px;}
.hc-qs-row.ask{background:var(--text);color:var(--surface);border-left:5px solid #ff00a3;margin:8px 10px 2px;border-radius:6px;}
.hc-qs-row.ask .hc-qs-tile{--c:var(--surface);background:rgba(128,128,128,.25);color:var(--surface);}
.hc-qs-row.ask small,.hc-qs-row.ask .hc-qs-u{color:inherit;opacity:.75;}
.hc-qs-row.ask:hover,.hc-qs-row.ask.sel{background:var(--text);color:var(--surface);box-shadow:0 0 0 2px var(--accent);}
.hc-qs-row.full{border-top:1px solid var(--border);margin-top:6px;}
.hc-qs-row.full .hc-qs-n{color:var(--accent);}
.hc-qs-wait{padding:10px 16px;font-size:11.5px;color:var(--muted);font-style:italic;}
.hc-qs-clear{display:block;padding:8px 16px 10px;font-size:11px;color:var(--muted);text-decoration:none;}
.hc-qs-f{display:flex;gap:14px;padding:8px 16px;border-top:1px solid var(--border);font-size:11px;color:var(--muted);flex:none;flex-wrap:wrap;}
.hc-qs-f span{display:inline-flex;align-items:center;gap:5px;}
@media (max-width:640px){.hc-qs-overlay{padding:12px 8px;}.hc-qs{max-height:calc(100vh - 24px);}.hc-qs-f{display:none;}}

/* ═══════════════════════════════════════════════════════════════════════════
   Polish batch — scrollbar · focus · scroll · glow · sticky headers · bars
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1 — Custom scrollbar (Webkit) */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* 2 — Focus rings */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* 3 — Smooth scroll */
html { scroll-behavior: smooth; }

/* 4 — Input focus glow */
.hc-filter-group select:focus,
.hc-filter-group input:focus,
.hc-form-group input:focus,
.hc-form-group select:focus,
.hc-form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(56,189,248,.15);
}
/* Search-page main input focus glow */
#hc-search-q:focus {
    outline: none;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(56,189,248,.15);
}

/* 5 — Sticky table headers */
.hc-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* 6 — Progress bar grow-in animation */
@keyframes hc-bar-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}
.hc-bar-fill {
    transform-origin: left center;
    animation: hc-bar-grow .65s cubic-bezier(.4,0,.2,1) both;
    animation-delay: .08s;
}

/* Nav issues badge */
.hc-nav-badge {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 800;
    background: var(--crit);
    color: #fff;
    margin-left: 5px;
    vertical-align: middle;
    line-height: 1;
}


/* Dark status banner: improved text contrast */
.hc-status-ok   .hc-status-label { color: #86efac; }
.hc-status-warn .hc-status-label { color: #fde68a; }
.hc-status-crit .hc-status-label { color: #fca5a5; }

/* Tooltip (CSS-only, no JS) */
[data-tip] { position: relative; cursor: help; }
[data-tip]::after {
    content: attr(data-tip);
    position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%);
    background: #0f172a; color: #e2e8f0; border: 1px solid var(--border);
    border-radius: 6px; padding: 5px 10px; font-size: 11px; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity .15s;
    box-shadow: 0 4px 14px rgba(0,0,0,.4); z-index: 999;
}
[data-tip]:hover::after { opacity: 1; }

/* ============================================================
   Enhancements v2 — 2026-05-12
   ============================================================ */

/* #1 Nav notification badge */
.hc-nav-badge {
    display:inline-flex;align-items:center;justify-content:center;
    min-width:17px;height:17px;border-radius:9px;
    background:var(--crit);color:#fff;font-size:10px;font-weight:800;
    padding:0 4px;margin-left:4px;vertical-align:middle;line-height:1;
    animation:hc-badge-pop .3s ease;
}
@keyframes hc-badge-pop {
    0%   { transform:scale(0); }
    70%  { transform:scale(1.2); }
    100% { transform:scale(1); }
}

/* #2 Sticky mini status footer */
.hc-sticky-footer {
    position:fixed;bottom:0;left:0;right:0;z-index:900;
    height:30px;background:var(--surface2);border-top:1px solid var(--border);
    display:flex;align-items:center;gap:20px;padding:0 20px;font-size:11px;
    backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
}
.hc-sticky-footer .sf-score { font-weight:700;color:var(--text); }
.hc-sticky-footer .sf-crit  { color:var(--crit);font-weight:700; }
.hc-sticky-footer .sf-warn  { color:var(--warn);font-weight:700; }
.hc-sticky-footer .sf-ok    { color:var(--ok);font-weight:700; }
.hc-main { padding-bottom:38px; }

/* #3 Active nav link animated underline */
.hc-nav-link { position:relative; }
.hc-nav-active::after {
    content:'';position:absolute;bottom:-3px;left:0;right:0;height:2px;
    background:var(--accent);border-radius:2px;
    animation:hc-underline-in .25s ease both;
}
@keyframes hc-underline-in {
    from { transform:scaleX(0);opacity:0; }
    to   { transform:scaleX(1);opacity:1; }
}

/* #5 Keyboard shortcut modal */
.hc-shortcut-overlay {
    display:none;position:fixed;inset:0;z-index:9000;
    background:rgba(0,0,0,.6);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
    align-items:center;justify-content:center;
}
.hc-shortcut-overlay.open { display:flex; }
.hc-shortcut-modal {
    background:var(--surface2);border:1px solid var(--border);
    border-radius:14px;padding:26px 30px;min-width:340px;max-width:460px;width:90%;
    box-shadow:0 20px 60px rgba(0,0,0,.5);animation:hc-page-in .2s ease both;
}
.hc-shortcut-modal h3 {
    margin:0 0 16px;font-size:15px;font-weight:800;
    display:flex;align-items:center;justify-content:space-between;
}
.hc-sc-close { background:none;border:none;color:var(--muted);cursor:pointer;font-size:18px;line-height:1;padding:0; }
.hc-sc-close:hover { color:var(--text); }
.hc-sc-group { margin-bottom:12px; }
.hc-sc-group-title { font-size:10px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.8px;margin-bottom:6px; }
.hc-sc-row { display:flex;justify-content:space-between;align-items:center;padding:5px 0;border-bottom:1px solid var(--border);font-size:12px;color:var(--text); }
.hc-sc-row:last-child { border-bottom:none; }
.hc-sc-keys { display:flex;gap:3px; }
.hc-sc-keys kbd { background:var(--surface);border:1px solid var(--border);border-radius:4px;padding:2px 7px;font-size:10px;font-family:monospace;color:var(--text); }

/* #13 Animated capacity fill bars */
@keyframes hc-bar-grow {
    from { width:0; }
}
.hc-bar-animated .hc-bar-fill { animation:hc-bar-grow .65s cubic-bezier(.4,0,.2,1) both; }

/* #16 Per-check 7-day status mini-grid */
.hc-check-grid { display:inline-flex;gap:2px;margin-left:8px;vertical-align:middle; }
.hc-check-cell { width:10px;height:10px;border-radius:2px;display:inline-block; }

/* #19 Category tab strip */
.hc-cat-tabs { display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px; }
.hc-cat-tab {
    padding:5px 14px;border-radius:20px;font-size:11px;font-weight:700;cursor:pointer;
    border:1px solid var(--border);background:var(--surface);color:var(--muted);
    transition:background .15s,color .15s,border-color .15s;user-select:none;
}
.hc-cat-tab:hover { background:var(--surface2);color:var(--text); }
.hc-cat-tab.active { background:var(--accent);color:#0f172a;border-color:var(--accent); }

/* #20 OS distribution bar chart */
.hc-os-bar-row { display:flex;align-items:center;gap:10px;margin-bottom:5px;font-size:12px; }
.hc-os-bar-label { min-width:150px;color:var(--text);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.hc-os-bar-track { flex:1;height:14px;background:var(--surface2);border-radius:4px;overflow:hidden; }
.hc-os-bar-fill  { height:100%;border-radius:4px;background:var(--accent);animation:hc-bar-grow .5s ease both; }
.hc-os-bar-count { min-width:24px;text-align:right;color:var(--muted);font-size:11px; }

/* #22 Animated platform score bars */
.hc-plat-score-row { display:flex;align-items:center;gap:10px;margin-bottom:8px;font-size:12px; }
.hc-plat-score-name { min-width:100px;font-weight:600;color:var(--text);white-space:nowrap; }
.hc-plat-score-track { flex:1;height:11px;background:var(--surface2);border-radius:6px;overflow:hidden; }
.hc-plat-score-fill  { height:100%;border-radius:6px;animation:hc-bar-grow .6s cubic-bezier(.4,0,.2,1) both; }
.hc-plat-score-val   { min-width:32px;text-align:right;font-weight:700;font-size:12px; }

/* #24 Suppression lifecycle timeline bar */
.hc-supp-tl { height:5px;border-radius:3px;background:var(--surface2);overflow:hidden;margin-top:3px;width:100%; }
.hc-supp-tl-fill { height:100%;border-radius:3px; }

/* #25 Suppression urgency row colors */
tr.hc-supp-urgent-crit { border-left:3px solid var(--crit);background:rgba(239,68,68,.05);animation:hc-crit-pulse 3s ease-in-out infinite; }
tr.hc-supp-urgent-warn { border-left:3px solid var(--warn);background:rgba(245,158,11,.04); }

/* ═══════════════════════════════════════════════════════════════════════════
   100 Recommendations — v2026-05-12
   ═══════════════════════════════════════════════════════════════════════════ */

/* #7  Table headers — non-sticky; sticky inside overflow-x:auto wrappers
        sticks relative to the wrapper, not the viewport, causing thead to
        appear below the first tbody row when the page is scrolled slightly. */
.hc-table-wrap .hc-table thead th,
table.hc-table thead th {
    position: relative;
    top: auto;
    z-index: 1;
    background: var(--surface2);
}

/* #8  Colour-blind accessible theme: blue / orange / magenta instead of green / amber / red */
html.theme-accessible {
    --bg: #0f172a; --surface: #1e293b; --surface2: #263548; --border: #334155;
    --text: #e2e8f0; --muted: #94a3b8; --accent: #38bdf8;
    --ok:   #2563eb;   /* blue   — visible to deuteranopes */
    --warn: #d97706;   /* orange — distinct from both */
    --crit: #db2777;   /* magenta — not confused with either */
    --nav-bg: #020617; --inner-bg: #0d1929; --row-hover: rgba(255,255,255,.02);
    --nav-glass: rgba(2,6,23,.85);
}


/* #11 Skeleton shimmer loading placeholder */
@keyframes hc-skeleton-shimmer {
    0%   { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}
.hc-skeleton {
    border-radius: 6px; height: 14px;
    background: linear-gradient(90deg, var(--surface2) 25%, var(--border) 50%, var(--surface2) 75%);
    background-size: 200px 100%;
    animation: hc-skeleton-shimmer 1.4s ease-in-out infinite;
}
.hc-skeleton-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 20px 24px; margin-bottom: 20px;
}
.hc-skeleton-title  { height: 10px; width: 40%; margin-bottom: 16px; }
.hc-skeleton-line   { height: 13px; margin-bottom: 10px; }
.hc-skeleton-line-sm { width: 60%; }

/* ── CERT-TAB-V2 ── */
.cert-filters { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:16px; padding-bottom:16px; border-bottom:1px solid var(--border); }
.cert-filters-label { font-size:10px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; white-space:nowrap; }
.cert-plat-btn { background:var(--surface2); border:1px solid var(--border); color:var(--text); border-radius:6px; padding:4px 12px; font-size:12px; font-family:inherit; cursor:pointer; transition:background .15s,color .15s,border-color .15s; }
.cert-plat-btn:hover { border-color:var(--accent); color:var(--accent); }
.cert-plat-btn.active { background:var(--accent); border-color:var(--accent); color:#fff; font-weight:700; }
.cert-actionable-label { font-size:12px; cursor:pointer; display:flex; align-items:center; gap:4px; color:var(--text); margin-left:auto; white-space:nowrap; }
.fleet-expand-btn { background:none; border:1px solid var(--border); border-radius:4px; color:var(--accent); font-size:11px; font-family:inherit; cursor:pointer; padding:2px 8px; margin-left:8px; transition:background .15s,color .15s,border-color .15s; white-space:nowrap; }
.fleet-expand-btn:hover { background:var(--accent); color:#fff; border-color:var(--accent); }
.cert-badge { border-radius:4px; padding:2px 8px; font-size:12px; font-weight:600; white-space:nowrap; display:inline-block; }
.cert-badge-crit    { background:rgba(239,68,68,.15); color:var(--crit); font-weight:700; }
.cert-badge-warn-hi { background:rgba(245,158,11,.15); color:#d97706; font-weight:700; }
.cert-badge-warn    { background:rgba(234,179,8,.12); color:#ca8a04; }
.cert-badge-ok      { background:rgba(34,197,94,.12); color:var(--ok); }
.cert-badge-err     { background:rgba(245,158,11,.12); color:#d97706; }
.cert-badge-unk     { background:var(--surface2); color:var(--muted); }
.cert-type-chip     { display:inline-block; font-size:10px; color:var(--muted); background:var(--surface2); border-radius:3px; padding:1px 5px; margin-left:6px; vertical-align:middle; white-space:nowrap; }
.esxi-detail-row    { background:var(--surface2) !important; }
.esxi-detail-row td { font-size:11px !important; padding-top:5px !important; padding-bottom:5px !important; }
.esxi-detail-row td:first-child { padding-left:36px !important; color:var(--muted); }

/* #12 Print stylesheet */
@media print {
    .hc-nav, .hc-scroll-top, .hc-sticky-footer, .hc-filters,
    .hc-btn, .hc-action-banner { display: none !important; }
    .hc-main { padding: 0 !important; animation: none !important; }
    body { background: #fff !important; color: #000 !important; }
    .hc-card { border: 1px solid #ccc !important; box-shadow: none !important;
                break-inside: avoid; page-break-inside: avoid; }
    .hc-table th { background: #f0f0f0 !important; color: #333 !important; position: static !important; }
    .hc-table td { color: #222 !important; }
    .score-pill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 10px; color: #555; }
    .hc-page-header h1 { font-size: 18px !important; }
}

/* #4  5-level heatmap colour scale */
.hc-hm-5   { background: #166534; }  /* 95-100: bright green */
.hc-hm-4   { background: var(--ok); }  /* 80-94 */
.hc-hm-3   { background: var(--warn); }  /* 65-79 */
.hc-hm-2   { background: #dc6b19; }  /* 50-64: deep amber */
.hc-hm-1   { background: var(--crit); }  /* <50 */
.hc-hm-none { background: var(--border); }

/* #29 Check pass rate stacked bar */
.hc-passrate-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; }
.hc-passrate-label { min-width: 110px; font-weight: 600; color: var(--text); white-space: nowrap;
                     overflow: hidden; text-overflow: ellipsis; }
.hc-passrate-track { flex: 1; height: 14px; border-radius: 7px; overflow: hidden;
                     display: flex; background: var(--surface2); }
.hc-passrate-ok   { background: var(--ok);   height: 100%; }
.hc-passrate-warn { background: var(--warn); height: 100%; }
.hc-passrate-crit { background: var(--crit); height: 100%; }
.hc-passrate-count { min-width: 32px; text-align: right; color: var(--muted); font-size: 11px; }

/* #95 Onboarding checklist card */
.hc-onboard-card { background: linear-gradient(135deg, var(--surface) 0%, rgba(56,189,248,.05) 100%);
                   border: 1px solid var(--accent); border-radius: 10px; padding: 18px 22px;
                   margin-bottom: 20px; }
.hc-onboard-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 12px;
                    display: flex; align-items: center; justify-content: space-between; }
.hc-onboard-steps { display: flex; flex-direction: column; gap: 8px; }
.hc-onboard-step  { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text2, var(--muted)); }
.hc-onboard-step-done { color: var(--ok); }
.hc-onboard-check { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border);
                    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
                    font-size: 10px; font-weight: 800; }
.hc-onboard-check-done { background: var(--ok); border-color: var(--ok); color: #fff; }

/* #91 Run annotation badge on timeline */
.hc-run-note { display: inline-flex; align-items: center; gap: 3px; font-size: 10px;
               color: var(--accent); padding: 1px 5px; border-radius: 6px;
               background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.3);
               cursor: help; }

/* #88 Suppression template pills */
.hc-supp-tpl { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px;
               font-weight: 600; cursor: pointer; border: 1px solid var(--border);
               background: var(--surface2); color: var(--muted); margin: 2px;
               transition: background .12s, color .12s, border-color .12s; }
.hc-supp-tpl:hover { background: var(--accent); color: #0f172a; border-color: var(--accent); }

/* #86 Diff/changes tab on Target Detail */
.hc-diff-new  { border-left: 3px solid var(--crit) !important; background: rgba(239,68,68,.04); }
.hc-diff-res  { border-left: 3px solid var(--ok) !important;   background: rgba(34,197,94,.04); }
.hc-diff-wrn  { border-left: 3px solid var(--warn) !important; background: rgba(245,158,11,.04); }

/* #100 Run check now button / spinner */
.hc-run-spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--border);
                  border-top-color: var(--accent); border-radius: 50%;
                  animation: hc-spin .7s linear infinite; vertical-align: middle; }
@keyframes hc-spin { to { transform: rotate(360deg); } }

/* #99 Mobile responsive layout */
@media (max-width: 900px) {
    .hc-nav-links { gap: 0; flex-wrap: wrap; }
    .hc-nav-link  { padding: 7px 9px; font-size: 12px; }
    .hc-main      { padding: 16px 14px; }
    .hc-kpi-grid  { grid-template-columns: repeat(3, 1fr); }
    .hc-card      { padding: 14px 14px; }
}

@media (max-width: 768px) {
    .hc-nav       { height: auto; flex-wrap: wrap; gap: 0; padding: 0 16px; row-gap: 0; }
    .hc-nav-brand { padding: 10px 0; }
    .hc-nav-links { flex-wrap: wrap; order: 3; flex: 1 1 100%; padding: 0 0 6px; border-top: 1px solid var(--border); margin-top: 2px; }
    .hc-nav-link  { padding: 6px 9px; font-size: 11px; }
    .hc-nav-time  { display: none; }
    .hc-main      { padding: 12px 12px; }
    .hc-kpi-grid  { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hc-delta-cards { grid-template-columns: 1fr; }
    .hc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
    .hc-nav-brand .bolt { display: none; }
    .hc-kpi-grid  { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .hc-filters   { flex-direction: column; }
    .hc-filter-group select,
    .hc-filter-group input { min-width: 100%; width: 100%; }
    .hc-form-grid { grid-template-columns: 1fr; }
    .hc-table-wrap { font-size: 11px; }
    .hc-card { padding: 12px 10px; border-radius: 8px; }
    .hc-card-title { font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FRONTEND-DESIGN IMPROVEMENTS
   Appended block — cascades over earlier rules at same specificity.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Typography ── */
body {
    font-family: 'Oxanium', 'Segoe UI', Arial, sans-serif;
}

.hc-kpi-value,
.hc-score-pill,
.hc-nav-time,
.hc-sparkline-val,
.hc-table .mono {
    font-family: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
}

/* ── Navigation: brand divider ── */
.hc-nav-brand {
    border-right: 1px solid var(--border);
    padding-right: 20px;
    margin-right: 4px;
    flex-shrink: 0;
}

/* ── Navigation: links scroll horizontally, never wrap ── */
/* overflow-x:clip lets horizontal content be clipped without creating a new
   block-formatting context, so absolutely-positioned children (the More
   dropdown) are NOT clipped vertically. Do NOT use overflow-x:auto here. */
.hc-nav-links {
    overflow-x: clip;
    min-width: 0;
}

/* ── Navigation: bolder active state ── */
.hc-nav-active { font-weight: 700 !important; }

/* ── KPI card typography ── */
.hc-kpi-value {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
}
.hc-kpi-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-top: 6px;
}

/* ── Card description subtitle ── */
.hc-card-desc {
    font-size: 11px;
    color: var(--muted);
    margin: 2px 0 10px;
    line-height: 1.5;
    max-width: 860px;
}

/* ── Card entry animation ── */
/* transform:translateY(0) in the to-state creates a CSS stacking context on .hc-card
   even at zero movement, which breaks position:sticky on thead th inside the card.
   Opacity-only animation keeps the fade-in without creating a stacking context. */
@keyframes hc-card-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.hc-card { animation: hc-card-in 0.28s ease both; }
.hc-card:nth-child(1) { animation-delay: 0.04s; }
.hc-card:nth-child(2) { animation-delay: 0.08s; }
.hc-card:nth-child(3) { animation-delay: 0.12s; }
.hc-card:nth-child(4) { animation-delay: 0.16s; }
.hc-card:nth-child(5) { animation-delay: 0.20s; }
.hc-card:nth-child(6) { animation-delay: 0.24s; }

/* ── Respect reduced-motion preference ── */
@media (prefers-reduced-motion: reduce) {
    .hc-card             { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN-REVIEW-V2 — 2026-05-14
   Six specific gaps from full-UI review across all 11 tabs.
   ═══════════════════════════════════════════════════════════════════════════ */

/* 1 — Card title: bump 11→12px; reduce letter-spacing 1.5→1.2px.
   At 11px ALL-CAPS with 1.5px tracking the label reads as annotation-weight
   metadata. 12px at tighter tracking reads as a proper scannable card header. */
.hc-card-title {
    font-size: 12px;
    letter-spacing: 1.2px;
}

/* 2 — Subtle top-shimmer accent line on every card.
   KPI tiles already have a colour top border via :has(); regular .hc-card
   elements had nothing. Linear-gradient fades to transparent at both edges
   so it blends into the corner border instead of doubling it.
   position:relative does not conflict with transform:translateY(-1px) on
   :hover — transform already creates its own stacking context. */
.hc-card { position: relative; }
.hc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 12px; right: 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56,189,248,.2), transparent);
    pointer-events: none;
}

/* 3 — Score pill depth gradient.
   Box-shadow glow was added in Batch 7-9; the gradient gives the pill
   dimension rather than a flat colour blob — same hues, darker bottom-right
   to simulate a top-left light source. Derived from var(--ok/--warn/--crit)
   via color-mix so every theme's gradient matches its own palette - the
   original hardcoded hex values silently overrode the theme-aware rule at
   line 374-376 for every theme except the default dark one. */
.score-high { background: linear-gradient(135deg, var(--ok) 0%, color-mix(in srgb, var(--ok) 100%, black 18%) 100%); }
.score-mid  { background: linear-gradient(135deg, var(--warn) 0%, color-mix(in srgb, var(--warn) 100%, black 18%) 100%); }
.score-low  { background: linear-gradient(135deg, var(--crit) 0%, color-mix(in srgb, var(--crit) 100%, black 18%) 100%); }

/* 4 — Nav bottom accent line.
   The nav has backdrop-filter:blur and glass background for depth; this thin
   cyan line grounds it against the page content and ties it to --accent. */
.hc-nav { border-bottom: 1px solid rgba(56,189,248,.14); }

/* 5 — Subtle table zebra striping.
   Dense data tables benefit from alternating row fills for eye tracking.
   1.8% white opacity is barely visible on dark themes but enough to break
   visual monotony. Excludes .plat-row separators (own visual treatment). */
.hc-table tbody tr:not(.plat-row):nth-child(even) td {
    background: rgba(255,255,255,.018);
}

/* 6 — Heatmap cell sizing fix.
   .hc-heatmap was display:inline-grid intended for a wrapper that was never
   added. The class is applied to individual colour cell divs, so inline-grid
   caused each cell to shrink to &nbsp; width. Explicit 18×18px + border-radius
   renders proper squares. */
.hc-heatmap {
    display: inline-block;
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    transition: transform .1s, opacity .1s;
    cursor: default;
    vertical-align: middle;
}
.hc-heatmap:hover { transform: scale(1.3); }
.hc-hm-crit-dot {
    position: absolute;
    top: 2px; right: 2px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 4px rgba(239,68,68,.9);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .hc-heatmap { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN-REVIEW-V3 — pass rate bars, duration bars, data-age badge
   ═══════════════════════════════════════════════════════════════════════════ */

/* Pass rate bar (D5) */
.hc-passrate-bar {
    background: var(--surface-2, rgba(255,255,255,.06));
    border-radius: 4px;
    height: 8px;
    width: 100%;
    overflow: hidden;
}
.hc-passrate-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ok) 0%, color-mix(in srgb, var(--ok) 70%, var(--accent)) 100%);
    border-radius: 4px;
    transition: width .4s ease;
}

/* Duration bar (D6) */
.hc-dur-bar {
    background: var(--surface-2, rgba(255,255,255,.06));
    border-radius: 4px;
    height: 8px;
    width: 100%;
    overflow: hidden;
}
.hc-dur-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 60%, var(--ok)) 100%);
    border-radius: 4px;
    transition: width .4s ease;
}

/* Data-age badge (DA17) */
.hc-data-age {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--muted);
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px 10px;
    margin-left: 12px;
}
.hc-data-age::before {
    content: '🕐';
    font-size: 10px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN-REVIEW-V4 — Full audit implementation
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── #15 Mono font variable ── */
:root { --font-mono: 'JetBrains Mono', 'Consolas', monospace; }
.mono { font-family: var(--font-mono); }

/* ── #17 Page header sizing ── */
.hc-page-header h1  { font-size: 26px; font-weight: 900; }
.hc-page-header .sub { font-size: 14px; }

/* ── #5 Card title: larger, no ALL CAPS, readable weight ── */
.hc-card-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: none;
    color: var(--text);
    opacity: 0.75;
    margin-bottom: 14px;
}

/* ── #9 Card desc: slightly larger for readability ── */
.hc-card-desc { font-size: 12px; line-height: 1.65; }

/* ── #7 Table headers: 11px, less tracking ── */
.hc-table th {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

/* ── #8 Remove double-border on table-wrap inside cards ── */
.hc-card .hc-table-wrap { border: none; }

/* ── #18 Card & KPI hover lift — stronger ── */
.hc-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,.38); }
.hc-kpi:hover  { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.32); }

/* ── #19 Button hover: brightness lift, not opacity dim ── */
.hc-btn        { transition: filter .15s, transform .15s, box-shadow .15s, opacity .15s; }
.hc-btn:hover  { opacity: 1; filter: brightness(1.12); transform: translateY(-1px); }
.hc-btn:active { transform: translateY(0); filter: brightness(.98); }

/* ── #6 AI summary card visual distinction ── */
.hc-ai-card {
    background: radial-gradient(ellipse at top left, rgba(56,189,248,.06) 0%, transparent 55%), var(--surface) !important;
    border-left: 4px solid var(--accent) !important;
}

/* ── #2 Active nav: clean underline only, no boxy border ── */
.hc-nav-active {
    background: transparent !important;
    border: none !important;
    font-weight: 800 !important;
    color: var(--accent) !important;
}
.hc-nav-active::after { bottom: -5px; }

/* ── #3 Config button accent / Logout danger-on-hover ── */
.hc-nav-config-primary              { color: var(--accent) !important; border-color: rgba(56,189,248,.35) !important; }
.hc-nav-config-primary:hover        { background: rgba(56,189,248,.1) !important; color: var(--accent) !important; }
.hc-nav-config-logout:hover         { color: var(--crit) !important; border-color: rgba(239,68,68,.4) !important; background: rgba(239,68,68,.07) !important; }

/* ── #1 Nav "More ▾" dropdown ── */
.hc-nav-more { position: relative; display: flex; align-items: center; }
.hc-nav-more-btn {
    color: var(--muted); padding: 7px 12px; border-radius: 7px;
    font-size: 13px; font-weight: 500; cursor: pointer;
    background: none; border: none; font-family: inherit;
    white-space: nowrap; transition: background .15s, color .15s;
    display: flex; align-items: center; gap: 4px;
}
.hc-nav-more-btn:hover,
.hc-nav-more:focus-within .hc-nav-more-btn { background: var(--surface); color: var(--text); }
.hc-nav-more-btn-active { color: var(--accent) !important; font-weight: 800 !important; }
.hc-nav-more-menu {
    display: none; position: absolute; top: 100%; right: 0;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 10px; padding: 10px 6px 6px; min-width: 210px;
    box-shadow: 0 16px 48px rgba(0,0,0,.45); z-index: 600;
    flex-direction: column; gap: 2px;
    animation: hc-page-in .15s ease both;
}
.hc-nav-more.open .hc-nav-more-menu,
.hc-nav-more:focus-within .hc-nav-more-menu { display: flex; }
.hc-nav-more-link {
    color: var(--muted); text-decoration: none; padding: 8px 12px;
    border-radius: 7px; font-size: 13px; font-weight: 500;
    transition: background .12s, color .12s; white-space: nowrap; display: block;
}
.hc-nav-more-link:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.hc-nav-more-link.hc-nav-active { color: var(--accent); font-weight: 700; background: var(--surface); border: none; }
.hc-nav-more-link.hc-nav-active::after { display: none; }

/* ── #4 Nav time: compact display ── */
.hc-nav-time { font-size: 11px; }

/* ── #27 Subtle dot grid atmosphere on body ── */
body {
    background-image: radial-gradient(rgba(255,255,255,.012) 1px, transparent 1px);
    background-size: 28px 28px;
    background-attachment: fixed;
}

/* ── #12 Comprehensive prefers-reduced-motion for bars ── */
@media (prefers-reduced-motion: reduce) {
    .hc-os-bar-fill, .hc-plat-score-fill,
    .hc-passrate-fill, .hc-dur-fill,
    [class*="hc-bar-fill"] { animation: none !important; }
}

/* ── #20 Table row stagger via nth-child delays ── */
.hc-table tbody tr:not(.plat-row):nth-child(1)  { animation-delay:   0ms; }
.hc-table tbody tr:not(.plat-row):nth-child(2)  { animation-delay:  30ms; }
.hc-table tbody tr:not(.plat-row):nth-child(3)  { animation-delay:  60ms; }
.hc-table tbody tr:not(.plat-row):nth-child(4)  { animation-delay:  90ms; }
.hc-table tbody tr:not(.plat-row):nth-child(5)  { animation-delay: 120ms; }
.hc-table tbody tr:not(.plat-row):nth-child(6)  { animation-delay: 150ms; }
.hc-table tbody tr:not(.plat-row):nth-child(7)  { animation-delay: 180ms; }
.hc-table tbody tr:not(.plat-row):nth-child(8)  { animation-delay: 210ms; }
.hc-table tbody tr:not(.plat-row):nth-child(9)  { animation-delay: 240ms; }
.hc-table tbody tr:not(.plat-row):nth-child(10) { animation-delay: 270ms; }

/* ── #21 VM tab filter button classes ── */
.hc-flt-btn {
    border-radius: 6px; padding: 5px 14px; font-size: 12px; font-weight: 700;
    cursor: pointer; border: 1px solid var(--border); background: var(--surface2);
    color: var(--muted); font-family: inherit;
    transition: background .15s, color .15s, border-color .15s, filter .15s;
}
.hc-flt-btn-all  { background: var(--accent); color: #0f172a; border-color: var(--accent); }
.hc-flt-btn-crit { color: var(--crit); border-color: rgba(239,68,68,.35); }
.hc-flt-btn-warn { color: var(--warn); border-color: rgba(245,158,11,.35); }
.hc-flt-btn-ok   { color: var(--ok);   border-color: rgba(34,197,94,.35); }
.hc-flt-btn:hover          { background: var(--surface); color: var(--text); }
.hc-flt-btn-all:hover      { filter: brightness(1.1); color: #0f172a; background: var(--accent); }
.hc-flt-btn-crit:hover     { background: rgba(239,68,68,.12); color: var(--crit); }
.hc-flt-btn-warn:hover     { background: rgba(245,158,11,.12); color: var(--warn); }
.hc-flt-btn-ok:hover       { background: rgba(34,197,94,.12);  color: var(--ok); }

/* ── #23 Capacity fill forecast urgency classes ── */
.hc-fill-urgent  { color: var(--crit); font-weight: 800; }
.hc-fill-warn    { color: var(--warn); font-weight: 700; }
.hc-fill-ok      { color: var(--ok);   }
.hc-fill-days-bar { display:inline-block; width:40px; height:5px; border-radius:3px; vertical-align:middle; margin-left:6px; background:var(--border); overflow:hidden; }
.hc-fill-days-fill { height:100%; border-radius:3px; }

/* ── Suggested Actions panel ── */
.hc-suggest-row td {
    background: rgba(59,130,246,.04);
    border-top: none;
    padding: 14px 18px 16px;
    animation: hc-page-in .2s ease both;
}
.hc-suggest-section-label {
    font-size: 10px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .7px; margin-bottom: 5px;
}
.hc-suggest-steps {
    margin: 0 0 0 16px; padding: 0;
    font-size: 12px; color: var(--text); line-height: 1.7;
}
.hc-suggest-kb {
    margin: 0; padding: 0; list-style: none;
    font-size: 12px; color: var(--text); line-height: 1.7;
}
.hc-suggest-btn {
    background: none; border: 1px solid var(--border); border-radius: 6px;
    color: var(--muted); cursor: pointer; font-size: 11px; padding: 3px 8px;
    font-family: inherit; transition: background .12s, color .12s;
    margin-left: 4px; vertical-align: middle;
}
.hc-suggest-btn:hover { background: var(--surface); color: var(--text); }
.hc-suggest-btn.active { color: var(--accent); border-color: rgba(59,130,246,.4); }

/* ── RBAC: viewer mode ── */
.hc-viewer-banner {
    background: rgba(245,158,11,.08);
    border: 1px solid rgba(245,158,11,.3);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--warn);
    margin-bottom: 16px;
}
.hc-viewer-mode .hc-admin-only { display: none !important; }

/* ── Stale-run warning banner ── */
.hc-stale-banner {
    background: rgba(239,68,68,.07);
    border: 1px solid rgba(239,68,68,.3);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--crit);
    margin-bottom: 16px;
}

/* ── Check history modal ── */
.hc-ch-modal {
    min-width: 560px;
    max-width: 760px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ── Tags cell edit indicator ── */
.hc-tags-cell { cursor: pointer; }
.hc-tags-cell:hover { background: rgba(59,130,246,.05); }

/* Light theme compat */
html.theme-is-light .hc-nav-active { background: transparent !important; }

/* ═══════════════════════════════════════════════════════════
   WOW-FACTOR FEATURES — 20 improvements
   ═══════════════════════════════════════════════════════════ */

/* 1 — Health-reactive aurora background */
.hc-aurora-wrap { position:fixed;inset:0;pointer-events:none;z-index:0;overflow:hidden; }
.hc-aurora-blob { position:absolute;border-radius:50%;filter:blur(80px); }
.hc-aurora-1 {
    width:700px;height:700px;top:-200px;left:-150px;
    background:radial-gradient(ellipse,rgba(56,189,248,.055) 0%,transparent 70%);
    animation:hc-aurora-drift1 22s ease-in-out infinite alternate;
}
.hc-aurora-2 {
    width:600px;height:600px;bottom:-150px;right:-100px;
    background:radial-gradient(ellipse,rgba(139,92,246,.045) 0%,transparent 70%);
    animation:hc-aurora-drift2 28s ease-in-out infinite alternate;
}
.hc-aurora-crit {
    width:500px;height:500px;top:5%;right:10%;
    background:radial-gradient(ellipse,rgba(239,68,68,.04) 0%,transparent 70%);
    animation:hc-aurora-drift3 18s ease-in-out infinite alternate;
    opacity:0;transition:opacity 4s ease;
}
body.hc-has-criticals .hc-aurora-crit { opacity:1; }
@keyframes hc-aurora-drift1 { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(60px,80px) scale(1.12)} }
@keyframes hc-aurora-drift2 { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(-70px,-50px) scale(1.15)} }
@keyframes hc-aurora-drift3 { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(40px,-60px) scale(1.08)} }

/* 3 — TV/Kiosk Mode overlay */
.hc-kiosk-overlay {
    display:none;position:fixed;inset:0;z-index:9999;
    background:var(--bg);flex-direction:column;padding:40px 56px;
}
.hc-kiosk-overlay.hc-kiosk-active { display:flex; }
.hc-kiosk-kpis { display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-bottom:28px; }
.hc-kiosk-kpi { background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:28px;text-align:center; }
.hc-kiosk-kpi .hc-kpi-value { font-size:68px !important; }
.hc-kiosk-kpi .hc-kpi-label { font-size:14px !important;margin-bottom:10px; }
.hc-kiosk-body { flex:1;display:flex;gap:24px; }
.hc-kiosk-ai {
    flex:1;background:rgba(17,24,39,.9);
    border:1px solid rgba(56,189,248,.2);border-left:4px solid var(--accent);
    border-radius:16px;padding:32px;
}
.hc-kiosk-ai-text { font-size:20px;line-height:1.9;font-family:'JetBrains Mono',monospace;color:#cbd5e1; }
.hc-kiosk-close {
    position:absolute;top:20px;right:24px;
    background:rgba(255,255,255,.06);border:1px solid var(--border);
    color:var(--muted);font-size:13px;padding:8px 16px;
    border-radius:8px;cursor:pointer;font-family:inherit;transition:all .15s;
}
.hc-kiosk-close:hover { background:var(--surface2);color:var(--text); }
.hc-kiosk-footer { margin-top:20px;text-align:center;font-size:13px;color:var(--muted);letter-spacing:1px; }
.hc-kiosk-btn {
    display:inline-flex;align-items:center;gap:5px;
    padding:5px 10px;border-radius:6px;
    background:rgba(56,189,248,.08);border:1px solid rgba(56,189,248,.18);
    color:var(--accent);font-size:11px;font-weight:600;
    cursor:pointer;font-family:inherit;transition:all .15s;white-space:nowrap;
}
.hc-kiosk-btn:hover { background:rgba(56,189,248,.16); }

/* 4 — Density mode */
body.hc-density-compact .hc-table tbody td { padding:3px 7px;font-size:11px; }
body.hc-density-compact .hc-card { padding:12px; }
body.hc-density-compact .hc-kpi { padding:10px 14px; }
body.hc-density-compact .hc-kpi-value { font-size:22px !important; }
body.hc-density-comfortable .hc-table tbody td { padding:12px 14px;font-size:14px; }
body.hc-density-comfortable .hc-card { padding:28px; }
body.hc-density-comfortable .hc-kpi { padding:24px; }
body.hc-density-comfortable .hc-kpi-value { font-size:42px !important; }
.hc-density-wrap { display:inline-flex;gap:2px;align-items:center; }
.hc-density-btn {
    padding:4px 8px;border-radius:4px;border:1px solid var(--border);
    background:none;color:var(--muted);font-size:10px;font-weight:700;
    cursor:pointer;font-family:inherit;transition:all .12s;
}
.hc-density-btn:hover,.hc-density-btn.hc-density-active { background:var(--surface2);color:var(--text);border-color:var(--accent); }


/* 7 — Days-to-full badge */
.hc-days-badge {
    font-size:10px;font-weight:800;padding:2px 7px;border-radius:8px;
    white-space:nowrap;font-family:'JetBrains Mono',monospace;
    display:inline-block;vertical-align:middle;margin-left:5px;
}
.hc-days-crit { background:rgba(239,68,68,.15);color:#fca5a5;border:1px solid rgba(239,68,68,.25); }
.hc-days-warn { background:rgba(245,158,11,.12);color:#fcd34d;border:1px solid rgba(245,158,11,.2); }
.hc-days-ok   { background:rgba(100,116,139,.1);color:var(--muted);border:1px solid var(--border); }

/* 8 — SLA strip (30-day health calendar per target) */
.hc-sla-strip { display:flex;gap:2px;margin-bottom:4px; }
.hc-sla-day {
    flex:1;height:22px;border-radius:3px;cursor:pointer;
    transition:transform .08s,filter .1s;
    display:inline-flex;align-items:center;justify-content:center;
    font-size:9px;font-weight:700;font-family:'JetBrains Mono',monospace;
    color:rgba(255,255,255,.55);text-decoration:none;
}
.hc-sla-day:hover { transform:scaleY(1.15);filter:brightness(1.35);color:#fff;z-index:2;position:relative; }
.hc-sla-ok   { background:rgba(34,197,94,.38); }
.hc-sla-warn { background:rgba(245,158,11,.48); }
.hc-sla-crit { background:rgba(239,68,68,.55); }
.hc-sla-grey { background:rgba(100,116,139,.10);color:rgba(255,255,255,.18); }
.hc-sla-lbl  { display:flex;justify-content:space-between;font-size:9px;color:var(--muted);margin-top:3px; }

/* 9 — Anomaly detection banner */
.hc-anomaly-banner {
    display:flex;align-items:flex-start;gap:10px;
    padding:10px 14px;border-radius:8px;margin-bottom:10px;
    background:rgba(245,158,11,.07);border:1px solid rgba(245,158,11,.2);
    border-left:3px solid var(--warn);font-size:12px;
    animation:hc-page-in .3s ease both;
}
.hc-anomaly-icon { font-size:14px;flex-shrink:0;margin-top:1px; }
.hc-anomaly-text { color:#fcd34d;line-height:1.5; }
.hc-anomaly-text strong { color:var(--text); }

/* 12 — Inline AI badge (used standalone, not inside the removed .hc-ai-hero wrapper) */
.hc-ai-badge {
    display:inline-flex;align-items:center;gap:5px;
    font-size:10px;font-weight:800;text-transform:uppercase;
    letter-spacing:1px;color:var(--accent);margin-bottom:7px;
}
.hc-ai-dot { width:6px;height:6px;border-radius:50%;background:var(--accent);animation:hc-ai-dot-pulse 2s ease-in-out infinite; }
@keyframes hc-ai-dot-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.75)} }

/* 17 — Activity stream */
.hc-activity-item { display:flex;align-items:flex-start;gap:10px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.04);font-size:12px; }
.hc-activity-item:last-child { border-bottom:none; }
.hc-activity-time { color:var(--muted);font-family:'JetBrains Mono',monospace;white-space:nowrap;font-size:11px; }
.hc-activity-dot { width:7px;height:7px;border-radius:50%;flex-shrink:0;margin-top:3px; }
.hc-act-crit { background:var(--crit);box-shadow:0 0 5px var(--crit); }
.hc-act-warn { background:var(--warn); }
.hc-act-ok   { background:var(--ok); }
.hc-act-info { background:var(--accent); }
.hc-activity-msg { color:var(--muted);line-height:1.5; }
.hc-activity-msg strong { color:var(--text); }
#hc-activity-stream { max-height:260px;overflow-y:auto; }

/* 19 — Root cause slide-in panel */
.hc-rc-overlay { position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:499;display:none;backdrop-filter:blur(2px); }
.hc-rc-overlay.hc-rc-open { display:block; }
.hc-rc-panel {
    position:fixed;top:0;right:-490px;bottom:0;width:470px;
    background:var(--surface);border-left:1px solid var(--border);
    z-index:500;overflow-y:auto;padding:24px;
    transition:right .3s cubic-bezier(.4,0,.2,1);
    box-shadow:-8px 0 32px rgba(0,0,0,.45);
}
.hc-rc-panel.hc-rc-open { right:0; }
.hc-rc-close { position:absolute;top:14px;right:14px;background:none;border:1px solid var(--border);border-radius:6px;color:var(--muted);cursor:pointer;font-size:13px;padding:4px 10px;font-family:inherit;transition:all .15s; }
.hc-rc-close:hover { background:var(--surface2);color:var(--text); }
.hc-rc-title { font-size:14px;font-weight:700;margin-bottom:14px;color:var(--text); }
.hc-rc-section { margin-bottom:18px; }
.hc-rc-label { font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--muted);margin-bottom:7px; }

/* Ask HC — global panel (topbar-triggered on every page) + reusable chip style */
.hc-chiprow { display:flex; flex-wrap:wrap; gap:7px; }
.hc-chip { display:inline-flex; align-items:center; font-size:11.5px; color:var(--text); text-decoration:none; background:var(--surface2); border:1px solid var(--border); padding:4px 9px; border-radius:6px; transition:background .12s; cursor:pointer; }
.hc-chip:hover { background:rgba(56,189,248,.12); }
.hc-nav-askhc-btn { background:var(--surface); border:1px solid var(--border); border-radius:8px; color:var(--muted); padding:6px 10px; font-size:12px; font-family:inherit; cursor:pointer; display:inline-flex; align-items:center; gap:5px; transition:all .15s; }
.hc-nav-askhc-btn:hover { border-color:var(--accent); color:var(--accent); }

/* ═══════════════════════════════════════════════════════════════════════════
   SESSION A — 22-item Visual/UX uplift
   Items 33,36,37,39,40,44,47,53,56,58,63,89,90,91,93,94,95,96,97,98,99,100
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Item 36: Animation token CSS variables ── */
:root {
    --dur-micro:   80ms;
    --dur-element: 200ms;
    --dur-page:    350ms;
    --ease-out:    cubic-bezier(0,0,.2,1);
    --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

/* Apply tokens to core transitions */
.hc-nav-link, .hc-nav-config, .hc-nav-more-btn, .hc-nav-more-link {
    transition-duration: var(--dur-micro);
}
.hc-card { transition-duration: var(--dur-element); }
.hc-kpi  { transition-duration: var(--dur-element); }
.hc-btn  { transition-duration: var(--dur-micro); }
.hc-rc-panel { transition-duration: var(--dur-element); }

/* ── Item 39: Score-to-colour semantic CSS vars (referenced in SVG via currentColor fallback) ── */
:root {
    --col-score-high: var(--ok);
    --col-score-mid:  var(--warn);
    --col-score-low:  var(--crit);
}

/* ── Item 44: Contextual shortcut bar ── */
.hc-ctx-bar {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 800; display: flex; gap: 6px; align-items: center;
    background: rgba(15,23,42,.92); border: 1px solid var(--border);
    border-radius: 12px; padding: 6px 14px;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    animation: hc-ctx-in var(--dur-element) var(--ease-spring) both;
    pointer-events: none; opacity: 0; transition: opacity var(--dur-element);
}
.hc-ctx-bar.hc-ctx-visible { pointer-events: auto; opacity: 1; }
@keyframes hc-ctx-in {
    from { transform: translateX(-50%) translateY(12px); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}
.hc-ctx-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.hc-ctx-item kbd {
    background: rgba(255,255,255,.08); border: 1px solid var(--border);
    border-radius: 4px; padding: 2px 6px; font-size: 10px;
    font-family: var(--font-mono,'JetBrains Mono',monospace);
    color: var(--text); min-width: 18px; text-align: center;
}
.hc-ctx-sep { width: 1px; height: 14px; background: var(--border); margin: 0 4px; }

/* ── Item 47: Nav group separators ── */
.hc-nav-sep {
    width: 1px; height: 20px;
    background: var(--border);
    margin: 0 6px; flex-shrink: 0;
    align-self: center;
}

/* ── Item 56: Suppression expiry timeline bar — enhanced colours ── */
.hc-supp-tl { height: 5px; border-radius: 3px; background: var(--surface2); overflow: hidden; margin-top: 4px; width: 100%; }
.hc-supp-tl-fill { height: 100%; border-radius: 3px; transition: width var(--dur-element); }
.hc-supp-tl-ok   { background: linear-gradient(90deg, var(--ok),   color-mix(in srgb, var(--ok) 60%, transparent));   }
.hc-supp-tl-warn { background: linear-gradient(90deg, var(--warn),  color-mix(in srgb, var(--warn) 60%, transparent)); }
.hc-supp-tl-crit { background: linear-gradient(90deg, var(--crit),  color-mix(in srgb, var(--crit) 60%, transparent)); animation: hc-crit-pulse 2s ease-in-out infinite; }
.hc-supp-expired { background: var(--surface2); opacity: .5; }

/* ── Item 58: Sparkline hover tooltip ── */
.hc-sparkline-tooltip {
    position: absolute; z-index: 9999;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 6px; padding: 5px 10px;
    font-size: 11px; color: var(--text);
    font-family: var(--font-mono,'JetBrains Mono',monospace);
    white-space: nowrap; pointer-events: none;
    box-shadow: 0 6px 20px rgba(0,0,0,.5);
    animation: hc-page-in var(--dur-micro) ease both;
}
.hc-sparkline-wrap { position: relative; display: inline-block; vertical-align: middle; }

/* ── Item 90: Vercel-style hero KPI card ── */
/* ── Item 93: Stripe neon glow on critical KPI cards ── */
.hc-kpi:has(.kpi-red) {
    box-shadow: 0 0 0 1px rgba(239,68,68,.25), 0 8px 24px rgba(239,68,68,.15) !important;
    border-color: rgba(239,68,68,.3) !important;
}
.hc-kpi:has(.kpi-amber) {
    box-shadow: 0 0 0 1px rgba(245,158,11,.2), 0 6px 18px rgba(245,158,11,.12) !important;
}

/* ── Item 94: GitHub-style annual contribution calendar ── */
/* ── Item 96: Raycast contextual hotkey strip ── */
.hc-hotkey-strip {
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
    padding: 8px 0; border-top: 1px solid rgba(255,255,255,.04);
    margin-top: 8px;
}
.hc-hotkey {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; color: var(--muted);
    padding: 4px 10px; border-radius: 8px;
    background: rgba(255,255,255,.03); border: 1px solid var(--border);
    cursor: pointer; transition: all var(--dur-micro);
    user-select: none; white-space: nowrap;
}
.hc-hotkey:hover { background: var(--surface2); color: var(--text); border-color: var(--accent); }
.hc-hotkey kbd {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    border-radius: 4px; padding: 1px 5px; font-size: 9px;
    font-family: var(--font-mono,'JetBrains Mono',monospace); color: var(--text);
}
.hc-hotkey-active { background: rgba(56,189,248,.08) !important; border-color: rgba(56,189,248,.3) !important; color: var(--accent) !important; }

/* ── Item 97: Glassmorphism table row hover ── */
.hc-table tbody tr { transition: background var(--dur-micro); }
.hc-table tbody tr:hover td {
    background: linear-gradient(135deg, rgba(56,189,248,.04) 0%, rgba(255,255,255,.02) 100%) !important;
}
.hc-table tbody tr:hover td:first-child {
    position: relative;
}
.hc-table tbody tr:hover td:first-child::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 2px; background: var(--accent); border-radius: 0 2px 2px 0;
    opacity: .6;
}

/* ── Item 98: Animated gradient page header bands ── */
@keyframes hc-header-band-scroll {
    from { background-position: 0% 50%; }
    to   { background-position: 200% 50%; }
}
.hc-page-header {
    position: relative; padding: 20px 0 16px; margin-bottom: 20px;
}
.hc-page-header::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(56,189,248,.35) 20%,
        rgba(139,92,246,.25) 50%,
        rgba(34,197,94,.25) 80%,
        transparent 100%);
    background-size: 200% 100%;
    animation: hc-header-band-scroll 6s linear infinite;
}

/* ── Item 99: Skeleton loader choreography ── */
.hc-skeleton-card > .hc-skeleton:nth-child(1) { animation-delay:   0ms; width: 45%; }
.hc-skeleton-card > .hc-skeleton:nth-child(2) { animation-delay: 120ms; width: 100%; }
.hc-skeleton-card > .hc-skeleton:nth-child(3) { animation-delay: 240ms; width: 100%; }
.hc-skeleton-card > .hc-skeleton:nth-child(4) { animation-delay: 360ms; width: 80%; }
.hc-skeleton-card > .hc-skeleton:nth-child(5) { animation-delay: 480ms; width: 90%; }
.hc-skeleton-card > .hc-skeleton:nth-child(6) { animation-delay: 600ms; width: 60%; }
/* Pulse-in reveal when skeleton is replaced */
@keyframes hc-skeleton-reveal {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hc-skeleton-revealed { animation: hc-skeleton-reveal var(--dur-element) var(--ease-out) both; }

/* ── Item 100: Cinematic run status live ticker ── */
.hc-run-ticker {
    position: fixed; bottom: 0; left: 0; right: 0; height: 30px;
    display: flex; align-items: center; overflow: hidden;
    background: rgba(7,9,15,.96); border-top: 1px solid var(--border);
    z-index: 850; gap: 0;
}
.hc-run-ticker-label {
    flex-shrink: 0; padding: 0 14px;
    font-size: 10px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1px; color: var(--accent);
    border-right: 1px solid var(--border);
    height: 100%; display: flex; align-items: center;
    background: rgba(56,189,248,.06);
}
.hc-run-ticker-label.hc-ticker-ok   { color: var(--ok);   background: rgba(34,197,94,.06); }
.hc-run-ticker-label.hc-ticker-crit { color: var(--crit); background: rgba(239,68,68,.08); }
.hc-run-ticker-track { flex: 1; overflow: hidden; position: relative; height: 100%; }
@keyframes hc-ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
/* 2026-11-06: one still status bar on every page (no scrolling, each figure once, each a link) */
.hc-run-ticker-items {
    display: flex; align-items: center; height: 100%;
    white-space: nowrap; gap: 26px; padding: 0 20px; overflow: hidden;
}
.hc-run-ticker-item { font-size: 11px; display: flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.hc-run-ticker-item b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.hc-run-ticker-item:hover span:last-child, .hc-run-ticker-item:focus-visible span:last-child { text-decoration: underline; }
.hc-ticker-dot-mute { background: var(--muted); }
@media (max-width: 700px) { .hc-run-ticker-item:nth-child(n+3) { display: none; } .hc-run-ticker-time { display: none; } }
.hc-ticker-dot {
    width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.hc-ticker-dot-ok   { background: var(--ok);   box-shadow: 0 0 5px var(--ok); }
.hc-ticker-dot-warn { background: var(--warn); }
.hc-ticker-dot-crit { background: var(--crit); box-shadow: 0 0 5px var(--crit); animation: hc-pulse 1.5s ease-in-out infinite; }
.hc-ticker-dot-info { background: var(--accent); }
.hc-run-ticker-time { flex-shrink: 0; padding: 0 14px; font-size: 10px; color: var(--muted);
                      border-left: 1px solid var(--border); height: 100%; display: flex; align-items: center;
                      font-family: var(--font-mono,'JetBrains Mono',monospace); }
/* When ticker active, hide sticky-footer (ticker replaces it) */
body.hc-ticker-active .hc-sticky-footer { display: none !important; }
body.hc-ticker-active .hc-ctx-bar       { bottom: 30px; }

/* ── System status in the bottom bar: website, database, morning run (hc.js) ── */
.hc-run-ticker-label.hc-ticker-run { color: var(--accent); background: rgba(56,189,248,.14); }
.hc-sys { flex-shrink: 0; height: 100%; display: flex; align-items: center; border-left: 1px solid var(--border); }
.hc-sys-btn { height: 100%; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: none; border: 0;
              color: var(--muted); font: inherit; font-size: 11px; white-space: nowrap; cursor: pointer; }
.hc-sys-btn:hover, .hc-sys-btn[aria-expanded="true"] { color: var(--text); background: rgba(255,255,255,.05); }
.hc-sys-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.hc-sys-lbl { margin-right: 4px; }
.hc-sys-sep { width: 1px; height: 14px; background: var(--border); margin: 0 4px; }
.hc-sys-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; background: var(--muted); }
.hc-sys-dot.ok   { background: var(--ok); }
.hc-sys-dot.warn { background: var(--warn); }
.hc-sys-dot.bad  { background: var(--crit); }
.hc-sys-dot.run  { background: var(--accent); animation: hc-sys-blink 1.6s ease-in-out infinite; }
.hc-sys-dot.unk  { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
@keyframes hc-sys-blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.hc-sys-stage { color: var(--text); max-width: 380px; overflow: hidden; text-overflow: ellipsis; }
.hc-sys-bar { width: 64px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; flex-shrink: 0; }
.hc-sys-bar i, .hc-sys-prog i { display: block; height: 100%; background: var(--accent); transition: width .6s ease; }
.hc-sys-float { position: fixed; right: 12px; bottom: 12px; height: 30px; z-index: 851; border: 1px solid var(--border);
                border-radius: 15px; background: rgba(7,9,15,.96); overflow: hidden; }
.hc-sys-panel { position: fixed; right: 12px; bottom: 42px; z-index: 900; width: min(460px, calc(100vw - 24px));
                max-height: calc(100vh - 90px); overflow: auto; box-sizing: border-box; padding: 16px 18px 12px;
                background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 10px;
                box-shadow: var(--shadow-lg, 0 20px 50px rgba(0,0,0,.45)); font-size: 13px; line-height: 1.45; }
.hc-sys-panel h2 { margin: 0 0 10px; font-size: 15px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hc-sys-panel h2 small { font-size: 11px; font-weight: 400; color: var(--muted); }
.hc-sys-row { display: grid; grid-template-columns: 14px 86px minmax(0, 1fr); gap: 4px 8px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--border); }
.hc-sys-name { font-weight: 600; }
.hc-sys-val b { font-weight: 600; }
.hc-sys-sub { display: block; color: var(--muted); font-size: 12px; }
.hc-sys-prog { height: 6px; margin-top: 10px; border-radius: 3px; background: var(--surface2, rgba(255,255,255,.08)); overflow: hidden; }
.hc-sys-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 5px; }
.hc-sys-steps li { display: flex; gap: 8px; font-size: 12px; color: var(--muted); }
.hc-sys-steps li.done { color: var(--text); }
.hc-sys-steps li.now { color: var(--text); font-weight: 600; }
.hc-sys-steps li.halt { color: var(--crit); font-weight: 600; }
.hc-sys-steps li .hc-sys-sub { font-weight: 400; }
.hc-sys-steps .mk { width: 14px; flex-shrink: 0; text-align: center; }
.hc-sys-steps li.now .mk { color: var(--accent); }
.hc-sys-steps .hc-sys-time { margin-left: auto; padding-left: 10px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hc-sys-prog-done i { background: var(--ok, #16a34a); }
.hc-sys-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 10px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.hc-sys-foot a { margin-left: auto; color: var(--accent); font-weight: 600; text-decoration: none; }
.hc-sys-foot a:hover { text-decoration: underline; }
@media (max-width: 760px) { .hc-sys-lbl, .hc-sys-stage, .hc-sys-bar { display: none; } }
@media (prefers-reduced-motion: reduce) { .hc-sys-dot.run { animation: none; } .hc-sys-bar i, .hc-sys-prog i { transition: none; } }
@media print { .hc-sys, .hc-sys-panel { display: none !important; } }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .hc-ctx-bar,
    .hc-run-ticker-items { animation: none; }
    .hc-page-header::after { animation: none; }
    .hc-supp-tl-crit { animation: none; }
    .hc-kpi-neon-crit { animation: none; }
}
/* ═══════════════════════════════════════════════════════
   SESSION B — Batch 2: new routes, interactivity, perf
   Items: 3,4,7,9,41,48,60,65,67,69,79,34
   ═══════════════════════════════════════════════════════ */

/* #34 Platform vendor icon avatars */
.hc-plat-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 6px;
    font-size: 12px; font-weight: 800; letter-spacing: -.5px;
    flex-shrink: 0; line-height: 1;
}

/* #42 Pinned favourite targets */
.hc-pin-btn { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 13px;
    padding: 0 3px; transition: color .15s; vertical-align: middle; }
.hc-pin-btn.pinned { color: var(--warn); }
.hc-pin-btn:hover { color: var(--text); }

/* #46 Recent actions popover */
.hc-recent-actions {
    position: fixed; bottom: 60px; right: 16px; z-index: 200;
    background: var(--surface2); border: 1px solid var(--border); border-radius: 10px;
    min-width: 260px; max-width: 340px; padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.35); display: none;
}
.hc-recent-actions.open { display: block; animation: hc-fade-in .15s ease; }
.hc-recent-action-item { font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.hc-recent-action-item:last-child { border-bottom: none; }

/* #57 Expandable dashboard row */
.hc-dash-expand-row { background: var(--surface2) !important; }
.hc-dash-expand-row td { padding: 0 !important; }

/* SLA tier badges */
.hc-sla-gold   { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.hc-sla-silver { background: rgba(148,163,184,.12); color: #94a3b8; border: 1px solid rgba(148,163,184,.3); }
.hc-sla-bronze { background: rgba(180,83,9,.12); color: #b45309; border: 1px solid rgba(180,83,9,.3); }
.hc-sla-fail   { background: rgba(239,68,68,.12); color: var(--crit); border: 1px solid rgba(239,68,68,.3); }

/* Capacity forecast table */
.hc-cap-urgent { color: var(--crit); font-weight: 700; }
.hc-cap-warn   { color: var(--warn); font-weight: 700; }

/* Filter saves strip */
#hc-filter-saves { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 22px; }

/* ── PERM-SIDEBAR — permanent left navigation (replaces More dropdown on desktop) ── */
.hc-sidenav {
    position: fixed;
    left: 0;
    top: 54px;                         /* sits below the top nav bar */
    width: 56px;
    height: calc(100vh - 54px);
    background: var(--nav-bg, var(--nav-glass, #0d1220));
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 190;                      /* below nav (200) but above content */
    overflow: hidden;
    transition: width .22s cubic-bezier(.4,0,.2,1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.hc-sidenav:hover {
    width: 224px;
    box-shadow: 4px 0 28px rgba(0,0,0,.4);
}
/* Pinned-open state (toggled via JS) */
.hc-sidenav.hc-sn-pinned { width: 224px; box-shadow: 4px 0 28px rgba(0,0,0,.4); }

.hc-sn-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    padding: 6px 0 20px;
}
.hc-sn-scroll::-webkit-scrollbar { width: 3px; }
.hc-sn-scroll::-webkit-scrollbar-track { background: transparent; }
.hc-sn-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.hc-sn-section {
    font-size: 9px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 16px 3px;
    width: 224px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .15s;
    pointer-events: none;
}
.hc-sidenav:hover .hc-sn-section,
.hc-sidenav.hc-sn-pinned .hc-sn-section { opacity: 1; }

.hc-sn-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    width: 224px;
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s, color .15s, border-left-color .15s;
    border-left: 2px solid transparent;
    position: relative;
}
.hc-sn-item:hover {
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    border-left-color: var(--accent);
}
.hc-sn-item.hc-sn-active {
    background: var(--surface);
    color: var(--accent);
    border-left-color: var(--accent);
}
.hc-sn-icon {
    font-size: 15px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
}
/* line icons (2026-11-06, HtmlHelpers $HcIcons) in place of colour emoji: they take the text colour */
.hc-ico { width: 18px; height: 18px; flex-shrink: 0; display: inline-block; vertical-align: -4px; stroke: currentColor; }
.hc-sn-icon .hc-ico { width: 19px; height: 19px; vertical-align: 0; }
.hc-nav-askhc-btn .hc-ico, .hc-nav-config .hc-ico, .hc-theme-btn .hc-ico, .hc-nav-menu-btn .hc-ico { width: 16px; height: 16px; }
.hc-sn-label {
    opacity: 0;
    transition: opacity .15s .04s;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.hc-sidenav:hover .hc-sn-label,
.hc-sidenav.hc-sn-pinned .hc-sn-label { opacity: 1; }

/* Sidebar "Systems" quick-launch list (console links) */
.hc-sn-systems > summary { list-style: none; cursor: pointer; }
.hc-sn-systems > summary::-webkit-details-marker { display: none; }
.hc-sn-syscount { font-size: 10px; color: var(--muted); background: var(--surface); border-radius: 8px; padding: 0 6px; margin-left: 4px; }
.hc-sn-syswrap { display: none; max-height: 42vh; overflow-y: auto; padding-bottom: 6px; }
.hc-sidenav:hover .hc-sn-systems[open] .hc-sn-syswrap,
.hc-sidenav.hc-sn-pinned .hc-sn-systems[open] .hc-sn-syswrap { display: block; }
.hc-sn-syslink { display: flex; align-items: center; gap: 6px; padding: 5px 12px 5px 26px; font-size: 11.5px; color: var(--muted); text-decoration: none; white-space: nowrap; overflow: hidden; }
.hc-sn-systxt { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.hc-sn-ext { font-size: 10px; opacity: .55; flex-shrink: 0; }
.hc-sn-syslink:hover { background: var(--surface); color: var(--text); }

/* Pinned tabs — shown in top nav on desktop only */
.hc-nav-pinned { display: none; gap: 2px; align-items: center; }

/* Layout offsets — desktop: content shifts right of sidebar */
@media (min-width: 768px) {
    .hc-nav        { margin-left: 56px; }
    .hc-main       { margin-left: 56px; }
    .hc-footer     { margin-left: 56px; }
    .hc-sticky-footer { left: 56px; }
    /* Hide full tab row on desktop — sidebar handles full navigation */
    .hc-nav-links  { display: none !important; }
    /* Show the 4 pinned tabs in the top bar. They give way to the right-hand controls: tabs that
       do not fit wrap onto a second row that is clipped, so a tab drops out whole (at 1440 px
       they pushed the clock and Sign out 185 px off the screen - 2026-10-25). */
    .hc-nav-pinned { display: flex; flex-wrap: wrap; min-width: 0; height: 34px; overflow: hidden; align-content: flex-start; }
    /* Spacer pushes utility buttons to the right */
    .hc-nav-spacer { flex: 1; }
}

/* Phones: the side menu is hidden until the Menu button opens it as a drawer (review U1) */
.hc-nav-menu-btn { display: none; }
@media (max-width: 767px) {
    .hc-nav-menu-btn { display: inline-flex; align-items: center; gap: 6px; margin: 8px 10px 8px 0; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 700; color: inherit; background: transparent; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; }
    .hc-nav-menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .hc-sidenav.hc-sn-drawer { display: flex !important; top: 0; height: 100vh; height: 100dvh; width: min(300px, 86vw) !important; z-index: 1000; box-shadow: 8px 0 40px rgba(0,0,0,.45); transition: none; }
    .hc-sidenav.hc-sn-drawer .hc-sn-label, .hc-sidenav.hc-sn-drawer .hc-sn-section, .hc-sidenav.hc-sn-drawer .hc-sn-section > span { opacity: 1 !important; }
    .hc-sidenav.hc-sn-drawer .hc-sn-systems[open] .hc-sn-syswrap { display: block; }
    .hc-sn-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 999; }
}
/* Mobile: hide sidebar (until the Menu button opens it) */
@media (max-width: 767px) {
    .hc-sidenav:not(.hc-sn-drawer) { display: none !important; }
    .hc-nav-pinned { display: none !important; }
    .hc-nav-spacer { display: none; }
    .hc-nav        { margin-left: 0; }
    .hc-main       { margin-left: 0; }
    .hc-footer     { margin-left: 0; }
    .hc-sticky-footer { left: 0; overflow-x: auto; white-space: nowrap; gap: 12px; padding: 0 12px; }
}

/* ── PERF-OPT-2026-05-18: Rendering performance optimisations ── */
/* content-visibility defers paint cost for off-screen card groups */
.hc-kpi-grid {
    content-visibility: auto;
    contain-intrinsic-size: auto 120px;
}

/* GPU-layer hints for elements that animate opacity/transform frequently */
.hc-score-pill,
.hc-status-banner,
.score-pill,
.hc-bar-fill,
.hc-passrate-fill,
.hc-dur-fill {
    will-change: transform;
}

/* Sidebar transition is hardware-accelerated */
.hc-sidenav { will-change: width; }

/* Prevent layout thrash on table row hover — compositor-only paint */
.hc-table tbody tr { will-change: background-color; }

/* Consolidate .hc-card-title to its final resolved state (lines 201/1300 were superseded) */
.hc-card-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: none;
    color: var(--text);
    opacity: 0.75;
    margin-bottom: 14px;
}

/* ── BRIEFING-V1 — /briefing tab prose styles and print augmentation ── */
.hc-briefing-body h3 {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 28px 0 8px;
}
.hc-briefing-body h3:first-child { margin-top: 0; }
.hc-briefing-body p {
    font-size: 14px;
    line-height: 1.85;
    color: var(--text) !important;
    margin: 0 0 14px;
}
.hc-briefing-body p:last-child { margin-bottom: 0; }
@media print {
    .hc-sidenav, .hc-aurora-wrap { display: none !important; }
    .hc-briefing-body h3 { color: #555 !important; }
    .hc-briefing-body p  { color: #1a1a1a !important; }
    a[href]::after { content: none !important; }
}

/* ── POLISH-V1 — typography floor, details toggles, motion guard ── */
.hc-table th { font-size: 11px !important; }

.hc-det-toggle {
    display: inline-block;
    font-size: 9px;
    color: var(--muted);
    margin-right: 5px;
    vertical-align: middle;
    transition: transform .18s ease;
    flex-shrink: 0;
}
details[open] > summary .hc-det-toggle { transform: rotate(90deg); }

@media (prefers-reduced-motion: reduce) {
    .hc-aurora-blob { animation: none !important; }
    .hc-det-toggle  { transition: none; }
}

/* Consolidate .hc-kpi-label to final resolved state (line 248 superseded by 1208) */
.hc-kpi-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 6px;
}

/* ── CAP-DRILL-V1 — Capacity KPI card drill-down panels ── */
.hc-kpi-clickable {
    cursor: pointer;
    position: relative;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.hc-kpi-clickable:hover {
    box-shadow: 0 0 0 2px var(--accent);
}
.hc-kpi-clickable.hc-kpi-active {
    box-shadow: 0 0 0 2px var(--accent);
    background: rgba(99,102,241,0.08);
}
.hc-kpi-clickable .hc-kpi-label::after {
    content: ' \25BE';
    font-size: 9px;
    opacity: 0.5;
}
.hc-cap-drill {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 4px 0 12px;
    animation: hcFadeIn 0.15s ease;
}
.hc-cap-drill .hc-cap-drill-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.hc-cap-drill .hc-cap-drill-empty {
    font-size: 12px;
    color: var(--muted);
    padding: 4px 0;
}

/* ── MC-V1 — Mission Control tab ── */
.mc-ai-hero {
    background: linear-gradient(135deg, rgba(99,102,241,.18) 0%, rgba(16,185,129,.12) 100%);
    border: 1px solid rgba(99,102,241,.35);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.mc-ai-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(99,102,241,.06) 50%, transparent 100%);
    animation: mc-shimmer 4s ease-in-out infinite;
}
@keyframes mc-shimmer { 0%,100%{opacity:0} 50%{opacity:1} }
.mc-ai-text {
    font-size: 13px;
    line-height: 1.65;
    color: var(--fg);
    position: relative;
}
.mc-hi-crit { color: var(--crit); font-weight: 700; }
.mc-hi-warn { color: var(--warn);  font-weight: 700; }
.mc-hi-ok   { color: var(--ok);       font-weight: 700; }

.mc-kpi-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
@media (max-width: 1100px) { .mc-kpi-row { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 700px)  { .mc-kpi-row { grid-template-columns: repeat(2,1fr); } }
.mc-kpi {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mc-kpi-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); }
.mc-kpi-score {
    font-size: 28px;
    font-weight: 800;
    font-family: 'Oxanium', sans-serif;
    line-height: 1;
}
.mc-kpi-score.ok       { color: var(--ok); }
.mc-kpi-score.warn     { color: var(--warn); }
.mc-kpi-score.crit     { color: var(--crit); }
.mc-kpi-score.resolved { color: var(--accent); }
.mc-kpi-delta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.mc-delta-up   { color: var(--crit); }
.mc-delta-down { color: var(--ok); }
.mc-delta-flat { color: var(--muted); }

.mc-timeline-outer { overflow-x: auto; }
.mc-timeline-grid {
    display: grid;
    gap: 3px;
    min-width: 500px;
}
.mc-tl-name {
    font-size: 11px;
    color: var(--muted);
    padding: 2px 6px 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    align-self: center;
}
.mc-tl-cell {
    border-radius: 4px;
    height: 22px;
    cursor: default;
    transition: opacity .15s;
    position: relative;
}
.mc-tl-cell:hover { opacity: .75; }
.mc-tl-cell.ok     { background: var(--ok); }
.mc-tl-cell.warn   { background: var(--warn); }
.mc-tl-cell.crit   { background: var(--crit); }
.mc-tl-cell.nodata { background: var(--border); }
.mc-domain-row {
    display: grid;
    grid-template-columns: 130px 1fr 44px;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.mc-domain-name  { font-size: 12px; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-domain-track { background: var(--border); border-radius: 4px; height: 10px; overflow: hidden; }
.mc-domain-fill  {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--ok), rgba(16,185,129,.5));
    animation: hc-bar-grow .7s ease both;
}
.mc-domain-fill.warn { background: linear-gradient(90deg, var(--warn), rgba(251,191,36,.5)); }
.mc-domain-fill.crit { background: linear-gradient(90deg, var(--crit), rgba(239,68,68,.5)); }
.mc-domain-score { font-size: 12px; font-weight: 700; color: var(--fg); text-align: right; }

.mc-cap-row {
    display: grid;
    grid-template-columns: 150px 1fr 44px 72px;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}
/* Mission Control is used on any device, unlike the TV/kiosk-only blocks in this file - these
   two rows had no mobile override at all, so a 150px fixed name column alone left under half
   the width for everything else on a phone-width viewport. */
@media (max-width: 700px) {
    .mc-domain-row { grid-template-columns: 76px 1fr 36px; gap: 6px; }
    .mc-cap-row    { grid-template-columns: 76px 1fr 36px 52px; gap: 6px; }
    .mc-domain-name, .mc-cap-row [class$="-name"] { font-size: 11px; }
}
.mc-cap-name  { font-size: 11px; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-cap-track { background: var(--border); border-radius: 4px; height: 8px; overflow: hidden; }
.mc-cap-fill  {
    height: 100%;
    border-radius: 4px;
    background: var(--ok);
    animation: hc-bar-grow .7s ease both;
}
.mc-cap-fill.warn { background: var(--warn); }
.mc-cap-fill.crit { background: var(--crit); }
.mc-cap-pct  { font-size: 11px; color: var(--muted); text-align: right; }
.mc-cap-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    text-align: center;
    white-space: nowrap;
}
.mc-cap-badge.crit { background: rgba(239,68,68,.18); color: var(--crit); }
.mc-cap-badge.warn { background: rgba(251,191,36,.15); color: var(--warn); }
.mc-cap-badge.ok   { background: rgba(16,185,129,.15); color: var(--ok); }

.mc-anomaly {
    font-size: 11px;
    color: var(--warn);
    background: rgba(251,191,36,.1);
    border: 1px solid rgba(251,191,36,.25);
    border-radius: 6px;
    padding: 6px 10px;
    margin-top: 10px;
}

.mc-systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}
.mc-sys-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    position: relative;
    overflow: hidden;
}
.mc-sys-card.is-crit {
    border-color: rgba(239,68,68,.5);
    animation: mc-ring-pulse 2.5s ease-in-out infinite;
}
.mc-sys-card.is-warn { border-color: rgba(251,191,36,.4); }
@keyframes mc-ring-pulse {
    0%,100% { box-shadow: 0 0 0 1px rgba(239,68,68,.15), 0 0 12px rgba(239,68,68,.12); }
    50%      { box-shadow: 0 0 0 3px rgba(239,68,68,.28), 0 0 22px rgba(239,68,68,.22); }
}
.mc-sys-hd   { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.mc-sys-info { flex: 1; min-width: 0; }
.mc-sys-name { font-size: 12px; font-weight: 700; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-sys-plat { font-size: 10px; color: var(--muted); margin-top: 1px; }
.mc-sys-status {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
    margin-left: 8px;
}
.mc-sys-status.ok     { background: rgba(16,185,129,.15); color: var(--ok); }
.mc-sys-status.warn   { background: rgba(251,191,36,.15); color: var(--warn); }
.mc-sys-status.crit   { background: rgba(239,68,68,.15);  color: var(--crit); }
.mc-sys-status.nodata { background: var(--border);        color: var(--muted); }

.mc-sla-strip { display: flex; gap: 2px; margin-bottom: 4px; }
.mc-sla-day {
    flex: 1;
    height: 6px;
    border-radius: 2px;
}
.mc-sla-day.ok     { background: var(--ok); }
.mc-sla-day.warn   { background: var(--warn); }
.mc-sla-day.crit   { background: var(--crit); }
.mc-sla-day.nodata { background: var(--border); }
.mc-sla-labels { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); }
.mc-sys-chips  { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.mc-sys-chip {
    font-size: 10px;
    padding: 1px 7px;
    border-radius: 8px;
    background: rgba(99,102,241,.12);
    color: var(--accent);
    border: 1px solid rgba(99,102,241,.25);
}

.mc-time-in-state { font-size: 11px; white-space: nowrap; }
.mc-time-in-state.crit { color: var(--crit); font-weight: 700; }
.mc-time-in-state.warn { color: var(--warn); }

.mc-activity-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.mc-activity-time { font-size: 10px; color: var(--muted); white-space: nowrap; flex-shrink: 0; min-width: 72px; padding-top: 2px; }
.mc-activity-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.mc-activity-dot.crit { background: var(--crit); }
.mc-activity-dot.warn { background: var(--warn); }
.mc-activity-dot.ok   { background: var(--ok); }
.mc-activity-dot.info { background: var(--accent); }
.mc-activity-msg  { font-size: 12px; color: var(--fg); line-height: 1.4; }

.mc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .mc-grid-2 { grid-template-columns: 1fr; } }

/* ── FONTS-V1 — Self-hosted Oxanium + JetBrains Mono (eliminates Google Fonts CDN on every page load) ── */
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('/public/fonts/JetBrainsMono.woff2') format('woff2');
}
@font-face {
    font-family: 'Oxanium';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/public/fonts/Oxanium.woff2') format('woff2');
}

/* ── IMPROV-V1: Visual, performance & usability improvements ── */

/* V8 — Keyboard focus-visible outlines */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 3px;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* V15 — Page fade-in transition */
.hc-main, .hc-content {
    animation: hc-page-in 180ms ease backwards;
}
@keyframes hc-page-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .hc-main, .hc-content { animation: none; }
}

/* V11 — Timeline & SLA strip minimum cell width */
.mc-tl-cell  { min-width: 20px; }
.mc-sla-day  { min-width: 4px; }

/* V19 — Sticky table headers */
.hc-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface);
    box-shadow: 0 1px 0 var(--border);
}

/* Q8 — hc-card-desc: use var(--muted) instead of opacity for better contrast */
.hc-card-desc { color: var(--muted) !important; opacity: 1 !important; }

/* Q9 — KPI clickable cursor */
.hc-kpi-clickable { cursor: pointer; }
.hc-kpi-clickable:hover { border-color: var(--accent) !important; transform: translateY(-1px); transition: transform .15s, border-color .15s; }

/* U6 — Toast notification */
.hc-toast-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.hc-toast {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 13px;
    color: var(--text);
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: all;
    animation: hc-toast-in 220ms ease both;
    max-width: 360px;
}
.hc-toast.hc-toast-ok   { border-left: 3px solid var(--ok); }
.hc-toast.hc-toast-warn { border-left: 3px solid var(--warn); }
.hc-toast.hc-toast-err  { border-left: 3px solid var(--crit); }
.hc-toast.hc-toast-out  { animation: hc-toast-out 220ms ease forwards; }
@keyframes hc-toast-in  { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@keyframes hc-toast-out { from { opacity:1; transform:translateY(0); }    to { opacity:0; transform:translateY(8px); } }

/* V17 — Mobile touch targets */
@media (max-width: 768px) {
    .hc-nav-link { min-height: 44px; display: flex; align-items: center; }
    .hc-btn { min-height: 44px; }
}


/* ── Per-user draggable layout ──────────────────────── */
.hc-ls { position: relative; }
.hc-ls-handle {
    display: none;
    position: absolute;
    left: -28px;
    top: 50%;
    transform: translateY(-50%);
    cursor: grab;
    color: var(--muted);
    font-size: 18px;
    user-select: none;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color .15s, background .15s;
    z-index: 10;
}
.hc-ls-handle:hover { color: var(--accent); background: rgba(56,189,248,.08); }
body.hc-layout-editing .hc-ls { cursor: default; margin-left: 32px; }
body.hc-layout-editing .hc-ls-handle { display: flex; align-items: center; }
body.hc-layout-editing .hc-ls.sortable-ghost { opacity: .4; }
body.hc-layout-editing .hc-ls.sortable-chosen { box-shadow: 0 0 0 2px var(--accent); border-radius: 8px; }
#hc-edit-layout-btn {
    font-family: var(--font-ui, 'Oxanium', sans-serif);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    transition: all .2s;
    letter-spacing: .3px;
}
#hc-edit-layout-btn:hover, #hc-edit-layout-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(56,189,248,.06);
}

/* ── Loading skeletons (shimmer placeholders) ─────────────────────────── */
@keyframes hcShimmer { 0% { background-position: -450px 0; } 100% { background-position: 450px 0; } }
.hc-skel {
    background: linear-gradient(90deg, rgba(148,163,184,.08) 25%, rgba(148,163,184,.20) 50%, rgba(148,163,184,.08) 75%);
    background-size: 900px 100%;
    animation: hcShimmer 1.4s linear infinite;
    border-radius: 6px;
}
.hc-skel-line { height: 11px; margin-bottom: 9px; }
.hc-skel-wrap { padding: 4px 0; }

/* ── Delight layer: glossary hints, help launcher, tour, confetti ── */
.hc-gloss { border-bottom: 1px dotted var(--muted); cursor: help; }
.hc-gloss-show .hc-gloss {
    background: var(--accent-soft);
    border-bottom: 1px dashed var(--accent);
    border-radius: 3px;
    box-shadow: 0 0 0 2px var(--accent-soft);
}
.hc-confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 100000; }


/* "Added by" (hc.js data-hc-actor): only the signed-in account, with their photo */
.hc-actor{display:flex;flex-direction:column;gap:4px;min-width:0;}
.hc-actor > label{font-size:12px;color:var(--muted);font-weight:600;}
.hc-actor-row{display:flex;align-items:center;gap:8px;min-width:0;}
.hc-actor-av{position:relative;flex:none;width:30px;height:30px;border-radius:50%;overflow:hidden;background:var(--accent);color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;}
.hc-actor-av img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.hc-actor-sel{flex:1;min-width:0;background:var(--surface);border:1px solid var(--border);border-radius:6px;color:var(--text);padding:6px 8px;font:inherit;font-size:13px;}
.hc-actor-note{font-size:11px;color:var(--muted);}

/* Summary status card: a light that travels round the edge while there is something to act on.
   Red for Action Required (6 s a lap), slower amber for Warnings Present, nothing for All Clear.
   Replaces the shimmer sweep on that card; a still outline when the viewer asks for less motion. */
@property --hc-ring-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes hc-ring-spin { to { --hc-ring-a: 360deg; } }
.hc-status-banner.hc-ring { --hc-ring-c: #f87171; }
.hc-status-banner.hc-ring.hc-status-warn { --hc-ring-c: #fbbf24; }
.hc-status-banner.hc-ring::after { display: none; }
.hc-status-banner.hc-ring::before {
    content: ''; position: absolute; inset: 0; padding: 2px; border-radius: inherit; pointer-events: none; z-index: 0;
    background: conic-gradient(from var(--hc-ring-a), transparent 0deg 312deg,
        color-mix(in srgb, var(--hc-ring-c) 35%, transparent) 340deg, var(--hc-ring-c) 354deg, #fff 358deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
    animation: hc-ring-spin var(--hc-ring-t) linear infinite;
}
.hc-status-banner.hc-ring > * { position: relative; z-index: 1; }
html.theme-is-light .hc-status-banner.hc-ring { --hc-ring-c: #dc2626; }
html.theme-is-light .hc-status-banner.hc-ring.hc-status-warn { --hc-ring-c: #d97706; }
@media (prefers-reduced-motion: reduce) {
    .hc-status-banner.hc-ring::before { animation: none; background: color-mix(in srgb, var(--hc-ring-c) 45%, transparent); }
}

/* Summary card: flash twice when there are new criticals since your last visit (summary-live.js) */
@keyframes hc-card-flash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hc-ring-c) 0%, transparent); } 35% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--hc-ring-c) 45%, transparent), 0 0 28px color-mix(in srgb, var(--hc-ring-c) 35%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.hc-status-banner.hc-ring-new { animation: hc-card-flash 1.3s ease-out 2; }
.hc-newcrit { font-size: 11.5px; font-weight: 800; color: #fff; background: var(--crit); border-radius: 999px; padding: 3px 10px; text-decoration: none; white-space: nowrap; }
.hc-newcrit:hover { filter: brightness(1.1); }
/* Heartbeat: breathes while the 15-minute host check is current, beats when a new one lands */
.hc-beat-wrap { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.hc-beat { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: hc-breathe 3s ease-in-out infinite; }
.hc-beat.beat { animation: hc-beat-ping .9s ease-out 1, hc-breathe 3s ease-in-out .9s infinite; }
.hc-beat.stale { background: var(--muted); animation: none; }
@keyframes hc-breathe { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes hc-beat-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 70%, transparent); opacity: 1; } 100% { box-shadow: 0 0 0 10px transparent; opacity: 1; } }
/* Domain cards: a still coloured edge where there is something to look at next */
.hc-dom-crit { border-color: color-mix(in srgb, var(--crit) 45%, var(--border)) !important; box-shadow: inset 3px 0 0 var(--crit); }
.hc-dom-warn { border-color: color-mix(in srgb, var(--warn) 35%, var(--border)) !important; box-shadow: inset 3px 0 0 color-mix(in srgb, var(--warn) 70%, transparent); }
@media (prefers-reduced-motion: reduce) {
    .hc-status-banner.hc-ring-new, .hc-beat, .hc-beat.beat { animation: none; }
}

/* -- Side menu behaviour (2026-10-10) ------------------------------------------------------
   Opens after a short pause (not the moment the pointer brushes the left edge), opens for
   keyboard focus, shows group dividers while collapsed, groups fold and remember it (hc.js),
   and pinning pushes the page over instead of covering it. */
.hc-sidenav { transition: width .2s cubic-bezier(.4,0,.2,1) 0s; }
.hc-sidenav:hover, .hc-sidenav:focus-within { width: 224px; box-shadow: 4px 0 28px rgba(0,0,0,.4); transition-delay: .25s; }
.hc-sidenav:hover .hc-sn-label, .hc-sidenav:focus-within .hc-sn-label,
.hc-sidenav:hover .hc-sn-section > span, .hc-sidenav:focus-within .hc-sn-section > span { opacity: 1; transition-delay: .3s; }
.hc-sidenav.hc-sn-pinned .hc-sn-section > span { opacity: 1; }
.hc-sn-group { border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent); margin: 4px 10px 0; padding-top: 2px; }
.hc-sn-group:first-child { border-top: 0; }
.hc-sn-group .hc-sn-item { margin-left: -10px; }
.hc-sn-section {
    display: flex; align-items: center; justify-content: space-between; width: 204px;
    background: none; border: 0; cursor: pointer; font: inherit; opacity: 1 !important; pointer-events: auto !important;
    font-size: 9.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 1.4px;
    padding: 8px 6px 4px; white-space: nowrap;
}
.hc-sn-section > span { opacity: 0; transition: opacity .15s; }
.hc-sn-section:hover { color: var(--text); }
.hc-sn-caret { font-size: 10px; transition: transform .15s, opacity .15s; }
.hc-sn-group.hc-sn-closed .hc-sn-caret { transform: rotate(-90deg); }
.hc-sn-group.hc-sn-closed .hc-sn-items { display: none; }
.hc-sn-ext { font-size: 10px; opacity: .55; margin-left: 4px; }
.hc-sn-item .hc-nav-badge { flex-shrink: 0; }
@media (min-width: 768px) {
    body.hc-sn-pinned-on .hc-nav, body.hc-sn-pinned-on .hc-main, body.hc-sn-pinned-on .hc-footer { margin-left: 224px; }
    body.hc-sn-pinned-on .hc-sticky-footer { left: 224px; }
}
@media (prefers-reduced-motion: reduce) { .hc-sidenav, .hc-sn-label, .hc-sn-section > span { transition: none !important; } }

/* Arrange the side menu (hc.js) */
.hc-sn-arrange{border-top:1px solid var(--border);padding:6px 0;flex:none;}
.hc-sn-arr-btn{display:flex;align-items:center;gap:12px;width:224px;padding:8px 16px;background:none;border:0;color:var(--muted);font:inherit;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap;text-align:left;}
.hc-sn-arr-btn:hover{color:var(--text);background:var(--surface);}
.hc-sn-arr-bar{display:flex;gap:6px;padding:6px 12px;width:224px;box-sizing:border-box;}
.hc-sn-arr-bar[hidden]{display:none;}
.hc-sn-arr-bar button{flex:1;border-radius:7px;padding:6px 8px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;border:1px solid var(--border);background:var(--surface2);color:var(--text);}
.hc-sn-arr-bar .hc-sn-arr-done{background:var(--accent);border-color:var(--accent);color:#0b1220;}
.hc-sidenav.hc-sn-arranging{width:224px;box-shadow:4px 0 28px rgba(0,0,0,.4);}
.hc-sidenav.hc-sn-arranging .hc-sn-label,.hc-sidenav.hc-sn-arranging .hc-sn-section > span{opacity:1;}
.hc-sidenav.hc-sn-arranging .hc-sn-group{outline:1px dashed color-mix(in srgb,var(--accent) 45%,transparent);outline-offset:-1px;border-radius:8px;margin-top:6px;}
.hc-sidenav.hc-sn-arranging .hc-sn-items{display:block !important;}
.hc-sidenav.hc-sn-arranging .hc-sn-caret{display:none;}
.hc-sidenav.hc-sn-arranging a.hc-sn-item{cursor:grab;}
.hc-sidenav.hc-sn-arranging .hc-sn-section{cursor:grab;}
.hc-sn-dragging{opacity:.45;}
.hc-sn-mv{display:inline-grid;place-items:center;flex:none;background:var(--surface2);border:1px solid var(--border);border-radius:4px;color:var(--muted);font-size:8px;line-height:1;width:18px;height:16px;padding:0;cursor:pointer;margin-left:2px;}
.hc-sn-mv:hover,.hc-sn-mv:focus-visible{color:var(--text);border-color:var(--accent);}
.hc-sn-section .hc-sn-mv:first-of-type{margin-left:auto;}
@media (max-width:767px){.hc-sn-arrange{display:none;}}
/* arrange mode layout: names truncate, arrows line up on the right, nothing covers the buttons */
.hc-sn-arr-btn[hidden]{display:none;}
.hc-sn-arrange{padding-bottom:34px;}
.hc-sidenav.hc-sn-arranging .hc-sn-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;}
.hc-sidenav.hc-sn-arranging a.hc-sn-item{padding-right:8px;gap:8px;}
.hc-sidenav.hc-sn-arranging a.hc-sn-item .hc-sn-mv:first-of-type{margin-left:auto;}
.hc-sidenav.hc-sn-arranging .hc-sn-section > span:first-child{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:left;}
.hc-sidenav.hc-sn-arranging .hc-sn-section{width:100%;box-sizing:border-box;padding-right:4px;}
.hc-sidenav.hc-sn-arranging .hc-sn-group .hc-sn-item{margin-left:-10px;width:calc(100% + 10px);box-sizing:border-box;}

/* Skip link (review U9): the first stop for a keyboard user, past the ~65 menu and control stops */
.hc-skip { position: absolute; left: -9999px; top: 8px; z-index: 3000; padding: 10px 16px; background: var(--accent, #0a0a0a); color: var(--on-accent, #fff); font-weight: 700; text-decoration: none; }
.hc-skip:focus { left: 8px; outline: 2px solid var(--on-accent, #fff); outline-offset: -4px; }
#main:focus { outline: none; }

/* The alert bar (hc.js, 2026-10-29): Security and Storage, one row each with the same parts in the same places:
   what it is | the headline count | chips (each opens its detail) | the link to the full page and Hide.
   The two banner slots sit together in the page shell, so two rows share one box. Theme tokens only. */
/* Security, Passwords (2026-11-12) and Storage stack in that order: a row followed by another showing row loses its gap,
   and the row below it loses its top border, so the rows read as one box */
/* the alert bar folded into one line (hc.js, 2026-11-12): the rows are hidden and #hc-alert-summary shows a chip for each */
html.hc-ab-folded #hc-unread-banner, html.hc-ab-folded #hc-security-banner, html.hc-ab-folded #hc-password-banner, html.hc-ab-folded #hc-storage-banner { display: none !important; }
#hc-alert-summary { margin-bottom: 12px; }
#hc-alert-summary:not([style*="none"]) ~ .hc-tabs { margin-top: 0; }
.hc-ab1 { --ab: var(--crit); display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-height: 42px; padding: 6px 12px; background: var(--surface); color: var(--text);
    border: 1px solid var(--border); border-left: 4px solid var(--ab); font-size: 13px; line-height: 1.35; }
.hc-ab1.is-warn { --ab: var(--warn); }
.hc-ab1-n { font-weight: 800; margin-right: 6px; }
.hc-ab1-sp { flex: 1; }
#hc-unread-banner, #hc-security-banner, #hc-password-banner, #hc-storage-banner { margin-bottom: 12px; }
/* Not read (2026-11-23): the first row, joined to the rows under it like the others */
#hc-unread-banner:has(~ :is(#hc-security-banner, #hc-password-banner, #hc-storage-banner) .hc-ab) { margin-bottom: 0; }
#hc-unread-banner:has(.hc-ab) ~ :is(#hc-security-banner, #hc-password-banner, #hc-storage-banner) .hc-ab { border-top-width: 0; }
#hc-unread-banner:has(.hc-ab) ~ .hc-tabs { margin-top: 0; }
#hc-security-banner:has(~ #hc-password-banner .hc-ab, ~ #hc-storage-banner .hc-ab), #hc-password-banner:has(~ #hc-storage-banner .hc-ab) { margin-bottom: 0; }
#hc-security-banner:has(.hc-ab) ~ #hc-password-banner .hc-ab, :is(#hc-security-banner, #hc-password-banner):has(.hc-ab) ~ #hc-storage-banner .hc-ab { border-top-width: 0; }
.hc-ab { --ab: var(--crit); display: grid; grid-template-columns: 118px minmax(150px, 210px) minmax(0, 1fr) auto; align-items: center; gap: 8px 14px;
    min-height: 42px; padding: 6px 12px 6px 0; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-left: 4px solid var(--ab);
    font-size: 13px; line-height: 1.35; }
.hc-ab.is-warn { --ab: var(--warn); }
.hc-ab-what { display: flex; align-items: center; gap: 8px; padding-left: 12px; font-weight: 800; }
.hc-ab-ic { flex: none; width: 16px; height: 16px; color: var(--ab); }
.hc-ab-head b { color: var(--ab); font-weight: 700; }
.hc-ab-items { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.hc-ab-chip { --ab: var(--crit); display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; padding: 5px 9px; font-size: 12px; line-height: 1.25;
    color: var(--text); background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; text-decoration: none; white-space: nowrap; }
.hc-ab-chip.is-warn { --ab: var(--warn); }
.hc-ab-chip:hover { border-color: var(--text); }
.hc-ab-chip b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.hc-ab-sev { color: var(--ab); font-weight: 700; }
.hc-ab-n { color: var(--muted); }
.hc-ab-tag { align-self: center; padding: 1px 5px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--ab); border-radius: 2px; }
.hc-ab-more { font-size: 12px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.hc-ab-more:hover { color: var(--text); text-decoration: underline; }
.hc-ab-acts { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.hc-ab-link { font-size: 12.5px; font-weight: 700; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.hc-ab-x { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hc-ab-x:hover { color: var(--text); }
.hc-ab-x:disabled { opacity: .5; cursor: default; }
.hc-ab a:focus-visible, .hc-ab-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hc-ab-quiet { font-size: 12.5px; color: var(--muted); }
/* an alert showing above the tab strip: the strip stops pulling itself up under the top menu, which hid the alert's bottom edge */
#hc-security-banner:has(.hc-ab) ~ .hc-tabs, #hc-password-banner:has(.hc-ab) ~ .hc-tabs, #hc-storage-banner:has(.hc-ab, .hc-ab-quiet) ~ .hc-tabs, #hc-stale-banner:not([style*="none"]) ~ .hc-tabs { margin-top: 0; }
.hc-ab-quiet b { color: var(--text); }
@media (max-width: 760px) {
    .hc-ab { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'what' 'head' 'items' 'acts'; padding: 8px 12px 10px 0; }
    .hc-ab-what { grid-area: what; } .hc-ab-acts { grid-area: acts; padding-left: 12px; }
    .hc-ab-head { grid-area: head; padding-left: 12px; } .hc-ab-items { grid-area: items; padding-left: 12px; }
}

/* Tab strip (2026-10-29, the menu review): the pages of the current place, across the top of every page in it.
   Get-HcPlaceTabs writes it; hc.js adds the page's Detailed view as the last tab. */
.hc-tabs { display: flex; align-items: stretch; gap: 0 2px; overflow-x: auto; scrollbar-width: none; margin: -28px -36px 24px; padding: 0 36px; border-bottom: 1px solid var(--border); background: var(--surface); font-size: 13px; }
.hc-tabs::-webkit-scrollbar { display: none; }
.hc-tabs-place { align-self: center; flex-shrink: 0; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-right: 14px; margin-right: 8px; border-right: 1px solid var(--border); white-space: nowrap; }
.hc-tab { flex-shrink: 0; padding: 12px 12px 10px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.hc-tab:hover { color: var(--text); }
.hc-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.hc-tab-on { color: var(--text); font-weight: 700; border-bottom-color: var(--accent); }
.hc-tab-detail { margin-left: auto; }
/* Detailed View - Deep Dive button (2026-11-09): the same solid button on every Atlas page, under the headline and score */
.ep .ep-deep-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.ep a.ep-deep { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 14px; background: var(--ink, #0A0A0A); color: var(--paper, #fff) !important; border: 1px solid var(--ink, #0A0A0A); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none !important; line-height: 1.2; white-space: nowrap; }
.ep a.ep-deep::after { content: '\2192'; font-size: 15px; letter-spacing: 0; transition: transform .15s ease; }
.ep a.ep-deep::before { content: ''; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 3px; background: linear-gradient(90deg, #00d400 0 33.3%, #ff00a3 33.3% 66.6%, #0000ff 66.6%); }
.ep a.ep-deep:hover { background: #222; }
.ep a.ep-deep .ep-deep-eye { flex: none; width: 20px; height: 20px; margin: -2px 0; }
.ep.ep-today .ep-when a.ep-deep:hover, .ep.ep-wall .ep-when a.ep-deep:hover, .ep.ep-mission-control .ep-when a.ep-deep:hover { background: #ececec; }
.ep a.ep-deep:hover::after { transform: translateX(3px); }
.ep a.ep-deep:focus-visible { outline: 2px solid #0000ff; outline-offset: 3px; }
.ep .ep-when a.ep-deep { letter-spacing: .12em; }
.ep.ep-today .ep-when a.ep-deep, .ep.ep-wall .ep-when a.ep-deep, .ep.ep-mission-control .ep-when a.ep-deep { background: #fff; color: #0A0A0A !important; border-color: #fff; }
@media (prefers-reduced-motion: reduce) { .ep a.ep-deep::after { transition: none; } }
.hc-tabs:has(+ .ep) { margin-bottom: 0; }
.hc-tabs + .ep { margin-top: 0 !important; }
@media (max-width: 900px) { .hc-tabs { margin: -16px -14px 16px; padding: 0 14px; } }
@media (max-width: 800px) { .hc-tabs:has(+ .ep) { margin-left: -12px; margin-right: -12px; } }
@media (max-width: 768px) { .hc-tabs { margin: -12px -12px 14px; padding: 0 12px; } .hc-tabs-place { display: none; } }
/* the right-hand controls shrink to icons so the eight places fit (2026-10-29) */
@media (max-width: 1600px) { .hc-nav-search .hc-nav-lbl, .hc-nav-config[aria-label='Help'] .hc-nav-lbl { display: none; } .hc-nav-time { display: none; } }
@media (max-width: 1300px) { .hc-nav-askhc-btn .hc-nav-lbl, .hc-nav-config .hc-nav-lbl { display: none; } .hc-nav-link { font-size: 12px; padding-left: 6px; padding-right: 6px; } }

/* Phones (2026-11-06): a compact header on one row - brand, Menu, Ask HC, Search, Settings, Sign out (labels off;
   Help and the theme picker are in the Menu's pages and Settings) - and each alert banner on one line with its
   link, without the chips, so the page itself shows on the first screen. */
@media (max-width: 767px) {
    .hc-nav { flex-wrap: nowrap !important; gap: 6px; overflow: hidden; }
    .hc-nav .hc-nav-lbl, .hc-nav .hc-nav-lbl-menu, .hc-nav-time { display: none !important; }
    .hc-nav .hc-nav-config[aria-label='Help'], .hc-nav .hc-theme-btn, .hc-nav #hc-theme-btn { display: none !important; }
    .hc-nav-menu-btn { padding: 7px 9px; margin: 8px 4px 8px 0; }
    .hc-nav-askhc-btn, .hc-nav-config { padding: 7px 9px !important; min-width: 0; }
    .hc-ab { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'what head' 'acts acts'; gap: 4px 10px; padding: 8px 12px 8px 0; min-height: 0; }
    .hc-ab-items { display: none; }
    .hc-ab-head { padding-left: 0; }
    .hc-ab-acts { padding-left: 12px; gap: 16px; }
}

/* ── Export progress (hc.js hcProgress, 2026-11-07): a green bar that slides, and the time left ─────────────── */
.hc-xp{display:flex;flex-direction:column;gap:7px;max-width:760px;}
.hc-xp-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 16px;font-size:13px;}
.hc-xp-step{font-weight:800;min-width:0;overflow-wrap:anywhere;}
.hc-xp-left{font-weight:800;color:var(--ok);font-variant-numeric:tabular-nums;white-space:nowrap;}
.hc-xp-bar{position:relative;height:12px;border-radius:999px;background:color-mix(in srgb,var(--ok) 16%,var(--surface2,#e5e7eb));overflow:hidden;}
.hc-xp-bar i{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:999px;background-color:var(--ok);transition:width .3s linear;
  background-image:linear-gradient(45deg,rgba(255,255,255,.22) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.22) 50%,rgba(255,255,255,.22) 75%,transparent 75%,transparent);
  background-size:20px 20px;animation:hc-xp-slide 1s linear infinite;}
.hc-xp.done .hc-xp-bar i{animation:none;background-image:none;}
@keyframes hc-xp-slide{from{background-position:0 0;}to{background-position:20px 0;}}
.hc-xp-meta{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;}
@media (prefers-reduced-motion:reduce){.hc-xp-bar i{transition:none;animation:none;}}

/* vInventory export panel (Hypervisors, under the page header) */
.hc-vinv-panel{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:14px 16px;margin:0 0 16px;display:flex;flex-direction:column;gap:12px;}
.hc-vinv-h{position:relative;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;padding-right:30px;}
.hc-vinv-h b{font-size:14px;font-weight:800;}
.hc-vinv-h span{font-size:12px;color:var(--muted);}
.hc-vinv-x{position:absolute;right:-6px;top:-6px;border:0;background:none;color:var(--muted);font-size:20px;line-height:1;cursor:pointer;padding:2px 8px;border-radius:6px;}
.hc-vinv-x:hover{color:var(--text);} .hc-vinv-x:focus-visible{outline:2px solid var(--accent);outline-offset:1px;}
.hc-vinv-b{display:flex;flex-direction:column;gap:8px;}
.hc-vinv-note{font-size:12px;color:var(--muted);}
.hc-vinv-done{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;justify-content:space-between;background:color-mix(in srgb,var(--ok) 8%,var(--surface));border:1px solid color-mix(in srgb,var(--ok) 35%,var(--border));border-radius:8px;padding:10px 12px;}
.hc-vinv-done div{display:flex;flex-direction:column;gap:2px;min-width:0;}
.hc-vinv-done b{font-size:13.5px;overflow-wrap:anywhere;}
.hc-vinv-done span{font-size:12px;color:var(--muted);}
.hc-vinv-warn{font-size:12.5px;line-height:1.5;background:color-mix(in srgb,var(--warn) 10%,var(--surface));border:1px solid color-mix(in srgb,var(--warn) 40%,var(--border));border-radius:8px;padding:8px 12px;}
.hc-vinv-busy{opacity:.55;pointer-events:none;cursor:progress;}
/* Release 120: an item can be dragged into another section; a section left empty is hidden until arranging */
.hc-sn-group.hc-sn-empty{display:none;}
.hc-sidenav.hc-sn-arranging .hc-sn-group.hc-sn-empty{display:block;}
.hc-sidenav.hc-sn-arranging .hc-sn-group.hc-sn-empty .hc-sn-items{min-height:30px;}
.hc-sidenav.hc-sn-arranging .hc-sn-group.hc-sn-empty .hc-sn-items::after{content:'Drop an item here';display:block;padding:7px 16px;font-size:11px;opacity:.6;}

/* the row a search result named (2026-11-16; hc.js, #find=NAME) */
tr.hc-found > td { background: rgba(255, 0, 163, .09) !important; box-shadow: inset 0 2px 0 #ff00a3, inset 0 -2px 0 #ff00a3; }
tr.hc-found > td:first-child { box-shadow: inset 4px 0 0 #ff00a3, inset 0 2px 0 #ff00a3, inset 0 -2px 0 #ff00a3; }
