/* Painel de Aulas — sistema visual v4 (prioridade para TVs) */
:root {
    --senac-orange: #f7941d;
    --senac-orange-soft: #ffc46b;
    --senac-blue: #005ca9;
    --senac-blue-bright: #2f9bff;
    --ink-950: #020813;
    --ink-900: #06111f;
    --ink-850: #091728;
    --ink-800: #0d1d31;
    --surface: rgba(8, 23, 42, 0.94);
    --surface-raised: rgba(13, 31, 53, 0.96);
    --line: rgba(151, 188, 226, 0.12);
    --line-strong: rgba(75, 159, 238, 0.26);
    --text: #f5f9ff;
    --text-soft: #bdd0e5;
    --text-muted: #7890aa;
    --success: #35d28c;
    --danger: #fb7185;
    --radius-xl: 22px;
    --radius-lg: 16px;
    --shadow-panel: 0 18px 45px rgba(0, 0, 0, 0.24);
}

html,
body {
    width: 100%;
    height: 100%;
    background: var(--ink-950);
}

body {
    font-family: 'Outfit', 'Segoe UI', Arial, sans-serif;
    color: var(--text);
    letter-spacing: 0.005em;
}

.bg-layer {
    background:
        radial-gradient(circle at 9% -8%, rgba(247, 148, 29, 0.15), transparent 31%),
        radial-gradient(circle at 92% 106%, rgba(0, 92, 169, 0.24), transparent 38%),
        linear-gradient(135deg, rgba(17, 48, 81, 0.13), transparent 36%),
        linear-gradient(rgba(77, 139, 202, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 139, 202, 0.035) 1px, transparent 1px),
        var(--ink-950);
    background-size: auto, auto, auto, 64px 64px, 64px 64px, auto;
}

.layout {
    height: 100dvh;
    isolation: isolate;
}

/* Cabeçalho */
.header {
    height: 108px;
    padding: 0 28px;
    overflow: visible;
    background: linear-gradient(180deg, rgba(5, 16, 30, 0.99), rgba(4, 13, 25, 0.96));
    border-bottom: 1px solid rgba(112, 168, 224, 0.1);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.3);
}

.header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 32%;
    height: 3px;
    background: linear-gradient(90deg, var(--senac-orange), transparent);
}

.header::after {
    height: 2px;
    background: linear-gradient(90deg, var(--senac-orange), rgba(247, 148, 29, 0.25) 38%, rgba(47, 155, 255, 0.28) 66%, var(--senac-blue));
}

.brand-block {
    display: flex;
    align-items: center;
    min-width: 0;
}

.logo-wrap {
    height: 64px;
    padding: 8px 14px;
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(247, 148, 29, 0.22);
}

.logo-img { height: 45px; }

.header-sep {
    height: 54px;
    margin: 0 20px;
    background: linear-gradient(180deg, transparent, rgba(164, 199, 234, 0.24), transparent);
}

.header-title {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas: 'title context' 'subtitle context';
    align-items: center;
    column-gap: 20px;
    min-width: 0;
}

.header-title h1 {
    grid-area: title;
    font-size: clamp(1.35rem, 1.55vw, 1.9rem);
    line-height: 1;
    color: #fff;
    letter-spacing: 0.06em;
}

.header-title h2 {
    grid-area: subtitle;
    margin-top: 7px;
    font-size: clamp(0.68rem, 0.76vw, 0.9rem);
    letter-spacing: 0.17em;
    -webkit-text-fill-color: initial;
    background: none;
    color: var(--senac-orange-soft);
}

.view-context {
    grid-area: context;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 175px;
    min-height: 56px;
    padding: 9px 14px 9px 16px;
    border-left: 2px solid var(--senac-orange);
    border-radius: 0 12px 12px 0;
    background: linear-gradient(90deg, rgba(247, 148, 29, 0.12), rgba(247, 148, 29, 0.02));
}

