:root {
  color-scheme: light;
  --bg: #f5f6f1;
  --surface: #fff;
  --ink: #1d2923;
  --muted: #52665b;
  --line: #dce4da;
  --green: #245340;
  --forest: #173d30;
  --green-tint: #e7efe5;
  --terra: #bc6139;
  --error: #962e2a;
  --radius: 15px;
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  background: var(--bg);
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button, input, select, textarea { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a { color: var(--green); }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .53; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #b26543;
  outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.06em; font-weight: 750; }
h2 { font-size: 1.35rem; letter-spacing: -.035em; font-weight: 720; }
h3 { font-size: 1rem; font-weight: 720; }
svg { flex: none; vertical-align: middle; }
.skip { position: fixed; z-index: 10; top: -4rem; left: 1rem; padding: .65rem; background: white; }
.skip:focus { top: .5rem; }
.loading { padding: 2rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; color: var(--muted); }
.stack { display: grid; gap: 1rem; min-width: 0; }
.flow { display: grid; gap: 1.5rem; min-width: 0; }
.heading p { margin-top: .55rem; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.grow { min-width: 0; overflow-wrap: anywhere; }
.icon { width: 1.1rem; height: 1.1rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .48rem;
  min-height: 42px; padding: .56rem .88rem; border: 1px solid var(--line);
  border-radius: 9px; background: white; color: var(--ink);
  font-weight: 700; font-size: .875rem; text-decoration: none; line-height: 1.25;
}
.btn:hover:not(:disabled) { border-color: #93ae9c; background: #f4f8f4; }
.btn.primary { background: var(--green); border-color: var(--green); color: white; }
.btn.primary:hover:not(:disabled) { background: #173d30; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover:not(:disabled) { background: var(--green-tint); color: var(--green); }
.btn.danger { color: var(--error); }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-size: 1.15rem; font-weight: 800; letter-spacing: -.04em; }
.brand img { width: 40px; height: 40px; }
.brand small { display: block; font-size: .75rem; font-weight: 650; letter-spacing: .01em; opacity: .8; }
.auth { min-height: 100svh; display: grid; grid-template-columns: minmax(360px, 44%) minmax(0, 1fr); }
.auth-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; padding: clamp(1.5rem, 5vw, 5rem); isolation: isolate; overflow: hidden; background: var(--forest); color: #f6f7ee; }
.auth-panel::before, .auth-panel::after { content: ""; position: absolute; width: 38rem; height: 38rem; border: 1px solid #406a53; border-radius: 50%; bottom: -18rem; left: -8rem; z-index: -1; }
.auth-panel::after { width: 44rem; height: 44rem; bottom: -21rem; left: -11rem; box-shadow: 0 0 0 3rem #ffffff08, 0 0 0 6rem #ffffff06; }
.auth-hero { margin-block: auto; max-width: 31rem; }
.auth-hero h2 { font-size: clamp(2.45rem, 6.4vw, 6.3rem); letter-spacing: -.075em; line-height: .98; }
.auth-hero p { margin-top: 1.35rem; color: #d5e2d4; max-width: 25rem; }
.auth-panel .brand img { outline: 1px solid #678270; border-radius: 11px; }
.auth-foot { color: #d5e2d4; font-size: .875rem; }
.auth-main { display: grid; place-items: center; padding: clamp(1.25rem, 6vw, 4.5rem); }
.auth-card { width: min(100%, 30rem); }
.auth-card.wide { width: min(100%, 42rem); }
.switcher { display: flex; gap: .2rem; background: #e8eee6; border: 1px solid #dce4db; padding: .25rem; border-radius: 11px; }
.switcher button { flex: 1; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); padding: .5rem; min-height: 40px; font-size: .9rem; font-weight: 680; }
.switcher button[aria-pressed="true"] { border-color: var(--line); background: white; color: var(--green); box-shadow: 0 1px 3px #22382c13; }
label.field { display: grid; gap: .38rem; font-size: .9rem; font-weight: 700; min-width: 0; }
input:not([type="checkbox"]), select, textarea {
  width: 100%; min-width: 0; border: 1px solid #bccabd; background: #fff;
  border-radius: 8px; color: var(--ink); padding: .6rem .7rem; min-height: 44px; font-size: 1rem;
}
input[type="file"] { font-size: .875rem; }
textarea { min-height: 5rem; resize: vertical; }
input[type="checkbox"] { accent-color: var(--green); width: 1.1rem; height: 1.1rem; margin: 0; }
select {
  appearance: none; padding-right: 2rem;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2342594c' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") right .55rem center / 1rem no-repeat;
}
fieldset { padding: 0; border: 0; min-width: 0; margin: 0; }
legend { padding: 0; margin-bottom: .5rem; font-weight: 750; }
.field-help { font-size: .875rem; font-weight: 500; color: var(--muted); }
.error { color: var(--error); font-size: .875rem; font-weight: 650; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.shell { min-height: 100svh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { background: #edf2e9; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2.3rem; padding: 1.55rem 1rem; position: sticky; align-self: start; height: 100svh; }
.sidebar .brand { padding-inline: .45rem; }
.nav { display: grid; gap: .25rem; }
.nav button { min-height: 44px; display: flex; align-items: center; gap: .65rem; text-align: left; border: 1px solid transparent; background: transparent; color: var(--muted); padding: .6rem .7rem; border-radius: 9px; font-size: .875rem; font-weight: 680; }
.nav button:hover { background: #e2ebe0; }
.nav button[aria-current="page"] { color: var(--green); background: #dce9db; }
.nav .badge { margin-left: auto; }
.account { display: grid; gap: .65rem; margin-top: auto; border-top: 1px solid var(--line); padding: .8rem .15rem 0; }
.account .btn { justify-content: start; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #dce9db; color: var(--forest); font-weight: 800; flex: none; }
.account-name { font-size: .875rem; font-weight: 750; }
.main { width: min(100%, 1550px); min-width: 0; margin-inline: auto; padding: clamp(1.25rem, 3.35vw, 3.25rem); }
.page-head { align-items: end; margin-bottom: 1.75rem; }
.card { min-width: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 2vw, 1.4rem); }
.card.flush { padding: 0; overflow: hidden; }
.card-head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: .8rem; }
.tile-value { font-size: 1.9rem; font-weight: 780; letter-spacing: -.07em; line-height: 1.12; margin-top: .45rem; }
.banner { background: var(--forest); color: #f8f9f0; border-radius: var(--radius); padding: clamp(1.35rem, 3vw, 2.3rem); }
.banner p { margin-top: .5rem; color: #d5e2d4; }
.banner .btn { flex: none; }
.badge { display: inline-flex; align-items: center; color: #315445; background: var(--green-tint); padding: .23rem .55rem; border-radius: 6px; font-weight: 750; font-size: .8125rem; line-height: 1.25; white-space: nowrap; }
.badge.pending { color: #764118; background: #f9ead8; }
.badge.declined, .badge.withdrawn, .badge.archived { color: #555d57; background: #ecedea; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: .85rem 1.2rem; }
.list > li + li { border-top: 1px solid var(--line); }
.list > li p + p { margin-top: .2rem; }
.empty { border-radius: 10px; background: #f3f6f1; padding: 1.1rem; color: var(--muted); }
.empty.flush { margin: 1rem; }
.weekday-options { display: flex; flex-wrap: wrap; gap: .48rem; }
.weekday-options label { border: 1px solid var(--line); border-radius: 8px; background: white; min-height: 42px; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem; font-size: .875rem; }
.weekday-options label:has(:checked) { background: #e8efe5; border-color: #91aa98; color: var(--green); font-weight: 700; }
.range-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: .55rem; align-items: end; }
.summary { display: grid; gap: .3rem; overflow-wrap: anywhere; }
.grid-scroll { overflow-x: auto; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(137px, 1fr)); min-width: 960px; }
.day { min-height: 210px; padding: .65rem; background: #fbfcfa; }
.day + .day { border-left: 1px solid var(--line); }
.day-header { display: grid; gap: .15rem; margin-bottom: .8rem; }
.day-date { font-size: 1.13rem; font-weight: 800; }
.day.today .day-date { color: var(--green); text-decoration: underline; text-decoration-color: #b56242; text-underline-offset: .26rem; text-decoration-thickness: 2px; }
.shift { border: 1px solid #d8e5d8; border-left: 3px solid #679275; border-radius: 8px; background: #ecf3ea; color: #1e4636; display: grid; width: 100%; text-align: left; gap: .25rem; padding: .55rem; margin-bottom: .45rem; overflow-wrap: anywhere; }
.shift:hover { background: #dfeade; }
.shift.conflict { border-color: #e7d8c5; border-left-color: var(--terra); background: #fff2e5; color: #6d4022; }
.shift .small { font-size: .875rem; color: inherit; }
.shift strong { font-size: .9rem; }
.subtle { color: var(--muted); font-size: .875rem; }
dialog { width: min(calc(100% - 2rem), 36rem); max-height: calc(100svh - 2rem); padding: 0; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 22px 70px #13291d45; }
dialog::backdrop { background: #14251c70; }
.modal-head { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.modal-body { padding: 1.2rem; }
.toast { position: fixed; inset: auto 1rem 1rem auto; z-index: 3; border-radius: 10px; padding: .7rem 1rem; background: var(--forest); color: white; box-shadow: 0 6px 22px #192a2140; max-width: calc(100vw - 2rem); font-size: .9rem; }
.toast.is-error { background: #842b26; }
blockquote { margin: 0; padding: .55rem .72rem; border-left: 3px solid #a7bdac; background: #f2f5f0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1050px) { .shell { grid-template-columns: 205px minmax(0, 1fr); } }
@media (max-width: 760px) {
  .auth { grid-template-columns: 1fr; }
  .auth-panel { padding: 1rem 1.25rem; gap: 0; }
  .auth-hero, .auth-foot { display: none; }
  .auth-main { place-items: start center; padding-block: 2rem; }
  .shell { display: block; }
  .sidebar { height: auto; position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem .4rem; padding: .7rem .85rem; border-right: 0; border-bottom: 1px solid var(--line); align-items: center; }
  .sidebar .brand { padding-inline: 0; }
  .account { grid-column: 2; grid-row: 1; margin: 0; border: 0; padding: 0; }
  .account-info { display: none; }
  .nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .2rem; }
  .nav button { padding: .45rem .55rem; min-height: 40px; gap: .4rem; }
  .page-head { margin-bottom: 1.15rem; }
}
@media (max-width: 480px) {
  .spread.responsive { align-items: start; flex-direction: column; }
  .range-row { grid-template-columns: 1fr 1fr; }
  .range-row button { grid-column: 1/-1; justify-self: start; }
}
