/* Shared by the first HTML loader and the live Blazor boot/auth surface. */
html.hysec-boot-active,
body.hysec-boot-active { overflow: hidden !important; height: 100% !important; }
.hysec-boot-desktop,
.hysec-os-background {
    background: radial-gradient(ellipse at 27% 43%, #c6a56b0d, transparent 40%), linear-gradient(135deg, #14161b, #0b0c0f 65%);
}

.hysec-boot-desktop {
    container-type: inline-size;
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: safe center;
    justify-content: center;
    overflow: auto;
    padding: 48px;
    color: #e7ddca;
    font-family: 'Jura', sans-serif;
}
.hysec-boot-desktop * { box-sizing: border-box; }
.hysec-boot-stage {
    width: min(100%, 960px);
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    column-gap: 88px;
    row-gap: 64px;
    align-items: center;
    position: relative;
}
.hysec-boot-identity { display: flex; align-items: center; justify-content: center; padding: 24px 12px; }
.hysec-boot-identity img { display: block; width: 100%; height: auto; object-fit: contain; }
.hysec-boot-workspace { min-width: 0; padding: 20px 0; }
.hysec-boot-eyebrow { display: block; font: 600 11px/1.5 'Jura', sans-serif; color: #c6a56b; letter-spacing: .18em; margin-bottom: 16px; }
.hysec-boot-workspace h1 { margin: 0; color: #e7ddca; font: 500 clamp(28px, 2.7vw, 36px)/1.18 'Jura', sans-serif; letter-spacing: -.035em; }
.hysec-boot-description { max-width: 38ch; margin: 16px 0 32px; font: 400 15px/1.65 'Jura', sans-serif; color: #a7a49d; }
.hysec-boot-terminal { padding: 18px 0 0; border-top: 1px solid #c6a56b26; }
.hysec-boot-terminal-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.hysec-boot-terminal-heading span { font: 500 10px/1.4 'Jura', sans-serif; letter-spacing: .12em; color: #aaa69d; }
.hysec-boot-terminal-heading .hysec-boot-phase { color: #c6a56b; }
.hysec-boot-desktop .boot-terminal-line { display: flex; align-items: baseline; gap: 12px; min-height: 56px; text-align: left; }
/* The global index.html font reset is important; terminal output retains monospace. */
.hysec-boot-desktop .boot-terminal-line span { font: 400 13px/1.75 ui-monospace, 'Cascadia Code', Consolas, monospace; font-family: ui-monospace, 'Cascadia Code', Consolas, monospace !important; }
.hysec-boot-desktop .boot-terminal-prompt { color: #c6a56b; flex-shrink: 0; }
.hysec-boot-desktop .boot-terminal-text { min-width: 0; color: #d2c7b2; overflow-wrap: anywhere; }
.hysec-boot-desktop .boot-terminal-cursor { display: inline-block; width: 6px; height: 12px; margin-left: 7px; vertical-align: -1px; background: #c6a56b; animation: hysec-boot-cursor 1.2s step-end infinite; }
.hysec-boot-desktop .boot-progress-track { height: 2px; width: 100%; background: #c6a56b19; overflow: hidden; margin-top: 12px; border-radius: var(--radius-pill, 999px); }
.hysec-boot-desktop .boot-progress-fill { height: 100%; width: var(--hysec-boot-progress, 0%); background: #c6a56b; }
.hysec-boot-footer { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-top: 20px; border-top: 1px solid #e7ddca0e; }
.hysec-boot-footer span { font: 500 10px/1.5 'Jura', sans-serif; color: #8e8c85; letter-spacing: .12em; }
.hysec-boot-desktop .boot-sso-btn { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 14px 20px; margin-top: 24px; min-height: 48px; background: #c6a56b; color: #111318; border: 1px solid #c6a56b; border-radius: var(--radius-md, 16px); cursor: pointer; font: 600 14px/1.4 'Jura', sans-serif; }
.hysec-boot-desktop .boot-sso-btn span { font: inherit; }
.hysec-boot-desktop .boot-sso-btn:hover { background: #dbbe88; border-color: #dbbe88; }
.hysec-boot-desktop .boot-sso-btn:focus-visible { outline: 2px solid #e7ddca; outline-offset: 4px; }
.hysec-boot-notice { border-left: 2px solid #c6a56b; padding-left: 14px; margin: 0 0 24px; }
.hysec-boot-notice p { color: #d2c7b2; font: 400 13px/1.6 'Jura', sans-serif; margin: 4px 0; }
@keyframes hysec-boot-cursor { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0; } }
@media (max-width: 1000px) {
    .hysec-boot-desktop { padding: 36px; }
    .hysec-boot-stage { grid-template-columns: minmax(220px, .85fr) minmax(0, 1fr); column-gap: 48px; row-gap: 40px; }
}
@media (max-height: 650px) {
    .hysec-boot-desktop { padding-block: 24px; align-items: safe center; }
    .hysec-boot-stage { row-gap: 24px; }
}
@media (max-width: 760px) {
    .hysec-boot-stage { grid-template-columns: 1fr; gap: 16px; max-width: 440px; }
    .hysec-boot-identity img { width: 200px; }
    .hysec-boot-identity { padding: 0; }
    .hysec-boot-desktop { align-items: safe center; }
}
@media (prefers-reduced-motion: reduce) {
    .hysec-boot-desktop .boot-terminal-cursor { animation: none; }
}

/* App loaders size themselves to their window, independently of startup progress. */
.hysec-boot-compact { padding: 28px; }
.hysec-boot-compact .hysec-boot-stage { grid-template-columns: minmax(140px, .65fr) minmax(0, 1fr); gap: 28px 36px; max-width: 780px; }
.hysec-boot-compact .hysec-boot-workspace h1 { font-size: 26px; }
.hysec-boot-compact .hysec-boot-description { margin-bottom: 24px; }
.hysec-boot-desktop .system-progress-indeterminate { width: 35%; animation: hysec-loading-progress 1.8s ease-in-out infinite; }
.system-status-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.system-status-actions:empty { display: none; }
.hysec-boot-desktop .system-status-actions .boot-sso-btn { margin-top: 0; }
.hysec-boot-desktop .system-status-link { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 0; color: #d2c7b2; font: 500 14px/1.4 'Jura', sans-serif; text-decoration: underline; text-underline-offset: 5px; }
.hysec-boot-desktop .system-status-link:hover { color: #e7ddca; }
.hysec-boot-desktop .system-status-link:focus-visible { outline: 2px solid #c6a56b; outline-offset: 4px; border-radius: 12px; }
@keyframes hysec-loading-progress { from { transform: translateX(-100%); } to { transform: translateX(390%); } }
@container (max-width: 580px) {
    .hysec-boot-compact .hysec-boot-stage { grid-template-columns: 1fr; gap: 12px; max-width: 440px; }
    .hysec-boot-compact .hysec-boot-identity { padding: 0; }
    .hysec-boot-compact .hysec-boot-identity img { width: 120px; }
    .hysec-boot-compact .hysec-boot-workspace { padding: 8px 0; }
    .hysec-boot-compact .hysec-boot-description { margin: 12px 0 18px; }
    .hysec-boot-compact .hysec-boot-footer { padding-top: 14px; }
}
@container (max-width: 760px) {
    .hysec-boot-desktop:not(.hysec-boot-compact) .hysec-boot-stage { grid-template-columns: 1fr; gap: 16px; max-width: 440px; }
    .hysec-boot-desktop:not(.hysec-boot-compact) .hysec-boot-identity { padding: 0; }
    .hysec-boot-desktop:not(.hysec-boot-compact) .hysec-boot-identity img { width: 200px; }
}
@media (max-width: 760px) {
    .hysec-boot-desktop { padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
    .hysec-boot-workspace { padding: 12px 0; }
    .hysec-boot-eyebrow { margin-bottom: 12px; }
    .hysec-boot-description { margin: 12px 0 24px; }
    .hysec-boot-footer { gap: 12px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .hysec-boot-desktop .system-progress-indeterminate { animation: none; width: 100%; opacity: .55; }
}

[data-boot-recovery] { grid-column: 1 / -1; color: #d9cfba; }
[data-boot-recovery] p { margin-bottom: 16px; line-height: 1.5; }
[data-boot-recovery] button:disabled { opacity: .65; cursor: wait; }
