/* ORVIA Platform Preview — identidade ORVIA (verde profundo + dourado + creme), liquid-glass moderado. */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07110e;
  --bg-2: #0b1a16;
  --surface: rgba(19, 39, 34, .72);
  --surface-solid: #132722;
  --surface-2: rgba(28, 54, 47, .62);
  --surface-3: #1a332d;
  --line: rgba(233, 221, 197, .10);
  --line-strong: rgba(233, 221, 197, .2);
  --text: #f1eee6;
  --text-2: #c9c4b6;
  --muted: #8e9a93;
  --gold: #c9a86a;
  --gold-2: #e3c88f;
  --green: #173a32;
  --accent: #c9a86a;
  --accent-ink: #1a1408;
  --glow: rgba(201, 168, 106, .22);
  --series-1: #b8862c;
  --series-2: #0fa38f;
  --series-3: #8577ee;
  --grid: rgba(233, 221, 197, .08);
  --good: #3fbf8a;
  --warn: #e0a83a;
  --bad: #ef6b63;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  --radius: 14px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f1ea;
  --bg-2: #ece7dc;
  --surface: rgba(255, 254, 250, .78);
  --surface-solid: #fffefa;
  --surface-2: rgba(247, 244, 237, .9);
  --surface-3: #efeadf;
  --line: rgba(23, 58, 50, .10);
  --line-strong: rgba(23, 58, 50, .22);
  --text: #16241f;
  --text-2: #3b4a44;
  --muted: #6c7772;
  --gold: #9c7a33;
  --gold-2: #7d6026;
  --accent: #173a32;
  --accent-ink: #fffdf7;
  --glow: rgba(23, 58, 50, .14);
  --series-1: #a77a1f;
  --series-2: #00897a;
  --series-3: #6250d6;
  --grid: rgba(23, 58, 50, .08);
  --good: #1e7a52;
  --warn: #9a6a00;
  --bad: #b3261e;
  --shadow: 0 14px 40px rgba(24, 52, 45, .10);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); font-size: 14px; line-height: 1.5;
  background:
    radial-gradient(1100px 600px at 12% -10%, var(--glow), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(15, 163, 143, .07), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12px; word-break: break-all; }
.spacer { flex: 1; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: 248px 1fr; height: 100vh; }
.sidebar { display: flex; flex-direction: column; gap: 18px; padding: 18px 14px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(23, 58, 50, .35), transparent 60%), var(--surface); backdrop-filter: blur(16px); min-height: 0; }
:root[data-theme="light"] .sidebar { background: linear-gradient(180deg, rgba(201, 168, 106, .10), transparent 60%), var(--surface); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 10px; border-bottom: 1px solid var(--line); }
.brand-icon { width: 36px; height: 36px; image-rendering: pixelated; filter: drop-shadow(0 4px 10px var(--glow)); }
.brand strong { display: block; font-size: 17px; letter-spacing: .14em; }
.brand small { color: var(--gold); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 550; transition: background .18s, color .18s; position: relative; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item[aria-current] { background: linear-gradient(90deg, rgba(201, 168, 106, .18), rgba(201, 168, 106, .04)); color: var(--text); }
.nav-item[aria-current]::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.icon { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: 0 0 auto; }
.icon svg { width: 100%; height: 100%; }
.sidebar-foot { margin-top: auto; display: grid; gap: 12px; }
.voice-launch { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-2); font-weight: 600; }
.voice-launch img { width: 22px; height: 22px; image-rendering: pixelated; }
.voice-launch:hover { border-color: var(--gold); }
.preview-flag { padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line-strong); }
.preview-flag p { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.4; }