.view-context strong {
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.view-context span {
    margin-top: 3px;
    font-size: 0.67rem;
    font-weight: 500;
    color: #a9bad0;
    white-space: nowrap;
}

.header-right {
    gap: 12px;
    min-width: 0;
}

.weather-widget,
.qr-mic-wrap,
.sync-pill {
    background: rgba(10, 27, 48, 0.82);
    border: 1px solid rgba(122, 179, 233, 0.16);
    box-shadow: none;
}

.weather-widget {
    min-height: 60px;
    padding: 4px 10px 4px 3px;
    border-radius: 14px;
}

.weather-widget:hover,
.qr-mic-wrap:hover {
    border-color: rgba(247, 148, 29, 0.45);
    box-shadow: 0 0 20px rgba(247, 148, 29, 0.12);
}

.weather-icon-img { width: 46px; height: 46px; }
.weather-temp { font-size: 1.25rem; }
.weather-desc { color: #c9d9ea; max-width: 90px; }

.qr-mic-wrap {
    padding: 5px 7px;
    border-radius: 14px;
    gap: 2px;
}

.qr-mic-img { width: 54px; height: 54px; }
.qr-mic-label { font-size: 0.48rem; color: var(--senac-orange-soft); }

#audio-unlock {
    display: none;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(247, 148, 29, 0.38);
    border-radius: 999px;
    color: #ffe2ba;
    background: rgba(247, 148, 29, 0.1);
    font: 700 0.62rem/1 'Outfit', 'Segoe UI', sans-serif;
    cursor: pointer;
}

#audio-unlock.needs-unlock { display: inline-flex; }
#audio-unlock.is-ready { display: none; }

.sync-pill {
    min-height: 32px;
    padding: 5px 10px;
}

.clock-block {
    min-width: 112px;
    padding-left: 3px;
}

.clock-time {
    font-size: clamp(2.2rem, 2.65vw, 3.15rem);
    letter-spacing: -0.05em;
}

.clock-date {
    max-width: 150px;
    color: #8ea3b9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Grade principal responsiva */
.main-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(4, 13, 25, 0.2), rgba(4, 13, 25, 0.65));
}

.main-board.has-media-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(285px, 0.92fr);
}

.main-board.has-city-panel:not(.has-media-panel) {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(270px, 0.88fr);
}

.main-board.has-city-panel.has-media-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(260px, 0.86fr) minmax(275px, 0.9fr);
}

.shift-col,
.slide-panel {
    min-width: 0;
    width: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(11, 29, 50, 0.97), rgba(5, 17, 32, 0.97));
    box-shadow: var(--shadow-panel), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.shift-col {
    position: relative;
    opacity: 1;
    transform: none;
    animation: panel-enter 0.55s cubic-bezier(.2, .75, .2, 1) both;
}

.shift-col::after,
.slide-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.025), transparent 30%);
}

.shift-col > *,
.slide-panel > * { position: relative; z-index: 1; }

@keyframes panel-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.shift-header {
    min-height: 74px;
    padding: 11px 13px;
    gap: 9px;
    border-bottom: 1px solid var(--line);
}

