/* =====================================================================
   DALIMA · Ecrã 50" do open space · SPA Dashboard
   - Servidor Embutido PHP (Porta 8002)
   - Transição em Carrossel Vertical (-y a +y)
   - Auto-scroll vertical suave estilo rodapé/ticker em todas as vistas
   - Zoom 7 como padrão (otimizado para visualização à distância na TV)
   - Seletor de Zoom (5 a 12 colunas)
   - Elementos do rodapé com flexbox e sem quebras de linha (anti-achatamento)
   - Ícones SVG Nativos (Sem Emojis)
   - DALIMA Brand Toolkit 2022
   ===================================================================== */
:root {
    --bg: #2D2926;
    /* preto quente */
    --bg2: #1f1c1a;
    --panel: #3a3532;
    --line: #4d4744;
    --txt: #ffffff;
    --mute: #D9CDC5;
    /* bege */
    --brand: #FF3762;
    /* rosa DALIMA */
    --free: #54C3C5;
    /* turquesa — disponível */
    --free2: #80C7AD;
    /* verde-água */
    --lit: #E4C720;
    /* amarelo — ocupado/aceso */
    --warn: #E4C720;
    /* meta/gap em amarelo */
    --plum: #681657;
    /* ameixa — premium */
}

/* Remover todas as barras de scroll (feias) mantendo o scroll ativo */
*,
html,
body,
.stage,
.view,
.cards-wrap,
.tbl-wrap,
.city-wrap {
    box-sizing: border-box;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

:root {
    /* Safe Zone Margins (Proteção de bordas de TV e overscan) */
    --safe-top: clamp(8px, 1.4vh, 20px);
    --safe-bottom: clamp(8px, 1.4vh, 20px);
    --safe-x: clamp(14px, 2.2vw, 42px);
    --content-pad-x: clamp(16px, 2vw, 36px);
    --stage-pad-x: clamp(28px, 4vw, 72px);
}

html,
body {
    height: 100%;
    margin: 0;
    background: #080706;
}

body {
    color: var(--txt);
    font-family: "Proxima Nova Alt", "Proxima Nova", Futura, "Futura PT", Arial, Helvetica, sans-serif;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ---- TV SAFE ZONE & CANVAS (OVERSCAN & BEZEL PROTECTION) ---- */
.safe-zone-frame {
    flex: 1;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: var(--safe-top) var(--safe-x) var(--safe-bottom) var(--safe-x);
    background: #080706;
    overflow: hidden;
}

.app-canvas {
    flex: 1;
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: clamp(12px, 1.2vw, 18px);
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4);
    position: relative;
}

/* Ícones SVG Auxiliares */
.svg-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ---- TOPO ---- */
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(8px, 1.3vh, 16px) var(--content-pad-x) clamp(6px, 1vh, 10px);
    border-bottom: 3px solid var(--brand);
    z-index: 10;
    flex-shrink: 0;
}

.top .brand-box {
    display: flex;
    align-items: center;
    min-width: 0;
}

.top .brand-box img {
    height: clamp(30px, 4vh, 46px);
    width: auto;
    max-width: 170px;
    object-fit: contain;
    display: block;
}

.top .title {
    font-size: clamp(15px, 1.6vw, 22px);
    color: var(--mute);
    margin-left: clamp(12px, 1.4vw, 24px);
    border-left: 2px solid var(--brand);
    padding-left: clamp(10px, 1.2vw, 18px);
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top .right-tools {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.2vw, 20px);
    flex-shrink: 0;
}

.top .clock {
    text-align: right;
    line-height: 1.15;
    white-space: nowrap;
}

