:root {
  color-scheme: light;
  --page: #f4f7f4;
  --surface: #ffffff;
  --surface-soft: #f8faf8;
  --ink: #1d2c26;
  --muted: #68786f;
  --line: #e3eae4;
  --brand: #17634f;
  --brand-strong: #104e3e;
  --brand-soft: #e9f4ed;
  --lime: #d5efb7;
  --shadow: 0 20px 55px rgba(25, 54, 39, 0.08);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display-font: var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(ellipse at 75% 0%, rgba(216, 237, 222, 0.48), transparent 33rem),
    var(--page);
  color: var(--ink);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid #78b99a;
  outline-offset: 3px;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(218, 228, 219, 0.75);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: inherit;
  text-decoration: none;
}

.brand > img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 5px 16px rgba(31, 67, 49, 0.13);
}

.brand-copy { display: grid; line-height: 1.18; }
.brand-copy strong { font-family: var(--display-font); font-size: 15px; font-weight: 800; letter-spacing: -0.035em; }
.brand-copy > span { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 0.14em; }

.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav a { color: #66766e; font-size: 13px; font-weight: 600; text-decoration: none; transition: color 140ms ease; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 15px; }

.connection-pill, .app-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #53665b;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.app-mode-pill { color: var(--brand); }
.app-mode-pill[hidden] { display: none; }

.connection-dot, .update-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35a46d;
  box-shadow: 0 0 0 3px rgba(53, 164, 109, 0.12);
}

.connection-pill.is-offline .connection-dot { background: #d38631; box-shadow: 0 0 0 3px rgba(211, 134, 49, 0.13); }
.connection-pill.is-offline { color: #936029; }

.progressier-install-button.install-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--brand);
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 5px 12px rgba(23, 99, 79, 0.14);
  font: 700 12px/1 var(--font);
  letter-spacing: 0;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.progressier-install-button.install-button:hover { background: var(--brand-strong); box-shadow: 0 7px 16px rgba(23, 99, 79, 0.2); transform: translateY(-1px); }
.progressier-install-button.install-button .pwa-btn-inner { gap: 2px; }
.progressier-install-button.install-button .pwa-btn-icon { width: 16px; height: 16px; }
.progressier-install-button.install-button .pwa-btn-icon svg { width: 100%; height: 100%; }
.progressier-install-button.install-button .pwa-btn-label { padding: 0 0 0 7px; }

.page-shell { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 70px; }

.sample-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 36px;
  padding: 8px 13px 8px 9px;
  border: 1px solid #dfe9df;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #64756a;
  font-size: 11px;
}

.sample-banner strong { color: var(--brand-strong); font-weight: 700; }
.sample-mark { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 800; }

