/* Crew Clock — daylight-readable, mobile-first, no remote assets. */
:root {
  color-scheme: light;
  --ink: #102536;
  --muted: #526575;
  --paper: #f3f6f8;
  --white: #ffffff;
  --line: #d6dfe5;
  --blue: #183f62;
  --yellow: #ffd45b;
  --yellow-dark: #6b4500;
  --green: #126044;
  --green-pale: #e7f4ec;
  --amber-pale: #fff3cb;
  --red: #a72727;
  --red-pale: #fff0ee;
  --radius: 18px;
  --shadow: 0 3px 16px rgb(16 37 54 / 4%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); min-width: 280px; overflow-wrap: anywhere; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .55; }
button, a, input, select, textarea { outline-offset: 4px; }
:focus-visible { outline: 3px solid #147ab5; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
button svg, .intro-meta svg, .saved-message svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.8rem, 5.5vw, 2.6rem); line-height: 1.12; letter-spacing: -.045em; margin-bottom: 18px; }
h2 { font-size: 1.3rem; line-height: 1.3; letter-spacing: -.025em; margin-bottom: 16px; }
h3 { font-size: 1.075rem; line-height: 1.35; margin-bottom: 8px; }
p { margin-bottom: 16px; }
small { font-size: .875rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
[hidden] { display: none !important; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: white; padding: 12px; }
.app-header { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); background: var(--white); padding: calc(16px + env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 16px max(18px, env(safe-area-inset-left)); }
.brand { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.06rem; letter-spacing: -.035em; line-height: 1.1; }
.brand img { width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto; object-fit: contain; }
.brand-light { font-weight: 500; }
.brand small { display: block; font-size: .65rem; color: var(--muted); letter-spacing: .13em; margin-top: 6px; font-weight: 700; }
.header-tag { display: none; font-size: .75rem; font-weight: 750; letter-spacing: .12em; }
.app-main { max-width: 1180px; margin: 0 auto; padding: 22px max(16px, env(safe-area-inset-right)) 20px max(16px, env(safe-area-inset-left)); }
.narrow-main { max-width: 650px; margin: 38px auto; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.app-footer { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .8rem; padding: 24px max(18px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
.app-footer > span { flex: 0 0 100%; text-align: center; }
.app-footer .text-button { font-size: .8rem; }
.eyebrow { font-size: .75rem; line-height: 1.4; font-weight: 800; color: var(--muted); letter-spacing: .12em; margin-bottom: 10px; text-transform: uppercase; }
.muted, .small-note, .field-help { color: var(--muted); }
.small-note { font-size: .875rem; line-height: 1.55; margin: 14px 0 0; }
.lead { font-size: 1.1rem; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.panel > :last-child { margin-bottom: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; min-width: 52px; padding: 12px 18px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; font-size: 1rem; line-height: 1.35; text-decoration: none; text-align: center; transition: background-color .15s, border-color .15s; }
.button-primary { background: var(--ink); color: white; border-color: var(--ink); }
.button-primary:hover:not(:disabled) { background: var(--blue); }
.button-secondary { background: white; border-color: #a9bac7; color: var(--ink); }
.button-secondary:hover:not(:disabled) { background: var(--quiet-surface, #eaf0f4); }
.button-quiet { color: var(--blue); background: transparent; }
.button-quiet:hover:not(:disabled) { background: #e8eff4; }
.button-small { min-height: 48px; font-size: .875rem; padding: 11px 13px; }
.button-block { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.button-row .button { flex: 1 1 auto; }
.text-button { color: var(--blue); border: 0; background: none; min-height: 44px; padding: 10px 2px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; text-align: left; }
.form-stack { display: flex; flex-direction: column; gap: 18px; }
.form-stack p { margin-bottom: 0; }
label { display: flex; flex-direction: column; gap: 7px; font-weight: 650; font-size: .925rem; color: var(--ink); min-width: 0; }
input, select, textarea { display: block; width: 100%; max-width: 100%; min-width: 0; border: 1.5px solid var(--field-border, var(--muted)); border-radius: 10px; background: var(--field-background, var(--white)); padding: 13px 12px; min-height: 54px; color: var(--ink); font-size: 16px; line-height: 1.45; font-weight: 400; }
input[type="date"], input[type="datetime-local"] { min-width: 0; -webkit-appearance: none; appearance: none; }
input::-webkit-date-and-time-value { text-align: left; min-height: 24px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 39%, var(--ink) 40% 60%, transparent 61%),
    linear-gradient(135deg, transparent 39%, var(--ink) 40% 60%, transparent 61%);
  background-position: right 16px center, right 10px center;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
@media (forced-colors: active) {
  select { appearance: auto; background-image: none; }
}
textarea { resize: vertical; min-height: 84px; }
.optional { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field-help { font-weight: 400; font-size: .825rem; }
.check-label { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; padding: 8px 0; min-height: 52px; font-weight: 500; }
.check-label input { flex: 0 0 26px; width: 26px; min-height: 26px; height: 26px; margin: 0; accent-color: var(--ink); }
.form-error { color: var(--red); font-size: .925rem; margin-top: 14px; }
.form-error:empty { display: none; }
.banner { padding: 15px 17px; border: 1px solid transparent; border-radius: 12px; font-size: .925rem; margin-bottom: 18px; }
.banner p { margin: 8px 0 12px; }
.banner-warning { background: var(--amber-pale); border-color: #e4c66a; color: #5e4100; }
.banner-info { background: #e9f2f9; border-color: #bfdae9; color: #183f62; }
#app > .banner { max-width: 1148px; margin: 14px 16px 0; }
.auth-shell { display: grid; gap: 28px; max-width: 1120px; padding: 32px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); margin: 0 auto; }
.auth-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
.auth-brand img { width: 144px; height: 144px; border-radius: 18px; object-fit: contain; }
.auth-brand > span { font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em; }
.auth-intro h1 { font-size: 2.1rem; margin: 12px 0 18px; }
.auth-intro > p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; }
.intro-meta { display: none; gap: 12px; align-items: center; color: var(--muted); font-size: .9rem; }
.auth-panel h2 { font-size: 1.65rem; margin-bottom: 8px; }
.auth-panel .form-stack { margin-top: 24px; }
.auth-links { display: flex; flex-direction: column; align-items: center; margin-top: 14px; }
.auth-links .text-button { text-align: center; }
.auth-panel > .small-note { border-top: 1px solid var(--line); padding-top: 18px; text-align: center; }
.setup-panel { max-width: 700px; margin: auto; }
.setup-steps { padding-left: 23px; }
.setup-steps li { padding-left: 5px; margin-bottom: 14px; }
.waiting-panel { text-align: center; padding: 32px 24px; }
.status-illustration { width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; background: var(--amber-pale); border-radius: 50%; margin: 0 auto 24px; }
.status-illustration svg { width: 38px; height: 38px; stroke: var(--ink); fill: none; stroke-width: 1.5; stroke-linecap: round; }
.main-nav { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; background: var(--quiet-surface, #e1e9ef); border-radius: 12px; max-width: 400px; margin-bottom: 30px; }
.main-nav button { display: flex; gap: 8px; justify-content: center; align-items: center; min-height: 50px; border: 0; border-radius: 8px; color: var(--subtle-ink, #40596d); background: transparent; font-weight: 750; font-size: .95rem; }
.main-nav button.selected { color: var(--ink); background: white; box-shadow: 0 1px 5px rgb(16 37 54 / 8%); }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 4px 0 24px; }
.page-heading h1 { margin-bottom: 0; }
.page-heading .eyebrow { font-size: .7rem; }
.page-heading > .button { margin-top: 9px; }
.clock-layout, .clock-column { display: grid; gap: 18px; }
.clock-panel { padding: 24px 20px 18px; }
.status-line { display: flex; align-items: center; gap: 8px; font-size: .7rem; letter-spacing: .055em; font-weight: 800; }
.status-line .badge { margin-left: auto; font-size: .6rem; white-space: nowrap; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #8798a6; flex: 0 0 auto; }
.status-dot.live { background: #16804f; box-shadow: 0 0 0 4px #e7f4ec; }
.timer { text-align: center; font-size: clamp(2.65rem, 13vw, 4.3rem); font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.15; letter-spacing: -.04em; margin: 24px 0 8px; }
.clock-detail { color: var(--muted); text-align: center; margin-bottom: 24px; font-size: .875rem; }
.clock-button { width: 100%; min-height: 100px; display: flex; align-items: center; justify-content: center; gap: 14px; border: 2px solid var(--action-border, #dfb232); background: var(--yellow); color: var(--ink); border-radius: 14px; padding: 18px; font-size: 1.65rem; font-weight: 800; letter-spacing: -.03em; margin-top: 22px; box-shadow: 0 4px 0 var(--action-shadow, #e4b63b); }
.clock-button:hover:not(:disabled) { background: var(--action-hover, #ffda72); }
.clock-button:active:not(:disabled) { box-shadow: none; transform: translateY(2px); }
.clock-button svg { width: 30px; height: 30px; stroke-width: 2; }
.clock-button-out { background: var(--ink); color: white; border-color: var(--ink); box-shadow: 0 4px 0 #081521; }
.clock-button-out:hover:not(:disabled) { background: var(--blue); }
.clock-hint { font-size: .8rem; color: var(--muted); text-align: center; min-height: 21px; margin: 17px 0 0; }
.saved-message { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; display: flex; gap: 8px; align-items: flex-start; font-size: .875rem; color: var(--green); }
.hours-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.hours-card { padding: 18px 15px; }
.hours-card > span { display: block; color: var(--muted); font-size: .875rem; font-weight: 650; }
.hours-card strong { display: block; font-variant-numeric: tabular-nums; font-size: 2rem; letter-spacing: -.05em; margin: 4px 0; }
.hours-card small { font-size: .75rem; color: var(--muted); }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.section-title h2, .section-title h3 { margin: 0; }
.section-title > .muted { font-size: .85rem; flex-shrink: 0; }
.shift-list { list-style: none; padding: 0; margin: 0; }
.shift-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.shift-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shift-top > strong { font-size: .95rem; }
.shift-hours { font-variant-numeric: tabular-nums; font-weight: 750; font-size: .95rem; }
.shift-list p { font-size: .9rem; margin: 5px 0 2px; }
.shift-list small { color: var(--muted); font-size: .8rem; }
.shift-list li > .badge { margin-left: 6px; }
.shift-list .shift-note { font-size: .825rem; padding: 8px 10px; border-radius: 6px; background: var(--paper); color: var(--muted); }
.badge { display: inline-block; padding: 4px 8px; border-radius: 5px; font-size: .7rem; line-height: 1.35; font-weight: 750; background: var(--quiet-surface, #eaf0f4); color: #385167; letter-spacing: .01em; }
.badge-green { background: var(--green-pale); color: var(--green); }
.badge-amber { background: var(--amber-pale); color: var(--yellow-dark); }
.notice-panel { border-color: #d7bd6b; }
.notice-text { white-space: pre-wrap; font-size: .925rem; line-height: 1.6; overflow-wrap: anywhere; }
.notice-panel .notice-text { border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 18px; }
.empty-state { text-align: center; padding: 32px 18px; color: var(--ink); font-weight: 650; }
.empty-state p { margin: 10px 0 0; font-size: .925rem; font-weight: 400; color: var(--muted); }
.office-nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2px; margin-bottom: 22px; border-bottom: 2px solid var(--line); }
.office-tab { border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; background: transparent; padding: 12px 2px; min-height: 50px; font-weight: 700; font-size: .85rem; color: var(--muted); border-radius: 5px 5px 0 0; }
.office-tab.selected { color: var(--ink); border-bottom-color: var(--ink); }
.office-tab:hover { background: var(--quiet-hover, #e6edf2); }
.filter-panel { padding: 18px; }
.filter-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; margin-bottom: 16px; }
.report-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 26px; }
.report-toolbar > div { min-width: 0; }
.report-toolbar > div:first-child > strong { font-size: 1.8rem; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.report-toolbar > div:first-child > span { color: var(--muted); font-size: .9rem; }
.report-toolbar .small-note { margin-top: 2px; }
.report-km { margin: 0 0 4px; font-size: .9rem; color: var(--muted); }
.report-km strong { color: var(--ink); }
.report-toolbar .button-row { width: 100%; }
.report-note { font-size: .825rem; color: var(--muted); line-height: 1.55; margin: 18px 0; }
.table-wrap { min-width: 0; }
.timesheet-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .875rem; }
.timesheet-table, .timesheet-table tbody, .timesheet-table tr, .timesheet-table td { display: block; }
.timesheet-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.timesheet-table tbody { display: grid; gap: 14px; }
.timesheet-table tr { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); }
.timesheet-table tr.flagged-row { border-left: 4px solid #cc9c23; padding-left: 13px; }
.timesheet-table td { padding: 11px 0; border-bottom: 1px solid #e7edf1; min-width: 0; }
.timesheet-table td:last-child { border-bottom: 0; }
.timesheet-table td::before { content: attr(data-label); display: block; color: var(--muted); text-transform: uppercase; font-size: .65rem; font-weight: 800; letter-spacing: .08em; margin-bottom: 5px; }
.timesheet-table td:first-child > strong { font-size: 1.05rem; }
.cell-secondary { display: block; font-size: .825rem; color: var(--muted); margin-top: 4px; }
.cell-note { color: var(--muted); white-space: pre-wrap; font-size: .825rem; margin: 8px 0 0; }
.row-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.row-badges:empty { display: none; }
.edit-reason { display: block; color: var(--muted); margin: 5px 0 10px; font-size: .8rem; }
.location-pair { display: flex; flex-direction: column; gap: 3px; }
.location-link { display: block; padding: 9px 0; min-height: 44px; font-weight: 650; }
.location-missing { font-size: .825rem; color: var(--yellow-dark); display: block; padding: 4px 0; }
.totals-grid { display: grid; gap: 18px; margin-top: 22px; }
.total-list { list-style: none; padding: 0; margin: 0; }
.total-list li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); font-size: .925rem; }
.total-list strong { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.worker-grid { display: grid; gap: 16px; }
.worker-card { padding: 20px; }
.worker-card .section-title { align-items: flex-start; margin-bottom: 5px; }
.worker-email { color: var(--muted); font-size: .9rem; margin-bottom: 6px; overflow-wrap: anywhere; }
.worker-card .small-note { margin: 4px 0 18px; }
.worker-card .button-row { gap: 5px; }
.worker-card .button { font-size: .875rem; }
.settings-layout { display: grid; gap: 24px; align-items: start; }
.settings-layout .panel > p { font-size: .925rem; color: var(--muted); }
.settings-layout .form-stack { margin-top: 22px; }
.app-dialog { width: min(570px, calc(100% - 28px)); max-height: calc(100dvh - 48px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); border: 1px solid var(--line); border-radius: 18px; padding: 22px; color: var(--ink); background: white; box-shadow: 0 24px 80px rgb(0 0 0 / 25%); overflow-y: auto; }
.app-dialog::backdrop { background: rgb(8 21 33 / 60%); }
.dialog-heading { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dialog-heading h2 { margin-bottom: 0; }
.dialog-heading .button { flex: 0 0 auto; }
.fold-field { padding: 12px; border-radius: 8px; background: var(--amber-pale); }
.loading-inline { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 36px 20px; color: var(--muted); }
.loader { width: 24px; height: 24px; border: 3px solid #d9e4ea; border-top-color: var(--blue); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#toast-region { position: fixed; z-index: 20; bottom: calc(16px + env(safe-area-inset-bottom)); left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); max-width: 570px; margin-left: auto; display: flex; flex-direction: column; gap: 10px; max-height: 70dvh; overflow-y: auto; pointer-events: none; }
.toast { background: var(--ink); color: white; border: 1px solid #577287; padding: 16px; border-radius: 12px; box-shadow: 0 6px 30px rgb(16 37 54 / 25%); font-size: .925rem; line-height: 1.5; pointer-events: auto; }
.toast-success { background: #12543f; border-color: #27795e; }
.toast-error { background: #822222; border-color: #bd5656; }
.toast-close { display: block; color: inherit; background: transparent; padding: 8px 0; min-height: 44px; border: 0; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; margin-top: 2px; }
noscript { display: block; padding: 24px; background: var(--amber-pale); }
@media (min-width: 480px) {
  .filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .auth-intro h1 { font-size: 2.6rem; }
  .status-line { font-size: .75rem; }
  .status-line .badge { font-size: .65rem; }
}
@media (min-width: 760px) {
  .app-header { padding-left: max(32px,env(safe-area-inset-left)); padding-right: max(32px,env(safe-area-inset-right)); }
  .header-tag { display: inline; }
  .app-main { padding-top: 32px; }
  .auth-shell { grid-template-columns: minmax(0,1fr) minmax(0,.9fr); align-items: center; gap: 64px; min-height: calc(100vh - 195px); padding-top: 48px; padding-bottom: 48px; }
  .auth-intro h1 { font-size: clamp(2.6rem,4.1vw,3.7rem); }
  .auth-intro > p:not(.eyebrow) { font-size: 1.15rem; }
  .intro-meta { display: flex; margin-top: 46px; }
  .auth-panel { padding: 32px; }
  .setup-panel { grid-column: 1 / -1; }
  .clock-layout { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); align-items: start; gap: 24px; }
  .clock-column { gap: 20px; }
  .clock-panel { padding: 30px; }
  .timer { margin-top: 32px; }
  .clock-button { min-height: 110px; }
  .hours-card { padding: 22px; }
  .hours-card strong { font-size: 2.3rem; }
  .recent-panel { padding: 24px; }
  .office-nav { max-width: 580px; gap: 14px; margin-bottom: 28px; }
  .office-tab { font-size: 1rem; }
  .report-toolbar .button-row { width: auto; }
  .totals-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .worker-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .settings-layout { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-footer > span { flex: initial; }
  #app > .banner { margin-left: auto; margin-right: auto; }
}
@media (min-width: 1020px) {
  .filter-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .filter-panel form { display: flex; gap: 18px; align-items: flex-end; }
  .filter-panel .filter-grid { flex: 1; margin-bottom: 0; }
  .filter-panel .button-row { flex: 0 0 auto; }
  .filter-panel .button-row .button { min-height: 54px; }
  .timesheet-table { display: table; table-layout: fixed; background: white; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .timesheet-table thead { position: static; display: table-header-group; width: auto; height: auto; overflow: visible; clip: auto; }
  .timesheet-table tbody { display: table-row-group; }
  .timesheet-table tr { display: table-row; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
  .timesheet-table th { background: var(--quiet-surface, #eaf0f4); text-align: left; padding: 16px 14px; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--subtle-ink, #425a6c); border-bottom: 1px solid var(--line); }
  .timesheet-table th:nth-child(1) { width: 20%; }
  .timesheet-table th:nth-child(2) { width: 23%; }
  .timesheet-table th:nth-child(3) { width: 12%; }
  .timesheet-table th:nth-child(4) { width: 10%; }
  .timesheet-table th:nth-child(5) { width: 17%; }
  .timesheet-table th:nth-child(6) { width: 18%; }
  .timesheet-table td { display: table-cell; vertical-align: top; padding: 18px 14px; border-bottom: 1px solid var(--line); }
  .timesheet-table td:last-child { border-bottom: 1px solid var(--line); }
  .timesheet-table tr:last-child td { border-bottom: 0; }
  .timesheet-table tr.flagged-row td:first-child { border-left: 4px solid #cc9c23; padding-left: 10px; }
  .timesheet-table td::before { display: none; }
  .timesheet-table td:first-child > strong { font-size: .9rem; }
  .timesheet-table time { font-size: .825rem; }
  .timesheet-table tbody tr:hover { background: #fafcfd; }
  .worker-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .app-header, .app-footer, .main-nav, .office-nav, .filter-panel, .report-toolbar .button-row, .button, #toast-region { display: none !important; }
  body, .panel { background: white; box-shadow: none; }
  .app-main { max-width: none; padding: 0; }
  .timesheet-table tr, .panel { break-inside: avoid; }
}

/* Keep the entire account form in view on a short phone. */
.compact-auth { display: block; max-width: 480px; min-height: auto; padding-top: 16px; padding-bottom: 0; }
.compact-auth .auth-brand { flex-direction: row; align-items: center; justify-content: center; margin-bottom: 12px; gap: 12px; }
.compact-auth .auth-brand img { width: 64px; height: 64px; border-radius: 12px; }
.compact-auth .auth-panel { padding: 16px; }
.compact-auth .auth-panel h1 { font-size: 1.5rem; margin-bottom: 10px; }
.compact-auth .auth-panel .form-stack { margin-top: 0; gap: 10px; }
.compact-auth .auth-links { margin-top: 6px; }
.compact-auth .auth-links .text-button { padding-top: 6px; padding-bottom: 6px; }
.signup-notice p { font-size: .83rem; margin: 0; }
.signup-notice p .text-button { font-size: inherit; min-height: 34px; padding: 4px 2px; }
.signup-notice .check-label { margin: 0; padding: 4px 0; min-height: 42px; font-size: .88rem; }
.address-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.address-choices button { min-height: 44px; max-width: 100%; overflow-wrap: anywhere; }
.office-nav { grid-template-columns: repeat(5,minmax(0,1fr)); }
.pay-summary { margin-top: 20px; }
.pay-summary .table-wrap { margin-top: 14px; }
.pay-summary > section { margin-top: 16px; }
.report-toolbar .button-row { margin-bottom: 12px; }
@media print {
  body:has(.pay-summary) .app-main > :not(.pay-summary) { display: none !important; }
  .pay-summary .button-row { display: none !important; }
  .pay-summary .timesheet-table { display: table; table-layout: auto; }
  .pay-summary .timesheet-table thead { position: static; display: table-header-group; width: auto; height: auto; overflow: visible; clip: auto; }
  .pay-summary .timesheet-table tbody { display: table-row-group; }
  .pay-summary .timesheet-table tr { display: table-row; }
  .pay-summary .timesheet-table td { display: table-cell; padding: 8px; }
  .pay-summary .timesheet-table td::before { display: none; }
}

.language-switch { display: flex; justify-content: center; }
.compact-auth .language-switch { margin: -8px 0 4px; }
.compact-auth .language-switch .text-button { min-height: 32px; padding: 3px 8px; }
