/* MAL's forest/ivory palette. These shared tokens keep all eight reports aligned. */
:root {
  color-scheme: light;
  --canvas: #f5f7f5; --surface: #ffffff; --surface-soft: #f8faf8;
  --ink: #172e25; --muted: #65766d; --border: #e2e9e3;
  --forest: #002b20; --green: #155d3a; --lime: #e2f5b5;
  --tint: #edf5ef; --danger: #a13936; --warning: #876019;
  --radius: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px; line-height: 1.5; font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #83ab51; outline-offset: 4px; }
button { cursor: pointer; }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; opacity: .5; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); }
h1 { font-size: clamp(28px, 2.8vw, 38px); letter-spacing: -1.3px; line-height: 1.18; font-weight: 620; margin-bottom: 12px; }
h2 { font-size: 17px; letter-spacing: -.35px; font-weight: 620; margin-bottom: 5px; }
h3 { font-size: 14px; font-weight: 650; margin-bottom: 6px; }
p { margin-bottom: 14px; }
.icon { flex: 0 0 auto; vertical-align: middle; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 10; padding: 12px 20px; color: white; background: var(--forest); border-radius: 8px; }
.skip-link:focus { top: 12px; }
/* Navigation stays fully server-rendered; small screens expose all eight routes. */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; background: var(--forest); color: #d3e2d9; display: flex; flex-direction: column; padding: 30px 16px 16px; }
.brand { display: flex; gap: 12px; align-items: center; color: white; text-decoration: none; font-weight: 650; font-size: 23px; letter-spacing: -.65px; }
.sidebar .brand { padding: 0 8px; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; display: block; }
.brand-caption { display: block; margin-top: 1px; font-size: 8px; font-weight: 500; letter-spacing: 2px; color: #a7c3b3; }
.workspace-switch { display: flex; align-items: center; gap: 10px; background: #0c372a; border: 1px solid #204a38; padding: 12px; margin: 31px 0 26px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.workspace-switch small { display: block; font-size: 10px; color: #a6bbaf; font-weight: 400; margin-top: 1px; }
.workspace-avatar { width: 30px; height: 32px; display: grid; place-items: center; color: var(--lime); background: #244e39; border-radius: 7px; }
.workspace-lock { margin-left: auto; color: #9cbaaa; }
.workspace-lock .icon { width: 13px; height: 13px; }
.nav-label { margin: 18px 12px 8px; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.9px; color: #8eaf9c; }
.nav-label:first-child { margin-top: 0; }
.nav a { display: flex; gap: 12px; align-items: center; padding: 11px 13px; margin-bottom: 4px; border-radius: 8px; color: #bccfc3; text-decoration: none; font-size: 13px; }
.nav a:hover { background: #123e2f; color: white; }
.nav a.active { background: var(--lime); color: #123420; font-weight: 650; }
.nav a .icon { width: 18px; height: 18px; }
.nav-active-dot { width: 5px; height: 5px; background: #346734; border-radius: 50%; margin-left: auto; }
.sidebar-bottom { margin-top: auto; padding-top: 32px; }
.admin-link { display: flex; gap: 12px; align-items: center; color: #bdcfc4; text-decoration: none; font-size: 12px; padding: 12px; margin-bottom: 16px; }
.admin-link span:last-child { margin-left: auto; }
.admin-link:hover { color: var(--lime); }
.account { display: flex; align-items: center; gap: 10px; padding: 18px 5px 2px; border-top: 1px solid #244636; }
.account-avatar { width: 33px; height: 33px; border-radius: 50%; background: #e5e9d8; color: #294a32; display: grid; place-items: center; font-size: 12px; font-weight: 650; flex-shrink: 0; }
.account-info { flex: 1; min-width: 0; }
.account-info strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 11px; color: #f0f5ef; }
.account-info small { color: #93b09e; font-size: 10px; }
.logout-button { border: 0; background: none; color: #afc5b7; padding: 8px; border-radius: 6px; }
.logout-button:hover { background: #17402f; color: white; }
.logout-button .icon { width: 17px; height: 17px; }
.main-shell { min-width: 0; }
.topbar { height: 76px; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(255,255,255,.7); border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; gap: 16px; align-items: center; font-size: 12px; color: var(--muted); }
.breadcrumb strong { font-weight: 550; color: var(--ink); }
.topbar-meta { display: flex; gap: 8px; align-items: center; font-size: 10px; color: var(--muted); }
.topbar-meta .icon { width: 13px; height: 13px; }
.topbar-divider { height: 14px; width: 1px; background: var(--border); margin: 0 10px; }
.wrap { max-width: 1720px; margin: 0 auto; padding: 28px 36px 20px; }
.report-toolbar { min-height: 37px; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.report-label { display: flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 650; letter-spacing: 1.8px; color: var(--muted); }
.report-dot { width: 5px; height: 5px; background: #5b785c; border-radius: 50%; }
.windows { display: flex; gap: 3px; padding: 4px; background: #e9eeea; border: 1px solid #e0e7e1; border-radius: 9px; }
.windows a { display: block; padding: 6px 13px; font-size: 11px; color: var(--muted); text-decoration: none; border-radius: 6px; white-space: nowrap; }
.windows a:hover { color: var(--ink); }
.windows a.active { background: white; color: var(--ink); box-shadow: 0 1px 4px #17342112; font-weight: 600; }
.scope-label { font-size: 11px; color: var(--muted); border: 1px solid var(--border); background: var(--surface); padding: 7px 12px; border-radius: 8px; }
.page-heading { margin-bottom: 28px; }
.eyebrow { color: var(--green); font-size: 9px; letter-spacing: 1.7px; font-weight: 650; text-transform: uppercase; margin-bottom: 10px; }
.page-heading .eyebrow { display: none; } /* The shared toolbar already gives each report its section label. */
.page-description { color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 780px; margin: 0; }
/* Shared reporting surfaces, accessible overflow tables and semantic statuses. */
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 24px; overflow: hidden; }
.panel-header { padding: 22px 24px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; border-bottom: 1px solid var(--border); }
.panel-header > div { min-width: 0; }
.panel-header p { color: var(--muted); font-size: 11px; margin: 4px 0 0; line-height: 1.65; }
.panel-body { padding: 24px; }
.panel-body > :last-child { margin-bottom: 0; }
.panel-header .eyebrow { font-size: 9px; margin: 0 0 6px; color: var(--green); }
.table-scroll { width: 100%; overflow: auto; overscroll-behavior-x: contain; }
.table-scroll:focus-visible { outline-offset: -4px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
th { padding: 13px 18px; background: #f8faf8; color: var(--muted); font-weight: 550; font-size: 10px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--border); }
td { padding: 17px 18px; text-align: left; border-bottom: 1px solid #edf1ed; vertical-align: middle; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafcf9; }
.cell-primary { font-weight: 600; color: var(--ink); }
.cell-secondary { color: var(--muted); font-size: 10px; margin-top: 4px; }
.cell-primary, .cell-secondary { display: block; }
td.cell-primary, td.cell-secondary { display: table-cell; }
.mono, code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.muted { color: var(--muted); }
.badge, .pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid transparent; border-radius: 6px; font-size: 10px; font-weight: 550; line-height: 1.4; white-space: nowrap; }
.badge-neutral, .pill-revoked { background: #f0f3f0; color: #647368; border-color: #e6ebe6; }
.badge-success, .pill-active { background: #edf6ec; color: #2f6338; border-color: #dae9d8; }
.badge-warning, .pill-quiet { background: #fcf5e5; color: var(--warning); border-color: #efe2c5; }
.badge-danger, .pill-silent { background: #faedeb; color: var(--danger); border-color: #f0dcd7; }
/* Enrolled, nothing has arrived yet: an outline, not the silent/danger fill — a machine set up
   minutes ago has not failed at anything. Dashed keeps it apart from revoked's filled grey. */
.pill-never-reported { background: var(--surface); color: var(--muted); border-color: var(--border); border-style: dashed; }
.stats-grid, .kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card, .kpi .card { min-width: 0; padding: 23px; background: white; border: 1px solid var(--border); border-radius: var(--radius); }
.stat-label, .kpi .label { color: var(--muted); font-size: 11px; margin-bottom: 10px; }
.stat-value, .kpi .value { font-size: clamp(25px, 2.7vw, 36px); font-weight: 550; line-height: 1.2; letter-spacing: -1px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-caption, .kpi .caption { color: var(--muted); font-size: 10px; margin-top: 12px; }
.section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.section-grid > .panel { height: 100%; margin-bottom: 0; }
.section-grid { margin-bottom: 24px; }
.hero-panel { padding: 24px; background: var(--forest); color: #cadfce; border: 1px solid #174631; border-radius: var(--radius); margin-bottom: 24px; }
.hero-panel h2, .hero-panel h3, .hero-panel .stat-value { color: white; }
.hero-panel .eyebrow, .hero-panel .stat-caption { color: #b4caa8; }
.hero-panel p { color: #b7cdbf; }
.hero-panel a { color: var(--lime); }
.hero-panel .button { background: var(--lime); border-color: var(--lime); color: var(--forest); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding: 10px 17px; border: 1px solid var(--green); border-radius: 8px; background: var(--green); color: white; text-decoration: none; font-size: 11px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.button:hover { background: #08482c; color: white; border-color: #08482c; }
.button-secondary { background: white; border-color: var(--border); color: var(--ink); }
.button-secondary:hover { background: var(--tint); border-color: #bdcfbf; color: var(--green); }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { color: #495f51; font-weight: 550; font-size: 11px; }
input, select { min-width: 0; max-width: 100%; min-height: 42px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #d9e3db; border-radius: 8px; font-size: 12px; }
input::placeholder { color: #849087; }
input:focus, select:focus { border-color: #72966b; }
.filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.filter-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--border); padding: 18px 24px; font-size: 11px; color: var(--muted); }
.pagination > div { display: flex; gap: 8px; align-items: center; }
.empty-state { padding: 42px 24px; text-align: center; white-space: normal; color: var(--muted); font-size: 12px; }
.empty-state h3 { font-size: 15px; margin-bottom: 8px; }
.empty-state p { max-width: 460px; margin: 0 auto 16px; line-height: 1.7; }
.note { color: var(--muted); padding: 14px 18px; background: var(--surface-soft); border-radius: 8px; font-size: 11px; line-height: 1.8; margin-bottom: 20px; }
.panel > .note { border-radius: 0; border-top: 1px solid var(--border); padding: 15px 24px; margin-bottom: 0; }
summary { cursor: pointer; padding: 18px 24px; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
summary:hover { background: var(--surface-soft); }
details[open] > summary { border-bottom: 1px solid var(--border); }
.chart { width: 100%; }
.sparkline { display: block; width: 100%; height: auto; max-height: 230px; color: var(--green); overflow: visible; }
.page-footer { margin-top: 38px; padding: 20px 0 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; color: #78887c; font-size: 10px; }
/* Sign-in uses the same tokens, but a quieter split composition. */
.login-page { background: #fcfdfb; }
.login-layout { display: grid; grid-template-columns: 47% 53%; min-height: 100vh; min-height: 100dvh; }
.login-story { display: flex; flex-direction: column; background: var(--forest); padding: 44px 52px 26px; color: white; position: relative; overflow: hidden; }
.login-story-content { margin: auto 0; padding: 56px 0 32px; max-width: 550px; }
.story-eyebrow { color: #abc5af; font-size: 9px; letter-spacing: 2px; }
.login-story h2 { color: white; font-size: clamp(36px, 4.1vw, 62px); font-weight: 500; letter-spacing: -2.5px; line-height: 1.12; margin: 23px 0; }
.login-story h2 span { color: var(--lime); }
.login-story-content > p { color: #aac1b3; font-size: 14px; line-height: 1.8; max-width: 330px; }
.story-features { display: flex; flex-wrap: wrap; gap: 15px; color: #c0d4c4; font-size: 9px; }
.story-features span::before { content: '✓'; color: var(--lime); margin-right: 6px; }
.story-footer { color: #8eae9a; font-size: 10px; margin: 0; }
.connection-map { height: 210px; max-width: 350px; margin: 12px 0 22px; position: relative; }
.connection-orbit { position: absolute; width: 260px; height: 174px; border: 1px solid #315844; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-18deg); }
.connection-orbit.inner { width: 175px; height: 115px; border-style: dashed; border-color: #37553c; transform: translate(-50%, -50%) rotate(18deg); }
.connection-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 62px; height: 62px; display: grid; place-items: center; border-radius: 17px; background: var(--lime); color: #123722; box-shadow: 0 0 60px #a4d45e1a; }
.connection-core .icon { width: 38px; height: 38px; }
.connection-node { position: absolute; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #436145; border-radius: 11px; background: #143d2e; color: #cbdda6; }
.node-one { left: 7%; top: 39%; }.node-two { right: 9%; top: 36%; }.node-three { left: 38%; top: 6%; }.node-four { left: 52%; bottom: 4%; }
.login-main { padding: 42px 50px 26px; display: flex; flex-direction: column; }
.login-topline, .login-bottomline { display: flex; justify-content: space-between; gap: 20px; font-size: 9px; color: #77877b; }
.login-topline { letter-spacing: 1.3px; font-weight: 600; }
.login-form-wrap { width: 100%; max-width: 370px; margin: auto; padding: 54px 0; }
.login-lock { display: grid; place-items: center; width: 48px; height: 48px; color: var(--green); background: #eef4e9; border: 1px solid #e0e9db; border-radius: 14px; margin-bottom: 30px; }
.login-form-wrap h1 { font-size: 31px; letter-spacing: -1px; }
.login-description { color: var(--muted); font-size: 12px; margin-bottom: 31px; }
.login-form { display: flex; flex-direction: column; gap: 20px; }
.login-form input { width: 100%; min-height: 47px; }
.login-form .button { width: 100%; margin-top: 8px; min-height: 47px; justify-content: space-between; padding: 12px 18px; }
.login-help { margin: 23px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.errors, .errorlist { color: var(--danger); font-size: 12px; }
.errors { padding: 13px; background: #fff0ec; border: 1px solid #f0d5ce; border-radius: 8px; }
.errorlist { list-style: none; padding: 0; margin: 0; }
/* Layout breakpoints: full desktop, tablet navigation, then a compact phone grid. */
@media (min-width: 1500px) { .wrap { padding: 32px 48px 24px; } .topbar { padding: 0 48px; } }
@media (max-width: 1100px) { .app-shell { grid-template-columns: 206px minmax(0,1fr); } .sidebar { padding-left: 12px; padding-right: 12px; } .topbar { padding: 0 24px; } .wrap { padding: 24px; } .topbar-meta > span:not(.topbar-divider) { display: none; } .stat-card { padding: 19px; } .login-story { padding: 36px; } }
@media (max-width: 800px) {
  .app-shell { display: block; }.sidebar { position: static; height: auto; padding: 18px 20px 12px; overflow: visible; }
  .sidebar .brand { font-size: 21px; padding: 0; }.brand-caption { font-size: 7px; }.brand-mark { height: 34px; width: 34px; }
  .workspace-switch, .nav-label { display: none; }.nav { display: flex; gap: 5px; overflow-x: auto; margin-top: 20px; padding-bottom: 5px; }
  .nav a { padding: 9px 12px; font-size: 11px; white-space: nowrap; margin: 0; }.nav a .icon { width: 15px; height: 15px; }.nav-active-dot { display: none; }
  .sidebar-bottom { padding: 0; margin: 0; position: absolute; right: 20px; top: 21px; }.account { padding: 0; border: 0; gap: 4px; }.account-info, .account-avatar { display: none; }.admin-link { display: none; }
  .sidebar-bottom:has(.admin-link) { display: flex; align-items: center; gap: 6px; }.sidebar-bottom .admin-link { display: flex; margin: 0; padding: 6px; }.admin-link span { display: none; }.admin-link span:last-child { display: none; }
  .topbar { height: 56px; padding: 0 20px; }.topbar-meta .icon, .topbar-divider { display: none; }.breadcrumb { gap: 10px; font-size: 11px; }
  .wrap { padding: 20px; }.report-label { font-size: 8px; letter-spacing: 1px; }.windows a { padding: 6px 10px; font-size: 10px; }
  .section-grid { grid-template-columns: 1fr; }.stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.page-heading { margin-bottom: 24px; }
  .login-layout { grid-template-columns: 40% 60%; }.login-story { padding: 28px; }.login-story h2 { font-size: 36px; }.login-story-content { padding: 50px 0 20px; }.login-story-content > p { font-size: 12px; }.connection-map { display: none; }.story-features { flex-direction: column; margin-top: 38px; }.login-main { padding: 30px; }.login-topline span { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 18px 14px; }.topbar { padding: 0 16px; }.topbar-meta { font-size: 9px; }.sidebar { padding: 16px 14px 10px; }.sidebar-bottom { right: 12px; top: 18px; }
  h1 { font-size: 28px; }.report-toolbar { gap: 8px; }.report-label { letter-spacing: .4px; }.report-dot { display: none; }.windows { gap: 0; padding: 3px; }.windows a { padding: 6px 8px; }
  .page-description { font-size: 12px; }.panel-header { padding: 19px 18px 16px; }.panel-body { padding: 18px; }.panel > .note { padding: 14px 18px; }.panel, .stat-card { border-radius: 12px; }
  .stats-grid { gap: 10px; }.stat-card { padding: 16px; }.stat-value { font-size: 27px; }.stat-label { font-size: 10px; }.stat-caption { font-size: 9px; }
  .filter-grid { grid-template-columns: 1fr 1fr; gap: 14px; }.filter-grid input, .filter-grid select { width: 100%; }.pagination { padding: 16px 18px; }
  .page-footer { flex-direction: column; gap: 6px; margin-top: 28px; font-size: 9px; }.login-layout { display: flex; flex-direction: column; }.login-story { padding: 22px 24px; }.login-story-content, .story-footer { display: none; }.login-main { flex: 1; padding: 24px; }.login-form-wrap { padding: 48px 0; }.login-topline { font-size: 8px; }.login-topline span { display: inline; }.login-bottomline { font-size: 8px; gap: 10px; }.login-form-wrap h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: no-preference) { a, button { transition: background-color .15s ease, color .15s ease, border-color .15s ease; } }
/* Nested overview panels use compact metrics; the chart remains the visual anchor. */
.page-heading:has(> .button) { position: relative; padding-right: 150px; }
.page-heading > .button { position: absolute; right: 0; top: 4px; }
.section-grid > .hero-panel { padding: 0; }
.hero-panel .panel-header { border-bottom-color: #2b4a34; }
.hero-panel .panel-header .eyebrow, .hero-panel .stat-label, .hero-panel .cell-secondary { color: #bacfae; }
.hero-panel .sparkline { color: #d7eea3; }
.hero-panel .note { color: #24452b; background: #e4efcc; }
.chart { margin: 0; }.chart figcaption { margin-top: 14px; font-size: 9px; }
.panel-body > .stats-grid { gap: 12px; }
.section-grid .panel-body > .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.section-grid .stat-card { padding: 15px; background: #f9fbf8; border-radius: 10px; }
.section-grid .stat-card:last-child:nth-child(3) { grid-column: 1 / -1; }
.section-grid .stat-card .stat-value { font-size: 27px; }
.panel-body > a.note { display: block; padding: 12px; margin-bottom: 14px; text-decoration: none; }
.hero-panel .stats-grid { margin-bottom: 26px; }
.hero-panel .stat-value { font-size: 33px; }
.hero-panel .stat-value .stat-caption { font-size: 11px; margin-left: 5px; }
.hero-panel .button-secondary:hover { background: #eff9d6; color: var(--forest); }
summary .cell-primary { display: inline; }
summary .badge { margin-left: 10px; }
.panel-body > details { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
@media (min-width: 1200px) { .section-grid:has(#activity-title):has(#workspace-title) { grid-template-columns: 1.35fr 1fr; } }
@media (max-width: 560px) { .page-heading:has(> .button) { padding-right: 0; }.page-heading > .button { position: static; margin-top: 17px; }.hero-panel { padding: 0; }.hero-panel .stat-value { font-size: 27px; } }
.stats-grid:has(> .stat-card:nth-child(6)) { grid-template-columns: repeat(3,minmax(0,1fr)); }
.page-footer, .login-topline, .login-bottomline { color: #65766d; }
@media (max-width: 560px) { .stats-grid:has(> .stat-card:nth-child(6)) { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (min-width: 801px) {
  .sidebar { padding-top: 22px; scrollbar-width: thin; scrollbar-color: #36583e var(--forest); }
  .workspace-switch { margin: 22px 0 18px; padding: 10px 12px; }
  .nav-label { margin-top: 12px; margin-bottom: 6px; }
  .nav a { padding-top: 9px; padding-bottom: 9px; }
  .sidebar-bottom { padding-top: 16px; }.admin-link { margin-bottom: 8px; padding-top: 8px; padding-bottom: 8px; }.account { padding-top: 14px; }
}
.page-heading > .badge { margin-top: 12px; }
.panel.hero-panel { padding: 0; }
/* Keep the row identity visible while wide operational tables scroll. */
.data-table th:first-child { position: sticky; left: 0; z-index: 2; }
.data-table td:first-child:not([colspan]) { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 var(--border); }
.data-table tr:hover td:first-child:not([colspan]) { background: #fafcf9; }
@media (min-width: 1200px) {
  .stats-grid.machine-stats { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .machine-stats .stat-card { padding: 18px 15px; }.machine-stats .stat-value { font-size: 30px; }
  .filter-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
}
@media (max-width: 800px) {
  .nav { scrollbar-width: thin; scrollbar-color: #466343 var(--forest); }
  .nav::-webkit-scrollbar { height: 4px; }.nav::-webkit-scrollbar-track { background: var(--forest); }.nav::-webkit-scrollbar-thumb { background: #466343; border-radius: 3px; }
  .logout-button, .sidebar-bottom .admin-link { min-width: 38px; min-height: 38px; }
}
@media (max-width: 560px) {
  .nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; overflow: visible; margin-top: 16px; padding: 0; }
  .nav a { justify-content: center; padding: 10px 4px; font-size: 10px; }.nav a .icon { display: none; }
  .report-toolbar { flex-wrap: wrap; }
}
/* An empty table has no columns to inspect. Keep its guidance/CTA inside the
   viewport instead of centering it beyond the edge of a wide header row. */
.data-table:has(.empty-state) thead { display: none; }
