@font-face {
  font-family: Onest;
  src: url("fonts/onest-400-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Onest;
  src: url("fonts/onest-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+FEFF,U+FFFD;
}
@font-face {
  font-family: Onest;
  src: url("fonts/onest-700-cyrillic.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Onest;
  src: url("fonts/onest-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+FEFF,U+FFFD;
}
@font-face {
  font-family: Prata;
  src: url("fonts/prata-400-cyrillic.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Prata;
  src: url("fonts/prata-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+FEFF,U+FFFD;
}
:root {
  color-scheme: light;
  --paper: #f9f8f3;
  --surface: #fffefa;
  --sidebar: #f2f1e9;
  --ink: #292e2b;
  --muted: #59645d;
  --rule: #dddfd4;
  --edge: #87958a;
  --green: #214e3c;
  --green-deep: #173d30;
  --tint: #e4ecdf;
  --mint: #d7edbc;
  --red: #943a32;
  --radius: 16px;
  --gutter: clamp(24px, 3.8vw, 64px);
  --display: Prata, Georgia, serif;
  font-family: Onest, "Segoe UI", Arial, sans-serif;
  font-size: 100%;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 10px 16px; border-radius: 6px; background: white; transform: translateY(calc(-100% - 12px)); }
.skip:focus { transform: none; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .2em; }
:where(a,button,input,textarea,select,summary):focus-visible {
  outline: 3px solid #347250;
  outline-offset: 3px;
}
:where(.feature, .toast) :focus-visible { outline-color: #e2f6d1; }
svg { flex-shrink: 0; width: 1.25em; height: 1.25em; }
h1,h2,h3,p,ul,ol { margin: 0; }
h1,h2,h3,p,li,button,a { overflow-wrap: anywhere; }
.shell { display: grid; grid-template-columns: clamp(192px, 16.8vw, 252px) minmax(0,1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; padding: 38px 18px 26px;
  overflow: auto; background: var(--sidebar); border-right: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; gap: .56rem; width: fit-content; margin: 0 0 48px 10px; font-size: 1.53rem; line-height: 1; letter-spacing: -.06em; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; color: var(--green); flex: 0 0 auto; }
.brand-mark svg { width: 100%; height: 100%; }
.sidebar nav { display: grid; gap: 5px; }
.navlink { min-width: 0; width: 100%; min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 400; font-size: .96rem; line-height: 1.35; text-decoration: none; text-align: left; }
.navlink svg { opacity: .8; }
.navlink[aria-current="page"] { color: var(--green-deep); background: #dfe8d9; font-weight: 700; }
.navlink[aria-current="page"] svg { opacity: 1; }
.sidebar-foot { margin-top: auto; padding: 22px 10px 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.workspace { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; padding: 12px var(--gutter); border-bottom: 1px solid var(--rule); font-size: .87rem; color: var(--muted); }
main#content { width: min(100%, 1490px); margin-inline: auto; padding: clamp(30px,4.3vw,68px) var(--gutter) 64px; }
.page-title { margin: 0 0 clamp(24px,2.4vw,36px); }
.eyebrow { font-size: .77rem; font-weight: 700; line-height: 1.45; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
h1 { margin-block: .2em .17em; font: 400 clamp(2.4rem,4.6vw,4.2rem)/1.13 var(--display); letter-spacing: -.064em; text-wrap: balance; }
h2,.card-title { font-size: clamp(1.2rem,1.5vw,1.5rem); font-weight: 700; line-height: 1.25; letter-spacing: -.035em; }
h3 { font-size: 1.02rem; line-height: 1.35; }
.lead { max-width: 66ch; color: var(--muted); font-size: 1.03rem; line-height: 1.55; }
.spread { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px,1fr); align-items: start; gap: clamp(16px,1.8vw,28px); }
.spread > *, .row > *, .stack > *, .rail > *, .page-title > * { min-width: 0; }
.rail,.stack { display: grid; align-content: start; gap: 18px; }
.panel,.feature { border-radius: var(--radius); padding: clamp(21px,2.35vw,38px); }
.panel { background: var(--surface); border: 1px solid var(--rule); }
.panel > * + *, .feature > * + * { margin-top: 16px; }
.panel.stack > * + *, .feature.stack > * + * { margin-top: 0; }
.panel > .eyebrow + *, .feature > .eyebrow + * { margin-top: 8px; }
.feature { background: var(--green-deep); color: #fffefa; border: 1px solid var(--green-deep); }
.feature h2,.feature .card-title { font: 400 clamp(1.75rem,3vw,3.05rem)/1.17 var(--display); letter-spacing: -.048em; text-wrap: balance; }
.feature .eyebrow,.feature .lead,.feature .note,.feature small { color: #d1e4d1; }
.feature .actions { margin-top: 24px; }
.feature a:not(.button) { color: var(--mint); }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.button, .icon-button, .calendar-head button, dialog button[type="submit"] {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  gap: .45em; padding: .61em 1em; border: 1px solid var(--edge);
  border-radius: 8px; background: transparent; color: var(--ink);
  font: inherit; font-size: .93rem; font-weight: 700; line-height: 1.35; text-align: center; text-decoration: none;
}
.button.primary, dialog button[type="submit"].primary { color: #fffefa; background: var(--green); border-color: var(--green); }
.button.light, .feature .button.primary { color: var(--green-deep); background: var(--mint); border-color: var(--mint); }
.button.subtle { border-color: var(--rule); color: var(--green); background: transparent; }
.feature .button.subtle { color: #fffefa; border-color: #8ca896; }
.button:disabled, .icon-button:disabled { opacity: .55; }
.icon-button, .calendar-head button:has(> svg:only-child) { width: 44px; padding-inline: 0; }
.text-link { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; padding: .45em 0; background: transparent; border: 0; color: var(--green); font: inherit; font-size: .92rem; font-weight: 700; text-decoration: underline; text-underline-offset: .22em; }
.field { display: grid; gap: 7px; color: var(--ink); font-size: 1rem; }
.field > label,.field > span:first-child,.field > strong:first-child { font-size: .93rem; font-weight: 700; }
.field small,.note, small { color: var(--muted); line-height: 1.5; }
.note { font-size: .93rem; }
.error,[role="alert"]:not(:empty) { color: var(--red); }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), textarea, select {
  min-width: 0; width: 100%; min-height: 46px; padding: .65em .8em;
  background: var(--surface); color: var(--ink); border: 1px solid var(--edge); border-radius: 8px; font-size: 1rem; line-height: 1.45;
}
textarea { display: block; min-height: 6rem; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 1.18em; height: 1.18em; margin: 0; accent-color: var(--green); flex-shrink: 0; vertical-align: middle; }
input::placeholder, textarea::placeholder { color: #687169; opacity: 1; }
[aria-invalid="true"] { border-color: var(--red) !important; }
.control-list,.step-list { list-style: none; padding: 0; margin-inline: 0; }
.control-list > *,.step-list > li { padding-block: 13px; border-bottom: 1px solid var(--rule); }
.control-list > :last-child,.step-list > li:last-child { padding-bottom: 0; border-bottom: 0; }
.step-list { counter-reset: step; }
.step-list > li { counter-increment: step; position: relative; padding-inline-start: 39px; }
.step-list > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 13px; font: 400 1.12rem/1.35 var(--display); color: var(--green); }
.step-list li p { margin-top: 4px; color: var(--muted); }
.step-list li > span { display: block; margin-top: 3px; color: var(--muted); }
.control-list label { display: flex; align-items: center; gap: .75em; min-height: 44px; cursor: pointer; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,110px),1fr)); gap: 16px; }
.metric { min-width: 0; color: var(--muted); }
.metric strong { display: block; font-size: clamp(1.55rem,2.5vw,2.4rem); line-height: 1.1; color: var(--ink); }
.feature .metric, .feature .metric strong { color: inherit; }
.empty { color: var(--muted); }
.calendar-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; text-align: center; }
.calendar-grid > :not(.cal-day) { align-self: center; color: var(--muted); font-size: .79rem; }
.cal-day { display: grid; place-content: center; position: relative; padding: 0; min-width: 0; min-height: 42px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink); font-size: .92rem; line-height: 1; text-align: center; }
.cal-day.today { color: var(--green); font-weight: 700; border-color: var(--green); }
.cal-day.planned { background: #eaf0e5; }
.cal-day.done { background: var(--green); color: #fff; font-weight: 700; }
.cal-day.selected { outline: 2px solid var(--green); outline-offset: 1px; }
.cal-day:focus-visible { outline-width: 3px; z-index: 1; }
.cal-day:disabled:not(.today), .cal-day.outside { color: #70776f; }
.month-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.month-strip button { min-height: 40px; padding: .45em .7em; background: var(--surface); border: 1px solid var(--rule); border-radius: 7px; color: var(--muted); font: inherit; font-size: .87rem; }
.month-strip [aria-current],.month-strip [aria-pressed="true"],.month-strip .selected { color: var(--green); background: var(--tint); font-weight: 700; border-color: var(--green); }
dialog { max-width: min(33rem,calc(100vw - 28px)); width: 100%; max-height: calc(100dvh - 32px); padding: clamp(21px,3vw,36px); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); color: var(--ink); overflow: auto; }
dialog::backdrop { background: rgb(17 33 23 / 48%); }
dialog h2 { font-size: 1.55rem; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.dialog-head h2 { align-self: center; }
.dismiss { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid var(--rule); border-radius: 8px; color: var(--ink); }
dialog .error:not([hidden]) { margin-top: 16px; }
dialog .actions { margin-top: 20px; }
.toast { position: fixed; right: 24px; bottom: 20px; z-index: 10; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 8px; background: var(--green-deep); color: #fff; font-size: .94rem; box-shadow: 0 6px 20px rgb(20 49 32 / 14%); }
.toast:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (hover: hover) {
  .navlink:hover { background: #e6e9de; color: var(--green); }
  .button:hover:not(:disabled), .calendar-head button:hover:not(:disabled), .icon-button:hover:not(:disabled) { background: var(--tint); }
  .button.primary:hover:not(:disabled) { background: var(--green-deep); color: #fff; }
  .feature .button.light:hover:not(:disabled),.feature .button.primary:hover:not(:disabled) { color: var(--green-deep); background: #e8f7cf; }
  .feature .button.subtle:hover:not(:disabled) { color: var(--green-deep); }
  .cal-day:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--green); }
}
@media (max-width: 1000px) and (min-width: 751px) {
  :root { --gutter: 26px; }
  .shell { grid-template-columns: 175px minmax(0,1fr); }
  .sidebar { padding-inline: 10px; }
  .spread { grid-template-columns: minmax(0,1.25fr) minmax(228px,1fr); gap: 14px; }
  .panel,.feature { padding: 20px; }
}
@media (max-width: 850px) {
  .spread { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 750px) {
  :root { --gutter: clamp(16px,5vw,30px); --radius: 14px; }
  .shell { display: grid; grid-template-columns: minmax(0,auto) minmax(0,1fr); grid-template-rows: auto 1fr; }
  .sidebar, .workspace { display: contents; }
  .sidebar > .brand { display: flex; align-self: stretch; grid-area: 1 / 1; margin: 0; width: 100%; min-height: 56px; padding-inline: var(--gutter) 6px; border-bottom: 1px solid var(--rule); font-size: 1.25rem; }
  .brand-mark { width: 28px; height: 28px; }
  .sidebar nav { position: fixed; inset: auto 0 0; z-index: 5; display: flex; align-items: stretch; justify-content: space-evenly; gap: 0; padding: 4px 4px calc(5px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--rule); }
  .sidebar .navlink { width: auto; flex: 1; flex-direction: column; gap: 3px; justify-content: center; padding: 5px 2px; min-height: 52px; border-radius: 6px; font-size: .76rem; text-align: center; line-height: 1.15; }
  .navlink svg { width: 19px; height: 19px; }
  .sidebar-foot { display: none; }
  .topbar { grid-area: 1 / 2; justify-content: flex-end; min-height: 56px; padding-block: 7px; padding-inline-start: 2px; text-align: right; }
  .topbar-title { display: none; }
  main#content { grid-area: 2 / 1 / auto / -1; padding-block: 25px calc(96px + env(safe-area-inset-bottom)); }
  .page-title { margin-bottom: 22px; }
  .feature h2,.feature .card-title { font-size: clamp(1.8rem,6.8vw,2.5rem); }
  .control-list label,.cal-day,.month-strip button { min-height: 44px; }
  .calendar-grid { gap: 2px; }
  .toast { right: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); }
}
@media (max-width: 375px) {
  :root { --gutter: 12px; }
  .panel,.feature { padding: 17px; }
  .cal-day { min-height: 39px; }
  .calendar-grid { gap: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
