/* cópia de app/public/style-v2.css (scripts/copiar-visual-app.js): edite no app e copie de novo */
/* ORION 2.0 — complementos da casca: abas do painel direito, painel da loja, mensagens, aparência (temas),
   música no topo, anexos, diagnóstico e notificações. Mesmos seletores do app.js; desenho pelos tokens de ds/tokens.css. */
.stat-hoje span { font-family: var(--o-mono); font-size: var(--o-t12); color: var(--o-ok); letter-spacing: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat-hoje { cursor: pointer; }
.audio-banner {
  position: fixed; top: 74px; left: 50%; transform: translateX(-50%); z-index: 40;
  display: flex; align-items: center; gap: var(--o-3); padding: 10px 14px;
  background: var(--o-s2); border: 1px solid rgba(var(--o-warn-rgb), .45); border-radius: var(--o-r3); color: #ffe2b8;
  box-shadow: var(--o-lift); font-size: var(--o-t14);
}
.audio-banner svg { color: var(--o-warn); }

/* abas do painel direito: controle segmentado */
.chat-tabs { display: flex; gap: 2px; margin: var(--o-3) var(--o-3) 0; padding: 3px; border: 1px solid var(--o-hair); border-radius: var(--o-r2); background: var(--o-canvas); }
.ctab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; background: none; border: 0; border-radius: 7px; padding: 0 8px; color: var(--o-ink-3); cursor: pointer; font-family: var(--o-font); font-size: var(--o-t13); font-weight: 500; letter-spacing: 0; text-transform: none; white-space: nowrap; transition: background var(--o-fast) var(--o-ease), color var(--o-fast) var(--o-ease); }
.ctab:hover { color: var(--o-ink); }
.ctab.active { color: var(--o-ink); background: var(--o-s3); box-shadow: var(--o-realce); }
.ctab .ic, .ctab svg { width: 14px; height: 14px; }
.view { display: none; flex-direction: column; flex: 1; min-height: 0; }
.view.active { display: flex; }

