:root {
  color-scheme: light;
  --ink: #172d25;
  --muted: #53655a;
  --green: #17543e;
  --forest: #103a2e;
  --gold: #d6a94d;
  --line: #d8e1d8;
  --paper: #f5f6f0;
  --white: #fff;
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding: 24px; }
body { margin: 0; font-size: 1rem; }
h1, h2, h3, p { margin: 0; }
a { color: var(--green); }
:focus-visible { outline: 3px solid #9a660c; outline-offset: 3px; }
.shell { width: min(1280px, 100% - clamp(32px, 8vw, 112px)); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 8px; translate: 0 -150%; background: white; padding: 12px; z-index: 3; }
.skip:focus { translate: 0; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest); line-height: 1.25; }
.brand strong { font-size: 1.02rem; letter-spacing: .1em; display: block; }
.brand small { font-size: .81rem; color: var(--muted); }
.brand-mark { display: block; width: 52px; height: 52px; object-fit: contain; flex: none; }
.header-link { font-weight: 650; font-size: .9rem; text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 10px 13px; text-align: center; }
.header-link:hover { background: #edf3ed; }
.hero { margin-block: 28px; position: relative; overflow: hidden; border-radius: 18px; background: linear-gradient(118deg, #10382c, #195341); color: white; isolation: isolate; }
.hero-content { position: relative; max-width: 760px; padding: clamp(26px, 4.6vw, 58px); }
.eyebrow { color: #f2cf81; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; font-size: .83rem; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.eyebrow span { width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
h1 { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.045em; font-size: clamp(2.45rem, 5.1vw, 4.85rem); line-height: .99; margin: 15px 0 16px; }
.hero-note { color: #e3efe6; max-width: 510px; font-size: 1.02rem; }
.hero-art { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 40%; overflow: hidden; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 43px, #f2cf8111 43px 44px), repeating-linear-gradient(90deg, transparent 0 43px, #f2cf8111 43px 44px); mask-image: linear-gradient(90deg, transparent, black 38%); }
.hero-art i { position: absolute; right: 15%; top: 50%; width: min(27vw, 326px); aspect-ratio: 1; border: 1px solid #f2cf8190; border-radius: 50%; transform: translateY(-50%); }
.hero-art i:nth-child(2) { right: -2%; border-color: #f2cf8173; }
.hero-art i:nth-child(3) { right: 32%; border-color: #f2cf8159; }
.hero-art b { position: absolute; right: 18%; top: 34%; width: 8px; height: 8px; border-radius: 50%; background: #f2cf81; }
.workspace { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 24px; align-items: start; }
.sidebar { position: sticky; top: 24px; }
.outline, .card { border: 1px solid var(--line); border-radius: 14px; background: white; }
.outline { padding: 20px; }
.outline h2 { font-size: 1.03rem; }
.outline p { font-size: .8rem; color: var(--muted); margin: 0 0 12px; }
progress { appearance: none; width: 100%; height: 7px; border: none; border-radius: 999px; background: #e8eee5; margin: 12px 0 4px; display: block; }
progress::-webkit-progress-bar { background: #e8eee5; border-radius: 999px; }
progress::-webkit-progress-value { background: var(--green); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--green); border-radius: 999px; }
.outline a { display: flex; gap: 10px; align-items: center; text-decoration: none; padding: 8px 7px; min-height: 42px; border-radius: 6px; font-size: .91rem; font-weight: 600; }
.outline a:hover { background: #edf3ed; }
.outline a span { display: grid; place-items: center; border-radius: 50%; font-size: .73rem; min-width: 23px; height: 23px; color: var(--green); background: #e8f0e9; }
.outline a span.gold { background: #f6ebd1; color: #694a13; }
.outline a span.complete { background: var(--green); color: white; }
fieldset { padding: 0; margin: 0; border: 0; min-inline-size: 0; }
.group-card { padding: clamp(17px, 2.35vw, 29px); }
h2 { line-height: 1.22; font-size: 1.48rem; letter-spacing: -.025em; }
.section-head p, .response-heading p, .dashboard-head p { margin-top: 5px; color: var(--muted); font-size: .93rem; }
.section-head { margin-bottom: 19px; }
label { display: block; font-weight: 650; font-size: .88rem; }
.required { color: #845e16; }
input, textarea, button { font: inherit; }
input, textarea { display: block; width: 100%; border: 1px solid #c9d6c9; border-radius: 8px; background: #fafbf8; color: var(--ink); font-size: 1rem; padding: 10px 12px; font-weight: 400; }
input { margin-top: 6px; min-height: 44px; }
input::placeholder, textarea::placeholder { color: #667869; opacity: 1; }
input:focus, textarea:focus { border-color: var(--green); background: white; }
input:disabled, textarea:disabled { opacity: 1; -webkit-text-fill-color: var(--ink); }
.group-input { max-width: 440px; }
.name-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; margin-top: 17px; }
.response-heading { margin: 29px 0 15px; }
.response-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.response-card { border-top: 3px solid #44836a; padding: 17px; grid-column: span 2; display: flex; flex-direction: column; }
.response-card h3 label { font-size: .92rem; letter-spacing: .06em; display: flex; align-items: center; gap: 9px; color: var(--forest); }
.response-card h3 span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--green); color: white; letter-spacing: 0; font-size: .89rem; flex: none; }
.response-card p { margin: 11px 0 14px; color: var(--muted); font-size: .91rem; }
.response-card textarea { margin-top: auto; min-height: 144px; resize: vertical; }
.action-card { grid-column: span 3; border-top-color: #c59634; }
.action-card h3 span { background: #ebc776; color: #37270b; }
.submit-bar { margin-top: 18px; display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 15px 18px; border: 1px solid var(--line); background: white; border-radius: 13px; }
.draft { display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: .87rem; }
.draft::before { content: ""; width: 8px; height: 8px; background: #477c5c; border-radius: 50%; flex: none; }
.draft.unavailable::before { background: #9a660c; }
button { border-radius: 8px; border: 1px solid transparent; background: var(--green); color: white; font-size: .91rem; font-weight: 700; padding: 11px 16px; min-height: 44px; cursor: pointer; }
button:hover { background: var(--forest); }
button:disabled { opacity: .65; cursor: default; }
button.secondary, button.text-button { background: white; border-color: var(--line); color: var(--green); }
button.secondary:hover, button.text-button:hover { background: #edf3ed; }
button.text-button { border-color: transparent; }
.notice { margin-top: 16px; padding: 13px 16px; border: 1px solid #b6cebd; background: #ebf4e9; border-radius: 8px; overflow-wrap: anywhere; }
.notice.error { background: #fcf1e1; border-color: #dfc397; color: #663c0b; }
.site-footer { margin-top: 35px; padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .83rem; }
.site-footer span { margin-inline: 4px; }
.facilitator { min-height: 65vh; }
.facilitator-hero h1 { font-size: clamp(2.55rem, 5vw, 4.4rem); }
.access-card { max-width: 460px; padding: 25px; }
.access-card form { margin-top: 17px; }
.access-card button { margin-top: 14px; }
.dashboard-head { display: flex; gap: 16px; justify-content: space-between; align-items: center; margin-block: 24px 16px; }
.dashboard-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.record { margin-bottom: 12px; overflow: hidden; }
.record summary { cursor: pointer; padding: 16px 20px; color: var(--ink); overflow-wrap: anywhere; }
.record summary:hover { background: #f5f9f3; }
.record time { display: inline-block; margin-left: 10px; font-size: .85rem; color: var(--muted); }
.record-body { padding: 18px 20px; border-top: 1px solid var(--line); }
.record-body > p { color: var(--muted); overflow-wrap: anywhere; }
.record-body dl { margin: 15px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.record-body dl div { background: #f5f7f2; border-radius: 8px; padding: 13px; }
.record-body dt { font-size: .82rem; font-weight: 750; color: var(--green); }
.record-body dd { white-space: pre-wrap; overflow-wrap: anywhere; margin: 5px 0 0; }
.record-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
button.danger { background: #a0322d; color: white; }
button.danger:hover { background: #822521; }
button.delete-output { color: #8b2c26; }
#delete-dialog { width: min(28rem, calc(100% - 32px)); padding: 24px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
#delete-dialog::backdrop { background: #172d2580; }
#delete-description { margin: 8px 0 16px; overflow-wrap: anywhere; }
.delete-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 18px; }
@media (max-width: 1100px) {
  .workspace { grid-template-columns: 180px minmax(0, 1fr); gap: 16px; }
  .outline { padding: 14px; }
  .response-card { grid-column: span 3; }
  .response-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .outline { display: grid; grid-template-columns: 1fr; gap: 0; }
  .outline a { display: none; }
  .outline p { margin: 3px 0 0; }
  .hero { margin-block: 18px; }
}
@media (max-width: 700px) {
  .name-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .name-grid input { min-height: 48px; }
}
@media (max-width: 580px) {
  .brand { gap: 8px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand small { font-size: .72rem; }
  .header-link { padding-inline: 8px; font-size: .76rem; }
  .hero-break { display: none; }
  .hero-art { opacity: .3; }
  .response-card { grid-column: 1 / -1; }
  .submit-bar, .dashboard-head { flex-direction: column; align-items: stretch; }
  .submit-bar { padding: 13px; }
  .record-body dl { grid-template-columns: minmax(0, 1fr); }
}
