/* Boot-shell только на старте с сохранённой сессией (html.da-auth-booting), иначе скрыт */
#daLoadShell,
.da-load-shell {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html.da-auth-booting #daLoadShell.da-load-shell,
html.da-blocking-loading #daLoadShell.da-load-shell {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 5100;
}

.da-load-shell {
    position: fixed;
    inset: 0;
    z-index: 4900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background:
        radial-gradient(ellipse 70% 45% at 50% 0%, rgba(6, 199, 133, 0.12), transparent),
        rgba(18, 19, 22, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 0.28s var(--app-ease), visibility 0.28s;
}

.da-load-shell[hidden] {
    display: none !important;
}

.da-load-shell.is-hiding {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.da-load-shell__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: min(92vw, 360px);
    text-align: center;
}

.da-load-shell__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(6, 199, 133, 0.2);
    border-top-color: var(--brand-grad-light, #06c785);
    border-radius: 50%;
    animation: daLoadSpin 0.75s linear infinite;
}

@keyframes daLoadSpin {
    to { transform: rotate(360deg); }
}

.da-load-shell__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.01em;
}

.da-load-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.da-load-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.3;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.da-load-tag::before {
    content: '';
    width: 10px;
    height: 10px;
    border: 2px solid rgba(6, 199, 133, 0.25);
    border-top-color: #06c785;
    border-radius: 50%;
    animation: daLoadSpin 0.7s linear infinite;
    flex-shrink: 0;
}

.clock-wrap__time-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.clock-mini-spinner {
    width: 11px;
    height: 11px;
    border: 2px solid rgba(16, 185, 129, 0.25);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: clockSpin 0.65s linear infinite;
    display: none;
    flex-shrink: 0;
}

.header-clock-stack.is-sync-active .clock-mini-spinner {
    display: inline-block;
}

.header-clock-stack.is-sync-active.clock-wrap.time-box {
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.35), 0 0 12px rgba(16, 185, 129, 0.22);
    animation: clockCapsulePulse 1.4s ease-in-out infinite;
}

.header-clock-stack.is-sync-active .crew-sync-badge.is-sync-active::before {
    display: none;
}

@keyframes clockSpin {
    to { transform: rotate(360deg); }
}

@keyframes clockCapsulePulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.28), 0 0 8px rgba(16, 185, 129, 0.16); }
    50% { box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.45), 0 0 14px rgba(16, 185, 129, 0.28); }
}

.crew-sync-badge.is-sync-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.crew-sync-badge.is-sync-active::before {
    content: '';
    width: 10px;
    height: 10px;
    border: 2px solid rgba(6, 199, 133, 0.3);
    border-top-color: #06c785;
    border-radius: 50%;
    animation: daLoadSpin 0.7s linear infinite;
    flex-shrink: 0;
}

.crew-sync-badge.is-offline-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fbbf24;
}

.crew-sync-badge.is-offline-active::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f59e0b;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
    animation: none;
}

.da-action-toast.is-error {
    border-color: rgba(248, 113, 113, 0.45);
    background: linear-gradient(180deg, rgba(127, 29, 29, 0.35) 0%, #181a20 100%);
}

.da-action-toast.is-error .da-action-toast__text {
    color: #fecaca;
}

.da-load-shell__recovery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.da-load-shell__reset {
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    background: linear-gradient(135deg, var(--brand-grad-light, #06c785), var(--brand-grad-dark, #024c4e));
}

.da-load-shell__offline {
    appearance: none;
    min-height: 42px;
    padding: 10px 20px;
    border: 1px solid rgba(6, 199, 133, 0.5);
    border-radius: 999px;
    background: rgba(6, 199, 133, 0.12);
    color: #d1fae5;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.da-load-shell__offline[hidden] {
    display: none !important;
}

.da-load-shell__reset:disabled {
    opacity: 0.6;
    cursor: wait;
}

.schedule-data-pane.is-loading > .data-pane-loader {
    display: flex;
}
