/* Padrão solicitado pelo proprietário: rótulo branco, resultado amarelo.
   Somente apresentação. Nenhum seletor muda disponibilidade ou estado de negócio. */
:root {
  --portal-fact-bg: #14283f;
  --portal-label: #ffffff;
  --portal-value: #ffea00;
  --portal-action-main: #ffdf4d;
  --portal-action-ink: #172333;
  --portal-action-secondary: #224d75;
  --portal-action-support: #176052;
  --portal-action-purchase: #594183;
}
/* Classes semânticas para interfaces novas; seletores abaixo adaptam as atuais. */
body .portal-fact,
body :is(dl>div,.license-owned-data>div,.license-data>div,.data-item,.access-field,
 .app-guide-field,.app-instruction-credentials,.eplow-field,.menu-code,
 .stats-card,.license-metrics>article,.admin-customer-summary dl>div,
 .retrial-dialog dl>div,.app-setup-codes>div,.license-price,.license-payment-total) {
  background:var(--portal-fact-bg);color:var(--portal-label);
  border-color:#718eac;min-width:0;
}
body .portal-fact {padding:12px;border:1px solid #718eac;border-radius:10px}
body :is(.app-license-dialog:not(.is-hd-player-license),.license-chat-order) {
 --surface:#111e31;--surface-2:#14283f;--text:#edf4ff;--muted:#c2d1e5;
 --line:#718eac;--primary:#55d6be;background:var(--surface);color:var(--text);
}
body .license-card-record {background:var(--portal-fact-bg);border-radius:8px;padding:6px}
body .client-compact-summary {background:var(--portal-fact-bg);color:var(--portal-label)}
:root body[data-access="client"] #clientView:is([data-screen="home"],[data-screen="menu"]) :is(#clientPhone,#clientScreenCount,#clientPlanDetails) {color:var(--portal-label)}
:root body[data-access="client"] #clientView:is([data-screen="home"],[data-screen="menu"]) :is(.client-phone-value,.client-screen-value,.client-plan-value) {color:var(--portal-value)}
:root body #clientAccessData .access-screen .access-field label {color:var(--portal-label)}
:root body #clientAccessData .access-screen .access-field textarea {color:var(--portal-value);background:#0c1b2c}
:root body .portal-label,
:root body dl dt,
:root body :is(.license-owned-data,.license-data,.chat-payment-receipt-data,.app-setup-codes) dt,
:root body :is(.data-item,.license-metrics>article)>small,
:root body .stats-card>p,
:root body .access-field label,
:root body .app-guide-field-heading>span,
:root body .app-instruction-row>span,
:root body .eplow-field>div>span,
:root body .menu-code>strong,
:root body .admin-customer-summary dt,
:root body .retrial-dialog dt,
:root body .license-card-record>small,
:root body .license-mac-field>span,
:root body :is(.license-price,.license-payment-total)>span {
  color:var(--portal-label);
}
:root body .portal-value,
:root body dl dd,
:root body :is(.license-owned-data,.license-data,.chat-payment-receipt-data,.app-setup-codes) dd,
:root body :is(.license-owned-data,.license-data,.chat-payment-receipt-data) dd :is(time,code,strong,a),
:root body :is(.data-item,.license-metrics>article)>strong,
:root body .stats-card>strong,
:root body .access-field :is(textarea,input),
:root body .app-guide-value,
:root body .app-instruction-row>code,
:root body .eplow-field>code,
:root body .menu-code>code,
:root body .admin-customer-summary dd,
:root body .retrial-dialog dd,
:root body :is(.license-price,.license-payment-total)>strong,
:root body .payment-plan-amount,
:root body :is(.client-access-value,.client-plan-value,.client-phone-value,.client-screen-value),
:root body .client-trial-facts strong,
:root body .license-card-record .portal-value {
  color:var(--portal-value);font-weight:650;opacity:1;
  overflow-wrap:anywhere;
}
:root body .app-guide-screen>p>strong {color:var(--portal-value);background:var(--portal-fact-bg)}
/* Resultados permanecem legíveis também sobre temas claros e balões personalizados. */
body .portal-value {background:var(--portal-fact-bg);border-radius:3px}
body :is(.client-access-value,.client-plan-value,.client-phone-value,.client-screen-value,.payment-plan-amount) {
  background:var(--portal-fact-bg);border-radius:3px;padding:1px 3px;
}
:root body .license-owned-data>div:last-child dd,
:root body .license-catalog .license-owned-data dd,
:root body .license-customer-orders .license-owned-data dd {
  color:var(--portal-value);
}
:root body .license-catalog .license-owned-data dt {color:var(--portal-label)}
:root body .access-field :is(textarea,input),
:root body .app-guide-value,
:root body .eplow-field>code,
:root body .license-dialog-body :is(input:not([type=checkbox]),textarea,select) {
  color:var(--portal-value);background:#0c1b2c;border-color:#718eac;
}
:root body .license-dialog-body label {color:var(--portal-label)}
:root body .mac-form input:is([name=mac],[name=deviceKey]) {
 color:var(--portal-value);background:#0c1b2c;border-color:#718eac;
}
:root body .mac-form :is(label,.mac-instruction) {color:var(--portal-label)}
/* Não amarelar ajuda, estado confirmado, mensagens ou conteúdo do usuário. */
:root body .license-card-record .license-owned-state {color:#ffefcf}
:root body .chat-payment-receipt-data dd>small {color:#e0eaf5}
:root body :is(.access-field,.app-guide-field,.eplow-field) {border-radius:10px;padding:10px}
:root body :is(.license-price,.license-payment-total) {padding:16px;border-radius:12px}
/* Hierarquia de ações: apoio azul, conversa verde, compra violeta, lista amarela.
   Classes/data-* existentes preservados: não muda handlers, tipo ou disabled. */
:root body :is(.content-card,.portal-dialog,.app-license-dialog,.license-chat-order,
 .access-screen,.app-guide,.eplow-guide,.hd-player-card,.ibo-smarters-card,.mac-form)
 .ghost-button {
  background:var(--portal-action-secondary);color:#fff;border-color:#8ab4db;
}
:root body :is([data-license-chat],[data-portal-chat]).ghost-button {
  background:var(--portal-action-support);color:#fff;border-color:#80c9b4;
}
:root body :is([data-license-another],[data-license-buy],[data-license-purchase],[data-license-plan]).primary-button {
  background:var(--portal-action-purchase);color:#fff;border-color:#c1a4ef;
}
:root body :is(.portal-action-main,.license-playlist-load-button,.license-order-shortcut-button,
 .hd-player-submit-button,.ibo-smarters-submit-button,.gerencia-submit-button,
 .license-activation-button).primary-button {
  background:var(--portal-action-main);color:var(--portal-action-ink);
  border:2px solid #ffea00;box-shadow:0 3px 12px #0003;
  min-height:48px;font-weight:800;line-height:1.45;
  white-space:normal;overflow-wrap:anywhere;max-width:100%;
}
:root body :is(.portal-action-main,.license-playlist-load-button,.license-order-shortcut-button,
 .hd-player-submit-button,.ibo-smarters-submit-button,.gerencia-submit-button,
 .license-activation-button).primary-button:hover:not(:disabled) {
  background:#ffea80;color:var(--portal-action-ink);border-color:#ffea80;
}
:root body :is(.portal-action-main,.license-playlist-load-button,.license-order-shortcut-button,
 .hd-player-submit-button,.ibo-smarters-submit-button,.gerencia-submit-button,
 .license-activation-button).primary-button:disabled {
  background:#49596c;color:#eef4fb;border-color:#8da1b8;opacity:1;box-shadow:none;
}
:root body :is(.portal-action-main,.license-playlist-load-button,.license-order-shortcut-button,
 .hd-player-submit-button,.ibo-smarters-submit-button,.gerencia-submit-button,
 .license-activation-button).primary-button:focus-visible {
  outline:3px solid #fff;outline-offset:3px;box-shadow:0 0 0 6px #14283f;
}
/* Destruição conserva semântica explícita, nunca usa amarelo de ação principal. */
:root body :is(.system-tools-danger,.portal-action-danger) {
  background:#762f3c;color:#fff;border-color:#e4a0ad;
}
@media(forced-colors:active) {
 :root {--portal-fact-bg:Canvas;--portal-label:CanvasText;--portal-value:CanvasText;
 --portal-action-main:ButtonFace;--portal-action-ink:ButtonText}
 body .portal-fact {border-color:CanvasText}
 :root body :is(.portal-action-main,.license-playlist-load-button,.license-order-shortcut-button) {
  border-color:ButtonText;box-shadow:none;
 }
}
