Files
jhonny-editor/code/cep-plugin/styles.css
T
João Henrique cad6bbf6e4 feat: corrigida a tela Editar vídeo para iniciar pela análise do S
- corrigida a tela Editar vídeo para iniciar pela análise do Scanner e exibir somente o fluxo pós-Scanner

Resumo:
- 4 arquivos alterados
- 0 novos
- 4 modificados
- 0 removidos

 4 files changed, 104 insertions(+), 6 deletions(-)

Arquivos:
  - .jhonny/analises.db
  - code/cep-plugin/index.html
  - code/cep-plugin/main.js
  - code/cep-plugin/styles.css
2026-09-09 19:26:55 -04:00

702 lines
36 KiB
CSS
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
:root {
--bg: #151516;
--surface: #1c1c1f;
--surface-raised: #222226;
--surface-deep: #111113;
--border: #35353a;
--border-strong: #494950;
--text: #f2f1f4;
--text-secondary: #adabb3;
--text-muted: #74727b;
--violet: #9b6cff;
--violet-hover: #ad87ff;
--violet-soft: rgba(155, 108, 255, 0.12);
--green: #70d987;
--green-soft: rgba(112, 217, 135, 0.1);
--red: #ff6565;
--red-soft: rgba(255, 101, 101, 0.09);
--amber: #e9b85d;
--amber-soft: rgba(233, 184, 93, 0.1);
--radius: 8px;
--font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
--font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { width: 100%; min-width: 280px; height: 100%; margin: 0; }
body {
overflow: hidden;
background: var(--bg);
color: var(--text);
font-family: var(--font-ui);
font-size: 11.5px;
line-height: 1.45;
-webkit-font-smoothing: antialiased;
user-select: none;
}
button, input, select, textarea { font: inherit; }
button { -webkit-appearance: none; }
h1, h2, h3 { margin: 0; }
.panel-shell {
display: flex;
flex-direction: column;
height: 100%;
padding: 0 14px 18px;
overflow-y: auto;
overflow-x: hidden;
}
.panel-shell::-webkit-scrollbar { width: 7px; }
.panel-shell::-webkit-scrollbar-thumb { border-radius: 4px; background: var(--border); }
.panel-shell::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }
/* ------------------------------ Cabeçalho ------------------------------ */
.panel-header {
position: sticky;
top: 0;
z-index: 30;
display: flex;
align-items: center;
gap: 10px;
margin: 0 -14px;
padding: 11px 14px;
border-bottom: 1px solid var(--border);
background: #19191b;
}
.brand-mark {
display: flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
flex: 0 0 auto;
border: 1px solid #aa83ff;
border-radius: 8px;
background: var(--violet-soft);
color: #cbb8ff;
font-size: 13px;
font-weight: 750;
letter-spacing: -0.04em;
}
.brand-copy { min-width: 0; flex: 1; }
.brand-copy h1 { overflow: hidden; font-size: 12px; line-height: 1.25; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.brand-copy p { margin: 2px 0 0; color: var(--text-muted); font-size: 9.5px; }
.header-status {
display: flex;
align-items: center;
gap: 6px;
flex: 0 0 auto;
padding: 4px 9px;
border: 1px solid var(--border);
border-radius: 20px;
background: var(--surface-deep);
color: var(--text-secondary);
font-size: 9.5px;
font-weight: 600;
white-space: nowrap;
}
.header-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
.header-status[data-state="connected"] { border-color: rgba(112, 217, 135, .35); color: var(--green); }
.header-status[data-state="connected"] .header-status-dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.header-status[data-state="waiting"] { border-color: rgba(233, 184, 93, .3); color: var(--amber); }
.header-status[data-state="waiting"] .header-status-dot { background: var(--amber); }
.header-status[data-state="error"] { border-color: rgba(255, 101, 101, .35); color: var(--red); }
.header-status[data-state="error"] .header-status-dot { background: var(--red); }
/* --------------------------------- Abas --------------------------------- */
.tab-bar {
position: sticky;
top: 53px;
z-index: 25;
display: flex;
flex: 0 0 auto;
min-height: 39px;
gap: 2px;
margin: 0 -14px 14px;
padding: 0 14px;
border-bottom: 1px solid var(--border);
background: var(--bg);
overflow-x: auto;
}
.tab-button {
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
flex: 0 0 auto;
min-width: 88px;
min-width: 0;
padding: 10px 4px;
border: none;
border-bottom: 2px solid transparent;
background: transparent;
color: var(--text-muted);
cursor: pointer;
font-size: 10.5px;
font-weight: 600;
white-space: nowrap;
transition: color .15s, border-color .15s;
}
.tab-bar::-webkit-scrollbar { height: 3px; }
.tab-bar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.tab-icon { font-size: 11px; opacity: .8; }
.tab-button:hover { color: var(--text-secondary); }
.tab-button.active { color: var(--text); border-bottom-color: var(--violet); }
.tab-button.active .tab-icon { color: var(--violet); opacity: 1; }
.tab-panel[hidden] { display: none; }
.tab-intro { margin: 0 0 12px; color: var(--text-muted); font-size: 10px; }
.scanner-track-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.scanner-track-list { min-height: 34px; max-height: 150px; overflow-y: auto; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-deep); padding: 5px; }
.scanner-track-list .checkbox-field { margin: 2px 0; padding: 5px; border: 0; background: none; }
.scanner-options-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.scanner-options-grid .card { margin: 0 0 10px; }
.scanner-mode-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.scanner-mode-option { display: flex; gap: 8px; align-items: flex-start; min-height: 54px; padding: 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-deep); cursor: pointer; }
.scanner-mode-option:has(input:checked) { border-color: var(--accent); background: rgba(124, 77, 255, .12); }
.scanner-mode-option input { margin-top: 2px; accent-color: var(--accent); }
.scanner-mode-option strong, .scanner-mode-option small { display: block; }
.scanner-mode-option strong { color: var(--text); font-size: 11px; }
.scanner-mode-option small { margin-top: 4px; color: var(--text-muted); font-size: 10px; line-height: 1.3; }
.scanner-track-discovery { margin-top: 10px; }
.scanner-media-card[hidden] { display: none; }
.scanner-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.scanner-media-card { margin: 0 0 10px; }
.scanner-media-card h3 { margin: 0; font-size: 12px; }
.scanner-subsection { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.scanner-subsection .card-head { margin-bottom: 7px; }
.scanner-execution-card { margin-top: 0; }
.scanner-option-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.scanner-option-row .checkbox-field { flex: 1; }
.button-mini { padding: 4px 8px; font-size: 10px; }
.editorial-plan-json { width: 100%; min-height: 150px; resize: vertical; box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; line-height: 1.45; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 9px; }
.editar-video-legado { display: none; }
.scanner-analysis-card { margin-bottom: 12px; }
/* --------------------- Painel de progresso (task dock) ------------------- */
.task-dock {
position: sticky;
top: 91px;
z-index: 20;
margin: 0 0 14px;
padding: 11px 12px;
border: 1px solid rgba(155, 108, 255, .4);
border-radius: var(--radius);
background: linear-gradient(180deg, #221c33 0%, var(--surface) 100%);
box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.task-dock[hidden] { display: none; }
.task-dock[data-result="ok"] { border-color: rgba(112, 217, 135, .45); background: linear-gradient(180deg, #182a1e 0%, var(--surface) 100%); }
.task-dock[data-result="err"] { border-color: rgba(255, 101, 101, .45); background: linear-gradient(180deg, #2b1a1c 0%, var(--surface) 100%); }
.task-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.task-title { flex: 1; min-width: 0; overflow: hidden; font-size: 11.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.task-elapsed { flex: 0 0 auto; color: var(--text-muted); font: 10px var(--font-mono); }
.task-copy { flex: 0 0 auto; padding: 2px 5px; border: 1px solid var(--border); border-radius: 4px; background: transparent; color: var(--text-secondary); cursor: pointer; font-size: 12px; line-height: 1; }
.task-copy:hover { border-color: var(--red); color: var(--text); }
.task-cancel { flex: 0 0 auto; padding: 3px 8px; border: 1px solid rgba(255, 101, 101, .55); border-radius: 5px; background: transparent; color: #ffb0b0; cursor: pointer; font-size: 10px; }
.task-cancel:hover { border-color: var(--red); background: rgba(255, 101, 101, .12); color: var(--text); }
.task-cancel:disabled { cursor: wait; opacity: .65; }
.task-spinner {
width: 12px;
height: 12px;
flex: 0 0 auto;
border: 2px solid rgba(155, 108, 255, .25);
border-top-color: var(--violet);
border-radius: 50%;
animation: spin .8s linear infinite;
}
.task-dock[data-result] .task-spinner { animation: none; border: none; }
.task-dock[data-result="ok"] .task-spinner::before { content: "✓"; color: var(--green); font-size: 12px; font-weight: 700; }
.task-dock[data-result="err"] .task-spinner::before { content: "!"; color: var(--red); font-size: 12px; font-weight: 700; }
.task-dock[data-result="cancelled"] .task-spinner::before { content: "×"; color: var(--text-muted); font-size: 14px; font-weight: 700; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-track {
position: relative;
height: 6px;
overflow: hidden;
border-radius: 3px;
background: var(--surface-deep);
}
.progress-fill {
height: 100%;
border-radius: 3px;
background: linear-gradient(90deg, var(--violet) 0%, var(--violet-hover) 100%);
transition: width .3s ease-out;
}
.progress-track[data-mode="indeterminate"] .progress-fill {
width: 38% !important;
animation: slide 1.3s ease-in-out infinite;
}
@keyframes slide { 0% { transform: translateX(-105%); } 100% { transform: translateX(300%); } }
.task-dock[data-result="ok"] .progress-fill { background: var(--green); }
.task-dock[data-result="err"] .progress-fill { background: var(--red); }
.task-foot { display: flex; align-items: baseline; gap: 8px; margin-top: 7px; }
.task-stage { flex: 1; min-width: 0; overflow: hidden; color: var(--text-secondary); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.task-pct { flex: 0 0 auto; color: var(--text); font: 600 10px var(--font-mono); }
.task-error-details { max-height: 180px; margin: 10px 0 0; padding: 8px; overflow: auto; border: 1px solid rgba(255, 101, 101, .25); border-radius: 5px; background: rgba(0, 0, 0, .2); color: #ffb0b0; font: 9px/1.45 var(--font-mono); white-space: pre-wrap; user-select: text; }
/* -------------------------------- Toast -------------------------------- */
.toast {
display: flex;
align-items: center;
gap: 8px;
margin: 0 0 12px;
padding: 9px 11px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
font-size: 10.5px;
}
.toast[hidden] { display: none; }
.toast[data-kind="ok"] { border-color: rgba(112, 217, 135, .4); background: var(--green-soft); color: var(--green); }
.toast[data-kind="err"] { border-color: rgba(255, 101, 101, .4); background: var(--red-soft); color: #ff9b9b; }
.toast-icon { flex: 0 0 auto; font-weight: 700; }
.toast-text { flex: 1; min-width: 0; }
.toast-close { flex: 0 0 auto; border: 0; background: none; color: inherit; cursor: pointer; opacity: .6; font-size: 10px; }
.toast-close:hover { opacity: 1; }
/* -------------------------------- Passos -------------------------------- */
.step {
margin: 0 0 10px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
transition: border-color .2s, opacity .2s;
}
.step[data-state="locked"] { opacity: .5; background: transparent; }
.step[data-state="locked"] .step-body { display: none; }
.step[data-state="ready"] { border-color: var(--border-strong); }
.step[data-state="running"] { border-color: rgba(155, 108, 255, .5); }
.step[data-state="done"] { border-color: rgba(112, 217, 135, .3); }
.step[data-state="error"] { border-color: rgba(255, 101, 101, .45); }
.step-head { display: flex; align-items: flex-start; gap: 10px; padding: 12px; }
.step[data-state="locked"] .step-head { padding: 10px 12px; }
.step-number {
display: flex;
align-items: center;
justify-content: center;
width: 21px;
height: 21px;
flex: 0 0 auto;
margin-top: 1px;
border: 1px solid var(--border-strong);
border-radius: 50%;
color: var(--text-muted);
font-size: 10px;
font-weight: 700;
}
.step[data-state="ready"] .step-number,
.step[data-state="running"] .step-number { border-color: var(--violet); background: var(--violet-soft); color: var(--violet-hover); }
.step[data-state="done"] .step-number { border-color: transparent; background: var(--green); color: #10240f; font-size: 0; }
.step[data-state="done"] .step-number::before { content: "✓"; font-size: 11px; font-weight: 800; }
.step[data-state="error"] .step-number { border-color: var(--red); color: var(--red); }
.step-title { flex: 1; min-width: 0; }
.step-title h2 { font-size: 11.5px; font-weight: 650; }
.step-title p { margin: 3px 0 0; color: var(--text-muted); font-size: 9.5px; }
.step[data-state="locked"] .step-title p { display: none; }
.badge-optional {
margin-left: 5px;
padding: 1px 5px;
border-radius: 4px;
background: rgba(127, 127, 127, .16);
color: var(--text-muted);
font-size: 8px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: .06em;
vertical-align: middle;
}
.step-chip {
flex: 0 0 auto;
padding: 3px 8px;
border-radius: 20px;
background: rgba(127, 127, 127, .14);
color: var(--text-muted);
font-size: 8.8px;
font-weight: 650;
white-space: nowrap;
}
.step[data-state="ready"] .step-chip { background: var(--violet-soft); color: var(--violet-hover); }
.step[data-state="running"] .step-chip { background: var(--violet-soft); color: var(--violet-hover); }
.step[data-state="done"] .step-chip { background: var(--green-soft); color: var(--green); }
.step[data-state="error"] .step-chip { background: var(--red-soft); color: #ff9b9b; }
.step-body { padding: 0 12px 13px; }
.step-body > * + * { margin-top: 10px; }
.step-body .button { width: 100%; }
/* Passo concluído: o botão deixa de puxar o olho para o passo seguinte. */
.step[data-state="done"] .button-primary:not(:disabled) { background: transparent; border-color: var(--border-strong); color: var(--text-secondary); }
.step[data-state="done"] .button-primary:not(:disabled):hover { background: var(--surface-raised); color: var(--text); }
/* --------------------------- Campos e cartões --------------------------- */
.card {
margin: 0 0 12px;
padding: 13px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
}
.card > * + * { margin-top: 10px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.legenda-row { display: grid; grid-template-columns: 1fr minmax(0, 5fr) auto; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.legenda-timecode { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.card-head h2 { font-size: 11.5px; font-weight: 650; }
.card-kicker { margin-left: 6px; color: var(--text-muted); font-size: 8.2px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.section-label { display: block; margin-bottom: 4px; color: var(--text-muted); font-size: 8.4px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.field-label { display: block; margin-bottom: 5px; color: var(--text-secondary); font-size: 9.5px; font-weight: 600; }
.field-help { margin: 6px 0 0; color: var(--text-muted); font-size: 9.5px; line-height: 1.5; }
.field-help:empty { display: none; }
.field-help strong { color: var(--text-secondary); font-weight: 600; }
.field-static { margin: 0; padding: 8px 0; color: var(--text-secondary); font-size: 10.5px; }
.field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 10px; }
.select-field, .text-field, .path-field input, textarea, .file-field input {
width: 100%;
border: 1px solid var(--border);
border-radius: 6px;
outline: none;
background: var(--surface-deep);
color: var(--text);
transition: border-color .15s, box-shadow .15s;
}
.select-field { height: 32px; padding: 0 8px; font-size: 10.5px; }
.text-field { height: 32px; padding: 0 9px; font-size: 10.5px; outline: none; user-select: text; }
.range-field-row { display: flex; align-items: center; gap: 10px; }
.range-field-row input[type="range"] { flex: 1 1 auto; accent-color: var(--violet); height: 20px; }
.range-field-value { flex: 0 0 auto; min-width: 84px; text-align: right; font: 10.5px var(--font-mono); color: var(--text-secondary); }
.path-field input, .file-field input { height: 34px; padding: 0 10px; font: 10px var(--font-mono); color: var(--text-secondary); user-select: text; }
.path-field > svg + input { padding-left: 32px; }
textarea { padding: 8px 10px; font: 10px var(--font-mono); color: var(--text-secondary); resize: vertical; user-select: text; }
.select-field:hover, .text-field:hover, .path-field input:hover, textarea:hover, .file-field input:hover { border-color: var(--border-strong); }
.select-field:focus, .text-field:focus, .path-field input:focus, textarea:focus, .file-field input:focus { border-color: var(--violet); color: var(--text); box-shadow: 0 0 0 2px var(--violet-soft); }
.path-field { position: relative; display: flex; align-items: center; }
.path-field > svg { position: absolute; left: 10px; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; color: var(--text-muted); pointer-events: none; }
.path-field-toggle { position: absolute; right: 6px; padding: 4px; border: none; background: none; color: var(--text-muted); cursor: pointer; font-size: 12px; line-height: 1; }
.path-field-toggle:hover { color: var(--text); }
#hfToken { padding-right: 32px; }
.file-field { display: flex; gap: 6px; }
.file-field input { flex: 1; min-width: 0; }
.file-field .button { width: auto; flex: 0 0 auto; padding: 0 12px; }
.checkbox-field {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 10px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--surface-deep);
color: var(--text-secondary);
cursor: pointer;
font-size: 10px;
}
.checkbox-field:hover { border-color: var(--border-strong); }
.checkbox-field input { margin: 0; flex: 0 0 auto; accent-color: var(--violet); }
.inline-form { padding-top: 10px; border-top: 1px solid var(--border); }
.inline-form > * + * { margin-top: 8px; }
.button-row { display: flex; gap: 8px; }
.button-row .button { flex: 1; }
/* -------------------------- Catálogo editorial ------------------------- */
.video-type-list { display: grid; gap: 6px; }
.video-type-row { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-deep); }
.video-type-row.is-selected { border-color: rgba(155, 108, 255, .55); background: var(--violet-soft); }
.video-type-copy { flex: 1; min-width: 0; }
.video-type-copy { cursor: pointer; }
.video-type-copy strong, .video-type-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-type-copy strong { color: var(--text); font-size: 10.5px; font-weight: 650; }
.video-type-copy span { margin-top: 3px; color: var(--text-muted); font-size: 9px; }
.video-type-meta { max-width: 32%; overflow: hidden; color: var(--text-muted); font: 8.5px var(--font-mono); text-overflow: ellipsis; white-space: nowrap; }
.video-type-status { flex: 0 0 auto; padding: 3px 7px; border-radius: 12px; font-size: 8.5px; font-weight: 650; }
.video-type-status[data-state="active"] { background: var(--green-soft); color: var(--green); }
.video-type-status[data-state="inactive"] { background: var(--surface-raised); color: var(--text-muted); }
.video-type-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.video-type-row .button { height: 27px; padding: 0 8px; flex: 0 0 auto; font-size: 9px; }
.profile-section { margin-top: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-deep); }
.profile-section-head { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.profile-section-head > span { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; background: var(--violet-soft); color: var(--violet-hover); font-size: 10px; font-weight: 700; }
.profile-section-head strong, .profile-section-head small { display: block; }
.profile-section-head strong { font-size: 10.5px; font-weight: 650; }
.profile-section-head small { margin-top: 2px; color: var(--text-muted); font-size: 9px; }
.profile-section > * + * { margin-top: 9px; }
.profile-section .checkbox-field { margin-top: 9px; }
.profile-section output { float: right; color: var(--text-muted); font: 9px var(--font-mono); }
.profile-section input[type="range"] { width: 100%; accent-color: var(--violet); }
.priority-list { display: grid; gap: 6px; }
.priority-row { display: flex; align-items: center; gap: 7px; }
.priority-number { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; background: var(--surface-raised); color: var(--text-muted); font: 9px var(--font-mono); }
.priority-input { flex: 1; }
/* ---------------------------- Chave/valor, stats ---------------------------- */
.kv { display: grid; gap: 1px; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 6px; background: var(--border); }
.kv[hidden] { display: none; }
.kv > div { display: flex; align-items: baseline; gap: 10px; padding: 7px 10px; background: var(--surface-deep); }
.kv dt { flex: 0 0 62px; color: var(--text-muted); font-size: 9px; }
.kv dd { flex: 1; min-width: 0; overflow: hidden; margin: 0; color: var(--text); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.kv .kv-path { color: var(--text-muted); font: 9px var(--font-mono); }
.sequence-picker { margin-top: 10px; }
.sequence-picker[hidden] { display: none; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.stat-row[hidden] { display: none; }
.stat { padding: 9px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-deep); text-align: center; }
.stat strong { display: block; overflow: hidden; font: 650 14px/1.1 var(--font-mono); text-overflow: ellipsis; }
.stat span { display: block; margin-top: 4px; color: var(--text-muted); font-size: 8.5px; }
.mini-action { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-deep); }
.mini-action > div { flex: 1; min-width: 0; }
.mini-action strong { display: block; font-size: 10.5px; font-weight: 600; }
.mini-action span { display: block; margin-top: 3px; color: var(--text-muted); font-size: 9.2px; line-height: 1.4; }
.mini-action .button { width: auto; flex: 0 0 auto; padding: 0 12px; height: 28px; }
.speaker-config { margin: 8px 0; padding: 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-deep); }
.speaker-config-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10.5px; }
.speaker-config-head span { color: var(--text-muted); font-size: 9.2px; }
.speaker-config .field-help { margin: 6px 0 8px; }
.speaker-row { display: grid; grid-template-columns: 92px auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--border); }
.speaker-row .field-label { margin: 0; }
.speaker-play-button { min-width: 28px; padding: 4px 7px; }
.speaker-play-button.is-playing { color: var(--accent); }
.speaker-name-input { width: 100%; }
.speaker-active-field { margin: 0; padding: 6px 8px; white-space: nowrap; }
/* ------------------------------- Callouts ------------------------------- */
.callout { padding: 10px 11px; border: 1px solid var(--border); border-left-width: 3px; border-radius: 6px; background: var(--surface-deep); }
.callout[hidden] { display: none; }
.callout > * + * { margin-top: 8px; }
.callout strong { display: block; font-size: 10.5px; font-weight: 650; }
.callout p { margin: 4px 0 0; color: var(--text-muted); font-size: 9.5px; line-height: 1.5; }
.callout .button { width: 100%; }
.callout-info { border-left-color: var(--violet); }
.callout-info strong { color: var(--violet-hover); }
.callout-warn { border-left-color: var(--amber); background: var(--amber-soft); }
.callout-warn strong { color: var(--amber); }
/* -------------------------------- Botões -------------------------------- */
.button {
display: flex;
align-items: center;
justify-content: center;
gap: 7px;
min-width: 0;
height: 34px;
padding: 0 12px;
border: 1px solid var(--border-strong);
border-radius: 6px;
background: var(--surface-raised);
color: var(--text);
cursor: pointer;
font-size: 10.5px;
font-weight: 600;
transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.button:hover { border-color: #5c5c65; background: #2a2a30; }
.button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.button svg .fill-icon { fill: currentColor; stroke: none; }
.button-primary { border-color: transparent; background: var(--violet); color: #150f22; }
.button-primary:hover { background: var(--violet-hover); }
.button-ghost { border-color: var(--border); background: transparent; color: var(--text-secondary); }
.button-ghost:hover { border-color: var(--border-strong); background: var(--surface-raised); color: var(--text); }
.button-danger { border-color: #6b3c3f; background: transparent; color: #ff8b8b; }
.button-danger:hover { border-color: var(--red); background: var(--red-soft); }
.button:disabled, .button[disabled] { border-color: var(--border); background: var(--surface); color: #5f5e65; cursor: default; opacity: .8; }
.button:disabled:hover { border-color: var(--border); background: var(--surface); }
.button.is-busy { position: relative; color: transparent !important; }
.button.is-busy::after {
content: "";
position: absolute;
width: 13px; height: 13px;
border: 2px solid rgba(255, 255, 255, .25);
border-top-color: currentColor;
border-radius: 50%;
animation: spin .8s linear infinite;
color: var(--text);
}
.button-primary.is-busy::after { color: #150f22; border-color: rgba(21, 15, 34, .3); border-top-color: #150f22; }
.link-button { padding: 3px 0 3px 8px; border: 0; background: none; color: var(--violet); cursor: pointer; font-size: 9.8px; font-weight: 600; }
.link-button:hover { color: var(--violet-hover); }
.action-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, .6fr); gap: 8px; margin-bottom: 12px; }
/* ------------------------- Conexão: status/checks ------------------------- */
.status-panel {
display: grid;
grid-template-columns: 42px minmax(0, 1fr) auto;
align-items: center;
gap: 4px;
margin-bottom: 12px;
padding: 13px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
}
.status-indicator { display: flex; align-items: center; }
.status-ring { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface-deep); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-muted); transition: background .2s, box-shadow .2s; }
.status-dot.connected { background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); animation: breathe 2.4s ease-in-out infinite; }
.status-dot.error { background: var(--red); box-shadow: 0 0 0 5px var(--red-soft); }
.status-dot.waiting { background: var(--amber); box-shadow: 0 0 0 5px var(--amber-soft); }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 4px var(--green-soft); } 50% { box-shadow: 0 0 0 7px rgba(112, 217, 135, .04); } }
.status-copy { min-width: 0; }
.status-copy strong { display: block; overflow: hidden; font-size: 12px; font-weight: 650; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.status-copy #statusDetail { display: block; overflow: hidden; margin-top: 3px; color: var(--text-secondary); font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.command-stat { padding-left: 12px; text-align: right; }
.command-stat strong { display: block; font: 650 19px/1 var(--font-mono); }
.command-stat span { display: block; margin-top: 5px; color: var(--text-muted); font-size: 8.4px; }
.connection-checks { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.connection-checks li { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-deep); }
.connection-checks li > span:last-child { min-width: 0; }
.connection-checks strong, .connection-checks small { display: block; }
.connection-checks strong { color: var(--text-secondary); font-size: 10px; font-weight: 600; }
.connection-checks small { margin-top: 2px; color: var(--text-muted); font-size: 9.2px; }
.check-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--text-muted); }
.connection-checks li[data-state="ready"] .check-dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.connection-checks li[data-state="needs-attention"] .check-dot { background: var(--amber); }
.update-body { display: flex; align-items: center; gap: 10px; }
.update-copy { flex: 1; min-width: 0; }
.update-copy strong { display: block; font-size: 10.5px; font-weight: 600; }
.update-copy > span { display: block; margin-top: 3px; color: var(--text-muted); font-size: 9.2px; line-height: 1.45; }
.update-card .button { flex: 0 0 auto; height: 30px; white-space: nowrap; }
.hf-token-status { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 9.2px; white-space: nowrap; }
.hf-token-status[data-state="valid"] .check-dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.hf-token-status[data-state="invalid"] .check-dot { background: var(--red); }
.hf-token-status[data-state="checking"] .check-dot { background: var(--amber); }
/* -------------------------------- Modelos -------------------------------- */
.model-list { display: flex; flex-direction: column; gap: 8px; }
.model-row { padding: 10px 11px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-deep); }
.model-row-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.model-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.model-name { font-size: 11px; font-weight: 650; }
.model-meta { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.model-badge { max-width: 100%; overflow: hidden; padding: 2px 6px; border-radius: 4px; background: rgba(127, 127, 127, .14); color: var(--text-muted); font-size: 8.4px; text-overflow: ellipsis; white-space: nowrap; }
.model-badge-star { background: rgba(233, 184, 93, .16); color: var(--amber); }
.model-badge-ready { background: var(--green-soft); color: var(--green); }
.model-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.model-actions .button { height: 28px; padding: 0 11px; font-size: 10px; }
.model-btn-active { opacity: .75; cursor: default; }
.model-progress { margin-top: 9px; }
.model-progress[hidden] { display: none; }
.model-progress .progress-track { height: 5px; }
.model-progress-label { display: block; margin-top: 5px; color: var(--text-muted); font-size: 9px; }
.personality-row { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-deep); }
.personality-row .model-main { flex: 1; min-width: 0; }
.personality-row .model-actions { flex-wrap: wrap; justify-content: flex-end; }
.personality-row[data-active="true"] { border-color: rgba(155, 108, 255, .5); background: var(--violet-soft); }
/* ------------------------- Avançado / log recolhido ------------------------- */
.advanced, .log-details {
margin: 0 0 12px;
border: 1px solid var(--border);
border-radius: var(--radius);
background: var(--surface);
}
.advanced > summary, .log-details > summary {
padding: 10px 12px;
color: var(--text-secondary);
cursor: pointer;
font-size: 10px;
font-weight: 600;
list-style: none;
}
.advanced > summary::-webkit-details-marker, .log-details > summary::-webkit-details-marker { display: none; }
.advanced > summary::before, .log-details > summary::before {
content: "";
display: inline-block;
width: 0;
height: 0;
margin-right: 8px;
border-top: 4px solid transparent;
border-bottom: 4px solid transparent;
border-left: 5px solid var(--text-muted);
vertical-align: 1px;
transition: transform .15s;
}
.advanced[open] > summary::before, .log-details[open] > summary::before { transform: rotate(90deg); }
.advanced > summary:hover, .log-details > summary:hover { color: var(--text); }
.log-hint { color: var(--text-muted); font-weight: 400; }
.advanced-body { padding: 0 12px 12px; }
.advanced-body > * + * { margin-top: 9px; }
#log, #silenceLog, #modelsLog {
height: 180px;
margin: 0 12px 12px;
overflow-y: auto;
padding: 9px 10px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--surface-deep);
font: 9.6px/1.6 var(--font-mono);
user-select: text;
}
#log:empty::before, #silenceLog:empty::before, #modelsLog:empty::before { content: "Nada por aqui ainda."; color: var(--text-muted); }
#log::-webkit-scrollbar, #silenceLog::-webkit-scrollbar, #modelsLog::-webkit-scrollbar { width: 5px; }
#log::-webkit-scrollbar-thumb, #silenceLog::-webkit-scrollbar-thumb, #modelsLog::-webkit-scrollbar-thumb { border-radius: 3px; background: var(--border-strong); }
.log-entry { color: var(--text-muted); animation: log-in .18s ease-out; }
.log-entry.cmd { color: #b89cff; }
.log-entry.ok { color: var(--green); }
.log-entry.err { color: #ff8585; }
@keyframes log-in { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, #log:focus-visible, #silenceLog:focus-visible, #modelsLog:focus-visible { outline: 2px solid var(--violet-hover); outline-offset: 2px; }
@media (max-width: 340px) {
.panel-shell { padding-right: 10px; padding-left: 10px; }
.panel-header, .tab-bar { margin-right: -10px; margin-left: -10px; }
.tab-bar { padding: 0 10px; }
.tab-button { font-size: 0; gap: 0; padding: 10px 2px; }
.tab-icon { font-size: 14px; }
.field-grid { grid-template-columns: minmax(0, 1fr); }
.scanner-track-grid, .scanner-options-grid, .scanner-media-grid, .scanner-mode-options { grid-template-columns: minmax(0, 1fr); }
.status-panel { grid-template-columns: 38px minmax(0, 1fr); }
.command-stat { grid-column: 2; padding: 8px 0 0; text-align: left; }
.command-stat strong, .command-stat span { display: inline; }
.mini-action { flex-wrap: wrap; }
.mini-action .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (forced-colors: active) {
.status-dot, .check-dot, .header-status-dot { forced-color-adjust: none; border: 1px solid CanvasText; }
.button, .path-field input, .select-field, #log, #silenceLog, #modelsLog, .status-panel, .step, .card { border-color: CanvasText; }
.progress-fill { background: Highlight; }
}
/* ---- Aba Análises ------------------------------------------------------- */
.analise-cena { border-top: 1px solid var(--border); padding: 8px 0; }
.analise-cena:first-child { border-top: 0; }
.analise-cena-cab { display: flex; justify-content: space-between; gap: 8px; color: var(--text); font-size: 11px; }
.analise-cena-cab span { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.analise-fala { margin: 4px 0 0; font-size: 11px; color: var(--text); line-height: 1.35; }
.analise-fala strong { display: inline-block; min-width: 34px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.analise-fala.analise-vazia { color: var(--text-muted); font-style: italic; }
.analise-evidencias { margin: 6px 0 0; font-size: 10px; color: var(--text-muted); }