.workspace { display: grid; grid-template-rows: auto 1fr; min-width: 0; min-height: 0; }
.header { display: flex; align-items: center; gap: 16px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.screen-title { font-size: 19px; font-weight: 700; margin-right: auto; }
.header-ctx { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ctx-field { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.select { background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: 9px; padding: 6px 28px 6px 10px; color: var(--text); appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.status-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); }
.status-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(63, 191, 138, .18); }
.menu-btn { display: none; }
.content { overflow: auto; padding: 22px 24px 40px; min-height: 0; }
.content:focus { outline: none; }
.scrim { display: none; }

/* ---------------------------------------------------------- primitives */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1px solid transparent; white-space: nowrap; line-height: 1.7; }
.badge-real { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); background: color-mix(in srgb, var(--good) 12%, transparent); }
.badge-real::before { content: "●"; font-size: 8px; }
.badge-implemented { color: var(--series-2); border-color: color-mix(in srgb, var(--series-2) 45%, transparent); background: color-mix(in srgb, var(--series-2) 10%, transparent); }
.badge-implemented::before { content: "◆"; font-size: 8px; }
.badge-simulated { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, transparent); background: color-mix(in srgb, var(--gold) 12%, transparent); }
.badge-simulated::before { content: "◐"; font-size: 9px; }
.badge-planned { color: var(--muted); border-color: var(--line-strong); border-style: dashed; }
.badge-planned::before { content: "○"; font-size: 9px; }
.badge-demo { color: var(--series-3); border-color: color-mix(in srgb, var(--series-3) 45%, transparent); }
.badge-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.badge-neutral { color: var(--text-2); border-color: var(--line-strong); }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-2); font-weight: 600; font-size: 13px; transition: border-color .15s, background .15s, transform .1s; }
.btn:hover:not(:disabled) { border-color: var(--gold); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-danger { border-color: color-mix(in srgb, var(--bad) 55%, transparent); color: var(--bad); background: transparent; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--text-2); }
.icon-btn:hover:not(:disabled) { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.icon-btn .icon { width: 17px; height: 17px; }
.chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); font-size: 12.5px; }
.chip:hover, .chip[aria-pressed] { border-color: var(--gold); color: var(--gold-2); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; backdrop-filter: blur(14px); box-shadow: var(--shadow); min-width: 0; }
.panel h3 { font-size: 15px; margin-bottom: 10px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.panel-head h3 { margin: 0; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar p { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.span-2 { grid-column: 1 / -1; }
.callout { border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); background: color-mix(in srgb, var(--gold) 7%, transparent); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.callout p { margin: 6px 0 0; font-size: 13px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--line-strong); }
.table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll { overflow-x: auto; }
.field { display: grid; gap: 5px; font-size: 12px; color: var(--muted); min-width: 0; }
.field input, .field textarea, .field select, .search, .new-card input, .fee-table input { background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: 9px; padding: 8px 10px; color: var(--text); width: 100%; min-width: 0; }
.field input:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.input-wrap { position: relative; display: block; }
.input-wrap em { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 12px; pointer-events: none; }
.input-wrap input { padding-right: 34px; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* ---------------------------------------------------------- chat */
.chat { display: grid; grid-template-rows: auto auto 1fr auto; gap: 14px; height: calc(100vh - 110px); max-width: 1180px; margin: 0 auto; }
.chat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.chat-ctx { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chat-ops { display: flex; align-items: center; gap: 18px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); backdrop-filter: blur(14px); flex-wrap: wrap; }
.active-agent { display: flex; align-items: center; gap: 8px; min-width: 260px; font-size: 13px; color: var(--text-2); }
.active-agent strong { color: var(--gold-2); letter-spacing: .06em; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.pulse.on { background: var(--gold); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(201, 168, 106, .0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 106, .45); } }
.trail { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.trail li { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); padding: 4px 8px; }
.trail li:not(:last-child)::after { content: ""; width: 18px; height: 1px; background: var(--line-strong); margin-left: 8px; }
.trail li i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); }
.trail li.done { color: var(--text-2); }
.trail li.done i { background: var(--good); border-color: var(--good); }
.trail li.active { color: var(--gold-2); }
.trail li.active i { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 168, 106, .2); }
.chat-log { overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 4px 4px 8px; min-height: 0; }
.welcome { margin: auto; text-align: center; max-width: 560px; padding: 30px 10px; }
.welcome-logo { width: 84px; height: 84px; image-rendering: pixelated; filter: drop-shadow(0 10px 24px var(--glow)); }
.welcome h2 { font-size: 24px; margin: 14px 0 6px; }
.welcome p { color: var(--muted); margin: 0 0 16px; }
.suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.msg { display: flex; gap: 10px; max-width: 920px; }
.msg-user { align-self: flex-end; }
.msg-user p { margin: 0; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--accent); color: var(--accent-ink); }
.msg-avatar { width: 28px; height: 28px; image-rendering: pixelated; flex: 0 0 auto; margin-top: 2px; }
.msg-body { min-width: 0; flex: 1; }
.msg-body > p { margin: 4px 0 10px; color: var(--text-2); }
.phase-line { font-weight: 650; color: var(--gold-2) !important; }
.phase-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.phase-list li { padding: 8px 12px; border-left: 2px solid var(--gold); background: var(--surface); border-radius: 0 10px 10px 0; font-size: 13px; animation: rise .25s ease-out; }
.phase-list li.done { border-left-color: var(--good); opacity: .8; }
.phase-list small { display: block; color: var(--muted); font-size: 12px; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }
.report { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); padding: 16px; box-shadow: var(--shadow); }
.report h3 { font-size: 16px; margin: 10px 0 6px; }
.report .decision { margin: 0 0 4px; }
.report .decision strong { color: var(--gold-2); }
.report-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.report-sec { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface-2); }
.report-sec h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.agent-atlas h4 { color: var(--series-2); } .agent-flora h4 { color: var(--series-3); } .agent-orvia h4 { color: var(--gold-2); }
.report-sec ul { margin: 0; padding-left: 16px; font-size: 13px; display: grid; gap: 6px; }
.report footer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.composer { display: flex; align-items: flex-end; gap: 10px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); backdrop-filter: blur(14px); }
.composer-tools { display: flex; gap: 2px; }
.voice-mini img { width: 20px; height: 20px; image-rendering: pixelated; }
.chat-input { flex: 1; resize: none; border: 0; background: transparent; padding: 7px 4px; outline: none; max-height: 160px; }

