:root {
  color-scheme: light;
  --bg: #f4f2ea;
  --surface: #fefdf8;
  --ink: #193b2e;
  --muted: #52675b;
  --line: #d8ddd1;
  --hero: #163e33;
  --accent: #2f634a;
  --lime: #d4e6b4;
  font-family: "Arial", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.45;
}
a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}
h1,
h2,
h3,
p {
  margin: 0 0 0.7em;
}
h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(1.15rem, 2.3vw, 1.48rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.07rem;
}
small,
.muted,
.empty {
  color: var(--muted);
}
.eyeline {
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.shell {
  width: min(100% - 40px, 1050px);
  margin-inline: auto;
}
#main {
  padding: 24px 0 110px;
  overflow-wrap: anywhere;
}
.mast {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.mast-inner,
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.mast-inner {
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.05em;
  text-decoration: none;
}
.brand-n {
  font-weight: 400;
}
.bell {
  margin-left: auto;
}
.mast a,
summary {
  font-weight: 600;
}
.menu {
  position: relative;
}
.menu summary {
  cursor: pointer;
}
.dropdown {
  position: absolute;
  right: 0;
  top: 2rem;
  z-index: 5;
  padding: 12px;
  min-width: 205px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px #193b2e23;
  background: var(--surface);
  border-radius: 12px;
}
.dropdown a,
.dropdown button {
  display: block;
  padding: 8px;
}
.page-head,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.page-head {
  margin: 10px 0 20px;
}
.page-head h1,
.section-head h2 {
  margin: 0;
}
.section-head {
  margin: 25px 0 10px;
}
.section-head > a {
  font-size: 0.88rem;
}
button,
.button,
input,
select,
textarea {
  font: inherit;
}
button,
.button,
.secondary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0.55em 0.95em;
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
}
.secondary,
.button.secondary,
button.secondary {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--line);
}
.text-button {
  background: transparent;
  border: 0;
  color: var(--accent);
  padding: 0;
}
.stack,
form p,
.fields {
  display: grid;
  gap: 0.6rem;
}
label {
  display: grid;
  gap: 4px;
  font-weight: 650;
  margin: 0.25rem 0;
}
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  padding: 0.58em 0.65em;
  border-radius: 6px;
  border: 1px solid #839587;
  background: #fff;
  color: var(--ink);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 40px;
}
textarea {
  resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
}
.helptext,
.helptext ul,
form ul {
  font-size: 0.87rem;
  color: var(--muted);
}
.errorlist {
  color: #903927 !important;
}
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}
.grid,
.dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin: 0 0 14px;
  min-width: 0;
}
.panel > :last-child {
  margin-bottom: 0;
}
.badge {
  display: inline-block;
  width: fit-content;
  color: #31513c;
  background: #e1ead8;
  border-radius: 5px;
  font-size: 0.77rem;
  font-weight: 650;
  padding: 0.16em 0.55em;
}
.badge.late {
  background: #f4dfcf;
  color: #813b24;
}
.list-row {
  padding: 12px 0;
  display: block;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row:first-child {
  padding-top: 0;
}
.list-row strong {
  display: block;
}
.list-row p {
  margin: 3px 0 0;
}
.list-row.item {
  display: grid;
  gap: 3px;
  text-decoration: none;
}
.empty {
  padding: 0.3em 0;
}
.hero {
  background: var(--hero);
  color: #fff;
  border-radius: 18px;
  padding: clamp(18px, 3vw, 32px);
}
.hero h2 {
  color: var(--lime);
  font-size: 1rem;
  font-weight: 600;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0;
}
.metrics a {
  display: grid;
  color: #fff;
  text-decoration: none;
  border-left: 1px solid #688172;
  padding: 0 16px;
}
.metrics a:first-child {
  border: 0;
  padding-left: 0;
}
.metrics strong {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 550;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.metrics small {
  color: #e0e9d9;
  margin-top: 5px;
}
.load {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid #627b6b;
  font-size: 0.85rem;
}
.load meter {
  width: min(24vw, 160px);
  height: 10px;
  accent-color: var(--lime);
}
.load b {
  margin-left: auto;
}
.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quick a {
  color: var(--ink);
  background: var(--surface);
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  text-decoration: none;
}
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 3;
}
.nav-inner {
  justify-content: space-evenly;
  gap: 3px;
}
.nav-inner a {
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 650;
  flex: 1;
}
.nav-inner a[aria-current="page"] {
  color: var(--hero);
  background: #e5eadb;
}
.nav-inner b {
  font-size: 1.15rem;
}
.calendar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 1.4rem;
}
.weekdays,
.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.weekdays {
  background: var(--hero);
  color: white;
}
.weekdays b,
.day {
  padding: 7px;
}
.day {
  min-height: 4.3rem;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.day.dim {
  opacity: 0.5;
}
.day.today {
  background: #e4ecd9;
}
.day a,
.day small {
  display: block;
  font-size: 0.76rem;
}
.login-wrap {
  max-width: 750px;
  margin: 8vh auto 0;
}
.login-intro {
  background: var(--hero);
  border-radius: 16px 16px 0 0;
  color: white;
  padding: 28px;
}
.login-intro .eyeline {
  color: var(--lime);
}
.login-wrap .panel {
  border-radius: 0 0 16px 16px;
}
.narrow {
  max-width: 650px;
  margin: auto;
}
.flash {
  background: #e0ebd6;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}
.skip {
  position: absolute;
  top: -80px;
  left: 4px;
}
.skip:focus {
  top: 4px;
  background: white;
  z-index: 20;
}
:focus-visible {
  outline: 3px solid #9b6e19;
  outline-offset: 3px;
}
@media (max-width: 680px) {
  .shell {
    width: calc(100% - 26px);
  }
  #main {
    padding-top: 12px;
  }
  .mast-inner {
    min-height: 52px;
    gap: 12px;
  }
  .mast .bell,
  .mast summary {
    font-size: 0.82rem;
  }
  .grid,
  .dashboard {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .panel {
    padding: 14px;
  }
  .metrics a {
    padding: 0 8px;
  }
  .metrics small {
    font-size: 0.73rem;
  }
  .section-head {
    margin: 18px 0 8px;
  }
  .nav-inner a {
    flex-direction: column;
    gap: 0;
    padding: 5px;
  }
  .day {
    min-height: 2.8rem;
    padding: 3px;
    font-size: 0.8rem;
  }
  .day a {
    font-size: 0;
    height: 6px;
    width: 6px;
    display: inline-block;
    border-radius: 99px;
    background: var(--accent);
    margin: 1px;
  }
  .day small {
    display: none;
  }
  .day b {
    display: block;
  }
  .login-intro {
    padding: 21px;
  }
  .weekdays b {
    font-size: 0.8rem;
  }
  .row > * {
    min-width: 0;
  }
}

.legal-links { display:flex; flex-wrap:wrap; gap:8px 17px; margin-top:-70px; padding:0 0 105px; font-size:.78rem; }
fieldset.stack {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 14px 14px;
}
fieldset.stack legend {
  font-weight: 700;
  padding-inline: 4px;
}
label.legal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  line-height: 1.35;
}
.legal-check input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
}

.review-item{scroll-margin-top:5rem;padding:1rem 0;border-top:1px solid #d7dccc}
.review-item h3,.review-comment p{margin:.4rem 0}.review-form{display:grid;gap:.4rem}
.review-form button{justify-self:start}.review-form textarea{width:100%;min-height:3rem}
.review-comment{margin:.7rem 0;padding:.7rem 1rem;background:#eef1e5;border-radius:.5rem;overflow-wrap:anywhere}
