:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; color: #1c2b32; background: #eef5f4; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 12% 0%, #d7eee9 0, transparent 36rem), #eef5f4; }
.shell { width: min(760px, calc(100% - 28px)); margin: 0 auto; padding: 28px 0 40px; }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 4px 22px; }
.brand .mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; background: #0e6f68; color: white; font-weight: 800; }
.brand strong, .brand span { display: block; }
.brand span { color: #607378; font-size: .87rem; margin-top: 2px; }
.card { background: rgba(255,255,255,.96); border: 1px solid #d9e7e4; border-radius: 24px; padding: clamp(22px, 5vw, 42px); box-shadow: 0 22px 60px rgba(24,67,66,.09); }
h1 { margin: 5px 0 10px; color: #17383a; font-size: clamp(1.55rem, 5vw, 2.25rem); line-height: 1.1; }
p { color: #596e73; line-height: 1.55; }
.eyebrow { color: #0e6f68; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .76rem; }
fieldset { margin: 28px 0 0; padding: 20px; border: 1px solid #dce8e6; border-radius: 18px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
legend { padding: 0 8px; color: #31565a; font-weight: 750; }
label { display: grid; gap: 7px; color: #36555a; font-size: .9rem; font-weight: 650; }
.wide { grid-column: 1 / -1; }
input, textarea, select { width: 100%; min-width: 0; border: 1px solid #c9dcda; border-radius: 12px; padding: 12px 13px; font: inherit; color: #18393c; background: #fbfdfd; }
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: #13867c; outline: 3px solid rgba(19,134,124,.12); }
.study-handoff, .field-help { margin: 0; }
#staffVitals { background: #f3f6f6; }
#staffVitals input { color: #52666b; cursor: not-allowed; background: #edf1f1; }
.field-help { font-size: .85rem; }
.file-label { gap: 10px; }
.file-picker { min-height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid #c9dcda; border-radius: 12px; background: #f1f8f6; cursor: pointer; }
.file-picker:focus-within { border-color: #13867c; outline: 3px solid rgba(19,134,124,.12); }
.file-picker-button { color: #24575a; font-size: .9rem; font-weight: 800; }
.file-input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.attachment-list { font-size: .86rem; color: #63777a; }
.attachment-list.error { color: #a62828; font-weight: 700; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 25px 2px 0; line-height: 1.45; }
.consent input { width: 20px; height: 20px; flex: 0 0 auto; }
.actions { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
button { border: 0; border-radius: 13px; padding: 13px 22px; background: #0e6f68; color: white; font: inherit; font-weight: 800; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button.secondary { background: #e9f1f0; color: #31565a; border: 1px solid #c9dcda; }
.actions { flex-wrap: wrap; }
#submitStatus { color: #5a6d72; font-size: .9rem; }
.is-followup .initial-only, body:not(.is-followup) .followup-only { display: none; }
.success { text-align: center; }
.check { display: grid; place-items: center; margin: 0 auto 15px; width: 58px; height: 58px; border-radius: 50%; background: #d9f3e8; color: #087259; font-size: 1.8rem; font-weight: 900; }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid #d8e9e6; border-top-color: #0e6f68; animation: spin .8s linear infinite; }
footer { margin: 22px 10px 0; text-align: center; color: #708185; font-size: .78rem; line-height: 1.5; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) { .shell { width: min(100% - 18px, 760px); padding-top: 16px; } .card { border-radius: 18px; padding: 20px 16px; } fieldset { grid-template-columns: 1fr; padding: 16px 12px; } label.wide { grid-column: auto; } .actions { align-items: stretch; flex-direction: column; } button { width: 100%; } }
.tablet-kinds { display: grid; gap: 16px; }
.tablet-kinds button { min-height: 56px; }
#tabletPairForm { display: grid; gap: 16px; }
#tabletIdleWarning { position: fixed; inset: auto 16px 16px; z-index: 5; border: 2px solid #805b13; }
[hidden] { display: none !important; }