/* ---------------------------------------------------------- drawer / modal */
.drawer-wrap, .modal-wrap { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 50; display: flex; }
.drawer-wrap { justify-content: flex-end; }
.drawer { width: min(540px, 100%); height: 100%; overflow-y: auto; background: var(--surface-solid); border-left: 1px solid var(--line-strong); padding: 20px; animation: slide .22s ease-out; }
@keyframes slide { from { transform: translateX(24px); opacity: .6; } }
.drawer header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ev-list { display: grid; gap: 12px; }
.ev { display: grid; grid-template-columns: 110px 1fr; gap: 4px 10px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-size: 12.5px; }
.ev dt { color: var(--muted); }
.ev dd { margin: 0; min-width: 0; }
.modal-wrap { align-items: center; justify-content: center; padding: 16px; }
.modal { width: min(440px, 100%); background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: 16px; padding: 20px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.modal-actions, .form-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* ---------------------------------------------------------- kanban */
.opt-editor { display: inline-flex; gap: 0; margin-right: 6px; }
.lanes { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.lane { flex: 0 0 290px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 10px; backdrop-filter: blur(14px); transition: border-color .15s; }
.lane.over { border-color: var(--gold); }
.lane header { display: flex; align-items: center; gap: 6px; }
.lane-title { flex: 1; min-width: 0; background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 4px 6px; font-weight: 700; font-size: 12px; letter-spacing: .08em; }
.lane-title:hover, .lane-title:focus { border-color: var(--line-strong); outline: none; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-3); font-size: 11px; color: var(--text-2); font-weight: 700; }
.lane-cards { display: grid; gap: 8px; min-height: 12px; }
.kcard { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface-solid); cursor: grab; display: grid; gap: 6px; }
.kcard.dragging { opacity: .5; }
.kcard h4 { font-size: 13.5px; font-weight: 600; }
.kcard p { margin: 0; color: var(--muted); font-size: 12.5px; white-space: pre-wrap; }
.ktag { justify-self: start; font-size: 10.5px; font-weight: 700; color: var(--gold-2); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); border-radius: 999px; padding: 0 8px; }
.kcard-actions { display: flex; justify-content: space-between; }
.kcard-actions .icon-btn { width: 28px; height: 28px; }

