:root{color-scheme:light;--blue:#155fa0;--dark:#153c60;--muted:#50677b;--line:#ccdeeb;--pale:#edf6fd;--error:#a52230;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--dark);background:#f3f8fc;font-synthesis:none}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
.page{max-width:920px;margin:auto;padding:24px 16px 0}
.institution{display:flex;align-items:center;gap:16px;margin:8px 0 28px;padding-bottom:22px;border-bottom:2px solid var(--line)}
.institution>div{min-width:0;flex:1}
.institution img{width:112px;height:112px;padding:8px;background:var(--blue);border-radius:16px;object-fit:contain;object-position:center;flex-shrink:0}
.brand{font-size:.72rem;font-weight:750;letter-spacing:.08em;margin:0 0 6px;color:var(--blue)}
h1{font-size:1.25rem;line-height:1.2;margin:0 0 7px}
.subtitle{font-size:.65rem;letter-spacing:.04em;line-height:1.6;margin:0}
.preview-note{font-size:.85rem;line-height:1.6;background:#e5f1fb;border:1px solid var(--line);border-radius:12px;padding:12px 16px;margin-bottom:20px}
.record-meta{display:flex;flex-wrap:wrap;gap:14px 40px;font-size:.83rem;margin:0 0 24px;padding:0 4px}
.record-meta>div{flex:1 1 220px;min-width:0;overflow-wrap:anywhere}
dt{font-weight:650}dd{margin:5px 0 0;color:var(--muted)}
.progress{margin-bottom:24px}.progress>p{font-size:.85rem;font-weight:700;color:var(--blue)}
.progress ol{padding:0;margin:12px 0 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;gap:8px}
.progress li{font-size:.68rem;line-height:1.5;color:var(--muted);padding-top:6px;overflow-wrap:anywhere}
.progress li span{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px solid #aecce3;background:#e2eef8;color:var(--blue);font-size:1rem;font-weight:750;margin-bottom:10px}
.progress li[aria-current]{color:var(--blue);font-weight:750}
.progress li[aria-current] span{background:var(--blue);border-color:var(--blue);color:white;box-shadow:0 0 0 3px #f3f8fc,0 0 0 5px #7eafd3}
.progress li.complete{color:var(--blue)}
.progress li.complete span{background:var(--blue);border-color:var(--blue);color:white}
form,.success{background:white;border:1px solid var(--line);border-radius:20px;box-shadow:0 12px 36px #153c6008;padding:24px 18px}
.section-heading{margin-bottom:26px}.eyebrow{color:var(--blue);font-size:.72rem;font-weight:750;letter-spacing:.1em;margin:0 0 10px}
h2{font-size:1.45rem;line-height:1.3;margin:0;color:var(--blue);overflow-wrap:anywhere}
.section-heading>p:last-child,.success>p{font-size:.9rem;line-height:1.65;color:var(--muted)}
.fields{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}
.field,fieldset{min-width:0}.field>label,legend{font-size:.94rem;font-weight:650;line-height:1.55}
.field>label{display:block;margin-bottom:8px}
input:not([type=radio]):not([type=checkbox]),textarea{display:block;width:100%;min-width:0;max-width:100%;min-height:48px;border:1px solid #9fb8cc;border-radius:9px;padding:11px 12px;font:inherit;font-size:1rem;color:var(--dark);background:#fff}
input[type=date]{appearance:none;-webkit-appearance:none;min-height:48px}
input[readonly]{background:var(--pale)!important;color:var(--muted)!important}
textarea{resize:vertical;line-height:1.6}
fieldset{margin:0;padding:0;border:0}legend{padding:0;margin-bottom:10px}
.choices{display:flex;flex-wrap:wrap;gap:10px}
.choices label{display:flex;align-items:center;gap:10px;min-height:48px;border:1px solid var(--line);border-radius:9px;padding:11px 14px;font-size:.9rem;cursor:pointer;line-height:1.5}
.choices label:has(input:checked){background:var(--pale);border-color:var(--blue)}
input[type=checkbox],input[type=radio]{width:20px;height:20px;flex-shrink:0;margin:0;accent-color:var(--blue);cursor:pointer}
.interests{display:grid;grid-template-columns:minmax(0,1fr)}
.hint{font-size:.8rem;color:var(--muted);line-height:1.6;margin:7px 0 0}
#contact-help{margin-top:-12px}
.error{font-size:.83rem;line-height:1.5;color:var(--error);margin:7px 0 0}
[aria-invalid=true]{border-color:var(--error)!important;outline:1px solid var(--error)}
:focus-visible{outline:3px solid #1677bd;outline-offset:4px}
h2:focus{outline:none}h2:focus-visible{outline:3px solid #1677bd;outline-offset:5px}
.form-actions{border-top:1px solid var(--line);margin-top:30px;padding-top:22px;display:flex;gap:12px;justify-content:flex-end}
button{border:1px solid var(--blue);border-radius:10px;min-height:48px;padding:12px 18px;background:var(--blue);color:white;font:inherit;font-size:.94rem;font-weight:650;cursor:pointer;line-height:1.4}
button:hover{background:#104d83}.secondary{background:white;color:var(--blue)}.secondary:hover{background:var(--pale)}
.navigation-action{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--blue);border-radius:10px;min-height:48px;padding:12px 18px;font:inherit;font-size:.94rem;font-weight:650;line-height:1.4;text-decoration:none;vertical-align:middle}
.success .navigation-action{margin:14px 6px 0}
.current-user .navigation-action:not([hidden])+button{margin-left:0}
#next{margin-left:auto}
.review-section{border:1px solid var(--line);border-radius:12px;margin-bottom:18px;padding:18px}
.review-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px 12px;flex-wrap:wrap;margin-bottom:14px}
.review-heading h3{flex:1 1 140px;min-width:0;margin:0}
.review-edit{flex-shrink:0;min-height:48px;padding:10px 12px;background:transparent;color:var(--blue);border-color:transparent;font-size:.875rem}
.review-edit:hover{background:var(--pale)}
h3{font-size:1rem;line-height:1.5;margin:0 0 14px;color:var(--blue)}
.review-section dl,.team-note dl{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin:0;font-size:.87rem;line-height:1.5}
.review-section dd{white-space:pre-wrap;overflow-wrap:anywhere}
.team-note{background:#f3f7fa;border-radius:12px;padding:18px;margin:24px 0;color:var(--muted)}
.team-note p{font-size:.85rem;line-height:1.6}.team-note dl{font-size:.8rem}
.authorization{margin-top:28px}.authorization legend{color:var(--blue)}
.authorized-by{margin-bottom:8px;padding:6px 4px}
.authorized-by .auth-label{font-size:.85rem;color:var(--muted);margin:0 0 4px;font-weight:650}
.authorized-by .auth-name{margin:0;font-size:1rem;color:var(--dark);font-weight:700}
.consent{display:flex;align-items:flex-start;gap:12px;padding:16px 12px;margin-top:12px;background:var(--pale);border-radius:10px;font-size:.9rem;line-height:1.7;cursor:pointer}.consent input{margin-top:4px}
.authorization-date{font-size:.85rem;color:var(--muted);margin-bottom:0}
.success{text-align:center;padding:38px 22px}.success-icon{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;background:var(--pale);color:var(--blue);font-size:2rem;margin:0 auto 22px}.success button{margin-top:14px}
.page-footer{text-align:center;padding:26px 0;font-size:.75rem;color:var(--muted)}
#login-panel{max-width:480px;margin:0 auto 24px}
.login-fields{display:grid;gap:20px}
.password-control{display:flex;gap:8px;align-items:center}
.password-control input{flex:1;min-width:0}
.password-control button{flex-shrink:0;padding:12px}
#login-submit{width:100%;margin-top:12px}
#login-form button:disabled{opacity:.65;cursor:wait}
.current-user{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;margin-bottom:18px;padding:12px;background:var(--pale);border:1px solid var(--line);border-radius:12px}
.password-change-fields{display:grid;gap:18px}
#password-change-panel{max-width:480px;margin:0 auto 18px}
#password-change-panel form{background:white}
#password-change-panel .field input{min-height:48px}
#password-change-panel #password-change-submit{width:100%;margin-top:12px}
.current-user dl{display:flex;flex:1;flex-wrap:wrap;gap:8px 20px;min-width:0;margin:0;font-size:.83rem}
.current-user dl>div{min-width:0;overflow-wrap:anywhere}
.current-user dd{margin-top:3px}
.current-user button{margin-left:auto}
#logout-error{flex-basis:100%;margin:0}
@media(min-width:640px){.page{padding:40px 24px 0}.institution{gap:20px}.institution img{width:88px;height:88px}.brand{font-size:.85rem}h1{font-size:1.85rem}.subtitle{font-size:.8rem}form{padding:36px}.fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.full{grid-column:1/-1}.interests{grid-template-columns:repeat(2,minmax(0,1fr))}.progress li{font-size:.82rem}.review-section dl,.team-note dl{grid-template-columns:repeat(2,minmax(0,1fr))}.review-section{padding:22px}h2{font-size:1.7rem}}
@media(prefers-reduced-motion:no-preference){button{transition:background .15s ease}}
@media(min-width:640px){.institution{gap:26px}.institution img{width:180px;height:136px;padding:10px 18px;border-radius:20px}.brand{font-size:1rem}.progress li span{width:42px;height:42px;font-size:1.1rem}}
@media(max-width:639px){
  .record-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin-bottom:16px}
  .record-meta #record-child{grid-column:1/-1}
  .institution .brand{font-size:.75rem}
  .institution .subtitle{font-size:.75rem;letter-spacing:.02em}
  .progress ol{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 14px}
  .progress li{font-size:.875rem;overflow-wrap:normal;padding-top:0}
  .progress li span{width:32px;height:32px;margin-bottom:8px}
  .review-section dl{font-size:1rem;line-height:1.6}
  .team-note p,.team-note dl{font-size:.875rem;line-height:1.6}
  .consent{font-size:1rem}
}
