/* Public guest presentation only. Administrative styles are independent. */
@property --accent {
    syntax: '<color>';
    inherits: true;
    initial-value: #4F8CFF;
}
:root {
    color-scheme: dark;
    --page: #080B10;
    --ink: #E8EDF5;
    --muted: #A0AEC0;
    --palette-color: #4F8CFF;
    --accent: var(--palette-color);
    --accent-strong: color-mix(in srgb, var(--accent), white 16%);
    --accent-soft: color-mix(in srgb, var(--accent) 9%, transparent);
    --border: color-mix(in srgb, var(--accent) 15%, #1c222d);
    --surface: #111821;
    --input: #0c121a;
    --grid: color-mix(in srgb, var(--accent) 12%, transparent);
    --shadow: 0 26px 90px -28px #000b;
    --error: #ffa2b1;
    --error-bg: #2c1720;
    --error-border: #693141;
    transition: --accent 400ms ease;
}
:root[data-public-accent=blue],[data-accent-option=blue] {
    --palette-color: #4F8CFF;
}
:root[data-public-accent=cyan],[data-accent-option=cyan] {
    --palette-color: #22D3EE;
}
:root[data-public-accent=emerald],[data-accent-option=emerald] {
    --palette-color: #34D399;
}
:root[data-public-accent=violet],[data-accent-option=violet] {
    --palette-color: #A78BFA;
}
:root[data-public-accent=amber],[data-accent-option=amber] {
    --palette-color: #FBBF24;
}
@font-face {
    font-family:Inter;
    src:url('../fonts/inter/Inter-variable.woff2') format('woff2');
    font-style:normal;
    font-weight:100 900;
    font-display:swap
}
* {
    box-sizing:border-box
}
html {
    min-height:100%;
    scroll-behavior:smooth
}
body {
    margin:0
}
button,input {
    font:inherit
}
a {
    color:inherit;
    text-decoration:none
}
button,a,input {
    -webkit-tap-highlight-color:transparent
}
button {
    cursor:pointer
}
button:disabled {
    cursor:wait
}
button:focus-visible,a:focus-visible,input:focus-visible {
    outline:3px solid var(--accent);
    outline-offset:5px
}
.icon {
    width:21px;
    height:21px;
    flex-shrink:0;
    vertical-align:middle
}
.public-entry {
    font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;
    -webkit-font-smoothing:antialiased;
    color:var(--ink);
    background:var(--page);
    min-height:100svh;
    display:flex;
    flex-direction:column;
    isolation:isolate;
    overflow-x:hidden
}
.landing-page .interactive-grid,.cursor-trail {
    position:fixed;
    inset:0;
    pointer-events:none!important;
    width:100%;
    height:100%
}
.interactive-grid {
    z-index:-1
}
.cursor-trail {
    z-index:3
}
.skip-link {
    position:fixed;
    top:10px;
    left:12px;
    transform:translateY(-200%);
    z-index:20;
    padding:12px 20px;
    border-radius:8px;
    background:var(--ink);
    color:var(--page)
}
.skip-link:focus {
    transform:translateY(0)
}
.public-header {
    width:min(100% - 112px,1440px);
    margin:0 auto;
    min-height:126px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:28px;
    position:relative;
    z-index:4
}
.institute-brand {
    display:flex;
    align-items:center;
    gap:15px;
    max-width:560px
}
.institute-brand img {
    object-fit:contain;
    flex-shrink:0;
    filter:drop-shadow(0 4px 12px rgba(48,101,223,.1))
}
.brand-copy {
    display:flex;
    flex-direction:column;
    gap:6px
}
.brand-copy strong {
    font-size:19px;
    letter-spacing:-.6px;
    font-weight:750
}
.brand-copy strong span {
    color:var(--accent);
    margin-left:2px
}
.brand-copy small {
    font-size:11px;
    font-weight:450;
    color:var(--muted);
    line-height:1.5;
    letter-spacing:.02px
}
.public-preferences {
    display:flex;
    align-items:center;
    gap:16px
}
.language-switch {
    display:flex;
    gap:3px;
    padding:4px;
    border:1px solid var(--border);
    border-radius:11px;
    background:var(--surface)
}
.language-switch a {
    padding:8px 11px;
    font-size:12px;
    line-height:1;
    font-weight:650;
    color:var(--muted);
    border-radius:7px;
    transition:background .2s,color .2s
}
.language-switch a[aria-current=true] {
    color:var(--accent);
    background:var(--accent-soft)
}
.language-switch a:hover {
    color:var(--ink)
}
.preference-divider {
    height:22px;
    width:1px;
    background:var(--border)
}
.theme-toggle {
    display:grid;
    place-items:center;
    width:42px;
    height:42px;
    border:1px solid var(--border);
    border-radius:11px;
    color:var(--ink);
    background:var(--surface);
    transition:background .2s,transform .2s
}
.theme-toggle:hover {
    background:var(--accent-soft);
    transform:translateY(-1px)
}
.theme-sun {
    display:none;
    color:#ffc66b
}
[data-bs-theme=dark] .theme-sun {
    display:block
}
[data-bs-theme=dark] .theme-moon {
    display:none
}
.landing-main {
    width:min(100% - 144px,1320px);
    margin:auto;
    display:grid;
    grid-template-columns:1.05fr 1fr;
    gap:62px;
    align-items:center;
    padding:34px 0 54px;
    min-height:650px
}
.hero-copy {
    position:relative;
    z-index:2;
    padding-bottom:8px
}
.hero-eyebrow {
    display:flex;
    align-items:center;
    gap:11px;
    font-size:10px;
    font-weight:700;
    letter-spacing:2px;
    text-transform:uppercase;
    color:var(--accent);
    margin:0 0 30px
}
.hero-eyebrow>span {
    width:26px;
    height:2px;
    background:var(--accent)
}
.hero-copy h1 {
    font-size:clamp(40px,4.35vw,65px);
    font-weight:720;
    line-height:1.13;
    letter-spacing:-3px;
    margin:0 0 26px
}
.hero-copy h1>span {
    color:var(--accent)
}
.hero-description {
    font-size:15px;
    line-height:1.9;
    color:var(--muted);
    max-width:474px;
    margin:0
}
.hero-action {
    margin:34px 0 0
}
.primary-button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:31px;
    min-height:53px;
    border:1px solid transparent;
    border-radius:10px;
    padding:15px 24px;
    background:#3065df;
    color:white;
    font-size:13px;
    font-weight:650;
    box-shadow:0 9px 24px -8px rgba(48,101,223,.4);
    transition:background .18s,box-shadow .18s,transform .18s
}
.primary-button:hover {
    background:#2454c7;
    box-shadow:0 12px 30px -9px rgba(48,101,223,.55);
    transform:translateY(-2px)
}
.primary-button .icon {
    width:19px;
    height:19px
}
.hero-action>p {
    display:flex;
    align-items:flex-start;
    gap:7px;
    margin:15px 0 0;
    color:var(--muted);
    font-size:10px;
    line-height:1.7
}
.hero-action>p .icon {
    width:13px;
    height:13px;
    margin-top:2px
}
.hero-capabilities {
    display:flex;
    gap:22px;
    border-top:1px solid var(--border);
    padding-top:23px;
    margin-top:43px;
    max-width:484px
}
.hero-capabilities>div {
    display:flex;
    align-items:center;
    gap:8px;
    color:var(--muted);
    font-size:10px;
    line-height:1.5;
    white-space:nowrap
}
.hero-capabilities .icon {
    color:var(--accent);
    width:18px;
    height:18px
}
.identity-stage {
    position:relative;
    margin:0;
    min-width:0;
    align-self:stretch;
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-height:590px
}
.stage-topline {
    display:flex;
    justify-content:space-between;
    position:relative;
    z-index:2;
    color:var(--muted);
    font-size:8px;
    font-weight:600;
    letter-spacing:1.8px;
    padding:17px 2px;
    border-top:1px solid var(--border)
}
.stage-topline:before,.stage-topline:after {
    content:'';
    position:absolute;
    top:-2px;
    width:3px;
    height:3px;
    background:var(--accent);
    border-radius:50%
}
.stage-topline:before {
    left:0
}
.stage-topline:after {
    right:0
}
.stage-aura {
    position:absolute;
    width:110%;
    height:88%;
    left:-5%;
    top:5%;
    pointer-events:none;
    background:radial-gradient(ellipse at 50% 50%,rgba(82,135,222,.13),transparent 67%)
}
.portrait-frame {
    position:relative;
    width:100%;
    height:540px;
    min-height:250px;
    margin:-15px 0 -3px
}
.portrait-frame canvas,.head-poster {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:contain;
    pointer-events:none!important;
    transition:opacity .6s
}
.portrait-frame canvas {
    opacity:0
}
.head-poster {
    opacity:.9
}
[data-scene-state=ready] canvas {
    opacity:1
}
[data-scene-state=ready] .head-poster {
    opacity:0
}
.stage-caption {
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    border-top:1px solid var(--border);
    padding:15px 0 0;
    min-height:35px;
    color:var(--muted);
    font-size:9px;
    letter-spacing:.1px
}
.stage-caption .icon {
    width:13px;
    height:13px;
    color:var(--accent);
    margin-right:7px
}
.interaction-hint {
    display:none;
    align-items:center
}
.static-hint {
    display:inline
}
[data-scene-state=ready] .interaction-hint {
    display:inline-flex
}
[data-scene-state=ready] .static-hint {
    display:none
}
.public-footer {
    width:min(100% - 112px,1440px);
    margin:0 auto;
    min-height:72px;
    border-top:1px solid var(--border);
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    color:var(--muted);
    font-size:10px;
    position:relative;
    z-index:2
}
.public-footer strong {
    font-weight:550;
    margin-left:3px
}
.footer-location {
    display:flex;
    align-items:center;
    gap:7px
}
.location-dot {
    width:5px;
    height:5px;
    display:inline-block;
    border-radius:50%;
    background:var(--accent);
    box-shadow:0 0 0 3px var(--accent-soft)
}
.interactive-grid {
    opacity:.68
}
/* Authentication uses the existing Laravel POST; no 3D modules on this page. */
.login-main {
    width:min(100% - 40px,444px);
    margin:auto;
    padding:15px 0 42px
}
.back-link {
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:11px;
    color:var(--muted);
    margin:0 0 21px 2px;
    transition:color .15s
}
.back-link:hover {
    color:var(--accent)
}
.back-link .icon {
    width:17px;
    height:17px
}
.auth-card {
    position:relative;
    background:var(--surface);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    border-radius:22px;
    padding:32px 34px 0;
    overflow:hidden;
    backdrop-filter:blur(20px)
}
.auth-card:before {
    content:'';
    position:absolute;
    top:0;
    left:15%;
    right:15%;
    height:1px;
    background:linear-gradient(90deg,transparent,rgba(121,166,255,.55),transparent)
}
.auth-heading {
    margin:0 0 29px
}
.auth-mark {
    display:grid;
    place-items:center;
    width:56px;
    height:56px;
    border:1px solid var(--border);
    border-radius:15px;
    background:var(--accent-soft);
    margin-bottom:24px
}
.auth-eyebrow {
    font-size:9px!important;
    line-height:1!important;
    font-weight:700;
    letter-spacing:2px;
    color:var(--accent)!important;
    margin-bottom:12px!important
}
.auth-heading h1 {
    font-size:25px;
    line-height:1.3;
    font-weight:680;
    letter-spacing:-.85px;
    margin:0 0 12px
}
.auth-heading>p {
    font-size:12px;
    line-height:1.8;
    color:var(--muted);
    margin:0
}
.auth-field {
    margin-bottom:20px
}
.auth-field>label {
    display:block;
    font-size:11px;
    font-weight:600;
    line-height:1.5;
    margin:0 0 8px
}
.input-shell {
    display:flex;
    align-items:center;
    gap:12px;
    border:1px solid var(--border);
    border-radius:9px;
    background:var(--input);
    transition:border-color .2s,box-shadow .2s;
    padding-left:14px;
    height:49px
}
.input-shell>.icon {
    width:18px;
    height:18px;
    color:var(--muted)
}
.input-shell:focus-within {
    border-color:var(--accent);
    box-shadow:0 0 0 3px var(--accent-soft)
}
.input-shell.is-invalid {
    border-color:var(--error-border)
}
.input-shell input {
    width:100%;
    min-width:0;
    border:0;
    outline:0;
    box-shadow:none;
    font-size:12px;
    line-height:1.5;
    padding:13px 10px 13px 0;
    background:transparent;
    color:var(--ink)
}
.input-shell input:focus-visible {
    outline:0
}
.input-shell input::placeholder {
    color:var(--muted);
    opacity:.7
}
.input-shell input:-webkit-autofill {
    -webkit-text-fill-color:var(--ink);
    box-shadow:0 0 0 100px var(--input) inset
}
.password-toggle {
    display:grid;
    place-items:center;
    flex-shrink:0;
    width:42px;
    height:41px;
    margin-right:3px;
    background:transparent;
    color:var(--muted);
    border:0;
    border-radius:6px
}
.password-toggle:hover {
    color:var(--accent);
    background:var(--accent-soft)
}
.password-toggle .icon {
    width:18px;
    height:18px
}
.eye-hide {
    display:none
}
[aria-pressed=true] .eye-show {
    display:none
}
[aria-pressed=true] .eye-hide {
    display:block
}
.remember-label {
    display:flex;
    align-items:center;
    gap:9px;
    font-size:11px;
    color:var(--muted);
    margin:3px 0 25px;
    cursor:pointer;
    width:fit-content
}
.remember-label input {
    accent-color:#3065df;
    width:15px;
    height:15px;
    margin:0;
    cursor:pointer
}
.submit-button {
    width:100%;
    justify-content:space-between;
    min-height:49px;
    padding:13px 18px;
    margin-bottom:29px
}
.submit-button:disabled {
    transform:none;
    opacity:.75
}
.submit-spinner {
    display:none;
    border:2px solid #ffffff40;
    border-top-color:white;
    width:17px;
    height:17px;
    border-radius:50%;
    animation:spin .8s linear infinite
}
[aria-busy=true] .submit-spinner {
    display:block
}
[aria-busy=true] .submit-button>.icon {
    display:none
}
@keyframes spin {
    to {
        transform:rotate(360deg)
    }
}
.auth-card-footer {
    border-top:1px solid var(--border);
    margin:0 -34px;
    padding:16px 20px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    background:var(--accent-soft);
    font-size:9px;
    line-height:1.5;
    color:var(--muted)
}
.auth-card-footer .icon {
    width:15px;
    height:15px;
    color:var(--accent)
}
.auth-support {
    text-align:center;
    color:var(--muted);
    font-size:10px;
    line-height:1.8;
    max-width:360px;
    margin:22px auto 0
}
.auth-error {
    display:flex;
    align-items:flex-start;
    gap:10px;
    background:var(--error-bg);
    color:var(--error);
    border:1px solid var(--error-border);
    border-radius:9px;
    padding:13px 12px;
    margin:0 0 22px;
    font-size:11px;
    line-height:1.6
}
.auth-error>.icon {
    width:18px;
    height:18px;
    margin-top:1px
}
.auth-error strong {
    font-weight:650
}
.auth-error p {
    font-size:10px;
    line-height:1.7;
    margin:4px 0 0
}
.login-page .public-header {
    min-height:112px
}
.login-page .public-footer {
    min-height:65px
}
@media(min-width:1700px) {
    .landing-main {
        gap:88px;
        padding:45px 0 65px
    }
    .portrait-frame {
        height:590px
    }
    .identity-stage {
        min-height:640px
    }
    .hero-copy h1 {
        font-size:68px
    }
    .hero-description {
        font-size:16px
    }
    .hero-capabilities {
        margin-top:48px
    }
    .public-header {
        min-height:144px
    }
}
@media(max-width:1200px) {
    .public-header,.public-footer {
        width:calc(100% - 72px)
    }
    .landing-main {
        width:calc(100% - 88px);
        gap:25px;
        min-height:600px
    }
    .hero-copy h1 {
        font-size:clamp(38px,4.4vw,53px);
        letter-spacing:-2px
    }
    .hero-description {
        font-size:13px;
        max-width:400px
    }
    .hero-eyebrow {
        font-size:9px;
        letter-spacing:1.6px
    }
    .hero-capabilities {
        gap:13px
    }
    .hero-capabilities>div {
        font-size:9px;
        gap:6px
    }
    .portrait-frame {
        height:490px
    }
    .identity-stage {
        min-height:540px
    }
    .stage-topline {
        font-size:7px;
        letter-spacing:1.4px
    }
}
@media(max-width:850px) {
    .public-header {
        width:calc(100% - 44px);
        min-height:100px;
        gap:14px
    }
    .institute-brand {
        gap:11px
    }
    .institute-brand img {
        width:44px;
        height:44px
    }
    .brand-copy strong {
        font-size:17px
    }
    .brand-copy small {
        font-size:9px;
        max-width:245px
    }
    .public-preferences {
        gap:10px
    }
    .preference-divider {
        display:none
    }
    .language-switch a {
        padding:8px
    }
    .theme-toggle {
        width:38px;
        height:38px
    }
    .landing-main {
        width:calc(100% - 56px);
        gap:15px;
        min-height:535px;
        padding:28px 0 40px
    }
    .hero-copy h1 {
        font-size:38px;
        letter-spacing:-1.8px;
        line-height:1.15
    }
    .hero-description {
        font-size:12px;
        line-height:1.85
    }
    .hero-eyebrow {
        font-size:8px;
        gap:7px;
        letter-spacing:1px;
        margin-bottom:24px
    }
    .hero-eyebrow>span {
        width:15px
    }
    .hero-action {
        margin-top:25px
    }
    .hero-action>p {
        font-size:9px
    }
    .primary-button {
        font-size:12px;
        padding:14px 19px;
        gap:20px
    }
    .hero-capabilities {
        flex-wrap:wrap;
        gap:12px 16px;
        margin-top:28px;
        padding-top:19px
    }
    .hero-capabilities>div {
        font-size:9px
    }
    .portrait-frame {
        height:430px
    }
    .identity-stage {
        min-height:480px
    }
    .stage-topline {
        font-size:6px;
        letter-spacing:1px
    }
    .stage-caption {
        font-size:8px;
        text-align:center
    }
    .public-footer {
        width:calc(100% - 44px);
        font-size:9px;
        min-height:65px
    }
    .footer-institute {
        display:none
    }
}
@media(max-width:640px) {
    .public-header {
        width:calc(100% - 36px);
        min-height:91px;
        align-items:center
    }
    .institute-brand img {
        width:38px;
        height:38px
    }
    .brand-copy strong {
        font-size:15px;
        letter-spacing:-.45px
    }
    .brand-copy {
        gap:3px
    }
    .brand-copy small {
        max-width:154px;
        font-size:8px;
        line-height:1.45
    }
    .public-preferences {
        gap:7px
    }
    .theme-toggle {
        width:34px;
        height:34px;
        border-radius:9px
    }
    .theme-toggle .icon {
        width:17px;
        height:17px
    }
    .language-switch {
        padding:3px;
        border-radius:9px;
        gap:1px
    }
    .language-switch a {
        font-size:10px;
        padding:7px 6px
    }
    .landing-main {
        width:calc(100% - 44px);
        grid-template-columns:1fr;
        gap:23px;
        margin:0 auto;
        padding:44px 0 31px;
        min-height:0
    }
    .hero-copy {
        padding:0
    }
    .hero-eyebrow {
        font-size:8px;
        letter-spacing:1.7px;
        margin-bottom:22px;
        gap:9px
    }
    .hero-eyebrow>span {
        width:21px
    }
    .hero-copy h1 {
        font-size:clamp(32px,9.5vw,52px);
        letter-spacing:-1.6px;
        line-height:1.16;
        margin-bottom:20px
    }
    .hero-description {
        font-size:13px;
        line-height:1.85;
        max-width:450px
    }
    .hero-action {
        margin-top:25px
    }
    .primary-button {
        font-size:12px;
        min-height:48px;
        gap:28px;
        padding:13px 20px
    }
    .hero-action>p {
        font-size:9px;
        margin-top:13px;
        line-height:1.6
    }
    .hero-capabilities {
        margin-top:27px;
        padding-top:19px;
        gap:15px;
        justify-content:space-between
    }
    .hero-capabilities>div {
        font-size:8px;
        gap:5px
    }
    .hero-capabilities .icon {
        width:15px;
        height:15px
    }
    .identity-stage {
        width:min(100%,420px);
        min-height:380px;
        margin:auto
    }
    .stage-topline {
        padding:13px 0;
        font-size:7px;
        letter-spacing:1.5px
    }
    .portrait-frame {
        height:390px;
        margin-top:-10px
    }
    .stage-caption {
        padding-top:13px;
        font-size:8px
    }
    [data-scene-state=ready] .interaction-hint {
        display:none
    }
    [data-scene-state=ready] .static-hint {
        display:inline
    }
    .public-footer {
        width:calc(100% - 36px);
        min-height:65px;
        gap:12px;
        flex-wrap:wrap;
        font-size:8px
    }
    .login-main {
        width:calc(100% - 36px);
        max-width:420px;
        margin:auto;
        padding:25px 0 28px
    }
    .login-page .public-header {
        min-height:91px
    }
    .auth-card {
        padding:27px 25px 0;
        border-radius:18px
    }
    .auth-heading h1 {
        font-size:24px
    }
    .auth-heading>p {
        font-size:12px
    }
    .auth-mark {
        width:51px;
        height:51px;
        margin-bottom:22px
    }
    .auth-card-footer {
        margin:0 -25px;
        padding:15px 15px;
        font-size:9px
    }
    .auth-field>label {
        font-size:12px
    }
    .input-shell input {
        font-size:16px
    }
    .auth-support {
        font-size:10px;
        padding:0 12px
    }
    .back-link {
        font-size:11px;
        margin-bottom:19px
    }
    .login-page .public-footer {
        min-height:59px
    }
}
@media(max-width:360px) {
    .public-header {
        width:calc(100% - 28px)
    }
    .brand-copy small {
        max-width:125px;
        font-size:7px
    }
    .institute-brand {
        gap:7px
    }
    .institute-brand img {
        width:34px;
        height:34px
    }
    .public-preferences {
        gap:5px
    }
    .hero-capabilities {
        gap:9px
    }
    .hero-capabilities>div {
        font-size:7px
    }
    .auth-card {
        padding-left:21px;
        padding-right:21px
    }
    .auth-card-footer {
        margin-left:-21px;
        margin-right:-21px
    }
    .hero-copy h1 {
        font-size:31px
    }
}
@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior:auto
    }
    *,*:before,*:after {
        transition:none!important;
        animation:none!important
    }
    .cursor-trail {
        display:none
    }
    .primary-button:hover,.theme-toggle:hover {
        transform:none
    }
}
/* Flag menu remains usable through native details/summary without JavaScript. */
.language-switch {
    position:relative;
    display:block;
    padding:0;
    border:0;
    background:transparent
}
.language-switch summary {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    width:55px;
    height:42px;
    list-style:none;
    cursor:pointer;
    border:1px solid var(--border);
    border-radius:11px;
    background:var(--surface);
    color:var(--muted);
    transition:background .2s
}
.language-switch summary::-webkit-details-marker {
    display:none
}
.language-switch summary:focus-visible {
    outline:3px solid var(--accent);
    outline-offset:5px
}
.language-switch summary:hover,.language-switch[open] summary {
    background:var(--accent-soft)
}
.language-flag {
    display:block;
    width:23px;
    height:23px;
    flex-shrink:0;
    border-radius:50%;
    box-shadow:0 0 0 1px var(--border)
}
.language-chevron {
    width:12px;
    height:12px;
    transition:transform .2s
}
.language-switch[open] .language-chevron {
    transform:rotate(180deg)
}
.language-menu {
    position:absolute;
    z-index:8;
    right:0;
    top:calc(100% + 9px);
    width:174px;
    padding:5px;
    border:1px solid var(--border);
    border-radius:12px;
    background:var(--surface);
    backdrop-filter:blur(20px);
    box-shadow:var(--shadow)
}
.language-menu a {
    display:flex;
    align-items:center;
    gap:10px;
    width:auto;
    height:43px;
    padding:8px 11px;
    border-radius:7px;
    color:var(--ink);
    font-size:12px;
    line-height:1.4;
    font-weight:550
}
.language-menu a:hover {
    background:var(--accent-soft);
    color:var(--ink)
}
.language-menu a[aria-current=true] {
    background:#3065df;
    color:#fff
}
@media(max-width:640px) {
    .language-switch summary {
        width:47px;
        height:34px;
        border-radius:9px
    }
    .language-switch summary>.language-flag {
        width:21px;
        height:21px
    }
    .language-menu a {
        padding:8px 11px;
        font-size:12px
    }
    .language-menu {
        width:168px
    }
}
/* Public toolbar: square corners and rectangular flags. */
.public-preferences .theme-toggle,.public-preferences .language-switch,.public-preferences .language-switch summary,.public-preferences .language-menu,.public-preferences .language-menu a {
    border-radius:0
}
.public-preferences .language-flag {
    width:24px;
    height:16px;
    border-radius:0
}
@media(max-width:640px) {
    .public-preferences .language-switch summary>.language-flag {
        width:22px;
        height:15px
    }
}
/* A single moving triangular lattice on the landing; static lattice on login. */
.ambient-background {
    position:fixed;
    inset:0;
    z-index:-3;
    pointer-events:none;
    background:radial-gradient(ellipse at 68% 55%,color-mix(in srgb,var(--accent) 5%,transparent),transparent 55%),radial-gradient(ellipse at 8% 8%,color-mix(in srgb,var(--accent) 3%,transparent),transparent 45%),#080B10;
}
.ambient-background:after {
    content:'';
    position:absolute;
    inset:0;
    opacity:.48;
    background-image:linear-gradient(60deg,transparent 49.5%,var(--grid) 50%,transparent 50.5%),linear-gradient(-60deg,transparent 49.5%,var(--grid) 50%,transparent 50.5%),linear-gradient(var(--grid) 1px,transparent 1px);
    background-size:56px 97px,56px 97px,56px 48.5px;
    mask-image:radial-gradient(ellipse at center,transparent 10%,#000 100%);
}
.landing-page .ambient-background:after {
    display:none;
}
.interactive-grid {
    opacity:1;
    mask-image:linear-gradient(90deg,#0005 0%,#0008 38%,#000 68%);
}
.stage-aura {
    background:radial-gradient(ellipse at center,color-mix(in srgb,var(--accent) 7%,transparent),transparent 68%);
}
.institute-brand img {
    filter:drop-shadow(0 0 14px #0006);
}
.primary-button,.primary-button:hover {
    background:var(--accent);
    color:#080B10;
    box-shadow:0 7px 27px -12px color-mix(in srgb,var(--accent) 65%,transparent);
    border-radius:4px;
}
.primary-button:hover {
    box-shadow:0 8px 32px -10px color-mix(in srgb,var(--accent) 65%,transparent);
}
.remember-label input {
    accent-color:var(--accent);
}
.head-poster {
    background:color-mix(in srgb,var(--accent),white 30%);
    -webkit-mask:url('../models/head-female-poster-v1.svg') center/contain no-repeat;
    mask:url('../models/head-female-poster-v1.svg') center/contain no-repeat;
    mask-mode:alpha;
    filter:none;
    opacity:.95;
}
.auth-card {
    background:#111821ed;
    border-radius:12px;
    border-color:color-mix(in srgb,var(--accent) 12%,#26303f);
    box-shadow:0 24px 100px -24px #000e;
}
.auth-card:before {
    background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--accent) 75%,transparent),transparent);
}
.auth-mark {
    border-radius:6px;
}
/* The login mark follows the chosen palette, like the head and buttons on the landing. */
.auth-mark .scan-frame {
    stroke:var(--accent);
    transition:stroke .4s ease;
}
.auth-mark .scan-face {
    stroke:color-mix(in srgb,var(--accent) 45%,#e8edf5);
    transition:stroke .4s ease;
}
.submit-spinner {
    border-color:#080b1040;
    border-top-color:#080b10;
}
.language-menu a[aria-current=true] {
    background:var(--accent);
    color:#080B10;
}
/* Both menus use square controls; official flags retain their proportions. */
.appearance-switch {
    position:relative;
    display:none;
}
.public-js .appearance-switch {
    display:block;
}
.appearance-switch summary {
    display:grid;
    place-items:center;
    width:42px;
    height:42px;
    list-style:none;
    border:1px solid var(--border);
    background:var(--surface);
    color:var(--accent);
    cursor:pointer;
}
.appearance-switch summary::-webkit-details-marker {
    display:none;
}
.appearance-switch summary:hover,.appearance-switch[open] summary {
    background:var(--accent-soft);
}
.appearance-switch summary:focus-visible {
    outline:3px solid var(--accent);
    outline-offset:5px;
}
.appearance-panel {
    position:absolute;
    z-index:8;
    right:0;
    top:calc(100% + 9px);
    width:280px;
    max-width:calc(100vw - 28px);
    max-height:calc(100svh - 110px);
    overflow:auto;
    padding:21px;
    background:#111821f5;
    border:1px solid var(--border);
    box-shadow:0 14px 50px #0008;
    backdrop-filter:blur(20px);
}
.appearance-panel h2 {
    font-size:14px;
    font-weight:650;
    margin:0 0 23px;
    letter-spacing:-.2px;
}
.accent-options {
    border:0;
    padding:0;
    margin:0 0 21px;
    min-width:0;
}
.accent-options legend {
    font-size:10px;
    color:var(--muted);
    padding:0;
    margin:0 0 13px;
}
.accent-swatches {
    display:flex;
    justify-content:space-between;
    gap:8px;
}
.accent-option {
    position:relative;
    display:block;
    width:38px;
    height:38px;
    padding:4px;
    cursor:pointer;
}
.accent-option input {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    margin:0;
    opacity:0;
    cursor:pointer;
}
.accent-swatch {
    display:grid;
    place-items:center;
    width:100%;
    height:100%;
    background:var(--palette-color);
    color:#080B10;
    outline:1px solid transparent;
    outline-offset:4px;
    pointer-events:none;
}
.accent-swatch .icon {
    opacity:0;
    width:17px;
    height:17px;
    stroke-width:2;
}
.accent-option input:checked+.accent-swatch {
    outline-color:#e8edf5;
}
.accent-option input:checked+.accent-swatch .icon {
    opacity:1;
}
.accent-option input:focus-visible+.accent-swatch {
    outline:2px solid white;
    outline-offset:4px;
}
.selected-accent {
    display:block;
    font-size:10px;
    color:var(--muted);
    margin-top:13px;
}
.motion-setting {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding-top:18px;
    border-top:1px solid var(--border);
    cursor:pointer;
}
.motion-setting strong {
    display:block;
    font-size:12px;
    font-weight:550;
    margin-bottom:5px;
}
.motion-setting small {
    display:block;
    font-size:9px;
    color:var(--muted);
    line-height:1.6;
    max-width:185px;
}
.motion-setting input {
    width:17px;
    height:17px;
    flex-shrink:0;
    margin:0;
    accent-color:var(--accent);
}
.motion-system {
    font-size:9px;
    line-height:1.6;
    color:var(--muted);
    margin:12px 0 0;
}
.sr-only {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}
[data-public-motion=off] .interaction-hint {
    display:none;
}
[data-public-motion=off] .static-hint {
    display:inline;
}
@media(max-width:850px) {
    .appearance-switch summary {
        width:38px;
        height:38px;
    }
}
@media(max-width:640px) {
    .appearance-switch summary {
        width:34px;
        height:34px;
    }
    .appearance-switch summary .icon {
        width:18px;
        height:18px;
    }
    .interactive-grid {
        mask-image:linear-gradient(to bottom,#0006,#000 70%);
    }
    .auth-card {
        border-radius:10px;
    }
}
@media(prefers-reduced-motion:reduce) {
    :root {
        transition:none;
    }
    .interaction-hint {
        display:none!important;
    }
    .static-hint {
        display:inline!important;
    }
}

/* ===== HUD edition (2026-10-18): system dock, round flags, ticker, face scan, readout ===== */
:root {
    --mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

/* Language: rounded pill with a round flag and the language code. */
.public-preferences .language-switch summary {
    width:auto;
    height:40px;
    padding:0 12px 0 8px;
    gap:8px;
    border-radius:999px;
    background:#0f1620d9;
    backdrop-filter:blur(12px);
}
.public-preferences .language-flag {
    width:22px;
    height:22px;
    border-radius:50%;
    object-fit:cover;
    box-shadow:0 0 0 1px #ffffff2e;
}
.language-code {
    font-family:var(--mono);
    font-size:11px;
    font-weight:650;
    letter-spacing:1px;
    color:var(--ink);
}
.public-preferences .language-menu {
    border-radius:14px;
    padding:6px;
}
.public-preferences .language-menu a {
    border-radius:9px;
}
@media(max-width:640px) {
    .public-preferences .language-switch summary {
        height:36px;
        padding:0 10px 0 6px;
    }
    .public-preferences .language-switch summary>.language-flag {
        width:20px;
        height:20px;
    }
}

/* Settings: a dock on the right edge that opens a system panel. */
.system-dock {
    position:fixed;
    right:0;
    top:50%;
    transform:translateY(-50%);
    z-index:30;
}
.system-dock summary {
    width:46px;
    height:46px;
    border-radius:12px 0 0 12px;
    border-right:0;
    background:#0f1620e6;
    backdrop-filter:blur(12px);
    box-shadow:0 10px 30px #0007;
}
.system-dock summary .icon {
    transition:transform .6s ease;
}
.system-dock[open] summary .icon {
    transform:rotate(90deg);
}
.system-dock .appearance-panel {
    right:calc(100% + 12px);
    top:50%;
    transform:translateY(-50%);
    width:304px;
    max-width:calc(100vw - 72px);
    max-height:calc(100svh - 32px);
    padding:20px;
    border-radius:16px;
    background:#0d131bf2;
}
.system-head {
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    padding-bottom:16px;
    margin-bottom:16px;
    border-bottom:1px solid var(--border);
}
.system-head h2 {
    margin:0;
    font-size:21px;
    font-weight:750;
    letter-spacing:-.4px;
}
.system-head small {
    display:block;
    margin-top:4px;
    font-family:var(--mono);
    font-size:9px;
    letter-spacing:1.8px;
    text-transform:uppercase;
    color:var(--muted);
}
.system-badge {
    display:grid;
    place-items:center;
    width:32px;
    height:28px;
    border-radius:8px;
    background:#ffffff0d;
    font-family:var(--mono);
    font-size:9px;
    font-weight:700;
    color:var(--muted);
}
.system-section {
    margin:0 0 16px;
    padding:0 0 16px;
    border:0;
    border-bottom:1px solid var(--border);
    min-width:0;
}
.system-section legend,.system-section .section-title {
    display:block;
    float:none;
    width:100%;
    margin:0 0 12px;
    padding:0;
    font-family:var(--mono);
    font-size:10px;
    font-weight:700;
    letter-spacing:1.4px;
    text-transform:uppercase;
    color:var(--ink);
}
.section-index {
    color:var(--muted);
    font-weight:500;
    margin-right:8px;
}
.system-dock .accent-swatches {
    justify-content:space-between;
    padding:8px 10px;
    border:1px solid var(--border);
    border-radius:12px;
    background:#ffffff05;
}
.system-dock .accent-option {
    width:38px;
    height:38px;
    padding:10px;
    border-radius:10px;
    border:1.5px solid transparent;
    transition:border-color .2s;
}
.system-dock .accent-option:has(input:checked) {
    border-color:#e8edf5;
}
.system-dock .accent-swatch {
    border-radius:50%;
    outline:0;
    box-shadow:0 0 12px color-mix(in srgb,var(--palette-color) 55%,transparent);
}
.system-dock .accent-swatch .icon {
    display:none;
}
.system-dock .accent-option input:focus-visible+.accent-swatch {
    outline:2px solid white;
    outline-offset:6px;
}
.system-dock .selected-accent {
    margin-top:10px;
}
.system-dock .motion-setting {
    border-radius:10px;
}
.tier-buttons {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:6px;
}
.tier-option {
    position:relative;
    cursor:pointer;
}
.tier-option input {
    position:absolute;
    inset:0;
    opacity:0;
    margin:0;
    cursor:pointer;
}
.tier-option span {
    display:block;
    padding:9px 4px;
    text-align:center;
    border:1px solid var(--border);
    border-radius:9px;
    font-family:var(--mono);
    font-size:11px;
    color:var(--muted);
    transition:background .2s,border-color .2s,color .2s;
}
.tier-option input:checked+span {
    background:var(--accent-soft);
    border-color:color-mix(in srgb,var(--accent) 70%,transparent);
    color:var(--ink);
    font-weight:700;
}
.tier-option input:focus-visible+span {
    outline:2px solid var(--accent);
    outline-offset:2px;
}
.tier-hint {
    display:block;
    margin-top:10px;
    font-size:9.5px;
    line-height:1.5;
    color:var(--muted);
}
.system-active {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    margin:0;
    font-family:var(--mono);
    font-size:9px;
    letter-spacing:3px;
    text-transform:uppercase;
    color:var(--muted);
}
.system-active span,.readout-live:before,.scan-status:before {
    content:'';
    width:6px;
    height:6px;
    border-radius:50%;
    background:var(--accent);
    box-shadow:0 0 8px var(--accent);
    animation:hud-pulse 1.8s ease-in-out infinite;
}
@keyframes hud-pulse {
    50% { opacity:.35 }
}
@media(max-width:640px) {
    .system-dock {
        top:auto;
        bottom:84px;
        transform:none;
    }
    .system-dock summary {
        width:42px;
        height:42px;
    }
    .system-dock .appearance-panel {
        top:auto;
        bottom:0;
        transform:none;
    }
}

/* Ticker under the header. */
.hud-ticker {
    width:min(100% - 112px,1440px);
    height:34px;
    margin:-14px auto 0;
    position:relative;
    z-index:3;
    overflow:hidden;
    border:1px solid var(--border);
    border-radius:10px;
    background:#0b1017b3;
    backdrop-filter:blur(8px);
    -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
    mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
}
.hud-ticker-track {
    display:flex;
    align-items:center;
    width:max-content;
    height:100%;
    animation:hud-ticker 46s linear infinite;
}
.ticker-item {
    display:flex;
    align-items:center;
    gap:10px;
    padding:0 34px 0 0;
    white-space:nowrap;
}
.ticker-item small {
    padding:2px 6px;
    border:1px solid var(--border);
    border-radius:4px;
    font-family:var(--mono);
    font-size:9px;
    letter-spacing:1.4px;
    color:var(--muted);
}
.ticker-item strong {
    font-size:13px;
    font-weight:800;
    letter-spacing:1.2px;
    color:var(--ink);
}
.ticker-item:nth-child(3n+1) strong {
    color:var(--accent);
}
@keyframes hud-ticker {
    to { transform:translateX(-50%) }
}
[data-public-motion=off] .hud-ticker-track,[data-public-tier=saver] .hud-ticker-track {
    animation-play-state:paused;
}
@media(max-width:640px) {
    .hud-ticker {
        width:calc(100% - 32px);
        height:30px;
        margin-top:-6px;
    }
    .ticker-item strong {
        font-size:11px;
    }
}

/* Face scan HUD: status, recognition frame and readout. */
.scan-status {
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:var(--accent);
    font-variant-numeric:tabular-nums;
    transition:color .3s;
}
.scan-status:before {
    width:5px;
    height:5px;
}
[data-scan-phase=idle] .scan-status:before {
    animation:none;
    opacity:.6;
}
.portrait-frame {
    container-type:size;
}
.scan-hud {
    position:absolute;
    left:50%;
    top:50%;
    width:74cqh;
    height:92cqh;
    transform:translate(-50%,-50%);
    pointer-events:none;
    z-index:2;
}
.hud-corner {
    position:absolute;
    width:28px;
    height:28px;
    border:0 solid var(--accent);
    opacity:.5;
    transition:opacity .4s,filter .4s,width .4s,height .4s;
}
.hud-tl { left:0; top:0; border-top-width:2px; border-left-width:2px; border-top-left-radius:6px }
.hud-tr { right:0; top:0; border-top-width:2px; border-right-width:2px; border-top-right-radius:6px }
.hud-bl { left:0; bottom:0; border-bottom-width:2px; border-left-width:2px; border-bottom-left-radius:6px }
.hud-br { right:0; bottom:0; border-bottom-width:2px; border-right-width:2px; border-bottom-right-radius:6px }
[data-scan-phase=scanning] .hud-corner {
    opacity:.85;
}
[data-scan-phase=detected] .hud-corner,[data-scan-phase=verified] .hud-corner {
    opacity:1;
    width:36px;
    height:36px;
    filter:drop-shadow(0 0 6px var(--accent));
}
.hud-scanline {
    display:none;
    position:absolute;
    left:4%;
    right:4%;
    top:0;
    height:2px;
    background:linear-gradient(90deg,transparent,var(--accent),transparent);
    box-shadow:0 0 14px var(--accent);
}
/* Without WebGL the poster gets a CSS sweep instead of the particle beam. */
.identity-stage:is([data-scene-state=fallback],[data-scene-state=poster]) .hud-scanline {
    display:block;
    animation:hud-sweep 6s ease-in-out infinite;
}
@keyframes hud-sweep {
    0% { top:96%; opacity:0 }
    8% { opacity:1 }
    40% { top:4%; opacity:1 }
    48%,100% { top:4%; opacity:0 }
}
[data-public-motion=off] .hud-scanline,[data-public-tier=saver] .hud-scanline {
    display:none!important;
}
.system-readout {
    width:min(100%,560px);
    margin:4px auto 0;
    padding:12px 14px;
    position:relative;
    z-index:2;
    border:1px solid var(--border);
    border-radius:12px;
    background:#0b1017cc;
    backdrop-filter:blur(8px);
    font-family:var(--mono);
}
.readout-head {
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:9px;
    letter-spacing:2px;
    color:var(--muted);
}
.readout-live {
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:var(--accent);
}
.readout-progress {
    height:2px;
    margin:10px 0 11px;
    background:#ffffff12;
    border-radius:2px;
    overflow:hidden;
}
.readout-progress span {
    display:block;
    width:0;
    height:100%;
    background:var(--accent);
    box-shadow:0 0 8px var(--accent);
    transition:width .15s linear;
}
.system-readout dl {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
    margin:0;
}
.system-readout dt {
    font-size:8.5px;
    letter-spacing:1.5px;
    color:var(--muted);
}
.system-readout dt:before {
    content:'> ';
    color:var(--accent);
}
.system-readout dd {
    margin:3px 0 0;
    font-size:11px;
    font-weight:650;
    color:var(--ink);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
@media(max-width:640px) {
    .system-readout dl {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

/* Footer clock. */
.termez-clock {
    margin-left:2px;
    font-family:var(--mono);
    font-weight:650;
    color:var(--ink);
    font-variant-numeric:tabular-nums;
}
@media(prefers-reduced-motion:reduce) {
    .hud-ticker-track,.system-active span,.readout-live:before,.scan-status:before,.hud-scanline {
        animation:none!important;
    }
}
/* While the 3D beam runs, a HUD line inside the frame tracks it. */
.identity-stage[data-scene-state=ready][data-scan-phase=scanning] .hud-scanline {
    display:block;
    top:var(--scan-top,100%);
    animation:none;
    opacity:.85;
}
.system-dock .motion-setting small {
    font-size:11px;
    color:var(--ink);
}
/* Language button: only the round flag and the arrow. */
.public-preferences .language-switch summary {
    padding:0 10px 0 7px;
    gap:6px;
}
/* Language button: a bare round flag, no frame or arrow. */
.public-preferences .language-switch summary {
    width:auto;
    height:auto;
    padding:0;
    border:0;
    background:none;
    backdrop-filter:none;
    box-shadow:none;
}
.public-preferences .language-switch summary:hover,.public-preferences .language-switch[open] summary {
    background:none;
}
.public-preferences .language-switch summary .language-chevron {
    display:none;
}
.public-preferences .language-switch summary>.language-flag {
    width:30px;
    height:30px;
    transition:transform .2s,box-shadow .2s;
}
.public-preferences .language-switch summary:hover>.language-flag,.public-preferences .language-switch[open] summary>.language-flag {
    transform:scale(1.08);
    box-shadow:0 0 0 2px var(--accent);
}
.public-preferences .language-switch summary:focus-visible {
    outline:2px solid var(--accent);
    outline-offset:3px;
    border-radius:50%;
}

/* ===== Boot screen (once per session, landing only) ===== */
.boot-screen {
    display:none;
}
html.boot-pending body {
    overflow:hidden;
}
html.boot-pending .boot-screen {
    display:block;
    position:fixed;
    inset:0;
    z-index:100;
    background:#05070acc;
    -webkit-backdrop-filter:blur(16px) saturate(.6);
    backdrop-filter:blur(16px) saturate(.6);
    color:var(--ink);
    font-family:var(--mono);
    transition:opacity .7s ease,backdrop-filter .7s ease,-webkit-backdrop-filter .7s ease;
    /* Safety net: the page never stays covered if the script fails. */
    animation:boot-failsafe .6s ease 10s forwards;
}
html.boot-leaving .boot-screen {
    opacity:0;
    -webkit-backdrop-filter:blur(0);
    backdrop-filter:blur(0);
    pointer-events:none;
}
@keyframes boot-failsafe {
    to { opacity:0; visibility:hidden; pointer-events:none }
}
.boot-grid {
    position:absolute;
    inset:0;
    display:grid;
    grid-template-columns:1fr 1fr 2fr;
    grid-template-rows:repeat(4,1fr);
}
.boot-grid div {
    position:relative;
    border-right:1px solid #ffffff0f;
    border-bottom:1px solid #ffffff0a;
}
.boot-grid div:nth-child(odd):not(.boot-grid-right) {
    grid-column:1;
}
.boot-grid div:nth-child(even) {
    grid-column:2;
}
.boot-grid .boot-grid-right {
    grid-column:3;
    grid-row:1 / span 4;
    border-right:0;
    border-left:1px solid #ffffff14;
    background:radial-gradient(ellipse at 60% 45%,color-mix(in srgb,var(--accent) 8%,transparent),transparent 65%);
}
.boot-grid span {
    position:absolute;
    left:8px;
    top:7px;
    font-size:8px;
    letter-spacing:.6px;
    color:#ffffff38;
}
.boot-brand {
    position:absolute;
    left:44px;
    top:40px;
    display:flex;
    align-items:center;
    gap:12px;
}
.boot-brand img {
    border-radius:50%;
    opacity:.9;
}
.boot-brand strong {
    display:block;
    font-family:Inter,system-ui,sans-serif;
    font-size:16px;
    font-weight:750;
    letter-spacing:-.3px;
}
.boot-brand em {
    font-style:normal;
    color:var(--accent);
}
.boot-brand small {
    display:block;
    margin-top:4px;
    font-size:9px;
    letter-spacing:2px;
    color:var(--muted);
}
.boot-percent {
    position:absolute;
    right:44px;
    top:34px;
    font-family:Inter,system-ui,sans-serif;
    font-size:clamp(84px,10vw,148px);
    font-weight:800;
    line-height:1;
    letter-spacing:-.06em;
    font-variant-numeric:tabular-nums;
    color:#f3f6fb;
    text-shadow:0 0 40px color-mix(in srgb,var(--accent) 35%,transparent);
}
.boot-tier {
    position:absolute;
    left:44px;
    bottom:44px;
}
.boot-tier p {
    margin:0 0 12px;
    font-size:9.5px;
    letter-spacing:2px;
    color:var(--muted);
}
.boot-tier div {
    display:flex;
    gap:8px;
}
.boot-tier button {
    min-width:62px;
    padding:9px 14px;
    border:1px solid #ffffff24;
    border-radius:999px;
    background:#ffffff08;
    color:var(--muted);
    font:700 10.5px/1 var(--mono);
    letter-spacing:1.5px;
    cursor:pointer;
    transition:background .2s,color .2s,border-color .2s;
}
.boot-tier button:hover {
    color:var(--ink);
    border-color:#ffffff4d;
}
.boot-tier button[aria-pressed=true] {
    background:#ffffff1f;
    border-color:#ffffff73;
    color:#fff;
}
.boot-tier button:focus-visible,.boot-button:focus-visible {
    outline:2px solid var(--accent);
    outline-offset:3px;
}
.boot-status {
    position:absolute;
    right:44px;
    bottom:44px;
    width:min(320px,calc(100vw - 88px));
}
.boot-status p {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin:0 0 12px;
    font-size:9.5px;
    letter-spacing:1.5px;
    color:var(--muted);
}
.boot-status p #bootStage {
    flex:1;
    text-align:center;
    color:var(--ink);
}
.boot-dot {
    width:5px;
    height:5px;
    border-radius:50%;
    background:var(--accent);
    box-shadow:0 0 8px var(--accent);
    animation:hud-pulse 1.2s ease-in-out infinite;
}
.boot-button {
    position:relative;
    display:block;
    width:100%;
    height:54px;
    padding:0;
    overflow:hidden;
    border:1px solid #ffffff38;
    border-radius:6px;
    background:#ffffff0a;
    cursor:wait;
}
.boot-fill {
    position:absolute;
    inset:0 auto 0 0;
    width:0;
    background:#f3f6fb;
    transition:width .25s ease;
}
.boot-label {
    position:relative;
    font:800 12px/54px var(--mono);
    letter-spacing:5px;
    color:#05070a;
    mix-blend-mode:normal;
}
.boot-screen[data-boot-ready] .boot-button {
    cursor:pointer;
    background:var(--accent);
    border-color:var(--accent);
}
.boot-screen[data-boot-ready] .boot-fill {
    background:var(--accent);
}
@media(max-width:640px) {
    .boot-grid {
        grid-template-columns:1fr 1fr;
    }
    .boot-grid .boot-grid-right {
        display:none;
    }
    .boot-brand { left:20px; top:24px }
    .boot-percent { right:20px; top:auto; bottom:190px; font-size:96px }
    .boot-tier { left:20px; bottom:118px }
    .boot-status { right:20px; left:20px; bottom:28px; width:auto }
}
/* The label inverts over the white fill, so it reads at every percent. */
.boot-label {
    color:#fff;
    mix-blend-mode:difference;
}
.boot-screen[data-boot-ready] .boot-label {
    color:#05070a;
    mix-blend-mode:normal;
}

/* ===== Mobile settings (2026-10-18) ===== */
/* The motion row needs no divider of its own: the section above already has one. */
.system-dock .motion-setting {
    border-top:0;
    padding-top:0;
    border-radius:0;
}
@keyframes sheet-up {
    from { transform:translateY(28px); opacity:0 }
}
@media(max-width:640px) {
    .public-preferences {
        gap:10px;
    }
    /* Phones: the gear sits in the header beside the flag. */
    .system-dock {
        position:relative;
        top:auto;
        right:auto;
        bottom:auto;
        transform:none;
    }
    .system-dock summary {
        width:32px;
        height:32px;
        border:1px solid var(--border);
        border-radius:50%;
        background:#0f1620d9;
        box-shadow:none;
    }
    .system-dock summary .icon {
        width:17px;
        height:17px;
    }
    /* ...and the panel opens as a full-width sheet from the bottom. */
    .system-dock .appearance-panel {
        position:fixed;
        left:0;
        right:0;
        top:auto;
        bottom:0;
        transform:none;
        width:100%;
        max-width:none;
        max-height:84svh;
        padding:12px 20px calc(22px + env(safe-area-inset-bottom,0px));
        border:1px solid var(--border);
        border-bottom:0;
        border-radius:20px 20px 0 0;
        box-shadow:0 -20px 60px #000a,0 0 0 100vmax #05070aa6;
        animation:sheet-up .28s ease;
    }
    .system-dock .appearance-panel:before {
        content:'';
        display:block;
        width:40px;
        height:4px;
        margin:0 auto 16px;
        border-radius:2px;
        background:#ffffff2e;
    }
    .system-dock .motion-setting small {
        max-width:none;
    }
    html:has(.system-dock[open]) body {
        overflow:hidden;
    }
}
@media(prefers-reduced-motion:reduce) {
    .system-dock .appearance-panel {
        animation:none;
    }
}
