/* RC32 · Fase B — camada de tokens + grupos do menu Mais.
   Valores derivados das cores já usadas em b-ux.css (sem paleta nova).
   Reverter = remover o <link> no index.html. Não altera regras existentes. */
:root{
  /* superfícies */
  --tv-bg:#141214;
  --tv-surface:#1a181b;
  --tv-surface-2:#1e1919;
  --tv-surface-raised:#302021;
  /* texto */
  --tv-text:#fff5ed;
  --tv-text-2:#dec8bb;
  --tv-text-3:#bfafab;
  /* destaque */
  --tv-accent:#e98770;
  --tv-accent-soft:#f5a98d;
  /* estados (erro já existe no app; sucesso e atenção são novos e discretos) */
  --tv-error:#e88a6e;
  --tv-success:#7fd1a0;
  --tv-warning:#f0c674;
  /* bordas e raios */
  --tv-border:#413438;
  --tv-border-warm:#4e3730;
  --tv-radius-s:12px;
  --tv-radius-m:14px;
  --tv-radius-l:18px;
  /* espaçamento */
  --tv-space-1:4px;--tv-space-2:8px;--tv-space-3:12px;--tv-space-4:16px;--tv-space-5:24px;--tv-space-6:32px;
  /* controles e movimento */
  --tv-control-h:44px;
  --tv-focus:0 0 0 3px #f5a98d99;
  --tv-motion:160ms;
  --tv-shadow:0 10px 28px #0007;
}

/* Menu Mais agrupado */
#bMore .b-more-group{margin:var(--tv-space-5) 0 0}
#bMore .b-more-group:first-of-type{margin-top:var(--tv-space-4)}
#bMore .b-more-title{margin:0 0 var(--tv-space-3);color:var(--tv-accent-soft);font-size:12px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
#bMore .b-more-group .b-shortcuts button{transition:border-color var(--tv-motion) ease}
#bMore .b-more-group .b-shortcuts button:focus-visible{outline:none;box-shadow:var(--tv-focus);border-color:var(--tv-accent)}
@media(max-width:420px){#bMore .b-more-group .b-shortcuts{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#bMore .b-more-group .b-shortcuts button{transition:none}}

/* Painel "Minhas principais confusões" */
#tvConf{position:fixed;inset:0;z-index:120;display:flex;align-items:flex-end;justify-content:center}
#tvConf[hidden]{display:none}
#tvConf .tvc-back{position:absolute;inset:0;background:#000b}
#tvConf .tvc-card{position:relative;width:min(560px,100%);max-height:88vh;overflow:auto;background:var(--tv-surface);border:1px solid var(--tv-border);border-radius:var(--tv-radius-l) var(--tv-radius-l) 0 0;padding:var(--tv-space-4) var(--tv-space-4) calc(var(--tv-space-5) + env(safe-area-inset-bottom,0px));color:var(--tv-text);box-shadow:var(--tv-shadow)}
#tvConf .tvc-head{display:flex;align-items:center;justify-content:space-between;gap:var(--tv-space-3);margin-bottom:var(--tv-space-3)}
#tvConf h2{margin:0;font-size:20px}
#tvConf .tvc-close{min-width:var(--tv-control-h);min-height:var(--tv-control-h);border:1px solid var(--tv-border);background:var(--tv-surface-2);color:var(--tv-text);border-radius:var(--tv-radius-s);font-size:18px}
#tvConf .tvc-note,#tvConf .tvc-empty,#tvConf .tvc-meta{color:var(--tv-text-3);font-size:13px;line-height:1.5;margin:0 0 var(--tv-space-3)}
#tvConf .tvc-list{list-style:none;margin:0;padding:0;display:grid;gap:var(--tv-space-3)}
#tvConf .tvc-item{padding:var(--tv-space-4);background:var(--tv-surface-2);border:1px solid var(--tv-border-warm);border-radius:var(--tv-radius-m)}
#tvConf .tvc-pair{margin:0 0 var(--tv-space-2);font-size:15px;line-height:1.5}
#tvConf .tvc-act{min-height:var(--tv-control-h);padding:0 var(--tv-space-4);border:1px solid var(--tv-accent);background:var(--tv-surface-raised);color:var(--tv-text);border-radius:var(--tv-radius-s);font-weight:800}
#tvConf button:focus-visible{outline:none;box-shadow:var(--tv-focus)}
