:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel-2: #eef3f8;
  --ink: #111827;
  --muted: #667085;
  --line: #d9e2ec;
  --accent: #0f62fe;
  --accent-2: #00a6a6;
  --good: #0f9f6e;
  --warn: #cc7a00;
  --bad: #d83b46;
  --shadow: 0 18px 50px rgba(22, 34, 51, 0.09);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 0%, rgba(0, 166, 166, 0.12), transparent 280px),
    linear-gradient(180deg, rgba(15, 98, 254, 0.08), transparent 310px),
    var(--bg);
  color: var(--ink);
  transition: background .2s ease, color .2s ease;
}
body[data-theme="soft"] {
  --bg: #f6f3ee;
  --panel: #fffdf8;
  --panel-2: #f0eadf;
  --ink: #1f2933;
  --muted: #6f675d;
  --line: #e2d8ca;
  --accent-2: #1aa37a;
  --shadow: 0 16px 42px rgba(71, 56, 38, .1);
}
body[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1720;
  --panel: #17212d;
  --panel-2: #202c3a;
  --ink: #eef4fb;
  --muted: #9aa8b7;
  --line: #2c3948;
  --accent-2: #20c997;
  --good: #42d392;
  --warn: #f6ad55;
  --bad: #ff6b7a;
  --shadow: 0 18px 55px rgba(0, 0, 0, .28);
}
body[data-theme="dark"] input,
body[data-theme="dark"] select,
body[data-theme="dark"] textarea {
  background: #101923;
  color: var(--ink);
}
body[data-theme="dark"] .sidebar,
body[data-theme="dark"] .auth-form {
  background: rgba(23, 33, 45, .86);
}
body[data-theme="dark"] button.secondary,
body[data-theme="dark"] .side-card,
body[data-theme="dark"] .card,
body[data-theme="dark"] .job-edit-row,
body[data-theme="dark"] .department-editor,
body[data-theme="dark"] .preview-card,
body[data-theme="dark"] .modal-box {
  background: #17212d;
}
body[data-theme="dark"] .shift-card { background: #17212d; }
body[data-theme="dark"] .shift-list-head,
body[data-theme="dark"] .shift-date,
body[data-theme="dark"] .shift-time-button,
body[data-theme="dark"] .segmented { background: #202c3a; }
body[data-theme="dark"] .comment { background: #202c3a; }
body[data-theme="dark"] .clickable-row:hover { background: #1d2937; }
body[data-density="compact"] { font-size: 14px; }
body[data-density="compact"] .main { padding-top: 16px; }
body[data-density="compact"] .grid { gap: 10px; }
body[data-density="compact"] .panel { padding: 14px; }
body[data-density="compact"] th,
body[data-density="compact"] td { padding: 8px; }
body[data-density="compact"] .clock-face { padding: 16px; }
body[data-density="compact"] .topbar { margin-bottom: 12px; }
body[data-density="large"] { font-size: 17px; }
body[data-density="large"] input,
body[data-density="large"] select,
body[data-density="large"] textarea { min-height: 48px; }
body[data-focus="on"] .side-card:first-of-type,
body[data-focus="on"] .topbar .muted { display: none; }
button, input, select, textarea { font: inherit; }
button {
  border: 0;
  cursor: pointer;
  border-radius: 7px;
  background: linear-gradient(180deg, #1f2937, #111827);
  color: white;
  padding: 10px 13px;
  font-weight: 750;
}
button.secondary { background: #ffffff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(22,34,51,.06); }
button.ghost { background: transparent; color: var(--muted); padding: 8px 10px; }
button.good { background: var(--good); }
button.warn { background: var(--warn); }
button.bad { background: var(--bad); }
button:disabled { opacity: .45; cursor: not-allowed; }
input, select, textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 9px 10px;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(15, 98, 254, .14); border-color: rgba(15, 98, 254, .55); }
textarea { min-height: 84px; resize: vertical; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 252px 1fr; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 21px; margin-bottom: 24px; }
.brand-mark, .brand-logo { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: white; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.brand-logo { object-fit: cover; background: white; border: 1px solid var(--line); }
.nav { display: grid; gap: 6px; }
.nav button { width: 100%; display: flex; justify-content: flex-start; gap: 10px; background: transparent; color: var(--muted); box-shadow: none; }
.nav button.active { background: linear-gradient(90deg, rgba(15,98,254,.12), rgba(0,166,166,.08)); color: var(--accent); }
.side-card { margin-top: 18px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.side-card strong { display: block; margin-bottom: 4px; }
.main { min-width: 0; padding: 18px min(4vw, 42px) 48px; max-width: 1480px; width: 100%; }
.org-strip {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: -18px calc(min(4vw, 42px) * -1) 20px;
  padding: 8px min(4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(18px);
}
.org-strip-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}
.org-strip-name .brand-mark,
.org-strip-name .brand-logo { width: 28px; height: 28px; border-radius: 7px; }
.topbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 20px; }
.topbar h1 { margin: 0; font-size: clamp(26px, 4vw, 42px); letter-spacing: 0; }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.grid { display: grid; gap: 16px; }
.dashboard-grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel, .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel { padding: 20px; }
.card { padding: 14px; box-shadow: none; }
.archived-item {
  opacity: .72;
  background: color-mix(in srgb, var(--panel-2) 55%, var(--panel));
}
.archived-item strong::after {
  content: " archived";
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.focus-panel .panel { border-color: color-mix(in srgb, var(--accent) 26%, var(--line)); }
.section-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.section-title h2 { margin: 0; font-size: 18px; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.kpi { display: grid; gap: 6px; }
.kpi span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.kpi strong { font-size: 28px; }
.kpi small { color: var(--muted); font-weight: 700; }
.task { display: grid; gap: 10px; border-left: 4px solid var(--accent); }
.task.goodline { border-left-color: var(--good); }
.task.warnline { border-left-color: var(--warn); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.stack { display: grid; gap: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; border-radius: 999px; padding: 4px 9px; background: var(--panel-2); color: var(--muted); font-size: 12px; font-weight: 800; }
.pill.good { background: #dff8ed; color: #087a52; }
.pill.warn { background: #fff0d7; color: #995b00; }
.pill.bad { background: #ffe3e6; color: #a91e2a; }
.swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid rgba(0,0,0,.08); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tbody tr { transition: background .16s ease; }
tbody tr:hover { background: rgba(15, 98, 254, .035); }
tr:last-child td { border-bottom: 0; }
.shift-line { border-left: 4px solid var(--job-color, var(--accent)); }
.clickable-row { cursor: pointer; transition: background .16s ease, transform .16s ease; }
.clickable-row:hover { background: #f7fbff; }
.org-panel { display: grid; gap: 16px; }
.org-logo-preview {
  width: 86px;
  height: 86px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(15,98,254,.12), rgba(0,166,166,.12));
  border: 1px solid var(--line);
}
.org-logo-preview .brand-mark,
.org-logo-preview .brand-logo { width: 58px; height: 58px; border-radius: 16px; font-size: 28px; }
.job-editor { display: grid; gap: 10px; }
.department-editor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel-2) 40%, var(--panel));
}
.department-toggle {
  background: transparent;
  border: 0;
  padding: 0;
}
.department-jobs { display: grid; gap: 8px; }
.job-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, .8fr);
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.check-row input { width: 18px; min-height: 18px; }
.check-row small { display: block; color: var(--muted); margin-top: 2px; }
.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
}
.toggle-row input { width: 18px; min-height: 18px; accent-color: var(--accent); }
.toggle-row small { display: block; color: var(--muted); margin-top: 3px; font-weight: 650; }
.view-options { display: grid; gap: 10px; }
.preview-panel { align-content: start; }
.preview-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--panel)), var(--panel));
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 520px) 1fr;
}
.public-page {
  min-height: 100vh;
  display: grid;
  align-content: start;
  gap: 28px;
  padding: 20px min(5vw, 72px) 56px;
}
.public-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
}
.public-nav .brand { margin-bottom: 0; }
.public-hero {
  min-height: min(680px, calc(100vh - 118px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: min(5vw, 64px);
  align-items: center;
}
.public-copy {
  display: grid;
  gap: 18px;
  max-width: 720px;
}
.public-copy h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
  line-height: .95;
  letter-spacing: 0;
}
.public-copy p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}
.public-product {
  display: grid;
  gap: 16px;
  padding: 22px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--panel)), var(--panel));
}
.public-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.public-metrics div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.public-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.public-metrics strong { font-size: 28px; }
.public-shift {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.public-shift small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}
.good-text { color: var(--good); }
.public-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.public-actions .panel {
  display: grid;
  gap: 12px;
  align-content: start;
}
.public-actions h2,
.public-actions p { margin: 0; }
.auth-form { padding: 8vh min(7vw, 72px); display: grid; align-content: center; gap: 18px; background: white; }
.auth-art {
  padding: 8vh min(6vw, 72px);
  display: grid;
  align-content: end;
  background:
    linear-gradient(160deg, rgba(20,184,166,.84), rgba(37,99,235,.9)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 900 900'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.18' stroke-width='2'%3E%3Cpath d='M80 140h740M80 260h740M80 380h740M80 500h740M80 620h740M80 740h740M170 80v740M310 80v740M450 80v740M590 80v740M730 80v740'/%3E%3C/g%3E%3C/svg%3E");
  color: white;
}
.auth-art h1 { font-size: clamp(42px, 7vw, 82px); margin: 0 0 18px; letter-spacing: 0; }
.auth-art p { font-size: 20px; max-width: 650px; line-height: 1.5; }
.auth-card { max-width: 440px; display: grid; gap: 12px; }
.clock-face { display: grid; gap: 16px; padding: 22px; border-radius: var(--radius); background: linear-gradient(145deg, #101828, color-mix(in srgb, var(--accent) 45%, #172554)); color: white; }
.clock-face .muted { color: rgba(255,255,255,.62); }
.clock-time { font-size: clamp(38px, 8vw, 74px); font-weight: 900; letter-spacing: 0; }
.summary-total { font-size: 22px; font-weight: 900; }
.timesheet-shell { display: grid; gap: 16px; }
.timesheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.timesheet-header h2 { margin: 8px 0 4px; font-size: clamp(24px, 3vw, 36px); }
.timesheet-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}
.segmented button { box-shadow: none; }
.timesheet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.period-list { display: grid; gap: 12px; }
.period-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.period-chip {
  display: grid;
  gap: 4px;
  text-align: left;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.period-chip span,
.period-chip small {
  color: var(--muted);
  font-weight: 750;
}
.period-chip.active {
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
}
.shift-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.shift-list-head {
  display: grid;
  grid-template-columns: 88px minmax(180px, 1.25fr) 96px 96px 82px 104px minmax(130px, .9fr) 104px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.shift-card {
  display: grid;
  grid-template-columns: 88px minmax(180px, 1.25fr) 96px 96px 82px 104px minmax(130px, .9fr) 104px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  border-left: 5px solid var(--job-color, var(--accent));
  background: var(--panel);
}
.shift-card:last-child {
  border-bottom: 0;
}
.shift-date {
  display: grid;
  place-items: center;
  min-height: 54px;
  border-radius: var(--radius);
  background: var(--panel-2);
  text-align: center;
}
.shift-main { display: grid; gap: 3px; min-width: 0; }
.shift-time-button {
  background: var(--panel-2);
  color: var(--ink);
  width: 100%;
}
.shift-comments { display: grid; gap: 8px; }
.schedule-shell { display: grid; gap: 16px; }
.schedule-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.schedule-toolbar h2 { margin: 6px 0 0; }
.schedule-board { overflow-x: auto; }
.schedule-grid {
  display: grid;
  grid-template-columns: 180px repeat(var(--schedule-cols, 8), minmax(170px, 1fr));
  min-width: 1180px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.schedule-head,
.schedule-person,
.schedule-cell {
  min-height: 108px;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 88%, var(--panel-2));
}
.schedule-head {
  min-height: auto;
  background: var(--panel-2);
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}
.schedule-person {
  display: grid;
  align-content: center;
  gap: 4px;
  background: var(--panel);
}
.schedule-person span { color: var(--muted); font-size: 12px; }
.schedule-cell,
.schedule-drop { display: grid; align-content: start; gap: 8px; }
.add-on-day {
  justify-self: start;
  min-height: 28px;
  padding: 4px 8px;
  font-size: 12px;
}
.open-drop {
  min-height: 120px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}
.schedule-block {
  display: grid;
  gap: 3px;
  padding: 9px;
  border-radius: 7px;
  border-left: 5px solid var(--job-color, var(--accent));
  background: color-mix(in srgb, var(--job-color, var(--accent)) 11%, var(--panel));
  box-shadow: 0 8px 22px rgba(22,34,51,.08);
}
.schedule-block span,
.schedule-block small { color: var(--muted); font-size: 12px; font-weight: 750; }
.bad-text { color: var(--bad) !important; }
.availability-chip {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 850;
  background: #dff8ed;
  color: #087a52;
}
.availability-chip.unavailable { background: #ffe3e6; color: #a91e2a; }
.employee-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.employee-day {
  min-height: 160px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.timesheet-grid-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.timesheet-grid-table {
  min-width: 1240px;
  border-collapse: collapse;
}
.timesheet-grid-table th,
.timesheet-grid-table td {
  border: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  padding: 9px 10px;
  vertical-align: middle;
}
.timesheet-grid-table thead th {
  background: var(--panel-2);
  color: var(--muted);
  text-align: center;
}
.timesheet-day-row {
  background: color-mix(in srgb, var(--job-color, var(--accent)) 4%, var(--panel));
}
.timesheet-day-row.employee-approved {
  background: color-mix(in srgb, var(--job-color, var(--accent)) 13%, var(--panel));
}
.timesheet-day-row.manager-approved {
  background: color-mix(in srgb, var(--job-color, var(--accent)) 27%, var(--panel));
}
.timesheet-day-row.potential-row {
  background: color-mix(in srgb, var(--warn) 11%, var(--panel));
  color: var(--muted);
}
.weekly-total td {
  background: var(--panel-2);
  font-weight: 900;
}
.timesheet-summary {
  position: static;
  top: 68px;
  display: grid;
  gap: 8px;
}
.summary-pay {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 950;
  letter-spacing: 0;
}
.summary-divider {
  height: 1px;
  background: var(--line);
  margin: 8px 0;
}
.summary-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
}
.summary-line .muted {
  grid-column: 1 / -1;
}
.empty-state {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: color-mix(in srgb, var(--panel-2) 42%, transparent);
}
.comment { padding: 10px; border-radius: 7px; background: var(--panel-2); }
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16,24,40,.42);
  z-index: 10;
}
.modal.hidden { display: none; }
.modal-box {
  width: min(720px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
  padding: 20px;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.modal-head h2 { margin: 0; }
.mobile-only { display: none; }
.startup-error {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--bg);
  color: var(--text);
}
.startup-error section {
  width: min(680px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.startup-error p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.startup-error h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.1;
}
.startup-error span {
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 14px; }
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-card { display: none; }
  .main { padding: 18px 14px 40px; }
  .cols-2, .cols-3, .form-grid, .auth, .public-hero, .public-actions { grid-template-columns: 1fr; }
  .public-page { padding: 16px 14px 40px; }
  .public-nav { align-items: flex-start; flex-direction: column; }
  .public-hero { min-height: auto; }
  .public-copy h1 { font-size: 46px; }
  .public-metrics { grid-template-columns: 1fr; }
  .org-strip { margin: -18px -14px 18px; }
  .timesheet-header { align-items: flex-start; flex-direction: column; }
  .timesheet-controls { justify-content: flex-start; width: 100%; }
  .timesheet-layout, .job-edit-row { grid-template-columns: 1fr; }
  .schedule-toolbar { align-items: flex-start; flex-direction: column; }
  .employee-calendar { grid-template-columns: 1fr; }
  .shift-list { border: 0; background: transparent; gap: 10px; overflow: visible; }
  .shift-list-head { display: none; }
  .shift-card {
    grid-template-columns: 1fr;
    border: 1px solid var(--line);
    border-left: 5px solid var(--job-color, var(--accent));
    border-radius: var(--radius);
  }
  .timesheet-summary { position: static; }
  .auth-art { min-height: 42vh; align-content: center; }
  .auth-form { padding: 28px 18px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .mobile-only { display: inline-flex; }
}
