/* Shared client-facing visual language. Data, permissions and sends stay in the APIs. */
body.agency-page,body.participant-page{--ink:#17231e;--muted:#65736b;--green:#174e36;--line:#e1e7df;--bg:#f5f7f3;--lime:#cefa7a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}
body.agency-page *,body.participant-page *{box-sizing:border-box}
body .portal-header{max-width:none;margin:0;padding:22px max(24px,calc((100vw - 1120px)/2));background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:22px}
body .portal-header img{display:block;width:148px;height:auto;max-width:100%;mix-blend-mode:multiply}
.brand-caption{border-left:1px solid var(--line);padding-left:22px;max-width:220px;font-size:10px;letter-spacing:.1em;line-height:1.6;color:var(--muted)}
.portal-header .portal-badge{margin-left:auto;display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:30px;padding:9px 13px;background:#fafcf8;font-size:11px;letter-spacing:0;font-weight:550;color:#32543d;white-space:nowrap}
.portal-badge:before{content:"";width:7px;height:7px;flex:none;border-radius:50%;background:#6f953d}
body.agency-page main{max-width:1168px;margin:auto;padding:40px 24px 44px}
body.participant-page main{max-width:800px;padding:32px 24px 44px}
body .intro{padding:14px 0 20px;margin:0 0 20px;max-width:none;text-align:left}
body .intro .eyebrow{display:inline-flex;gap:8px;align-items:center;font-size:10px;font-weight:650;letter-spacing:.16em;color:#3f6248;margin:0}
body .intro h1{font-family:inherit;color:var(--ink);font-size:clamp(36px,5vw,62px);font-weight:600;line-height:1.04;letter-spacing:-2.7px;margin:20px 0}
body .intro h1 span{color:#6b8468}
body .intro>p:not(.eyebrow){max-width:560px;font-size:17px;line-height:1.6;color:var(--muted);margin:0}
.entry-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:56px;align-items:center;margin:30px 0 36px}
body .entry-grid .panel{margin:0}
.entry-points{display:flex;flex-wrap:wrap;gap:9px;margin:22px 0 0;list-style:none;padding:0}
.entry-points li{border:1px solid #dbe4d4;border-radius:30px;padding:8px 12px;font-size:11px;font-weight:550;background:#edf3e7;color:#3b563d}
body.has-session .entry-grid{display:block;margin:0}
body.has-session .entry-points{display:none}
body.has-session .intro{padding:8px 0 4px;margin-bottom:10px}
body.has-session .intro h1{font-size:clamp(28px,4vw,43px);letter-spacing:-1.6px;margin:10px 0 12px}
body.has-session .intro h1 br{display:none}
body.has-session .intro h1 br:after{content:" "}
body.has-session .intro>p:not(.eyebrow){display:none}
body .panel{background:#fff;border:1px solid var(--line);border-radius:26px;padding:30px;margin:18px 0;box-shadow:0 8px 32px #19321e03}
body .panel h2{font-size:24px;letter-spacing:-.7px;font-weight:600;line-height:1.2;margin:8px 0 18px}
body .panel>p{font-size:14px;color:var(--muted)}
body .panel .eyebrow{font-size:10px;font-weight:650;letter-spacing:.13em;color:#63815d;margin:0 0 10px}
body .panel label{font-size:13px;font-weight:550;line-height:1.5;display:block;color:var(--ink)}
body .panel input,body .panel select,body .panel textarea{font:inherit;font-size:16px;min-height:51px;border:1px solid #d5dfd0;border-radius:12px;background:#fbfcfa;color:var(--ink);padding:14px 15px;margin-top:8px;width:100%;box-shadow:none}
body .panel input::placeholder{color:#8b978e}
body .panel input:focus,body .panel select:focus,body .panel textarea:focus{border-color:#609446;outline:3px solid #cefa7a70;outline-offset:2px}
body .panel .check{display:flex;align-items:flex-start;gap:11px;font-weight:400;font-size:13px;line-height:1.6;margin:20px 0}
body .panel .check input{width:18px;height:18px;min-height:18px;padding:0;flex-shrink:0;margin:3px 0 0;accent-color:#245b36}
body.agency-page button,body.participant-page button{font:inherit;font-size:13px;font-weight:600;line-height:1.4;border:1px solid #dce5d6;border-radius:12px;min-height:46px;padding:13px 18px;background:#f3f7ee;color:#294b32;cursor:pointer;transition:background .15s,box-shadow .15s}
body.agency-page button:hover,body.participant-page button:hover{background:#e6efd9}
body.agency-page form>button,body.participant-page button.primary,body.participant-page #thirdForm>button{background:var(--lime);color:#20351c;border:1px solid #bde769;box-shadow:0 3px 0 #abd36a18}
body.agency-page form>button:hover,body.participant-page button.primary:hover,body.participant-page #thirdForm>button:hover{background:#bced66}
body button:focus-visible,body a:focus-visible,body summary:focus-visible{outline:3px solid #9cbe72;outline-offset:4px}
body button:disabled{opacity:.55;cursor:wait}
body #access>button,body #selfName>button{width:100%;margin-top:20px}
body #access input{font-size:24px;letter-spacing:.32em;text-align:center;font-variant-numeric:tabular-nums}
body .hint,body .muted{font-size:13px;line-height:1.65;color:var(--muted)}
body .context{padding:6px 0 15px;text-align:left;font-size:12px;color:var(--muted);line-height:1.7}
body .context h2{font-size:16px;font-weight:600;color:#375639;letter-spacing:0;margin-bottom:6px}
body .context p{font-size:12px;margin:0;max-width:630px}
.agency-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);align-items:start;gap:24px}
.agency-grid>.panel{margin:0}
body .guide-card{border-radius:26px;padding:32px;background:#173d2f;color:#fff;position:relative;overflow:hidden}
.guide-card:after{content:"158";position:absolute;right:-6px;bottom:-34px;font-size:140px;font-weight:700;letter-spacing:-10px;line-height:1;color:#ffffff06;pointer-events:none}
body .guide-card .eyebrow{color:#c5e99e;font-size:10px;letter-spacing:.14em}
.guide-card h2{font-weight:550;font-size:29px;line-height:1.15;letter-spacing:-.8px;margin:18px 0 26px;max-width:260px}
.guide-card ol{list-style:none;padding:0;margin:0;counter-reset:guide}
.guide-card li{counter-increment:guide;position:relative;padding:0 0 26px 39px;font-size:13px;line-height:1.65;color:#bfcfc3}
.guide-card li:before{content:counter(guide,decimal-leading-zero);position:absolute;left:0;top:1px;color:#c9f77c;font-size:11px;font-weight:600}
.guide-card li strong{display:block;color:white;font-size:14px;font-weight:550;margin-bottom:4px}
.guide-card .guide-note{border-top:1px solid #ffffff25;padding-top:20px;font-size:12px;line-height:1.7;color:#c7d7c5;margin:0}
body #create>button{width:100%;margin-top:3px}
body .section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
body .section-heading h2{margin:0}
body .case-row{border-top:1px solid var(--line);padding:20px 0 0;margin-top:20px}
body .case-row>strong{font-size:17px;font-weight:550}
body .case-row p{font-size:13px;color:var(--muted);margin:8px 0 14px}
body .invitation-result{padding:18px 20px;border:1px solid #dce7d5;border-radius:16px;background:#f7faf3;margin:14px 0}
body .invitation-result strong{font-size:14px;font-weight:600;color:#345337}
body .invitation-result p{font-size:13px;color:var(--muted);line-height:1.65}
body .invitation-result code{display:inline-block;font:550 22px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.15em;color:var(--ink);padding:8px 0}
body #status{font-size:13px;min-height:0;line-height:1.6;margin:12px 0;color:#496745}
body #status:empty{display:none}
body #status.error,body .error{color:#a52e28!important}
body.participant-page .invitation-window{background:transparent;border:1px solid #dce5d5;border-radius:17px;padding:17px 20px;margin:18px 0 8px}
body.participant-page .invitation-window strong{font-size:13px;font-weight:600;color:#3b603c;letter-spacing:-.1px}
body.participant-page .invitation-window p{font-size:11px;color:var(--muted);margin:5px 0}
body.participant-page .invitation-window.expired{background:#fff5e9;border-color:#e5cbab}
body .participant-pending{margin-top:10px;font-size:12px}
body .participant-pending summary{cursor:pointer;color:#4e644b;line-height:1.6}
body .participant-pending ul{margin-bottom:0}
body.participant-page .participant-steps{display:flex;gap:6px;padding:5px;background:#e9eee4;border-radius:15px;margin:18px 0 0;flex-wrap:nowrap}
body.participant-page .participant-steps button{min-width:0;flex:1;padding:11px 6px;font-size:11px;line-height:1.4;background:transparent;color:#5a6c59;border:0;box-shadow:none;border-radius:11px;white-space:normal}
body.participant-page .participant-steps [aria-current=step]{background:#fff;color:#22452b;box-shadow:0 2px 5px #284c1910}
body.participant-page .step-caption{font-size:11px;color:#6b7867;text-align:left;margin:12px 3px 20px}
body.participant-page .panel .micro-progress{display:inline-block;font-size:10px;letter-spacing:.07em;text-transform:uppercase;color:#5f7953;padding:6px 10px;background:#eef5e7;border-radius:7px;margin:0 0 14px}
body.participant-page .question-card{min-height:145px}
body.participant-page .question-card h3{font-size:20px;font-weight:550;letter-spacing:-.4px;margin:8px 0 22px}
body.participant-page .question-card label{margin:16px 0}
body.participant-page .document-hint{color:var(--muted);font-size:12px;line-height:1.7}
body.participant-page .proposal-total,body.participant-page .notice,body.participant-page .summary{background:#f0f5e9;color:#405737;border:0;border-radius:14px;font-size:13px;line-height:1.7;padding:18px}
body.participant-page .reading{background:#f5f7f2;border:1px solid var(--line);border-radius:14px}
body.participant-page input[type=file]{padding:18px 14px;border:1px dashed #9db58c;background:#f8fbf3;font-size:12px;white-space:normal}
body.participant-page input[type=file]::file-selector-button{border:1px solid #d1dfc4;border-radius:8px;background:#eaf3df;color:#38572b;padding:10px 12px;margin-right:10px;font:inherit}
body.participant-page .review-title button{background:#f0f5e9;color:#3f5a36;border-radius:9px}
body.participant-page .step-actions{border-top:1px solid var(--line);padding-top:22px;margin-top:26px}
body.participant-page .third-invitation{border-top:0;margin:18px 0;padding:30px}
body footer{border-top:1px solid var(--line);padding:24px 0 0;margin:32px 0 0;font-size:11px;line-height:1.9;text-align:left;color:var(--muted)}
body footer strong{display:block;color:#425b42;font-weight:550;margin-bottom:5px;font-size:12px}
@media(min-width:900px){body.participant-page:not(.has-session) main{max-width:1168px}body.participant-page:not(.has-session) .entry-grid .intro h1{font-size:58px}body.participant-page.has-session .entry-grid .intro h1 br{display:inline}}
@media(max-width:720px){body .portal-header{padding:18px 20px;gap:14px;flex-wrap:nowrap}body .portal-header img{width:126px}.brand-caption{display:none}body .portal-header .portal-badge{font-size:10px;padding:8px 10px}body.agency-page main,body.participant-page main{padding:24px 16px 30px}.entry-grid{grid-template-columns:1fr;gap:16px;margin:0 0 20px}.agency-grid{grid-template-columns:1fr;gap:18px}body .intro{padding:12px 2px;margin-bottom:4px}body .intro h1{font-size:40px;letter-spacing:-1.8px;margin:18px 0}body .intro>p:not(.eyebrow){font-size:15px;max-width:400px}body .panel{padding:24px 20px;border-radius:22px}body .panel h2{font-size:22px;margin-bottom:18px}body .two{grid-template-columns:1fr;gap:0}body .section-heading h2{font-size:19px}body .context{padding:4px 2px 15px}body .context p{font-size:11px}body .guide-card{padding:26px 24px;border-radius:22px}.guide-card h2{font-size:24px;max-width:none}.guide-card ol{display:block}.guide-card li{padding-bottom:20px}body.participant-page .third-invitation{padding:24px 20px}body .question-actions{gap:8px}body .question-actions button{font-size:12px;padding:12px}body.has-session .intro h1{font-size:29px;letter-spacing:-1px}body.has-session .intro h1 br{display:inline}body .entry-points{gap:6px;margin-top:18px}body .entry-points li{font-size:10px;padding:7px 9px}}
@media(prefers-reduced-motion:reduce){body button{transition:none}*{scroll-behavior:auto!important}}

/* Once inside, the case context and steps replace the welcome headline. */
body.participant-page.has-session .intro{display:none}
