/* Signal B. Source: docs/design/keyholder/exports/tokens.json. No remote assets. */
:root {
  color-scheme: light;
  --kh-primary: #1E40AF;
  --kh-on-primary: #FFFFFF;
  --kh-primary-container: #DFE4F4;
  --kh-on-primary-container: #111827;
  --kh-secondary: #111827;
  --kh-on-secondary: #FFFFFF;
  --kh-tertiary: #6D28D9;
  --kh-on-tertiary: #FFFFFF;
  --kh-tertiary-container: #EBE1FA;
  --kh-on-tertiary-container: #111827;
  --kh-error: #B91C1C;
  --kh-on-error: #FFFFFF;
  --kh-error-container: #F7E4E4;
  --kh-on-error-container: #111827;
  --kh-surface: #FFFFFF;
  --kh-on-surface: #111827;
  --kh-on-surface-variant: #4B5563;
  --kh-surface-container-low: #F8FAFC;
  --kh-surface-container-highest: #EEF2F7;
  --kh-outline: #4B5563;
  --kh-outline-variant: #CBD5E1;
  --kh-inverse-surface: #111827;
  --kh-on-inverse-surface: #FFFFFF;
  --kh-inverse-primary: #86AAFF;
  --kh-scrim: #111827;
  --kh-exception: #C2410C;
  --kh-on-exception: #FFFFFF;
  --kh-exception-container: #F6E4DD;
  --kh-success: #047857;
  --kh-on-success: #FFFFFF;
  --kh-success-container: #DCECE7;
  --kh-transit: #6D28D9;
  --kh-offline: #4B5563;
  --kh-spacing-s0: 0px;
  --kh-spacing-s4: 4px;
  --kh-spacing-s8: 8px;
  --kh-spacing-s12: 12px;
  --kh-spacing-s16: 16px;
  --kh-spacing-s20: 20px;
  --kh-spacing-s24: 24px;
  --kh-spacing-s32: 32px;
  --kh-spacing-s40: 40px;
  --kh-spacing-s48: 48px;
  --kh-spacing-s64: 64px;
  --kh-radius-sm: 6px;
  --kh-radius-md: 10px;
  --kh-radius-lg: 14px;
  --kh-radius-sheet: 22px;
  --kh-radius-pill: 999px;
  --kh-size-touch-min: 48px;
  --kh-size-clock-button: 72px;
  --kh-size-primary-button: 64px;
  --kh-size-secondary-button: 56px;
  --kh-size-nav-bar: 64px;
  --kh-size-destructive-gap: 16px;
  --kh-size-icon-nav: 24px;
  --kh-size-icon-status: 20px;
  --kh-size-icon-status-small: 16px;
  --kh-motion-fast: 120ms;
  --kh-motion-base: 200ms;
  --kh-motion-sheet: 250ms;
  --kh-motion-snackbar: 4000ms;
  --kh-motion-reduced: 0ms;
  --kh-type-timer-font-family: var(--kh-font-mono);
  --kh-type-timer-font-size: 3.5rem;
  --kh-type-timer-line-height: 1;
  --kh-type-timer-font-weight: 700;
  --kh-type-timer-letter-spacing: 0px;
  --kh-type-headline-font-family: var(--kh-font-sans);
  --kh-type-headline-font-size: 1.875rem;
  --kh-type-headline-line-height: 1.15;
  --kh-type-headline-font-weight: 800;
  --kh-type-headline-letter-spacing: 0px;
  --kh-type-title-font-family: var(--kh-font-sans);
  --kh-type-title-font-size: 1.375rem;
  --kh-type-title-line-height: 1.2;
  --kh-type-title-font-weight: 800;
  --kh-type-title-letter-spacing: 0px;
  --kh-type-title-small-font-family: var(--kh-font-sans);
  --kh-type-title-small-font-size: 1.125rem;
  --kh-type-title-small-line-height: 1.25;
  --kh-type-title-small-font-weight: 700;
  --kh-type-title-small-letter-spacing: 0px;
  --kh-type-body-font-family: var(--kh-font-sans);
  --kh-type-body-font-size: 1.0625rem;
  --kh-type-body-line-height: 1.45;
  --kh-type-body-font-weight: 400;
  --kh-type-body-letter-spacing: 0px;
  --kh-type-body-small-font-family: var(--kh-font-sans);
  --kh-type-body-small-font-size: 1.0rem;
  --kh-type-body-small-line-height: 1.4;
  --kh-type-body-small-font-weight: 400;
  --kh-type-body-small-letter-spacing: 0px;
  --kh-type-meta-font-family: var(--kh-font-sans);
  --kh-type-meta-font-size: 0.9375rem;
  --kh-type-meta-line-height: 1.35;
  --kh-type-meta-font-weight: 400;
  --kh-type-meta-letter-spacing: 0px;
  --kh-type-button-font-family: var(--kh-font-sans);
  --kh-type-button-font-size: 1.25rem;
  --kh-type-button-line-height: 1.2;
  --kh-type-button-font-weight: 700;
  --kh-type-button-letter-spacing: 0px;
  --kh-type-label-font-family: var(--kh-font-sans);
  --kh-type-label-font-size: 0.875rem;
  --kh-type-label-line-height: 1.2;
  --kh-type-label-font-weight: 700;
  --kh-type-label-letter-spacing: 0px;
  --kh-type-nav-font-family: var(--kh-font-sans);
  --kh-type-nav-font-size: 0.8125rem;
  --kh-type-nav-line-height: 1.15;
  --kh-type-nav-font-weight: 700;
  --kh-type-nav-letter-spacing: 0px;
  --kh-elevation-0: none;
  --kh-elevation-1: 0px 1px 2px 0px #1118270F, 0px 0px 0px 1px #1118270F;
  --kh-elevation-2: 0px 8px 24px 0px #00000040;
  --kh-elevation-3: 0px 24px 64px 0px #00000059;
  --kh-motion-easing: cubic-bezier(0.2, 0, 0, 1);
  --kh-font-sans: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --kh-font-mono: "Atkinson Hyperlegible Mono", ui-monospace, monospace;
  --kh-shadow: 0 1px 2px #1118270f, 0 0 0 1px #1118270f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]):not([data-theme=dark]) {
  color-scheme: dark;
  --kh-primary: #86AAFF;
  --kh-on-primary: #0A1633;
  --kh-primary-container: #222C41;
  --kh-on-primary-container: #F1F5F9;
  --kh-secondary: #F1F5F9;
  --kh-on-secondary: #121822;
  --kh-tertiary: #C4A8FF;
  --kh-on-tertiary: #1B0F33;
  --kh-tertiary-container: #2B2C41;
  --kh-on-tertiary-container: #F1F5F9;
  --kh-error: #FF8A8A;
  --kh-on-error: #2B0A0A;
  --kh-error-container: #2E262E;
  --kh-on-error-container: #F1F5F9;
  --kh-surface: #121822;
  --kh-on-surface: #F1F5F9;
  --kh-on-surface-variant: #A3AFC0;
  --kh-surface-container-low: #0A0E14;
  --kh-surface-container-highest: #1A2230;
  --kh-outline: #A3AFC0;
  --kh-outline-variant: #2A3446;
  --kh-inverse-surface: #F1F5F9;
  --kh-on-inverse-surface: #121822;
  --kh-inverse-primary: #1E40AF;
  --kh-scrim: #000000;
  --kh-exception: #FF9C5E;
  --kh-on-exception: #2A1204;
  --kh-exception-container: #332A2A;
  --kh-success: #3DD6A0;
  --kh-on-success: #03231A;
  --kh-success-container: #183334;
  --kh-transit: #C4A8FF;
  --kh-offline: #A3AFC0;
  --kh-shadow: 0 0 0 1px #ffffff0f;
  }
}
:root[data-theme=dark] {
  color-scheme: dark;
  --kh-primary: #86AAFF;
  --kh-on-primary: #0A1633;
  --kh-primary-container: #222C41;
  --kh-on-primary-container: #F1F5F9;
  --kh-secondary: #F1F5F9;
  --kh-on-secondary: #121822;
  --kh-tertiary: #C4A8FF;
  --kh-on-tertiary: #1B0F33;
  --kh-tertiary-container: #2B2C41;
  --kh-on-tertiary-container: #F1F5F9;
  --kh-error: #FF8A8A;
  --kh-on-error: #2B0A0A;
  --kh-error-container: #2E262E;
  --kh-on-error-container: #F1F5F9;
  --kh-surface: #121822;
  --kh-on-surface: #F1F5F9;
  --kh-on-surface-variant: #A3AFC0;
  --kh-surface-container-low: #0A0E14;
  --kh-surface-container-highest: #1A2230;
  --kh-outline: #A3AFC0;
  --kh-outline-variant: #2A3446;
  --kh-inverse-surface: #F1F5F9;
  --kh-on-inverse-surface: #121822;
  --kh-inverse-primary: #1E40AF;
  --kh-scrim: #000000;
  --kh-exception: #FF9C5E;
  --kh-on-exception: #2A1204;
  --kh-exception-container: #332A2A;
  --kh-success: #3DD6A0;
  --kh-on-success: #03231A;
  --kh-success-container: #183334;
  --kh-transit: #C4A8FF;
  --kh-offline: #A3AFC0;
  --kh-shadow: 0 0 0 1px #ffffff0f;
}
:root { --bg:var(--kh-surface-container-low); --fg:var(--kh-on-surface); --ink:var(--kh-on-surface); --mut:var(--kh-on-surface-variant); --muted:var(--kh-on-surface-variant); --surface:var(--kh-surface); --line:var(--kh-outline-variant); --primary:var(--kh-primary); --tint:var(--kh-primary-container); --error:var(--kh-error); --warn:var(--kh-exception); --panel:var(--kh-surface-container-highest); --on:var(--kh-success); --tr:var(--kh-transit); --ex:var(--kh-exception); --off:var(--kh-offline); --button-ink:var(--kh-on-primary); }
@layer legacy {
body.kh-index{margin:0;font:15px system-ui,sans-serif;background:var(--bg);color:var(--fg)}
.kh-index header,.kh-index main{max-width:1100px;margin:0 auto;padding:12px 16px}
.kh-index header{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.kh-index h1{font-size:18px;margin:0}
.kh-index input,.kh-index button,.kh-index select,.kh-index textarea{font:inherit;padding:6px 10px;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--fg)}
.kh-index button{cursor:pointer;min-height:48px}
.kh-index .row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0}
.kh-index .counts span{margin-right:14px;font-weight:600}
.kh-index table{width:100%;border-collapse:collapse}
.kh-index th,.kh-index td{text-align:left;padding:8px;border-bottom:1px solid var(--line)}
.kh-index th{color:var(--mut);font-weight:600}
.kh-index .s{font-weight:600}
.kh-index .on_site{color:var(--on)}
.kh-index .in_transit{color:var(--tr)}
.kh-index .exception{color:var(--ex)}
.kh-index .off{color:var(--off)}
.kh-index .invalid{color:var(--ex)}
.kh-index .needs_geocode{color:var(--tr)}
.kh-index pre{white-space:pre-wrap;color:var(--mut)}
.kh-index h2{font-size:17px}
.kh-index h3{font-size:16px}
.kh-index .exception-card{border:1px solid var(--line);border-radius:6px;padding:12px;margin:8px 0;overflow-wrap:anywhere}
.kh-index .exception-card p{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.kh-index textarea{box-sizing:border-box;width:100%;min-height:64px}
.kh-index button:disabled{cursor:wait;opacity:.6}
.kh-index .table-wrap{overflow-x:auto}
.kh-index #board-site,.kh-index #board-state,.kh-index #board-view{min-height:48px;max-width:100%}
.kh-index #board-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}
.kh-index #board-cards[hidden]{display:none}
.kh-index #board-cards .exception-card{margin:0}
.kh-index .schedule-chips{display:flex;flex-wrap:wrap;gap:6px;margin-block:6px}
.kh-index .schedule-chip{display:inline-block;border:1px solid var(--warn);border-radius:99px;padding:3px 9px;background:var(--kh-exception-container);font-size:.875rem}
.kh-index .schedule-attention-list li{margin-block:12px}
.kh-index #schedule-summary tr:target{outline:3px solid var(--primary);outline-offset:-3px;scroll-margin-top:16px}
.kh-index #schedule-summary[hidden],.kh-index #schedule-attention[hidden]{display:none}
.kh-crews *{box-sizing:border-box}
body.kh-crews{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 system-ui,sans-serif}
.kh-crews a{color:var(--primary)}
.kh-crews button,.kh-crews input,.kh-crews select{font:inherit;color:inherit;min-height:48px;border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:var(--surface);max-width:100%}
.kh-crews button{cursor:pointer;white-space:normal;overflow-wrap:anywhere;font-weight:650}
.kh-crews button.primary{background:var(--primary);color:white;border-color:var(--primary)}
.kh-crews button:disabled{opacity:.55;cursor:default}
.kh-crews a:focus-visible,.kh-crews button:focus-visible,.kh-crews input:focus-visible,.kh-crews select:focus-visible{outline:3px solid #b45309;outline-offset:3px}
.kh-crews input,.kh-crews select{width:100%}
.kh-crews header{background:var(--surface);border-bottom:1px solid var(--line);padding:18px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.kh-crews .brand{font-size:22px;font-weight:800;letter-spacing:-.5px}
.kh-crews .shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:calc(100vh - 85px)}
.kh-crews nav{padding:24px 16px;border-right:1px solid var(--line);background:var(--surface)}
.kh-crews nav a{display:flex;align-items:center;min-height:48px;padding:12px 14px;margin-bottom:8px;text-decoration:none;border-radius:8px;font-weight:600;overflow-wrap:anywhere}
.kh-crews nav a[aria-current=page]{background:var(--tint);color:var(--primary)}
.kh-crews main{width:100%;max-width:1120px;padding:32px;min-width:0}
.kh-crews h1{font-size:30px;line-height:1.2;margin:0 0 10px}
.kh-crews h2{font-size:21px;margin:0 0 12px}
.kh-crews p{margin:8px 0 16px}
.kh-crews .muted{color:var(--muted)}
.kh-crews .card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:24px;margin:24px 0}
.kh-crews .row{display:flex;gap:16px;align-items:end;flex-wrap:wrap}
.kh-crews .row>label{flex:1 1 200px}
.kh-crews label{display:block;font-weight:600}
.kh-crews label span{display:block;margin-bottom:6px}
.kh-crews .actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:20px}
.kh-crews .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.kh-crews fieldset{border:0;margin:0;padding:0;min-width:0}
.kh-crews legend{font-weight:700;margin-bottom:14px}
.kh-crews .status{min-height:24px;overflow-wrap:anywhere}
.kh-crews .error{color:var(--error)}
.kh-crews #auth-status{font-weight:600}
.kh-crews .entry{border-top:1px solid var(--line);padding:20px 0}
.kh-crews .entry:first-child{border-top:0;padding-top:0}
.kh-crews .entry:last-child{padding-bottom:0}
.kh-crews .tag{display:inline-block;padding:4px 10px;border-radius:99px;background:var(--tint);font-size:14px;font-weight:700}
.kh-crews .skip{position:absolute;left:-9999px}
.kh-crews .skip:focus{position:fixed;left:12px;top:12px;background:var(--surface);padding:12px;z-index:2}
.kh-crews small{font-size:14px}
.kh-crews #language{width:auto}
.kh-crews dl{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.kh-crews dt{font-weight:600}
.kh-crews dd{margin:0}
@media(max-width:800px){.kh-crews .shell{display:block}
.kh-crews nav{display:flex;gap:8px;padding:12px;border-right:0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.kh-crews nav a{margin:0;flex:1 1 auto}
.kh-crews main{padding:24px 16px}
.kh-crews .grid{grid-template-columns:1fr}
.kh-crews .card{padding:20px}
.kh-crews header{padding:16px}
.kh-crews .row>label{flex-basis:100%}
}
.kh-timesheets *{box-sizing:border-box}
body.kh-timesheets{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 system-ui,sans-serif}
.kh-timesheets main{max-width:1280px;margin:auto;padding:24px}
.kh-timesheets header,.kh-timesheets .controls{display:flex;flex-wrap:wrap;align-items:center;gap:16px}
.kh-timesheets header{justify-content:space-between}
.kh-timesheets h1{font-size:1.7rem}
.kh-timesheets h2{font-size:1.3rem}
.kh-timesheets a{color:var(--primary)}
.kh-timesheets input,.kh-timesheets button,.kh-timesheets select{font:inherit;min-height:48px;max-width:100%;padding:10px;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--ink)}
.kh-timesheets button{cursor:pointer;white-space:normal}
.kh-timesheets button:disabled{opacity:.6;cursor:default}
.kh-timesheets label{display:flex;flex-direction:column;gap:4px}
.kh-timesheets section{border-top:1px solid var(--line);margin-top:24px;padding-top:12px}
.kh-timesheets .scroll{overflow:auto}
.kh-timesheets table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}
.kh-timesheets th,.kh-timesheets td{text-align:left;vertical-align:top;padding:12px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.kh-timesheets th{min-width:110px}
.kh-timesheets .warning{color:var(--warn);font-weight:600}
.kh-timesheets li,.kh-timesheets p{overflow-wrap:anywhere}
.kh-timesheets summary{cursor:pointer;padding:12px 0}
.kh-timesheets small{font-size:.9rem}
.kh-timesheets #status{min-height:24px}
.kh-timesheets button:focus-visible,.kh-timesheets a:focus-visible,.kh-timesheets input:focus-visible,.kh-timesheets select:focus-visible,.kh-timesheets summary:focus-visible{outline:3px solid var(--primary);outline-offset:3px}
@media(max-width:600px){.kh-timesheets main{padding:16px}
.kh-timesheets .controls>*{width:100%}
}
.kh-exceptions *{box-sizing:border-box}
body.kh-exceptions{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 system-ui,sans-serif}
.kh-exceptions header,.kh-exceptions main{max-width:1120px;margin:auto;padding:24px}
.kh-exceptions header{background:var(--surface)}
.kh-exceptions a{color:var(--primary)}
.kh-exceptions h1{font-size:1.8rem}
.kh-exceptions h2{font-size:1.2rem}
.kh-exceptions button,.kh-exceptions input,.kh-exceptions select,.kh-exceptions textarea{font:inherit;color:inherit;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:10px;max-width:100%;min-height:48px}
.kh-exceptions button{cursor:pointer;font-weight:650}
.kh-exceptions button:disabled{opacity:.6;cursor:default}
.kh-exceptions label{display:flex;flex-direction:column;gap:6px;min-width:0}
.kh-exceptions textarea{width:100%;min-height:80px}
.kh-exceptions .row{display:flex;gap:16px;align-items:end;flex-wrap:wrap}
.kh-exceptions .row>label{flex:1 1 200px}
.kh-exceptions article,.kh-exceptions .bulk{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:20px;margin:20px 0}
.kh-exceptions p{overflow-wrap:anywhere}
.kh-exceptions .check{display:flex;flex-direction:row;align-items:center;gap:12px}
.kh-exceptions .check input{width:24px}
.kh-exceptions .error{color:var(--error)}
.kh-exceptions :focus-visible,.kh-exceptions article:focus{outline:3px solid var(--primary);outline-offset:3px}
.kh-exceptions article:target{border:2px solid var(--primary);scroll-margin-top:16px}
.kh-exceptions #status{min-height:24px;white-space:pre-wrap}
.kh-exceptions button.primary{background:var(--primary);color:var(--surface)}
@media(max-width:600px){.kh-exceptions main,.kh-exceptions header{padding:16px}
.kh-exceptions .row>*{width:100%}
}
.kh-settings *{box-sizing:border-box}
body.kh-settings{margin:0;background:var(--bg);color:var(--ink);font:1rem/1.5 system-ui,sans-serif}
.kh-settings a{color:var(--primary)}
.kh-settings button,.kh-settings input,.kh-settings select{font:inherit;color:inherit;min-height:48px;border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:var(--surface);max-width:100%}
.kh-settings button{cursor:pointer;white-space:normal;overflow-wrap:anywhere;font-weight:650}
.kh-settings button.primary{background:var(--primary);color:white;border-color:var(--primary)}
.kh-settings button:disabled{opacity:.55;cursor:default}
.kh-settings a:focus-visible,.kh-settings button:focus-visible,.kh-settings input:focus-visible,.kh-settings select:focus-visible{outline:3px solid var(--primary);outline-offset:3px}
.kh-settings input,.kh-settings select{width:100%}
.kh-settings header{background:var(--surface);border-bottom:1px solid var(--line);padding:18px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.kh-settings .brand{font-size:1.375rem;font-weight:800;letter-spacing:-.5px}
.kh-settings .shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:calc(100vh - 85px)}
.kh-settings nav{padding:24px 16px;border-right:1px solid var(--line);background:var(--surface)}
.kh-settings nav a{display:flex;align-items:center;min-height:48px;padding:12px 14px;margin-bottom:8px;text-decoration:none;border-radius:8px;font-weight:600;overflow-wrap:anywhere}
.kh-settings nav a[aria-current=page]{background:var(--tint);color:var(--primary)}
.kh-settings main{width:100%;max-width:760px;margin-inline:auto;padding:32px;min-width:0}
.kh-settings h1{font-size:1.875rem;line-height:1.2;margin:0 0 10px}
.kh-settings h2{font-size:1.3125rem;margin:0 0 12px}
.kh-settings p{margin:8px 0 16px}
.kh-settings .muted{color:var(--muted)}
.kh-settings .card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:24px;margin:24px 0}
.kh-settings .row{display:flex;gap:16px;align-items:end;flex-wrap:wrap}
.kh-settings .row>label{flex:1 1 200px}
.kh-settings label{display:block;font-weight:600}
.kh-settings label span{display:block;margin-bottom:6px}
.kh-settings .actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:20px}
.kh-settings .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.kh-settings fieldset{border:0;margin:0;padding:0;min-width:0}
.kh-settings legend{font-weight:700;margin-bottom:14px}
.kh-settings .status{min-height:24px;overflow-wrap:anywhere}
.kh-settings .error{color:var(--error)}
.kh-settings #auth-status{font-weight:600}
.kh-settings .entry{border-top:1px solid var(--line);padding:20px 0}
.kh-settings .entry:first-child{border-top:0;padding-top:0}
.kh-settings .entry:last-child{padding-bottom:0}
.kh-settings .tag{display:inline-block;padding:4px 10px;border-radius:99px;background:var(--tint);font-size:.875rem;font-weight:700}
.kh-settings .skip{position:absolute;left:-9999px}
.kh-settings .skip:focus{position:fixed;left:12px;top:12px;background:var(--surface);padding:12px;z-index:2}
.kh-settings small{font-size:.875rem}
.kh-settings #language{width:auto}
.kh-settings dl{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.kh-settings dt{font-weight:600}
.kh-settings dd{margin:0}
@media(max-width:800px){.kh-settings .shell{display:block}
.kh-settings nav{display:flex;gap:8px;padding:12px;border-right:0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.kh-settings nav a{margin:0;flex:1 1 auto}
.kh-settings main{padding:24px 16px}
.kh-settings .grid{grid-template-columns:1fr}
.kh-settings .card{padding:20px}
.kh-settings header{padding:16px}
.kh-settings .row>label{flex-basis:100%}
}
.kh-settings button.primary{color:var(--button-ink,#fff)}
.kh-settings [hidden]{display:none!important}
.kh-settings .category,.kh-settings .result{display:block;min-height:48px;padding:16px;text-decoration:none;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.kh-settings .category:last-child,.kh-settings .result:last-child{border-bottom:0}
.kh-settings .category strong,.kh-settings .result strong{display:block}
.kh-settings .category span,.kh-settings .result span{display:block;color:var(--muted)}
.kh-settings .links{padding:0;overflow:hidden}
.kh-settings h2:focus{outline:3px solid var(--primary);outline-offset:5px}
.kh-settings h3{font-size:1.05rem;margin-top:24px}
.kh-settings .back{display:inline-flex;align-items:center;min-height:48px;margin-bottom:16px}
.kh-settings .separate{border-top:1px solid var(--line);padding-top:20px;margin-top:24px}
.kh-settings .danger{color:var(--error)}
.kh-settings .choices{display:flex;flex-wrap:wrap;gap:12px}
.kh-settings .choice{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 12px;border:1px solid var(--line);border-radius:8px}
.kh-settings .choice input{width:24px;min-height:24px;margin:0}
.kh-settings .choice span{margin:0}
.kh-settings .card p:last-child{margin-bottom:0}
.kh-settings dd,.kh-settings dt{overflow-wrap:anywhere}
.kh-settings dl{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
@media(max-width:480px){.kh-settings dl{grid-template-columns:1fr;gap:4px}
.kh-settings dd{margin-bottom:12px}
.kh-settings .choices{display:block}
.kh-settings .choice{margin-bottom:10px}
}
@media(prefers-contrast:more){.kh-settings .card,.kh-settings .category,.kh-settings .choice,.kh-settings button,.kh-settings input,.kh-settings select{border:2px solid currentColor}
}
@media(forced-colors:active){.kh-settings a:focus-visible,.kh-settings button:focus-visible,.kh-settings input:focus-visible,.kh-settings select:focus-visible{outline-color:Highlight}
}
.kh-audit *{box-sizing:border-box}
body.kh-audit{margin:0;background:var(--bg);color:var(--fg);font:16px/1.5 system-ui,sans-serif}
.kh-audit header,.kh-audit main{max-width:1100px;margin:auto;padding:16px}
.kh-audit header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;border-bottom:1px solid var(--line)}
.kh-audit h1{font-size:1.5rem;margin:0}
.kh-audit h2{font-size:1.2rem;margin:0 0 12px}
.kh-audit p{margin:8px 0 16px}
.kh-audit .muted{color:var(--mut)}
.kh-audit a{color:var(--primary);display:inline-flex;align-items:center;min-height:48px;padding:8px}
.kh-audit nav,.kh-audit .actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.kh-audit label{display:flex;flex-direction:column;gap:6px;min-width:0}
.kh-audit input,.kh-audit select,.kh-audit button{font:inherit;min-height:48px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--fg);max-width:100%}
.kh-audit button{cursor:pointer;white-space:normal;overflow-wrap:anywhere;font-weight:600}
.kh-audit button.primary{color:var(--bg);background:var(--primary);border-color:var(--primary)}
.kh-audit button:disabled{opacity:.6;cursor:default}
.kh-audit :focus-visible{outline:3px solid var(--primary);outline-offset:3px}
.kh-audit section{margin:24px 0;padding:16px;border:1px solid var(--line);border-radius:12px}
.kh-audit .auth{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;align-items:end;gap:16px}
.kh-audit .filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:16px}
.kh-audit .filters .actions{grid-column:1/-1}
.kh-audit .entry{background:var(--panel)}
.kh-audit .meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px;margin:0 0 16px}
.kh-audit dt{font-weight:600}
.kh-audit dd{margin:4px 0;overflow-wrap:anywhere}
.kh-audit .changes{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.kh-audit pre{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0 12px}
.kh-audit details summary{cursor:pointer;min-height:48px;padding:12px 0;color:var(--primary)}
.kh-audit .error{color:var(--error)}
.kh-audit #status{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:620px){.kh-audit .auth,.kh-audit .changes{grid-template-columns:1fr}
.kh-audit .actions button{flex:1 1 180px}
.kh-audit header nav{width:100%}
.kh-audit section{padding:12px}
}
.kh-signin *{box-sizing:border-box}
body.kh-signin{margin:0;background:var(--bg);color:var(--fg);font:16px system-ui,sans-serif}
.kh-signin main{max-width:640px;margin:auto;padding:24px 16px}
.kh-signin header,.kh-signin .row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:space-between}
.kh-signin h1{font-size:24px}
.kh-signin h2{font-size:20px}
.kh-signin label{display:block;margin:16px 0 6px}
.kh-signin input,.kh-signin button,.kh-signin select{font:inherit;min-height:48px;padding:10px;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--fg)}
.kh-signin input{width:100%}
.kh-signin input[type=checkbox]{width:24px;min-height:24px;vertical-align:middle;margin-right:8px}
.kh-signin select{max-width:100%}
.kh-signin #access-list th[scope=row]{overflow-wrap:anywhere;min-width:7rem}
.kh-signin button{margin-top:16px;cursor:pointer}
.kh-signin button:disabled{opacity:.6;cursor:wait}
.kh-signin p{line-height:1.5}
.kh-signin a{color:inherit}
.kh-signin section{border-top:1px solid var(--line);margin-top:24px;padding-top:12px}
.kh-signin pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}
.kh-signin small{color:var(--mut)}
.kh-signin [hidden]{display:none!important}
}
/* Shared Signal surfaces and controls. Page-specific state/layout rules stay above. */
* { box-sizing: border-box; }
html { background:var(--kh-surface-container-low); color:var(--kh-on-surface); font:100%/1.5 var(--kh-font-sans); }
body { margin:0; min-width:0; background:var(--kh-surface-container-low); color:var(--kh-on-surface); font:1rem/1.5 var(--kh-font-sans); }
body:has(.kh-sidebar) { display:grid; grid-template-columns:15.5rem minmax(0,1fr); min-height:100dvh; max-width:none; padding:0; }
body > header, body > main, body > .shell { grid-column:2; }
body > .shell { display:contents; }
.shell > main { grid-column:2; }
body header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; width:100%; max-width:none; margin:0; padding:1rem 1.5rem; background:var(--kh-surface); border-bottom:1px solid var(--kh-outline-variant); }
body main { width:100%; min-width:0; max-width:90rem; margin:0 auto; padding:2rem; }
body main > header { padding:0 0 1.5rem; background:transparent; margin-bottom:1.5rem; }
body .brand { font-size:1.375rem; font-weight:800; color:var(--kh-on-surface); }
h1,h2,h3,p,li,dt,dd,legend,label,a,button { overflow-wrap:anywhere; }
body h1 { font-size:var(--kh-type-headline-font-size); line-height:var(--kh-type-headline-line-height); font-weight:var(--kh-type-headline-font-weight); margin:0 0 .75rem; }
body h2 { font-size:1.375rem; line-height:1.2; font-weight:800; }
body h3 { font-size:1.125rem; line-height:1.25; }
a { color:var(--kh-primary); text-underline-offset:.2em; }
body input,body select,body textarea,body button { font:inherit; color:var(--kh-on-surface); background:var(--kh-surface); border:1px solid var(--kh-outline); border-radius:var(--kh-radius-md); min-height:var(--kh-size-touch-min); max-width:100%; padding:.625rem .875rem; }
body button { min-width:var(--kh-size-touch-min); cursor:pointer; white-space:normal; overflow-wrap:anywhere; font-weight:700; }
body button.primary,.kh-signin #submit { background:var(--kh-primary); border-color:var(--kh-primary); color:var(--kh-on-primary); }
body button:disabled { cursor:default; opacity:.6; }
body :is(input[type=checkbox],input[type=radio]) { min-height:1.5rem; width:1.5rem; accent-color:var(--kh-primary); flex-shrink:0; }
body textarea { width:100%; min-height:5rem; }
body :focus-visible { outline:3px solid var(--kh-primary); outline-offset:3px; }
body :is(.card,article,.bulk,.exception-card), .kh-index main > section,.kh-audit main > section,.kh-signin main,.kh-timesheets #auth { background:var(--kh-surface); border:1px solid var(--kh-outline-variant); border-radius:var(--kh-radius-lg); box-shadow:var(--kh-shadow); padding:1.5rem; margin-block:1.5rem; }
body .links { padding:0; }
#legal-links { display:flex; flex-wrap:wrap; gap:.5rem 1rem; }
body .row,body .actions,body .controls { gap:1rem; }
body .row > *,body .controls > *,body .auth > * { min-width:0; max-width:100%; }
body .auth { grid-template-columns:minmax(0,1fr) auto auto; }
body .grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
body :is(.muted,small,pre) { color:var(--kh-on-surface-variant); }
body :is(pre,code) { white-space:pre-wrap; overflow-wrap:anywhere; }
body .tag { border-radius:var(--kh-radius-pill); background:var(--kh-primary-container); color:var(--kh-on-primary-container); }
body :is(.error,.danger,.invalid) { color:var(--kh-error); }
body .warning,body .needs_geocode { color:var(--kh-exception); }
body .on_site { color:var(--kh-success); }
body .in_transit { color:var(--kh-transit); }
body .exception { color:var(--kh-exception); }
body .off { color:var(--kh-offline); }
body .counts { display:flex; flex-wrap:wrap; gap:1rem; margin-block:1.5rem; }
body .counts span { background:var(--kh-surface); padding:1rem; border:1px solid var(--kh-outline-variant); border-radius:var(--kh-radius-lg); margin:0; }
body table { width:100%; border-collapse:collapse; background:var(--kh-surface); font-variant-numeric:tabular-nums; }
body th,body td { text-align:start; vertical-align:top; padding:1rem; border-bottom:1px solid var(--kh-outline-variant); overflow-wrap:anywhere; }
body th { background:var(--kh-surface-container-highest); color:var(--kh-on-surface-variant); font-weight:700; }
body .scroll,body .table-wrap { max-width:100%; overflow-x:auto; }
body .separate { border-color:var(--kh-outline-variant); }
body .notice { padding:1rem; border:1px solid var(--kh-exception); background:var(--kh-exception-container); border-radius:var(--kh-radius-md); }
body :is(.kh-brand,.back,nav a) { min-height:3rem; }
body .skip { position:absolute; left:-10000px; }
body .skip:focus { position:fixed; left:1rem; top:1rem; z-index:10; max-width:calc(100% - 2rem); padding:.75rem; background:var(--kh-surface); color:var(--kh-primary); }
/* Keep native controls and flex children within the available text-scaled width. */
body :is(label,fieldset,input,select,textarea),body header > * { min-width:0; max-width:100%; }
body label:has(> :is(input[type=checkbox],input[type=radio])) { display:flex; align-items:center; gap:.75rem; min-height:var(--kh-size-touch-min); min-width:var(--kh-size-touch-min); }
body summary { min-height:var(--kh-size-touch-min); }
body :is(nav,.row,.actions,.separate) > a,body main > a,body a[data-legal],body a.action-link,body #signin-prompt a,body :is(#enrol-print,#board-link,#export) { display:inline-flex; align-items:center; min-height:var(--kh-size-touch-min); min-width:var(--kh-size-touch-min); max-width:100%; }
:is(.kh-privacy,.kh-terms,.kh-support) nav { display:flex; flex-wrap:wrap; gap:.5rem 1rem; }
body .links { overflow:visible; }
body :is([id],a) { scroll-margin-block:1rem; }
[hidden] { display:none!important; }
.kh-signin main { max-width:36rem; margin:3rem auto; }
.kh-signin #submit { width:100%; }
:is(.kh-privacy,.kh-terms,.kh-support) main { max-width:56rem; }
body .kh-sidebar { grid-column:1; grid-row:1 / span 20; align-self:start; position:sticky; top:0; height:100dvh; overflow-y:auto; padding:1rem .75rem; background:var(--kh-surface); border-right:1px solid var(--kh-outline-variant); }
body .kh-brand { display:flex; align-items:center; gap:.75rem; padding:.5rem .75rem; margin-bottom:1rem; font-size:1.1875rem; font-weight:800; text-decoration:none; color:var(--kh-on-surface); }
.kh-brand svg { flex:none; width:2rem; height:2rem; padding:.25rem; border-radius:.5rem; color:var(--kh-on-primary); background:var(--kh-primary); }
@media(max-width:65rem) {
 body:has(.kh-sidebar) { display:block; }
 body .kh-sidebar { position:static; height:auto; overflow:visible; border-right:0; border-bottom:1px solid var(--kh-outline-variant); }
 body .kh-brand { margin-bottom:.5rem; }
 body main { padding:1.5rem 1rem; }
 .kh-signin main { width:calc(100% - 2rem); margin:1.5rem auto; }
}
@media(max-width:40rem) {
 body main { padding:var(--kh-spacing-s24) var(--kh-spacing-s16); }
 body .grid,body .auth,body .changes { grid-template-columns:minmax(0,1fr); }
 body .row > label { flex-basis:100%; }
 body :is(.card,article,.bulk,.exception-card) { padding:var(--kh-spacing-s16); }
 body .actions > button { flex:1 1 12rem; }
}
@media(prefers-contrast:more) { body :is(.card,article,button,input,select,textarea) { border-color:currentColor; } }
@media(forced-colors:active) { body :focus-visible { outline-color:Highlight; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }
@media print {
 :root, :root[data-theme], :root:not([data-theme=light]):not([data-theme=dark]) {
  color-scheme:light;
  --kh-surface:#fff; --kh-surface-container-low:#fff; --kh-surface-container-highest:#fff;
  --kh-on-surface:#000; --kh-on-surface-variant:#000;
  --kh-primary:#000; --kh-on-primary:#fff; --kh-primary-container:#fff; --kh-on-primary-container:#000;
  --kh-error:#000; --kh-exception:#000; --kh-exception-container:#fff;
  --kh-success:#000; --kh-transit:#000; --kh-offline:#000;
  --kh-outline:#777; --kh-outline-variant:#777; --kh-shadow:none;
 }
 body:has(.kh-sidebar) { display:block; }
 body .kh-sidebar,body .kh-tour-prompt,body .skip { display:none!important; }
}

body :is(time,code,pre) { font-family:var(--kh-font-mono); font-variant-numeric:tabular-nums; }

/* Sites uses the shared Signal manager shell and tokens. */
.kh-sites .table-scroll{overflow-x:auto;max-width:100%}
.kh-sites table{width:100%;border-collapse:collapse;text-align:left}
.kh-sites :is(th,td){padding:12px;border-bottom:1px solid var(--kh-outline-variant);vertical-align:top;overflow-wrap:anywhere}
.kh-sites input[type=range]{padding-inline:0;accent-color:var(--kh-primary)}
.kh-sites #proposal{padding:16px;background:var(--kh-primary-container);border-radius:var(--kh-radius-md);margin-block:16px}
.kh-sites .site-summary{overflow-wrap:anywhere}
.kh-sites .archive{color:var(--kh-error);margin-inline-start:16px}

/* Phone manager layouts share Signal spacing, surfaces and touch sizes. */
.kh-cell-label { display:none; }
@media screen and (max-width:40rem) {
 html { scroll-padding-block:calc(var(--kh-size-touch-min) + var(--kh-spacing-s24)); }
 body main { padding-bottom:calc(var(--kh-spacing-s32) + env(safe-area-inset-bottom)); }
 body header { padding:var(--kh-spacing-s16); gap:var(--kh-spacing-s12); }
 body :is(.row,.controls,.actions) { gap:var(--kh-spacing-s12); }
 body :is(.row,.controls) > :is(label,input,select) { flex:1 1 100%; width:100%; }
 body :is(.row,.controls,.actions) > button { flex:1 1 auto; }
 body :is(.grid,.auth,.changes) { grid-template-columns:minmax(0,1fr); }
 body :is(.grid,.row,.controls,.actions,.counts,.entry,section,form,fieldset,legend) { min-width:0; }
 body :is(.card,article,.bulk,.exception-card) { padding:var(--kh-spacing-s16); }
 body :is(input,select,textarea) { font-size:var(--kh-type-body-small-font-size); }
 body input[type=file] { width:100%; }
 body input::file-selector-button { min-height:var(--kh-size-touch-min); font:inherit; }
 body label:has(> :is(input[type=checkbox],input[type=radio])) { width:auto; }
 body :is(.counts) > span { flex:1 1 100%; }
 body main a:not(.skip,.category,.result) { display:inline-flex; align-items:center; min-height:var(--kh-size-touch-min); }
 body :is(.scroll,.table-wrap,.table-scroll) { overflow:visible; }
 body table.kh-mobile-table,body #days table.kh-mobile-table { display:block; min-width:0; width:100%; background:transparent; }
 body .kh-mobile-table caption { display:block; text-align:start; margin-block:var(--kh-spacing-s12); }
 /* Keep column headers in the accessibility tree while each card shows its labels. */
 body .kh-mobile-table thead { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
 body .kh-mobile-table tbody { display:grid; gap:var(--kh-spacing-s16); }
 body .kh-mobile-table tbody tr { display:grid; min-width:0; padding:var(--kh-spacing-s12); border:1px solid var(--kh-outline-variant); border-radius:var(--kh-radius-lg); background:var(--kh-surface); }
 body .kh-mobile-table :is(td,th[scope=row]) { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--kh-spacing-s4); min-width:0; padding:var(--kh-spacing-s8); border-bottom:1px solid var(--kh-outline-variant); }
 body .kh-mobile-table td:last-child { border-bottom:0; }
 body .kh-mobile-table .kh-cell-label { display:block; color:var(--kh-on-surface-variant); font-size:var(--kh-type-label-font-size); font-weight:var(--kh-type-label-font-weight); }
 body.kh-schedule .week { grid-template-columns:minmax(0,1fr); min-width:0; gap:var(--kh-spacing-s16); }
 body.kh-schedule .week-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 body.kh-schedule #week-title { grid-column:1/-1; grid-row:1; }
 body.kh-schedule #reload { grid-column:1/-1; }
 body.kh-schedule .assignment { margin-block:var(--kh-spacing-s12); }
 /* Actions stick within their own form, so another record's controls never follow it. */
 body form .actions,body .kh-sticky-actions,body #notes-compose > .row:last-child,body #checklist-editor > .row:last-child {
  position:sticky; bottom:0; z-index:2; display:flex; flex-wrap:wrap; width:100%;
  padding:var(--kh-spacing-s12) var(--kh-spacing-s8) calc(var(--kh-spacing-s12) + env(safe-area-inset-bottom));
  margin-block:var(--kh-spacing-s16) 0; background:var(--kh-surface);
  border-top:1px solid var(--kh-outline-variant); box-shadow:var(--kh-elevation-1);
 }
 body .kh-sticky-actions:has(> #export[hidden]) { display:none; }
 body :is(button,input,select,textarea,a) { scroll-margin-block:calc(var(--kh-size-touch-min) + var(--kh-spacing-s24)); }
 body.kh-start .steps { grid-template-columns:minmax(0,1fr); }
 body.kh-start .code-value { overflow-wrap:anywhere; }
 body.kh-start .actions { gap:var(--kh-spacing-s12); }
 body.kh-start form .actions button { margin-top:0; }
}

.kh-exceptions .exception-map{margin:16px 0;max-width:560px}
.kh-exceptions .exception-map svg{display:block;width:100%;height:auto;background:var(--surface);border:1px solid var(--line);border-radius:8px;color:var(--ink)}
.kh-exceptions .exception-map text{fill:currentColor;font:14px system-ui,sans-serif}
.kh-exceptions .exception-map .map-grid{fill:none;stroke:var(--line);stroke-width:1}
.kh-exceptions .exception-map .site-boundary{fill:var(--primary);fill-opacity:.08;stroke:var(--primary);stroke-width:2}
.kh-exceptions .exception-map .site-pin{fill:none;stroke:var(--primary);stroke-width:3}
.kh-exceptions .exception-map .fix-accuracy{fill:var(--ink);fill-opacity:.06;stroke:var(--ink);stroke-dasharray:5 4}
.kh-exceptions .exception-map .recorded-fix{fill:var(--ink);stroke:var(--surface);stroke-width:2}
