: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; }
.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; }
.employee-settings { margin-top: 12px; }
.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: 165px; }
.employee-actions { display: grid; gap: 8px; }
.employee-actions .button { width: 100%; min-height: 44px; font-size: 12px; }
.employee-inactive { background: #f4f5f1; }
.delete-link { color: #92262d; border-color: transparent; background: transparent; }
.delete-link:hover { background: #fff0ef; }
.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-viewer { padding: 0 24px 24px; }
.screenshot-heading, .screenshot-controls { flex-wrap: wrap; }
.screenshot-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.screenshot-viewer figure { margin: 0 0 16px; }
.screenshot-link { display: block; border: 1px solid #ccd5cb; border-radius: 5px; overflow: hidden; background: #edf0e8; }
.screenshot-link:hover { border-color: var(--brand); }
.screenshot-viewer img { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 70vh; object-fit: contain; }
.screenshot-viewer figcaption { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; margin-top: 8px; color: var(--muted); overflow-wrap: anywhere; }
.screenshot-viewer time { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.screenshot-viewer input[type="range"] { width: 100%; min-height: 44px; padding: 0; accent-color: var(--brand); }
.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; }
.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"] { 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-viewer { padding: 0 18px 18px; }
    .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 { display: flex; flex-wrap: wrap; gap: 8px; }
    .overview-table .employee-actions .button { width: auto; }
    .overview-table .employee-actions form { margin: 0; }
}
