/* Emil design engineering: purposeful feedback, readable controls, no animated navigation. */
html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
body{--press-ease:cubic-bezier(.23,1,.32,1)}
.brand-seal{position:relative;display:inline-block;overflow:hidden;width:54px;height:54px;aspect-ratio:1;border-radius:50%;flex:none;background:#060c18}
.brand-seal img,.portal-brand .brand-seal img,.future-orbit .brand-seal img{position:absolute;left:-47%;top:-17.5%;width:193%;max-width:none;height:auto;object-fit:contain;border-radius:0;transform:none}
.entry-mode.future-signature .future-orbit .brand-seal{width:90px;height:90px}
.entry-mode.future-signature .future-orbit{width:112px;height:112px}
body:not(.entry-mode) .lab-main{padding-top:20px;padding-bottom:calc(32px + env(safe-area-inset-bottom));max-width:1120px}
body:not(.entry-mode) .lab-main>#message{position:sticky;top:0;z-index:40;margin:0 0 12px;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:#101f32;font-size:13px;line-height:1.5}
body:not(.entry-mode) .lab-main>#message:empty{display:none}
.portal-intro{border-top:0;padding-top:0;margin-bottom:18px}.portal-brand{margin-bottom:16px}.portal-intro h1{font-size:clamp(26px,3vw,36px);line-height:1.12;text-transform:none;letter-spacing:-.035em;max-width:none}.portal-intro>p{font-size:14px;max-width:60ch}
#portal .card{border-radius:16px;border-color:#2c4058;background:linear-gradient(150deg,#13243a,#0d1b2e 70%);padding:24px;margin:18px 0}
#portal h2{font-family:system-ui,sans-serif;font-size:clamp(23px,2.6vw,29px);font-weight:750;letter-spacing:-.035em;line-height:1.2}
#portal h3{font-size:16px;letter-spacing:-.015em}
#portal button,#portal input,#portal select{border-radius:10px}#portal input,#portal select{font-size:16px;min-height:48px}
#portal button,.portal-nav a{touch-action:manipulation;user-select:none;-webkit-user-select:none}
#portal button{transition:transform 100ms var(--press-ease)}#portal button:active:not(:disabled){transform:scale(.97);transition-duration:160ms}#portal button:focus-visible{transform:none;transition:none}
#portal button:disabled{opacity:.45;cursor:not-allowed}#portal button.secondary{border-color:#40546d}
#portal .workspace-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,320px);column-gap:28px;row-gap:8px;padding:20px 24px}
.workspace-card>.row{grid-area:1/1;flex-wrap:nowrap!important}.workspace-card>label{grid-area:1/2;align-self:end;margin:0;font-size:12px}.workspace-card>select{grid-area:2/2;margin:0}.workspace-card>#roles{grid-area:2/1;align-self:center;margin:0;font-size:13px;color:var(--champagne)}
.portal-nav{position:sticky;top:54px;z-index:30;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:18px 0;padding:6px;border:1px solid var(--line);border-radius:14px;background:#0a1627}
.portal-nav a{min-width:0;min-height:48px;justify-content:center;border:0;border-radius:9px;padding:10px 8px;font-weight:600;font-size:13px;color:#b7c1d0}
.portal-nav a[aria-current]{background:#c6a15b;color:#060c18;box-shadow:0 2px 6px #0002}
.portal-panel:focus{outline:none}.portal-panel:focus-visible{outline:2px solid var(--champagne);outline-offset:5px}
#athletes li,#account-requests li,#call-rows li,#grade-history li{border-radius:12px;border-color:#2c4058;padding:18px}
#athletes .lab-actions{padding-top:12px;border-top:1px solid #23374e}#account-requests li button{flex:1 1 170px}
#portal #frequency-profiles .card{background:#091525;margin:0;border-radius:12px}#frequency-profiles{gap:16px}#grade-current{border-radius:0 10px 10px 0}
#portal .lab-actions button{font-size:12px;padding:10px 12px;min-height:46px}
#portal input[type=checkbox]{min-height:20px;height:20px;width:20px;border-radius:4px}
/* Touch does not inherit persistent hover feedback from the reference stylesheet. */
@media(hover:none){#portal button:hover{border-color:var(--line)}.portal-nav a:hover{background:transparent;border-color:transparent}.portal-nav a[aria-current]:hover{background:#c6a15b}}
@media(hover:hover) and (pointer:fine){#portal button:hover:not(:disabled){border-color:var(--gold)}.portal-nav a:not([aria-current]):hover{background:#172a41}}
@media(max-width:600px){body:not(.entry-mode) .lab-main{padding-bottom:calc(104px + env(safe-area-inset-bottom));padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}#portal .card{padding:20px}.portal-brand{gap:12px}.portal-intro h1{font-size:27px}.portal-intro>.tag{font-size:9px}.portal-brand .brand-seal{width:48px;height:48px}.portal-intro>p{font-size:13px}.portal-nav{position:fixed;top:auto;bottom:0;left:0;right:0;margin:0;border-radius:16px 16px 0 0;padding:8px 10px calc(8px + env(safe-area-inset-bottom));gap:4px;box-shadow:0 -8px 24px #0003}.portal-nav a{font-size:11px;line-height:1.3;text-align:center;min-height:52px;padding:6px 3px}.workspace-card>.row{flex-wrap:wrap!important}.workspace-card>label{margin-top:14px}#portal .workspace-card{display:block;padding:18px 20px}.workspace-card>#roles{margin-top:10px;font-size:12px}.workspace-card>select{margin:6px 0 0}.lab-actions button{flex-basis:100%}.entry-mode.future-signature .future-orbit .brand-seal{width:76px;height:76px}.entry-mode.future-signature .future-orbit{width:96px;height:96px}}
@media(prefers-reduced-motion:reduce){#portal button,.portal-nav a{transition:none;transform:none!important}}
#portal button:focus-visible,.entry-mode.future-signature #login button.primary:focus-visible{transition:none;transform:none!important}
