/* Tema noturno Voe — paleta extraída da marca: céu petróleo, azul cerrado, creme, sol e lima. */
html[data-theme="dark"]{
  color-scheme:dark;
  --ink:#071c26;
  --forest:#0d3443;
  --cream:#102b38;
  --paper:#0a222e;
  --lime:#cceb36;
  --sun:#f0aa55;
  --orange:#e47d47;
  --line:rgba(166,205,218,.18);
  --muted:#a9c0c9;
  --dark-bg:#061923;
  --dark-bg-soft:#09232f;
  --dark-surface:#102e3b;
  --dark-surface-2:#173b49;
  --dark-surface-3:#1d4655;
  --dark-text:#f8f2e7;
  --dark-muted:#adc2ca;
  --dark-border:rgba(164,205,219,.2);
  --dark-shadow:0 22px 58px rgba(0,8,13,.34)
}
html[data-theme="dark"] body{background:radial-gradient(circle at 88% -5%,rgba(35,92,111,.35),transparent 34rem),linear-gradient(145deg,var(--dark-bg),#08202b 55%,#0b2935);color:var(--dark-text)}
html[data-theme="dark"] body:before{background:linear-gradient(90deg,var(--lime),#67b9cb,var(--sun))}
html[data-theme="dark"] :where(h1,h2,h3,h4,h5,h6,strong,b,dt,legend,label){color:var(--dark-text)}
html[data-theme="dark"] :where(p,small,dd,time){text-wrap:pretty}
html[data-theme="dark"] :where(a,button,input,select,textarea,summary){-webkit-tap-highlight-color:transparent}
html[data-theme="dark"] :where(a,button,input,select,textarea):focus-visible{outline:3px solid rgba(204,235,54,.52);outline-offset:2px;box-shadow:none}
html[data-theme="dark"] .form-card :where(input,select,textarea):focus-visible{outline:none;box-shadow:none}

/* Navegação */
html[data-theme="dark"] .topbar{background:rgba(5,24,33,.94);border-bottom-color:var(--dark-border);box-shadow:0 12px 36px rgba(0,7,11,.32)}
html[data-theme="dark"] :where(.desktop-nav__link,.desktop-nav__account,.nav-admin summary){color:#d9e7e9}
html[data-theme="dark"] :where(.desktop-nav__link,.desktop-nav__account):hover,
html[data-theme="dark"] :where(.desktop-nav__link,.desktop-nav__account).is-active{color:var(--lime)}
html[data-theme="dark"] .desktop-nav__publish{background:var(--lime);color:#09232e}
html[data-theme="dark"] .desktop-theme-toggle{border-color:var(--dark-border);color:var(--dark-text)}
html[data-theme="dark"] .nav-admin>div{border-color:var(--dark-border);background:#0b2733;box-shadow:var(--dark-shadow)}
html[data-theme="dark"] .nav-admin a{color:#d7e6e9}
html[data-theme="dark"] :where(.mobile-dock,.voe-mobile-menu__panel,.voe-mobile-menu__links,.voe-mobile-menu__speed){background:rgba(7,28,38,.98);color:var(--dark-text);border-color:var(--dark-border)}
html[data-theme="dark"] .voe-mobile-menu__header{background:#103342;color:var(--dark-text)}
html[data-theme="dark"] .voe-mobile-menu__links a{color:#dce9eb;border-color:var(--dark-border)}
html[data-theme="dark"] .voe-mobile-menu__links a.is-active{background:rgba(204,235,54,.11);color:var(--lime)}
html[data-theme="dark"] .mobile-dock__item{color:var(--dark-muted)}
html[data-theme="dark"] .mobile-dock__item.is-active{color:var(--lime)}

/* Fundos das páginas */
html[data-theme="dark"] :where(.weekly,.ranking,.panel-shell,.form-shell,.profile-page,.events-page,.events-calendar-section,.auth-page,.panel-page,.store-product-section,.store-products,.marketplace-page,.market-content,.listing-detail-page,.payment-shell){background:transparent;color:var(--dark-text)}
html[data-theme="dark"] .ranking{background:rgba(12,39,51,.74)}
html[data-theme="dark"] .hall{background:linear-gradient(145deg,#051923,#0c3441);color:var(--dark-text)}
html[data-theme="dark"] .market-hero{background:radial-gradient(circle at 78% 18%,rgba(46,111,130,.64),transparent 34%),linear-gradient(135deg,#061b25,#0b3342 72%,#154957)}
html[data-theme="dark"] .store-hero{background:radial-gradient(circle at 75% 25%,rgba(42,105,123,.45),transparent 38%),linear-gradient(135deg,#071c27,#103846)}
html[data-theme="dark"] .cta{background:radial-gradient(circle at 82% 15%,rgba(240,170,85,.17),transparent 34%),linear-gradient(135deg,#092632,#123c4a 72%,#0a2734);color:var(--dark-text)}

/* Superfícies */
html[data-theme="dark"] :where(.management-panel,.content-panel,.managed-content,.form-card,.account-card,.role-card,.order-card,.payment-card,.event-items article,.tip-card,.product-card,.cart,.checkout-form,.pix-result,.pilot-digital-card,.metadata-panel,.events-empty,.event-calendar,.upload-field,.mp-account,.mp-accounts-panel,.store-editor,.market-filters,.listing-card,.market-empty,.seller-card,.listing-owner,.profile-contact-card,.professional-profile-hero,.recent-accounts>div>a,.proof-form,.profile-editor-section){border-color:var(--dark-border);background:linear-gradient(145deg,var(--dark-surface),#0d2936);color:var(--dark-text);box-shadow:var(--dark-shadow)}
html[data-theme="dark"] :where(.listing-body,.product-info,.product-options,.cart-items,.cart-footer){color:var(--dark-text)}
html[data-theme="dark"] :where(.order-card,.account-card,.role-card,.content-panel,.managed-content,.management-panel,.listing-card,.product-card){box-shadow:0 12px 34px rgba(0,8,13,.2)}
html[data-theme="dark"] :where(.photo-frame,.listing-image,.detail-media){background:#163541}

/* Texto e contraste */
html[data-theme="dark"] :where(.section-intro,.ranking-title>p,.panel-heading p,.form-card>p,.profile-hero p,.profile-stat span,.photo-meta p,.mini-pilot,.listing-kicker,.detail-location,.detail-description p,.safety-note,.seller-card p,.seller-card small,.market-empty p,.management-panel p,.content-panel p,.managed-content p,.order-card time,.order-customer small,.cart-empty,.cart-footer small,.product-info p,.store-assurance p,.mp-account p,.mp-account small,.mp-connect small,.payment-card>p,.pilot-card-location,.pilot-card-bio,.share-card-feedback){color:var(--dark-muted)}
html[data-theme="dark"] .eyebrow.dark{color:var(--sun)}
html[data-theme="dark"] :where(.text-button,.profile-edit-link,.profile-actions .text-button,.panel-page .panel-heading-actions .text-button,.market-back,.seller-card>a){color:#c9dde2;border-color:currentColor}
html[data-theme="dark"] :where(.text-button,.profile-edit-link,.market-back,.seller-card>a):hover{color:var(--lime)}
html[data-theme="dark"] .pilot-profile-callout{background:rgba(22,59,72,.72);border-color:var(--dark-border)}
html[data-theme="dark"] .pilot-profile-callout:hover{background:var(--dark-surface-2)}
html[data-theme="dark"] .pilot-profile-callout :where(b,strong){color:var(--dark-text)}
html[data-theme="dark"] .pilot-profile-callout em{color:var(--dark-muted)}

/* Campos */
html[data-theme="dark"] :where(input,textarea,select){border-color:var(--dark-border)!important;background:#0a2430!important;color:var(--dark-text)!important;caret-color:var(--lime)}
html[data-theme="dark"] :where(input,textarea)::placeholder{color:#819ca6;opacity:1}
html[data-theme="dark"] :where(input,textarea,select):focus{border-color:#66a6b8!important;box-shadow:0 0 0 3px rgba(102,166,184,.17)!important}
html[data-theme="dark"] select{color-scheme:dark}
html[data-theme="dark"] input[type="file"]::file-selector-button{border:0;border-radius:999px;padding:9px 13px;margin-right:10px;background:var(--dark-surface-3);color:var(--dark-text);font-weight:800;cursor:pointer}
html[data-theme="dark"] :where(.metadata-panel dl>div,.proof-form input[type=file],.mp-connect,.validation-code-box){border-color:var(--dark-border);background:#0a2430;color:var(--dark-text)}
html[data-theme="dark"] .validation-code-box{border-color:rgba(240,170,85,.55)}

/* Botões: largura estável e sem quebras de texto */
html[data-theme="dark"] :where(.primary-button,.edit-item,.delete-content,.delete-profile-button,.cancel-edit,.whatsapp-checkout,.listing-owner button,.market-filters button,.order-filters a,.pilot-card-links>a,.google-login){min-height:44px;white-space:nowrap;line-height:1.15;text-align:center;word-break:normal;overflow-wrap:normal}
html[data-theme="dark"] .primary-button{background:var(--lime);color:#08212b;box-shadow:0 10px 28px rgba(0,9,14,.28)}
html[data-theme="dark"] .primary-button:hover{background:#ddf76b;color:#061b24}
html[data-theme="dark"] .google-login{border-color:var(--dark-border);background:#153746;color:var(--dark-text)}
html[data-theme="dark"] :where(.edit-item,.cancel-edit,.order-filters a){border-color:var(--dark-border);background:#173b49;color:#e4eef0}
html[data-theme="dark"] :where(.edit-item,.cancel-edit,.order-filters a):hover{border-color:#68aabd;background:#1e4a59;color:#fff}
html[data-theme="dark"] .order-filters a.active{border-color:var(--lime);background:var(--lime);color:#08212b}
html[data-theme="dark"] :where(.delete-content,.delete-profile-button,.button-danger){border-color:rgba(255,143,128,.45);background:rgba(151,57,48,.28);color:#ffc3ba}
html[data-theme="dark"] :where(.delete-content,.delete-profile-button,.button-danger):hover{background:#8e3a33;color:#fff}
html[data-theme="dark"] .whatsapp-button{background:#39d77b;color:#062519}
html[data-theme="dark"] .whatsapp-button:hover{background:#68e49a;color:#062519}

/* Estados e mensagens */
html[data-theme="dark"] .form-error,
html[data-theme="dark"] .checkout-error{border:1px solid rgba(255,139,125,.3);background:rgba(135,45,39,.28);color:#ffc9c1}
html[data-theme="dark"] .proof-success{background:rgba(78,168,112,.19);color:#b8f0cb}
html[data-theme="dark"] .flash{border:1px solid var(--dark-border);background:#123644;color:var(--dark-text)}
html[data-theme="dark"] .flash--success{background:#1d5d46;color:#eaffef}
html[data-theme="dark"] .toast{background:#123644;color:var(--dark-text)}
html[data-theme="dark"] .order-status{background:#1d4351;color:#e2edef}
html[data-theme="dark"] .order-status--pending{background:rgba(240,170,85,.18);color:#ffd293}
html[data-theme="dark"] .order-status--proof_sent{background:rgba(79,155,216,.2);color:#c5e4ff}
html[data-theme="dark"] :where(.order-status--approved,.order-status--delivered,.content-status--published){background:rgba(204,235,54,.15);color:#e7f98d}
html[data-theme="dark"] :where(.order-status--rejected,.order-status--cancelled,.sold-tag){background:rgba(205,80,66,.2);color:#ffc3ba}
html[data-theme="dark"] .content-status--draft{background:#1b414f;color:#d6e5e8}

/* Tabelas, linhas e listas */
html[data-theme="dark"] :where(table,th,td,.payment-summary>div,.order-body li,.order-card>header,.order-card>footer,.cart-head,.cart-item,.cart-footer,.profile-hero,.profile-editor-section){border-color:var(--dark-border)}
html[data-theme="dark"] th{background:#143746;color:#e9f1f2}
html[data-theme="dark"] td{color:#d5e3e6}
html[data-theme="dark"] tbody tr:hover{background:rgba(90,155,175,.08)}
html[data-theme="dark"] .table-scroll{border:1px solid var(--dark-border);border-radius:14px}

/* Calendário */
html[data-theme="dark"] #voe-calendar.fc{--fc-page-bg-color:var(--dark-surface);--fc-neutral-bg-color:var(--dark-surface-2);--fc-border-color:var(--dark-border);--fc-list-event-hover-bg-color:rgba(204,235,54,.08);color:var(--dark-text)}
html[data-theme="dark"] #voe-calendar.fc :where(.fc-toolbar-title,.fc-col-header-cell-cushion,.fc-daygrid-day-number){color:var(--dark-text)}
html[data-theme="dark"] #voe-calendar.fc :where(.fc-scrollgrid,.fc-scrollgrid table,.fc-scrollgrid-section>td,.fc-daygrid-day,.fc-list){background:var(--dark-surface);color:var(--dark-text);border-color:var(--dark-border)}
html[data-theme="dark"] #voe-calendar.fc .fc-col-header-cell{background:#173d4b;color:var(--dark-text)}
html[data-theme="dark"] #voe-calendar.fc .fc-day-other .fc-daygrid-day-number{color:#78929b;opacity:1}
html[data-theme="dark"] #voe-calendar.fc .fc-list-empty{background:var(--dark-surface);color:var(--dark-muted)}

/* Loja, perfil e detalhes especiais */
html[data-theme="dark"] .store-contact-panel,
html[data-theme="dark"] .profile-professional,
html[data-theme="dark"] .profile-contact-card{background:linear-gradient(145deg,#0b2935,#133e4b);color:var(--dark-text);border:1px solid var(--dark-border)}
html[data-theme="dark"] .store-contact-panel>div>p:last-child,
html[data-theme="dark"] .profile-professional article>p:last-child,
html[data-theme="dark"] .profile-contact-about{color:var(--dark-muted)}
html[data-theme="dark"] .pilot-card-services span{background:#173c4a;color:#e5eff1}
html[data-theme="dark"] .product-color{background:rgba(9,33,44,.92);color:var(--dark-text);border:1px solid var(--dark-border)}
html[data-theme="dark"] .intensity{background:rgba(187,216,226,.13)}
html[data-theme="dark"] .intensity span{background:linear-gradient(90deg,#58a9bd,var(--lime))}
html[data-theme="dark"] .detail-thumbnails button{background:#163946;border-color:transparent}
html[data-theme="dark"] .detail-thumbnails button.active{border-color:var(--lime);box-shadow:0 0 0 2px #061923}
html[data-theme="dark"] footer{border-top-color:var(--dark-border);background:#061923;color:var(--dark-text)}
html[data-theme="dark"] footer :where(p,a){color:var(--dark-muted)}
html[data-theme="dark"] footer a:hover{color:var(--lime)}

/* Mantém textos sobre fotografias claros, independentemente da superfície. */
html[data-theme="dark"] :where(.hero,.champion-card,.hall,.store-hero) :where(h1,h2,h3,p,small,strong,a){color:inherit}

@media(max-width:760px){
  html[data-theme="dark"] :where(.panel-heading-actions,.managed-actions,.listing-owner form,.order-card>footer form){align-items:stretch}
  html[data-theme="dark"] :where(.panel-heading-actions,.managed-actions,.listing-owner form,.order-card>footer form) :where(a,button){width:100%;justify-content:center}
  html[data-theme="dark"] :where(.primary-button,.edit-item,.delete-content,.delete-profile-button,.cancel-edit,.listing-owner button){white-space:normal;min-height:46px;padding-inline:15px}
}
