/* The maintenance banner + the refused-write note (DATABASE_TRANSFER_PLAN D16) — every page, every theme: the page's own
   variables where it has them, fallbacks for the plain status pages. Announced = gold, running = red. */
.ltv-maint {
    display: flex; gap: 10px; align-items: flex-start; flex-shrink: 0;
    padding: 8px 16px; font-size: 13px; line-height: 1.45;
    color: var(--text, #e6e9ef);
    background: color-mix(in srgb, var(--gold, #f5c518) 14%, var(--bg2, #12151c));
    border-bottom: 1px solid color-mix(in srgb, var(--gold, #f5c518) 45%, transparent);
    position: relative; z-index: 60;
}
.ltv-maint--normal { display: none; }
.ltv-maint--readOnly, .ltv-maint--stopped {
    background: color-mix(in srgb, var(--red, #ff4d6a) 16%, var(--bg2, #12151c));
    border-bottom-color: color-mix(in srgb, var(--red, #ff4d6a) 50%, transparent);
}
.ltv-maint-icon { flex-shrink: 0; }
.ltv-maint-body { display: flex; flex-wrap: wrap; gap: 2px 12px; min-width: 0; }
.ltv-maint-text { font-weight: 600; }
.ltv-maint-note { color: var(--text2, #aab1bf); white-space: pre-line; overflow-wrap: anywhere; }
.ltv-maint-note:empty { display: none; }

/* The Terminal is a fixed 100vh shell: with a banner, the page becomes a column and the shell takes the rest. */
body:has(> .ltv-maint:not(.ltv-maint--normal)):has(> .shell) { display: flex; flex-direction: column; }
body:has(> .ltv-maint:not(.ltv-maint--normal)) > .shell { height: auto; flex: 1 1 auto; min-height: 0; }

.ltv-maint-notice {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000;
    width: max-content; max-width: min(560px, calc(100vw - 32px));
    padding: 12px 16px; border-radius: 6px; font-size: 13px; line-height: 1.45;
    color: var(--text, #e6e9ef); background: var(--bg2, #12151c);
    border: 1px solid var(--red, #ff4d6a); box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.ltv-maint-notice.show { opacity: 1; }
.ltv-maint-notice:empty { display: none; }

@media (max-width: 720px) {
    .ltv-maint { padding: 8px 12px; font-size: 12px; }
    .ltv-maint-notice { bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ltv-maint-notice { transition: none; } }