/* ---------------------------------------------------------- dashboard */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; backdrop-filter: blur(14px); }
.kpi span { font-size: 11.5px; color: var(--muted); }
.kpi strong { font-size: 19px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi small { font-size: 11px; color: var(--muted); }
.kpi.warn strong { color: var(--warn); }
.kpi.up strong { color: var(--good); }
.kpi.down strong { color: var(--bad); }
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .bar { fill: var(--series-1); }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.s1 { stroke: var(--series-1); }
.chart .line.s2 { stroke: var(--series-2); }
.chart .area.s1 { fill: color-mix(in srgb, var(--series-1) 16%, transparent); }
.chart .direct-label { fill: var(--text); font-size: 11px; font-weight: 650; paint-order: stroke; stroke: var(--surface-solid); stroke-width: 4px; stroke-linejoin: round; }
.chart .crosshair { stroke: var(--line-strong); stroke-width: 1; opacity: 0; }
.chart .crosshair.on { opacity: 1; }
.chart .hit { fill: transparent; }
.tip { position: absolute; transform: translate(-50%, calc(-100% - 10px)); pointer-events: none; background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 9px; font-size: 12px; white-space: nowrap; opacity: 0; transition: opacity .1s; box-shadow: var(--shadow); }
.tip.on { opacity: 1; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw.s1 { background: var(--series-1); } .sw.s2 { background: var(--series-2); }
.sw.line { height: 2px; border-radius: 2px; width: 14px; }
.table-view summary { cursor: pointer; color: var(--muted); font-size: 12px; margin-top: 8px; }
.table-view .table { margin-top: 8px; }
.hbars { display: grid; gap: 9px; }
.hbar { display: grid; grid-template-columns: minmax(110px, 1.1fr) 2fr minmax(90px, auto); gap: 10px; align-items: center; font-size: 12.5px; }
.hbar-label { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 10px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.hbar-track i { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.hbar-value { font-variant-numeric: tabular-nums; text-align: right; }
.hbar-value small { display: block; color: var(--muted); font-size: 11px; }
.st { font-style: normal; font-size: 11px; }
.st-critical { color: var(--bad); } .st-warning { color: var(--warn); }
.mini-bar { display: block; width: 120px; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--series-1); border-radius: 0 3px 3px 0; }

/* ---------------------------------------------------------- pricing */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pricing-form fieldset { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.pricing-form legend { font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 6px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.results-panel { position: sticky; top: 0; }
.headline { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.big { padding: 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-2); display: grid; }
.big span { font-size: 12px; color: var(--muted); }
.big strong { font-size: 24px; font-variant-numeric: tabular-nums; color: var(--gold-2); }
.big small { font-size: 11px; color: var(--muted); }
.evals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.eval { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.eval h4 { font-size: 13px; margin-bottom: 8px; }
.eval dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 0; font-size: 13px; }
.eval dt { color: var(--muted); }
.eval dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.eval.pos { border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.eval.warn { border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
.eval.neg { border-color: color-mix(in srgb, var(--bad) 55%, transparent); }
.eval.neg dd[data-k="marginValue"], .eval.neg dd[data-k="marginPct"] { color: var(--bad); }
.warnings { margin: 12px 0 0; padding: 10px 12px 10px 28px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 10%, transparent); color: var(--warn); font-size: 12.5px; }
.scenario-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.scenario-list li { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 10px; }
.link { flex: 1; text-align: left; background: none; border: 0; padding: 0; display: grid; }
.link small { color: var(--muted); font-size: 12px; }
.fee-table input { padding: 6px 8px; max-width: 120px; }

/* ---------------------------------------------------------- workflow / adaptive */
.workflow-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.node { position: relative; padding-bottom: 18px; }
.node:not(:last-child)::after { content: ""; position: absolute; left: 22px; bottom: 2px; height: 14px; width: 2px; background: var(--line-strong); }
.node button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); text-align: left; transition: border-color .15s, box-shadow .2s; }
.node button strong { flex: 1; }
.node.selected button { border-color: var(--gold); }
.node.done button { border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.node.running button { box-shadow: 0 0 0 4px rgba(201, 168, 106, .18); border-color: var(--gold); }
.node-idx { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); font-size: 11px; font-weight: 700; color: var(--text-2); flex: 0 0 auto; }
.node.done .node-idx { background: var(--good); color: #062014; }
.node-panel { position: sticky; top: 0; display: grid; gap: 10px; }
.node-panel header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.node-panel h3 { margin: 0; }
.node-panel p { margin: 0; }
.node-panel h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 4px 0; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-strong); }
.flowcol ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.flowcol li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font-weight: 600; position: relative; }
.flowcol li:not(:last-child)::after { content: "↓"; position: absolute; left: 20px; bottom: -14px; color: var(--muted); font-size: 11px; }
.flowcol li em { font-style: normal; font-size: 11px; color: var(--gold-2); margin-left: auto; }
.adapted li.moved { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 9%, var(--surface-2)); }

/* ---------------------------------------------------------- memory / markets / settings */
.status-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.status-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); display: grid; gap: 4px; justify-items: start; }
.status-card small { color: var(--muted); font-size: 12px; }
.tabs { display: flex; gap: 4px; margin-bottom: 12px; flex-wrap: wrap; }
.tab { padding: 7px 13px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--text-2); font-weight: 600; font-size: 12.5px; }
.tab[aria-selected="true"] { border-color: var(--gold); color: var(--text); background: var(--surface-2); }
.search { max-width: 240px; }
.conf { display: inline-block; width: 50px; height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; vertical-align: middle; }
.conf i { display: block; height: 100%; background: var(--series-2); }
.memory-table td, .memory-table th { white-space: nowrap; }
.market-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.market header { display: flex; align-items: center; gap: 10px; }
.market header h3 { margin: 0; font-size: 17px; }
.m-dot { width: 12px; height: 12px; border-radius: 4px; }
.m-amazon .m-dot { background: var(--series-1); } .m-shopee .m-dot { background: var(--series-2); } .m-mercado_livre .m-dot { background: var(--series-3); }
.market ul { margin: 8px 0 0; padding-left: 16px; font-size: 13px; color: var(--text-2); display: grid; gap: 4px; }
.market-status { margin: 10px 0 2px; }
.cap-table td small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.legend-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--muted); }
.legend-row span:not(.badge) { margin-right: 10px; }
.settings { display: grid; gap: 16px; max-width: 900px; }
.switch { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.switch input { width: 18px; height: 18px; accent-color: var(--gold); }

/* ---------------------------------------------------------- splash */
.splash { position: fixed; inset: 0; z-index: 2147483647; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: radial-gradient(600px 400px at 50% 40%, rgba(201, 168, 106, .16), transparent 70%), radial-gradient(circle at 50% 120%, #173a32, #050b09 70%);
  color: #f1eee6; transition: opacity .4s ease, visibility .4s; }
.splash-stage { position: relative; width: 168px; height: 168px; display: grid; place-items: center; }
.splash-logo { width: 96px; height: 96px; image-rendering: pixelated; position: relative; z-index: 2; animation: logo-in .9s cubic-bezier(.2, .8, .2, 1) both, breathe 2.8s ease-in-out 1s infinite; filter: drop-shadow(0 10px 28px rgba(201, 168, 106, .35)); }
.splash-ring { position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #c9a86a 0 6deg, transparent 6deg 16deg);
  -webkit-mask: radial-gradient(circle, transparent 0 62%, #000 63% 66%, transparent 67%); mask: radial-gradient(circle, transparent 0 62%, #000 63% 66%, transparent 67%);
  animation: ring-in 1.1s ease-out .15s both, spin 14s linear 1.2s infinite; }
.splash-ring-2 { inset: 18px; background: conic-gradient(from 210deg, transparent 0 40%, rgba(201, 168, 106, .9) 70%, transparent 71%);
  -webkit-mask: radial-gradient(circle, transparent 0 68%, #000 69% 71%, transparent 72%); mask: radial-gradient(circle, transparent 0 68%, #000 69% 71%, transparent 72%);
  animation: ring-in .9s ease-out .5s both, spin 3.2s linear .5s infinite reverse; }
.splash-word { display: flex; gap: .42em; font-size: 30px; font-weight: 800; letter-spacing: .02em; }
.splash-word span { animation: letter .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(1.05s + var(--i) * 90ms); }
.splash-tag { margin: 0; color: rgba(241, 238, 230, .7); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; animation: fade .7s ease 1.8s both; }
.splash-skip { position: absolute; right: 24px; bottom: 24px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(241, 238, 230, .25); background: rgba(255, 255, 255, .04); color: #f1eee6; font-size: 12.5px; transition: opacity .3s; }
.splash-skip:disabled { opacity: 0; }
.splash-out { opacity: 0; visibility: hidden; }
.splash-static *, .splash-static { animation: none !important; }
@keyframes logo-in { from { opacity: 0; transform: scale(.82); } }
@keyframes ring-in { from { opacity: 0; transform: scale(.9) rotate(-40deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes letter { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes breathe { 50% { transform: scale(1.035); } }

/* ---------------------------------------------------------- voice */
.voice { position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; justify-items: center; gap: 22px; background: radial-gradient(circle at 50% 45%, rgba(23, 58, 50, .92), rgba(4, 9, 7, .96)); color: #f1eee6; animation: fade .25s ease; }
.voice-close { position: absolute; top: 18px; right: 18px; color: #f1eee6; }
.voice-head { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: rgba(241, 238, 230, .72); flex-wrap: wrap; justify-content: center; padding: 0 16px; }
.voice-orb { width: 200px; height: 200px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(201, 168, 106, .25); transition: box-shadow .4s ease; }
.voice-orb img { width: 104px; height: 104px; image-rendering: pixelated; transition: transform .4s ease; }
.voice[data-state="LISTENING"] .voice-orb { animation: listen 1.6s ease-in-out infinite; box-shadow: 0 0 40px rgba(201, 168, 106, .25), inset 0 0 30px rgba(201, 168, 106, .12); }
.voice[data-state="THINKING"] .voice-orb img { animation: think 1.1s ease-in-out infinite; }
.voice[data-state="THINKING"] .voice-orb { box-shadow: 0 0 22px rgba(15, 163, 143, .3); }
.voice[data-state="SPEAKING"] .voice-orb { animation: speak .6s ease-in-out infinite alternate; box-shadow: 0 0 60px rgba(201, 168, 106, .45); }
.voice-label { margin: 0; font-size: 15px; letter-spacing: .04em; }
.voice-states { display: flex; gap: 8px; }
.voice .chip { color: #f1eee6; background: rgba(255, 255, 255, .05); border-color: rgba(241, 238, 230, .2); }
@keyframes listen { 50% { transform: scale(1.06); } }
@keyframes think { 50% { transform: scale(.94); opacity: .8; } }
@keyframes speak { from { transform: scale(1); } to { transform: scale(1.09); } }

/* ---------------------------------------------------------- motion & responsive */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
:root[data-reduce-motion] *, :root[data-reduce-motion] *::before, :root[data-reduce-motion] *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .report-grid { grid-template-columns: 1fr; } }
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 40; transform: translateX(-100%); transition: transform .22s ease; background: var(--surface-solid); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 30; }
  .menu-btn { display: inline-grid; }
  .header { padding: 10px 16px; gap: 10px; }
  .content { padding: 16px; }
  .grid-2, .pricing-grid, .workflow-grid, .market-cards, .status-cards { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat { height: calc(100vh - 150px); }
  .headline, .evals { grid-template-columns: 1fr; }
  .header-ctx .ctx-field, .header-ctx .status-dot { display: none; }
  .chat { grid-template-columns: minmax(0, 1fr); }
  .active-agent { min-width: 0; }
  .chat-ops { gap: 10px; }
  .results-panel, .node-panel { position: static; }
}
@media (max-width: 560px) { .header-ctx .status-dot { display: none; } .hbar { grid-template-columns: 1fr; gap: 4px; } .hbar-value { text-align: left; } }

/* OMEGA • visão da operação. Reusa a identidade e os temas da plataforma. */
.omega-dash { display: grid; gap: 22px; width: min(100%, 1480px); margin-inline: auto; min-width: 0; }
.omega-dash > * { min-width: 0; }
.dash-hero { position: relative; isolation: isolate; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px 24px; padding: clamp(20px, 4vw, 36px); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 20px; background: radial-gradient(ellipse at 95% 0%, var(--glow), transparent 56%), linear-gradient(132deg, var(--surface-3), var(--surface-solid)); }
.dash-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .32; background: repeating-linear-gradient(90deg, transparent 0 47px, var(--line) 47px 48px), repeating-linear-gradient(0deg, transparent 0 47px, var(--line) 47px 48px); mask-image: linear-gradient(90deg, transparent 35%, #000); pointer-events: none; }
.dash-hero-copy { max-width: 660px; }
.dash-hero .dash-eyebrow { margin: 0 0 7px; color: var(--gold-2); font-family: var(--mono); font-size: 11px; font-weight: 750; letter-spacing: .16em; }
.dash-hero h2 { font-size: clamp(28px, 4.4vw, 49px); font-weight: 740; line-height: 1.06; letter-spacing: -.051em; }
.dash-hero p:not(.dash-eyebrow) { margin: 11px 0 0; color: var(--text-2); font-size: 14px; }
.dash-hero-meta { display: flex; align-items: flex-end; flex-direction: column; gap: 6px; color: var(--text-2); font-size: 12px; }
.dash-filters { display: grid; grid-template-columns: minmax(108px, 1fr) minmax(108px, 1fr) minmax(82px, .7fr) minmax(190px, 1.14fr); gap: 12px; align-items: end; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 12px 15px; }
.dash-filters .ctx-field { display: grid; min-width: 0; gap: 4px; align-self: stretch; color: var(--text-2); }
.dash-filters .select { width: 100%; min-height: 44px; min-width: 0; }
.dash-filter-range { display: grid; align-self: center; padding-inline: 8px; gap: 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dash-filter-range strong { font-size: 13px; }
.dash-filter-range span { font-size: 12px; color: var(--text-2); }
.dash-section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 10px; }
.dash-section-head h3, .omega-dash .dash-panel-head h3 { font-size: 17px; font-weight: 710; }
.dash-section-head > span, .dash-panel-head p { font-size: 12px; color: var(--text-2); }
.omega-dash .kpis { gap: 10px; }
.omega-dash .kpi { padding: 14px; min-width: 0; align-content: start; border-radius: 14px; gap: 4px; }
.omega-dash .kpi > span { font-size: 12px; color: var(--text-2); font-weight: 650; }
.omega-dash .kpi strong { font-size: clamp(16px, 1.62vw, 25px); line-height: 1.22; letter-spacing: -.03em; overflow-wrap: anywhere; }
.omega-dash .kpi small { font-size: 11px; color: var(--text-2); }
.omega-dash .dash-primary-kpi { background: linear-gradient(120deg, var(--surface-3), var(--surface)); border-color: var(--gold); }
.omega-dash .dash-delta { font-weight: 700; }
.omega-dash .dash-delta.positive { color: var(--good); }
.omega-dash .dash-delta.negative { color: var(--bad); }
.dash-workbench { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.omega-dash .dash-card { padding: clamp(14px, 2vw, 21px); border-radius: 16px; min-width: 0; }
.dash-panel-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 13px; }
.dash-panel-head > div:first-child { min-width: 0; }
.dash-panel-head p { margin: 3px 0 0; }
.dash-segment { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); }
.dash-segment button { min-height: 36px; min-width: 72px; padding: 4px 9px; border: 1px solid transparent; background: transparent; color: var(--text-2); border-radius: 7px; font-size: 12px; }
.dash-segment [aria-pressed="true"] { background: var(--surface-3); color: var(--text); border-color: var(--line-strong); font-weight: 700; }
.omega-dash .table-view > summary { display: list-item; min-height: 44px; align-content: center; color: var(--text-2); margin-top: 3px; }
.omega-dash .chart .axis { fill: var(--text-2); }
.dash-alerts { display: flex; flex-direction: column; }
.dash-count { display: grid; place-items: center; min-width: 29px; min-height: 29px; padding-inline: 7px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--text-2); font-size: 12px; font-weight: 700; }
.dash-alert-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 7px; }
.dash-alert-list button { display: flex; justify-content: space-between; align-items: center; text-align: left; gap: 10px; width: 100%; min-height: 53px; padding: 8px 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.dash-alert-list button:hover { border-color: var(--gold); }
.dash-alert-list button > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.dash-alert-list strong, .dash-alert-list small { display: block; }
.dash-alert-list strong { font-size: 13px; }
.dash-alert-list small { color: var(--text-2); font-size: 11px; }
.dash-priority { display: inline-block; font-size: 11px; line-height: 1.28; font-weight: 740; padding: 4px 8px; white-space: nowrap; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--text-2); }
.dash-priority.severity-0 { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: color-mix(in srgb, var(--bad) 11%, transparent); }
.dash-priority.severity-1 { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 11%, transparent); }
.omega-dash .dash-alert-action { min-height: 44px; margin-top: auto; justify-content: space-between; width: 100%; }
.omega-dash .dash-export { min-height: 44px; }
.dash-rank-filters { display: grid; grid-template-columns: minmax(160px, 2fr) minmax(130px, 1.25fr) minmax(112px, auto); gap: 8px; align-items: center; }
.dash-rank-sort, .dash-rank-check { display: flex; gap: 7px; align-items: center; font-size: 12px; }
.dash-rank-sort > span { white-space: nowrap; }
.dash-rank-filters input[type="search"] { width: 100%; min-height: 44px; min-width: 0; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--bg); color: var(--text); }
.dash-rank-filters .select { width: 100%; min-width: 0; min-height: 44px; }
.dash-rank-check { min-height: 44px; padding-inline: 6px; }
.dash-rank-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.dash-results-count { margin: 8px 0 5px; color: var(--text-2); font-size: 12px; }
.dash-table-scroll { max-width: 100%; }
.omega-rank { min-width: 570px; }
.dash-daily-table { min-width: 400px; }
.omega-rank th[scope="row"] { min-width: 170px; color: var(--text); text-transform: none; font-weight: 690; letter-spacing: 0; font-size: 13px; }
.omega-rank th[scope="row"] small { display: block; margin-top: 2px; font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--text-2); }
.omega-rank td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.omega-rank tbody tr:hover { background: var(--surface-2); }
.dash-empty { margin: 8px 0 0; padding: 15px; color: var(--text-2); border: 1px dashed var(--line-strong); border-radius: 11px; }
.dash-empty p { margin: 4px 0 8px; }
.dash-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; }
@media (max-width: 1180px) { .dash-workbench { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .omega-dash { gap: 16px; }
  .dash-hero-meta { align-items: flex-start; }
  .dash-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 11px; }
  .dash-filter-range { padding: 0; }
  .dash-rank-filters { grid-template-columns: minmax(0, 1fr) auto; }
  .dash-rank-filters input[type="search"] { grid-column: 1/-1; }
  .dash-rank-sort > span { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }
  .omega-dash .chart .axis { font-size: 15px; }
  .omega-dash .chart .direct-label { font-size: 16px; }
}
@media (max-width: 420px) { .omega-dash .kpi { padding: 10px; } .omega-dash .dash-export { width: 100%; justify-content: center; } }
/* O recorte é editado no painel; o cabeçalho não duplica os controles. */
.workspace:has(.content[data-view="dashboard"]) .header-ctx > :not(:last-child) { display: none; }
@media (min-width: 981px) {
  .workspace:has(.content[data-view="dashboard"]) .menu-btn { display: none; }
}
@media (max-width: 980px) {
  body:not(.nav-open) .shell:has(.content[data-view="dashboard"]) .sidebar { visibility: hidden; }
}
@media (max-width: 420px) { .omega-dash .dash-primary-kpi { grid-column: 1 / -1; } }

/* OMEGA • cadastro e simulação de preços. */
.omega-pricing { width: min(100%, 1480px); margin-inline: auto; display: grid; gap: 16px; }
.omega-pricing > *, .omega-pricing .pricing-grid > * { min-width: 0; }
.omega-pricing .pricing-grid { grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr); }
.omega-pricing .grid-2 { margin-top: 0; }
.omega-pricing .panel h3 { margin-bottom: 7px; font-size: 17px; }
.omega-pricing .pricing-examples .btn, .omega-pricing .form-actions .btn { min-height: 44px; }
.omega-pricing .row > * { min-width: 0; }
.omega-pricing .pricing-form fieldset + fieldset { padding-top: 12px; border-top: 1px solid var(--line); }
.omega-pricing .pricing-form legend { margin-bottom: 9px; }
.omega-pricing .headline .big { min-width: 0; }
.omega-pricing .headline .big strong { overflow-wrap: anywhere; font-size: clamp(18px, 2.25vw, 29px); }
.omega-pricing .evals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.omega-pricing .evals > :last-child { grid-column: 1/-1; }
.pricing-bands { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.pricing-bands > p { margin: 0; }
.pricing-bands > button { justify-self: start; min-height: 42px; }
.pricing-band { display: grid; grid-template-columns: minmax(42px, .6fr) repeat(3, minmax(0, 1fr)) minmax(34px, auto); gap: 6px; align-items: end; }
.pricing-band > * { min-width: 0; }
.pricing-band > span { align-self: center; }
.pricing-band > .icon-btn { min-height: 40px; }
.pricing-unlimited { min-height: 37px; display: flex; align-items: center; font-size: 12px; color: var(--text-2); }
.pricing-save-status { min-height: 1.4em; margin: 2px 0 0; color: var(--text-2); font-size: 12px; }
.pricing-goal-status { display: block; color: var(--text-2); font-size: 12px; }
.pricing-registry-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.omega-pricing input[type="search"] { width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--bg); padding: 8px 10px; margin: 0 0 8px; }
.omega-pricing .scenario-list:not([hidden]) { margin-top: 6px; }
.omega-pricing .scenario-list [hidden] { display: none; }
.omega-pricing .scenario-list .link { text-align: left; overflow-wrap: anywhere; }
@media (max-width: 1050px) { .omega-pricing .pricing-grid { grid-template-columns: 1fr; } }
@media (max-width: 540px) {
  .omega-pricing .pricing-form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .omega-pricing .pricing-form .row > :last-child:nth-child(odd) { grid-column: 1/-1; }
  .pricing-band { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(35px, auto); }
  .pricing-band > span:first-child { grid-column: 1/-1; }
  .omega-pricing .evals { grid-template-columns: 1fr; }
  .omega-pricing .headline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* OMEGA • cadastro e simulação de preços. */
.omega-pricing { width: min(100%, 1480px); margin-inline: auto; display: grid; gap: 16px; }
.omega-pricing > *, .omega-pricing .pricing-grid > * { min-width: 0; }
.omega-pricing .pricing-grid { grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr); }
.omega-pricing .grid-2 { margin-top: 0; }
.omega-pricing .panel h3 { margin-bottom: 7px; font-size: 17px; }
.omega-pricing .pricing-examples .btn, .omega-pricing .form-actions .btn { min-height: 44px; }
.omega-pricing .row > * { min-width: 0; }
.omega-pricing .pricing-form fieldset + fieldset { padding-top: 12px; border-top: 1px solid var(--line); }
.omega-pricing .headline .big { min-width: 0; }
.omega-pricing .headline .big strong { overflow-wrap: anywhere; font-size: clamp(18px, 2.25vw, 29px); }
.omega-pricing .evals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.omega-pricing .evals > :last-child { grid-column: 1/-1; }
.pricing-bands { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.pricing-bands > p { margin: 0; }
.pricing-bands > button { justify-self: start; min-height: 42px; }
.pricing-band { display: grid; grid-template-columns: minmax(42px, .6fr) repeat(3, minmax(0, 1fr)) minmax(34px, auto); gap: 6px; align-items: end; }
.pricing-band > * { min-width: 0; }
.pricing-band > span { align-self: center; }
.pricing-band > .icon-btn { min-height: 40px; }
.pricing-unlimited { min-height: 37px; display: flex; align-items: center; font-size: 12px; color: var(--text-2); }
.pricing-save-status { min-height: 1.4em; margin: 2px 0 0; color: var(--text-2); font-size: 12px; }
.pricing-goal-status { display: block; color: var(--text-2); font-size: 12px; }
.pricing-registry-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.omega-pricing input[type="search"] { width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--bg); padding: 8px 10px; margin: 0 0 8px; }
.omega-pricing .scenario-list .link { text-align: left; overflow-wrap: anywhere; }
@media (max-width: 1050px) { .omega-pricing .pricing-grid { grid-template-columns: 1fr; } }
@media (max-width: 540px) {
  .omega-pricing .pricing-form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .omega-pricing .pricing-form .row > :last-child:nth-child(odd) { grid-column: 1/-1; }
  .pricing-band { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(35px, auto); }
  .pricing-band > span:first-child { grid-column: 1/-1; }
  .omega-pricing .evals { grid-template-columns: 1fr; }
  .omega-pricing .headline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.omega-pricing .pricing-examples .form-actions { justify-content: flex-start; }
.workspace:has(.content[data-view="precos"]) .header-ctx > :not(:last-child) { display: none; }
@media (min-width: 981px) { .workspace:has(.content[data-view="precos"]) .menu-btn { display: none; } }

.hosted-banner { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; width: min(100%, 1480px); margin: 0 auto 16px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 12px; background: var(--surface); color: var(--text-2); font-size: 12px; }
.hosted-banner strong { color: var(--gold-2); }