.shift-icon {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    font-size: 1.18rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.shift-title {
    font-size: clamp(0.84rem, 0.92vw, 1.1rem);
    letter-spacing: 0.14em;
}

.shift-badge {
    margin-left: auto;
    padding: 4px 8px;
    font-size: 0.58rem;
    color: #a6b8ca;
    border-color: rgba(151, 188, 226, 0.13);
    background: rgba(2, 9, 18, 0.42);
}

.col-manha .shift-header { background: linear-gradient(110deg, rgba(247, 148, 29, 0.14), transparent 75%); }
.col-tarde .shift-header { background: linear-gradient(110deg, rgba(251, 191, 36, 0.12), transparent 75%); }
.col-noite .shift-header { background: linear-gradient(110deg, rgba(47, 155, 255, 0.14), transparent 75%); }

.free-rooms-container {
    min-width: 0;
    margin: 0 3px;
    padding: 4px 7px;
    border-radius: 8px;
    background: rgba(1, 8, 17, 0.42);
}

.free-rooms-label { font-size: 0.44rem; color: #7890aa; }
.marquee-content { font-size: 0.6rem; animation-duration: 38s; }
.week-availability { color: #9ab1c7; font-weight: 600; }

.shift-body {
    padding: 10px;
    gap: 9px;
    scroll-behavior: auto;
    overscroll-behavior: contain;
}

/* Cartões de aula */
.tv-card {
    height: auto;
    min-height: 136px;
    padding: 13px 13px 12px 16px;
    justify-content: flex-start;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(147, 181, 217, 0.12);
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.035), transparent 45%),
        rgba(9, 27, 48, 0.88);
    box-shadow: 0 9px 22px rgba(0, 0, 0, 0.13);
}

.tv-card::before {
    top: 12px;
    bottom: 12px;
    left: 5px;
    width: 3px;
    border-radius: 99px;
}

.tv-card.live-now {
    background: linear-gradient(120deg, rgba(53, 210, 140, 0.12), rgba(9, 27, 48, 0.94) 55%);
    border-color: rgba(53, 210, 140, 0.35);
    box-shadow: 0 0 0 1px rgba(53, 210, 140, 0.07), 0 12px 28px rgba(0, 0, 0, 0.17);
}

.card-topline {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 19px;
    padding-right: 68px;
    margin-bottom: 5px;
}

.card-kicker,
.city-chip,
.shift-chip {
    display: inline-flex;
    align-items: center;
    min-height: 19px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.52rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.card-kicker {
    padding-left: 0;
    color: #90a9c2;
}

.city-chip {
    color: #b9f6ea;
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.2);
}

.shift-chip { color: #cbd9e7; background: rgba(255, 255, 255, 0.06); }
.shift-chip.manha { color: #ffd299; }
.shift-chip.tarde { color: #ffe184; }
.shift-chip.noite { color: #99caff; }

.card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    padding-right: 0;
    margin: 0 0 5px;
    font-size: clamp(0.84rem, 0.86vw, 1.02rem);
    line-height: 1.22;
    color: #f4f8fd;
}

.card-instructor {
    margin: 0 0 9px;
    gap: 6px;
    font-size: 0.69rem;
    color: #9bbce0;
}

.card-instructor > span {
    color: var(--senac-orange);
    font-size: 0.43rem;
}

.card-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: auto;
    padding: 7px 9px;
    border: 1px solid rgba(119, 164, 209, 0.1);
    background: rgba(1, 9, 19, 0.36);
}

.meta-label { font-size: 0.48rem; color: #7890aa; }
.meta-value { font-size: 0.73rem; color: #e7f0f9; }

.live-badge {
    top: 12px;
    right: 11px;
    padding: 4px 7px;
    font-size: 0.48rem;
    animation: none;
    box-shadow: 0 0 16px rgba(53, 210, 140, 0.2);
}

.live-dot { animation: live-pulse 1.4s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: 0.35; transform: scale(1.45); } }

.weekly-view .tv-card { min-height: 124px; }
.weekly-view .card-title { -webkit-line-clamp: 2; font-size: 0.86rem; }

.compact-card { min-height: 140px; }
.compact-card .card-topline { padding-right: 0; flex-wrap: wrap; }
.compact-card .live-badge { position: static; align-self: flex-start; margin-bottom: 4px; }

.holiday-card {
    align-items: center;
    justify-content: center;
    min-height: 180px;
    text-align: center;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(9, 27, 48, 0.94));
    border-color: rgba(251, 113, 133, 0.28);
}

.holiday-card strong { margin: 8px 0 4px; font-size: 1.05rem; color: #fecdd3; }
.holiday-card > span:last-child { color: #e5b9c0; }

.empty-state { min-height: 190px; gap: 5px; }
.empty-icon { font-size: 1.45rem; color: #43617f; filter: none; }
.empty-text { color: #6f89a4; font-size: 0.72rem; }
.empty-orbit {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(92, 150, 208, 0.2);
    border-radius: 50%;
    box-shadow: inset 0 0 18px rgba(47, 155, 255, 0.06);
}

/* Quadro condicional de cidades */
.city-panel {
    border-color: rgba(45, 212, 191, 0.25);
}

.city-header {
    background: linear-gradient(115deg, rgba(45, 212, 191, 0.16), rgba(37, 99, 235, 0.05) 80%);
    border-bottom-color: rgba(45, 212, 191, 0.15);
}

.city-header .shift-icon { color: #5eead4; }
.city-header .shift-title { display: block; color: #76ead9; }
.city-panel-subtitle {
    display: block;
    max-width: 150px;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.56rem;
    color: #84a9ad;
}

/* Galeria adaptável */
.slide-panel {
    position: relative;
    opacity: 1;
    transform: none;
    animation: panel-enter 0.55s 0.18s cubic-bezier(.2, .75, .2, 1) both;
}

.slide-panel.is-empty { display: none; }

.slide-panel-header {
    min-height: 62px;
    padding: 10px 14px;
    background: linear-gradient(105deg, rgba(47, 155, 255, 0.17), rgba(247, 148, 29, 0.09));
    border-bottom-color: var(--line);
}

.slide-panel-title {
    font-size: 0.67rem;
    color: #dcecff;
    background: none;
    -webkit-text-fill-color: initial;
}

.slide-counter {
    padding: 4px 8px;
    border-radius: 999px;
    color: #a7bed5;
    background: rgba(2, 10, 20, 0.4);
}

.slide-viewport {
    min-height: 0;
    background: #020914;
}

.slide-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 13px 76px;
    overflow: hidden;
    isolation: isolate;
    transition: opacity 0.55s ease;
}

.slide-item::before {
    content: '';
    position: absolute;
    inset: -30px;
    z-index: -2;
    background-image: linear-gradient(rgba(2, 9, 20, 0.25), rgba(2, 9, 20, 0.76)), var(--media-bg);
    background-position: center;
    background-size: cover;
    filter: blur(18px) saturate(0.72);
    opacity: 0.48;
}

.slide-item::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 50% 42%, transparent 20%, rgba(1, 7, 16, 0.64) 100%);
}

.slide-media-frame {
    display: grid;
    place-items: center;
    width: 94%;
    max-height: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: #020813;
    border: 1px solid rgba(177, 211, 245, 0.15);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
}

.slide-item.is-portrait .slide-media-frame {
    width: auto;
    height: 95%;
    aspect-ratio: 9 / 16;
}

.slide-media {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #020813;
}

.slide-caption {
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 50px;
    padding: 10px 12px;
    border-radius: 13px;
    background: rgba(3, 13, 26, 0.9);
    border: 1px solid rgba(147, 190, 232, 0.14);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.slide-caption strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    font-size: 0.78rem;
    color: #f4f8fd;
}

.slide-caption span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    font-size: 0.64rem;
    color: #91a9c1;
}

.media-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 22px;
    text-align: center;
    color: #b6c8d9;
}

.media-fallback::before { content: '!'; color: var(--senac-orange); font-size: 1.6rem; font-weight: 900; }
.media-fallback small { color: #6f879e; font-size: 0.64rem; }

.slide-dots {
    min-height: 26px;
    padding: 7px 10px;
    background: rgba(2, 9, 19, 0.92);
}

.dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    background: #34506d;
}

.dot.active { width: 24px; background: linear-gradient(90deg, var(--senac-orange), var(--senac-blue-bright)); }
.slide-progress { height: 3px; }

/* Rodapé */
.footer {
    height: 56px;
    background: rgba(3, 12, 24, 0.98);
    border-top-color: rgba(126, 177, 226, 0.11);
}

.footer-label {
    min-width: 128px;
    justify-content: center;
    padding: 0 22px 0 16px;
    background: linear-gradient(135deg, #f7941d, #df7200);
    font-size: 0.69rem;
}

.marquee-track { animation-duration: 52s; }
.marquee-track .aviso { font-size: 1rem; color: #c6d5e5; }
.marquee-track .sep { color: var(--senac-orange); }

/* Transição da mudança de data */
#view-transition {
    position: fixed;
    inset: 0;
    z-index: 99950;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.025);
    background:
        linear-gradient(115deg, rgba(247, 148, 29, 0.94), rgba(247, 148, 29, 0.18) 34%, rgba(4, 17, 34, 0.94) 53%, rgba(0, 92, 169, 0.96));
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.55s cubic-bezier(.2, .8, .2, 1);
}

#view-transition.is-visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.view-transition-kicker {
    font-size: clamp(0.72rem, 0.9vw, 1rem);
    font-weight: 800;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

#view-transition strong {
    font-size: clamp(2.1rem, 5vw, 5rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
}

#view-transition small { font-size: clamp(0.9rem, 1.25vw, 1.4rem); color: #dceafa; }

/* Mercurito — palco no canto inferior direito com efeito leve de entrada */
#mercurito-shell {
    inset: 0;
    z-index: 9985;
    display: block;
    padding: 0;
}

#mercurito-avatar-wrap {
    position: fixed;
    right: 2.5vw;
    bottom: 52px;
    width: min(440px, 31vw);
    height: min(540px, 66vh);
    display: block;
}

.mercurito-arrival-effect {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 0;
    width: 72%;
    aspect-ratio: 1;
    transform: translateX(-50%) scale(0.75);
    border-radius: 50%;
    opacity: 0;
    background: radial-gradient(circle, rgba(47, 155, 255, 0.28), rgba(247, 148, 29, 0.12) 40%, transparent 70%);
    box-shadow: 0 0 45px rgba(47, 155, 255, 0.2);
}

#mercurito-shell.active .mercurito-arrival-effect {
    animation: mercurito-arrival 0.85s cubic-bezier(.16, 1, .3, 1) both, mercurito-aura 2.8s 0.85s ease-in-out infinite;
}

@keyframes mercurito-arrival {
    from { opacity: 0; transform: translateX(-50%) scale(0.38); }
    55% { opacity: 1; }
    to { opacity: 0.78; transform: translateX(-50%) scale(1); }
}

@keyframes mercurito-aura {
    50% { opacity: 0.5; transform: translateX(-50%) scale(1.08); }
}

#mercurito-canvas {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

#mercurito-status {
    position: absolute;
    left: 50%;
    bottom: 4px;
    z-index: 2;
    display: block !important;
    visibility: visible !important;
    max-width: 88%;
    transform: translateX(-50%);
    padding: 6px 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.66rem;
    font-weight: 600;
    color: #c7ddf2;
    background: rgba(3, 13, 26, 0.86);
    border: 1px solid rgba(105, 174, 239, 0.2);
    border-radius: 999px;
}

