:root {
    --zzmi-black: #0a0a0a;
    --zzmi-black-soft: #141414;
    --zzmi-white: #ffffff;
    --zzmi-gray-100: #f5f5f5;
    --zzmi-gray-300: #d1d5db;
    --zzmi-gray-500: #6b7280;
    --zzmi-gray-600: #4b5563;
    --zzmi-blue: #0d6efd;
    --zzmi-blue-dark: #0a58ca;
    --zzmi-success: #198754;
    --zzmi-warning: #c9a227;
    --zzmi-error: #dc3545;
    --sidebar-width: 260px;
    --header-height: 64px;
    --radius: 10px;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--zzmi-black);
    background: var(--zzmi-gray-100);
}

a { color: var(--zzmi-blue); text-decoration: none; }
a:hover { color: var(--zzmi-blue-dark); text-decoration: underline; }

/* Auth */
.auth-body {
    min-height: 100vh;
    background: var(--zzmi-black);
    color: var(--zzmi-white);
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--zzmi-black);
    color: var(--zzmi-white);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.5rem;
    background: var(--zzmi-black);
}
.auth-logo { max-width: 220px; height: auto; display: block; margin: 0 auto; }
.auth-title { margin: 0 0 .25rem; font-size: 1.5rem; color: var(--zzmi-white); }
.auth-subtitle { margin: 0 0 1.5rem; color: var(--zzmi-white); }
.auth-links { margin-top: 1rem; text-align: center; }

.auth-card .form-label { color: var(--zzmi-white); }
.auth-card .form-control {
    background: var(--zzmi-white);
    color: var(--zzmi-black);
    border-color: rgba(255, 255, 255, 0.2);
}
.auth-card .form-control::placeholder { color: var(--zzmi-gray-500); }
.auth-card .form-control:focus {
    border-color: var(--zzmi-blue);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}
.auth-card .btn-primary { color: var(--zzmi-white); }

/* Forms */
.form-stack { display: grid; gap: .75rem; }
.form-label { font-size: .9rem; font-weight: 600; }
.form-control {
    width: 100%;
    padding: .65rem .75rem;
    border: 1px solid var(--zzmi-gray-300);
    border-radius: 8px;
    font-size: 1rem;
}
.form-control:focus {
    outline: none;
    border-color: var(--zzmi-blue);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .65rem 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary { background: var(--zzmi-blue); color: var(--zzmi-white); }
.btn-primary:hover { background: var(--zzmi-blue-dark); color: var(--zzmi-white); text-decoration: none; }
.btn-outline { background: transparent; border-color: var(--zzmi-gray-300); color: var(--zzmi-black); }
.btn-ghost { background: transparent; color: var(--zzmi-blue); }
.btn-block { width: 100%; }
.btn-sm { padding: .4rem .75rem; font-size: .875rem; }

/* Alerts */
.alert {
    padding: .75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.alert-success { background: #d1e7dd; color: #0f5132; }
.alert-error { background: #f8d7da; color: #842029; }

/* Master layout */
.master-body { background: var(--zzmi-gray-100); }
.master-shell { display: flex; min-height: 100vh; }

.master-sidebar {
    width: var(--sidebar-width);
    background: var(--zzmi-black);
    color: var(--zzmi-white);
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    transform: translateX(0);
    transition: transform .2s ease;
    overflow-x: hidden;
    overflow-y: auto;
    color-scheme: dark;
}

.sidebar-brand {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-logo { max-width: 180px; height: auto; display: block; }
.sidebar-nav { padding: .85rem .75rem 1.15rem; display: grid; gap: .28rem; align-content: start; }
.sidebar-link {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: .5rem .75rem;
    border-radius: 8px;
    color: var(--zzmi-white);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.25;
    background: rgba(255, 255, 255, 0.045);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--zzmi-white);
    text-decoration: none;
}
.sidebar-link:focus-visible {
    outline: 2px solid var(--zzmi-blue);
    outline-offset: 2px;
    color: var(--zzmi-white);
    text-decoration: none;
}
.sidebar-link.active {
    background: rgba(13, 110, 253, 0.22);
    color: var(--zzmi-white);
    text-decoration: none;
    box-shadow: inset 3px 0 0 var(--zzmi-blue);
}

.master-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-width: 0;
}

.master-header {
    height: var(--header-height);
    background: var(--zzmi-white);
    border-bottom: 1px solid var(--zzmi-gray-300);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.sidebar-toggle {
    display: none;
    background: transparent;
    border: 0;
    font-size: 1.25rem;
    cursor: pointer;
}

.badge-master,
.badge-panel {
    background: var(--zzmi-blue);
    color: var(--zzmi-white);
    padding: .25rem .6rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.header-user {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.user-name { font-weight: 600; }

.master-content { padding: 1.25rem; }

.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.page-header h1 { margin: 0; font-size: 1.5rem; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-chip {
    padding: .4rem .75rem;
    border-radius: 999px;
    border: 1px solid var(--zzmi-gray-300);
    background: var(--zzmi-white);
    color: var(--zzmi-black);
    text-decoration: none;
    font-size: .875rem;
}
.filter-chip.active,
.filter-chip:hover {
    background: var(--zzmi-blue);
    border-color: var(--zzmi-blue);
    color: var(--zzmi-white);
    text-decoration: none;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.dash-card,
.panel {
    background: var(--zzmi-white);
    border: 1px solid var(--zzmi-gray-300);
    border-radius: var(--radius);
    padding: 1rem;
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .5rem;
    margin-bottom: .75rem;
}
.dash-card-header h2 { margin: 0; font-size: 1rem; }
.dash-card-header h3 { margin: 0; font-size: 1rem; }
.dash-card-value { font-size: 2rem; font-weight: 700; line-height: 1.1; margin-bottom: .35rem; }
.dash-card-desc { margin: 0; }
.dash-card-empty { padding: .75rem; }
.dash-card-link { margin: .75rem 0 0; font-size: .875rem; }
.dashboard-section { margin-bottom: 1.5rem; }
.section-title { font-size: 1.1rem; margin: 0 0 .75rem; color: var(--zzmi-black); }
.dashboard-block-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 .75rem;
    color: var(--zzmi-black);
}
.sidebar-section-label {
    display: block;
    margin: .75rem 0 .25rem;
    padding: 0 .85rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
}
.sidebar-sublink {
    min-height: 32px;
    padding: .38rem .7rem .38rem .9rem;
    font-size: .8125rem;
    font-weight: 500;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, .88);
}
.sidebar-sublink:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--zzmi-white);
}
.sidebar-sublink.active {
    background: rgba(13, 110, 253, 0.22);
    color: var(--zzmi-white);
    font-weight: 600;
}
.seller-sidebar {
    overflow-x: hidden;
    overflow-y: auto;
    color-scheme: dark;
}
.seller-sidebar::-webkit-scrollbar,
.master-sidebar::-webkit-scrollbar {
    width: 8px;
}
.seller-sidebar::-webkit-scrollbar-track,
.master-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.seller-sidebar::-webkit-scrollbar-thumb,
.master-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .18);
    border-radius: 8px;
}
.seller-sidebar::-webkit-scrollbar-thumb:hover,
.master-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .28);
}
.sidebar-accordion {
    display: grid;
    gap: .2rem;
    min-width: 0;
}
.master-sidebar.seller-sidebar .sidebar-accordion-toggle {
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: .5rem .75rem;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    background-color: rgba(255, 255, 255, 0.045);
    box-shadow: none;
    color: rgba(255, 255, 255, .86);
    font: inherit;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-align: left;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.master-sidebar.seller-sidebar .sidebar-accordion-toggle:hover {
    background: rgba(255, 255, 255, .09);
    color: var(--zzmi-white);
}
.master-sidebar.seller-sidebar .sidebar-accordion-toggle:focus-visible {
    background: rgba(255, 255, 255, .09);
    color: var(--zzmi-white);
    outline: 2px solid var(--zzmi-blue);
    outline-offset: 2px;
}
.master-sidebar.seller-sidebar .sidebar-accordion.is-open .sidebar-accordion-toggle {
    background: rgba(13, 110, 253, 0.14);
    color: var(--zzmi-white);
}
.master-sidebar.seller-sidebar .sidebar-accordion.is-current .sidebar-accordion-toggle {
    box-shadow: inset 3px 0 0 var(--zzmi-blue);
}
.master-sidebar.seller-sidebar .sidebar-accordion.is-open.is-current .sidebar-accordion-toggle {
    background: rgba(13, 110, 253, 0.18);
    color: var(--zzmi-white);
}
.sidebar-accordion-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: .85rem;
    flex: 0 0 auto;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1;
    opacity: .9;
}
.sidebar-accordion-panel {
    display: grid;
    gap: .18rem;
    min-width: 0;
    padding: .12rem 0 .08rem .2rem;
}
.sidebar-accordion-panel[hidden] {
    display: none !important;
}
.panel h3 { margin: 0 0 .75rem; font-size: 1rem; }
.status-warning strong { color: #b45309; }
.panel h3 { margin: 0 0 .75rem; font-size: .95rem; }
.dash-tag {
    font-size: .7rem;
    color: var(--zzmi-gray-500);
    text-align: right;
}

.dash-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}
.metric-label { display: block; font-size: .75rem; color: var(--zzmi-gray-500); }
.metric-value { font-size: 1.1rem; }

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.panel h2 { margin: 0 0 .75rem; font-size: 1rem; }

.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.status-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--zzmi-gray-100);
}
.status-ok strong { color: var(--zzmi-success); }
.status-error strong { color: var(--zzmi-error); }
.status-neutral strong { color: var(--zzmi-gray-500); }

.empty-state {
    padding: 1.25rem;
    border: 1px dashed var(--zzmi-gray-300);
    border-radius: 8px;
    color: var(--zzmi-gray-500);
    text-align: center;
}

.account-grid { align-items: start; }

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 900;
}

.text-center { text-align: center; }
.text-muted { color: var(--zzmi-gray-500); font-size: .875rem; }
.mt-3 { margin-top: 1rem; }

.field-error { color: var(--zzmi-error); font-size: .85rem; margin-top: .35rem; }
.form-control.is-invalid { border-color: var(--zzmi-error); }
.validation-list { margin: 0; padding-left: 1.1rem; }
.validation-list li { margin-bottom: .25rem; }
.search-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.search-row .form-control { flex: 1; min-width: 200px; }

.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th, .data-table td { padding: .65rem .5rem; border-bottom: 1px solid var(--zzmi-gray-300); text-align: left; vertical-align: top; }
.data-table th { font-size: .8rem; color: var(--zzmi-gray-500); text-transform: uppercase; letter-spacing: .03em; }
.table-actions { display: flex; flex-wrap: wrap; gap: .35rem; }

