:root { --code:#0a0a0e; --bg:#0e0e12; --side:#121217; --panel:#17171d; --line:#26262e; --fg:#e6e6ea; --mute:#8b8b97; --accent:#8119bd; --accent2:#ba81db; --ok:#4caf50; --err:#ef5350; --warn:#ffa726; } * { box-sizing: border-box; } html, body { height: 100%; margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.55 -apple-system, "SF Pro Text", system-ui, sans-serif; } #app { display: flex; height: 100%; } button, select, input, textarea { font: inherit; color: inherit; } button { background: none; border: 0; cursor: pointer; } kbd { margin-left: auto; font: 11px ui-monospace, monospace; color: var(--mute); } #sidebar { width: 280px; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 0 10px 10px; overflow: hidden; } .drag { height: 46px; -webkit-app-region: drag; flex: none; } .tabs { padding: 6px 4px 10px; font-size: 11px; letter-spacing: .08em; color: var(--mute); } .tab.on { color: var(--fg); border-bottom: 2px solid var(--accent2); padding-bottom: 4px; } .nav { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; width: 100%; text-align: left; color: var(--fg); } .nav:hover { background: var(--panel); } .ico { width: 18px; text-align: center; color: var(--mute); } #search { margin: 8px 0; padding: 7px 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); outline: none; } #search:focus { border-color: var(--accent); } .section { display: flex; justify-content: space-between; align-items: center; padding: 10px 6px 4px; font-size: 11px; letter-spacing: .08em; color: var(--mute); } .section button { color: var(--mute); font-size: 15px; } #projects { overflow-y: auto; flex: 1; } .proj { margin-bottom: 6px; } .proj-h { display: flex; gap: 8px; align-items: center; padding: 6px 8px; font-weight: 600; cursor: default; } .proj-h .add { margin-left: auto; opacity: 0; color: var(--mute); } .proj-h:hover .add, .proj-h:hover .edit { opacity: 1; } .proj-h .edit { margin-left: auto; opacity: 0; color: var(--mute); } .proj-h .edit + .add { margin-left: 0; } .proj-h .pi { color: var(--pc, inherit); } .proj { border-left: 2px solid var(--pc, transparent); } .style-pop { position: fixed; z-index: 50; width: 220px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px; box-shadow: 0 8px 24px #0008; display: flex; flex-direction: column; gap: 6px; } .sp-t { font-size: 11px; letter-spacing: .08em; color: var(--mute); } .sp-grid { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; } .sp-i { width: 30px; height: 30px; border-radius: 6px; font-size: 15px; } .sp-i:hover, .sp-i.on { background: var(--line); } .sp-c { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; } .sp-c.on { border-color: var(--fg); } .style-pop input[type=color] { width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; } .sess { display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 22px; border-radius: 8px; cursor: pointer; color: var(--mute); } .sess:hover { background: var(--panel); } .sess.on { background: var(--panel); color: var(--fg); } .sess .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; } .sess .d { font-size: 11px; } .sess .del { opacity: 0; color: var(--mute); } .sess:hover .del { opacity: 1; } .st { width: 14px; height: 14px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 10px; font-weight: 700; line-height: 1; box-sizing: border-box; } .st.idle { width: 8px; height: 8px; margin: 3px; border: 1.5px solid var(--mute); opacity: .6; } .st.busy { border: 2px solid #ba81db44; border-top-color: var(--accent2); animation: spin .8s linear infinite; } .st.approval { background: var(--warn); color: #1a1205; animation: pulse 1.2s infinite; } .st.approval::before { content: "!"; } .st.unread { background: var(--ok); color: #06180a; } .st.unread::before { content: "✓"; } .st.error { background: var(--err); color: #fff; } .st.error::before { content: "×"; } .sess.unread .t { color: var(--fg); font-weight: 600; } @keyframes pulse { 50% { opacity: .45; } } @keyframes spin { to { transform: rotate(360deg); } } main { flex: 1; display: flex; flex-direction: column; min-width: 0; } #topbar { height: 46px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); -webkit-app-region: drag; font-weight: 600; } #meta { color: var(--mute); font-weight: 400; font-size: 12px; } #chat { flex: 1; overflow-y: auto; } #messages { max-width: none; margin: 0; padding: 22px 48px 40px; } .empty { text-align: center; color: var(--mute); margin-top: 18vh; } .empty h1 { color: var(--accent2); font-size: 28px; margin: 0 0 6px; } .user { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 18px 0 10px; white-space: pre-wrap; } .text { margin: 10px 0; } .text p { margin: 8px 0; } .text code { background: var(--panel); padding: 1px 5px; border-radius: 4px; font: 12.5px ui-monospace, monospace; color: #ff9a7a; } .text pre.code { background: var(--code); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow-x: auto; } .text pre.code code { background: none; color: var(--fg); padding: 0; } .text table { border-collapse: collapse; width: 100%; margin: 10px 0; border: 1px solid var(--line); } .text th, .text td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); } .text th { color: var(--mute); font-weight: 500; } .text a { color: var(--accent2); } .text strong, .doc strong { color: var(--accent2); font-weight: 700; } details.fold { margin: 4px 0; color: var(--mute); font-size: 13px; } details.fold > summary { cursor: pointer; list-style: none; padding: 2px 0; } details.fold > summary::before { content: "› "; } details[open].fold > summary::before { content: "⌄ "; } .fold .body { padding: 4px 0 6px 14px; border-left: 2px solid var(--line); margin-left: 3px; } .fold .tool { font: 12px ui-monospace, monospace; padding: 2px 0; } .fold .tool.err { color: var(--err); } .fold .out { white-space: pre-wrap; max-height: 160px; overflow: auto; font: 11.5px ui-monospace, monospace; color: var(--mute); margin: 2px 0 6px; } .text pre.code { position: relative; } .copy { position: absolute; top: 6px; right: 8px; font-size: 11px; color: var(--mute); opacity: 0; background: var(--panel); border-radius: 5px; padding: 1px 7px; } pre.code:hover .copy { opacity: 1; } .diff { font: 12px/1.45 ui-monospace, monospace; border: 1px solid var(--line); border-radius: 6px; overflow: auto; max-height: 280px; margin: 4px 0; } .dl { white-space: pre-wrap; padding: 0 8px; } .dl.add { background: #4caf5022; color: #9be39f; } .dl.del { background: #ef535022; color: #f2a1a0; } details.toolcard > summary { font: 12px ui-monospace, monospace; } details.toolcard.err > summary { color: var(--err); } #modal-text .dl { padding: 0 4px; } #todos { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; font-size: 12.5px; max-height: 160px; overflow: auto; } #todos[hidden] { display: none; } .todos-h { color: var(--mute); font-size: 11px; letter-spacing: .06em; margin-bottom: 4px; } .todos-bar { height: 3px; background: var(--line); border-radius: 2px; margin-bottom: 6px; } .todos-bar i { display: block; height: 100%; background: var(--accent2); border-radius: 2px; } .todo.completed { color: var(--mute); text-decoration: line-through; } .todo.in_progress { color: var(--fg); font-weight: 600; } .todo.pending { color: var(--mute); } .sub { color: var(--mute); font-size: 12px; padding: 2px 0; } #pop { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; max-height: 240px; overflow: auto; font-size: 13px; } #pop[hidden] { display: none; } #pop .opt { display: flex; gap: 10px; padding: 6px 12px; cursor: pointer; } #pop .opt.on { background: var(--bg); } #pop .opt .n { color: var(--accent2); font-family: ui-monospace, monospace; white-space: nowrap; } #pop .opt .d { color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #composer.drop { border-color: var(--accent2); border-style: dashed; } .chip { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); font-size: 11px; } .chip.fb { color: var(--warn); border-color: var(--warn); } #panel-btns { margin-left: auto; display: flex; gap: 2px; -webkit-app-region: no-drag; } #panel-btns button { color: var(--mute); padding: 4px 10px; border-radius: 7px; font-weight: 400; font-size: 13px; } #panel-btns button:hover, #panel-btns button.on { background: var(--panel); color: var(--fg); } #panel { position: absolute; top: 46px; left: 0; right: 0; bottom: 0; background: var(--bg); z-index: 5; display: flex; flex-direction: column; } #panel[hidden] { display: none; } main { position: relative; } #panel-head { display: flex; gap: 12px; align-items: center; padding: 10px 18px; border-bottom: 1px solid var(--line); } #panel-tabs { font-weight: 600; } #panel-q { margin-left: auto; width: 260px; padding: 6px 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); outline: none; } #panel-x { color: var(--mute); } #panel-body { flex: 1; overflow: auto; padding: 14px 48px; width: 100%; } .card2 { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; } .card2 .h { display: flex; gap: 10px; align-items: center; } .card2 .h b { font-family: ui-monospace, monospace; font-size: 13px; } .card2 .sub2 { color: var(--mute); font-size: 12.5px; margin-top: 3px; } .card2 pre { white-space: pre-wrap; background: var(--code); border-radius: 8px; padding: 10px; max-height: 280px; overflow: auto; font: 12px ui-monospace, monospace; margin: 8px 0 0; } .tag { font-size: 10.5px; padding: 0 7px; border-radius: 8px; border: 1px solid var(--line); color: var(--mute); } .tag.pend { color: var(--warn); border-color: var(--warn); } .btn2 { margin-left: auto; padding: 3px 10px; border-radius: 7px; border: 1px solid var(--line); font-size: 12px; color: var(--mute); } .btn2:hover { color: var(--fg); border-color: var(--accent); } .btn2 + .btn2 { margin-left: 4px; } .sym { cursor: pointer; } .sym:hover { border-color: var(--accent); } .sec2 { color: var(--mute); font-size: 11px; letter-spacing: .08em; margin: 14px 0 6px; } .pmsg { color: var(--mute); padding: 20px 0; text-align: center; } .note { font-size: 12.5px; margin: 6px 0; color: var(--mute); } .note.warn { color: var(--warn); } .note.error { color: var(--err); } .spin::after { content: "…"; animation: pulse 1s infinite; } footer { flex: none; padding: 0 48px 12px; width: 100%; } #composer { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; } #composer:focus-within { border-color: var(--accent); } #input { width: 100%; background: none; border: 0; outline: none; resize: none; max-height: 220px; } #controls { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 6px; } select { background: none; border: 0; color: var(--mute); padding: 3px 4px; border-radius: 6px; cursor: pointer; outline: none; } select:hover { background: var(--bg); color: var(--fg); } #send { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 16px; } #send:disabled { opacity: .4; cursor: default; } #send.stop { background: var(--err); } #status { display: flex; gap: 16px; padding: 6px 4px 0; font-size: 11.5px; color: var(--mute); } #status { align-items: center; } #st-usage { margin-left: auto; display: flex; gap: 8px; align-items: center; } #st-dir { max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ctx { width: 60px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; } .ctx i { display: block; height: 100%; background: var(--accent2); } .ctx.hot i { background: var(--warn); } .cost, .tok { padding: 0 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); } .ok { color: var(--ok); } .bad { color: var(--warn); } #modal { position: fixed; inset: 0; background: #0009; display: flex; align-items: center; justify-content: center; } #modal[hidden] { display: none; } .card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; width: min(560px, 90vw); } .card h3 { margin: 0 0 10px; } .card pre { white-space: pre-wrap; background: var(--code); border-radius: 8px; padding: 10px; max-height: 40vh; overflow: auto; font: 12.5px ui-monospace, monospace; } .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; } .row button { padding: 7px 16px; border-radius: 8px; border: 1px solid var(--line); } .row .primary { background: var(--accent); border-color: var(--accent); color: #fff; } /* tema claro: troca só as variáveis */ :root[data-theme="light"] { --code:#f1f1f5; --bg:#ffffff; --side:#f5f5f8; --panel:#ececf1; --line:#d9d9e1; --fg:#1b1b20; --mute:#6b6b78; --accent:#7a1fb5; --accent2:#7a1fb5; } :root[data-theme="light"] .text code { color: #b3541e; } :root[data-theme="light"] .dl.add { color: #1b6e22; } :root[data-theme="light"] .dl.del { color: #b3261e; } #modal { z-index: 20; } #palette { z-index: 30; } #palette { position: fixed; inset: 0; background: #0007; display: flex; justify-content: center; align-items: flex-start; padding-top: 14vh; } #palette[hidden] { display: none; } #pal-box { width: min(620px, 92vw); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; } #pal-in { width: 100%; padding: 14px 16px; background: none; border: 0; border-bottom: 1px solid var(--line); outline: none; font-size: 15px; } #pal-list { max-height: 50vh; overflow: auto; } #pal-list .opt { display: flex; gap: 10px; padding: 8px 16px; cursor: pointer; } #pal-list .opt.on { background: var(--bg); } #pal-list .opt .d { color: var(--mute); margin-left: auto; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; } #theme-btn { margin-top: auto; text-align: left; color: var(--mute); padding: 8px; } #settings-btn { text-align: left; color: var(--mute); padding: 8px; } #settings-btn.on, #settings-btn:hover { color: var(--fg, inherit); } #update-badge { text-align: left; padding: 8px; color: var(--accent); font-weight: 600; } #update-badge:hover { text-decoration: underline; } .meter { height: 8px; border-radius: 4px; background: var(--code); overflow: hidden; margin: 8px 0 2px; } .meter > i { display: block; height: 100%; background: var(--accent, #6b8afd); } .meter > i.warn { background: var(--warn); } .meter > i.hot { background: #e5484d; } /* ── Preview de arquivos (painel Arquivos → Projeto) ─────────────────────────────────────────────────────────── */ .ptab { color: var(--mute); padding: 3px 10px; border-radius: 7px; font-weight: 500; } .ptab:hover { color: var(--fg); } .ptab.on { background: var(--panel); color: var(--fg); } #panel-body.wide { max-width: none; padding: 0; overflow: hidden; display: flex; } .pv { display: flex; flex: 1; min-height: 0; width: 100%; } .pv-tree { width: 280px; flex: none; overflow: auto; border-right: 1px solid var(--line); padding: 8px 0; font-size: 13px; } .pv-tree .tr { display: flex; gap: 4px; padding-top: 2px; padding-bottom: 2px; padding-right: 8px; cursor: pointer; white-space: nowrap; color: var(--fg); } .pv-tree .tr:hover { background: var(--panel); } .pv-tree .tr.on { background: var(--panel); color: var(--accent2); } .pv-tree .tr.dir .tn { font-weight: 500; } .pv-tree .tw { width: 12px; color: var(--mute); flex: none; } .pv-tree .tn { overflow: hidden; text-overflow: ellipsis; } .pv-empty { color: var(--mute); padding: 2px 22px; font-size: 12px; } .pv-doc { flex: 1; min-width: 0; display: flex; flex-direction: column; } .pv-head { display: flex; gap: 10px; align-items: center; padding: 8px 18px; border-bottom: 1px solid var(--line); } .pv-head b { font: 600 12.5px ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pv-head .btn2 { margin-left: auto; } .pv-body { flex: 1; overflow: auto; padding: 18px 26px 40px; } .pv-img { max-width: 100%; border-radius: 6px; } .pv-note { color: var(--warn); font-size: 12.5px; margin: 0 0 8px; } .pv-missing { color: var(--mute); font-style: italic; } .pmsg { color: var(--mute); padding: 14px 18px; } /* documento Markdown */ .doc { max-width: none; margin: 0; line-height: 1.65; } .doc h1, .doc h2 { border-bottom: 1px solid var(--line); padding-bottom: 4px; } .doc h1 { font-size: 26px; margin: 4px 0 14px; } .doc h2 { font-size: 21px; margin: 26px 0 10px; } .doc h3 { font-size: 17px; margin: 20px 0 8px; } .doc h4, .doc h5, .doc h6 { font-size: 14.5px; margin: 16px 0 6px; } .doc p { margin: 10px 0; } .doc ul, .doc ol { padding-left: 24px; margin: 8px 0; } .doc li.task { list-style: none; margin-left: -20px; } .doc li.task input { margin-right: 6px; } .doc a { color: var(--accent2); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; } .doc code { background: var(--panel); padding: 1px 5px; border-radius: 4px; font: 12.5px ui-monospace, monospace; color: #ff9a7a; } .doc pre.code { position: relative; background: var(--code); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow-x: auto; } .doc pre.code code { background: none; color: var(--fg); padding: 0; } .doc blockquote { margin: 10px 0; padding: 2px 14px; border-left: 3px solid var(--line); color: var(--mute); } .doc hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; } .doc table { border-collapse: collapse; margin: 12px 0; border: 1px solid var(--line); } .doc th, .doc td { text-align: left; padding: 7px 12px; border-bottom: 1px solid var(--line); } .doc th { color: var(--mute); font-weight: 500; } .doc th.al-center, .doc td.al-center { text-align: center; } .doc th.al-right, .doc td.al-right { text-align: right; } .doc mark { background: #ffd54f55; color: inherit; border-radius: 3px; padding: 0 2px; } .doc img.doc-img { max-width: 100%; border-radius: 6px; } .doc table.fm { font-size: 12.5px; color: var(--mute); margin: 0 0 18px; } .doc table.fm th { font-weight: 600; width: 1%; white-space: nowrap; } .callout { border-left: 3px solid var(--accent2); background: var(--panel); border-radius: 6px; padding: 8px 14px; margin: 12px 0; } .callout .ct { font-weight: 600; margin-bottom: 2px; } .callout.c-warning, .callout.c-caution, .callout.c-danger { border-color: var(--warn); } .callout.c-error, .callout.c-bug { border-color: var(--err); } .callout.c-tip, .callout.c-success, .callout.c-check { border-color: var(--ok); } .diagram { margin: 14px 0; overflow: auto; } .diagram.rendered { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; text-align: center; } .diagram.rendered svg { max-width: 100%; height: auto; } /* código com números de linha e realce */ .codeview { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--code); } .codeview pre { margin: 0; font: 12.5px/18px ui-monospace, monospace; padding: 10px 0; } .codeview .gutter { color: var(--mute); text-align: right; padding: 10px 10px; border-right: 1px solid var(--line); user-select: none; flex: none; } .codeview pre.code { flex: 1; overflow-x: auto; padding: 10px 14px; background: none; border: 0; border-radius: 0; } .codeview pre.code code { background: none; color: var(--fg); padding: 0; font: inherit; } .tk-c { color: #7f8aa3; font-style: italic; } .tk-s { color: #98c379; } .tk-n { color: #d19a66; } .tk-k { color: #c678dd; } :root[data-theme="light"] .tk-c { color: #8a8f99; } :root[data-theme="light"] .tk-s { color: #3a7d2c; } :root[data-theme="light"] .tk-n { color: #b05d0a; } :root[data-theme="light"] .tk-k { color: #8119bd; } code.fileref { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; } code.fileref:hover { background: var(--line); } /* PDF, Word e PowerPoint no preview */ .pdf-bar { position: sticky; top: -18px; z-index: 2; display: flex; gap: 8px; align-items: center; padding: 6px 0 10px; background: var(--bg, inherit); } .pdf-pages { display: flex; flex-direction: column; align-items: center; gap: 12px; } .pdf-page { display: flex; justify-content: center; } .pdf-page canvas { background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.35); border-radius: 2px; } .docx-host .docx-wrapper { background: transparent !important; padding: 0 !important; } .pptx { display: flex; flex-direction: column; gap: 14px; } .slide { border: 1px solid var(--line, #444); border-radius: 8px; padding: 14px 18px; } .slide-n { font-size: 11.5px; opacity: .6; margin-bottom: 6px; } .slide h3 { margin: 0 0 6px; } .slide p { margin: 4px 0; } .slide-notes { margin-top: 10px; font-size: 12.5px; opacity: .75; border-top: 1px dashed var(--line, #444); padding-top: 6px; } .note.skill { color: var(--accent, #7aa2f7); } #panel-btns button.pend { font-weight: 600; color: var(--warn); } /* Campo de entrada em CodeMirror (Markdown). No modo editor ele cresce, ganha números de linha e fonte monoespaçada. */ #editor .cm-editor { background: none; outline: none; } #editor .cm-editor.cm-focused { outline: none; } #editor .cm-scroller { max-height: 220px; overflow: auto; font: inherit; line-height: 1.55; } #editor .cm-content { padding: 0; caret-color: var(--fg); } #editor .cm-line { padding: 0; } #editor .cm-placeholder { color: var(--mute); } #editor .cm-cursor { border-left-color: var(--fg); } #editor .cm-selectionBackground, #editor .cm-focused .cm-selectionBackground { background: #8119bd55; } #composer.editor-mode .cm-scroller { min-height: 200px; max-height: 55vh; font: 13px/1.6 ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; } #editor .cm-gutters { background: none; border: 0; color: var(--mute); padding-right: 6px; } #editor .cm-activeLine { background: #ffffff08; } #editor .cm-activeLineGutter { background: none; color: var(--fg); } /* realce de Markdown (classes do classHighlighter) */ #editor .tok-heading { color: var(--accent2); font-weight: 700; } #editor .tok-strong { font-weight: 700; } #editor .tok-emphasis { font-style: italic; } #editor .tok-strikethrough { text-decoration: line-through; } #editor .tok-link, #editor .tok-url { color: #6cb6ff; } #editor .tok-quote { color: var(--mute); font-style: italic; } #editor .tok-monospace { color: var(--warn); font-family: ui-monospace, Menlo, Consolas, monospace; } #editor .tok-meta, #editor .tok-processingInstruction, #editor .tok-contentSeparator { color: var(--mute); } #expand { width: 28px; height: 28px; border-radius: 6px; color: var(--mute); font-size: 15px; } #expand:hover, #expand.on { background: var(--bg); color: var(--fg); } #expand.on { color: var(--accent2); } /* Aba Árvore (PoC de perguntas e respostas evolutivas) */ .qt-form { display: flex; flex-direction: column; gap: 8px; } .qt-input { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; outline: none; resize: vertical; } .qt-input:focus { border-color: var(--accent); } .qt-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .qt-row select { background: var(--bg); border: 1px solid var(--line); } .qt-run { margin-left: auto !important; background: var(--accent); color: #fff; padding: 6px 14px; border-radius: 8px; } .qt-run.stop { background: var(--err); } .qt-status { margin: 10px 0 2px; font-size: 12.5px; color: var(--mute); } .qt-status b { color: var(--fg); } .qt-status.err b { color: var(--err); } .qt-note { font-size: 11.5px; color: var(--mute); margin: 0 0 8px; } .qt-ans { margin-bottom: 8px; } .qt-ans.best { border-color: var(--ok); } .qt-ans.pruned { opacity: .55; } .qt-h { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; } .qt-rank { color: var(--accent2); } .qt-conf { font-weight: 700; margin-right: auto; } .qt-bar { height: 5px; background: var(--bg); border-radius: 3px; overflow: hidden; margin-bottom: 6px; } .qt-bar i { display: block; height: 100%; background: var(--accent2); } .qt-text { font-size: 13px; margin: 4px 0 6px; } .qt-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; } .qt-chip { font-size: 10.5px; padding: 1px 7px; border-radius: 10px; background: var(--bg); color: var(--mute); border: 1px solid var(--line); white-space: nowrap; } .qt-chip.ok { color: var(--ok); border-color: var(--ok); } .qt-chip.bad { color: var(--err); border-color: var(--err); } .qt-det summary { cursor: pointer; font-size: 11.5px; color: var(--mute); } .qt-quotes { margin: 4px 0 4px 4px; } .qt-q { font-size: 11.5px; color: var(--mute); margin: 2px 0; } .qt-q.ok b { color: var(--ok); } .qt-q.bad b { color: var(--err); } .qt-q em { font-style: normal; opacity: .7; } .qt-node { margin-left: 14px; border-left: 1px solid var(--line); padding-left: 8px; } .qt-node > summary { cursor: pointer; display: flex; gap: 6px; align-items: baseline; padding: 3px 0; font-size: 12.5px; list-style: none; } .qt-node > summary::-webkit-details-marker { display: none; } .qt-node.pruned > summary { opacity: .5; text-decoration: line-through; text-decoration-color: #ffffff30; } .qt-lbl { flex: 1; } .qt-node.q > summary .qt-lbl { font-weight: 600; } .qt-out > .qt-node { margin-left: 0; } /* Árvore visual (beta) */ #panel-btns .beta { font-size: 9px; text-transform: uppercase; letter-spacing: .06em; padding: 1px 5px; border-radius: 8px; background: var(--accent); color: #fff; margin-left: 4px; vertical-align: 1px; } .tv-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; } .tv-bar { display: flex; gap: 10px; align-items: center; padding: 8px 18px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--mute); } .tv-bar .tv-status { margin-right: auto; } .tv-body { flex: 1; display: flex; min-height: 0; } .tv-stage { flex: 1; min-width: 0; position: relative; background: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0 / 22px 22px; } .tv-svg { width: 100%; height: 100%; cursor: grab; touch-action: none; display: block; } .tv-svg:active { cursor: grabbing; } .tv-detail { width: 320px; flex: none; border-left: 1px solid var(--line); padding: 12px 16px; overflow: auto; background: var(--side); } .tv-legend { padding: 6px 18px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--mute); } .tv-edge { fill: none; stroke: var(--line); stroke-width: 1.6; } .tv-edge.pruned { stroke-dasharray: 4 4; opacity: .6; } .tv-node { cursor: pointer; } .tv-node rect { fill: var(--panel); stroke: var(--line); stroke-width: 1.6; } .tv-node.q rect { stroke: var(--accent2); } .tv-node.pruned rect { stroke-dasharray: 5 4; stroke: var(--mute); } .tv-node.pruned { opacity: .5; } .tv-node.sel rect { stroke-width: 3; filter: drop-shadow(0 0 6px #8119bd88); } .tv-node text { fill: var(--fg); font-size: 11px; pointer-events: none; } .tv-node .tv-score { fill: var(--mute); font-size: 10px; font-weight: 700; } .tv-node:hover rect { fill: var(--bg); } .qt-usage { margin-top: 3px; font-size: 11.5px; color: var(--mute); } .qt-final { margin: 10px 0; border-left: 3px solid var(--accent); } .qt-final-text { white-space: pre-wrap; line-height: 1.5; user-select: text; }