.mercurito-subtitle {
    top: auto;
    left: 50%;
    bottom: 76px;
    width: min(900px, 67vw);
    max-width: none;
    max-height: 36vh;
    padding: 30px 28px 18px;
    overflow: hidden;
    transform: translate(-58%, 18px);
    border-radius: 18px;
    border: 1px solid rgba(121, 181, 237, 0.24);
    background: linear-gradient(120deg, rgba(5, 18, 35, 0.97), rgba(9, 32, 58, 0.96));
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.42), inset 4px 0 0 var(--senac-orange);
    font-size: clamp(1.05rem, 1.45vw, 1.65rem);
    line-height: 1.34;
    font-weight: 600;
    text-align: left;
    text-wrap: balance;
}

.mercurito-subtitle::before {
    content: 'MERCURITO · ASSISTENTE LOCAL';
    position: absolute;
    left: 28px;
    top: 10px;
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.17em;
    color: var(--senac-orange-soft);
}

.mercurito-subtitle.is-visible {
    transform: translate(-58%, 0);
}

.mercurito-subtitle.is-long {
    font-size: clamp(0.9rem, 1.12vw, 1.28rem);
    line-height: 1.26;
}

/* Acesso */
#login-overlay {
    z-index: 100000;
    background:
        radial-gradient(circle at 18% 8%, rgba(247, 148, 29, 0.14), transparent 34%),
        radial-gradient(circle at 86% 96%, rgba(0, 92, 169, 0.25), transparent 38%),
        rgba(2, 8, 19, 0.985);
}

