/* Paletas deliberadas para leitura confortável; impressão mantém seu estilo próprio. */
html[data-theme="light"] body{color:#1d2a24;background:#f1f4f1}
html[data-theme="light"] body.login-page{color:#fff;background:radial-gradient(circle at 104% 7%,rgba(207,155,20,.24),transparent 28rem),radial-gradient(circle at -8% 25%,rgba(0,116,78,.22),transparent 30rem),linear-gradient(155deg,#020907 0%,#030706 56%,#09100b 100%)}

/* Administração */
html[data-theme="light"] .page-heading h1,
html[data-theme="light"] .section-heading h2{color:#19271f}
html[data-theme="light"] .page-heading p,
html[data-theme="light"] .section-heading p{color:#607411}
html[data-theme="light"] .page-heading span,
html[data-theme="light"] .section-heading>span,
html[data-theme="light"] .event-meta{color:#647169}
html[data-theme="light"] .event-card{border-color:#d4dcd6;background:#fff;box-shadow:0 12px 30px #213c2c12}
html[data-theme="light"] .event-copy h3{color:#1b2b22}
html[data-theme="light"] .event-actions{border-color:#e0e6e1}
html[data-theme="light"] .event-actions a,
html[data-theme="light"] .event-actions button{border-color:#cbd5ce;color:#2b3c33;background:#f4f7f4}
html[data-theme="light"] .event-actions a:first-child{border-color:#829b31;color:#344900;background:#f5fadf}
html[data-theme="light"] .event-actions .archive-action{color:#6c786f;background:transparent}
html[data-theme="light"] .secondary{border-color:#c8d2ca;color:#293a31;background:#fff}
html[data-theme="light"] dialog{border-color:#cbd5ce;color:#1b2a22;background:#fff;box-shadow:0 28px 80px #1d34232b}
html[data-theme="light"] .dialog-heading button{color:#33433a}
html[data-theme="light"] .dialog-sheet label{color:#37483f}
html[data-theme="light"] .dialog-sheet input,
html[data-theme="light"] .dialog-sheet select{border-color:#c7d1ca;color:#1d2b23;background:#f8faf8}
html[data-theme="light"] .access-code-editor input{border-color:#c7d1ca;color:#1d2b23;background:#fff}
html[data-theme="light"] .access-code-editor button{border-color:#829b31;color:#344900;background:#f5fadf}
html[data-theme="light"] .tenant{filter:brightness(.28);opacity:.78}

/* Operação */
html[data-theme="light"] .event-summary h1,
html[data-theme="light"] .section-heading h2{color:#19271f}
html[data-theme="light"] .event-summary p{color:#607411}
html[data-theme="light"] .event-summary>div>span,
html[data-theme="light"] .summary-clock span,
html[data-theme="light"] .save-state,
html[data-theme="light"] .action-help{color:#68756d}
html[data-theme="light"] .operation-day-nav,
html[data-theme="light"] .mode-tabs{border-color:#d3dcd5;background:#fff}
html[data-theme="light"] .operation-day-nav button{border-color:#cbd5ce;color:#22342a;background:#f3f6f3}
html[data-theme="light"] .operation-day-nav strong{color:#3b4c43}
html[data-theme="light"] .mode-tabs button{color:#657269}
html[data-theme="light"] .mode-tabs button.is-active{color:#fff;background:#24362c;box-shadow:none}
html[data-theme="light"] .next-action,
html[data-theme="light"] .planning-card{border-color:#d2dcd4;color:#1a2921;background:#fff;box-shadow:0 12px 30px #1b382510}
html[data-theme="light"] .next-action.is-running{border-color:#e4aaa6;background:#fff7f6}
html[data-theme="light"] .next-action.is-awaiting{border-color:#e0c17b;background:#fffaf0}
html[data-theme="light"] .action-eyebrow,
html[data-theme="light"] .next-action .action-meta,
html[data-theme="light"] .planning-empty{color:#68756d}
html[data-theme="light"] .order-card,
html[data-theme="light"] .planning-row{border-color:#d5ddd7;color:#1c2b23;background:#fff}
html[data-theme="light"] .order-card.is-live{border-color:#e5aaa6;background:#fff4f3}
html[data-theme="light"] .order-copy span,
html[data-theme="light"] .order-copy small{color:#68756d}
html[data-theme="light"] input,
html[data-theme="light"] select{border-color:#c6d0c9;color:#1c2b23;background:#f8faf8}
html[data-theme="light"] .planning-row-heading{border-color:#e0e6e1}
html[data-theme="light"] .planning-row-tools button{border-color:#cbd5ce;color:#33443a;background:#f3f6f3}
html[data-theme="light"] .planning-row-tools .delete-plan{border-color:#e5bbb8;color:#9e332e;background:#fff1f0}
html[data-theme="light"] .operational-rule,
html[data-theme="light"] .event-logo-editor{border-color:#d4ddd6;color:#647169;background:#f8faf8}
html[data-theme="light"] .event-logo-preview{border-color:#cad4cc;background:#fff}
html[data-theme="light"] .text-button{color:#3b5145}
html[data-theme="light"] .mobile-planning-dock{border-color:#cbd5ce;background:#ffffffee;box-shadow:0 14px 38px #1a352229}

/* Ficha de produção: a base já é clara; esta camada cria o modo escuro. */
html[data-theme="dark"] body{color:#edf2ee;background:#0d110e}
html[data-theme="dark"] .hero,
html[data-theme="dark"] .card,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .add-field,
html[data-theme="dark"] .table-card{border-color:#303b34;color:#edf2ee;background:#151b17;box-shadow:0 12px 30px #0004}
html[data-theme="dark"] .hero{background:linear-gradient(135deg,#182019,#111713)}
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .event-name-field input,
html[data-theme="dark"] .recipient-copy h2,
html[data-theme="dark"] .summary-card h2,
html[data-theme="dark"] .section-heading,
html[data-theme="dark"] .table-heading h2{color:#f3f6f2}
html[data-theme="dark"] .hero p,
html[data-theme="dark"] .summary-card p,
html[data-theme="dark"] .summary-line span,
html[data-theme="dark"] .hint,
html[data-theme="dark"] .table-extra-heading{color:#9ba69f}
html[data-theme="dark"] .fields{border-color:#2c3730;background:#111713}
html[data-theme="dark"] .field-label label,
html[data-theme="dark"] .modal label{color:#c9d1cc}
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .modal input,
html[data-theme="dark"] .modal select,
html[data-theme="dark"] .rows input{border-color:#3a463f;color:#edf2ee;background:#0e1410}
html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field select:focus,
html[data-theme="dark"] .field textarea:focus,
html[data-theme="dark"] .rows input:focus{background:#131b16}
html[data-theme="dark"] .fixed-item,
html[data-theme="dark"] .rows.fixed-row{border-color:#37423b;background:#111713}
html[data-theme="dark"] .outline,
html[data-theme="dark"] .ghost{border-color:#455149;color:#e0e6e2;background:#1b241e}
html[data-theme="dark"] .section-nav{background:#0d110eee}
html[data-theme="dark"] .section-nav a{border-color:#39443d;color:#cbd3ce;background:#151c17}
html[data-theme="dark"] .modal{border-color:#39443d;color:#edf2ee;background:#151c17}
html[data-theme="dark"] .modal-close{color:#dce3de;background:#273129}
html[data-theme="dark"] .model-row{border-color:#39443d;color:#edf2ee;background:#111713}
html[data-theme="dark"] .table-extra-fields{border-color:#303b34}

/* Seletor de eventos */
html[data-theme="light"] .shell{color:#1c2b23}
html[data-theme="light"] .shell .top{padding:12px 14px;border-radius:14px;background:#13221a}
html[data-theme="light"] .shell .heading span{color:#647169}
html[data-theme="light"] .shell .card,
html[data-theme="light"] .shell .empty{border-color:#d2dcd4;color:#1b2b22;background:#fff;box-shadow:0 14px 32px #1c392612}
html[data-theme="light"] .shell .copy small{color:#66736b}
html[data-theme="light"] .shell .card-actions a{border-color:#c8d3cb;color:#2e4136;background:#f5f7f5}

/* Tela ao vivo */
html[data-theme="light"] .event-header{border-color:#d4ddd6;background:#f8faf8f2}
html[data-theme="light"] .event-identity strong,
html[data-theme="light"] .day-switcher button,
html[data-theme="light"] .board-heading h1,
html[data-theme="light"] .card-copy h2,
html[data-theme="light"] .progress-labels b{color:#1b2b22}
html[data-theme="light"] .day-switcher button{border-color:#cbd5ce;background:#fff}
html[data-theme="light"] .day-switcher strong,
html[data-theme="light"] .connection-state,
html[data-theme="light"] .board-clock span,
html[data-theme="light"] .card-copy>span,
html[data-theme="light"] .progress-labels{color:#657169}
html[data-theme="light"] .notification-toggle{border-color:#cbd5ce;color:#46584e;background:#fff}
html[data-theme="light"] .board-heading>p,
html[data-theme="light"] .kind-label,
html[data-theme="light"] .day-switcher span{color:#607411}
html[data-theme="light"] .program-card{border-color:#d4ddd6;color:#1b2b22;background:#fff}
html[data-theme="light"] .program-card[data-status="done"]{opacity:.78}
html[data-theme="light"] .program-card[data-status="unconfirmed"]{opacity:.68}
@media(min-width:900px){
  html[data-theme="light"] .program-list{scrollbar-color:#8d9a92 #e3e8e4}
  html[data-theme="light"] .program-list::-webkit-scrollbar-track{background:#e3e8e4}
  html[data-theme="light"] .program-list::-webkit-scrollbar-thumb{border-color:#e3e8e4;background:#8d9a92}
}
html[data-theme="light"] .program-card[data-status="next"]{background:#f7f9f7}
html[data-theme="light"] .program-card[data-status="live"]{background:linear-gradient(125deg,#fff,#f4f7f4 62%);box-shadow:0 12px 32px #1c38241c}
html[data-theme="light"] .card-time{color:#43534a}
html[data-theme="light"] .elapsed-clock b{color:#1b2b22}
html[data-theme="light"] .live-details{border-color:#dfe5e0}
html[data-theme="light"] .panel-signature{color:#657169}
html[data-theme="light"] .ditado-signature{filter:brightness(.25);opacity:.85}
html[data-theme="light"] .share-link{color:#34483d}
html[data-theme="light"] .share-dialog{border-color:#cbd5ce;color:#1b2b22;background:#fff}
html[data-theme="light"] .share-option{border-color:#d4ddd6;color:#1b2b22;background:#f7f9f7}
html[data-theme="light"] .share-option small{color:#68756d}
html[data-theme="light"] .dialog-close{border-color:#cbd5ce;color:#405148}

@media print{
  html[data-theme] body{color:#18261f;background:#fff}
  .theme-switch{display:none!important}
}

@media(max-width:720px){
  .admin-page{min-width:0}
  .admin-page .topbar{padding-inline:10px}
}
@media(max-width:350px){
  .admin-page .tenant{display:none}
  .admin-page .admin-account{gap:5px}
  .admin-page .brand img{width:74px}
  .operation-page .topbar{padding-inline:7px}
  .operation-page .brand img{width:72px}
  .operation-page .top-actions{gap:4px}
  .operation-page .live-link{width:36px;height:36px}
  .operation-page .auth-logout{padding-inline:7px}
  .theme-choice{width:30px;min-height:32px}
  .theme-switch{gap:1px}
  .auth-logout{min-height:32px}
}

@media(max-width:440px){
  .operation-page .top-actions .events-link{display:none!important}
}