/* painel da loja */
.painel { flex: 1; overflow-y: auto; padding: var(--o-4); display: flex; flex-direction: column; gap: var(--o-4); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: var(--o-2); }
.kpi { border: 1px solid var(--o-hair); border-radius: var(--o-r3); padding: 12px 14px; background: var(--o-s2); position: relative; overflow: hidden; box-shadow: var(--o-realce); }
.kpi::after { display: none; }
.kpi .k { font-family: var(--o-mono); font-size: var(--o-t11); letter-spacing: var(--o-track-label); color: var(--o-ink-3); text-transform: uppercase; }
.kpi .v { font-family: var(--o-font); font-weight: 600; font-size: clamp(16px, 1.4vw, 22px); color: var(--o-ink); margin: 4px 0 2px; letter-spacing: var(--o-track-display); font-variant-numeric: tabular-nums; }
.kpi .s { font-size: var(--o-t13); color: var(--o-ink-2); }
.up { color: var(--o-ok); }
.down { color: var(--o-bad); }
.p-sec h4 { margin: 0 0 var(--o-2); font-family: var(--o-font); font-weight: 600; font-size: var(--o-t12); letter-spacing: 0; color: var(--o-ink-3); text-transform: none; display: flex; justify-content: space-between; }
.chart { width: 100%; height: 150px; display: block; }
.chart .cbar { fill: rgba(var(--o-brand-rgb), .45); }
.chart .cbar.today { fill: var(--o-cyan); }
.chart .gasto { fill: none; stroke: var(--o-warn); stroke-width: 1.6; }
.chart .gdot { fill: var(--o-warn); }
.chart text { fill: var(--o-ink-3); font-size: 9px; font-family: var(--o-mono); }
.chart .grid { stroke: var(--o-hair); }
.legend { display: flex; gap: var(--o-4); font-size: var(--o-t12); color: var(--o-ink-3); margin-top: 4px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.plist { display: flex; flex-direction: column; gap: 4px; }
.prow { display: flex; gap: var(--o-2); align-items: center; font-size: var(--o-t13); padding: 6px 10px; border-radius: var(--o-r2); background: var(--o-s2); }
.prow .n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .q { font-family: var(--o-mono); font-size: var(--o-t12); color: var(--o-link); white-space: nowrap; font-variant-numeric: tabular-nums; }
.prow .q.warn { color: var(--o-warn); }
.prow .q.bad { color: var(--o-bad); }
.fontes { display: flex; flex-direction: column; gap: 7px; }
.fonte { display: flex; gap: var(--o-2); align-items: flex-start; font-size: var(--o-t13); color: var(--o-ink-2); }
.fonte b { color: var(--o-ink); font-weight: 600; min-width: 92px; }
.fonte .txt { flex: 1; min-width: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; margin-top: 6px; background: var(--o-ink-4); }
.dot.ok { background: var(--o-ok); box-shadow: 0 0 8px rgba(var(--o-ok-rgb), .7); }
.dot.rodando { background: var(--o-cyan); box-shadow: 0 0 8px rgba(var(--o-cyan-rgb), .8); animation: blink 1s infinite; }
.dot.erro, .dot.bad { background: var(--o-bad); box-shadow: 0 0 8px rgba(var(--o-bad-rgb), .7); }
.dot.desligado, .dot.off, .dot.aguardando { background: var(--o-ink-4); }
.dot.warn { background: var(--o-warn); box-shadow: 0 0 8px rgba(var(--o-warn-rgb), .7); }
.progress { height: 4px; background: var(--o-s3); border-radius: var(--o-pill); overflow: hidden; margin-top: 4px; }
.progress i { display: block; height: 100%; background: var(--o-grad-h); transition: width .6s var(--o-ease); }
.link-btn { background: none; border: 0; color: var(--o-link); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* mensagens: IA que respondeu, avisos */
.via { font-family: var(--o-mono); font-size: var(--o-t11); letter-spacing: 0; padding: 1px 7px; border: 1px solid var(--o-hair); background: var(--o-s3); border-radius: var(--o-pill); color: var(--o-ink-2); text-transform: none; }
.notice { font-size: var(--o-t12); color: var(--o-warn); margin-bottom: 6px; }
.bubble table { border-collapse: collapse; margin: .5em 0; font-size: .9em; display: block; overflow-x: auto; max-width: 100%; }
.bubble th { background: var(--o-s3); text-align: left; }

/* legendas grandes */
body.big-captions .subtitle { font-size: 30px; line-height: 1.3; -webkit-line-clamp: 5; min-height: 80px; max-width: 900px; }

/* diálogo largo e telas novas */
.dlg-wide { max-width: 900px; }
#settingsForm .tab-body { height: min(640px, 66vh); }
.foot-note { font-size: var(--o-t13); color: var(--o-ink-3); }
.dlg label.narrow { max-width: 320px; }
.help-box { border: 1px solid var(--o-hair); border-radius: var(--o-r2); padding: 8px 12px; background: var(--o-s2); font-size: var(--o-t13); color: var(--o-ink-2); }
.help-box summary { cursor: pointer; color: var(--o-ink); font-weight: 600; }
.help-box ol { margin: 8px 0 4px; padding-left: 20px; line-height: 1.55; }
.help-box a, .help a { color: var(--o-link); }
.help-box code { font-family: var(--o-mono); font-size: var(--o-t12); color: var(--o-link); }
.ia-list { display: flex; flex-direction: column; gap: var(--o-2); }
.ia-row { display: grid; grid-template-columns: 30px 1fr auto; gap: var(--o-3); align-items: center; padding: 10px 12px; border: 1px solid var(--o-hair); border-radius: var(--o-r3); background: var(--o-s2); }
.ia-row.off { opacity: .55; }
.ia-row.atual { border-color: var(--o-brand-40); background: var(--o-brand-08); }
.ia-ord { font-family: var(--o-mono); font-weight: 600; font-size: var(--o-t15); color: var(--o-brand); text-align: center; }
.ia-top { display: flex; align-items: center; gap: var(--o-2); flex-wrap: wrap; }
.ia-top b { font-size: var(--o-t15); font-weight: 600; }
.ia-top .dot { margin-top: 0; }
.ia-st { font-size: var(--o-t13); color: var(--o-ink-3); }
.ia-fields { display: grid; grid-template-columns: 1fr 210px; gap: var(--o-2); margin-top: var(--o-2); }
.ia-fields.one { grid-template-columns: 1fr; }
.ia-fields input { width: 100%; }
.ia-actions { display: flex; align-items: center; gap: 6px; }
.ia-actions .mini-btn { width: 28px; height: 28px; }
.ia-note { font-size: var(--o-t13); color: var(--o-ink-2); margin-top: 6px; line-height: 1.45; }
.ia-note code { color: var(--o-link); font-family: var(--o-mono); font-size: var(--o-t12); }
.ia-note a { color: var(--o-link); }
.ia-rec { font-size: var(--o-t11); font-weight: 600; padding: 2px 8px; border-radius: var(--o-pill); color: var(--o-on-brand); background: var(--o-grad-h); }
.ia-motivo { font-size: var(--o-t12); color: var(--o-ink-2); margin: 4px 0 2px; }
.ia-recbar { display: flex; align-items: center; justify-content: space-between; gap: var(--o-4); flex-wrap: wrap; padding: 12px 14px; margin-bottom: var(--o-3); border-radius: var(--o-r3); border: 1px solid var(--o-brand-22); background: var(--o-brand-08); }
.ia-recbar div { display: grid; gap: 4px; min-width: 0; }
.ia-recbar b { font-size: var(--o-t14); font-weight: 600; }
.ia-recbar span { font-size: var(--o-t12); color: var(--o-ink-2); line-height: 1.45; }
.ia-recbar em { font-style: normal; font-size: var(--o-t12); color: var(--o-link); }
.acc-card { border: 1px solid var(--o-hair); border-radius: var(--o-r3); padding: 12px 14px; display: flex; flex-direction: column; gap: var(--o-2); background: var(--o-s2); }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: var(--o-2); }
.acc-head b { font-size: var(--o-t15); font-weight: 600; }
.acc-st { font-size: var(--o-t13); color: var(--o-ink-3); text-align: right; }
.acc-st.ok { color: var(--o-ok); }
.acc-st.bad { color: var(--o-bad); }
.pw { display: flex; gap: 6px; align-items: center; }
.pw input { flex: 1; min-width: 0; }
.pw .mini-btn { width: 36px; height: 40px; border-radius: var(--o-r2); }
a.ghost-btn { text-decoration: none; }
.audio-test { display: flex; gap: var(--o-4); align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid rgba(var(--o-warn-rgb), .3); border-radius: var(--o-r3); background: var(--o-warn-bg); }
.audio-test b { color: #ffe2b8; }
.audio-test .help { margin-top: 4px; }
.audio-test .primary-btn { flex: none; }
.toggle.on.wake-on { color: var(--o-ink); border-color: rgba(var(--o-ok-rgb), .5); background: var(--o-ok-bg); }
.toggle.on.wake-on svg { color: var(--o-ok); }
.toast.venda::before { background: var(--o-ok); }
.toast.venda { font-size: var(--o-t15); }
.toast.venda b { color: var(--o-ok); font-weight: 600; letter-spacing: 0; }
@media (max-width: 1180px) { .stat-ram { display: none; } }
@media (max-width: 900px) {
  .ia-fields { grid-template-columns: 1fr; }
  .ia-row { grid-template-columns: 24px 1fr; }
  .ia-actions { grid-column: 1 / -1; }
  .audio-test { flex-direction: column; align-items: flex-start; }
}

/* layout responsivo (janelas médias) */
.layout { grid-template-columns: 250px minmax(0, 1fr) minmax(340px, 34%); }
.layout.focus { grid-template-columns: 250px minmax(0, 1fr) 0; }
.hud-stats { min-width: 0; }
.voice-controls { gap: var(--o-3); flex-wrap: wrap; justify-content: center; }
@media (max-width: 1280px) { .stat-ram { display: none; } .voice-controls { gap: var(--o-2); } .toggle { width: 66px; } }
@media (max-width: 1180px) {
  .layout { grid-template-columns: 200px minmax(0, 1fr) minmax(300px, 38%); }
  .layout.focus { grid-template-columns: 200px minmax(0, 1fr) 0; }
}
@media (max-width: 1100px) {
  .layout { grid-template-columns: 170px minmax(0, 1fr) minmax(290px, 37%); gap: var(--o-3); padding: var(--o-3); }
  .layout.focus { grid-template-columns: 170px minmax(0, 1fr) 0; }
  .hud-stats .stat:first-child { display: none; }
  .brand-name { font-size: var(--o-t14); }
  .topbar { gap: var(--o-4); }
  #date { display: none; }
  .agent .ds { display: none; }
  .toggle { width: 58px; font-size: var(--o-t11); }
}
@media (max-width: 900px) {
  .layout, .layout.focus { grid-template-columns: 1fr; }
}

.dlg small a { color: var(--o-link); }

/* notificações animadas (vendas, marcos) */
.notifs { position: fixed; top: 76px; right: var(--o-4); z-index: 45; display: flex; flex-direction: column; gap: var(--o-2); width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.notif {
  position: relative; pointer-events: auto; display: flex; gap: var(--o-3); align-items: flex-start; padding: 12px 14px 12px 16px;
  background: var(--o-s2); border: 1px solid var(--o-hair-2); border-radius: var(--o-r3); overflow: hidden;
  box-shadow: var(--o-lift), var(--o-realce);
  animation: notifIn .45s var(--o-spring); cursor: pointer;
}
.notif::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--o-grad); }
.notif.saindo { animation: notifOut .4s ease forwards; }
.notif .ni { flex: none; width: 38px; height: 38px; border-radius: var(--o-r2); display: grid; place-items: center; font-size: 19px; background: var(--o-brand-14); border: 1px solid var(--o-brand-22); }
.notif .nt { flex: 1; min-width: 0; }
.notif .nh { display: flex; justify-content: space-between; gap: var(--o-2); font-family: var(--o-mono); font-size: var(--o-t11); letter-spacing: var(--o-track-label); color: var(--o-ink-3); text-transform: uppercase; margin-bottom: 3px; }
.notif .nm { font-size: var(--o-t15); line-height: 1.4; color: var(--o-ink); font-weight: 500; }
.notif.venda::before { background: var(--o-ok); }
.notif.venda .ni { background: var(--o-ok-bg); border-color: rgba(var(--o-ok-rgb), .35); }
.notif.marco::before { background: var(--o-warn); }
@keyframes notifIn { from { opacity: 0; transform: translateX(40px) scale(.96); } }
@keyframes notifOut { to { opacity: 0; transform: translateX(40px); } }
.chip.chip-resumo { border-color: var(--o-brand-40); color: var(--o-ink); background: var(--o-brand-14); font-weight: 600; }

/* ===== anexos no chat (fotos, vídeos, arquivos) ===== */
.composer { position: relative; }
.comp-btn { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--o-hair); background: var(--o-s3); color: var(--o-ink-2); cursor: pointer; transition: background var(--o-fast) var(--o-ease), color var(--o-fast) var(--o-ease), border-color var(--o-fast) var(--o-ease), transform var(--o-fast) var(--o-ease); }
.comp-btn svg, .comp-btn .ic { width: 16px; height: 16px; }
.comp-btn:hover { color: var(--o-ink); background: var(--o-s4); border-color: var(--o-hair-2); }
.pendentes { display: flex; flex-wrap: wrap; gap: var(--o-2); padding: var(--o-2) var(--o-3) 0; }
.pend { position: relative; display: flex; align-items: center; gap: var(--o-2); max-width: 220px; padding: 4px 28px 4px 4px; border: 1px solid var(--o-hair-2); border-radius: var(--o-r2); background: var(--o-s2); font-size: var(--o-t13); }
.pend img, .pend .pend-ico { width: 44px; height: 44px; border-radius: var(--o-r1); object-fit: cover; flex: none; display: grid; place-items: center; background: var(--o-canvas); font-size: 20px; }
.pend .pend-nome { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pend .pend-st { font-size: var(--o-t11); color: var(--o-ink-3); }
.pend.erro { border-color: rgba(var(--o-bad-rgb), .5); }
.pend.erro .pend-st { color: var(--o-bad); }
.pend .pend-x { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 12px; }
.pend .spin { width: 10px; height: 10px; border: 1.5px solid var(--o-brand); border-top-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; vertical-align: -1px; }
.chat.arrastando { outline: 2px dashed var(--o-brand); outline-offset: -6px; }
.drop-hint { display: none; position: absolute; inset: 60px 14px 80px; border-radius: var(--o-r3); background: rgba(11, 13, 18, .9); color: var(--o-link); font-family: var(--o-font); letter-spacing: 0; font-size: var(--o-t14); font-weight: 500; text-transform: none; place-items: center; text-align: center; padding: 20px; pointer-events: none; z-index: 5; }
.chat.arrastando .drop-hint { display: grid; }
.msg-anexos { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; justify-content: flex-end; }
.msg.bot .msg-anexos { justify-content: flex-start; margin: 4px 0 8px; }
.msg-anexos a.foto { display: block; border-radius: var(--o-r2); overflow: hidden; border: 1px solid var(--o-hair-2); }
.msg-anexos a.foto img { display: block; max-width: 220px; max-height: 220px; object-fit: cover; }
.msg.bot .msg-anexos a.foto img { max-width: 100%; max-height: 420px; object-fit: contain; background: #000; }
.msg.bot .msg-anexos a.foto { max-width: 100%; }
.arq { display: inline-flex; align-items: center; gap: var(--o-2); padding: 8px 12px; border: 1px solid var(--o-hair-2); border-radius: var(--o-r2); background: var(--o-s3); color: var(--o-ink); text-decoration: none; font-size: var(--o-t14); }
.arq:hover { border-color: var(--o-hair-3); }
.arq .arq-ico { font-size: 20px; }
.arq b { display: block; font-weight: 600; }
.arq small { color: var(--o-ink-3); }
.arq svg { color: var(--o-link); }
.progresso { font-size: var(--o-t13); color: var(--o-link); margin-bottom: 6px; display: flex; align-items: center; gap: var(--o-2); }
.progresso .spin { width: 10px; height: 10px; border: 1.5px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.bubble img.md-img { max-width: 100%; border-radius: var(--o-r2); margin: 6px 0; }
.claude-conta { margin-top: var(--o-2); padding: 8px 10px; border-radius: var(--o-r2); border: 1px solid var(--o-hair); background: var(--o-s2); font-size: var(--o-t13); line-height: 1.45; color: var(--o-ink-2); display: flex; flex-wrap: wrap; gap: var(--o-2); align-items: center; justify-content: space-between; }
.claude-conta.ok { border-color: rgba(var(--o-ok-rgb), .4); color: #c9ffe2; }
.claude-conta.bad { border-color: rgba(var(--o-warn-rgb), .45); color: #ffe2b8; }
@media (max-width: 1100px) { .comp-btn { width: 34px; } }

/* meta do dia no painel */
.meta-box { border: 1px solid var(--o-hair); border-radius: var(--o-r3); padding: 12px 14px; background: var(--o-s2); }
.meta-barra { height: 8px; border-radius: var(--o-pill); background: var(--o-s3); overflow: hidden; }
.meta-barra i { display: block; height: 100%; background: linear-gradient(90deg, var(--o-brand), var(--o-ok)); transition: width .8s var(--o-ease); }
.meta-txt { font-size: var(--o-t13); color: var(--o-ink-2); margin-top: 6px; }

/* ---------- Diagnóstico ---------- */
.ctab-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--o-bad); box-shadow: 0 0 6px rgba(var(--o-bad-rgb), .8); margin-left: 4px; vertical-align: middle; }
.ctab-dot.hidden { display: none; }
.diag-resumo { display: flex; align-items: center; gap: var(--o-2); flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--o-hair); border-radius: var(--o-r3); background: var(--o-s2); font-size: var(--o-t14); font-weight: 600; }
.diag-resumo.bad { border-color: rgba(var(--o-bad-rgb), .4); background: var(--o-bad-bg); }
.diag-resumo.warn { border-color: rgba(var(--o-warn-rgb), .35); background: var(--o-warn-bg); }
.diag-resumo .ghost-btn { margin-left: auto; font-size: var(--o-t13); height: 32px; padding: 0 10px; }
.diag-item { display: flex; gap: var(--o-2); align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--o-hair); }
.diag-item:first-of-type { border-top: 0; }
.diag-item .dot { margin-top: 6px; flex: none; }
.diag-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--o-t13); }
.diag-txt b { color: var(--o-ink); font-weight: 600; font-size: var(--o-t14); }
.diag-txt .d { color: var(--o-ink-2); overflow-wrap: anywhere; }
.diag-txt .r { color: var(--o-warn); }
.diag-item.erro .diag-txt .r { color: #ff8da0; }
.diag-item.off .diag-txt .r, .diag-item.ok .diag-txt .r { color: var(--o-ink-3); }
.diag-item .ghost-btn { flex: none; font-size: var(--o-t12); height: 30px; padding: 0 9px; align-self: center; }
.mini-btn.spin svg { animation: girar 1s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .diag-item { flex-wrap: wrap; } .diag-item .ghost-btn { margin-left: 18px; } }

/* ---------- Avisos e subtítulos do painel ---------- */
.alerta-box { border-color: rgba(var(--o-bad-rgb), .5) !important; background: var(--o-bad-bg) !important; }
.alerta-txt { color: #ff8da0; font-size: var(--o-t13); margin: 2px 0 8px; }
.ok-txt { color: var(--o-ok); font-size: var(--o-t12); }
.warn-txt { color: var(--o-warn); font-size: var(--o-t12); }
.p-sub { font-size: var(--o-t12); color: var(--o-ink-3); margin: 10px 0 4px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.prow small { color: var(--o-ink-3); }
.p-sec .row-btns { margin-top: 10px; display: flex; gap: var(--o-2); align-items: center; flex-wrap: wrap; }

/* ---------- Modo pensar ---------- */
#btnPensar.on { color: var(--o-warn); border-color: rgba(var(--o-warn-rgb), .5); background: var(--o-warn-bg); }

/* ---------- Player de música (Spotify via Windows) ---------- */
.music-card {
  position: absolute; left: 14px; bottom: 14px; z-index: 5;
  display: flex; align-items: center; gap: var(--o-3);
  width: 340px; max-width: calc(100% - 28px); padding: 10px 12px 10px 10px;
  background: var(--o-s2); border: 1px solid var(--o-hair); border-radius: var(--o-r3);
  transition: opacity var(--o-base), border-color var(--o-base);
}
.music-card:hover { border-color: var(--o-hair-2); }
.music-card.vazio { opacity: .6; }
.music-card.tocando { border-color: rgba(30, 215, 96, .35); }
.mc-capa { position: relative; flex: 0 0 56px; width: 56px; height: 56px; border-radius: var(--o-r1); overflow: hidden; background: var(--o-s3); display: grid; place-items: center; }
.mc-capa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.mc-capa.tem img { display: block; }
.mc-capa.tem .mc-sem-capa { display: none; }
.mc-sem-capa { width: 24px; height: 24px; color: var(--o-ink-3); }
.mc-info { flex: 1; min-width: 0; }
.mc-titulo { font-family: var(--o-font); font-weight: 600; font-size: var(--o-t14); color: var(--o-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-artista { font-family: var(--o-font); font-size: var(--o-t12); color: var(--o-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-barra { margin-top: 6px; height: 3px; border-radius: var(--o-pill); background: var(--o-s4); overflow: hidden; }
.mc-barra i { display: block; height: 100%; width: 0; background: #1ed760; transition: width 1s linear; }
.mc-botoes { display: flex; align-items: center; gap: 4px; }
.mc-botoes button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--o-ink-2); cursor: pointer; transition: color var(--o-fast), background var(--o-fast), transform var(--o-fast); }
.mc-botoes button:hover { color: var(--o-ink); background: var(--o-s4); }
.mc-botoes button:active { transform: scale(.92); }
.mc-botoes svg { width: 16px; height: 16px; }
.mc-botoes .mc-play { width: 36px; height: 36px; background: #1ed760; color: #04120a; }
.mc-botoes .mc-play:hover { background: #3be477; color: #04120a; }
.mc-botoes .mc-play svg { fill: currentColor; stroke: none; }
.mc-botoes #mcPrev svg, .mc-botoes #mcNext svg { fill: currentColor; }
@media (max-width: 1280px) { .music-card { width: 290px; } }

/* ---------- Aparência (temas): os temas antigos trocam --bg/--panel/--text; o 2.0 segue os tokens ---------- */
body { background: var(--bg); }
body:not(.tema-orion2) { background: radial-gradient(1200px 800px at 50% 40%, var(--bg-glow, #000) 0%, var(--bg) 60%) fixed, var(--bg); }
.msg.user .bubble { color: var(--text); }
body.sem-grade .bg-grid, body.sem-scan .bg-vignette { display: none; }
body.sem-brilho *, body.sem-brilho *::before, body.sem-brilho *::after { text-shadow: none !important; }
body.sem-brilho :is(.mic-btn, .send-btn, .primary-btn, .boot-btn, .brand-mark span) { box-shadow: none !important; }

.temas { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: var(--o-2); margin: 6px 0 14px; }
.tema { display: flex; flex-direction: column; gap: var(--o-2); align-items: flex-start; padding: 10px; border: 1px solid var(--o-hair); background: var(--t-bg); border-radius: var(--o-r2); cursor: pointer; color: var(--o-ink); text-align: left; transition: border-color var(--o-fast) var(--o-ease), transform var(--o-fast) var(--o-ease); }
.tema:hover { border-color: var(--t-cor); }
.tema:active { transform: scale(.98); }
.tema.on { border-color: var(--t-cor); box-shadow: 0 0 0 1px var(--t-cor); }
.tema b { font-size: var(--o-t13); font-weight: 600; }
.tema-amostra { display: flex; gap: 4px; width: 100%; }
.tema-amostra i { height: 8px; border-radius: 4px; flex: 1; background: var(--t-cor); }
.tema-amostra i:nth-child(2) { opacity: .55; }
.tema-amostra i:nth-child(3) { opacity: .25; }
input[type=color] { width: 100%; height: 38px; padding: 3px; border: 1px solid var(--o-hair-2); background: transparent; border-radius: var(--o-r2); cursor: pointer; }
label output { float: right; color: var(--o-brand); font-family: var(--o-mono); font-size: var(--o-t12); }

/* ---------- Player no canto superior esquerdo ---------- */
.topbar .brand { min-width: 0; flex: 0 0 auto; }
.topbar .music-card {
  position: static; flex: 0 1 300px; width: 300px; min-width: 210px; height: 46px; max-width: none;
  padding: 4px 6px 4px 4px; gap: 9px; border-radius: var(--o-r2); z-index: auto;
  background: var(--o-s2); box-shadow: none;
}
.topbar .mc-capa { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 5px; }
.topbar .mc-sem-capa { width: 18px; height: 18px; }
.topbar .mc-titulo { font-size: var(--o-t13); line-height: 1.2; }
.topbar .mc-artista { font-size: var(--o-t11); line-height: 1.2; }
.topbar .mc-barra { margin-top: 4px; height: 2px; }
.topbar .mc-botoes { gap: 2px; }
.topbar .mc-botoes button { width: 26px; height: 26px; }
.topbar .mc-botoes svg { width: 14px; height: 14px; }
.topbar .mc-botoes .mc-play { width: 30px; height: 30px; }
@media (max-width: 1700px) { .topbar .stat-ram { display: none; } }
@media (max-width: 1450px) { .topbar .hud-stats .stat:not(.core-stat):not(.stat-hoje) { display: none; } .topbar { gap: var(--o-4); } }
@media (max-width: 1250px) { .topbar .brand-sub { display: none; } .topbar .music-card { flex-basis: 230px; width: 230px; } }
@media (max-width: 980px) { .topbar .music-card { display: none; } }

/* Edição cliente: esconde o que é do negócio/PC do dono (loja, vendas, estoque, pastas, Claude Code) */
.ed-cliente .so-pessoal, .ed-cliente .so-pessoal-aba { display: none !important; }
