:root {
  color-scheme: light;
  --ink: #182b28;
  --muted: #64736d;
  --line: #e3e8e2;
  --paper: #ffffff;
  --background: #f5f7f2;
  --green: #214e3c;
  --accent: #cfe58c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #d88b34; outline-offset: 3px; }

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1240px;
  min-height: 76px;
  margin: 0 auto;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -1.2px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: var(--green);
  color: #e3f2bd;
}
.brand-mark svg { width: 23px; height: 23px; }
.brand-dot, .heading-dot { color: #95bb58; }

.header-account { display: flex; align-items: center; gap: 22px; min-width: 0; }
.account-email { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.header-account form { flex-shrink: 0; }
.logout-button {
  border: 1px solid #dbe3da;
  border-radius: 8px;
  padding: 9px 13px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.logout-button:hover { background: #f3f6f1; }
.logout-button span { margin-left: 5px; color: #718579; }
.header-caption { color: #74857b; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.work-nav { border-top: 1px solid #eef1ed; }
.work-nav-inner { display: flex; flex-wrap: wrap; column-gap: 28px; max-width: 1240px; margin: 0 auto; padding: 0 36px; }
.work-nav a { padding: 13px 0 11px; border-bottom: 2px solid transparent; color: #64736d; font-size: 13px; font-weight: 700; text-decoration: none; }
.work-nav a:hover, .work-nav a[aria-current="page"] { border-color: #709b4a; color: var(--green); }

.page-shell { max-width: 1170px; margin: 0 auto; padding: 52px 36px 28px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.eyebrow, .section-kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  color: #64796a;
}
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow-line { display: inline-block; width: 24px; height: 2px; background: #82a854; }
h1, h2, h3, p { margin-top: 0; }
.page-heading h1, .login-intro h1 {
  margin: 14px 0 8px;
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.055em;
}
.page-description { margin: 0; color: var(--muted); font-size: 15px; }
.timezone-label { display: flex; align-items: center; gap: 7px; color: #60766a; font-size: 12px; font-weight: 600; white-space: nowrap; }
.timezone-label svg { width: 17px; height: 17px; }

.flash-message { margin-bottom: 18px; padding: 13px 16px; border: 1px solid #c5dfc7; border-radius: 9px; background: #edf8ec; color: #275b38; font-size: 14px; }
.flash-error { border-color: #eec8bc; background: #fff4f0; color: #923f2c; }

.clock-card {
  display: flex;
  justify-content: space-between;
  position: relative;
  min-height: 244px;
  overflow: hidden;
  border-radius: 16px;
  background: #e5eedc;
  border: 1px solid #dce8d4;
}
.clock-card-copy { position: relative; z-index: 1; width: min(100%, 670px); padding: 30px 34px 32px; }
.card-topline { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.clock-card .section-kicker { color: #496a55; }
.status-badge, .in-progress { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; }
.status-badge { border-radius: 100px; padding: 6px 10px; }
.status-active { background: #fff; color: #286646; }
.status-off { background: #f5f7ee; color: #66776a; }
.status-dot { display: inline-block; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: #83a36c; }
.status-active .status-dot, .in-progress .status-dot { background: #36a56d; }
.clock-card h2 { margin: 25px 0 8px; font-size: clamp(25px, 3vw, 32px); line-height: 1.15; letter-spacing: -.04em; }
.clock-description { margin: 0 0 23px; color: #556c5d; font-size: 14px; line-height: 1.5; }
.clock-description strong { color: #314d3c; }
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 47px;
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 0 21px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.primary-button:hover { background: #163d2f; }
.button-icon { font-size: 17px; line-height: 1; color: #d3e6ab; }
.clock-out-button { background: #fff; color: var(--green); }
.clock-out-button .button-icon { color: var(--green); }
.clock-out-button:hover { background: #f2f7ed; }
.clock-role-form { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.clock-role-form label { font-size: 13px; font-weight: 700; }
.clock-role-form select { min-height: 42px; max-width: 100%; padding: 8px; border: 1px solid #d4dfd5; border-radius: 7px; background: var(--paper); color: var(--ink); font: inherit; }
.role-portion { display: block; margin-top: 5px; font-size: 12px; line-height: 1.4; }
.lunch-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.lunch-form label { font-size: 12px; font-weight: 700; }
.lunch-form input, .lunch-form select, .lunch-form button {
  max-width: 100%; padding: 7px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--paper); color: var(--ink); font: inherit;
}
.lunch-form input[type="number"] { width: 75px; }
.shift-table .lunch-form { margin: 0; min-width: 130px; }

.clock-illustration { position: absolute; top: 0; right: 3%; width: 290px; height: 100%; color: #6a9562; }
.clock-ring { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(89, 137, 84, .19); border-radius: 50%; transform: translate(-50%, -50%); }
.clock-ring-outer { width: 310px; height: 310px; }
.clock-ring-inner { width: 232px; height: 232px; }
.illustration-face { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 145px; height: 145px; transform: translate(-50%, -50%); border: 1px solid rgba(89, 137, 84, .18); border-radius: 50%; background: rgba(255, 255, 255, .36); }
.illustration-face svg { width: 80px; height: 80px; }
.illustration-spark { position: absolute; right: 38px; top: 46px; color: #88a55c; font-size: 22px; }

.mileage-entry-section { margin-top: 40px; }
.mileage-entry-section h2 { margin: 0 0 6px; font-size: 22px; }
.mileage-entry-section > p { color: var(--muted); font-size: 13px; }
.mileage-entry-form { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.mileage-entry-form .form-field { max-width: 500px; }
.mileage-heading, .mileage-note { margin: 0; padding: 16px 21px; border-top: 1px solid var(--line); }
.mileage-note { color: var(--muted); font-size: 13px; }
.mileage-description { overflow-wrap: anywhere; }
.history-section { margin-top: 48px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.kicker-square { display: inline-block; width: 7px; height: 7px; margin-right: 5px; background: #91b961; }
.section-heading h2, .login-card h2 { margin: 11px 0 6px; font-size: 25px; letter-spacing: -.04em; }
.section-heading p:not(.section-kicker) { margin: 0; color: var(--muted); font-size: 13px; }
.history-tag { color: #718277; font-size: 10px; font-weight: 800; letter-spacing: .11em; white-space: nowrap; }
.pay-period + .pay-period { margin-top: 24px; }
.pay-period h3 { margin: 0 0 10px; font-size: 15px; }
.history-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.period-total { padding: 16px 21px; border-top: 1px solid var(--line); font-size: 13px; }
.period-total p { margin: 0; text-align: right; padding-right: 8rem; }
.period-total .period-total-note { margin-top: 5px; color: var(--muted); line-height: 1.5; }
.shift-table { width: 100%; border-collapse: collapse; text-align: left; }
.shift-table th { padding: 16px 21px; background: #fafbf9; color: #718078; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.th-note { color: #87958d; text-transform: none; }
.shift-table td { padding: 18px 21px; border-top: 1px solid #eef1ed; color: #40544a; font-size: 13px; }
.date-value { display: block; color: var(--ink); font-weight: 700; white-space: nowrap; }
.time-value { display: block; margin-top: 4px; color: #7a8a80; font-size: 12px; white-space: nowrap; }
.numeric-value, .pay-value { color: var(--ink) !important; font-weight: 700; font-variant-numeric: tabular-nums; }
.muted-value { color: #829087; font-weight: 400; }
.in-progress { border-radius: 100px; padding: 6px 9px; background: #edf7ee; color: #33714d; white-space: nowrap; }
.empty-state { padding: 42px 24px; text-align: center; }
.empty-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 13px; background: #f0f5eb; color: #739267; }
.empty-icon svg { width: 24px; height: 24px; }
.empty-state h3 { margin: 0 0 6px; font-size: 15px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.pay-disclaimer { display: flex; gap: 8px; margin: 15px 2px 0; color: #6c7d72; font-size: 12px; line-height: 1.5; }
.pay-disclaimer span { color: #76917b; }
.page-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 62px; padding-top: 20px; border-top: 1px solid #e0e7dc; color: #819087; font-size: 10px; font-weight: 700; letter-spacing: .07em; }
.footer-divider { padding: 0 5px; color: #b6c4b8; }

.login-shell { display: grid; grid-template-columns: 1fr 440px; align-items: center; gap: 70px; max-width: 1040px; min-height: calc(100vh - 76px); margin: 0 auto; padding: 60px 36px; }
.login-intro h1 { font-size: clamp(39px, 5vw, 57px); }
.login-intro > p:last-child { max-width: 350px; margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.login-card { padding: 36px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 16px 40px rgba(34, 60, 43, .04); }
.login-card h2 { font-size: 24px; }
.login-description { color: var(--muted); font-size: 13px; line-height: 1.5; }
.login-form { margin-top: 26px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.form-field input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #d4dfd5; border-radius: 7px; background: #fff; color: var(--ink); }
.form-field input:focus { border-color: #648e69; }
.form-errors, .field-errors { color: #923f2c; font-size: 13px; line-height: 1.5; }
.form-errors { margin-bottom: 18px; padding: 12px 14px; border: 1px solid #eec8bc; border-radius: 7px; background: #fff4f0; }
.errorlist { margin: 0; padding-left: 18px; }
.field-errors { margin-top: 6px; }
.field-help { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.login-submit { justify-content: space-between; width: 100%; margin-top: 4px; }
.login-help { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.5; }

@media (max-width: 760px) {
  .header-inner { min-height: 68px; padding: 0 20px; }
  .work-nav-inner { padding: 0 20px; }
  .page-shell { padding: 38px 20px 24px; }
  .clock-illustration { right: -105px; opacity: .6; }
  .clock-card-copy { padding: 25px; }
  .clock-description { max-width: 270px; }
  .history-section { margin-top: 38px; }
  .shift-table, .shift-table tbody, .shift-table tr, .shift-table td { display: block; }
  .shift-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .shift-table tr { padding: 12px 18px; }
  .shift-table tr + tr { border-top: 1px solid var(--line); }
  .shift-table td { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; padding: 8px 0; border: 0; text-align: right; }
  .shift-table td::before { content: attr(data-label); color: #718078; font-size: 11px; font-weight: 700; text-align: left; }
  .shift-table td[data-label="Clock in"], .shift-table td[data-label="Clock out"] { display: grid; grid-template-columns: 1fr auto; }
  .shift-table td[data-label="Clock in"]::before, .shift-table td[data-label="Clock out"]::before { grid-row: span 2; }
  .shift-table .time-value { margin-top: -10px; }
  .period-total p { padding-right: 0; text-align: left; }
  .login-shell { grid-template-columns: 1fr; gap: 32px; min-height: auto; padding: 48px 20px; }
  .login-intro h1 { font-size: 40px; }
  .login-card { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .header-account { gap: 10px; }
  .account-email { max-width: 145px; font-size: 11px; }
  .header-caption { font-size: 9px; }
  .page-heading { align-items: start; flex-direction: column; }
  .timezone-label { margin-top: 2px; }
  .clock-illustration { display: none; }
  .history-tag { display: none; }
  .page-footer { flex-direction: column; }
}
.announcement {
  margin-bottom: 20px;
  padding: 18px 22px;
  border: 1px solid #c5dba5;
  border-left: 4px solid #2f7d5a;
  border-radius: 8px;
  background: #eff7e4;
  color: #1c3525;
  overflow-wrap: anywhere;
}
.announcement p { margin: 0; }
.announcement .section-kicker { margin-bottom: 8px; }
