@font-face {
  font-family: 'Lexend Variable';
  src: url('/assets/lexend-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f5f3ee; color: #28342f; font: 16px/1.6 'Lexend Variable', Arial, sans-serif; }
button, input, textarea { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: wait; opacity: .65; }
[hidden] { display: none !important; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #a1593d; outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
.topbar { min-height: 84px; padding: 16px max(24px, calc((100vw - 1000px)/2)); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; border-bottom: 1px solid #dedfd6; background: #faf9f5; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand strong { font-size: 19px; font-weight: 500; }
.brand-mark { width: 42px; height: 42px; border-radius: 10px; background: #263e34; color: #faf8ec; display: grid; place-items: center; flex-shrink: 0; }
.brand-mark svg { width: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#account { display: flex; align-items: center; gap: 16px; margin-left: auto; }
#account-name { font-size: 14px; color: #56634f; }
.quiet, .primary { border-radius: 8px; padding: 10px 16px; min-height: 44px; }
.quiet { background: transparent; border: 1px solid #c7cfc0; color: #365044; font-size: 14px; }
.quiet:hover { background: #edf0e8; }
.primary { background: #2b493c; color: white; border: 1px solid #2b493c; font-weight: 500; }
.primary:hover { background: #20392e; }
main { max-width: 920px; margin: auto; padding: 0 24px 40px; }
.page-banner { display: block; width: 100%; height: auto; margin-top: 24px; border-radius: 12px; }
.login-layout { max-width: 420px; margin: 56px auto; }
.login-card { background: #fffefa; border: 1px solid #d4d9cc; border-radius: 12px; padding: 30px; }
.login-card h1 { font-size: 26px; font-weight: 500; margin-bottom: 24px; }
.login-card label { display: block; margin: 18px 0 8px; }
input[type=text], input:not([type]), input[type=password], textarea { background: #fff; border: 1px solid #aebaa6; border-radius: 7px; width: 100%; padding: 12px; color: #28342f; min-width: 0; font-size: 16px; min-height: 48px; }
textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.login-card .primary { width: 100%; margin-top: 24px; }
.error, .save-state.failure { color: #a34033; }
.error { margin-top: 16px; }
.error:empty { display: none; }
.summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 2px 16px; font-size: 14px; color: #56634f; flex-wrap: wrap; }
.accordion { border: 1px solid #d4d9cc; border-radius: 12px; background: #fffefa; overflow: hidden; }
#section-toggle { width: 100%; min-height: 64px; border: 0; background: #e9eddf; padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left; color: #2e4235; }
.section-title { font-size: 21px; font-weight: 500; line-height: 1.4; }
.chevron { font-size: 24px; }
.question { padding: 28px; border-top: 1px solid #e0e4d9; }
.question-heading { display: flex; align-items: start; gap: 12px; margin-bottom: 20px; }
.question-heading > div { min-width: 0; }
.number { width: 28px; height: 28px; border: 1px solid #bfcbb5; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: 12px; color: #526247; margin-top: 2px; }
.question h3 { font-size: 21px; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.option { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #c4cfbc; border-radius: 8px; font-size: 16px; line-height: 1.5; cursor: pointer; background: #fff; min-height: 52px; }
.option:has(input:checked) { background: #eef3e9; border-color: #65825c; color: #29492f; }
.option:hover { border-color: #748969; }
.option input { accent-color: #3c6447; width: 20px; height: 20px; flex-shrink: 0; margin: 0; }
.fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin-top: 20px; min-width: 0; }
.field label { display: block; font-size: 16px; margin-bottom: 8px; }
.field.wide { grid-column: 1/-1; }
.example { background: #f5f2ea; border-left: 3px solid #b07b56; padding: 16px; margin-bottom: 20px; border-radius: 0 7px 7px 0; }
.example h4 { font-weight: 400; margin-bottom: 10px; color: #68553e; font-size: 15px; }
.example-row { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; }
.example-row strong { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.save-line { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.save-state { color: #526547; font-size: 14px; }
.save-state:empty { display: none; }
.history-button { border: 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; color: #59664f; padding: 10px 4px; min-height: 44px; font-size: 14px; margin-left: auto; }
.notice, .conflict { padding: 16px; background: #fbefdc; color: #7c4c28; border: 1px solid #d5b27f; border-radius: 8px; margin: 12px 0; font-size: 15px; }
.conflict p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0; }
.conflict button { margin: 5px 8px 0 0; }
.manager-note { border-left: 2px solid #a7b69b; padding-left: 16px; margin-top: 20px; }
.manager-note p, .readonly { white-space: pre-wrap; overflow-wrap: anywhere; }
.manager-note h4 { font-size: 15px; font-weight: 500; color: #526547; margin-bottom: 8px; }
.readonly { margin: 12px 0; padding: 16px; background: #f4f5ee; border-radius: 8px; }
.general-card { background: #f5f6ef; }
.muted { color: #56634f; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
 dialog { max-width: 650px; width: calc(100% - 24px); max-height: calc(100dvh - 32px); border: 1px solid #d4d9cc; border-radius: 12px; padding: 24px; background: #fffefa; color: #28342f; }
dialog::backdrop { background: #20342bcc; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.dialog-heading h2 { font-size: 22px; font-weight: 500; }
.history-entry { border-top: 1px solid #dedfd4; padding: 16px 0; }
.history-entry small { color: #56634f; }
.history-entry p { margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .topbar { padding: 14px 16px; }
  .brand strong { font-size: 17px; }
  main { padding: 0 12px 24px; }
  .login-layout { margin: 28px auto; }
  .login-card { padding: 24px; }
  .summary { padding: 16px 4px 12px; font-size: 13px; }
  #section-toggle { padding: 20px 16px; gap: 12px; }
  .section-title { font-size: 19px; }
  .question { padding: 24px 16px; }
  .question-heading { gap: 10px; }
  .question h3 { font-size: 19px; }
  .options, .fields-grid { grid-template-columns: 1fr; }
  .option { padding: 14px 12px; }
  .example { padding: 12px; }
  .example-row { font-size: 15px; gap: 10px; }
  dialog { padding: 20px; }
}