.login-box {
    max-width: 440px;
    padding: 40px;
    border-radius: 24px;
    border-color: rgba(93, 165, 232, 0.25);
    background: linear-gradient(160deg, rgba(13, 34, 59, 0.98), rgba(5, 17, 32, 0.99));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.login-field input { min-height: 50px; border-radius: 12px; background: rgba(1, 9, 19, 0.55); }
#login-btn { min-height: 50px; border-radius: 12px; background: linear-gradient(135deg, #f7941d, #e87b07); }

/* Telas compactas e resoluções de TVs mais antigas */
@media (max-width: 1650px) {
    .header { padding-inline: 20px; }
    .header-sep { margin-inline: 14px; }
    .header-title { column-gap: 12px; }
    .view-context { min-width: 145px; padding-inline: 12px; }
    .header-right { gap: 8px; }
    .weather-desc, .sync-pill { display: none; }
    .main-board.has-city-panel.has-media-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(225px, 0.82fr) minmax(235px, 0.85fr);
    }
    .shift-header { padding-inline: 10px; }
    .free-rooms-container { margin: 0; }
    .card-meta { grid-template-columns: 1fr; }
    .meta-item:last-child { flex-direction: row; align-items: baseline; justify-content: space-between; }
}

@media (max-width: 1366px) {
    .header { height: 92px; }
    .logo-wrap { height: 54px; }
    .logo-img { height: 37px; }
    .header-title h2, .view-context span, .qr-mic-label, .weather-widget { display: none; }
    .header-title { display: flex; gap: 12px; }
    .view-context { min-width: 112px; min-height: 43px; }
    .qr-mic-img { width: 46px; height: 46px; }
    .clock-block { min-width: 90px; }
    .main-board { gap: 8px; padding: 9px; }
    .main-board.has-media-panel { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(210px, .82fr); }
    .main-board.has-city-panel.has-media-panel { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(190px, .75fr) minmax(200px, .78fr); }
    .free-rooms-container, .shift-badge { display: none; }
    .shift-header { min-height: 58px; }
    .tv-card { min-height: 128px; padding-inline: 13px 10px; }
    .card-title { font-size: 0.78rem; }
    .slide-panel-header { min-height: 54px; }
    .footer { height: 48px; }
    #mercurito-avatar-wrap { right: 1vw; width: 330px; height: 410px; bottom: 45px; }
    .mercurito-subtitle { bottom: 62px; width: 68vw; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
