* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --navy: #10283f;
  --ink: #142d44;
  --muted: #52677b;
  --line: #e0e8ef;
  --teal: #006b60;
  --mint: #e2f5f0;
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
  background: #f2f6fa;
  color: var(--ink);
}
body { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid #169b8a; outline-offset: 3px; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.top { background: var(--navy); color: #fff; padding-top: env(safe-area-inset-top); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 80px; }
.brand, .profile { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand { font-size: 1.15rem; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.profile { font-size: .875rem; }
.profile span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #28455c; color: #c3f7ed; font-weight: 700; }
nav { display: flex; gap: 5px; }
nav a { text-decoration: none; color: #d6e4ef; font-weight: 650; border-radius: 9px; padding: 10px 15px; }
nav a:hover, nav a[aria-current] { color: #c5fcf1; background: #24445a; }
main { padding: 32px 0 max(48px, env(safe-area-inset-bottom)); }
.intro { margin: 6px 0 25px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; letter-spacing: -.045em; margin: 5px 0 9px; }
h2 { font-size: 1.13rem; line-height: 1.25; letter-spacing: -.015em; }
h3 { font-size: 1rem; }
.muted, .intro p { color: var(--muted); }
.intro .date-label { color: var(--teal); font-weight: 750; font-size: .78rem; text-transform: uppercase; letter-spacing: .105em; }
.dashboard, .two-cols { display: grid; gap: 20px; align-items: start; }
.dashboard { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack { display: grid; gap: 16px; }
.card { background: white; border: 1px solid var(--line); border-radius: 19px; padding: 21px 23px; box-shadow: 0 3px 12px #10283f08; }
.card-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.card-heading p { font-size: .86rem; }
.tile { display: grid; place-items: center; flex: 0 0 38px; height: 38px; background: var(--mint); color: var(--teal); font-size: 1.3rem; font-weight: 750; border-radius: 11px; }
.shift { background: linear-gradient(110deg,#fff 48%,#ebf9f5); }
.shift-time { font-variant-numeric: tabular-nums; font-weight: 780; font-size: clamp(1.9rem, 5vw, 2.65rem); letter-spacing: -.045em; line-height: 1.15; margin-bottom: 5px; }
.empty-shift { font-size: clamp(1.45rem, 4vw, 2.1rem); }
.punches, .punch-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.punches { margin: 0 0 12px; }
.punches div { background: #f4f7fa; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.punches span { display: block; color: var(--muted); font-size: .84rem; }
.punches strong { font-size: 1.55rem; font-variant-numeric: tabular-nums; }
button, .button { min-height: 44px; border-radius: 10px; border: 1px solid transparent; background: var(--teal); color: white; font: inherit; font-weight: 700; padding: 9px 14px; cursor: pointer; text-decoration: none; display: inline-grid; place-items: center; }
button:hover, .button:hover { filter: brightness(.94); }
.secondary { background: #e5f5f1; color: var(--teal); border-color: #b7e1d9; }
button:disabled { cursor: default; color: #546879; background: #e9eef3; border-color: #e0e8ef; filter: none; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 12px 0 0; gap: 10px; }
.metrics div + div { border-left: 1px solid var(--line); padding-left: 10px; }
.metrics dt, .rows dt { color: var(--muted); font-size: .86rem; }
dd { margin: 0; font-weight: 750; }
.metrics dd { font-size: 1.3rem; margin-top: 3px; }
.positive { color: #127345; }
.week-card { background: #17354d; color: #fff; border-color: #17354d; }
.week-card .tile { background: #285469; color: #acf5e6; }
.week-card .action-link { color: #a9efdf; }
.week-value { margin: 6px 0 10px; color: #d2e1e9; }
.week-value strong { font-size: 1.9rem; color: white; letter-spacing: -.03em; }
progress { display: block; appearance: none; width: 100%; height: 8px; border: none; border-radius: 20px; overflow: hidden; background: #32526a; color: #57d9bc; }
progress::-webkit-progress-bar { background: #32526a; }
progress::-webkit-progress-value { background: #57d9bc; border-radius: 20px; }
progress::-moz-progress-bar { background: #57d9bc; border-radius: 20px; }
.action-link { display: inline-block; margin-top: 12px; color: var(--teal); font-weight: 750; text-decoration: none; }
.action-link:hover { text-decoration: underline; }
.action-link span { margin-left: 5px; }
.upcoming { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.upcoming span { text-transform: capitalize; color: var(--muted); }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--mint); color: var(--teal); text-decoration: none; font-size: 1.65rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); text-align: center; gap: 4px; }
.calendar-grid b { color: var(--muted); font-size: .76rem; padding: 5px 0; }
.calendar-grid a { display: flex; position: relative; align-items: center; justify-content: center; min-height: 51px; border-radius: 8px; background: #f2f6fa; text-decoration: none; font-weight: 650; padding-bottom: 7px; }
.calendar-grid .outside { color: #647889; background: #f9fafb; }
.calendar-grid a:hover, .calendar-grid [aria-current] { background: var(--mint); color: var(--teal); }
.calendar-grid [aria-current] { box-shadow: inset 0 0 0 2px var(--teal); }
.calendar-grid small { position: absolute; bottom: 2px; color: var(--teal); font-size: clamp(.49rem, 1.3vw, .7rem); }
.calendar-grid .dot { font-size: .53rem; }
.rows { margin: 9px 0 0; }
.rows div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rows dd { text-align: right; white-space: nowrap; }
.toolbar, .inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toolbar { justify-content: space-between; margin-bottom: 15px; }
.inline label { font-size: .88rem; color: var(--muted); }
input:not([type="checkbox"]) { min-width: 0; max-width: 100%; min-height: 44px; border: 1px solid #b8c8d5; border-radius: 9px; padding: 7px 10px; background: white; color: var(--ink); font: inherit; }
.fields { display: grid; gap: 11px; margin-top: 12px; }
.fields p { display: grid; gap: 4px; }
.fields p:has(input[type="checkbox"]) { display: flex; align-items: center; }
.fields label { font-weight: 650; }
.fields .helptext, .fields ul { color: var(--muted); font-size: .87rem; }
.fields ul { margin: 0; }
.fields .errorlist { color: #9d2835; }
.import-day { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: 10px; }
.import-day legend { font-weight: 750; }
.import-day select { min-height: 44px; border: 1px solid #b8c8d5; border-radius: 9px; background: white; color: var(--ink); font: inherit; }
.notice { background: var(--mint); color: var(--teal); border-radius: 9px; padding: 10px 13px; margin-bottom: 13px; }
.notice.error { background: #fce9eb; color: #8d2332; }
.results .notice { margin: 10px 0 0; }
.text-button { background: transparent; border: none; color: var(--teal); padding-left: 0; }
.account { padding: 13px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.account:last-child { border-bottom: none; padding-bottom: 0; }
.account .inline { margin-top: 7px; }
.narrow { max-width: 490px; margin-inline: auto; }
.login { margin-top: min(8vh, 75px); }
@media (max-width: 720px) {
  .shell { width: calc(100% - 28px); }
  .top-inner { flex-wrap: wrap; gap: 7px; padding-block: 10px 7px; min-height: auto; }
  nav { order: 3; width: 100%; justify-content: space-between; }
  nav a { flex: 1; text-align: center; padding: 9px 4px; font-size: .89rem; min-height: 44px; }
  main { padding-top: 21px; }
  .dashboard, .two-cols { grid-template-columns: minmax(0,1fr); gap: 15px; }
  .card { padding: 16px; border-radius: 15px; }
  .punch-actions button { padding-inline: 5px; font-size: .85rem; }
}