.top .clock .t {
    font-size: clamp(22px, 3vh, 38px);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.top .clock .d {
    font-size: clamp(11px, 1.3vh, 15px);
    color: var(--mute);
}

.fs-btn {
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--mute);
    border-radius: 8px;
    padding: clamp(5px, 0.8vh, 8px) clamp(10px, 1vw, 14px);
    font-size: clamp(11px, 1.2vh, 13px);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all .2s;
    user-select: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.fs-btn:hover {
    border-color: var(--free);
    color: #fff;
}

/* ---- FAIXA DE DESTAQUE FIXA (KPIS) ---- */
.hl {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.6fr;
    gap: clamp(10px, 1.2vw, 18px);
    padding: clamp(8px, 1.2vh, 16px) var(--content-pad-x);
    background: var(--bg2);
    z-index: 10;
    flex-shrink: 0;
}

.kpi {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: clamp(10px, 1vw, 16px);
    padding: clamp(8px, 1.2vh, 16px) clamp(12px, 1.4vw, 22px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.kpi .lab {
    font-size: clamp(10px, 1.1vh, 14px);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mute);
    font-weight: 300;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi .val {
    font-size: clamp(26px, 4.2vh, 58px);
    font-weight: 800;
    line-height: 1.05;
    margin-top: clamp(2px, 0.4vh, 4px);
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.kpi .sub {
    font-size: clamp(10px, 1.2vh, 15px);
    color: var(--mute);
    margin-top: clamp(2px, 0.4vh, 4px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi.free {
    border-color: var(--free);
    box-shadow: 0 0 0 1px var(--free) inset;
}

.kpi.free .val {
    color: var(--free);
}

.kpi.gap .val {
    color: var(--warn);
}

.kpi.bar .track {
    height: clamp(13px, 1.7vh, 22px);
    background: #1f1c1a;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-top: clamp(5px, 0.7vh, 10px);
}

.kpi.bar .fill {
    height: 100%;
    background: var(--lit);
    transition: width .5s ease;
}

.kpi.bar .goal {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 3px;
    background: var(--free);
}

.kpi.bar .lbls {
    display: flex;
    justify-content: space-between;
    font-size: clamp(10px, 1.1vh, 14px);
    color: var(--mute);
    margin-top: clamp(3px, 0.5vh, 6px);
    white-space: nowrap;
}

/* ---- PALCO DO CARROSSEL VERTICAL (-Y A +Y) ---- */
.stage {
    flex: 1;
    position: relative;
    margin: 0 var(--content-pad-x);
    padding: 0;
    overflow: hidden;
    min-height: 0;
}

.view {
    position: absolute;
    inset: clamp(6px, 1vh, 12px) 0 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.55s ease;
    overflow-y: hidden;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.view.on {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 2;
}

.vhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: clamp(6px, 1vh, 12px);
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 0;
}

.vhead-titles {
    display: flex;
    align-items: baseline;
    gap: clamp(8px, 1.2vw, 16px);
    min-width: 0;
    overflow: hidden;
}

.vhead h2 {
    margin: 0;
    font-size: clamp(17px, 2.2vh, 26px);
    font-weight: 700;
    white-space: nowrap;
}

.vhead .hint {
    color: var(--mute);
    font-size: clamp(11px, 1.3vh, 15px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* VISTA 1 — ONDE HÁ ESPAÇO */
.v1-tools {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 14px);
    flex-shrink: 0;
}

.cards-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

.cards-slider {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.cards-page {
    width: 100%;
    height: 100%;
    min-height: 100%;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(var(--cards-cols, 6), 1fr);
    grid-auto-rows: var(--card-height, 56px);
    align-content: start;
    gap: var(--cards-gap, 8px);
    padding-bottom: 4px;
    box-sizing: border-box;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--card-radius, 7px);
    padding: var(--card-padding, 6px 12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid var(--free);
    height: var(--card-height, 56px);
    max-height: var(--card-height, 56px);
    box-sizing: border-box;
    min-width: 0;
    transition: border-color .2s ease, opacity .2s ease, transform .2s ease;
}

.card.full {
    border-left-color: var(--line);
    opacity: 0.65;
}

.card .n {
    font-size: var(--card-title-size, clamp(11.5px, 1.3vh, 15px));
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: .01em;
}

.card .l {
    font-size: var(--card-sub-size, clamp(8.5px, 1vh, 11px));
    color: var(--mute);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card .f {
    font-size: var(--card-free-size, clamp(17px, 2.2vh, 24px));
    font-weight: 800;
    color: var(--free);
    line-height: 1;
    margin-left: 8px;
    flex-shrink: 0;
    text-align: right;
}

.card .f small {
    font-size: var(--card-label-size, clamp(7.5px, 0.9vh, 10px));
    color: var(--mute);
    display: block;
    font-weight: 500;
    text-align: right;
    letter-spacing: .02em;
}

.card.full .f {
    color: var(--mute);
}

/* VISTA 2 — TABELA */
.tbl-header-fixed {
    display: grid;
    grid-template-columns: repeat(var(--tbl-cols, 2), 1fr);
    gap: 0 var(--tbl-gap, clamp(16px, 2.5vw, 40px));
    flex-shrink: 0;
    border-bottom: 2px solid var(--line);
    padding-bottom: 4px;
    margin-bottom: 4px;
    transition: grid-template-columns .2s ease, gap .2s ease;
}

.tbl-wrap {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    min-height: 0;
}

.tbl {
    display: grid;
    grid-template-columns: repeat(var(--tbl-cols, 2), 1fr);
    gap: 0 var(--tbl-gap, clamp(16px, 2.5vw, 40px));
    padding-bottom: 0;
    transition: grid-template-columns .2s ease, gap .2s ease;
}

.tbl.tbl-clone {
    margin-top: 0;
    padding-bottom: 24px;
}

.row {
    display: grid;
    grid-template-columns: 1.5fr 1.6fr .5fr .6fr;
    align-items: center;
    padding: var(--tbl-row-pad, clamp(3.5px, 0.6vh, 7px)) 0;
    border-bottom: 1px solid var(--line);
    font-size: var(--tbl-font-size, clamp(12px, 1.4vh, 18px));
    gap: clamp(4px, 0.7vw, 10px);
    transition: font-size .2s ease, padding .2s ease;
}

.row>span:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.row .bar {
    height: var(--tbl-bar-h, clamp(8px, 1.1vh, 12px));
    background: #1f1c1a;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    transition: height .2s ease;
}

.row .bar i {
    display: block;
    height: 100%;
    background: var(--lit);
}

.row .occ {
    text-align: right;
    color: var(--mute);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.row .fr {
    text-align: right;
    font-weight: 800;
    color: var(--free);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.row .fr.z {
    color: var(--mute);
}

.thead {
    font-size: clamp(10px, 1.1vh, 12px);
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--mute);
    border-bottom: none;
    padding: clamp(3px, 0.5vh, 6px) 0;
}

/* VISTA 3 — EDIFÍCIOS & SELETOR DE ZOOM / COLUNAS */
.city-tools {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1vw, 14px);
    flex-shrink: 0;
}

.col-selector-box {
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.6vw, 8px);
    background: #1f1c1a;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: clamp(2px, 0.4vh, 4px) clamp(8px, 0.8vw, 12px);
}

.col-label {
    font-size: clamp(11px, 1.2vh, 13px);
    color: var(--mute);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.col-stepper {
    display: flex;
    align-items: center;
    gap: clamp(3px, 0.5vw, 6px);
}

.col-btn {
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--txt);
    width: clamp(20px, 2.5vh, 26px);
    height: clamp(20px, 2.5vh, 26px);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    padding: 0;
    flex-shrink: 0;
}

.col-btn:hover {
    border-color: var(--free);
    color: var(--free);
}

.col-count-text {
    font-size: clamp(12px, 1.3vh, 14px);
    font-weight: 800;
    min-width: 18px;
    text-align: center;
    color: var(--free);
    font-variant-numeric: tabular-nums;
    padding: 0 4px;
    white-space: nowrap;
}

.col-presets {
    display: flex;
    gap: 4px;
    border-left: 1px solid var(--line);
    padding-left: clamp(4px, 0.6vw, 8px);
}

.col-pill {
    background: transparent;
    border: 1px solid transparent;
    color: var(--mute);
    padding: clamp(2px, 0.3vh, 3px) clamp(5px, 0.6vw, 8px);
    font-size: clamp(10px, 1.1vh, 12px);
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}

.col-pill:hover {
    color: #fff;
    border-color: var(--line);
}

.col-pill.active {
    background: var(--panel);
    color: var(--free);
    border-color: var(--free);
    box-shadow: 0 0 8px rgba(84, 195, 197, 0.25);
}

/* Área de Auto-scroll dos Prédios */
.city-wrap {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0;
    margin-top: 4px;
    position: relative;
}

.city {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: clamp(8px, 1.3vh, 18px) clamp(8px, 1.2vw, 20px);
    align-items: start;
    padding-bottom: 20px;
    transition: grid-template-columns .3s ease;
}

.city.city-clone {
    margin-top: 20px;
}

.bld {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bld .name {
    font-size: clamp(11px, 1.3vh, 15px);
    font-weight: 700;
    margin-bottom: clamp(3px, 0.5vh, 8px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: .02em;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
    display: block;
}

.facade {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2px, 0.4vh, 5px);
    background: #151312;
    border: 2px solid #4d4744;
    border-radius: 6px 6px 2px 2px;
    padding: clamp(3px, 0.6vh, 8px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: clamp(100px, 13vw, 240px);
    box-sizing: border-box;
    margin: 0 auto;
}

.w {
    aspect-ratio: 1/1.15;
    border-radius: 2px;
    background: #1f1c1a;
    border: 1px solid #4d4744;
    box-sizing: border-box;
}

.w.on {
    background: var(--lit);
    box-shadow: 0 0 10px rgba(228, 199, 32, .6);
    border-color: #f1dc6a;
}

.bld .foot {
    font-size: clamp(10px, 1.2vh, 13px);
    color: var(--mute);
    margin-top: clamp(2px, 0.4vh, 7px);
    white-space: nowrap;
}

.bld .foot b {
    color: var(--free);
    font-weight: 800;
    font-size: clamp(11px, 1.3vh, 15px);
}

.legend {
    display: flex;
    gap: clamp(12px, 2vw, 26px);
    justify-content: center;
    color: var(--mute);
    font-size: clamp(11px, 1.2vh, 14px);
    margin: clamp(4px, 0.6vh, 10px) 0 clamp(2px, 0.4vh, 6px);
    flex-shrink: 0;
}

.sw {
    display: inline-block;
    width: clamp(9px, 1.1vh, 12px);
    height: clamp(12px, 1.5vh, 16px);
    border-radius: 2px;
    vertical-align: -2px;
    margin-right: 5px;
    background: #1f1c1a;
    border: 1px solid #4d4744;
}

.sw.on {
    background: var(--lit);
}

/* ---- RODAPÉ & CONTROLOS SPA (SEM ACHATAMENTO) ---- */
.foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(6px, 1vh, 10px) var(--content-pad-x);
    gap: clamp(10px, 1.5vw, 24px);
    color: var(--mute);
    font-size: clamp(11px, 1.2vh, 14px);
    border-top: 1px solid var(--line);
    background: var(--bg);
    z-index: 10;
    flex-shrink: 0;
    min-height: clamp(40px, 5vh, 56px);
    box-sizing: border-box;
}

.view-control {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 14px);
    flex-shrink: 0;
}

.view-tabs {
    display: inline-flex;
    background: #1f1c1a;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 3px;
    gap: 3px;
    flex-shrink: 0;
}

.view-btn {
    background: transparent;
    border: none;
    color: var(--mute);
    padding: clamp(3px, 0.5vh, 6px) clamp(8px, 0.9vw, 14px);
    border-radius: 18px;
    font-size: clamp(11px, 1.2vh, 13px);
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    height: clamp(24px, 3vh, 32px);
}

.view-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.view-btn.active {
    background: var(--panel);
    color: #fff;
    border: 1px solid var(--brand);
    box-shadow: 0 0 10px rgba(255, 55, 98, 0.25);
}

.pin-toggle {
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--mute);
    padding: clamp(3px, 0.5vh, 7px) clamp(8px, 1vw, 16px);
    border-radius: 20px;
    font-size: clamp(11px, 1.2vh, 13px);
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    white-space: nowrap;
    flex-shrink: 0;
    height: clamp(26px, 3.2vh, 38px);
}

.pin-toggle:hover {
    border-color: var(--free);
    color: #fff;
}

.pin-toggle.pinned {
    background: rgba(228, 199, 32, 0.15);
    border-color: var(--warn);
    color: var(--warn);
}

.pin-toggle.pinned .svg-icon {
    animation: pulse 1.5s infinite;
}

.dots {
    display: flex;
    gap: clamp(4px, 0.6vw, 8px);
    align-items: center;
    flex-shrink: 0;
}

.dot {
    width: clamp(7px, 1vh, 10px);
    height: clamp(7px, 1vh, 10px);
    border-radius: 50%;
    background: #4d4744;
    cursor: pointer;
    transition: background .2s;
}

.dot:hover {
    background: var(--free);
}

.dot.on {
    background: var(--brand);
}

.timer-tag {
    font-variant-numeric: tabular-nums;
    font-size: clamp(10px, 1.1vh, 13px);
    color: var(--mute);
    white-space: nowrap;
    flex-shrink: 0;
}

.src {
    flex: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-size: clamp(10px, 1.1vh, 13px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
    min-width: 0;
}

.shortcuts {
    color: var(--mute);
    font-weight: 400;
    font-size: clamp(9px, 1vh, 12px);
    letter-spacing: .02em;
    text-align: right;
    opacity: .85;
    white-space: nowrap;
    flex-shrink: 0;
}

.shortcuts kbd {
    background: #1f1c1a;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1px 4px;
    font-size: clamp(9px, 1vh, 11px);
    color: var(--free);
}

/* ---- MEDIA QUERIES ESPECÍFICAS PARA TELAS DE PC & LAPTOP ---- */
/* Resoluções de altura reduzida típicas de laptop (1366x768, 1280x720, 1366x768 janela normal) */
@media (max-height: 800px) {
    .top {
        padding: 8px 24px 6px;
    }

    .hl {
        padding: 8px 24px;
        gap: 12px;
    }

    .kpi {
        padding: 6px 14px;
        border-radius: 10px;
    }

    .kpi .val {
        font-size: 32px;
    }

    .kpi.bar .track {
        height: 14px;
        margin-top: 5px;
    }

    .stage {
        margin: 0 24px;
    }

    .foot {
        padding: 6px 24px;
        min-height: 42px;
    }
}

/* Resoluções de largura padrão de PC (<= 1366px) */
@media (max-width: 1366px) {
    .top .title {
        font-size: 17px;
        margin-left: 14px;
        padding-left: 12px;
    }

    .hl {
        gap: 10px;
    }

    .kpi {
        padding: 8px 12px;
    }

    .kpi .val {
        font-size: 36px;
    }

    .row {
        grid-template-columns: 1.6fr 1.5fr .5fr .6fr;
    }
}

/* Ecrãs mais estreitos ou janelas divididas (<= 1150px) */
@media (max-width: 1150px) {
    .shortcuts {
        display: none;
    }

    .top .title {
        display: none;
    }
}

/* Modo compacto / meia tela (<= 900px) */
@media (max-width: 900px) {
    .hl {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .tbl-header-fixed {
        grid-template-columns: 1fr;
    }

    #tblHeaderCol2 {
        display: none;
    }

    .tbl {
        grid-template-columns: 1fr;
    }

    .timer-tag {
        display: none;
    }
}

.demo {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 999px;
    letter-spacing: .08em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
}