.status-badge { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.status-ativa { background: #d1e7dd; color: #0f5132; }
.status-bloqueada { background: #f8d7da; color: #842029; }
.status-suspensa { background: #fff3cd; color: #664d03; }
.status-licenca-disponivel { background: #e7f1ff; color: #084298; }
.status-licenca-utilizada { background: #fff3cd; color: #664d03; }
.status-licenca-ativa { background: #d1e7dd; color: #0f5132; }
.status-licenca-bloqueada { background: #f8d7da; color: #842029; }
.status-licenca-vencida { background: #fde2c8; color: #7a3e00; }
.status-licenca-cancelada { background: #e2e3e5; color: #41464b; }
.licenca-stock-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.licenca-stock-card { padding: 1rem; }
.detail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.detail-list li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--zzmi-gray-200); padding-bottom: .5rem; }
.detail-list span { color: var(--zzmi-gray-500); }
.pacote-resumo h3 { margin: 0 0 .75rem; font-size: 1rem; }
.form-actions-inline { display: flex; gap: .5rem; margin-top: 1rem; }
.renovacao-item { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--zzmi-gray-200); }
.renovacao-item h3 { margin: 0 0 .5rem; font-size: .95rem; }
.form-hint { font-size: .85rem; color: var(--zzmi-gray-500); margin-top: .35rem; }
.page-header-actions { display: flex; gap: .5rem; }

.detail-list { margin: 0; display: grid; gap: .5rem; }
.detail-list dt { font-size: .75rem; color: var(--zzmi-gray-500); text-transform: uppercase; }
.detail-list dd { margin: 0 0 .5rem; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; }
.form-group-full { grid-column: 1 / -1; }
.form-group.is-hidden { display: none; }
.form-actions { margin-top: .5rem; }
.action-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.header-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.inline-form { display: inline; }

select.form-control { background: var(--zzmi-white); }

@media (max-width: 900px) {
    .master-sidebar { transform: translateX(-100%); }
    .master-sidebar.open { transform: translateX(0); }
    .master-main { margin-left: 0; }
    .sidebar-toggle { display: inline-flex; }
    .sidebar-backdrop.show { display: block; }
    .header-user .user-name { display: none; }
    .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .auth-card { padding: 1.25rem; }
    .dash-metrics { grid-template-columns: 1fr; }
}

.zzmi-vendas-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem;
    align-items: start;
}
.zzmi-map {
    height: 420px;
    width: 100%;
    border-radius: 8px;
    margin-top: .75rem;
    background: var(--zzmi-gray-200);
}
.zzmi-sit {
    font-weight: 600;
    white-space: nowrap;
}
.zzmi-sit-verde { color: #1f9d55; }
.zzmi-sit-vermelho { color: #c53030; }
.zzmi-sit-amarelo { color: #b7791f; }
.zzmi-sit-laranja { color: #dd6b20; }
.zzmi-sit-analise { color: var(--zzmi-gray-500); }
.data-table tr.js-tv-row.is-selected td {
    background: rgba(13, 110, 253, 0.08);
}
.zzmi-tv-popup .leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.zzmi-tv-popup .leaflet-popup-content {
    margin: .85rem 1rem;
    min-width: 220px;
}
.zzmi-tv-card {
    font-size: .875rem;
    color: var(--zzmi-black);
    line-height: 1.35;
}
.zzmi-tv-card-title {
    display: block;
    font-size: 1rem;
    margin-bottom: .45rem;
}
.zzmi-tv-card p {
    margin: .2rem 0;
}
.zzmi-tv-card .form-hint {
    margin: .25rem 0 0;
}
.zzmi-tv-status {
    font-weight: 700;
    margin: .55rem 0 .35rem;
}
.zzmi-tv-card-add {
    display: flex;
    align-items: flex-start;
    gap: .4rem;
    margin-top: .35rem;
    font-weight: 600;
}
.zzmi-quote-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .5rem;
}
.zzmi-vendas-filters {
    margin-top: .35rem;
}
.zzmi-vendas-filters-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .5rem .75rem;
    align-items: end;
}
.zzmi-filter-field {
    display: grid;
    gap: .25rem;
    min-width: 0;
}
.zzmi-filter-field .form-label {
    margin: 0;
    font-size: .75rem;
    font-weight: 600;
    color: var(--zzmi-gray-500);
    white-space: nowrap;
}
.zzmi-filter-action {
    display: flex;
    align-items: flex-end;
}
.zzmi-filter-action .btn {
    width: 100%;
}
@media (max-width: 900px) {
    .zzmi-vendas-grid { grid-template-columns: 1fr; }
    .zzmi-vendas-filters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .zzmi-vendas-filters-grid { grid-template-columns: 1fr; }
}

.qr-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}
.qr-stat span {
    display: block;
    font-size: .8rem;
    color: var(--zzmi-gray-500);
    text-transform: uppercase;
    letter-spacing: .03em;
}
.qr-stat strong {
    display: block;
    margin-top: .35rem;
    font-size: 1.4rem;
}
.qr-preview-panel {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    align-items: start;
}
.qr-preview {
    text-align: center;
}
.qr-preview img {
    width: 240px;
    height: 240px;
    background: #fff;
    border: 1px solid var(--zzmi-gray-300);
    border-radius: 8px;
}
.qr-code-id { margin: .75rem 0; }
.qr-config-row label {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.qr-action-group {
    border: 0;
    margin: 0 0 1rem;
    padding: 0;
}
.qr-action-group legend {
    font-weight: 700;
    margin-bottom: .65rem;
}
.qr-action-options {
    display: grid;
    gap: .5rem;
}
.qr-action-option {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0;
    padding: .7rem .9rem;
    border: 1px solid var(--zzmi-gray-300);
    border-radius: 8px;
    background: var(--zzmi-white);
    cursor: pointer;
    font-weight: 600;
}
.qr-action-option input {
    accent-color: var(--zzmi-blue);
}
.qr-action-option.is-selected,
.qr-action-option:has(input:checked) {
    background: var(--zzmi-blue);
    border-color: var(--zzmi-blue);
    color: var(--zzmi-white);
}
.qr-action-pending {
    margin: 0 0 1rem;
    padding: .85rem 1rem;
    border: 1px solid #f5c2c7;
    background: #f8d7da;
    color: #842029;
    border-radius: 8px;
}
.qr-action-pending p { margin: .35rem 0; }
.qr-action-pending ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.qr-whatsapp-extra {
    display: grid;
    gap: .75rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 8px;
    background: rgba(0, 0, 0, .02);
}
.qr-whatsapp-extra[hidden] { display: none !important; }
.qr-whatsapp-check {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    cursor: pointer;
}
.qr-whatsapp-endereco-hint { margin-top: .35rem; }
.qr-whatsapp-preview-text {
    margin: 0;
    padding: .65rem .75rem;
    border-radius: 6px;
    background: #0c0c10;
    color: #f5f5f5;
    font-family: inherit;
    font-size: .9rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}
.qr-stats-acoes {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.qr-public-body {
    min-height: 100vh;
    background: var(--zzmi-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.qr-public {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.qr-public-logo {
    width: 120px;
    margin-bottom: 1rem;
}
.qr-public-links {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: .65rem;
}
@media (max-width: 800px) {
    .qr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qr-stats-acoes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qr-preview-panel { grid-template-columns: 1fr; }
}

.midia-thumb-wrap { margin-top: .35rem; }
.midia-thumb {
    width: 64px;
    height: 36px;
    object-fit: contain;
    background: #000;
    border-radius: 4px;
    border: 1px solid var(--zzmi-gray-300);
}
.tv-simulator {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: 1rem 0 1.25rem;
    background: transparent;
}
.tv-simulator-bezel {
    background: #111;
    border: 3px solid #0a0a0a;
    border-radius: 14px;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex: 0 0 auto;
    min-width: 0;
    overflow: hidden;
}
.tv-simulator-screen {
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
}
/* Camadas de mídia diretas — não afeta widgets internos (notícias, clima, etc.) */
.tv-simulator-screen > img,
.tv-simulator-screen > video,
.tv-simulator-screen > iframe,
.tv-simulator-screen .playlist-slide > img,
.tv-simulator-screen .playlist-slide > video,
.tv-simulator-screen .playlist-slide > iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border: 0;
    display: block;
}
.tv-simulator-horizontal .tv-simulator-bezel {
    width: min(900px, 100%);
    height: auto;
    aspect-ratio: 16 / 9;
}
.tv-simulator-vertical .tv-simulator-bezel {
    height: min(600px, 70vh);
    width: auto;
    max-width: 100%;
    aspect-ratio: 9 / 16;
}
.tv-sim-stage {
    position: relative;
}
.tv-sim-exit {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 40;
    background: rgba(255, 255, 255, .94);
    color: #111;
    border: 0;
    border-radius: 8px;
    padding: .45rem .95rem;
    font: inherit;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}
.tv-sim-stage:fullscreen,
.tv-sim-stage:-webkit-full-screen,
.tv-sim-stage.is-tv-fill {
    background: #050505;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 3rem 1rem 1rem;
}
.tv-sim-stage.is-tv-fill {
    position: fixed;
    inset: 0;
    z-index: 4000;
}
.tv-sim-stage:fullscreen .tv-simulator,
.tv-sim-stage:-webkit-full-screen .tv-simulator,
.tv-sim-stage.is-tv-fill .tv-simulator {
    width: 100%;
    height: 100%;
    padding: 0;
    align-items: center;
}
.tv-sim-stage:fullscreen .tv-simulator-horizontal .tv-simulator-bezel,
.tv-sim-stage:-webkit-full-screen .tv-simulator-horizontal .tv-simulator-bezel,
.tv-sim-stage.is-tv-fill .tv-simulator-horizontal .tv-simulator-bezel {
    width: min(100%, calc((100vh - 4rem) * 16 / 9));
    height: auto;
    max-height: calc(100vh - 4rem);
    aspect-ratio: 16 / 9;
}
.tv-sim-stage:fullscreen .tv-simulator-vertical .tv-simulator-bezel,
.tv-sim-stage:-webkit-full-screen .tv-simulator-vertical .tv-simulator-bezel,
.tv-sim-stage.is-tv-fill .tv-simulator-vertical .tv-simulator-bezel {
    height: min(calc(100vh - 4rem), calc((100vw - 2rem) * 16 / 9));
    width: auto;
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 4rem);
    aspect-ratio: 9 / 16;
}
body:has(.tv-sim-stage.is-tv-fill) {
    overflow: hidden;
}
.tv-simulator-empty {
    color: #fff;
    padding: 1rem;
    text-align: center;
}
.tv-simulator-screen {
    position: relative;
}
.tv-sim-canvas {
    container-type: size;
    container-name: tv-canvas;
}
/* Composição do simulador — camadas full screen (espelha FrameLayout do APK) */
.playlist-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.tv-simulator-screen .playlist-slide > img,
.tv-simulator-screen .playlist-slide > video,
.tv-simulator-screen .playlist-slide > iframe,
.tv-simulator-screen .playlist-sim-el,
.playlist-slide > img,
.playlist-slide > video,
.playlist-slide > iframe,
.playlist-sim-el {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    border: 0;
    background: #000;
    z-index: 1;
}
.playlist-sim-el[hidden],
#playlist-sim-preload[hidden] {
    display: none !important;
}
.playlist-sim-status {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 18%;
    z-index: 3;
    text-align: center;
    color: #fff;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.55);
    padding: 8px 10px;
    border-radius: 6px;
}
.playlist-sim-status[hidden] {
    display: none !important;
}
#playlist-sim-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
}
.playlist-qr-footer {
    position: relative;
    height: 16%;
    min-height: 2.5rem;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #0c0c10;
    color: #fff;
    font-size: 11px;
    line-height: 1.3;
    padding: 6px 8px;
    box-sizing: border-box;
}
.playlist-qr-footer:empty {
    display: none;
    height: 0;
    min-height: 0;
    padding: 0;
}
.playlist-qr-footer-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.playlist-qr-overlay {
    position: relative;
    right: auto;
    bottom: auto;
    flex: 0 0 auto;
    width: auto;
    height: 80%;
    max-height: 100%;
    max-width: 22%;
    z-index: 2;
    background: #fff;
    padding: 3px;
    border-radius: 4px;
    box-sizing: border-box;
}
.playlist-qr-overlay img {
    width: auto;
    height: 100%;
    max-width: 100%;
    display: block;
    object-fit: contain;
}
.playlist-tv-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .5rem 1rem;
    margin: 0;
}
.playlist-tv-info dt {
    font-size: .8rem;
    color: var(--zzmi-gray-600, #555);
}
.playlist-tv-info dd {
    margin: 0;
    font-weight: 600;
}
.playlist-tv-box,
.playlist-incompativeis {
    margin: 0 0 1rem;
    padding: .9rem 1rem;
    border: 1px solid var(--zzmi-gray-300, #ddd);
    border-radius: 8px;
}
.playlist-horario {
    display: grid;
    grid-template-columns: 1fr;
    gap: .55rem;
    margin-top: .5rem;
    min-width: 14rem;
}
#playlist-itens-table .playlist-prog {
    min-width: 11rem;
}
#playlist-itens-table .playlist-prog-mode {
    margin-bottom: 0;
}
#playlist-itens-table td {
    vertical-align: top;
}
.playlist-etapa5 {
    min-width: 0;
}
.playlist-itens-scroll {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}
.playlist-itens-table {
    min-width: max-content;
    width: 100%;
}
#playlist-itens-table .playlist-itens-actions,
.playlist-itens-table .playlist-itens-actions {
    white-space: nowrap;
    min-width: 9.5rem;
}
.playlist-itens-actions-col {
    min-width: 9.5rem;
}
.playlist-itens-actions .btn {
    flex-shrink: 0;
}
.playlist-horario[hidden] {
    display: none !important;
}
.playlist-prog label {
    margin-right: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}
.playlist-prog label input {
    margin: 0;
}
.playlist-horario label {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    font-size: .82rem;
}
.playlist-horario input[type="date"],
.playlist-horario input[type="time"] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.playlist-cal-btn {
    position: relative;
}
.playlist-cal-bell {
    margin-right: .15rem;
}
.playlist-cal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .85rem;
}
.playlist-cal-item {
    border: 1px solid var(--zzmi-gray-300, #ddd);
    border-radius: 8px;
    padding: .85rem 1rem;
}
.playlist-cal-item--ativa {
    border-color: #198754;
    background: #f0fdf4;
}
.playlist-cal-item--programada {
    border-color: #ffc107;
    background: #fffbeb;
}
.playlist-cal-item--encerrada {
    border-color: #dc3545;
    background: #fff5f5;
}
.playlist-cal-status {
    margin: 0 0 .35rem;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .03em;
}
.playlist-cal-midia,
.playlist-cal-anunciante {
    margin: 0 0 .25rem;
}
.playlist-cal-janela {
    display: grid;
    grid-template-columns: repeat(2, minmax(8rem, 1fr));
    gap: .35rem .75rem;
    margin: .5rem 0;
}
.playlist-cal-janela dt {
    font-size: .75rem;
    color: var(--zzmi-gray-600);
}
.playlist-cal-janela dd {
    margin: 0;
    font-weight: 600;
}
.playlist-cal-alertas {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .25rem;
    margin-left: .35rem;
}
.playlist-cal-alerta {
    font-size: .72rem;
    padding: .1rem .35rem;
    border-radius: 4px;
    background: #fff3cd;
    border: 1px solid #ffc107;
}
.playlist-prog-status {
    margin-top: 1rem;
    padding-top: .85rem;
    border-top: 1px solid var(--zzmi-gray-300, #ddd);
}
.playlist-prog-status h4 {
    margin: 0 0 .35rem;
    font-size: .95rem;
}
.playlist-prog-status-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .45rem;
}
.playlist-prog-status-item {
    font-size: .88rem;
}
.playlist-prog-badge {
    display: inline-block;
    font-size: .82rem;
    font-weight: 600;
}
.playlist-prog-badge--programada { color: #997404; }
.playlist-prog-badge--ativa { color: #198754; }
.playlist-prog-badge--encerrada { color: #842029; }
.playlist-prog-badge--fixa { color: var(--zzmi-gray-600); }
.playlist-tv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
}
.playlist-tv-card h3 {
    letter-spacing: .02em;
}
.playlist-pub-resumo {
    margin: 0 0 .75rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--zzmi-gray-500);
}
.playlist-pub-dot {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
    flex-shrink: 0;
}
.playlist-pub-resumo--ok { color: var(--zzmi-success); }
.playlist-pub-resumo--wait { color: var(--zzmi-warning); }
.playlist-pub-resumo--off,
.playlist-pub-resumo--error { color: var(--zzmi-error); }
.playlist-pub-resumo--none { color: var(--zzmi-gray-500); }
.playlist-pub-card {
    margin-bottom: 1rem;
    border-left: 4px solid var(--zzmi-blue);
}
.playlist-pub-card h3 {
    margin: 0 0 .35rem;
    font-size: .95rem;
    letter-spacing: .06em;
    color: var(--zzmi-black);
}
.playlist-pub-ident {
    margin: 0 0 .85rem;
    font-weight: 600;
    color: var(--zzmi-black);
}
.playlist-pub-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}
.playlist-pub-steps li {
    display: flex;
    gap: .55rem;
    align-items: flex-start;
    margin: .32rem 0;
    color: var(--zzmi-gray-500);
    line-height: 1.35;
}
.playlist-pub-steps .playlist-pub-mark {
    width: 1.1rem;
    flex-shrink: 0;
    text-align: center;
    font-weight: 700;
}
.playlist-pub-steps li.is-done { color: var(--zzmi-success); }
.playlist-pub-steps li.is-current { color: var(--zzmi-warning); font-weight: 600; }
.playlist-pub-steps li.is-error { color: var(--zzmi-error); font-weight: 600; }
.playlist-pub-msg {
    margin: .85rem 0 0;
    font-size: .9rem;
    color: var(--zzmi-gray-600);
}
.playlist-pub-comm {
    margin: .5rem 0 0;
    font-size: .9rem;
    color: var(--zzmi-gray-500);
}
@media (max-width: 640px) {
    .playlist-pub-card {
        overflow-wrap: anywhere;
    }
}
@media (max-width: 640px) {
    .tv-simulator-horizontal .tv-simulator-bezel {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
    .tv-simulator-vertical .tv-simulator-bezel {
        height: min(520px, 65vh);
        max-width: 100%;
        aspect-ratio: 9 / 16;
    }
}
.midia-padrao-box,
.midia-arquivo-box,
.midia-alerta {
    margin: 0 0 1rem;
    padding: .9rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--zzmi-gray-300);
    background: var(--zzmi-white);
}
.midia-padrao-box h3,
.midia-arquivo-box h3 {
    margin: 0 0 .5rem;
    font-size: .95rem;
}
.midia-padrao-box p,
.midia-arquivo-box p { margin: .25rem 0; }
.midia-padrao-box ul { margin: .35rem 0 .5rem; padding-left: 1.1rem; }
.midia-alerta-warn {
    border-color: #ffc107;
    background: #fff8e1;
}
.midia-alerta-error {
    border-color: var(--zzmi-error);
    background: #f8d7da;
    color: #842029;
    font-weight: 600;
}
.composicao-preview {
    max-width: 520px;
}
.composicao-preview-frame {
    position: relative;
    background: #000;
    overflow: hidden;
    border-radius: 6px;
}
.composicao-preview-horizontal .composicao-preview-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
}
.composicao-preview-vertical .composicao-preview-frame {
    width: min(280px, 100%);
    aspect-ratio: 9 / 16;
}
.composicao-preview-frame img,
.composicao-preview-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}
.composicao-preview-stack {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}
.composicao-preview-media {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    overflow: hidden;
    background: #000;
}
.composicao-preview-media img,
.composicao-preview-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.composicao-preview-footer {
    position: relative;
    flex: 0 0 16%;
    height: 16%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #0c0c10;
    color: #fff;
    padding: 6px 10px;
    box-sizing: border-box;
}
.composicao-preview-text {
    font-size: 11px;
    line-height: 1.35;
    min-width: 0;
}
.composicao-preview-qr {
    width: auto;
    height: 100%;
    max-height: 72px;
    max-width: 72px;
    background: #fff;
    padding: 3px;
    object-fit: contain;
}
.composicao-alerta {
    border: 1px solid #ffc107;
    background: #fff8e1;
}
.composicao-wait {
    position: fixed;
    inset: 0;
    background: rgba(12, 14, 20, 0.78);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 80;
    padding: 24px;
}
.composicao-wait[hidden] {
    display: none !important;
}
.composicao-wait-card {
    background: #16181f;
    color: #fff;
    border-radius: 12px;
    padding: 36px 32px 28px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}
.composicao-spinner {
    width: 52px;
    height: 52px;
    margin: 0 auto 22px;
    border: 4px solid rgba(255, 255, 255, 0.18);
    border-top-color: #fff;
    border-radius: 50%;
    animation: composicao-spin 0.85s linear infinite;
}
@keyframes composicao-spin {
    to { transform: rotate(360deg); }
}
.composicao-wait-card h3 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
}
.composicao-wait-card p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
}
.composicao-wait-hint {
    margin-top: 12px !important;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7) !important;
}
.composicao-resultado {
    margin: 1rem 0;
}
.composicao-erro {
    border: 1px solid #c62828;
    background: #fdecea;
    color: #7f1d1d;
    padding: 16px 18px;
    border-radius: 8px;
    margin: 1rem 0;
}
.composicao-erro p {
    margin: 0 0 8px;
}
.composicao-erro-motivo {
    margin: 8px 0 14px !important;
}

.painel-tv-resumo {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 1rem;
}
.painel-tv-chip {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--zzmi-white);
    border: 1px solid var(--zzmi-gray-300);
    border-left-width: 5px;
    min-width: 0;
}
.painel-tv-chip strong {
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 700;
}
.painel-tv-chip-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--zzmi-gray-500);
}
.painel-tv-chip-on { border-left-color: #198754; }
.painel-tv-chip-atencao { border-left-color: #eab308; }
.painel-tv-chip-off { border-left-color: #dc3545; }
.painel-tv-chip-total { border-left-color: var(--zzmi-black); }
.painel-tv-chip-on strong { color: #198754; }
.painel-tv-chip-atencao strong { color: #a16207; }
.painel-tv-chip-off strong { color: #dc3545; }
.painel-tv-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 12px;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}
.painel-tv-card-on .painel-tv-dot { background: #198754; }
.painel-tv-card-atencao .painel-tv-dot { background: #eab308; }
.painel-tv-card-off .painel-tv-dot { background: #dc3545; }
.painel-tv-filtros {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px 10px;
    align-items: end;
}
.painel-tv-filtros .form-label {
    display: block;
    margin: 0 0 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
.painel-tv-filtros-acoes {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-bottom: 2px;
    flex-wrap: wrap;
}
.painel-tv-board {
    column-width: 230px;
    column-gap: 14px;
}
.painel-tv-card {
    position: relative;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    display: block;
    margin: 0 0 14px;
    padding: 12px 34px 12px 12px;
    background: #fafafa;
    border: 1px solid var(--zzmi-gray-300);
    border-left-width: 5px;
    border-radius: 8px;
}
.painel-tv-card-on { border-left-color: #198754; background: #f3fbf6; }
.painel-tv-card-atencao { border-left-color: #eab308; background: #fffbeb; }
.painel-tv-card-off { border-left-color: #dc3545; background: #fef4f4; }
.painel-tv-card-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    min-width: 0;
}
.painel-tv-card-head strong {
    min-width: 0;
    font-weight: 700;
    line-height: 1.25;
    word-break: break-word;
}
.painel-tv-orientacao {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    color: #fff;
    background: #1f2937;
}
.painel-tv-status {
    margin: 6px 0 0 20px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.painel-tv-quando {
    margin: 2px 0 0 20px;
    font-size: 0.82rem;
    color: var(--zzmi-gray-500);
}
.painel-tv-card-on .painel-tv-status { color: #198754; }
.painel-tv-card-atencao .painel-tv-status { color: #a16207; }
.painel-tv-card-off .painel-tv-status { color: #dc3545; }
.painel-tv-card-actions {
    margin: 10px 0 0 20px;
}
.painel-tv-hist-btn {
    font-size: 0.72rem;
    padding: 2px 8px;
    line-height: 1.4;
}
.painel-tv-status-inline {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.painel-tv-status-inline--on { color: #198754; }
.painel-tv-status-inline--atencao { color: #a16207; }
.painel-tv-status-inline--off { color: #dc3545; }
.tv-historico-filtros {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1rem;
}
.tv-historico-filtros-form { margin: 0; min-width: 180px; }
.tv-historico-vazio { margin: 1rem 0 0; }
.tv-historico-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--zzmi-gray-300);
}
.tv-historico-item {
    position: relative;
    margin: 0 0 1.25rem 0;
    padding: 0 0 0 18px;
}
.tv-historico-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--zzmi-gray-400);
}
.tv-historico-item--erro::before { background: #dc3545; }
.tv-historico-item--aviso::before { background: #eab308; }
.tv-historico-item-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--zzmi-gray-600);
}
.tv-historico-icone { font-size: 1rem; line-height: 1; }
.tv-historico-titulo {
    display: block;
    margin: 4px 0 2px;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}
.tv-historico-desc {
    margin: 0;
    font-size: 0.85rem;
    color: var(--zzmi-gray-700);
}
.painel-restart-block { margin-top: 0; }
@media (max-width: 900px) {
    .painel-tv-resumo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .painel-tv-board { column-width: 220px; }
}
@media (max-width: 560px) {
    .painel-tv-resumo { grid-template-columns: 1fr 1fr; }
    .painel-tv-board { column-width: 100%; column-count: 1; }
}

/* Ativador — mobile first */
.ativador-body {
    margin: 0;
    min-height: 100vh;
    background: var(--zzmi-gray-100);
}
.ativador-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 1rem;
    background: var(--zzmi-black);
    color: var(--zzmi-white);
}
.ativador-logo { height: 36px; width: auto; }
.ativador-nav { display: flex; gap: .75rem; flex-wrap: wrap; }
.ativador-nav a {
    color: var(--zzmi-white);
    font-weight: 600;
    font-size: .9rem;
}
.ativador-nav a.is-active { text-decoration: underline; }
.ativador-main { padding: 1rem; max-width: 520px; margin: 0 auto; }
.ativador-card {
    background: var(--zzmi-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
}
.ativador-card h1 { margin: 0 0 1rem; font-size: 1.35rem; }
.ativador-input {
    min-height: 48px;
    font-size: 1.05rem;
    margin-bottom: .75rem;
}
.ativador-btn {
    width: 100%;
    min-height: 48px;
    margin: .4rem 0;
    font-size: 1rem;
}
.ativador-results {
    list-style: none;
    margin: 0 0 .75rem;
    padding: 0;
    border: 1px solid var(--zzmi-gray-300);
    border-radius: 8px;
    max-height: 220px;
    overflow: auto;
}
.ativador-results button {
    width: 100%;
    text-align: left;
    padding: .85rem 1rem;
    border: 0;
    background: transparent;
    font-size: 1rem;
}
.ativador-results button:hover,
.ativador-results button:focus { background: var(--zzmi-gray-100); }
.ativador-results button.is-selected {
    background: var(--zzmi-gray-200);
    font-weight: 600;
}
.zzmi-anunciante-picker { position: relative; }
.zzmi-anunciante-picker-results {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    margin-top: .25rem;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}
.zzmi-anunciante-picker-selected {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}
.ativador-selected { font-weight: 600; margin: 0 0 .75rem; }
.ativador-tv-info {
    background: var(--zzmi-gray-100);
    border-radius: 8px;
    padding: .85rem 1rem;
    margin: .75rem 0;
}
.ativador-tv-info p { margin: .35rem 0; }
.ativador-tv-list button.is-selected {
    background: var(--zzmi-gray-200);
    font-weight: 700;
}
.ativador-scan-title {
    font-weight: 700;
    margin: 1rem 0 .5rem;
    letter-spacing: .02em;
}
.ativador-feedback { margin: .75rem 0; font-weight: 600; }
.ativador-feedback.is-error { color: var(--zzmi-error); }
.ativador-success {
    color: var(--zzmi-success);
    font-weight: 700;
    font-size: 1.05rem;
}
.ativador-historico { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.ativador-historico-item {
    border: 1px solid var(--zzmi-gray-300);
    border-radius: 8px;
    padding: .85rem;
    display: grid;
    gap: .25rem;
}
.ativador-qr-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1200;
}
.ativador-qr-overlay[hidden] { display: none; }
.ativador-qr-box {
    width: 100%;
    max-width: 420px;
    background: var(--zzmi-white);
    border-radius: var(--radius);
    padding: 1rem;
}
.ativador-qr-box video {
    width: 100%;
    border-radius: 8px;
    background: #000;
    min-height: 220px;
}

/* TV — Configurar recursos (Clima / Relógio) */
.playlist-tv-card {
    overflow: visible;
}
.playlist-cal-panel {
    overflow: visible;
}
.playlist-cal-btn--icon {
    min-width: 2.5rem;
    padding-left: .55rem;
    padding-right: .55rem;
}
.tv-config-form .tv-config-toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.tv-config-check {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-weight: 600;
}
.tv-config-fieldset {
    border: 1px solid var(--zzmi-gray-300, #ddd);
    border-radius: 8px;
    padding: .75rem 1rem;
    margin: 1rem 0 0;
}
.tv-config-fieldset legend {
    font-weight: 700;
    padding: 0 .35rem;
}
.tv-config-radio {
    display: block;
    margin: .35rem 0;
}
.tv-config-actions {
    margin: 1rem 0 2rem;
}
.tv-config-status-panel {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--zzmi-gray-300, #ddd);
}
.tv-config-status-title {
    margin: 0 0 .75rem;
    font-size: 1rem;
}
.tv-config-pub-badge {
    border-radius: 8px;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
}
.tv-config-pub-badge--ok { background: #e8f7ee; border: 1px solid #b8e0c8; }
.tv-config-pub-badge--warn { background: #fff8e6; border: 1px solid #f0d78c; }
.tv-config-pub-badge--wait { background: #eef4ff; border: 1px solid #b8c9f0; }
.tv-config-pub-badge--error { background: #fdecec; border: 1px solid #f0b8b8; }
.tv-config-pub-badge--none { background: #f5f5f5; border: 1px solid #ddd; }
.tv-config-recurso-cards {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-bottom: 1rem;
}
.tv-config-recurso-card {
    border: 1px solid var(--zzmi-gray-300, #ddd);
    border-radius: 8px;
    padding: .75rem 1rem;
    background: #fafafa;
}
.tv-config-recurso-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .35rem;
}
.tv-config-recurso-card .tv-recurso-detalhes {
    margin: .5rem 0 0;
    padding-left: 1.1rem;
    font-size: .9rem;
}
.tv-config-fluxo h5 {
    margin: 0 0 .5rem;
    font-size: .95rem;
}
.tv-config-fluxo ol {
    margin: 0 0 .5rem;
    padding-left: 1.25rem;
}
.tv-modulos-hub {
    margin-bottom: 1rem;
}
.tv-modulos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .75rem;
    margin: 1rem 0;
}
.tv-modulo-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    padding: .85rem 1rem;
    border: 2px solid var(--border-color, #d0d7de);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.tv-modulo-card:hover {
    border-color: var(--zzmi-blue, #1e5bb8);
}
.tv-modulo-card.is-active {
    border-color: var(--zzmi-blue, #1e5bb8);
    box-shadow: 0 0 0 1px var(--zzmi-blue, #1e5bb8);
    background: #f4f8ff;
}
.tv-modulo-card-icon {
    font-size: 1.5rem;
    line-height: 1;
}
.tv-modulo-card-title {
    font-size: .9rem;
    letter-spacing: .02em;
}
.tv-modulo-card-status {
    font-size: .75rem;
    color: #666;
    font-weight: 600;
}
.tv-modulo-card-status.is-on {
    color: #1a7f37;
}
.tv-modulo-status-dot {
    margin-right: .15rem;
}
.tv-modulo-painel {
    margin-bottom: 1rem;
}
.tv-modulo-ativo-row {
    display: block;
    margin: .75rem 0 1rem;
    font-weight: 600;
}
.tv-modulo-save-row {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color, #e5e5e5);
}
.tv-modulo-fase-hint {
    background: #f8f9fb;
    border-left: 3px solid var(--zzmi-blue, #1e5bb8);
    padding: .65rem .85rem;
    margin: 0 0 1rem;
}
.tv-config-fluxo-details {
    margin-top: .75rem;
    font-size: .9rem;
}
.tv-config-fluxo-details summary {
    cursor: pointer;
    color: var(--zzmi-blue, #1e5bb8);
    font-weight: 600;
}

/* Seletor visual vinheta/fundo — Configurar TV */
.tv-midia-picker {
    margin: 1rem 0;
}
.tv-midia-picker-resumo {
    padding: .75rem;
    margin: .5rem 0;
}
.tv-midia-picker-resumo-body {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.tv-midia-picker-resumo-meta {
    flex: 1;
    min-width: 0;
}
.tv-midia-picker-resumo-title {
    display: block;
    margin-bottom: .25rem;
}
.tv-midia-picker-resumo-detail {
    margin: .15rem 0 0;
}
.tv-midia-picker-empty {
    margin: 0;
}
.tv-midia-picker-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.tv-midia-preview {
    position: relative;
    flex-shrink: 0;
    background: #111;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tv-midia-preview--main.is-horizontal {
    width: 128px;
    height: 72px;
}
.tv-midia-preview--main.is-vertical {
    width: 72px;
    height: 128px;
}
.tv-midia-preview--card.is-horizontal {
    width: 100%;
    aspect-ratio: 16 / 9;
}
.tv-midia-preview--card.is-vertical {
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 280px;
}
.tv-midia-preview-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #111;
}
.tv-midia-preview-media--video {
    pointer-events: none;
}
.tv-midia-preview-badge {
    position: absolute;
    left: .4rem;
    bottom: .4rem;
    padding: .15rem .45rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.2;
    z-index: 2;
}
.tv-midia-preview-placeholder {
    color: #9ca3af;
    font-size: .75rem;
    text-align: center;
    padding: .5rem;
}
.tv-midia-preview.is-broken .tv-midia-preview-media,
.tv-midia-preview.is-broken .tv-midia-preview-media--video {
    display: none !important;
}
.tv-midia-preview.is-broken .tv-midia-preview-fallback {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}
.tv-midia-picker-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
    overflow: auto;
    background: rgba(0, 0, 0, .55);
}
.tv-midia-picker-modal[hidden] {
    display: none !important;
}
body.tv-midia-picker-open {
    overflow: hidden;
}
.tv-midia-picker-backdrop {
    position: fixed;
    inset: 0;
}
.tv-midia-picker-dialog {
    position: relative;
    z-index: 2;
    width: min(1200px, 96vw);
    max-height: min(90vh, 900px);
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    margin: 1rem auto;
}
.tv-midia-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: .75rem;
}
.tv-midia-picker-title {
    margin: 0 0 .25rem;
}
.tv-midia-picker-format {
    margin: 0;
}
.tv-midia-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    overflow: auto;
    flex: 1;
    min-height: 200px;
    padding: .25rem .1rem;
}
@media (min-width: 900px) {
    .tv-midia-picker-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}
@media (max-width: 520px) {
    .tv-midia-picker-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .tv-midia-picker-resumo-body {
        flex-direction: column;
        align-items: stretch;
    }
    .tv-midia-preview--main.is-horizontal,
    .tv-midia-preview--main.is-vertical {
        width: 100%;
        max-width: 160px;
        margin: 0 auto;
    }
}
.tv-midia-picker-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: .65rem;
    border: 2px solid var(--border-color, #d0d7de);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.tv-midia-picker-card:hover:not(.is-disabled) {
    border-color: var(--zzmi-blue, #1e5bb8);
}
.tv-midia-picker-card.is-selected {
    border-color: var(--zzmi-blue, #1e5bb8);
    box-shadow: 0 0 0 1px var(--zzmi-blue, #1e5bb8);
    background: #f4f8ff;
}
.tv-midia-picker-card.is-disabled {
    opacity: .55;
    cursor: not-allowed;
}
.tv-midia-picker-selected-mark {
    display: inline-block;
    margin-bottom: .4rem;
    font-size: .75rem;
    font-weight: 700;
    color: var(--zzmi-blue, #1e5bb8);
}
.tv-midia-picker-card-meta {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    margin-top: .5rem;
    min-width: 0;
}
.tv-midia-picker-card-id {
    font-size: .75rem;
    color: #666;
    font-weight: 600;
}
.tv-midia-picker-card-name {
    font-size: .9rem;
    line-height: 1.25;
    word-break: break-word;
}
.tv-midia-picker-card-detail {
    font-size: .78rem;
    color: #666;
    line-height: 1.3;
}
.tv-midia-picker-card-incompat {
    display: block;
    margin-top: .25rem;
    font-size: .75rem;
    color: #b42318;
    font-weight: 600;
}
.tv-midia-picker-loading {
    margin: 0;
    grid-column: 1 / -1;
}
.tv-midia-picker-erro {
    margin: .75rem 0 0;
    color: #b42318;
}

.playlist-midia-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}
.playlist-midia-search-input {
    flex: 1 1 280px;
    min-width: 200px;
}
.playlist-midia-search-count {
    flex: 1 1 100%;
    margin: 0;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.playlist-cal-sino-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .35rem;
    font-size: .9rem;
}
.tv-sim-widget {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #0a1628 0%, #0d2847 100%);
    color: #fff;
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
}
#playlist-sim-widget[hidden],
.tv-sim-widget[hidden] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.playlist-slide > .playlist-sim-el {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.playlist-sim-el.playlist-sim-el--vinheta {
    z-index: 5;
}
.tv-sim-widget--clima {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse 120% 80% at 85% 15%, rgba(56, 120, 210, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 90% 60% at 10% 90%, rgba(20, 60, 120, 0.4) 0%, transparent 50%),
        linear-gradient(168deg, #050d1a 0%, #0a1f3d 38%, #0c2a52 62%, #071525 100%);
}
.tv-sim-widget--relogio {
    background: linear-gradient(180deg, #0a1628 0%, #111827 100%);
}
.tv-sim-widget--relogio.tv-sim-widget--has-fundo {
    background: transparent;
}
.tv-sim-widget-relogio {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    padding: 1rem;
    box-sizing: border-box;
}
.tv-sim-widget--has-fundo .tv-sim-widget-relogio {
    background: transparent;
}
.tv-sim-widget--biblia {
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    background: linear-gradient(180deg, #0a1628 0%, #0d2847 100%);
}
.tv-sim-widget--biblia.tv-sim-widget--has-fundo {
    background: transparent;
}
.tv-sim-widget--has-fundo .tv-sim-widget-biblia {
    background: transparent;
}
.tv-sim-widget-biblia {
    max-width: 92%;
    margin: 0 auto;
}
.tv-sim-biblia-frase {
    margin: 0 0 1rem;
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    letter-spacing: .06em;
    color: #d4af37;
    text-transform: uppercase;
}
.tv-sim-biblia-texto {
    margin: 0 0 1rem;
    font-size: clamp(1.1rem, 3vw, 1.65rem);
    line-height: 1.45;
    font-weight: 500;
}
.tv-sim-biblia-ref {
    margin: 0;
    font-size: clamp(.9rem, 2vw, 1.1rem);
    font-weight: 700;
    letter-spacing: .08em;
    color: #d4af37;
    text-transform: uppercase;
}
.tv-sim-biblia-empty {
    opacity: .85;
    font-size: 1rem;
}
.tv-sim-widget--noticias {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: clamp(.65rem, 2cqw, 1rem) clamp(.75rem, 2.5cqw, 1.25rem);
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    box-sizing: border-box;
    background: #000;
    transition: opacity 0.28s ease, transform 0.28s ease;
}
.tv-sim-widget--noticias.tv-sim-widget--has-fundo {
    background: transparent;
}
.tv-sim-widget--noticias.tv-sim-noticias-transition {
    opacity: 0;
    transform: scale(0.985);
}
.tv-sim-widget--noticias.tv-sim-noticias-enter {
    animation: tv-sim-noticias-fade-in 0.35s ease forwards;
}
@keyframes tv-sim-noticias-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.tv-sim-widget--noticias.tv-sim-widget--has-fundo .tv-sim-noticias-card {
    background: rgba(10, 22, 40, .78);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
}
.tv-sim-noticias-card {
    display: flex;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    margin: 0;
    box-sizing: border-box;
    gap: clamp(.5rem, 1.5cqw, .75rem);
}
.tv-sim-widget--noticias.tv-sim-widget--has-fundo .tv-sim-noticias-card {
    max-width: 94%;
    margin: 0 auto;
}
.tv-sim-noticias-card--vertical {
    flex-direction: column;
}
.tv-sim-noticias-card--horizontal {
    flex-direction: row;
    align-items: stretch;
}
.tv-sim-noticias-card--empty {
    justify-content: center;
    text-align: center;
}
.tv-sim-noticias-card--vertical .tv-sim-noticias-media-wrap {
    flex: 0 0 42%;
    max-height: 42%;
    min-height: 30%;
    width: 100%;
}
.tv-sim-noticias-card--horizontal .tv-sim-noticias-media-wrap {
    flex: 0 0 42%;
    max-width: 45%;
    min-width: 34%;
    height: 100%;
    max-height: 100%;
}
.tv-sim-noticias-media-wrap {
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    position: relative;
    min-height: 0;
    min-width: 0;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}
.tv-sim-noticias-imagem {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    display: block;
    flex: 1 1 auto;
}
.tv-sim-noticias-media-wrap.is-placeholder,
.tv-sim-noticias-media-wrap.is-broken {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
}
.tv-sim-noticias-media-icon {
    font-size: clamp(2.5rem, 8vw, 4rem);
    opacity: .55;
    line-height: 1;
}
.tv-sim-noticias-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    text-align: center;
    gap: .5rem;
    padding: .35rem .25rem .15rem;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}
.tv-sim-noticias-card--horizontal .tv-sim-noticias-content {
    justify-content: center;
    padding: .25rem .35rem;
}
.tv-sim-noticias-label {
    margin: 0;
    font-size: clamp(.78rem, 1.8vw, .95rem);
    font-weight: 700;
    letter-spacing: .14em;
    color: #d4af37;
    text-transform: uppercase;
}
.tv-sim-noticias-titulo-box {
    background: rgba(12, 32, 58, .72);
    border: 1px solid rgba(130, 185, 255, .28);
    border-radius: 10px;
    padding: .55rem .75rem;
    width: 100%;
    box-sizing: border-box;
}
.tv-sim-noticias-manchete {
    margin: 0;
    width: 100%;
    font-size: clamp(1.05rem, 2.8vw, 1.75rem);
    line-height: 1.32;
    font-weight: 700;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tv-sim-noticias-descricao {
    margin: 0;
    width: 100%;
    font-size: clamp(.82rem, 1.9vw, 1.05rem);
    line-height: 1.45;
    color: rgba(238, 246, 255, .92);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    min-height: 0;
}
.tv-sim-noticias-card--horizontal .tv-sim-noticias-descricao {
    -webkit-line-clamp: 6;
}
.tv-sim-noticias-fonte {
    margin: 0;
    font-size: clamp(.78rem, 1.7vw, .95rem);
    color: rgba(212, 175, 55, .92);
    letter-spacing: .03em;
}
.tv-sim-noticias-rodape {
    margin-top: auto;
    padding-top: .25rem;
}
.tv-sim-noticias-cta {
    margin: 0;
    font-size: clamp(.72rem, 1.6vw, .88rem);
    color: rgba(255, 255, 255, .72);
    letter-spacing: .02em;
}
.tv-sim-noticias-cta-sub {
    margin: .1rem 0 0;
    font-size: clamp(.72rem, 1.6vw, .88rem);
    color: rgba(255, 255, 255, .58);
    letter-spacing: .02em;
}
.tv-sim-noticias-empty {
    margin: 0;
    opacity: .88;
    font-size: clamp(.95rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, .88);
}
/* legado — mantido oculto */
.tv-sim-noticias-body {
    display: none;
}
/* legado — removido da UI, mantido para compatibilidade */
.tv-sim-noticias-titulo,
.tv-sim-noticias-meta,
.tv-sim-noticias-lista {
    display: none;
}
.tv-sim-widget--quiz.tv-sim-widget--has-fundo {
    background: transparent;
}
.tv-sim-widget--quiz {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #050d1a 0%, #0a1628 48%, #071525 100%);
}
.playlist-slide:has(#playlist-sim-footer .playlist-qr-footer) .tv-sim-widget--quiz {
    bottom: max(16%, 2.5rem);
}
.tv-sim-widget--has-fundo .tv-sim-widget-quiz {
    background: transparent;
}
.tv-sim-widget-quiz {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    padding: clamp(0.35rem, 1.8cqh, 0.85rem) clamp(0.45rem, 2.5cqw, 1rem);
    box-sizing: border-box;
    overflow: hidden;
}
.quiz-pergunta-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows:
        auto
        auto
        minmax(0, 1fr)
        auto
        minmax(clamp(4.5rem, 22cqh, 7.5rem), auto);
    align-content: stretch;
    align-items: stretch;
    justify-items: center;
    gap: clamp(0.2rem, 1.2cqh, 0.65rem);
    box-sizing: border-box;
    overflow: hidden;
}
.quiz-pergunta-stage[hidden] {
    display: none !important;
}
.quiz-resposta-stage {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    align-content: stretch;
    align-items: stretch;
    justify-items: center;
    gap: clamp(0.35rem, 1.6cqh, 0.75rem);
    box-sizing: border-box;
    overflow: hidden;
    padding: clamp(0.35rem, 1.8cqh, 0.85rem);
}
.quiz-resposta-head {
    width: 100%;
    flex-shrink: 0;
}
.quiz-resposta-body {
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.25rem, 1.2cqh, 0.65rem) 0;
    box-sizing: border-box;
}
.quiz-head {
    width: 100%;
    flex-shrink: 0;
}
.quiz-pergunta-area {
    width: 100%;
    min-height: 0;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 clamp(0.15rem, 1.5cqw, 0.5rem);
    box-sizing: border-box;
}
.quiz-timer-zone {
    width: 100%;
    min-height: clamp(4.5rem, 22cqh, 7.5rem);
    max-height: clamp(4.5rem, 22cqh, 7.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.1rem, 0.8cqh, 0.35rem);
    flex-shrink: 0;
    overflow: visible;
    box-sizing: border-box;
}
.quiz-resposta-stage[hidden] {
    display: none !important;
}
.tv-sim-quiz-titulo {
    margin: 0;
    font-size: clamp(0.82rem, 4.2cqh, 1.28rem);
    font-weight: 800;
    letter-spacing: .12em;
    color: #d4af37;
    text-transform: uppercase;
    line-height: 1.1;
}
.tv-sim-quiz-label {
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #d4af37;
}
.tv-sim-quiz-tema {
    margin: 0;
    width: 100%;
    font-size: clamp(0.68rem, 3cqh, 1rem);
    line-height: 1.2;
    color: #f5f5f5;
    flex-shrink: 0;
}
.tv-sim-quiz-pergunta-text {
    margin: 0;
    width: 100%;
    font-size: clamp(0.85rem, 5.6cqh, 1.48rem);
    font-weight: 700;
    line-height: 1.26;
    color: #ffffff;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
}
.tv-sim-quiz-alternativas {
    margin: clamp(0.85rem, 4.8cqh, 1.75rem) 0 0;
    padding: 0;
    list-style: none;
    width: 100%;
    max-width: 94%;
    flex-shrink: 0;
}
.tv-sim-quiz-alternativas li {
    margin: 0 0 clamp(0.55rem, 2.8cqh, 1.15rem);
    font-size: clamp(0.88rem, 4.8cqh, 1.48rem);
    font-weight: 700;
    line-height: 1.3;
    color: #f8f8f8;
    text-align: center;
}
.tv-sim-quiz-alternativas li:last-child {
    margin-bottom: 0;
}
.tv-sim-quiz-alt-letter {
    font-weight: 900;
    color: #d4af37;
    margin-right: .35rem;
}
.tv-sim-quiz-pense {
    margin: 0;
    font-size: clamp(0.62rem, 2.4cqh, 0.88rem);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #d4af37;
    line-height: 1.1;
    flex-shrink: 0;
}
.tv-sim-quiz-countdown {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
}
.tv-sim-quiz-radar {
    --quiz-duration: 10s;
    width: clamp(3rem, 15cqh, 5.4rem);
    height: clamp(3rem, 15cqh, 5.4rem);
    flex-shrink: 0;
    position: relative;
}
.tv-sim-quiz-radar-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}
.tv-sim-quiz-radar-track {
    fill: none;
    stroke: rgba(212, 175, 55, 0.22);
    stroke-width: 4;
}
.tv-sim-quiz-radar-progress {
    fill: none;
    stroke: #d4af37;
    stroke-width: 4;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke-dasharray: 263.89;
    stroke-dashoffset: 0;
    opacity: 0.95;
}
.tv-sim-quiz-radar-sweep-arm {
    transform-origin: 50px 50px;
    opacity: 0.9;
}
.tv-sim-quiz-radar-sweep-arm line {
    stroke: #ffffff;
    stroke-width: 2.5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.75));
}
.tv-sim-quiz-radar--running .tv-sim-quiz-radar-progress {
    animation: tv-sim-quiz-radar-progress var(--quiz-duration, 10s) linear forwards;
}
.tv-sim-quiz-radar--running .tv-sim-quiz-radar-sweep-arm {
    animation: tv-sim-quiz-radar-sweep var(--quiz-duration, 10s) linear infinite;
}
@keyframes tv-sim-quiz-radar-progress {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: 263.89; }
}
@keyframes tv-sim-quiz-radar-sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.tv-sim-quiz-countdown-num {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.tv-sim-quiz-reveal-label {
    margin: 0;
    width: 100%;
    font-size: clamp(0.78rem, 3.6cqh, 1.12rem);
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #d4af37;
}
.tv-sim-quiz-correct-answer {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.35rem, 1.6cqh, 0.75rem);
    padding: clamp(0.85rem, 3.8cqh, 1.45rem) clamp(1rem, 4cqw, 1.5rem);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(34, 120, 34, 0.42), rgba(16, 58, 16, 0.72));
    border: 2px solid #4caf50;
    box-shadow:
        0 0 24px rgba(76, 175, 80, 0.42),
        0 8px 28px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(124, 255, 124, 0.12);
    max-width: 88%;
    min-width: min(88%, 16rem);
}
.tv-sim-quiz-correct-mark {
    font-size: clamp(1.65rem, 7.5cqh, 2.75rem);
    font-weight: 900;
    color: #7cff7c;
    line-height: 1;
}
.tv-sim-quiz-correct-line {
    font-size: clamp(0.88rem, 4.2cqh, 1.38rem);
    font-weight: 800;
    line-height: 1.28;
    color: #ffffff;
    text-align: center;
}
.tv-sim-quiz-correct-letter {
    color: #d4af37;
    font-weight: 900;
}
.tv-sim-quiz-empty {
    opacity: .85;
    font-size: clamp(0.75rem, 2.8cqh, 1rem);
}
.tv-simulator-vertical .tv-sim-widget-quiz {
    padding: clamp(0.3rem, 1.5cqh, 0.7rem) clamp(0.4rem, 2.2cqw, 0.85rem);
}
.tv-simulator-vertical .quiz-pergunta-stage {
    gap: clamp(0.12rem, 0.9cqh, 0.45rem);
}
.tv-simulator-vertical .quiz-timer-zone {
    min-height: clamp(4rem, 20cqh, 6.5rem);
    max-height: clamp(4rem, 20cqh, 6.5rem);
}
.tv-simulator-vertical .tv-sim-quiz-radar {
    width: clamp(2.6rem, 13cqh, 4.5rem);
    height: clamp(2.6rem, 13cqh, 4.5rem);
}

/* ——— Painel CLIMA premium TV (sem scroll; escala via container do canvas) ——— */
.clima-painel--premium {
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    color: #eef6ff;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(9px, 2.05cqh, 17px);
    line-height: 1.28;
    display: flex;
    flex-direction: column;
    padding: 2.2cqh 3.2cqw;
    gap: 0.55cqh;
}
.clima-painel-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55cqh;
    overflow: hidden;
}
.clima-card {
    flex: 0 1 auto;
    min-height: 0;
    background: rgba(12, 32, 58, 0.62);
    border: 1px solid rgba(130, 185, 255, 0.14);
    border-radius: 1.1em;
    box-shadow: 0 0.35em 1.4em rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.65em 0.85em;
    overflow: hidden;
}
.clima-estado {
    flex: 0 0 auto;
    font-size: 0.72em;
    padding: 0.45em 0.65em;
    border-radius: 0.65em;
    text-align: center;
    line-height: 1.35;
}
.clima-estado--preview {
    background: rgba(255, 193, 7, 0.14);
    border: 1px solid rgba(255, 193, 7, 0.45);
    color: #ffe082;
    font-weight: 600;
}
.clima-estado--warn {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ffb4bc;
}
.clima-top {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5em;
    margin-bottom: 0.15em;
}
.clima-top-loc {
    display: flex;
    align-items: flex-start;
    gap: 0.45em;
    min-width: 0;
}
.clima-pin {
    font-size: 1.1em;
    line-height: 1;
    opacity: 0.9;
    flex-shrink: 0;
}
.clima-cidade {
    margin: 0;
    font-size: 1.12em;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1.15;
}
.clima-data {
    margin: 0.2em 0 0;
    font-size: 0.68em;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(180, 215, 255, 0.82);
}
.clima-atualizado {
    margin: 0;
    font-size: 0.62em;
    font-weight: 500;
    color: rgba(160, 200, 255, 0.88);
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 0.15em;
}
.clima-atualizado::before {
    content: "↻ ";
    opacity: 0.85;
}
.clima-atual {
    padding: 0.75em 0.9em;
}
.clima-atual-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5em 0.75em;
}
.clima-atual-grid--h {
    grid-template-columns: 1fr auto;
}
.clima-temp-grande {
    margin: 0;
    font-size: 3.6em;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.02em;
}
.clima-condicao {
    margin: 0.2em 0 0;
    font-size: 0.92em;
    font-weight: 600;
    color: rgba(240, 248, 255, 0.95);
}
.clima-sensacao {
    margin: 0.15em 0 0;
    font-size: 0.78em;
    color: rgba(160, 205, 255, 0.88);
}
.clima-icone-orbe {
    width: 3.8em;
    height: 3.8em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 40% 35%, rgba(255, 220, 120, 0.45) 0%, rgba(255, 180, 60, 0.08) 65%, transparent 100%);
    box-shadow: 0 0 1.8em rgba(255, 200, 80, 0.25);
}
.clima-icone-orbe--nuvem {
    background: radial-gradient(circle at 40% 35%, rgba(180, 210, 255, 0.35) 0%, rgba(100, 150, 220, 0.08) 65%, transparent 100%);
    box-shadow: 0 0 1.4em rgba(120, 170, 255, 0.2);
}
.clima-icone-orbe--chuva {
    background: radial-gradient(circle at 40% 35%, rgba(100, 170, 255, 0.4) 0%, rgba(40, 90, 180, 0.1) 65%, transparent 100%);
    box-shadow: 0 0 1.4em rgba(80, 140, 255, 0.22);
}
.clima-icone-orbe--tempestade {
    background: radial-gradient(circle at 40% 35%, rgba(140, 100, 255, 0.4) 0%, rgba(60, 40, 140, 0.12) 65%, transparent 100%);
    box-shadow: 0 0 1.4em rgba(120, 80, 255, 0.25);
}
.clima-icone-grande {
    font-size: 2.4em;
    line-height: 1;
    filter: drop-shadow(0 0.15em 0.35em rgba(0, 0, 0, 0.35));
}
.clima-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35em;
    padding: 0.55em 0.65em;
    text-align: center;
}
.clima-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1em;
    min-width: 0;
}
.clima-stat-ico {
    font-size: 1em;
    line-height: 1;
    opacity: 0.9;
}
.clima-stat-lbl {
    font-size: 0.62em;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(170, 210, 255, 0.8);
}
.clima-stat strong {
    font-size: 0.95em;
    font-weight: 800;
    color: #fff;
}
.clima-sec-titulo {
    margin: 0 0 0.4em;
    font-size: 0.65em;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(170, 210, 255, 0.85);
}
.clima-vazio {
    margin: 0;
    opacity: 0.5;
    font-size: 0.85em;
}
.clima-horas {
    flex: 0 1 auto;
    min-height: 0;
}
.clima-horas-grid {
    display: grid;
    gap: 0.3em;
    overflow: hidden;
    min-width: 0;
    width: 100%;
}
.clima-horas-grid--n1 { grid-template-columns: repeat(1, 1fr); }
.clima-horas-grid--n2 { grid-template-columns: repeat(2, 1fr); }
.clima-horas-grid--n3 { grid-template-columns: repeat(3, 1fr); }
.clima-horas-grid--n4 { grid-template-columns: repeat(4, 1fr); }
.clima-horas-grid--n5 { grid-template-columns: repeat(5, 1fr); }
.clima-horas-grid--n6 { grid-template-columns: repeat(6, 1fr); }
.clima-horas-grid--n7 { grid-template-columns: repeat(7, 1fr); }
.clima-horas-grid--n8 { grid-template-columns: repeat(8, 1fr); }
.clima-hora-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.65em;
    padding: 0.3em 0.15em;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.08em;
}
.clima-hora-card.is-now {
    background: rgba(80, 160, 255, 0.18);
    border-color: rgba(120, 190, 255, 0.35);
    box-shadow: 0 0 0.8em rgba(80, 160, 255, 0.15);
}
.clima-hora-lbl {
    font-size: 0.58em;
    font-weight: 700;
    letter-spacing: 0.04em;
    opacity: 0.88;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    white-space: nowrap;
}
.clima-hora-temp {
    font-size: 0.78em;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.clima-hora-chuva {
    font-size: 0.52em;
    color: rgba(140, 200, 255, 0.9);
}
.clima-dias {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0.55em 0.75em;
}
.clima-dias-lista {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 0.12em;
    overflow: hidden;
}
.clima-dia-row {
    display: grid;
    grid-template-columns: 3.2em 1.5em 1fr auto;
    align-items: center;
    gap: 0.4em;
    font-size: 0.76em;
    padding: 0.18em 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.clima-dia-row:last-child {
    border-bottom: none;
}
.clima-dia-meta {
    display: flex;
    flex-direction: column;
    gap: 0.05em;
    min-width: 0;
}
.clima-dia-nome {
    font-weight: 800;
    font-size: 0.88em;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.clima-dia-data {
    font-size: 0.75em;
    color: rgba(160, 200, 255, 0.75);
    font-weight: 500;
}
.clima-dia-ico {
    font-size: 1.2em;
    text-align: center;
}
.clima-dia-cond {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.92;
    font-weight: 500;
}
.clima-dia-chuva {
    margin-left: 0.3em;
    font-size: 0.9em;
    color: rgba(140, 200, 255, 0.9);
}
.clima-dia-temps {
    font-weight: 800;
    white-space: nowrap;
    font-size: 0.92em;
}
.clima-alerta {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.65em;
    padding: 0.55em 0.75em;
    border-radius: 0.85em;
    border: 1px solid rgba(100, 180, 255, 0.35);
    background: rgba(30, 80, 150, 0.35);
    font-size: 0.72em;
    line-height: 1.3;
}
.clima-alerta strong {
    display: block;
    font-size: 1.05em;
    letter-spacing: 0.06em;
    margin-bottom: 0.1em;
}
.clima-alerta span:not(.clima-alerta-ico) {
    display: block;
    opacity: 0.88;
    font-weight: 400;
}
.clima-alerta-ico {
    font-size: 1.6em;
    line-height: 1;
    flex-shrink: 0;
}
.clima-alerta--chuva {
    border-color: rgba(80, 160, 255, 0.45);
    background: rgba(25, 70, 140, 0.42);
    color: #b8dcff;
}
.clima-alerta--chuva-suave {
    border-color: rgba(100, 170, 255, 0.3);
    background: rgba(20, 55, 110, 0.35);
    color: #c8e4ff;
}
.clima-alerta--vento {
    border-color: rgba(180, 200, 255, 0.35);
    background: rgba(40, 60, 100, 0.4);
    color: #dce8ff;
}

/* Horizontal 16:9 — layout próprio */
.clima-painel--horizontal.clima-painel--premium {
    padding: 1.8cqh 2.2cqw;
    gap: 0.45cqh;
}
.clima-h-hero-row {
    flex: 0 1 42%;
    min-height: 0;
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 0.55em;
    overflow: hidden;
}
.clima-h-hero-main .clima-atual {
    height: 100%;
    display: flex;
    align-items: center;
}
.clima-h-hero-side .clima-stats {
    height: 100%;
    align-content: center;
}
.clima-painel--horizontal .clima-temp-grande {
    font-size: 3em;
}
.clima-painel--horizontal .clima-icone-orbe {
    width: 3.2em;
    height: 3.2em;
}
.clima-painel--horizontal .clima-icone-grande {
    font-size: 2em;
}
.clima-painel--horizontal .clima-horas {
    flex: 0 1 22%;
}
.clima-dias--h {
    flex: 1 1 auto;
    min-height: 0;
}
.clima-dias-h-grid {
    display: grid;
    gap: 0.35em;
    overflow: hidden;
    height: 100%;
    align-content: stretch;
}
.clima-dias-h-grid--n1 { grid-template-columns: repeat(1, 1fr); }
.clima-dias-h-grid--n2 { grid-template-columns: repeat(2, 1fr); }
.clima-dias-h-grid--n3 { grid-template-columns: repeat(3, 1fr); }
.clima-dias-h-grid--n4 { grid-template-columns: repeat(4, 1fr); }
.clima-dias-h-grid--n5 { grid-template-columns: repeat(5, 1fr); }
.clima-dias-h-grid--n6 { grid-template-columns: repeat(6, 1fr); }
.clima-dias-h-grid--n7 { grid-template-columns: repeat(7, 1fr); }
.clima-dias--h .clima-dia-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.65em;
    padding: 0.35em 0.2em;
    min-width: 0;
    font-size: 0.74em;
    gap: 0.12em;
}
.clima-dias--h .clima-dia-ico {
    font-size: 1.35em;
}
.clima-dias--h .clima-dia-cond {
    white-space: normal;
    line-height: 1.15;
    max-height: 2.5em;
    overflow: hidden;
    text-overflow: ellipsis;
}

@container tv-canvas (max-aspect-ratio: 9/16) {
    .clima-painel--vertical .clima-temp-grande {
        font-size: 3.2em;
    }
    .clima-painel--vertical .clima-dias {
        flex: 1 1 28%;
    }
}
@container tv-canvas (min-aspect-ratio: 16/9) {
    .clima-painel--horizontal .clima-temp-grande {
        font-size: 2.8em;
    }
}

/* ——— Animações premium painel CLIMA ——— */
.clima-painel--premium {
    position: relative;
    isolation: isolate;
}
.clima-painel-frente {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: 100%;
    gap: 0.55cqh;
    overflow: hidden;
}
.clima-ambiente {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.clima-amb-glow {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(ellipse 55% 45% at 78% 18%, rgba(70, 140, 255, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 15% 85%, rgba(30, 80, 160, 0.18) 0%, transparent 55%);
    animation: climaAmbGlow 28s ease-in-out infinite alternate;
}
@keyframes climaAmbGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.85; }
    50% { transform: translate(-1.5%, 1%) scale(1.03); opacity: 1; }
    100% { transform: translate(1%, -0.5%) scale(1.02); opacity: 0.9; }
}
.clima-amb-nuvem {
    display: none;
    position: absolute;
    border-radius: 50%;
    background: rgba(220, 235, 255, 0.12);
    box-shadow:
        -1.2em 0.2em 0 -0.3em rgba(200, 220, 245, 0.1),
        1.4em 0.15em 0 -0.35em rgba(200, 220, 245, 0.08),
        0 0.4em 0 -0.2em rgba(180, 210, 240, 0.1);
    filter: blur(0.5px);
}
.clima-amb-nuvem--a { width: 4.5em; height: 1.6em; top: 8%; left: -8%; }
.clima-amb-nuvem--b { width: 5.5em; height: 1.8em; top: 18%; right: -12%; opacity: 0.7; }
.clima-amb-nuvem--c { width: 3.8em; height: 1.4em; top: 5%; left: 45%; opacity: 0.5; }
.clima-cena--nuvens .clima-amb-nuvem,
.clima-cena--sol .clima-amb-nuvem--a,
.clima-cena--sol .clima-amb-nuvem--b { display: block; }
.clima-cena--nuvens .clima-amb-nuvem--a { animation: climaNuvemDriftA 48s linear infinite; }
.clima-cena--nuvens .clima-amb-nuvem--b { animation: climaNuvemDriftB 62s linear infinite; }
.clima-cena--nuvens .clima-amb-nuvem--c { animation: climaNuvemDriftC 55s linear infinite; }
.clima-cena--sol .clima-amb-nuvem--a { animation: climaNuvemDriftA 72s linear infinite; opacity: 0.45; }
.clima-cena--sol .clima-amb-nuvem--b { animation: climaNuvemDriftB 80s linear infinite; opacity: 0.35; }
@keyframes climaNuvemDriftA {
    0% { transform: translateX(0); }
    100% { transform: translateX(115%); }
}
@keyframes climaNuvemDriftB {
    0% { transform: translateX(0); }
    100% { transform: translateX(-120%); }
}
@keyframes climaNuvemDriftC {
    0% { transform: translateX(-10%); }
    100% { transform: translateX(90%); }
}
.clima-amb-chuva {
    display: none;
    position: absolute;
    inset: 0 0 35% 0;
    opacity: 0;
    background-image: repeating-linear-gradient(
        168deg,
        transparent 0,
        transparent 3px,
        rgba(160, 210, 255, 0.14) 3px,
        rgba(160, 210, 255, 0.14) 4px
    );
    background-size: 8px 18px;
    animation: climaChuvaCair 1.1s linear infinite;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 85%);
}
.clima-cena--chuva .clima-amb-chuva,
.clima-cena--tempestade .clima-amb-chuva {
    display: block;
    opacity: 0.55;
}
.clima-cena--tempestade .clima-amb-chuva { opacity: 0.7; }
@keyframes climaChuvaCair {
    0% { background-position: 0 0; }
    100% { background-position: -8px 18px; }
}
.clima-amb-relampago {
    display: none;
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(200, 220, 255, 0.18), transparent 70%);
    opacity: 0;
}
.clima-cena--tempestade .clima-amb-relampago {
    display: block;
    animation: climaRelampago 14s ease-in-out infinite;
}
@keyframes climaRelampago {
    0%, 88%, 100% { opacity: 0; }
    89% { opacity: 0.22; }
    89.5% { opacity: 0; }
    92% { opacity: 0.12; }
    92.3% { opacity: 0; }
}
.clima-amb-estrelas {
    display: none;
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 12% 15%, rgba(255,255,255,0.55), transparent),
        radial-gradient(1px 1px at 28% 8%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1.5px 1.5px at 45% 12%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 62% 6%, rgba(255,255,255,0.35), transparent),
        radial-gradient(1px 1px at 78% 18%, rgba(255,255,255,0.45), transparent),
        radial-gradient(1px 1px at 88% 10%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 20% 22%, rgba(255,255,255,0.35), transparent),
        radial-gradient(1px 1px at 55% 20%, rgba(255,255,255,0.4), transparent);
    animation: climaEstrelasPulsar 6s ease-in-out infinite alternate;
}
.clima-cena--noite .clima-amb-estrelas { display: block; }
@keyframes climaEstrelasPulsar {
    0% { opacity: 0.55; }
    100% { opacity: 0.9; }
}
.clima-amb-vento {
    display: none;
    position: absolute;
    top: 12%;
    right: 8%;
    width: 5em;
    height: 2em;
    opacity: 0.35;
    background: repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 0.6em,
        rgba(180, 220, 255, 0.25) 0.6em,
        rgba(180, 220, 255, 0.25) 1.4em
    );
    mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,0.8) 30%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, rgba(0,0,0,0.8) 30%, transparent);
    animation: climaVentoLinhas 3.5s ease-in-out infinite;
}
.clima-cena--vento .clima-amb-vento { display: block; }
@keyframes climaVentoLinhas {
    0%, 100% { transform: translateX(0); opacity: 0.25; }
    50% { transform: translateX(-12%); opacity: 0.45; }
}
.clima-sol-raios {
    position: absolute;
    inset: -0.35em;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg, rgba(255, 220, 120, 0.35) 8deg, transparent 16deg,
        transparent 30deg, rgba(255, 220, 120, 0.28) 38deg, transparent 46deg,
        transparent 60deg, rgba(255, 220, 120, 0.32) 68deg, transparent 76deg,
        transparent 90deg, rgba(255, 220, 120, 0.25) 98deg, transparent 106deg,
        transparent 120deg, rgba(255, 220, 120, 0.3) 128deg, transparent 136deg,
        transparent 150deg, rgba(255, 220, 120, 0.28) 158deg, transparent 166deg,
        transparent 180deg, rgba(255, 220, 120, 0.32) 188deg, transparent 196deg,
        transparent 210deg, rgba(255, 220, 120, 0.25) 218deg, transparent 226deg,
        transparent 240deg, rgba(255, 220, 120, 0.3) 248deg, transparent 256deg,
        transparent 270deg, rgba(255, 220, 120, 0.28) 278deg, transparent 286deg,
        transparent 300deg, rgba(255, 220, 120, 0.32) 308deg, transparent 316deg,
        transparent 330deg, rgba(255, 220, 120, 0.25) 338deg, transparent 346deg
    );
    animation: climaSolRaios 24s linear infinite;
    opacity: 0.75;
}
@keyframes climaSolRaios {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.04); }
    100% { transform: rotate(360deg) scale(1); }
}
.clima-icone-orbe--sol {
    animation: climaSolPulso 18s ease-in-out infinite;
}
@keyframes climaSolPulso {
    0%, 100% { box-shadow: 0 0 1.8em rgba(255, 200, 80, 0.25); transform: scale(1); }
    50% { box-shadow: 0 0 2.4em rgba(255, 210, 100, 0.38); transform: scale(1.03); }
}
.clima-lua-halo {
    position: absolute;
    inset: -0.25em;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 220, 255, 0.35) 0%, transparent 70%);
    animation: climaLuaBrilho 14s ease-in-out infinite alternate;
}
@keyframes climaLuaBrilho {
    0% { opacity: 0.6; transform: scale(0.98); }
    100% { opacity: 0.95; transform: scale(1.04); }
}
.clima-icone-orbe--lua {
    background: radial-gradient(circle at 40% 35%, rgba(200, 220, 255, 0.4) 0%, rgba(80, 100, 160, 0.1) 65%, transparent 100%);
    box-shadow: 0 0 1.6em rgba(160, 190, 255, 0.28);
}
.clima-ico-anim--sol { animation: climaIcoSol 4s ease-in-out infinite; }
.clima-ico-anim--lua { animation: climaIcoLua 5s ease-in-out infinite alternate; }
.clima-ico-anim--nuvem { animation: climaIcoNuvem 6s ease-in-out infinite; }
.clima-ico-anim--parcial { animation: climaIcoParcial 5s ease-in-out infinite; }
.clima-ico-anim--chuva { animation: climaIcoChuva 2.8s ease-in-out infinite; }
.clima-ico-anim--pancadas { animation: climaIcoPancadas 3.2s ease-in-out infinite; }
.clima-ico-anim--tempestade { animation: climaIcoTempestade 2.5s ease-in-out infinite; }
.clima-ico-anim--hero { filter: drop-shadow(0 0.15em 0.35em rgba(0, 0, 0, 0.35)); }
@keyframes climaIcoSol {
    0%, 100% { filter: drop-shadow(0 0 0.2em rgba(255, 220, 100, 0.3)); }
    50% { filter: drop-shadow(0 0 0.45em rgba(255, 220, 100, 0.55)); }
}
@keyframes climaIcoLua {
    0% { filter: drop-shadow(0 0 0.15em rgba(200, 220, 255, 0.35)); }
    100% { filter: drop-shadow(0 0 0.4em rgba(200, 220, 255, 0.55)); }
}
@keyframes climaIcoNuvem {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(0.08em); }
}
@keyframes climaIcoParcial {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-0.05em); opacity: 0.92; }
}
@keyframes climaIcoChuva {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(0.1em); }
}
@keyframes climaIcoPancadas {
    0%, 85%, 100% { transform: translateY(0); }
    90% { transform: translateY(0.12em); }
}
@keyframes climaIcoTempestade {
    0%, 92%, 100% { opacity: 1; }
    94% { opacity: 0.75; }
}
.clima-stat-ico--vento { animation: climaIcoVento 2.2s ease-in-out infinite; }
@keyframes climaIcoVento {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(0.15em); }
}
.clima-alerta--chuva {
    animation: climaAlertaGlow 5s ease-in-out infinite;
}
@keyframes climaAlertaGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(80, 160, 255, 0); }
    50% { box-shadow: 0 0 1.2em rgba(80, 160, 255, 0.2); }
}
.clima-alerta-ico--guarda { animation: climaGuardaChuva 4s ease-in-out infinite; }
@keyframes climaGuardaChuva {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-6deg); }
}
.clima-alerta-ico--chuva { animation: climaIcoChuva 3s ease-in-out infinite; }
.clima-alerta-ico--tempestade { animation: climaIcoTempestade 3.5s ease-in-out infinite; }
.clima-painel--premium.is-entering .clima-seq {
    animation: climaEntradaBloco 0.55s ease both;
}
.clima-painel--premium.is-entering .clima-seq-1 { animation-delay: 0.05s; }
.clima-painel--premium.is-entering .clima-seq-2 { animation-delay: 0.12s; }
.clima-painel--premium.is-entering .clima-seq-3 { animation-delay: 0.2s; }
.clima-painel--premium.is-entering .clima-seq-4 { animation-delay: 0.28s; }
.clima-painel--premium.is-entering .clima-seq-5 { animation-delay: 0.36s; }
.clima-painel--premium.is-entering .clima-seq-6 { animation-delay: 0.44s; }
@keyframes climaEntradaBloco {
    /* Só opacidade: translateY cortava chips em .clima-card (overflow:hidden) */
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.clima-painel--horizontal .clima-amb-nuvem--a { top: 5%; }
.clima-painel--horizontal .clima-amb-chuva { inset: 0 0 40% 0; }
@media (prefers-reduced-motion: reduce) {
    .clima-painel--premium *,
    .clima-painel--premium *::before,
    .clima-painel--premium *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .clima-painel--premium.is-entering .clima-seq {
        opacity: 1;
        transform: none;
    }
}

.tv-sim-widget-clock {
    font-size: clamp(2.2rem, 14cqw, 4.5rem);
    font-weight: 700;
    margin: 0;
    letter-spacing: .04em;
    color: #d4af37;
    line-height: 1.1;
}
.tv-sim-widget--has-fundo .tv-sim-widget-clock,
.tv-sim-widget--has-fundo .tv-sim-widget-weekday {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.75);
}
.tv-sim-widget-weekday {
    margin: 0;
    font-size: clamp(0.8rem, 4cqw, 1.15rem);
    opacity: .92;
    text-transform: capitalize;
    color: rgba(255, 255, 255, 0.92);
}
.tv-sim-widget-badge {
    font-size: .75rem;
    margin: 0 0 .35rem;
}
.tv-sim-widget-janela {
    font-size: .72rem;
    margin: 0 0 .5rem;
    opacity: .85;
}
.tv-sim-timeline {
    margin-top: 1rem;
}
.tv-sim-timeline-track {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: stretch;
}
.tv-sim-timeline-slot {
    font-size: .72rem;
    padding: .35rem .5rem;
    border: 1px solid var(--zzmi-gray-300, #ddd);
    border-radius: 6px;
    background: #fff;
    max-width: 100%;
}
.tv-sim-timeline-slot small {
    display: block;
    opacity: .7;
}
.tv-sim-timeline-slot--active {
    border-color: var(--zzmi-blue, #0d6efd);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, .2);
}
.tv-sim-timeline-slot--clima {
    border-color: #0dcaf0;
}
.tv-sim-timeline-slot--relogio {
    border-color: #6f42c1;
}
.tv-sim-timeline-slot--quiz {
    border-color: #fd7e14;
}

/* Master — Cobranças operacionais */
.zzmi-cobrancas-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.zzmi-cobranca-stat {
    font-size: .9rem;
    color: #444;
}
.zzmi-cobranca-stat strong {
    font-size: 1.25rem;
    color: var(--zzmi-blue, #1e5bb8);
    margin-right: .25rem;
}
.zzmi-cobranca-stat--atraso strong {
    color: #b42318;
}
.zzmi-cobrancas-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}
.zzmi-cobrancas-tab {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .85rem;
    border: 1px solid var(--border-color, #d0d7de);
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    font-size: .875rem;
    background: #fff;
}
.zzmi-cobrancas-tab.is-active {
    border-color: var(--zzmi-blue, #1e5bb8);
    background: #f4f8ff;
    font-weight: 600;
}
.zzmi-cobrancas-tab-count {
    font-size: .75rem;
    background: #eee;
    padding: .1rem .4rem;
    border-radius: 10px;
}
.zzmi-cobrancas-tab.is-active .zzmi-cobrancas-tab-count {
    background: var(--zzmi-blue, #1e5bb8);
    color: #fff;
}
.status-cobranca-vencida { background: #fdecec; color: #b42318; }
.status-cobranca-pendente { background: #fff8e6; color: #8a6d00; }
.status-cobranca-parcialmente_paga { background: #eef4ff; color: #1e5bb8; }
.status-cobranca-quitada { background: #e8f7ee; color: #1a7f37; }
.zzmi-cobranca-pagar summary {
    cursor: pointer;
    list-style: none;
}
.zzmi-cobranca-pagar-form {
    margin-top: .75rem;
    padding: .75rem;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 6px;
    background: #fafafa;
    min-width: 220px;
}
.zzmi-cobranca-pagar-form .form-control {
    margin-bottom: .5rem;
}
.zzmi-licenca-aviso-financeiro {
    margin-bottom: 1rem;
    border-left: 4px solid var(--zzmi-blue, #1e5bb8);
}

.zzmi-recurso-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--zzmi-gray-300, #ddd);
}
.btn-danger {
    background: #b42318;
    border-color: #b42318;
    color: #fff;
}
.btn-danger:hover {
    background: #912018;
    border-color: #912018;
    color: #fff;
    text-decoration: none;
}
.zzmi-recurso-modal {
    border: none;
    border-radius: 8px;
    padding: 0;
    max-width: 28rem;
    width: calc(100% - 2rem);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
.zzmi-recurso-modal::backdrop {
    background: rgba(0, 0, 0, .55);
}
.zzmi-recurso-modal-form {
    margin: 0;
    padding: 1.25rem;
}
.zzmi-recurso-modal-title {
    margin: 0 0 .75rem;
    font-size: 1rem;
    letter-spacing: .06em;
}

/* Notícias — grade de categorias com prioridade e limite */
.noticias-cat-intro {
    margin-bottom: 0.75rem;
}
.noticias-cat-table {
    margin-top: 0.5rem;
    border: 1px solid var(--zzmi-gray-300, #ddd);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.noticias-cat-header {
    display: grid;
    grid-template-columns: minmax(9rem, 1.6fr) minmax(6.5rem, 1fr) minmax(7.5rem, 1fr);
    gap: 0.75rem 1rem;
    padding: 0.65rem 0.9rem;
    background: var(--zzmi-gray-100, #f7f8fa);
    border-bottom: 1px solid var(--zzmi-gray-300, #ddd);
}
.noticias-cat-header-cell {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--zzmi-gray-700, #444);
}
.noticias-cat-col-hint {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--zzmi-gray-600, #666);
    line-height: 1.3;
}
.noticias-cat-row {
    display: grid;
    grid-template-columns: minmax(9rem, 1.6fr) minmax(6.5rem, 1fr) minmax(7.5rem, 1fr);
    gap: 0.75rem 1rem;
    padding: 0.65rem 0.9rem;
    align-items: center;
    border-bottom: 1px solid var(--zzmi-gray-200, #eee);
}
.noticias-cat-row:last-child {
    border-bottom: none;
}
.noticias-cat-check {
    margin: 0;
}
.noticias-cat-field-label {
    display: none;
    margin: 0 0 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--zzmi-gray-700, #444);
}
.noticias-cat-input {
    width: 100%;
    max-width: 7rem;
}
.noticias-cat-help {
    margin-top: 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: var(--zzmi-gray-100, #f7f8fa);
    border: 1px solid var(--zzmi-gray-200, #eee);
    font-size: 0.85rem;
    color: var(--zzmi-gray-700, #555);
}
.noticias-cat-help p {
    margin: 0.25rem 0;
}
.noticias-cat-help p:first-child {
    margin-top: 0;
}
.noticias-cat-help p:last-child {
    margin-bottom: 0;
}
@media (max-width: 720px) {
    .noticias-cat-header {
        display: none;
    }
    .noticias-cat-row {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        padding: 0.85rem 0.9rem;
    }
    .noticias-cat-field-label {
        display: block;
    }
    .noticias-cat-input {
        max-width: none;
    }
}

