:root {
  color-scheme: light;
  --bg: #f2f0e9;
  --paper: #fbfaf6;
  --ink: #17261f;
  --muted: #68736d;
  --line: #dcded7;
  --green: #1f5a43;
  --green-dark: #173e30;
  --lime: #c9e56d;
  --blue: #cbdcf3;
  --peach: #efc5a8;
  --danger: #b65345;
  --shadow: 0 24px 70px rgba(23, 38, 31, 0.09);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, textarea { font: inherit; }
button { color: inherit; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 250px;
  display: flex;
  flex-direction: column;
  padding: 30px 24px 24px;
  background: var(--ink);
  color: white;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: white;
  text-decoration: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 900;
  font-size: 22px;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; }
.brand small { margin-top: 2px; color: #9aaba2; font-size: 11px; }
.nav { display: grid; gap: 7px; margin-top: 58px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 13px;
  color: #aab7b1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: .2s ease;
}
.nav-link span { color: #687b72; font-size: 10px; letter-spacing: .08em; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.09); color: white; }
.nav-link.active span { color: var(--lime); }
.sidebar-footer { margin-top: auto; }
.mini-progress { padding: 17px; border: 1px solid rgba(255,255,255,.1); border-radius: 17px; }
.mini-progress > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.mini-progress span { color: #9aaba2; }
.progress-track { height: 5px; overflow: hidden; margin-top: 12px; border-radius: 99px; background: rgba(255,255,255,.12); }
.progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--lime); transition: width .4s ease; }
.text-button {
  width: 100%;
  margin-top: 15px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #84968d;
  cursor: pointer;
  font-size: 12px;
}
.main { min-height: 100vh; margin-left: 250px; }
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
}
.topbar-date span, .topbar-date strong { display: block; }
.topbar-date span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.topbar-date strong { margin-top: 4px; font-size: 14px; }
.employee-chip { display: flex; align-items: center; gap: 11px; }
.employee-chip strong, .employee-chip small { display: block; }
.employee-chip strong { font-size: 13px; }
.employee-chip small { max-width: 180px; margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--peach);
  font-size: 12px;
  font-weight: 900;
}
.menu-button { display: none; }
.view { display: none; padding: 56px 4vw 80px; animation: reveal .35s ease; }
.view.active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }
.hero {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  align-items: center;
  gap: 48px;
  padding: clamp(42px, 6vw, 76px);
  border-radius: 36px;
  background: var(--green);
  color: white;
}
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -130px;
  top: -150px;
  border: 70px solid rgba(255,255,255,.05);
  border-radius: 50%;
}
.hero-copy, .hero-card { position: relative; z-index: 1; }
.eyebrow {
  display: block;
  margin-bottom: 13px;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero .eyebrow { color: var(--lime); }
.hero h1, .section-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.04em;
}
.hero h1 { max-width: 680px; font-size: clamp(46px, 5.3vw, 78px); line-height: .98; }
.hero h1 em { color: var(--lime); font-weight: 400; }
.hero-copy > p { max-width: 610px; margin: 24px 0 0; color: #ccdad3; font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.primary-button, .secondary-button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}
.primary-button { background: var(--lime); color: var(--ink); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.secondary-button { border-color: var(--line); background: transparent; }
.hero .secondary-button { border-color: rgba(255,255,255,.25); color: white; }
.primary-button span { margin-left: 18px; }
.hero-card {
  justify-self: end;
  width: min(100%, 280px);
  padding: 28px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 28px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}
.hero-card-label { color: #ccdad3; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.progress-ring {
  --progress: 0deg;
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  margin: 24px auto 20px;
  border-radius: 50%;
  background: conic-gradient(var(--lime) var(--progress), rgba(255,255,255,.1) 0);
}
.progress-ring::before { content: ""; position: absolute; width: 132px; height: 132px; border-radius: 50%; background: #2b654f; }
.progress-ring > div { z-index: 1; text-align: center; }
.progress-ring strong, .progress-ring span { display: block; }
.progress-ring strong { font-family: Georgia, serif; font-size: 38px; font-weight: 400; }
.progress-ring span { margin-top: 3px; color: #b8cac1; font-size: 10px; text-transform: uppercase; }
.hero-card p { margin: 0; color: #c8d6cf; font-size: 12px; line-height: 1.6; text-align: center; }
.dashboard-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; margin-top: 18px; }
.panel { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.panel h2 { margin: 0; font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.icon-button {
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer;
}
.profile-data { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0 0; }
.profile-data div { min-width: 0; }
.profile-data dt { margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.profile-data dd { margin: 0; overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; }
.day-badge { padding: 7px 10px; border-radius: 99px; background: var(--blue); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.next-panel > p { min-height: 42px; margin: 24px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.inline-link { padding: 0; border: 0; background: transparent; color: var(--green); cursor: pointer; font-size: 12px; font-weight: 900; }
.inline-link span { margin-left: 6px; }
.stats-panel { background: var(--blue); border-color: transparent; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 25px; }
.stats div { padding-right: 18px; border-right: 1px solid rgba(23,38,31,.13); }
.stats div + div { padding-left: 18px; }
.stats div:last-child { border: 0; }
.stats strong, .stats span { display: block; }
.stats strong { font-family: Georgia, serif; font-size: 34px; font-weight: 400; }
.stats span { margin-top: 5px; color: #51645b; font-size: 10px; line-height: 1.4; text-transform: uppercase; }
.note-panel { background: var(--peach); border-color: transparent; }
.note-panel blockquote { max-width: 560px; margin: 20px 0 22px; font-family: Georgia, serif; font-size: 24px; line-height: 1.25; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 38px; }
.section-heading h1 { font-size: clamp(42px, 5vw, 70px); }
.section-heading p { max-width: 650px; margin: 16px 0 0; color: var(--muted); line-height: 1.65; }
.route-summary { min-width: 150px; padding: 20px; border-radius: 20px; background: var(--green); color: white; text-align: center; }
.route-summary strong, .route-summary span { display: block; }
.route-summary strong { font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.route-summary span { margin-top: 4px; color: #bcd0c6; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.day-tabs { display: flex; gap: 8px; margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.day-tabs button { flex: 0 0 auto; padding: 10px 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); cursor: pointer; font-size: 11px; font-weight: 800; }
.day-tabs button.active { border-color: var(--green); background: var(--green); color: white; }
.route-list { display: grid; gap: 15px; }
.route-day { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); }
.route-day-header { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 20px; padding: 21px 24px; border-bottom: 1px solid var(--line); }
.route-day-number { color: var(--green); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.route-day h2 { margin: 0; font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.route-day-count { color: var(--muted); font-size: 11px; }
.task-list { display: grid; }
.task-item { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid #e9eae5; cursor: pointer; }
.task-item:last-child { border: 0; }
.task-item:hover { background: #f7f6f1; }
.task-item input, .check-item input { position: absolute; opacity: 0; pointer-events: none; }
.fake-check { width: 23px; height: 23px; display: grid; place-items: center; border: 1.5px solid #b9c0ba; border-radius: 7px; transition: .2s ease; }
.task-item input:checked + .fake-check, .check-item input:checked + .fake-check { border-color: var(--green); background: var(--green); color: white; }
.task-item input:checked + .fake-check::after, .check-item input:checked + .fake-check::after { content: "✓"; font-size: 13px; font-weight: 900; }
.task-item input:checked ~ span:last-child { color: #98a09b; text-decoration: line-through; }
.task-item > span:last-child { font-size: 13px; line-height: 1.5; }
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.person-card { min-height: 220px; display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); }
.person-icon, .tool-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--blue); font-family: Georgia, serif; font-size: 20px; }
.person-card h2, .tool-card h2 { margin: 22px 0 7px; font-family: Georgia, serif; font-size: 23px; font-weight: 400; }
.person-card p, .tool-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.person-contact { margin-top: auto; padding-top: 20px; color: var(--green); font-size: 12px; font-weight: 800; }
.person-card button { width: fit-content; margin-top: 10px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; text-decoration: underline; }
.tools-layout { display: grid; grid-template-columns: 1.5fr .7fr; gap: 18px; align-items: start; }
.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.tool-card { min-height: 190px; padding: 24px; border: 1px solid var(--line); border-radius: 23px; background: var(--paper); }
.tool-card:nth-child(3n+2) .tool-icon { background: var(--peach); }
.tool-card:nth-child(3n+3) .tool-icon { background: var(--lime); }
.rules-card { padding: 30px; border-radius: 27px; background: var(--green); color: white; }
.eyebrow.light { color: var(--lime); }
.rules-card h2 { margin: 0; font-family: Georgia, serif; font-size: 32px; font-weight: 400; }
.rules-card ol { display: grid; gap: 0; margin: 25px 0 0; padding: 0; list-style: none; }
.rules-card li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.13); color: #d2ded8; font-size: 12px; line-height: 1.55; }
.rules-card li span { color: var(--lime); font-size: 10px; font-weight: 900; }
.culture-table { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); }
.culture-head, .culture-row { display: grid; grid-template-columns: 1fr 1fr; }
.culture-head > div { padding: 21px 25px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.culture-head > div:first-child { background: var(--green); color: white; }
.culture-head > div:last-child { background: #e5cbc2; color: #713f35; }
.culture-row > div { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 20px 25px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.culture-row > div:first-child { border-right: 1px solid var(--line); }
.culture-row .good { color: var(--green); font-weight: 900; }
.culture-row .bad { color: var(--danger); font-weight: 900; }
.checklist-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; align-items: start; }
.checklist-card, .questions-card { padding: 28px; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); }
.checklist-progress { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 28px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.checklist-progress strong, .checklist-progress span { display: block; }
.checklist-progress strong { font-family: Georgia, serif; font-size: 40px; font-weight: 400; }
.checklist-progress span { color: var(--muted); font-size: 10px; text-transform: uppercase; line-height: 1.4; }
.progress-track.large { height: 9px; margin: 0; background: #e6e7e1; }
.progress-track.large i { background: var(--green); }
.check-item { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px; padding: 17px 2px; border-bottom: 1px solid #e9eae5; cursor: pointer; }
.check-item:last-child { border: 0; }
.check-item > span:last-child { font-size: 13px; line-height: 1.5; }
.check-item input:checked ~ span:last-child { color: #99a09c; text-decoration: line-through; }
.questions-card { position: sticky; top: 20px; background: var(--blue); border-color: transparent; }
.questions-card h2 { margin: 0; font-family: Georgia, serif; font-size: 30px; font-weight: 400; }
.questions-card p { color: #53665d; font-size: 12px; line-height: 1.6; }
.questions-card textarea { width: 100%; min-height: 220px; margin-top: 12px; padding: 17px; resize: vertical; border: 1px solid rgba(23,38,31,.12); border-radius: 16px; outline: none; background: rgba(255,255,255,.62); color: var(--ink); line-height: 1.55; }
.questions-card textarea:focus { border-color: var(--green); }
.questions-card small { display: block; margin-top: 10px; color: #667970; font-size: 10px; }
.modal { width: min(520px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 26px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(13,25,19,.6); backdrop-filter: blur(3px); }
.modal form { display: grid; gap: 16px; padding: 30px; }
.modal-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 4px; }
.modal-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 30px; font-weight: 400; }
.close-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font-size: 22px; }
.modal label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 800; }
.modal input { height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: white; color: var(--ink); }
.modal input:focus { border-color: var(--green); }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 6px; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 99px; background: var(--ink); color: white; opacity: 0; pointer-events: none; font-size: 12px; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .sidebar { width: 220px; }
  .main { margin-left: 220px; }
  .dashboard-grid, .tools-layout { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .rules-card { max-width: none; }
}
@media (max-width: 760px) {
  .sidebar { width: min(290px, 86vw); transform: translateX(-105%); transition: transform .25s ease; box-shadow: var(--shadow); }
  body.menu-open .sidebar { transform: translateX(0); }
  .main { margin-left: 0; }
  .topbar { height: 72px; padding: 0 20px; }
  .menu-button { width: 38px; height: 38px; display: grid; place-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
  .menu-button span { width: 16px; height: 1.5px; background: var(--ink); }
  .topbar-date { display: none; }
  .view { padding: 30px 18px 60px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 34px 25px; border-radius: 26px; }
  .hero h1 { font-size: clamp(42px, 14vw, 62px); }
  .hero-card { justify-self: stretch; width: 100%; }
  .dashboard-grid, .checklist-layout { grid-template-columns: 1fr; }
  .profile-data, .stats { grid-template-columns: 1fr; }
  .profile-data { gap: 16px; }
  .stats { gap: 15px; }
  .stats div, .stats div + div { padding: 0 0 15px; border-right: 0; border-bottom: 1px solid rgba(23,38,31,.13); }
  .stats div:last-child { padding-bottom: 0; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading h1 { font-size: 46px; }
  .section-heading .secondary-button, .route-summary { margin-top: 22px; }
  .route-summary { width: 150px; }
  .route-day-header { grid-template-columns: 1fr auto; }
  .route-day-number { grid-column: 1 / -1; }
  .people-grid, .tools-grid { grid-template-columns: 1fr; }
  .culture-table { border: 0; background: transparent; }
  .culture-head { display: none; }
  .culture-row { display: grid; gap: 8px; margin-bottom: 13px; }
  .culture-row > div, .culture-row > div:first-child { border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
  .culture-row > div:last-child { background: #f4e5df; }
  .checklist-progress { grid-template-columns: 1fr; }
  .questions-card { position: static; }
}
