body.pilot-access{background:#f4f6fa;color:#1b2c49}.pilot-access main{max-width:1100px;margin:0 auto;padding:32px 24px}.pilot-access .brand{color:#172b4d;margin:30px 0}.access-admin{text-align:right}.access-admin a{color:#a47f39}.pilot-access #entries{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.pilot-access #entries a{text-decoration:none;color:inherit}.pilot-access #entries img{width:36px;height:36px}.pilot-access form{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.pilot-access input,.pilot-access select{display:block;width:100%;padding:11px;border:1px solid #d4dce5;border-radius:9px;box-sizing:border-box}.pilot-access label{display:block}.pilot-access .wide{grid-column:1/-1}#access-error{color:#a23838;margin:20px 0}.pilot-access .context-card{display:flex;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid #dce2eb}@media(max-width:700px){.pilot-access #entries,.pilot-access form{grid-template-columns:1fr}}
/* Brand entrance: navy canvas, white portal cards, original gold icons. */
body.pilot-access{min-height:100vh;min-height:100dvh;background:var(--navy,#0d1b3a);color:#fff}
.pilot-access main{min-height:100vh;min-height:100dvh;padding-top:32px;padding-bottom:56px}
.pilot-access .brand{color:#fff}
.pilot-access .brand small{color:#c2cde0}
.pilot-access main>h1{color:#fff}
.pilot-access main>p{color:#c2cde0;line-height:1.6}
.pilot-access .access-admin a{color:#e0c18c}
.pilot-access .panel{background:#fff;color:var(--ink,#21324a);border-color:#e2e6ed;box-shadow:0 12px 30px #02091925}
.pilot-access #entries a{color:var(--ink,#21324a);background:#fff;transition:border-color .15s,transform .15s,box-shadow .15s}
.pilot-access #entries a:hover{border-color:var(--gold,#c9a66b);transform:translateY(-2px);box-shadow:0 16px 32px #02091940}
.pilot-access #entries a:focus-visible{outline:3px solid #e0c18c;outline-offset:5px}
.pilot-access #entries p{color:#64748b;line-height:1.55}
.pilot-access #access-body>p{color:#c2cde0}
.pilot-access #access-body>.context-card{color:#fff;border-color:#ffffff30}
.pilot-access #access-body>.context-card a{color:#e0c18c}
.pilot-access .auth-session a{color:#77561e;font-weight:600}
.pilot-access input,.pilot-access select{color:var(--ink,#21324a);background:#fff}
.pilot-access #access-error{color:#ffd1ca}
@media(prefers-reduced-motion:reduce){.pilot-access #entries a{transition:none}.pilot-access #entries a:hover{transform:none}}

.pilot-access .brand.brand-logo{width:min(360px,100%);padding:14px;background:#fff;border-radius:12px;margin:30px 0 36px}.pilot-access .brand.brand-logo img{width:100%;height:auto;display:block}
.pilot-access .brand.brand-logo{width:min(360px,85%);padding:0;background:transparent;border-radius:0;aspect-ratio:1188/410;margin:32px 0 42px;overflow:hidden}.pilot-access .brand.brand-logo img{max-height:none}
.pilot-access .brand-motto{margin:38px 0 0;color:#d9b674;font-size:16px;letter-spacing:.09em}
#portal-dialog{width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 48px);box-sizing:border-box;border:1px solid #d2b073;border-radius:20px;padding:28px;background:#fff;color:#21324a;box-shadow:0 28px 90px #0006}
#portal-dialog::backdrop{background:#061229b8;backdrop-filter:blur(6px)}
.portal-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.portal-dialog-head h2{margin:0;font-size:24px}.portal-dialog-head button{border:0;background:#f3f5f8;border-radius:50%;width:36px;height:36px;padding:0;flex-shrink:0;color:#21324a}
.portal-tabs{display:flex;gap:8px;margin:24px 0}.portal-tabs button{flex:1;padding:12px;border:1px solid #e1e5ec;border-radius:10px;background:#f7f8fa;color:#53617a}.portal-tabs button.selected{background:#0d1b3a;color:#fff;border-color:#0d1b3a;box-shadow:inset 0 -3px #c9a66b}
.portal-intro{line-height:1.6;color:#65738a;margin-bottom:24px}.pilot-access textarea{display:block;width:100%;box-sizing:border-box;resize:vertical;padding:11px;border:1px solid #d4dce5;border-radius:9px;font:inherit;color:#21324a;background:#fff}.pilot-access .consent{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5}.pilot-access .consent input{width:18px;height:18px;margin:2px 0;flex-shrink:0;accent-color:#0d1b3a}.portal-account{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:13px;border-top:1px solid #e5e9ef;padding-top:18px;margin-top:16px}.portal-account span{overflow-wrap:anywhere}.portal-account a{color:#8b672f}.portal-account a.primary{color:#fff}.fine-print{font-size:12px;color:#65738a;margin:0}#portal-message{line-height:1.5;overflow-wrap:anywhere}.application-success{border-left:3px solid #c9a66b;padding:4px 0 4px 20px}.application-record{padding:14px 0;border-bottom:1px solid #e2e6ed}.application-record summary{cursor:pointer}.application-record p{overflow-wrap:anywhere;white-space:pre-wrap}
@media(max-width:700px){#portal-dialog{padding:20px}.portal-dialog-head h2{font-size:21px}.pilot-access main{padding-top:20px}.pilot-access .brand.brand-logo{margin-bottom:28px}}

/* Each portal exposes its actions before a form is opened. */
.pilot-access #entries .portal-card{display:flex;flex-direction:column;min-width:0;padding:24px}
.pilot-access #entries .portal-card h2{font-size:21px;margin:18px 0 8px}
.pilot-access #entries .portal-card p{margin:0 0 24px;flex:1}
.portal-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto}
.pilot-access #entries .portal-actions a{display:inline-flex;align-items:center;justify-content:center;flex:1;min-height:44px;box-sizing:border-box;padding:10px 14px;border:1px solid #d4b47c;border-radius:9px;font-size:14px;font-weight:600;transition:background .15s,box-shadow .15s}
.pilot-access #entries .portal-actions .entry-login{background:#0d1b3a;color:#fff;border-color:#0d1b3a}
.pilot-access #entries .portal-actions .entry-register{background:#fff;color:#77561e}
.pilot-access #entries .portal-actions a:hover{transform:none;box-shadow:0 3px 10px #0d1b3a18;background:#f5eddf;color:#0d1b3a}
#portal-body{margin-top:24px}
