/* Apollo Bot · painel */
body.app { min-height: 100dvh; background: #000; }
body.app::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .55;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 68% 8%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 84% 62%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 32% 78%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 52% 44%, rgba(255,255,255,.6) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 92% 28%, #ffb37a 50%, transparent 51%), radial-gradient(1px 1px at 6% 56%, rgba(255,255,255,.5) 50%, transparent 51%); }
#root { position: relative; z-index: 1; }
.boot { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--muted); }
.brand-mark.big { width: 56px; height: 56px; animation: bootSpin 3s linear infinite; }
@keyframes bootSpin { to { transform: rotate(360deg) } }

/* ---------- Autenticação ---------- */
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { position: relative; overflow: hidden; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; padding: 34px; }
.auth-art .planet { position: absolute; width: 150%; aspect-ratio: 1; left: -25%; top: 58%; border-radius: 50%; background: radial-gradient(circle at 50% 0%, #121216, #000 55%);
  box-shadow: 0 -1px 0 rgba(255,255,255,.4), 0 -18px 60px rgba(255,120,40,.22), 0 -60px 160px rgba(255,106,26,.12); }
.auth-art .moon { position: absolute; right: 16%; top: 22%; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #d9d9de, #6b6b73 60%, #202024); box-shadow: 0 0 60px rgba(255,255,255,.08); }
.auth-art .ring { position: absolute; right: calc(16% - 70px); top: calc(22% - 20px); width: 230px; height: 130px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; transform: rotate(-20deg); }
.auth-art .sat { position: absolute; right: calc(16% + 150px); top: calc(22% + 10px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: blink 2s infinite; }
.auth-art h1 { position: relative; font-size: clamp(34px, 4vw, 56px); line-height: 1; letter-spacing: -.035em; font-weight: 600; margin: 0 0 14px; max-width: 520px; }
.auth-art p { position: relative; color: var(--text-2); max-width: 440px; margin: 0; }
.auth-art .hudline { position: relative; display: flex; gap: 22px; flex-wrap: wrap; }
.auth-form { display: grid; place-items: center; padding: 30px 20px; }
.auth-card { width: min(400px, 100%); }
.auth-card h2 { font-size: 28px; letter-spacing: -.02em; font-weight: 600; margin: 10px 0 6px; }
.auth-card > p { color: var(--muted); margin: 0 0 26px; }
.auth-switch { margin-top: 18px; color: var(--muted); font-size: 14px; text-align: center; }
.auth-switch a { color: #fff; }

/* ---------- Formulários ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.field small { color: var(--muted); font-size: 12px; }
.input, .select, .textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 13px; outline: none; transition: border-color .2s, background .2s; font-size: 14px; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(255,106,26,.6); background: #0f0f14; }
.textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { color: #ff8b97; font-size: 13px; min-height: 18px; margin: 4px 0 10px; }
.switch { position: relative; width: 40px; height: 22px; flex: none; border-radius: 99px; background: #26262c; border: 0; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #8a8a93; transition: transform .25s var(--ease), background .2s; }
.switch.on { background: rgba(67,227,155,.25); }
.switch.on::after { transform: translateX(18px); background: var(--ok); }
.hint { font-size: 12.5px; color: var(--muted); }
.copy { display: flex; gap: 6px; align-items: center; }
.copy code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: 12px var(--mono); }

/* ---------- Estrutura ---------- */
.shell { display: grid; grid-template-columns: 238px 1fr; min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; border-right: 1px solid var(--line); padding: 20px 12px 14px; background: rgba(0,0,0,.7); backdrop-filter: blur(10px); }
.side .brand { padding: 0 8px 22px; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; text-decoration: none; color: var(--text-2); font-size: 14px; transition: background .15s, color .15s; }
.nav a:hover { background: rgba(255,255,255,.04); color: #fff; }
.nav a.on { background: rgba(255,255,255,.07); color: #fff; }
.nav a.on svg { stroke: var(--accent); }
.nav svg, .ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav .badge { margin-left: auto; background: var(--accent); color: #000; font: 700 10.5px var(--sans); min-width: 19px; height: 19px; border-radius: 99px; display: grid; place-items: center; padding: 0 5px; }
.nav-label { font: 500 10px var(--mono); letter-spacing: .2em; color: var(--faint); padding: 18px 10px 6px; }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.engine { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; display: grid; gap: 4px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.engine b { display: flex; align-items: center; gap: 7px; font-weight: 500; font-size: 11px; color: #fff; }
.dotst { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.dotst.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(67,227,155,.15); }
.dotst.warn { background: var(--warn); }
.dotst.bad { background: var(--bad); }
.me { display: flex; align-items: center; gap: 10px; padding: 6px 6px; border-radius: 10px; text-decoration: none; }
.me:hover { background: rgba(255,255,255,.04); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.avatar.sm { width: 34px; height: 34px; }
.me b { display: block; font-size: 13px; font-weight: 500; line-height: 1.2; }
.me small { color: var(--muted); font-size: 11.5px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 16px clamp(16px, 3vw, 32px); border-bottom: 1px solid var(--line); background: rgba(0,0,0,.78); backdrop-filter: blur(14px); min-height: 68px; }
.top h1 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.top .crumb { font: 500 10px var(--mono); letter-spacing: .2em; color: var(--muted); display: block; margin-bottom: 1px; }
.top .grow { flex: 1; min-width: 0; }
.page { padding: clamp(16px, 3vw, 32px); max-width: 1320px; width: 100%; animation: pageIn .35s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
.tabbar { display: none; }
.show-m { display: none; }

/* ---------- Componentes ---------- */
.card { background: rgba(10,10,13,.85); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.card-head { flex-wrap: wrap; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.card-head p { margin: 0; color: var(--muted); font-size: 13px; }
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(4, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g2 { grid-template-columns: 1fr 1fr; }
.g-dash { grid-template-columns: 1.6fr 1fr; }
.kpi { position: relative; overflow: hidden; }
.kpi .mono { color: var(--muted); }
.kpi strong { display: block; font-size: 36px; font-weight: 600; letter-spacing: -.03em; margin: 10px 0 2px; line-height: 1; }
.kpi small { color: var(--muted); font-size: 12.5px; }
.kpi small.up { color: var(--ok); }
.kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; border: 1px solid var(--line); }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 10px var(--mono); letter-spacing: .12em; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; text-transform: uppercase; }
.pill.ok { color: var(--ok); border-color: rgba(67,227,155,.35); background: rgba(67,227,155,.06); }
.pill.warn { color: var(--warn); border-color: rgba(255,192,67,.35); }
.pill.bad { color: var(--bad); border-color: rgba(255,77,94,.35); }
.pill.acc { color: var(--accent); border-color: rgba(255,106,26,.4); background: var(--accent-soft); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--text-2); border: 1px solid var(--line); }
.tags { display: flex; gap: 4px; flex-wrap: wrap; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty h3 { color: #fff; margin: 14px 0 6px; font-size: 17px; font-weight: 600; }
.empty p { margin: 0 auto 18px; max-width: 420px; }
.empty .glyph { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; position: relative; }
.empty .glyph::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px dashed var(--line); animation: bootSpin 20s linear infinite; }
.empty .glyph svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.6; }
.list { display: grid; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.li:last-child { border-bottom: 0; }
.li .grow { flex: 1; min-width: 0; }
.li b { font-weight: 500; font-size: 14px; }
.li p { margin: 0; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li time { color: var(--faint); font: 11px var(--mono); flex: none; }
.chip-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); flex: none; background: var(--bg-2); }
.chip-ico svg { width: 17px; height: 17px; }
.ch-whatsapp { color: #43e39b; } .ch-instagram { color: #ff6fae; } .ch-messenger { color: #6fb1ff; } .ch-whatsapp_cloud { color: #43e39b; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .stack { border-bottom: 1px solid var(--line-2); width: 100%; max-width: 38px; display: flex; flex-direction: column-reverse; gap: 2px; flex: 1; justify-content: flex-start; }
.bars .stack i { display: block; border-radius: 4px; transition: height .8s var(--ease); }
.bars .stack i.in { background: #fff; } .bars .stack i.out { background: var(--accent); }
.bars span { font: 10px var(--mono); color: var(--muted); letter-spacing: .06em; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.mission { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.mstep { border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-decoration: none; display: grid; gap: 6px; transition: border-color .2s, background .2s; }
.mstep:hover { border-color: var(--line-3); background: rgba(255,255,255,.02); }
.mstep .n { font: 500 10px var(--mono); letter-spacing: .16em; color: var(--muted); display: flex; justify-content: space-between; }
.mstep b { font-weight: 500; font-size: 14px; }
.mstep.done { border-color: rgba(67,227,155,.3); }
.mstep.done .n { color: var(--ok); }
.progress { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #fff, var(--accent)); transition: width 1s var(--ease); }
.hello h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; margin: 4px 0 2px; font-weight: 600; }
.hello p { margin: 0; color: var(--muted); }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { white-space: nowrap; border: 0; background: none; color: var(--muted); padding: 6px 13px; border-radius: 999px; font-size: 13px; }
.seg button.on { background: #fff; color: #000; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font: 500 10px var(--mono); letter-spacing: .16em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); text-transform: uppercase; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: rgba(255,255,255,.02); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10,10,13,.85); }

/* ---------- Fluxos ---------- */
.flows { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.flow-card { display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, transform .2s var(--ease); cursor: pointer; }
.flow-card:hover { border-color: var(--line-3); transform: translateY(-2px); }
.flow-card h3 { font-size: 16px; }
.flow-card .meta { display: flex; gap: 14px; font: 11px var(--mono); color: var(--muted); letter-spacing: .06em; }
.flow-card .foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; }
.tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tpl { text-align: left; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 6px; transition: border-color .2s; }
.tpl:hover { border-color: rgba(255,106,26,.5); }
.tpl b { font-weight: 500; }
.tpl p { margin: 0; color: var(--muted); font-size: 12.5px; }
.gen-box { border: 1px solid rgba(255,106,26,.35); border-radius: 14px; padding: 16px; background: radial-gradient(120% 100% at 0 0, rgba(255,106,26,.1), transparent 60%); }
.gen-box .head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.gen-box .sol-sun { width: 26px; height: 26px; }

.builder { display: grid; grid-template-columns: 1fr auto; height: calc(100dvh - 68px); min-height: 0; }
.canvas-wrap { position: relative; min-height: 0; min-width: 0; }
.canvas-wrap .canvas { height: 100%; }
.canvas.designing .tree { opacity: .35; filter: blur(1px); transition: opacity .3s, filter .3s; }
.canvas.designing::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; top: 0; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 18px var(--accent); animation: scanY 1.8s ease-in-out infinite; }
@keyframes scanY { 0%, 100% { top: 10% } 50% { top: 85% } }
.agent { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(720px, calc(100% - 24px)); z-index: 5; display: grid; gap: 6px; }
.agent-row { display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 10px; border-radius: 16px; background: rgba(10,10,14,.92); backdrop-filter: blur(14px); border: 1px solid rgba(255,106,26,.4); box-shadow: 0 20px 60px rgba(0,0,0,.7), 0 0 0 4px rgba(255,106,26,.06); }
.agent-row:focus-within { border-color: var(--accent); }
.agent-row .sol-sun { width: 28px; height: 28px; }
.agent-row input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 14px; padding: 8px 4px; }
.agent-status { justify-self: center; display: flex; align-items: center; gap: 8px; max-width: 100%; font-size: 12.5px; color: var(--text-2); background: rgba(10,10,14,.92); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; }
.canvas { padding-bottom: 170px !important; }
.canvas { position: relative; overflow: auto; background-color: #020203; background-image: radial-gradient(rgba(255,255,255,.075) 1px, transparent 1px); background-size: 22px 22px; padding: 30px 30px 120px; }
.tree { display: flex; flex-direction: column; align-items: center; min-width: max-content; margin: 0 auto; }
.node { position: relative; width: 272px; background: #0c0c10; border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; cursor: pointer; text-align: left; box-shadow: 0 12px 30px rgba(0,0,0,.55); transition: border-color .15s, box-shadow .2s, transform .15s; }
.node:hover { border-color: var(--line-3); }
.node.sel { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 12px 30px rgba(0,0,0,.55); }
.node.live { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,106,26,.18), 0 0 30px rgba(255,106,26,.25); }
.node .nh { display: flex; align-items: center; gap: 8px; font: 600 10px var(--mono); letter-spacing: .16em; color: var(--muted); margin-bottom: 6px; }
.node .nh svg { width: 14px; height: 14px; }
.node .nt { font-size: 13.5px; line-height: 1.45; color: #e9e9ec; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.node .nt.empty-t { color: var(--faint); font-style: italic; }
.node .nf { margin-top: 8px; display: flex; gap: 5px; flex-wrap: wrap; }
.node.t-trigger { border-color: rgba(255,106,26,.55); background: linear-gradient(135deg, rgba(255,106,26,.12), #0c0c10 60%); cursor: default; }
.node.t-trigger .nh { color: var(--accent); }
.node.t-menu .nh { color: #9fd3ff; } .node.t-ask .nh { color: #c6a8ff; } .node.t-tag .nh { color: #ffd166; }
.node.t-delay .nh { color: #8a8a93; } .node.t-solaris .nh { color: #ff8a3d; } .node.t-handoff .nh { color: #43e39b; } .node.t-end .nh { color: #ff6b7a; }
.node.t-solaris { background: linear-gradient(135deg, rgba(255,106,26,.1), #0c0c10 55%); }
.node.compact { width: auto; min-width: 150px; padding: 8px 12px; }
.conn { width: 1px; height: 22px; background: var(--line-3); flex: none; }
.add { width: 26px; height: 26px; border-radius: 50%; border: 1px dashed var(--line-3); background: #000; color: var(--muted); display: grid; place-items: center; font-size: 16px; line-height: 1; transition: all .15s; flex: none; }
.add:hover { border-style: solid; border-color: var(--accent); color: var(--accent); transform: scale(1.1); }
.branches { display: flex; gap: 18px; position: relative; padding-top: 18px; }
.branches::before { content: ""; position: absolute; top: 0; left: calc(var(--first, 50%)); right: calc(var(--last, 50%)); height: 1px; background: var(--line-3); }
.branch { display: flex; flex-direction: column; align-items: center; position: relative; }
.branch::before { content: ""; position: absolute; top: -18px; left: 50%; width: 1px; height: 18px; background: var(--line-3); }
.opt-label { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: #10161c; border: 1px solid rgba(159,211,255,.35); color: #cfe8ff; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goto { font: 500 10.5px var(--mono); letter-spacing: .08em; padding: 5px 10px; border-radius: 8px; border: 1px dashed rgba(255,255,255,.25); color: var(--text-2); background: #000; cursor: pointer; }
.goto:hover { border-color: #fff; color: #fff; }
.endcap { font: 500 9.5px var(--mono); letter-spacing: .2em; color: var(--faint); margin-top: 8px; }
.orphans { margin-top: 60px; border-top: 1px dashed var(--line-2); padding-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.orphans .mono { color: var(--warn); }
.picker { position: fixed; z-index: 70; background: #0d0d11; border: 1px solid var(--line-2); border-radius: 14px; padding: 6px; width: 250px; box-shadow: 0 20px 60px rgba(0,0,0,.7); animation: pageIn .18s var(--ease) both; }
.picker button { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; background: none; border: 0; padding: 8px 9px; border-radius: 9px; }
.picker button:hover { background: rgba(255,255,255,.06); }
.picker b { display: block; font-weight: 500; font-size: 13px; }
.picker small { color: var(--muted); font-size: 11.5px; }
.picker .chip-ico { width: 30px; height: 30px; }
.drawer { width: 380px; border-left: 1px solid var(--line); background: #060608; overflow-y: auto; display: flex; flex-direction: column; min-height: 0; }
.drawer[hidden] { display: none; }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #060608; z-index: 2; }
.drawer-head .grow { flex: 1; }
.drawer-body { padding: 16px; }
.opt-row { display: grid; grid-template-columns: minmax(0,1fr) 118px 36px; gap: 6px; margin-bottom: 6px; }
.opt-row > * { min-width: 0; }
.var-chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.var-chips button { font: 11px var(--mono); background: var(--bg-3); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; color: var(--text-2); }
.btop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.btop .input, .btop .select { padding: 7px 11px; font-size: 13px; border-radius: 9px; }
.name-input { background: none; border: 1px solid transparent; font-size: 17px; font-weight: 600; padding: 4px 8px; border-radius: 8px; width: min(360px, 30vw); outline: none; text-overflow: ellipsis; }
.name-input:hover, .name-input:focus { border-color: var(--line-2); }
.dirty { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.sim[hidden] { display: none; }
.sim { width: 360px; border-left: 1px solid var(--line); background: #040405; display: flex; flex-direction: column; min-height: 0; }
.sim-head { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.sim-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.sim-state { border-top: 1px solid var(--line); padding: 10px 14px; font-size: 12px; color: var(--muted); display: grid; gap: 4px; max-height: 120px; overflow: auto; }
.sim form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.bub { max-width: 86%; padding: 8px 12px; border-radius: 15px; font-size: 13.5px; line-height: 1.45; white-space: pre-line; word-break: break-word; animation: pageIn .25s var(--ease) both; }
.bub.in { align-self: flex-end; background: #fff; color: #000; border-bottom-right-radius: 4px; }
.bub.out { align-self: flex-start; background: var(--bg-3); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bub.sys { align-self: center; background: none; border: 1px dashed var(--line-2); color: var(--muted); font: 10.5px var(--mono); letter-spacing: .08em; border-radius: 8px; }
.bub .by { display: block; font: 600 9px var(--mono); letter-spacing: .14em; color: var(--muted); margin-bottom: 2px; }
.bub.src-human { background: #ffe4d1; }
.bub.src-broadcast { background: #dcefff; }
.bub.in .by { color: #6b6b73; }
.bub time { display: block; font: 10px var(--mono); color: var(--faint); margin-top: 3px; text-align: right; }
.bub.in time { color: #777; }
.qr-opts { display: flex; gap: 5px; flex-wrap: wrap; align-self: flex-start; max-width: 90%; }
.qr-opts button { border: 1px solid rgba(159,211,255,.4); background: #0b1219; color: #cfe8ff; border-radius: 999px; padding: 5px 11px; font-size: 12.5px; }

/* ---------- Canais ---------- */
.channel-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ctype { text-align: left; border: 1px solid var(--line); background: rgba(10,10,13,.85); border-radius: 14px; padding: 16px; display: grid; gap: 10px; transition: border-color .2s, transform .2s var(--ease); }
.ctype:hover { border-color: var(--line-3); transform: translateY(-2px); }
.ctype b { font-weight: 600; }
.ctype p { margin: 0; color: var(--muted); font-size: 12.5px; }
.qr-box { display: grid; place-items: center; gap: 14px; text-align: center; padding: 10px 0; }
.qr-frame { position: relative; width: 250px; height: 250px; border-radius: 18px; background: #fff; display: grid; place-items: center; padding: 12px; }
.qr-frame img { width: 100%; height: 100%; image-rendering: pixelated; }
.qr-frame::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--accent); box-shadow: 0 0 14px var(--accent); animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 12px } 50% { top: calc(100% - 14px) } }
.radar { position: relative; width: 170px; height: 170px; border-radius: 50%; border: 1px solid var(--line-2); overflow: hidden; background: radial-gradient(circle, transparent 30%, rgba(255,255,255,.03) 31%, transparent 32%, transparent 60%, rgba(255,255,255,.03) 61%, transparent 62%); }
.radar::before { content: ""; position: absolute; inset: 0; background: conic-gradient(from 0deg, rgba(255,106,26,.45), transparent 25%); animation: bootSpin 2.2s linear infinite; border-radius: 50%; }
.radar::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #fff; }
.steps-ol { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 13.5px; display: grid; gap: 4px; text-align: left; }
.success-burst { width: 90px; height: 90px; border-radius: 50%; display: grid; place-items: center; background: rgba(67,227,155,.12); border: 1px solid rgba(67,227,155,.5); animation: pageIn .4s var(--ease); }
.success-burst svg { width: 40px; height: 40px; stroke: var(--ok); fill: none; stroke-width: 2.2; }
.banner { display: flex; gap: 12px; align-items: flex-start; border: 1px solid rgba(255,192,67,.3); background: rgba(255,192,67,.05); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: 13.5px; color: var(--text-2); }
.banner b { color: #fff; }
.banner.ok { border-color: rgba(67,227,155,.3); background: rgba(67,227,155,.05); }

/* ---------- Conversas ---------- */
.inbox { display: grid; grid-template-columns: 340px 1fr; height: calc(100dvh - 68px); }
.ib-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.ib-tools .seg { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.ib-tools { padding: 12px; display: grid; gap: 8px; border-bottom: 1px solid var(--line); }
.ib-items { overflow-y: auto; flex: 1; }
.ib-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .15s; }
.ib-item:hover { background: rgba(255,255,255,.03); }
.ib-item.on { background: rgba(255,255,255,.06); }
.ib-item .grow { flex: 1; min-width: 0; }
.ib-item .l1 { display: flex; justify-content: space-between; gap: 6px; }
.ib-item b { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-item p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-item .unread { background: var(--accent); color: #000; font-size: 10.5px; font-weight: 700; border-radius: 99px; padding: 0 6px; height: 18px; display: grid; place-items: center; }
.ib-item time { font: 10.5px var(--mono); color: var(--faint); flex: none; }
.av-wrap { position: relative; }
.av-wrap .chm { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; background: #000; display: grid; place-items: center; }
.av-wrap .chm svg { width: 11px; height: 11px; }
.thread { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.th-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.th-head .grow { flex: 1; min-width: 0; }
.th-head b { font-weight: 600; }
.th-head small { display: block; color: var(--muted); font-size: 12px; }
.th-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.th-compose { border-top: 1px solid var(--line); padding: 12px 14px; display: grid; gap: 8px; }
.th-compose .row { display: flex; gap: 8px; align-items: flex-end; }
.th-compose textarea { flex: 1; min-height: 44px; max-height: 160px; resize: none; }
.bot-state { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.day-sep { align-self: center; font: 10px var(--mono); letter-spacing: .14em; color: var(--faint); margin: 10px 0; }

/* ---------- Modal e toast ---------- */
dialog#modal { border: 1px solid var(--line-2); border-radius: 20px; background: #0a0a0d; color: var(--text); padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); box-shadow: 0 40px 120px rgba(0,0,0,.8); }
dialog#modal.wide { width: min(820px, calc(100vw - 24px)); }
dialog#modal::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
dialog#modal[open] { animation: solIn .28s var(--ease) both; }
.m-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.m-head h2 { margin: 0; font-size: 17px; font-weight: 600; flex: 1; }
.m-body { padding: 20px; }
.m-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 200; background: #fff; color: #000; padding: 10px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 500; opacity: 0; pointer-events: none; transition: all .3s var(--ease); max-width: calc(100vw - 30px); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: #ff4d5e; color: #fff; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: #fff; animation: bootSpin .8s linear infinite; display: inline-block; }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .g4 { grid-template-columns: 1fr 1fr; }
  .g-dash { grid-template-columns: 1fr; }
  .channel-types { grid-template-columns: 1fr 1fr; }
  .sim { position: fixed; right: 0; top: 68px; bottom: 0; z-index: 30; box-shadow: -20px 0 60px rgba(0,0,0,.6); }
  .drawer { position: fixed; right: 0; top: 68px; bottom: 0; z-index: 31; box-shadow: -20px 0 60px rgba(0,0,0,.6); }
  .builder { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 250px; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-art .planet { top: 72%; }
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(0,0,0,.9); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; display: grid; justify-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 10.5px; padding: 4px 0; position: relative; }
  .tabbar a.on { color: #fff; } .tabbar a.on svg { stroke: var(--accent); }
  .tabbar .badge { position: absolute; top: 0; left: calc(50% + 6px); background: var(--accent); color: #000; font-size: 9.5px; font-weight: 700; border-radius: 99px; padding: 0 5px; }
  .main { padding-bottom: 70px; }
  body.app .sol-fab { bottom: calc(84px + env(safe-area-inset-bottom)) !important; right: 12px; padding: 5px; }
  body.app .sol-fab > span:last-child { display: none; }
  body.app .sol-fab .ring { left: 5px; top: 5px; }
  .show-m { display: block; }
  .name-input { width: 40vw; }
  .mission { grid-template-columns: 1fr 1fr; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .inbox { grid-template-columns: 1fr; height: calc(100dvh - 68px - 64px); }
  .inbox.has-thread .ib-list { display: none; }
  .inbox:not(.has-thread) .thread { display: none; }
  .builder { height: calc(100dvh - 68px - 64px); }
  .sim, .drawer { width: 100vw; top: 0; bottom: 0; z-index: 60; }
  .top { min-height: 60px; padding-top: 12px; padding-bottom: 12px; }
  .hide-m { display: none !important; }
  body[data-view="inbox-detail"] .sol-fab, body[data-view="flow-detail"] .sol-fab { display: none; }
  .table .hide-m { display: none; }
}
@media (max-width: 520px) {
  .g4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi strong { font-size: 28px; }
  .channel-types { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .opt-row { grid-template-columns: minmax(0,1fr) 96px 36px; }
}

/* Solaris no painel: acima dos compositores e dos painéis laterais */
body.app .sol-fab { bottom: 100px; }
body[data-view="flow-detail"] .sol-fab { bottom: 20px; }
body.app.side-open .sol-fab { right: 400px; }
@media (max-width: 860px) { body.app.side-open .sol-fab { display: none; } }


/* =====================================================================
   TEMA TÉCNICO · mesma estética da página inicial (SpaceX / Grok)
   Cantos retos, linhas finas, rótulos monoespaçados, títulos Oxanium.
   ===================================================================== */
body.app { font-family: var(--sans); letter-spacing: .005em; }
body.app::before { opacity: 1; background: #000 url("media/scene-cities.jpg") center / cover no-repeat; filter: saturate(.9); }
body.app::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.8) 40%, rgba(0,0,0,.68) 100%), radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.5) 50%, transparent 51%), radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,.4) 50%, transparent 51%); }
@media (max-aspect-ratio: 1/1) { body.app::before { background-image: url("media/scene-cities-m.jpg"); } }
body.app .mono, body.app .crumb, body.app .nav-label, body.app .kpi .mono, body.app .engine, body.app .table th, body.app .pill, body.app .mstep .n { font-family: var(--mono); text-transform: uppercase; letter-spacing: .16em; }
:root { --radius: 0px; --radius-sm: 0px; }

/* botões */
body.app .btn { border-radius: 0; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; border-color: rgba(255,255,255,.28); }
body.app .btn.sm { font-size: 11px; height: 36px; }
body.app .btn.xs { font-size: 10px; letter-spacing: .12em; }
body.app .btn.icon { letter-spacing: 0; }
body.app .btn.solid { background: #fff; color: #000; border-color: #fff; }
body.app .btn.solid:hover { background: var(--accent); border-color: var(--accent); color: #000; }
body.app .btn.ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
body.app .btn.accent { background: transparent; color: var(--accent-2); border-color: var(--accent); }
body.app .btn.accent:hover { background: var(--accent); color: #000; }

/* superfícies */
body.app .card, body.app .table-wrap, body.app .ctype, body.app .tpl, body.app .mstep, body.app .empty, body.app .banner, body.app .gen-box, body.app .engine, body.app dialog#modal, body.app .picker, body.app .drawer, body.app .sim { border-radius: 0; }
body.app .card { background: rgba(4,4,8,.62); border-color: rgba(255,255,255,.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); position: relative; }
body.app .card::before { content: ""; position: absolute; left: -1px; top: -1px; width: 10px; height: 10px; border-left: 1px solid var(--accent); border-top: 1px solid var(--accent); pointer-events: none; }
body.app .card h3, body.app .m-head h2, body.app .drawer-head b, body.app .sim-head b, body.app .ctype b, body.app .tpl b, body.app .empty h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
body.app .card-head p, body.app .hint { font-size: 12.5px; }
body.app .input, body.app .select, body.app .textarea { border-radius: 0; background-color: rgba(0,0,0,.55); border-color: rgba(255,255,255,.16); font-family: var(--sans); }
body.app .input:focus, body.app .select:focus, body.app .textarea:focus { border-color: var(--accent); background-color: rgba(0,0,0,.75); box-shadow: 0 0 0 1px var(--accent) inset; }
body.app .field > span { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: 10px; color: rgba(255,255,255,.6); }
body.app .field > span small { text-transform: none; letter-spacing: 0; }
body.app .pill, body.app .tag, body.app .seg, body.app .seg button, body.app .opt-label, body.app .goto, body.app .qr-opts button, body.app .var-chips button { border-radius: 0; }
body.app .pill { font-size: 9.5px; }
body.app .tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; }
body.app .seg button.on { background: #fff; color: #000; }
body.app .seg button { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; }
body.app .switch { border-radius: 0; }
body.app .switch::after { border-radius: 0; }
body.app .chip-ico { border-radius: 0; background: rgba(0,0,0,.4); }
body.app .avatar { border-radius: 0; font-family: var(--mono); }
body.app dialog#modal { background: rgba(6,6,10,.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-color: rgba(255,255,255,.18); }
body.app #toast { border-radius: 0; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; }
body.app .progress, body.app .progress i { border-radius: 0; }
body.app .qr-frame { border-radius: 0; }
body.app .ib-item .unread, body.app .nav .badge, body.app .tabbar .badge { border-radius: 0; font-family: var(--mono); }

/* estrutura */
body.app .side { background: rgba(0,0,0,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-right-color: rgba(255,255,255,.1); }
body.app .side .brand { padding: 4px 8px 26px; }
body.app .nav a { border-radius: 0; font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; padding: 11px 12px; border-left: 2px solid transparent; }
body.app .nav a.on { background: linear-gradient(90deg, rgba(255,106,26,.12), rgba(255,255,255,0)); border-left-color: var(--accent); }
body.app .nav svg { width: 16px; height: 16px; }
body.app .top { background: rgba(0,0,0,.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: rgba(255,255,255,.1); }
body.app .top h1 { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: 20px; font-weight: 600; }
body.app .top .crumb { color: var(--accent-2); font-size: 9.5px; letter-spacing: .24em; }
body.app .top .crumb::before { content: "// "; color: rgba(255,255,255,.35); }
body.app .hello h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: clamp(30px, 3.6vw, 48px); font-weight: 600; }
body.app .kpi strong { font-family: var(--display); font-weight: 600; font-size: 44px; letter-spacing: 0; }
body.app .kpi::after { border-radius: 0; border: 0; border-top: 1px solid rgba(255,255,255,.12); border-right: 1px solid rgba(255,255,255,.12); width: 30px; height: 30px; right: 10px; top: 10px; }
body.app .bars .stack i { border-radius: 0; }
body.app .me { border-radius: 0; }
body.app .me b { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; }
body.app .engine b { font-family: var(--mono); }
body.app .tabbar a { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: 9px; }
body.app .flow-card h3 { font-size: 16px; }
body.app .price { font-family: var(--display); }
body.app .table td { border-bottom-color: rgba(255,255,255,.08); }

/* construtor */
body.app .canvas { background-color: rgba(0,0,0,.78); background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 40px 40px; }
body.app .node { border-radius: 0; background: rgba(8,8,12,.92); }
body.app .node .nh { font-family: var(--mono); }
body.app .add { border-radius: 0; }
body.app .agent-row { border-radius: 0; background: rgba(4,4,8,.9); }
body.app .agent-status { border-radius: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
body.app .drawer, body.app .sim { background: rgba(4,4,8,.94); backdrop-filter: blur(16px); }
body.app .drawer-head, body.app .sim-head { background: transparent; }
body.app .name-input { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; border-radius: 0; }
body.app .ib-list, body.app .thread { background: rgba(0,0,0,.45); }
body.app .th-head b { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; }
body.app .bub { border-radius: 4px; }
body.app .drop { display: grid; justify-items: center; gap: 8px; padding: 34px 20px; border: 1px dashed rgba(255,255,255,.28); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
body.app .drop:hover, body.app .drop.over { border-color: var(--accent); background: rgba(255,106,26,.06); }
body.app .drop b { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; }
body.app .imp-paste { margin-top: 12px; }
body.app .imp-paste summary { cursor: pointer; color: rgba(255,255,255,.6); padding: 6px 0; }
body.app .imp-paste .textarea { margin: 8px 0; font-family: var(--mono); font-size: 12px; }

/* ---------- autenticação ---------- */
.auth { position: relative; z-index: 1; }
.auth-art { position: relative; overflow: hidden; border-right: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; justify-content: space-between; padding: 40px clamp(28px, 4vw, 56px); min-height: 100dvh; }
.auth-bg { position: absolute; inset: 0; overflow: hidden; }
.auth-bg::before { content: ""; position: absolute; inset: -4%; background: url("media/scene-hero.jpg") 60% 60% / cover no-repeat; animation: authkb 40s ease-in-out infinite alternate; }
.auth-art.is-login .auth-bg::before { background-image: url("media/scene-mars.jpg"); }
.auth-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,0,0,.15) 70%), linear-gradient(0deg, rgba(0,0,0,.75), rgba(0,0,0,0) 45%), linear-gradient(180deg, rgba(0,0,0,.6), rgba(0,0,0,0) 20%); }
.auth-bg i { position: absolute; left: 62%; top: 72%; width: 40vw; height: 40vw; transform: translate(-50%, -50%); border-radius: 50%; mix-blend-mode: screen; background: radial-gradient(circle, rgba(255,230,190,.5), rgba(255,140,60,.12) 25%, rgba(0,0,0,0) 55%); animation: sunpulse2 7s ease-in-out infinite; }
.auth-art.is-login .auth-bg i { display: none; }
@keyframes authkb { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@keyframes sunpulse2 { 50% { opacity: .6; transform: translate(-50%, -50%) scale(1.1); } }
.auth-art > *:not(.auth-bg) { position: relative; }
.auth-copy .tagline { color: var(--accent-2); margin: 0 0 18px; font-size: 11px; }
.auth-art h1 { font-family: var(--display); text-transform: uppercase; font-weight: 700; font-size: clamp(40px, 5.2vw, 84px); line-height: .95; letter-spacing: .01em; margin: 0 0 18px; }
.auth-art p { color: rgba(255,255,255,.78); max-width: 420px; font-size: 16px; }
.auth-hud { display: flex; gap: 34px; margin: 0; }
.auth-hud dt { font-size: 9px; color: rgba(255,255,255,.45); letter-spacing: .24em; margin-bottom: 4px; }
.auth-hud dd { margin: 0; font-size: 11.5px; letter-spacing: .14em; display: flex; align-items: center; gap: 8px; }
.auth-form { background: rgba(0,0,0,.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.auth-card .form-tag { color: var(--accent-2); font-size: 10.5px; margin: 0; }
.auth-card h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 34px; font-weight: 600; margin: 14px 0 6px; }
.auth-card > p:not(.mono):not(.err):not(.auth-switch) { color: rgba(255,255,255,.55); }
.auth-card .btn-x { margin-top: 6px; }
.auth-switch { font-family: var(--mono); font-size: 11px !important; text-transform: uppercase; letter-spacing: .12em; }
.auth-switch a { color: var(--accent-2) !important; }
@media (max-width: 860px) { .auth-art { min-height: 320px; } .auth-hud { gap: 18px; } .auth-art h1 { font-size: 40px; } }

/* Solaris dentro do painel */
body.app .sol-panel { border-radius: 2px; background: rgba(6,6,10,.95); }
body.app .sol-head b { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; }
body.app .sol-msg.user { border-radius: 2px; }
body.app .sol-form, body.app .sol-send, body.app .sol-chips button, body.app .sol-act { border-radius: 0; }
body.app .sol-fab { border-radius: 2px; }

body.app .cred { font-family: var(--mono); font-size: 12px; white-space: pre-wrap; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.12); padding: 10px 12px; margin: 10px 0; color: #fff; }
