:root {
    --ink: #182b28;
    --muted: #596762;
    --line: #dde3dd;
    --paper: #ffffff;
    --background: #f4f6f1;
    --brand: #206452;
    --brand-dark: #164a3c;
    --active: #327b64;
    --idle: #c69944;
    --paused: #6b84a4;
    --locked: #66716e;
    --error: #a12b30;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--background);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid #528de2; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { overflow-wrap: anywhere; }
h1 { font-size: clamp(26px, 2.5vw, 34px); letter-spacing: -.035em; line-height: 1.2; font-weight: 650; }
h2 { font-size: 18px; font-weight: 650; letter-spacing: -.015em; }
h3 { font-size: 17px; font-weight: 650; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 12px 18px; background: white; border-radius: 6px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 238px; padding: 30px 20px 24px; background: #173c33; color: #eaf1e9; display: flex; flex-direction: column; }
.brand { display: flex; gap: 12px; align-items: center; color: #fff; text-decoration: none; font-weight: 650; font-size: 23px; letter-spacing: -.03em; padding: 0 6px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 38px; border: 1px solid #85b7a1; border-radius: 11px 11px 11px 2px; font-size: 27px; color: #c9e4b8; line-height: 1; }
.brand small { display: block; font-size: 10px; letter-spacing: .015em; font-weight: 400; color: #c2d2c8; margin-top: 1px; }
.main-nav { display: grid; gap: 6px; margin-top: 46px; }
.main-nav a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 12px; border-radius: 6px; font-size: 13px; color: #d5e1d8; text-decoration: none; }
.main-nav a > span { font-size: 19px; width: 20px; text-align: center; }
.main-nav a:hover, .main-nav a.current { background: #2e5448; color: white; }
.sidebar-bottom { margin-top: auto; padding: 20px 10px 0; }
.sidebar-label { color: #c2d2c8; font-size: 11px; display: block; margin-bottom: 4px; }
.logout { display: flex; justify-content: space-between; width: 100%; min-height: 44px; padding: 8px 0; background: transparent; border: 0; color: #eaf1e9; font-size: 13px; }
.logout:hover { color: white; text-decoration: underline; }
.main { margin-left: 238px; padding: 46px 44px 22px; max-width: 1740px; min-height: 100vh; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.page-heading > div { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.report-title { display: flex; align-items: center; gap: 12px; }
.report-title h1 { min-width: 0; }
.report-title .icon-button { flex-shrink: 0; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .13em; font-weight: 650; color: var(--muted); margin-bottom: 9px; }
.subtitle { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 580px; }
.date-filter { flex-shrink: 0; }
.date-filter label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.input-action { display: flex; gap: 8px; }
input, select { border: 1px solid #7c8c81; border-radius: 5px; color: var(--ink); background: white; padding: 10px 12px; min-height: 44px; width: 100%; }
input[type="date"] { width: 158px; font-size: 13px; color-scheme: light; }
input::placeholder { color: #69766f; }
input[type="checkbox"] { width: 18px; min-height: 18px; vertical-align: middle; margin-right: 6px; }
.schedule-days { display: flex; flex-wrap: wrap; gap: 16px; border: 1px solid var(--line); padding: 16px; }
.schedule-days label { display: flex; align-items: center; min-height: 44px; }
input[readonly] { background: #f6f8f4; font-family: ui-monospace, "Cascadia Mono", monospace; font-size: 13px; }
.button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 5px; text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background-color .12s; }
.button-primary { background: var(--brand); color: white; }
.button-primary:hover { background: var(--brand-dark); }
.button-secondary { background: white; border-color: #7c8c81; color: #28463c; }
.button-secondary:hover { background: #eaf0e6; }
.button-quiet { color: var(--muted); background: transparent; }
.button-quiet:hover { background: #eaf0e6; color: var(--ink); }
.button:disabled { background: #dce3db; color: #526258; border-color: #b6c0b7; }
.button-full { width: 100%; }
.overview-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 30px; padding: 0 0 28px; border-bottom: 1px solid var(--line); }
.overview-metric > span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.overview-metric strong { display: block; font-weight: 600; font-size: 32px; line-height: 1.2; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.metric-context { font-size: 19px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.metric-dot { display: inline-block; height: 9px; width: 9px; border-radius: 50%; background: var(--brand); vertical-align: middle; margin-left: 5px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 24px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; }
.panel-heading p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.empty-state { padding: 42px 24px 36px; text-align: center; }
.empty-mark { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 20px; border-radius: 12px; background: #eaf0e6; color: var(--brand); font-size: 27px; }
.empty-state h3, .empty-state h2 { font-size: 22px; letter-spacing: -.025em; }
.empty-state p { color: var(--muted); font-size: 13px; max-width: 580px; margin: 10px auto 23px; line-height: 1.8; }
.empty-steps { display: flex; justify-content: center; gap: 26px; margin-top: 36px; padding-top: 26px; border-top: 1px solid #e7eae4; font-size: 11px; color: var(--muted); }
.empty-steps b { display: inline-grid; place-items: center; width: 21px; height: 21px; margin-right: 5px; border: 1px solid #b8c6b8; border-radius: 50%; color: #355a44; font-size: 10px; }
.context-note { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); padding: 0 4px; margin: 24px 0 38px; font-size: 12px; max-width: 800px; }
.note-mark { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1px solid #7d8d82; border-radius: 50%; font-size: 11px; flex-shrink: 0; margin-top: 2px; }
.page-footer { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); margin-top: 38px; padding-top: 16px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; text-align: left; width: 100%; font-size: 13px; }
thead { background: #f8faf6; color: var(--muted); }
th, td { padding: 15px 20px; border-bottom: 1px solid #e9ede6; vertical-align: middle; }
thead th { font-size: 11px; font-weight: 600; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbf8; }
.team-table { min-width: 930px; }
.employees-table { min-width: 650px; }
.team-table td, .team-table th { padding-left: 16px; padding-right: 16px; }
.employee-link { display: inline-block; font-weight: 600; color: var(--ink); text-decoration: none; max-width: 200px; overflow-wrap: anywhere; }
.employee-link:hover { color: var(--brand); text-decoration: underline; }
.cell-secondary { display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 3px; overflow-wrap: anywhere; }
.numeric { font-variant-numeric: tabular-nums; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 11px; }
.status > span { height: 6px; width: 6px; border-radius: 50%; background: #839088; }
.status-online { color: #27614d; }
.status-online > span { background: #327b64; }
.status-offline { color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; white-space: nowrap; font-size: 12px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.row-actions { width: 164px; }
.employee-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.employee-actions form { margin: 0; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 1px solid #d1dad2; border-radius: 6px; background: #fff; color: #355a4b; cursor: pointer; text-decoration: none; transition: background-color 150ms, border-color 150ms; }
.icon-button:hover { border-color: currentColor; background: #eaf1ec; }
.icon-delete { color: #92262d; }
.icon-delete:hover { background: #fff0ef; }
.icon-deactivate { color: #78541f; }
.icon-deactivate:hover { background: #faf2df; }
.icon-button:disabled { opacity: .55; cursor: wait; }
.employee-inactive { background: #f4f5f1; }
.delete-panel { max-width: 700px; }
.delete-panel > p { margin-bottom: 24px; }
.window-title { font-size: 12px; color: #3c5148; line-height: 1.5; }
.toggle-link { background: none; border: 0; padding: 4px 0; font-size: 10px; color: #50685a; white-space: nowrap; min-height: 32px; }
.toggle-link:hover { color: var(--brand-dark); text-decoration: underline; }
.panel-footnote { padding: 14px 24px; border-top: 1px solid #e9ede6; font-size: 11px; color: var(--muted); }
.back-link { display: inline-block; font-size: 12px; min-height: 34px; margin-bottom: 10px; text-decoration: none; color: var(--muted); }
.back-link:hover { color: var(--brand); text-decoration: underline; }
.report-actions { display: flex; align-items: flex-end; gap: 10px; }
.day-navigation { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: -14px; margin-bottom: 24px; font-size: 11px; }
.day-navigation a { min-height: 36px; display: flex; align-items: center; text-decoration: none; }
.day-navigation a:hover { text-decoration: underline; }
.day-navigation > span { color: var(--muted); }
.day-metrics { display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); margin-bottom: 24px; gap: 14px; }
.day-metric { padding: 17px 14px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.day-metric > span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.day-metric strong { display: block; font-size: 20px; font-weight: 600; margin-top: 12px; white-space: nowrap; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.day-metric small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.metric-primary { border-color: #a5bda8; background: #eaf1e7; }
.metric-primary strong { font-size: 25px; margin-top: 8px; }
.state-dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; }
.state-active { background: var(--active); }
.state-idle { background: var(--idle); }
.state-paused { background: var(--paused); }
.state-locked { background: var(--locked); }
.state-unavailable { background: #aab6ad; }
.timeline-legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 10px; }
.timeline-legend > span { display: flex; align-items: center; gap: 5px; }
.timeline-scroll { overflow-x: auto; padding: 4px 24px 20px; }
.timeline-chart { min-width: 600px; }
.timeline-track { height: 32px; position: relative; background: #f0f3ed; border-radius: 3px; overflow: hidden; }
.timeline-segment { position: absolute; inset-block: 0; }
.timeline-axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 9px; }
.report-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
.application-list { list-style: none; margin: 0; padding: 0 24px 24px; max-height: 400px; overflow-y: auto; }
.application-list li + li { margin-top: 20px; }
.application-label { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 7px; font-size: 12px; }
.application-label > span { overflow-wrap: anywhere; }
.application-label strong { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.application-track { height: 5px; background: #eef2e9; border-radius: 2px; overflow: hidden; }
.application-track > span { display: block; height: 100%; background: #639482; }
.interval-scroll { max-height: 400px; }
.interval-scroll table { min-width: 350px; }
.interval-scroll thead { position: sticky; top: 0; }
.interval-scroll td, .interval-scroll th { padding: 12px 18px; font-size: 11px; }
.interval-state { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.interval-time { line-height: 1.3; }
.application-cell { overflow-wrap: anywhere; max-width: 180px; }
.compact-empty { padding: 20px 24px 32px; font-size: 13px; color: var(--muted); }
.count-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
.screenshot-heading { flex-wrap: wrap; }
.screenshot-scroll { max-height: 480px; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px 24px; scrollbar-gutter: stable; }
.screenshot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.screenshot-grid figure { margin: 0; min-width: 0; }
.screenshot-link { display: block; border: 1px solid #ccd5cb; border-radius: 5px; overflow: hidden; background: #edf0e8; }
.screenshot-link:hover { border-color: var(--brand); }
.screenshot-link img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.screenshot-grid figcaption { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.screenshot-grid time { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.screenshot-preview { position: fixed; inset: auto; margin: 0; width: min(620px, calc(100vw - 32px)); padding: 10px; border: 1px solid #b9c8bc; border-radius: 8px; background: white; box-shadow: 0 12px 36px #19372a33; max-height: calc(100vh - 32px); overflow: hidden; opacity: 0; transform: scale(.96); transition: opacity 160ms ease-out, transform 160ms ease-out, display 160ms allow-discrete, overlay 160ms allow-discrete; }
.screenshot-preview.is-visible { opacity: 1; transform: scale(1); }
.screenshot-preview img { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 100px); object-fit: contain; }
.screenshot-preview p { margin-top: 8px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.button-danger { color: #92262d; border: 1px solid #dfa4a3; background: #fff0ef; }
.button-danger:hover { background: #ffe4e1; }
.clear-confirm { margin: 0 24px 24px; }
.clear-confirm .form-actions { margin-top: 16px; }
.setup-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 38px; max-width: 980px; }
.form-panel { padding: 26px; }
.settings-panel { max-width: 680px; }
.field .checkbox-label { display: flex; align-items: center; min-height: 44px; }
.form-panel > h2 { margin-bottom: 26px; }
.field { margin-bottom: 23px; }
.field label, .connection-value label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.field-hint { font-size: 11px; color: var(--muted); margin-top: 7px; }
.field-error { display: block; font-size: 12px; color: var(--error); margin-top: 6px; }
.field-error:empty { display: none; }
.input-validation-error, input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.setup-info { padding-top: 10px; }
.setup-info h2 { font-size: 15px; margin-bottom: 25px; }
.steps { counter-reset: setup; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: setup; position: relative; padding-left: 37px; margin-bottom: 27px; }
.steps li::before { content: counter(setup); display: grid; place-items: center; position: absolute; left: 0; top: 0; width: 23px; height: 23px; border: 1px solid #adbaab; color: #375a43; border-radius: 50%; font-size: 11px; }
.steps li > span { font-size: 13px; font-weight: 600; }
.steps p { font-size: 12px; color: var(--muted); margin-top: 5px; }
.small-text { font-size: 11px; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line); }
.token-panel { max-width: 800px; padding: 28px; }
.success-label { color: #28614a; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.success-label > span { margin-right: 4px; }
.connection-value { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 22px; }
.connection-value label { grid-column: 1 / -1; margin-bottom: 0; }
.copy-status { color: var(--brand); min-height: 22px; margin: 10px 0; font-size: 12px; }
.alert { border-radius: 5px; padding: 14px 16px; font-size: 12px; margin: 16px 0; }
.alert-warning { background: #faf2df; color: #6a4c1c; border: 1px solid #dac388; }
.alert-error { color: #92262d; background: #fff0ef; border: 1px solid #dfa4a3; }
.token-panel h3 { font-size: 14px; margin-top: 27px; }
.setup-checklist { font-size: 13px; color: var(--muted); line-height: 1.9; padding-left: 20px; }
.auth .sidebar { width: auto; height: 86px; inset: 0 0 auto 0; padding: 21px 36px; }
.auth .main { margin: 0 auto; min-height: 100vh; max-width: 460px; padding: 160px 24px 26px; }
.auth .page-footer { margin-top: 45px; }
.auth-card { background: white; border: 1px solid var(--line); padding: 32px; border-radius: 8px; }
.auth-card h1 { font-size: 29px; }
.auth-card .subtitle { margin-bottom: 30px; }
.auth-hint { color: var(--muted); font-size: 11px; margin-top: 20px; }
@media (max-width: 1270px) {
    .main { padding: 36px 28px 22px; }
    .day-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .report-actions { flex-wrap: wrap; justify-content: flex-end; }
    .timeline-panel .panel-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .setup-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 25px; }
}
@media (max-width: 1000px) {
    .sidebar { width: 210px; padding-left: 14px; padding-right: 14px; }
    .main { margin-left: 210px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .report-actions { justify-content: flex-start; }
    .report-grid, .setup-layout { grid-template-columns: 1fr; gap: 0; }
    .setup-info { padding: 8px 5px 20px; }
    .empty-steps { flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 720px) {
    .sidebar { position: static; width: auto; padding: 18px 20px 12px; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
    .brand { padding: 0; font-size: 22px; }
    .main-nav { grid-row: 2; grid-column: 1 / -1; display: flex; flex-wrap: wrap; margin-top: 3px; gap: 6px; }
    .main-nav a { padding: 8px 10px; min-height: 42px; font-size: 12px; }
    .sidebar-bottom { margin: 0; padding: 0; align-self: center; }
    .sidebar-label { display: none; }
    .logout { width: auto; font-size: 11px; gap: 8px; }
    .main { margin: 0; padding: 28px 18px 18px; }
    .page-heading { gap: 20px; margin-bottom: 25px; }
    .subtitle { font-size: 13px; }
    .overview-metrics { gap: 15px; margin-bottom: 24px; padding-bottom: 22px; }
    .overview-metric > span { font-size: 11px; }
    .overview-metric strong { font-size: 28px; }
    .metric-context { font-size: 16px; }
    .panel-heading { padding: 18px; align-items: flex-start; flex-wrap: wrap; }
    .panel-heading h2 { font-size: 17px; }
    .panel-heading > .button { font-size: 12px; }
    .empty-state { padding: 30px 18px; }
    .empty-state p br { display: none; }
    .empty-steps { flex-direction: column; align-items: flex-start; width: max-content; max-width: 100%; margin: 30px auto 0; }
    .context-note { margin-bottom: 25px; }
    .day-navigation { flex-wrap: wrap; margin-top: -4px; }
    .day-navigation > span { order: 3; flex-basis: 100%; }
    .day-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .day-metric { padding: 16px 12px; }
    .day-metric strong { font-size: 20px; }
    .metric-primary strong { font-size: 23px; }
    .timeline-scroll { padding-left: 18px; padding-right: 18px; }
    .panel-footnote { padding: 14px 18px; }
    .application-list { padding-left: 18px; padding-right: 18px; }
    .screenshot-scroll { padding: 0 18px 18px; }
    .screenshot-grid { grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 12px; }
    .form-panel, .token-panel { padding: 22px 18px; }
    .connection-value { grid-template-columns: 1fr; }
    .connection-value .button { justify-self: start; }
    .auth .sidebar { position: static; height: auto; padding: 20px 24px; }
    .auth .main { padding-top: 42px; }
    .auth-card { padding: 26px 23px; }
}
@media (max-width: 420px) {
    .brand small { font-size: 9px; }
    .main-nav a { font-size: 11px; }
    .main-nav a > span { font-size: 16px; width: 15px; }
    .report-actions .input-action { gap: 6px; }
    .report-actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

@media (max-width: 1270px) {
    .overview-table { min-width: 0; }
    .overview-table thead { display: none; }
    .overview-table tbody { display: grid; gap: 16px; padding: 16px; }
    .overview-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
    .overview-table th[scope="row"], .overview-table .row-actions { grid-column: 1 / -1; width: auto; }
    .overview-table td { padding: 12px 16px; border: 0; overflow-wrap: anywhere; }
    .overview-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
    .overview-table .employee-actions { flex-wrap: nowrap; }
    .overview-table .employee-actions form { margin: 0; }
}

/* Day analytics: native disclosures and charts reuse the report's state palette. */
.report-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.day-applications { max-height: 560px; overscroll-behavior: contain; scrollbar-gutter: stable; }
.day-applications > li + li { margin-top: 10px; }
.application-details > summary { min-height: 44px; padding: 8px 4px; cursor: pointer; }
.application-details > summary .application-label { display: inline-flex; width: calc(100% - 24px); vertical-align: middle; }
.application-details > summary .application-track { display: block; margin-top: 5px; }
.window-breakdown-label { color: var(--muted); font-size: 10px; margin: 8px 0 12px 20px; }
.window-usage-list { list-style: none; padding: 0 4px 8px 20px; }
.window-usage-list > li + li { margin-top: 14px; }
.window-usage-label { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; font-size: 11px; margin-bottom: 6px; }
.window-usage-label > span { overflow-wrap: anywhere; white-space: pre-wrap; }
.window-usage-label strong { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.window-usage-label small { color: var(--muted); font-size: 10px; }
.day-analytics-content { padding: 0 24px 20px; }
.day-share-bar { display: flex; height: 20px; overflow: hidden; border-radius: 3px; background: #eef2e9; }
.day-share-legend { margin: 16px 0 26px; font-size: 12px; }
.day-share-legend > div { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; }
.day-share-legend dt { display: flex; gap: 7px; align-items: center; }
.day-share-legend dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.day-share-legend dd > span { display: inline-block; width: 46px; text-align: right; color: var(--muted); }
.day-analytics-content h3 { font-size: 14px; }
.hourly-hint, .intervals-hint { color: var(--muted); font-size: 11px; margin: 8px 0 16px; }
.hourly-scroll { overflow-x: auto; padding: 5px; }
.hourly-chart { display: flex; gap: 8px; }
.hourly-scale { display: flex; flex-direction: column; justify-content: space-between; height: 120px; font-size: 9px; color: var(--muted); width: 38px; flex-shrink: 0; }
.hourly-columns { display: flex; flex: 1; gap: 4px; background: repeating-linear-gradient(to top, transparent 0, transparent 59px, #dce3da 59px, #dce3da 60px) left top / 100% 120px no-repeat; }
.hourly-column { flex: 1; min-width: 16px; }
.hourly-column-track { height: 120px; display: flex; flex-direction: column; justify-content: flex-end; }
.hourly-column-track > span { display: block; flex-shrink: 0; }
.hourly-label { display: block; font-size: 8px; color: var(--muted); text-align: center; margin-top: 8px; font-variant-numeric: tabular-nums; }
.hourly-label small { display: block; font-size: 8px; }
.hourly-legend { margin: 12px 0 4px; }
.hourly-data > summary, .day-intervals > summary { cursor: pointer; min-height: 44px; padding: 12px 4px; font-size: 12px; }
.hourly-data table { font-size: 11px; }
.hourly-data caption { text-align: left; color: var(--muted); padding: 10px 0; }
.day-intervals > summary { padding: 16px 24px; font-weight: 600; font-size: 14px; }
.day-intervals .intervals-hint { margin: 0 24px 12px; }
.day-intervals .interval-scroll { max-height: 360px; overscroll-behavior: contain; }
.day-intervals .interval-scroll td, .day-intervals .interval-scroll th { padding: 7px 14px; font-size: 11px; }
.day-intervals .window-title { font-size: 10px; white-space: pre-wrap; }
.day-applications:focus-visible, .hourly-scroll:focus-visible, .day-intervals .interval-scroll:focus-visible { outline-offset: -3px; }
@media (max-width: 1000px) { .report-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) {
    .day-analytics-content { padding-inline: 18px; }
    .window-usage-label { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Access administration reuses the operational forms and responsive rows. */
.sidebar-label, .access-table th, .access-table td { overflow-wrap:anywhere; }
.access-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:24px; }
.access-tabs a { min-height:44px; display:flex; align-items:center; padding:8px 16px; border-radius:8px; }
.access-tabs a[aria-current="page"] { background:var(--brand); color:#fff; }
.access-grant { display:block; margin-bottom:4px; }
.access-actions { display:flex; flex-wrap:wrap; gap:8px; }
.access-actions .button { white-space:normal; }
.grant-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px; gap:12px; align-items:start; }
.grant-row .icon-button { margin-top:29px; }
.grant-row select { min-width:0; width:100%; }
.access-explanation { color:var(--muted); font-size:14px; line-height:1.6; margin:24px 0; }
[data-move-warning][hidden] { display:none; }
@media(max-width:600px) { .grant-row { grid-template-columns:minmax(0,1fr) 44px; } .grant-row .field:nth-child(2) { grid-column:1; grid-row:2; } .grant-row .icon-button { grid-column:2; grid-row:1; } }

.browser-url { min-width: 0; overflow-wrap: anywhere; line-height: 1.5; }
.visited-pages > li { min-width: 0; }
.visited-pages:focus-visible { outline-offset: -3px; }

.power-confirm { min-width: 0; overflow-wrap: anywhere; }
.power-confirm .form-actions { min-width: 0; }
.power-confirm .button { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }

/* Daily operations: consistent date navigation and compact, comparable totals. */
.day-picker { margin-bottom: 22px; }
.day-picker-controls, .day-picker-steps { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.day-picker-controls { gap: 16px; }
.day-picker-steps .button { min-width: 44px; }
.week-days { display: grid; grid-template-columns: repeat(7, minmax(44px, 1fr)); gap: 4px; max-width: 660px; margin-top: 14px; }
.week-days a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px; border-radius: 5px; text-decoration: none; color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; }
.week-days a:hover { background: var(--line); }
.week-days a[aria-current="date"] { background: var(--brand); color: var(--paper); }
.week-days strong { font-weight: 650; }
.dashboard-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 26px; }
.dashboard-filters > div { flex: 1 1 160px; min-width: 0; }
.dashboard-filters label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.dashboard-filters select { max-width: 100%; }
.dashboard-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.dashboard-metrics strong { font-size: 26px; overflow-wrap: anywhere; }
.dashboard-metrics .metric-primary strong { font-size: 34px; }
.dashboard-metrics small { display: block; font-size: 11px; color: var(--muted); margin-top: 7px; }
.team-hours .hourly-scroll, .team-hours .hourly-data { margin: 0 20px 12px; }
.team-hours .hourly-column-track > span { width: 100%; border-radius: 4px 4px 0 0; }
.overview-table .report-links a { display: flex; align-items: center; min-height: 44px; white-space: nowrap; }
.overview-table .cell-secondary { max-width: 230px; overflow-wrap: anywhere; white-space: normal; }
.overview-table .employee-link { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 700px) {
    .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .week-days { gap: 0; }
    .day-picker-controls .date-filter { max-width: 100%; }
    .overview-table .report-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; column-gap: 18px; }
    .overview-table .report-links::before { flex-basis: 100%; }
}

.storage-link { margin-bottom: 20px; }
.storage-page { display: grid; gap: 24px; max-width: 1050px; }
.storage-page [hidden] { display: none !important; }
.storage-page h2 { margin-bottom: 10px; }
.storage-page .form-actions { flex-wrap: wrap; }
.storage-page .button { white-space: normal; text-align: center; }
.storage-employees { margin: 0 0 20px; padding: 16px; border: 1px solid var(--line); border-radius: 5px; min-width: 0; }
.storage-employees legend { font-weight: 600; padding: 0 6px; }
.storage-employees > label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; overflow-wrap: anywhere; }
.storage-employees input { flex-shrink: 0; }
.storage-employees small { display: block; color: var(--muted); }
.storage-numbers { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.storage-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.storage-filters input[type="date"] { width: 100%; }
.storage-preview { padding: 24px; display: grid; gap: 14px; min-width: 0; overflow-wrap: anywhere; }
.storage-preview form { min-width: 0; }
.storage-preview [data-cleanup-status]:not(:empty) { margin-top: 16px; }
@media (max-width: 600px) {
    .storage-filters { grid-template-columns: 1fr; gap: 0; }
    .storage-preview { padding: 16px; }
}

.dashboard-page .page-heading { flex-wrap: wrap; }
@media (min-width: 1100px) {
    .dashboard-page .page-heading { margin-bottom: 12px; }
    .dashboard-page .storage-link { margin-bottom: 0; flex-shrink: 0; }
    .dashboard-page .day-picker { margin-bottom: 10px; }
    .dashboard-page .dashboard-filters { margin-bottom: 12px; }
    .dashboard-page .dashboard-metrics { margin-bottom: 12px; padding-bottom: 8px; }
    .dashboard-page .panel-heading { padding-top: 14px; padding-bottom: 14px; }
    .dashboard-page .overview-table th, .dashboard-page .overview-table td { padding-top: 10px; padding-bottom: 10px; }
}
