/* Cockpit · app (escuro, identidade normandobj) */
:root {
  --bg: #0B0B0C; --panel: #131315; --panel-2: #0F0F11; --line: #26262A; --line-2: #3A3A3F;
  --ink: #F3F1EC; --soft: #E9E5DC; --mute: #A8A49C; --dim: #8E8A82;
  --caramel: #C9A27E; --caramel-2: #E2C4A4; --good: #8CC9A0; --warn: #E6B35C; --bad: #E89A84;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14px; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--caramel); } a:hover { color: var(--caramel-2); }
:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; }
.boot { min-height: 100vh; display: grid; place-items: center; font-family: var(--serif); font-size: 40px; color: var(--caramel); }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left)); background: radial-gradient(ellipse at 30% 20%, #17171B 0%, var(--bg) 60%); }
.auth-card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.auth-card h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; }
.auth-card p { margin: 0; color: var(--mute); line-height: 1.5; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.auth-links button { background: none; border: 0; padding: 0; color: var(--caramel); cursor: pointer; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--dim); font-weight: 600; }
.field input, .field select, .field textarea { min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: 15px; font-weight: 500; }
.field textarea { padding: 12px 14px; min-height: 90px; }
.msg { font-size: 13.5px; line-height: 1.45; padding: 10px 12px; border-radius: 12px; }
.msg.err { background: #2E1814; color: var(--bad); }
.msg.ok { background: #16261C; color: var(--good); }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: 600 14px var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--caramel); color: var(--ink); }
.btn.main { background: var(--caramel); border-color: var(--caramel); color: var(--bg); }
.btn.main:hover { background: var(--caramel-2); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[aria-pressed="true"] { background: #2A2218; border-color: var(--caramel); color: var(--caramel-2); }

/* ---------- layout ---------- */
.app { display: flex; height: 100vh; }
.side { width: 256px; flex: none; display: flex; flex-direction: column; gap: 22px; padding: 26px 18px; padding-left: max(18px, env(safe-area-inset-left)); border-right: 1px solid var(--line); background: var(--bg); overflow-y: auto; }
.topbar { display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 6px; }
.brand .mk { width: 40px; height: 40px; border-radius: 11px; background: #17171A; border: 1px solid #2A2A2F; display: grid; place-items: center; font-family: var(--serif); font-size: 26px; color: var(--caramel); }
.brand span { font-family: var(--serif); font-size: 22px; }
.burger { display: none; width: 44px; height: 44px; flex: none; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); align-items: center; justify-content: center; cursor: pointer; position: relative; z-index: 46; }
.burger svg { width: 22px; height: 22px; }
.scrim { position: fixed; inset: 0; z-index: 44; background: rgba(5,5,6,.62); }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav button { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; border: 0; background: transparent; color: var(--mute); font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
.nav button:hover { color: var(--ink); background: #17171A; }
.nav button[aria-current="page"] { color: var(--bg); background: var(--caramel); }
.nav svg { width: 20px; height: 20px; flex: none; }
.nav .sep { height: 1px; background: var(--line); margin: 8px 6px; }
.hangar { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; border: 1px dashed var(--line-2); background: var(--panel-2); }
.hangar.on { border-color: #5A4A33; }
.slot { position: relative; width: 92px; height: 64px; flex: none; border-radius: 12px; border: 0; background: repeating-linear-gradient(90deg, transparent 0 8px, #24242a 8px 14px) center 50% / 70% 2px no-repeat, var(--bg); cursor: pointer; }
.hangar b { display: block; font-size: 13px; }
.hangar small { display: block; font-size: 11.5px; color: var(--dim); line-height: 1.35; }
.who { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 12px; border: 0; background: none; color: var(--mute); font-size: 14px; cursor: pointer; text-align: left; }
.who:hover { background: #17171A; color: var(--ink); }
.who i { width: 34px; height: 34px; border-radius: 50%; background: #26262A; display: grid; place-items: center; font-style: normal; font-weight: 700; color: var(--caramel); flex: none; }
main { flex: 1; min-width: 0; overflow: auto; padding-block: 34px 56px; padding-left: max(16px, min(4vw, 52px)); padding-right: max(16px, env(safe-area-inset-right), min(4vw, 52px)); display: flex; flex-direction: column; gap: 20px; }

/* ---------- comuns ---------- */
.head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.eyebrow { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--caramel); font-weight: 700; }
h1.t { margin: 6px 0 0; font-family: var(--serif); font-weight: 400; font-size: 54px; line-height: 1; }
.sub { font-size: 13px; color: var(--dim); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--dim); }
.sel { min-height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font: 600 14px var(--sans); max-width: 260px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1; }
.mu { color: var(--dim); }
.empty { border: 1px dashed var(--line-2); border-radius: 16px; padding: 18px; color: var(--mute); font-size: 13.5px; line-height: 1.5; display: flex; flex-direction: column; gap: 8px; }
.empty code, .cmd code { font-family: var(--mono); color: var(--caramel-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.p-good { background: #16261C; color: var(--good); } .p-warn { background: #2B2211; color: var(--warn); } .p-bad { background: #2E1814; color: var(--bad); } .p-mute { background: #1C1C20; color: var(--mute); } .p-car { background: #2A2218; color: var(--caramel); }
.num { font-variant-numeric: tabular-nums; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: 1.15fr 1fr .85fr; gap: 14px; }
.scroll { overflow-y: auto; padding-right: 4px; }
.cmd { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 14px; }
.cmd code { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast { position: fixed; left: 50%; top: calc(16px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 60; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; box-shadow: 0 12px 30px rgba(0,0,0,.5); max-width: calc(100vw - 32px); }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 13px 11px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.kpi .k { font-size: 12px; font-weight: 700; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v { font-family: var(--serif); font-size: 25px; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.kpi .s { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.cost .v { color: var(--warn); } .kpi.good .v { color: var(--good); } .kpi.bad .v { color: var(--bad); }
.kpi.total { border-color: var(--line-2); } .kpi.profit { border-color: #2E4A38; }

/* ---------- funil ---------- */
.prods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.prod { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.prod b { font-size: 13px; color: var(--caramel); }
.prod .n { font-family: var(--serif); font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.prod small { font-size: 12px; color: var(--dim); }
.bars { display: flex; flex-direction: column; gap: 8px; }
.barrow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) 70px; gap: 10px; align-items: center; font-size: 13px; }
.barrow > span:first-child { color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 10px; border-radius: 99px; background: #1E1E22; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8C6F52, var(--caramel)); }
.barrow b { text-align: right; font-variant-numeric: tabular-nums; }
.chart svg { width: 100%; height: 160px; display: block; }

/* ---------- tabelas ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tablewrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); max-height: calc(100vh - 260px); }
table.t { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: 13px; }
table.t th { position: sticky; top: 0; z-index: 2; background: #17171A; color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; text-align: right; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; }
table.t th:first-child, table.t td:first-child { text-align: left; position: sticky; left: 0; z-index: 1; background: var(--panel); min-width: 260px; max-width: 360px; }
table.t th:first-child { z-index: 3; background: #17171A; }
table.t td { padding: 10px 12px; border-bottom: 1px solid #1C1C20; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.t td:first-child { white-space: normal; }
table.t tr:hover td { background: #17171A; }
table.t tfoot td { position: sticky; bottom: 0; background: #17171A; font-weight: 700; border-top: 1px solid var(--line); }
.nm { font-weight: 600; } .nm small { display: block; color: var(--dim); font-weight: 500; font-size: 11.5px; }
.st-on { color: var(--good); } .st-off { color: var(--dim); }
.colpop { position: absolute; right: 0; top: 48px; z-index: 20; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 14px; width: 300px; max-height: 420px; overflow: auto; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.colpop label { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--soft); }

/* ---------- criativos ---------- */
.cgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ccard { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; text-align: left; min-width: 0; }
.ccard:hover { border-color: var(--line-2); }
.ccard .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ccard .sc { font-family: var(--serif); font-size: 38px; line-height: .9; }
.ccard .nm2 { font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.mrow span { color: var(--dim); } .mrow b.red { color: var(--bad); }
.pager { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pager button { min-width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--mute); cursor: pointer; font-weight: 700; }
.pager button.on { background: var(--caramel); color: var(--bg); border-color: var(--caramel); }

/* ---------- ofertas / mineração ---------- */
.olist { display: flex; flex-direction: column; gap: 6px; }
.orow { width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid transparent; background: transparent; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.orow:hover { background: #1C1C20; } .orow.on { background: #1F1A14; border-color: var(--caramel); }
.campo { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.campo .k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.campo .v { font-size: 13.5px; line-height: 1.45; color: var(--soft); max-height: 90px; overflow-y: auto; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- engrenagem ---------- */
.gw { position: relative; height: 760px; background: radial-gradient(ellipse at 35% 40%, #17171B 0%, var(--bg) 70%); border: 1px solid #1E1E22; border-radius: 24px; overflow: hidden; }
@keyframes gira { to { transform: rotate(360deg); } }
.spin { animation: gira 96s linear infinite; transform-origin: center; }
.d2 .spin { animation-duration: 64s; animation-direction: reverse; }
.lbl.spin { animation-direction: reverse; } .d2 .lbl.spin { animation-direction: normal; }
.gw:hover .spin, .gw.par .spin { animation-play-state: paused; }
.gslot { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.pb { position: absolute; left: -24px; top: -24px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.pb .big { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .15s; }
.pb:hover .big { transform: scale(1.15); } .pb.on .big { outline: 3px solid var(--caramel); outline-offset: 3px; }
.lbl { position: absolute; transform: translate(-50%, -50%); font: 700 11.5px/1.15 var(--sans); color: var(--soft); text-align: center; text-shadow: 0 1px 3px #000, 0 0 8px #000; pointer-events: none; }
.gside { position: absolute; right: 22px; top: 22px; width: 320px; display: flex; flex-direction: column; gap: 12px; }
.gcost { position: absolute; right: 22px; bottom: 20px; width: 320px; }
.legend { position: absolute; left: 22px; bottom: 18px; display: flex; gap: 16px; font-size: 13px; color: var(--mute); flex-wrap: wrap; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; vertical-align: -1px; margin-right: 6px; }

/* ---------- trilha ---------- */
.trail { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.trail li { display: flex; gap: 18px; }
.trail .col { display: flex; flex-direction: column; align-items: center; width: 44px; flex: none; }
.trail .dotn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.trail .ln { flex: 1; width: 2px; min-height: 20px; background: #1E1E22; }
.trail .tx { flex: 1; padding: 9px 0 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14.5px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(5,5,6,.78); display: flex; align-items: center; justify-content: center; padding: 24px; }
.dialog { width: 100%; max-width: 860px; max-height: 100%; background: var(--panel); border: 1px solid #2A2A2F; border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.dialog h2 { margin: 4px 0 0; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; }
.dhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.dbody { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; min-height: 0; padding-right: 4px; }
.dend { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sug { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.sug .st { font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fact { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--mute); line-height: 1.45; }
.fact b { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
details.prompt { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
details.prompt summary { cursor: pointer; padding: 10px 12px; font-size: 13px; font-weight: 700; color: var(--caramel-2); list-style: none; }
details.prompt summary::-webkit-details-marker { display: none; }
details.prompt pre { margin: 0; padding: 0 12px 10px; white-space: pre-wrap; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; max-height: 230px; overflow: auto; }
.insight { background: linear-gradient(180deg, #1F1A14, #141210); border: 1px solid #5A4A33; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.insight h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; }

/* ---------- avião (camada) ---------- */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 30; }
.fx canvas, .fx svg.banner { position: absolute; inset: 0; width: 100%; height: 100%; }
.plane, .shadow { position: absolute; left: 0; top: 0; width: 72px; height: 72px; will-change: transform; }
.plane svg, .shadow svg { width: 72px; height: 72px; overflow: visible; display: block; }
.shadow { filter: blur(2.5px); }

/* ---------- responsivo ---------- */
@media (max-width: 1240px) { .kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1360px) { .cgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1180px) { .grid3 { grid-template-columns: 1fr 1fr; } .grid3 > :last-child { grid-column: 1 / -1; } .cgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .gside, .gcost { position: static; width: auto; } .gw { height: 640px; } }
@media (max-width: 760px) {
  .app { flex-direction: column; height: auto; min-height: 100vh; }
  .side { position: sticky; top: 0; z-index: 20; width: 100%; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .burger { display: inline-flex; }
  .brand { padding: 0; gap: 10px; } .brand .mk { width: 34px; height: 34px; font-size: 21px; } .brand span { font-size: 20px; }
  .nav { position: fixed; top: 0; bottom: 0; left: 0; z-index: 45; width: min(300px, 86vw); gap: 6px; background: var(--panel); border-right: 1px solid var(--line-2); padding: calc(78px + env(safe-area-inset-top)) 14px 24px max(14px, env(safe-area-inset-left)); overflow-y: auto; transform: translateX(-105%); transition: transform .28s ease; visibility: hidden; }
  .side.open { z-index: 47; }
  .side.open .nav { transform: none; visibility: visible; box-shadow: 0 0 60px rgba(0,0,0,.6); }
  .nav button { padding: 13px 14px; font-size: 16px; }
  .hangar { padding: 6px 8px; gap: 8px; border-radius: 14px; } .slot { width: 66px; height: 46px; } .hangar small { display: none; }
  .side > .who { display: none; }
  main { overflow: visible; }
  h1.t { font-size: 42px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2, .grid3 { grid-template-columns: 1fr; } .grid3 > :last-child { grid-column: auto; }
  .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: 1fr; }
  .modal { padding: 10px; } .dialog { padding: 18px; }
  .gw { height: 520px; } .gw .gstage { transform: scale(.62); transform-origin: 0 0; }
  .tablewrap { max-height: none; }
}
@media (max-width: 420px) { .hangar > div { display: none; } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } .nav { transition: none; } }

/* ---------- copiloto (modal) ---------- */
.msub { font-size: 12.5px; color: var(--dim); line-height: 1.4; }
.chain { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; }
.chain span { background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chain span.bad { border-color: #6B3A30; color: var(--bad); }
.chain i { color: var(--dim); font-style: normal; }
.impact { color: var(--good); font-weight: 700; }
.meta-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--dim); }
.src { display: flex; gap: 5px; flex-wrap: wrap; }
.src span { font-size: 11px; font-weight: 700; color: var(--mute); background: #1C1C20; border: 1px solid var(--line); border-radius: 99px; padding: 2px 8px; }
details.prompt summary { display: flex; justify-content: space-between; }
details.prompt[open] .chev { visibility: hidden; }
details.prompt .chev { font-weight: 600; color: var(--dim); }
.pact { display: flex; justify-content: flex-end; padding: 0 10px 10px; }
.sug.radar { border-color: #2E4A38; }
.row2 { display: flex; gap: 8px; flex-wrap: wrap; }
.sug .pr { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.sug .pr i { width: 8px; height: 8px; border-radius: 50%; }
.st-off { color: var(--dim); }
.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.formgrid .full { grid-column: 1 / -1; }
.right { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.costrow { display: grid; grid-template-columns: minmax(0, 1fr) 120px 40px; gap: 8px; align-items: center; }
.costrow input { min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); width: 100%; }
@media (max-width: 760px) { .formgrid { grid-template-columns: 1fr; } }
.olay { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.gwrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.gcol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.gw .gstage { position: absolute; left: 0; top: 0; width: 790px; height: 780px; transform-origin: 0 0; }
.gw .legend { z-index: 2; }
.gw .lbl.spin { animation-name: gira; }
@media (max-width: 1180px) { .gwrap { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .olay { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .gw .gstage { transform: none; } }
.kpi { padding: 12px 10px; }
.kpi .v { font-size: clamp(19px, 1.65vw, 25px); }
.kpi .v small { font-family: var(--sans); font-size: 11px; font-weight: 700; color: var(--dim); margin-right: 3px; vertical-align: 2px; }
.kpi.cost .v small, .kpi.good .v small, .kpi.bad .v small { color: inherit; opacity: .7; }
.prods.mes .n { font-size: clamp(24px, 2.3vw, 36px); white-space: nowrap; }
@media (max-width: 760px) { .kpi .v { font-size: 25px; } }
