.intake-page { max-width: 960px; margin: 0 auto; padding: 3rem 1.25rem; color: #063f3b; }
.intake-page h1 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.15; }
.intake-page p, .intake-card p { line-height: 1.65; }
.intake-page fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.intake-card { padding: clamp(1rem, 3vw, 2rem); margin: 1.5rem 0; border: 1px solid #d6e1dd; border-radius: 16px; background: #fff; color: #063f3b; overflow-wrap: anywhere; }
.intake-card h2 { margin-top: 0; }
.intake-card label { display: grid; gap: .5rem; margin: .65rem 0; font-weight: 600; }
.intake-card input:not([type=checkbox]), .intake-card select, .intake-card textarea { width: 100%; min-width: 0; box-sizing: border-box; padding: .75rem; border: 1px solid #9caeaa; border-radius: 7px; font: inherit; background: #fff; color: #163e39; }
.intake-card input:focus-visible, .intake-card select:focus-visible, .intake-card textarea:focus-visible, .intake-card button:focus-visible { outline: 3px solid #b58d2f; outline-offset: 3px; }
.intake-card .intake-check { display: flex; align-items: flex-start; gap: .7rem; padding: .5rem 0; }
.intake-check input { width: 1.2rem; height: 1.2rem; flex-shrink: 0; margin-top: .15rem; accent-color: #063f3b; }
.intake-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: .5rem 1rem; }
.intake-question { display: grid !important; grid-template-columns: minmax(0, 1fr) 170px; align-items: center; gap: 1rem !important; padding: .6rem 0; border-bottom: 1px solid #edf0ee; }
.intake-card details { margin: 1rem 0; border-top: 1px solid #d6e1dd; padding-top: 1rem; }
.intake-card summary { font-size: 1.1rem; font-weight: 700; cursor: pointer; padding: .5rem 0; }
.intake-alert { padding: 1.2rem; margin: 1rem 0; border: 1px solid #b95534; border-left: 5px solid #b95534; border-radius: 8px; background: #fff3ea; color: #622610; line-height: 1.6; }
.intake-muted { font-size: .85rem; color: #526962; }
.intake-measurement { padding: 1rem 0; border-bottom: 1px solid #d6e1dd; }
.intake-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.intake-card button:not(.btn) { padding: .65rem 1rem; border: 1px solid #063f3b; background: #f4f8f6; color: #063f3b; border-radius: 6px; cursor: pointer; font: inherit; }
.intake-card button:disabled { opacity: .5; cursor: default; }
.intake-list-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #d6e1dd; padding: 1rem 0; }
.intake-list-row p { margin: .3rem 0; }
.intake-qr { width: 240px; height: 240px; max-width: 100%; }
.intake-flag { border-left: 4px solid #69847a; padding: 1rem; background: #f4f8f6; margin: .75rem 0; }
.intake-legend { display: flex; flex-wrap: wrap; gap: .65rem; }
.intake-badge { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid; border-radius: 6px; padding: .3rem .6rem; font-size: .85rem; font-weight: 700; }
.tone-blue { background: #eaf3ff; color: #164579; border-color: #386fa5; }
.tone-green { background: #e8f5ec; color: #175b31; border-color: #287845; }
.tone-yellow { background: #fff8ce; color: #675000; border-color: #a78100; }
.tone-orange { background: #fff0e1; color: #843700; border-color: #bf590c; }
.tone-red { background: #ffeded; color: #941e26; border-color: #c62c37; }
.intake-responses { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: .75rem 1rem; }
.intake-responses dd { margin: 0; font-weight: 700; }
.intake-preserve { white-space: pre-wrap; }
.connection-status { position: fixed; z-index: 10000; inset: auto 1rem 1rem; max-width: 650px; margin: auto; padding: 1.25rem; border: 2px solid #386fa5; border-radius: 12px; background: #eaf3ff; color: #164579; box-shadow: 0 5px 30px #0003; }
.connection-status[hidden] { display: none; }
.connection-status button { padding: .6rem .8rem; margin: .4rem .5rem 0 0; border: 1px solid #164579; border-radius: 6px; background: white; color: #164579; cursor: pointer; }
.connection-status button:disabled { opacity: .55; cursor: default; }
.admin-confirm-dialog { width: min(560px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); box-sizing: border-box; padding: 1.75rem; border: 1px solid #afc3bb; border-radius: 16px; background: #fff; color: #063f3b; box-shadow: 0 20px 70px #0004; overflow-wrap: anywhere; }
.admin-confirm-dialog::backdrop { background: #062a27aa; }
.admin-confirm-dialog h2 { margin: .6rem 0 1rem; }
.admin-confirm-dialog p { line-height: 1.6; white-space: pre-line; }
.admin-confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .8rem; margin-top: 1.5rem; }
.admin-confirm-dialog button:focus-visible { outline: 3px solid #b58d2f; outline-offset: 3px; }
@media (max-width: 560px) { .intake-question { grid-template-columns: 1fr; gap: .3rem !important; } .intake-responses { grid-template-columns: 1fr; } .intake-responses dd { margin-bottom: .8rem; } .intake-list-row { align-items: flex-start; flex-direction: column; } }