.welcome-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); align-items: center; gap: clamp(28px, 6vw, 78px); }
.welcome-copy { padding: 7px 0 12px; }
.eyebrow, .card-kicker { margin: 0; color: #7a8b80; font-size: 10px; font-weight: 800; letter-spacing: 0.13em; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow-line { width: 22px; height: 2px; border-radius: 2px; background: #79a58a; }

h1, h2, h3, p { margin-top: 0; }

.welcome-copy h1 {
  margin: 18px 0 15px;
  font-family: var(--display-font);
  font-size: clamp(37px, 5.5vw, 61px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.welcome-copy h1 span { color: var(--brand); }
.welcome-text { max-width: 470px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.welcome-note { display: flex; align-items: center; gap: 9px; margin-top: 24px; color: #587163; font-size: 12px; font-weight: 600; }
.note-check { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #e2f2e6; color: var(--brand); font-size: 12px; }

.shift-card {
  position: relative;
  overflow: hidden;
  padding: 25px 25px 22px;
  border: 1px solid rgba(225, 235, 226, 0.9);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.shift-card::after { position: absolute; top: -52px; right: -49px; width: 142px; height: 142px; border-radius: 50%; background: #f0f7ec; content: ''; }
.shift-card-top { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.shift-card h2 { margin: 5px 0 0; font-family: var(--display-font); font-size: 17px; font-weight: 700; letter-spacing: -0.04em; }
.shift-state { position: relative; z-index: 1; padding: 6px 9px; border-radius: 999px; background: #f2f4f2; color: #7a867e; font-size: 10px; font-weight: 700; white-space: nowrap; }
.shift-state.is-active { background: #e7f4eb; color: var(--brand); }
.shift-time { display: flex; align-items: baseline; gap: 11px; margin: 25px 0 3px; font-family: var(--display-font); font-size: clamp(33px, 4vw, 40px); font-weight: 700; letter-spacing: -0.065em; }
.shift-time > span { color: #a7b2aa; font-size: 23px; font-weight: 400; }
.shift-location { margin: 0 0 23px; color: var(--muted); font-size: 12px; }
.shift-location > span { color: var(--brand); font-size: 17px; vertical-align: -1px; }
.location-divider { padding: 0 4px; color: #a4afa7; }

.check-in-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  padding: 0 15px;
  border: 0;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background 150ms ease, transform 150ms ease;
}

.check-in-button:hover { background: var(--brand-strong); transform: translateY(-1px); }
.check-in-button > span { font-size: 18px; font-weight: 400; }
.shift-footnote { margin: 10px 0 0; color: #8b978f; font-size: 10px; text-align: center; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); gap: 18px; margin-top: 32px; }
.panel { padding: 23px 24px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: 0 8px 24px rgba(25, 54, 39, 0.035); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-heading h2 { margin: 5px 0 0; font-family: var(--display-font); font-size: 18px; font-weight: 700; letter-spacing: -0.045em; }
.count-badge { padding: 6px 9px; border-radius: 999px; background: #f2f6f2; color: #65766a; font-size: 10px; font-weight: 700; white-space: nowrap; }

.progress-track { height: 5px; margin: 17px 0 8px; overflow: hidden; border-radius: 99px; background: #edf1ed; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #328262, #8cc793); transition: width 220ms ease; }

.task-list { display: grid; gap: 0; margin: 5px 0 0; padding: 0; list-style: none; }
.task-list li + li { border-top: 1px solid #eef1ee; }
.task-row { position: relative; display: flex; align-items: center; gap: 13px; min-height: 64px; cursor: pointer; }
.task-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.task-row:focus-within .task-check { outline: 3px solid #78b99a; outline-offset: 3px; }
.task-check { display: grid; flex: none; width: 21px; height: 21px; place-items: center; border: 1px solid #ced8cf; border-radius: 7px; color: transparent; font-size: 13px; font-weight: 800; transition: background 130ms ease, border-color 130ms ease, color 130ms ease; }
.task-copy { display: grid; gap: 2px; min-width: 0; }
.task-copy strong { color: #35453b; font-size: 12px; font-weight: 700; transition: color 130ms ease; }
.task-copy > span { color: #849087; font-size: 10px; }
.task-row input:checked + .task-copy + .task-check { border-color: var(--brand); background: var(--brand); color: #fff; }
.task-row input:checked + .task-copy strong { color: #87948b; text-decoration: line-through; }
.panel-footnote { margin: 10px 0 0; color: #8a978e; font-size: 10px; }

.update-panel { position: relative; overflow: hidden; }
.update-panel::before { position: absolute; top: 0; right: 0; width: 120px; height: 120px; border-radius: 0 0 0 100%; background: #f3f8ef; content: ''; }
.update-panel .panel-heading, .update-meta, .update-panel h3, .update-copy, .update-author { position: relative; z-index: 1; }
.update-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: #e8f3e9; color: var(--brand); font-size: 16px; }
.update-meta { display: flex; align-items: center; gap: 7px; margin: 22px 0 8px; color: #738078; font-size: 10px; font-weight: 600; }
.update-meta > span:nth-child(2) { color: #b1bbb4; }
.update-dot { width: 6px; height: 6px; box-shadow: none; }
.update-panel h3 { margin: 0 0 7px; font-family: var(--display-font); font-size: 15px; font-weight: 700; letter-spacing: -0.035em; }
.update-copy { max-width: 360px; margin: 0; color: #697970; font-size: 11px; line-height: 1.7; }
.update-author { display: flex; align-items: center; gap: 9px; margin-top: 19px; padding-top: 15px; border-top: 1px solid #edf1ed; }
.author-avatar { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: #e8eee7; color: #46604f; font-size: 11px; font-weight: 700; }
.update-author > span:last-child { display: grid; line-height: 1.3; }
.update-author strong { font-size: 10px; font-weight: 700; }
.update-author > span:last-child > span { color: #8b978f; font-size: 9px; }

.install-callout { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 20px 23px; border-radius: 17px; background: #183e33; color: #fff; box-shadow: 0 14px 30px rgba(24, 62, 51, 0.12); }
.callout-icon { display: grid; flex: none; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: rgba(255, 255, 255, 0.1); color: #c9e8cc; font-size: 22px; }
.callout-copy { flex: 1; min-width: 0; }
.callout-copy .card-kicker { color: #b7d7c4; }
.callout-copy h2 { margin: 4px 0 1px; font-family: var(--display-font); font-size: 17px; font-weight: 700; letter-spacing: -0.04em; }
.callout-copy > p:last-child { margin: 0; color: #d0dfd5; font-size: 11px; }
.progressier-install-button.install-button-light { flex: none; border-color: #eaf5e9; background: #eaf5e9; color: #164b3b; box-shadow: none; }
.progressier-install-button.install-button-light:hover { border-color: #fff; background: #fff; }
.progressier-install-button.install-button-light .pwa-btn-icon svg { fill: #164b3b; }

.playground-link { margin: 24px 0 0; color: #758278; font-size: 11px; text-align: center; }
.playground-link a { color: var(--brand); font-weight: 700; text-underline-offset: 3px; }
.site-footer { border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.48); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1080px, calc(100% - 48px)); min-height: 66px; margin: 0 auto; color: #7d8980; font-size: 10px; }
.footer-inner span:last-child { color: #8e9a91; }

@media (max-width: 820px) {
  .header-inner { gap: 15px; }
  .main-nav { gap: 18px; }
  .connection-pill { display: none; }
  .welcome-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr); gap: 25px; }
  .content-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr); gap: 12px; }
  .panel { padding: 20px; }
}

@media (max-width: 650px) {
  .header-inner { width: min(100% - 32px, 520px); min-height: 72px; }
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .progressier-install-button.install-button { min-height: 39px; padding: 0 11px; font-size: 11px; }
  .page-shell { width: min(100% - 32px, 520px); padding-top: 24px; }
  .sample-banner { align-items: flex-start; margin-bottom: 25px; border-radius: 14px; font-size: 10px; }
  .sample-mark { margin-top: 1px; }
  .welcome-layout, .content-grid { grid-template-columns: 1fr; }
  .welcome-layout { gap: 25px; }
  .welcome-copy { padding: 0; }
  .welcome-copy h1 { margin-top: 14px; font-size: clamp(36px, 10.5vw, 52px); }
  .welcome-text { font-size: 13px; }
  .welcome-note { margin-top: 17px; font-size: 11px; }
  .shift-card { padding: 21px; }
  .shift-time { margin-top: 20px; }
  .content-grid { gap: 13px; margin-top: 15px; }
  .panel { padding: 20px; }
  .install-callout { align-items: flex-start; flex-wrap: wrap; gap: 12px; padding: 19px; }
  .callout-copy { flex-basis: calc(100% - 56px); }
  .install-button-light { margin-left: 54px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; width: min(100% - 32px, 520px); padding: 14px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
