:root{color-scheme:dark;--steel:#9fa7af;--yellow:#ffb400;--red:#ff554b;--panel:#202429;--ink:#101215;--accent-fill-rest:#ffb400;--accent-fill-hover:#ffc940;--accent-fill-active:#e99b00;--foreground-on-accent-rest:#111;--neutral-layer-1:#202429;--neutral-fill-input-rest:#15181c;--neutral-foreground-rest:#f1f2f3;--body-font:Inter,"Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;font-family:var(--body-font);background:#14171a;color:#f1f2f3}a{color:var(--yellow)}h1,h2,p{margin-top:0}h1{letter-spacing:-.045em;line-height:1.04}p{line-height:1.65;color:#b8c0c8}button,input,select{font:inherit}.accent{color:var(--yellow)}.app-shell{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:100vh}.app-sidebar{background:linear-gradient(105deg,#15181c,#202429);border-right:1px solid #41474e;display:flex;flex-direction:column;padding:28px 20px 24px;position:sticky;top:0;height:100vh}.amii-logo-slot{height:65px;border:1px dashed #656b72;padding:8px 13px;display:flex;flex-direction:column;justify-content:center;background:#101215}.amii-wordmark{font-weight:900;letter-spacing:.14em;font-size:22px}.logo-dot{color:var(--red);font-size:11px;vertical-align:top}.amii-logo-slot small{font-size:8px;letter-spacing:.18em;color:#a4adb5}.amii-logo-slot img{max-width:100%;max-height:100%;object-fit:contain}.brand-link{margin:28px 0 24px;display:block}.brand-link::part(control){display:flex;gap:7px;color:#fff;text-decoration:none;font-size:20px;font-weight:900}.brand-link .scan-mark{width:62px;height:62px}.brand-link small{display:block;color:#b1bac3;font-size:8px;letter-spacing:.17em;margin-top:5px}.hazard-strip{height:7px;background:repeating-linear-gradient(125deg,var(--yellow) 0 10px,#111 10px 20px);margin-bottom:29px}.nav-caption{display:block;font-size:9px;letter-spacing:.2em;color:#9099a3;margin-bottom:17px}.nav-link{display:block;margin-bottom:10px}.nav-link::part(control){display:flex;justify-content:flex-start;gap:17px;min-height:47px;padding:10px 12px;border:1px solid #41474e;border-left:3px solid var(--red);background:#24292f;color:#ffbc29;text-decoration:none;font-size:12px}.nav-link span{color:#eee}.nav-link:hover::part(control){border-color:var(--yellow)}.sidebar-footer{margin-top:auto;font-size:8px;letter-spacing:.08em;color:#b7bec5;line-height:1.8}.sidebar-footer small{display:block;color:#828c96;font-size:8px;margin-top:6px}.status-led{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--red);box-shadow:0 0 9px #ff554b55;margin-right:7px}.workspace{min-width:0;display:flex;flex-direction:column;background:radial-gradient(ellipse at 90% 0%,#30363b77,transparent 55%),#15181b}.app-header{display:flex;align-items:center;gap:18px;min-height:78px;padding:18px 36px;border-bottom:1px solid #353b42;background:#181c20}.terminal-label{margin-right:auto;color:var(--yellow);font-size:11px;letter-spacing:.12em;font-weight:700}.terminal-label span{color:#89939e}.account-name{font-size:12px;overflow-wrap:anywhere}.app-content{width:100%;max-width:1450px;margin:0 auto;padding:38px 36px 48px;flex:1}.workspace-footer{padding:20px 36px;border-top:1px solid #353b42;font-size:9px;color:#89939e;letter-spacing:.16em;display:flex;justify-content:space-between}.steel-panel{position:relative;background:linear-gradient(115deg,#343a40 0%,#20252a 38%,#2b3036 100%);border:1px solid #59616a;border-radius:4px;box-shadow:0 14px 40px #0003}.steel-panel:before,.steel-panel:after{content:"";position:absolute;width:11px;height:11px;border-radius:50%;background:linear-gradient(135deg,#afb6bd 42%,#3b4147 43% 54%,#828a93 55%);box-shadow:0 1px 3px #000;top:13px}.steel-panel:before{left:13px}.steel-panel:after{right:13px}.hero{display:grid;grid-template-columns:1.25fr 1fr;min-height:365px;padding:44px 36px 34px;overflow:hidden;border-bottom:5px solid var(--yellow)}.hero:after{top:auto;bottom:13px}.eyebrow{display:block;color:var(--yellow);font-size:10px;letter-spacing:.19em;font-weight:800;margin-bottom:20px}.hero h1{font-size:clamp(34px,3.9vw,60px);margin-bottom:19px;font-weight:850}.hero p{font-size:14px;margin-bottom:25px;max-width:340px}.hero-note{display:block;font-size:8px;letter-spacing:.12em;color:#a4afb9;margin-top:23px;line-height:1.8}.hero-art{display:flex;align-items:center;justify-content:center;position:relative;flex-direction:column}.hero-art .scan-mark{width:min(100%,285px);height:285px;z-index:1;filter:drop-shadow(0 15px 15px #0007)}.scanner-orbit{position:absolute;width:250px;height:250px;border:1px solid #69717a;border-radius:50%;background:repeating-linear-gradient(130deg,transparent 0 16px,#a0a8af0c 16px 18px);box-shadow:0 0 0 20px #ffffff03}.art-caption{z-index:1;font-size:8px;letter-spacing:.2em;color:#bdc5cc;border-top:2px solid var(--red);padding-top:9px}.feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:25px}fluent-card.feature-card{padding:25px 22px;border:1px solid #454c54;border-top:3px solid #ff554b;min-height:210px;background:linear-gradient(120deg,#252a30,#1b1f24)}.feature-number{font-size:9px;letter-spacing:.15em;color:var(--yellow)}.feature-card h2{font-size:19px;letter-spacing:-.025em;margin:19px 0 10px}.feature-card p{font-size:12px;margin-bottom:22px}.feature-tag{font-size:8px;letter-spacing:.12em;color:#a6afb8}.floor-note{display:flex;gap:4px;align-items:center;margin-top:28px;flex-wrap:wrap}.floor-note>span{font-size:9px;color:var(--yellow);letter-spacing:.1em}.floor-note p{margin:0 0 0 12px;font-size:11px}.page-heading{margin-bottom:26px}.page-heading h1{font-size:40px;margin-bottom:13px}fluent-card.worksheet-card{padding:25px;border:1px solid #555d66;border-top:4px solid var(--yellow);background:#20252a}.worksheet-fields{display:grid;grid-template-columns:2fr 1.5fr 1fr;gap:18px;margin-bottom:24px}.worksheet-fields>*{width:100%}.worksheet-card>p{font-size:12px}.serial-row{padding:18px;margin:16px 0;border:1px solid #4e5660;border-left:3px solid var(--red);background:#181c20}.serial-input{width:100%;margin-bottom:14px}.row-actions{display:flex;gap:10px;flex-wrap:wrap}.recorded-entry{color:#ff776e;font-size:13px;margin-top:12px;overflow-wrap:anywhere}.auth-card{padding:38px;max-width:680px}.auth-card h1{font-size:34px}.auth-card p{font-size:14px}.auth-card code{overflow-wrap:anywhere}fluent-message-bar{margin:14px 0}fluent-anchor:focus-within,fluent-button:focus-within{outline:2px solid var(--yellow);outline-offset:4px}#blazor-error-ui{display:none;position:fixed;bottom:0;left:0;right:0;background:#481b1b;color:#fff;padding:18px;z-index:1000;border-top:2px solid var(--red)}#blazor-error-ui .dismiss{float:right;cursor:pointer}
@media(min-width:1500px){.hero{min-height:440px}.hero-art .scan-mark{width:330px;height:330px}}
@media(max-width:1050px){.app-shell{grid-template-columns:210px minmax(0,1fr)}.app-sidebar{padding:22px 15px}.app-content{padding:26px 22px}.app-header{padding:17px 22px}.hero{padding:35px 25px}.hero-art .scan-mark{height:220px}.scanner-orbit{height:180px;width:180px}.feature-grid{gap:12px}fluent-card.feature-card{padding:20px 15px}.worksheet-fields{grid-template-columns:1fr}}
@media(max-width:720px){.app-shell{display:block}.app-sidebar{height:auto;position:relative;padding:15px}.amii-logo-slot{width:125px;height:52px}.brand-link{position:absolute;top:2px;right:14px;margin:10px 0}.brand-link .scan-mark{height:52px;width:52px}.hazard-strip{margin:14px 0}.app-sidebar nav{display:flex;gap:10px}.nav-caption,.sidebar-footer{display:none}.nav-link{margin:0;flex:1}.nav-link::part(control){min-height:40px}.app-header{min-height:65px;padding:12px 18px;flex-wrap:wrap;gap:10px}.terminal-label{font-size:9px}.terminal-label span{display:none}.app-content{padding:22px 16px}.hero{grid-template-columns:1fr;padding:30px 25px}.hero h1{font-size:40px}.hero-art{margin-top:25px}.hero-art .scan-mark{height:200px;width:200px}.feature-grid{grid-template-columns:1fr}.floor-note p{margin:8px 0;width:100%}.workspace-footer{padding:18px 16px;font-size:8px}.account-name{max-width:150px}.row-actions fluent-button{flex:1}.auth-card{padding:28px}.auth-card h1{font-size:28px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(forced-colors:active){.steel-panel,.serial-row,.app-sidebar{border:1px solid CanvasText}.accent,.eyebrow{color:LinkText}.hazard-strip{background:CanvasText}.status-led{background:Highlight}.recorded-entry{color:CanvasText}}

/* Reconnect UI must work while the server circuit is disconnected. */
.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
.components-pause-visible,
.components-resume-failed-visible,
.components-rejoining-animation {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible,
#components-reconnect-modal.components-reconnect-retrying,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible {
    display: block;
}


#components-reconnect-modal {
    background: linear-gradient(120deg,#353b42,#191d22);
    color: #f1f2f3;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 2px solid #ffb400;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button {
    border: 2px solid #ffb400;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active {
        background-color: #6b9ed2;
    }

.components-rejoining-animation {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2) {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

.pilot-labels { display:flex; gap:1rem; flex-wrap:wrap; }
.pilot-labels figure { background:white; color:black; border:1px solid #666; margin:0; padding:.6rem; break-inside:avoid; }
.receiving-lines { width:100%; border-collapse:collapse; }
.receiving-lines th,.receiving-lines td { padding:.45rem; text-align:left; overflow-wrap:anywhere; }
@media print {
    body:has(.pilot-labels) .app-sidebar, body:has(.pilot-labels) .app-header,
    body:has(.pilot-labels) .workspace-footer, body:has(.pilot-labels) main > p { display:none; }
    body:has(.pilot-labels) .app-shell { display:block; }
}


/* Shell headings on dark cards and planned workspace previews. */
.feature-card h2 { color: #ff9c94; }
.auth-card :is(h1,h2,h3), .page-heading h1 { color: #f1f2f3; }
.workflow-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: .75rem; }
.workflow-filters a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .5rem .75rem;
    border: 1px solid #626d7b;
    border-radius: .4rem;
    color: #f1f2f3;
    text-decoration: none;
}
.workflow-filters a[aria-current] { border-color: #ffb400; color: #ffcd58; }

/* Keep dark-shell typography and account controls readable across Bootstrap and Fluent. */
:root {
    --bs-body-color: #f1f2f3;
    --bs-body-bg: #14171a;
    --bs-heading-color: inherit;
    --bs-secondary-color: #bdc6cf;
    --bs-tertiary-color: #aeb9c3;
    --bs-emphasis-color: #fff;
}
.content :is(h1, h2, h3, h4, h5, h6, label, legend, th) { color: #f1f2f3; }
.content .feature-card h2 { color: #ff9c94; }
.content .pilot-labels figure :is(h1, h2, h3, p, figcaption) { color: #111; }
.content .form-floating > label { color: #cbd3dc; }
.content .form-floating > label::after { background: transparent; }
.content :is(.form-control, .form-select) { color: #f1f2f3; background-color: #20252a; border-color: #71808d; }
.content .form-control::placeholder { color: #adb8c2; opacity: 1; }
.content .text-danger { color: #ff9c94 !important; }
.top-row .account-actions .shell-button { color: #f1f2f3; }
.top-row .account-actions .account-primary { color: #17191d; background: #ffc247; }
.top-row .account-actions .account-primary:hover { color: #17191d; background: #ffda82; }
.top-row .icon-button { display: inline-grid; place-items: center; min-width: 44px; padding-inline: .65rem; }
.top-row .icon-button svg { width: 1.3rem; height: 1.3rem; }
.top-row .icon-button[aria-pressed="true"] { background: #ffb400; color: #17191d; }
.top-row .shell-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
