/* ASA Intelligence — tema derivado da marca ASA Consulting (asaconsulting.com.br):
   azul-petróleo do logotipo, cobre de "CONSULTING", Montserrat + Inter. Fundo claro de papel, como um relatório de consultoria. */

:root {
  --bg: #f5f2ec;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --surface-3: #efeae1;
  --line: #e6dfd3;
  --line-strong: #d4cbbc;
  --ink: #13242b;
  --ink-2: #2e434c;
  --ink-3: #4f636b;
  --muted: #6f7f86;
  --faint: #a2adb1;
  --teal: #164a5a;
  --teal-hi: #1f6275;
  --teal-lo: #0d3240;
  --teal-soft: #164a5a10;
  --teal-line: #164a5a3d;
  --copper: #c5882e;
  --copper-hi: #d99a3a;
  --copper-lo: #9a6519;
  --copper-text: #96621a;
  --copper-soft: #c5882e17;
  --copper-line: #c5882e66;
  --copper-grad: linear-gradient(180deg, #dca44c 0%, #c5882e 55%, #a8711f 100%);
  --ok: #2c7a57;
  --warn: #b0731c;
  --alert: #b3432e;
  --info: #2c6a9f;
  --side: #0d2f3b;
  --side-2: #123b4a;
  --side-ink: #eef3f2;
  --side-muted: #eef3f29c;
  --side-line: #ffffff16;
  --shadow: 0 1px 2px #13242b0d, 0 4px 14px #13242b0a;

  --display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;

  --radius: 8px;
  --radius-sm: 5px;
  --sidebar-w: 258px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }
::selection { background: var(--copper); color: #fff; }

/* ---------- Tipografia ---------- */

.eyebrow {
  font-family: var(--display);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow.copper { color: var(--copper-text); }
.eyebrow.teal { color: var(--teal); }
h1, h2, h3 { margin: 0; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.num { font-variant-numeric: tabular-nums; }
.ok-t { color: var(--ok); }
.alert-t { color: var(--alert); }
.warn-t { color: var(--warn); }

/* ---------- Layout ---------- */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--side-2), var(--side) 40%);
  color: var(--side-ink);
  display: flex; flex-direction: column;
  padding: 24px 0 20px;
  z-index: 40;
  overflow-y: auto;
}
.brand { display: grid; justify-items: start; gap: 2px; padding: 0 26px 22px; text-decoration: none; border-bottom: 1px solid var(--side-line); }
.brand .mark { width: 128px; height: 41px; color: #f4f7f6; }
.brand-consulting { font-family: var(--display); font-weight: 500; font-size: .74rem; letter-spacing: .42em; color: var(--copper-hi); margin-left: 3px; }
.brand-sub { margin-top: 12px; font-family: var(--display); font-size: .56rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--side-ink); padding: 4px 10px; border: 1px solid #ffffff2e; border-radius: 3px; }

.nav { padding: 10px 0; flex: 1; }
.nav-group { padding: 16px 26px 6px; font-family: var(--display); font-size: .55rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #eef3f266; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 26px;
  text-decoration: none;
  font-size: .84rem;
  color: var(--side-muted);
  border-left: 2px solid transparent;
}
.nav a:hover { color: var(--side-ink); background: #ffffff08; }
.nav a.active { color: #fff; border-left-color: var(--copper); background: linear-gradient(90deg, #c5882e2b, transparent); }
.nav a.active svg { color: var(--copper-hi); }
.nav a .count { margin-left: auto; font-size: .7rem; color: var(--side-muted); font-variant-numeric: tabular-nums; }
.nav a .count.hot { background: var(--copper); color: #fff; padding: 0 7px; border-radius: 9px; font-weight: 600; }

.sidebar-foot { padding: 16px 26px 0; border-top: 1px solid var(--side-line); display: grid; gap: 8px; }
.proto-tag { font-family: var(--display); font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; color: var(--side-muted); }
.by { font-size: .72rem; color: var(--side-muted); }
.sidebar .link-btn { color: var(--side-ink); }
.link-btn { background: none; border: 0; padding: 0; text-align: left; font-size: .8rem; color: var(--teal); text-decoration: underline; text-decoration-color: var(--copper-line); text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--copper-text); }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 34px;
  background: #f5f2ecf0;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.search { position: relative; flex: 1; max-width: 560px; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input {
  width: 100%;
  padding: 9px 12px 9px 38px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--radius);
  font-size: .86rem;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--teal); }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  max-height: 60vh; overflow-y: auto;
  box-shadow: 0 16px 40px #13242b26;
}
.search-results a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; text-decoration: none; border-bottom: 1px solid var(--line); }
.search-results a:hover { background: var(--surface-2); }
.search-results .kind { margin-left: auto; }
.search-results .empty { padding: 14px; color: var(--muted); font-size: .86rem; }

.status-pill {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  font-size: .78rem;
  white-space: nowrap; color: var(--ink-3);
}
.status-pill b { color: var(--teal); font-weight: 600; }
.status-pill:hover { border-color: var(--teal-line); }

.icon-btn { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); width: 38px; height: 38px; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-3); }
.icon-btn:hover { border-color: var(--teal); color: var(--teal); }
.menu-btn { display: none; }
.scrim { display: none; }

.content { padding: 30px 34px 64px; max-width: 1480px; }

/* ---------- Cabeçalho de página ---------- */

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--display); font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 1.85rem); letter-spacing: -.01em; margin-top: 6px; line-height: 1.15; color: var(--teal-lo); }
.page-head p { margin: 8px 0 0; color: var(--muted); max-width: 720px; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; margin-bottom: 14px; }
.back:hover { color: var(--teal); }

/* ---------- Botões e controles ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--teal);
  background: var(--teal); color: #fff;
  border-radius: var(--radius);
  font-family: var(--display); font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--teal-hi); }
.btn.copper { background: var(--copper-grad); border-color: var(--copper); color: #fff; }
.btn.copper:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--teal); border-color: var(--teal-line); }
.btn.ghost:hover { background: var(--teal-soft); border-color: var(--teal); }
.btn.plain { background: var(--surface); color: var(--ink-2); border-color: var(--line-strong); }
.btn.plain:hover { border-color: var(--teal-line); color: var(--teal); }
.btn.sm { padding: 6px 10px; font-size: .62rem; }
.btn:disabled { opacity: .45; cursor: default; }

.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.seg button, .seg a { background: none; border: 0; padding: 7px 12px; font-family: var(--display); font-size: .64rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); cursor: pointer; text-decoration: none; white-space: nowrap; }
.seg > * + * { border-left: 1px solid var(--line-strong) !important; }
.seg button:hover, .seg a:hover { color: var(--teal); }
.seg .on { background: var(--teal); color: #fff; }
.seg .on:hover { color: #fff; }
.seg .n { opacity: .7; margin-left: 4px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
select, .input, textarea {
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: .86rem;
}
select { cursor: pointer; max-width: 100%; }
select:focus, .input:focus, textarea:focus { outline: none; border-color: var(--teal); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-family: var(--display); font-size: .6rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field .hint { font-size: .76rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.checkline { display: inline-flex; gap: 8px; align-items: center; font-size: .86rem; cursor: pointer; }
.checkline input { accent-color: var(--teal); width: 16px; height: 16px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
input[type=range] { accent-color: var(--copper); width: 100%; }

/* ---------- Cartões e grade ---------- */

.grid { display: grid; gap: 18px; }
.g-kpi { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.g-side { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
.stack { display: grid; gap: 18px; align-content: start; }
.mb { margin-bottom: 18px; }

.card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 20px 22px; min-width: 0; box-shadow: var(--shadow); }
.card.copper { border-color: var(--copper-line); background: linear-gradient(180deg, #c5882e0d, transparent 50%), var(--surface); }
.card.teal { background: linear-gradient(160deg, var(--teal-hi), var(--teal-lo)); color: #eef3f2; border-color: var(--teal-lo); }
.card.teal .eyebrow, .card.teal .muted { color: #eef3f2a8; }
.card.flat { background: var(--surface-2); box-shadow: none; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2 { font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; color: var(--teal-lo); }
.card.teal .card-head h2 { color: #fff; }
.card-head h2 svg { color: var(--copper); }
.card-head a, .card-head .link { font-size: .76rem; font-weight: 500; color: var(--teal); text-decoration: none; }
.card-head a:hover { color: var(--copper-text); }

.kpi { padding: 16px 18px; min-width: 0; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); text-decoration: none; }
.kpi > .eyebrow { min-height: 2.6em; font-size: .58rem; }
.kpi .value { font-family: var(--display); font-weight: 600; font-size: 1.85rem; white-space: nowrap; line-height: 1.05; margin-top: 8px; color: var(--teal-lo); }
.kpi .sub { font-size: .74rem; color: var(--muted); margin-top: 5px; }
.kpi.hl .value { color: var(--copper-text); }
a.kpi:hover { background: var(--surface-2); }
.g-kpi.k9 { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.g-kpi.k9 .kpi { padding: 14px 14px; }
.g-kpi.k9 .kpi .value { font-size: 1.6rem; }

/* ---------- Faixa principal ---------- */

.hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: radial-gradient(90% 140% at 100% 0%, #c5882e33 0%, transparent 50%), linear-gradient(150deg, var(--teal-hi), var(--teal-lo) 70%);
  color: #eef3f2;
  padding: 28px 32px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: center;
  margin-bottom: 18px;
}
.hero .eyebrow { color: var(--copper-hi); }
.hero h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.8vw, 2.1rem); letter-spacing: -.01em; margin: 8px 0; line-height: 1.12; color: #fff; }
.hero p { color: #eef3f2c4; margin: 0; max-width: 560px; }
.hero .flow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 16px; font-family: var(--display); font-size: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.hero .flow span.n { padding: 4px 8px; border: 1px solid #ffffff38; border-radius: 3px; }
.hero .flow span.n.on { border-color: var(--copper-hi); color: var(--copper-hi); }
.hero .flow span.a { color: var(--copper-hi); }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid #ffffff2a; }
.hero-stats a { padding: 2px 18px; border-right: 1px solid #ffffff1c; text-decoration: none; }
.hero-stats a:last-child { border-right: 0; }
.hero-stats .eyebrow { color: #eef3f2a8; }
.hero-stats b { display: block; font-family: var(--display); font-weight: 600; font-size: 2.4rem; line-height: 1.05; margin-top: 6px; color: #fff; }
.hero-stats span.s { font-size: .74rem; color: #eef3f2a8; }
.hero-stats a:hover b { color: var(--copper-hi); }

/* ---------- Chips ---------- */

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px;
  border: 1px solid var(--line-strong); border-radius: 20px;
  font-size: .7rem; font-weight: 500;
  white-space: nowrap; color: var(--ink-3); background: var(--surface);
  line-height: 1.5;
}
.chip.copper { color: var(--copper-text); border-color: var(--copper-line); background: var(--copper-soft); }
.chip.solid { background: var(--teal); color: #fff; border-color: var(--teal); }
.chip.teal { color: var(--teal); border-color: var(--teal-line); background: var(--teal-soft); }
.chip.ok { color: var(--ok); border-color: #2c7a5755; background: #2c7a570d; }
.chip.alert { color: var(--alert); border-color: #b3432e55; background: #b3432e0d; }
.chip.info { color: var(--info); border-color: #2c6a9f55; background: #2c6a9f0d; }
.chip.dashed { border-style: dashed; }
.chip.lvl-1 { background: var(--teal-lo); border-color: var(--teal-lo); color: #fff; }
.chip.lvl-2 { color: var(--copper-text); border-color: var(--copper-line); background: var(--copper-soft); }
.chip.lvl-3 { color: var(--info); border-color: #2c6a9f55; background: #2c6a9f0d; }
.chip.lvl-4 { color: var(--ok); border-color: #2c7a5755; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }

.mk { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: .72rem; font-weight: 700; flex: none; }
.mk-ok { background: #2c7a571a; color: var(--ok); }
.mk-partial { background: #b0731c1f; color: var(--warn); }
.mk-no { background: #b3432e1a; color: var(--alert); }

/* ---------- Gráficos ---------- */

.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 140px minmax(0, 1fr) 54px; gap: 12px; align-items: center; font-size: .82rem; text-decoration: none; }
.hbar .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.hbar .track { height: 8px; background: var(--surface-3); border-radius: 4px; position: relative; }
.hbar .fill { position: absolute; inset: 0 auto 0 0; background: var(--teal); border-radius: 4px; }
.hbar .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
a.hbar:hover .lbl { color: var(--teal); }
.legend { display: flex; gap: 16px; font-size: .74rem; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 6px; border-radius: 2px; display: inline-block; }
.chart { width: 100%; }
.chart text { font-family: var(--sans); font-size: 11px; fill: var(--muted); }
.chart .bar { fill: var(--teal); }
.chart .bar:hover { fill: var(--copper); }
.chart .grid-line { stroke: var(--line); }
.chart .hit { fill: transparent; }

.band { position: relative; height: 40px; margin: 22px 0 4px; }
.band .track { position: absolute; left: 0; right: 0; top: 18px; height: 6px; background: var(--surface-3); border-radius: 3px; }
.band .mkt { position: absolute; top: 18px; height: 6px; background: var(--teal-line); border-radius: 3px; }
.band .range { position: absolute; top: 15px; height: 12px; background: var(--copper); border-radius: 3px; opacity: .85; }
.band .mark { position: absolute; top: 8px; width: 2px; height: 26px; background: var(--ink); }
.band .mark span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: .7rem; white-space: nowrap; color: var(--ink-2); font-weight: 500; }
.band-ends { display: flex; justify-content: space-between; gap: 10px; font-size: .72rem; color: var(--muted); flex-wrap: wrap; }
.legend-inline { display: inline-flex; gap: 6px; align-items: center; }
.legend-inline i { display: inline-block; width: 12px; height: 6px; border-radius: 2px; }
.legend-inline i.k-mkt { background: var(--teal-line); }
.legend-inline i.k-asa { background: var(--copper); margin-left: 8px; }

.tooltip {
  position: fixed; z-index: 90; pointer-events: none;
  background: var(--teal-lo); color: #fff; border-radius: 5px;
  padding: 7px 10px; font-size: .76rem; line-height: 1.35;
  opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s;
  max-width: 300px;
}
.tooltip.show { opacity: 1; transform: none; }

/* ---------- Listas e tabelas ---------- */

.list { display: grid; }
.list-row { display: flex; align-items: center; gap: 13px; padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; min-width: 0; }
.list-row:first-child { border-top: 0; padding-top: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .title { font-size: .88rem; font-weight: 500; }
.list-row .meta { font-size: .78rem; color: var(--muted); }
a.list-row:hover .title { color: var(--teal); }
.list-row > svg { color: var(--faint); flex: none; }
.clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.task-ico { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); }
.task-ico.alert { color: var(--alert); background: #b3432e14; }
.task-ico.copper { color: var(--copper-text); background: var(--copper-soft); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.card .table-wrap { box-shadow: none; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th { text-align: left; font-family: var(--display); font-weight: 600; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover td { background: var(--surface-2); }
td.r, th.r { text-align: right; }
td.c, th.c { text-align: center; }
td.best { background: #2c7a570c; font-weight: 600; color: var(--ok); }
.cell-main { font-weight: 500; }
.cell-sub { font-size: .74rem; color: var(--muted); }

.avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--surface-3); display: inline-grid; place-items: center; font-family: var(--display); font-size: .64rem; font-weight: 600; color: var(--teal); }
.avatar.lg { width: 62px; height: 62px; font-size: .95rem; background: var(--teal); color: #fff; }
.avatar.copper { background: var(--copper-soft); color: var(--copper-text); }

/* ---------- Aeronaves ---------- */

.plane { background: var(--surface-3); border-radius: var(--radius); overflow: hidden; flex: none; position: relative; }
.plane svg { width: 100%; height: 100%; }
.plane.masked svg { filter: blur(7px) grayscale(.5); transform: scale(1.06); }
.plane .lock { position: absolute; inset: 0; display: grid; place-items: center; color: var(--teal-lo); }
.plane .lock span { display: grid; place-items: center; gap: 8px; font-family: var(--display); font-size: .6rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.plane .lock svg { width: 24px; height: 24px; filter: none; transform: none; }

.ac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
.ac-tile { position: relative; text-decoration: none; display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.ac-tile:hover { border-color: var(--teal-line); box-shadow: 0 8px 24px #13242b14; }
.ac-tile .plane { aspect-ratio: 16 / 9; border-radius: 0; }
.ac-tile .body { padding: 13px 15px 15px; display: grid; gap: 7px; }
.ac-tile .make { font-family: var(--display); font-size: .58rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-text); }
.ac-tile .name { font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--teal-lo); }
.ac-tile .specs { font-size: .78rem; color: var(--muted); }
.ac-tile .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 9px; border-top: 1px solid var(--line); font-size: .84rem; font-weight: 500; }
.ac-tile .tl { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.ac-tile .tr { position: absolute; top: 10px; right: 10px; }
.score-badge { display: inline-grid; place-items: center; min-width: 38px; padding: 3px 6px; border-radius: 5px; background: var(--teal); font-family: var(--display); font-weight: 700; font-size: .8rem; color: #fff; }

.mini-ac { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-decoration: none; padding: 9px 0; border-top: 1px solid var(--line); }
.mini-ac:first-child { border-top: 0; padding-top: 0; }
.mini-ac .plane { width: 76px; height: 43px; }
.mini-ac .title { font-size: .86rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-ac .meta { font-size: .74rem; color: var(--muted); }
a.mini-ac:hover .title { color: var(--teal); }

.dossier-head { display: grid; grid-template-columns: minmax(260px, 440px) minmax(0, 1fr); gap: 32px; margin-bottom: 22px; align-items: start; }
.dossier-head .plane { aspect-ratio: 16 / 9; border: 1px solid var(--line); }
.dossier-head h1 { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.01em; margin: 8px 0 4px; line-height: 1.1; color: var(--teal-lo); }
.dossier-head .sub { color: var(--ink-3); }
.dossier-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 18px; }
.facts div { padding: 12px 14px 12px 0; min-width: 0; }
.facts div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.facts b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-top: 4px; color: var(--teal-lo); }
.facts div:nth-child(4n + 1) { padding-left: 0; border-left: 0; }
.facts div:nth-child(n + 5) { border-top: 1px solid var(--line); }
.facts .s { font-size: .74rem; color: var(--muted); }
.stats5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats5 > div { padding: 12px 14px; min-width: 0; border-left: 1px solid var(--line); }
.stats5 > div:first-child { border-left: 0; padding-left: 0; }
.stats5 b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-top: 4px; color: var(--teal-lo); }
.stats5 .s { font-size: .74rem; color: var(--muted); }

.dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); font-size: .86rem; }
.dl dt, .dl dd { padding: 8px 0; border-top: 1px solid var(--line); margin: 0; }
.dl dt { color: var(--muted); font-size: .76rem; padding-top: 9px; }
.dl dd.empty { color: var(--faint); font-style: italic; }

.progress { height: 5px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--teal); }
.progress.warn i { background: var(--alert); }
.progress.copper i { background: var(--copper); }

.score-break { display: grid; gap: 9px; }
.score-line { display: grid; grid-template-columns: minmax(0, 1fr) 120px 30px; gap: 12px; align-items: center; font-size: .82rem; }
.score-line b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.score-total { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.score-total b { font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--teal-lo); }
.score-total span { color: var(--muted); font-size: .84rem; }
.card.teal .score-total b { color: #fff; }

.match-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 96px; gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.match-row:first-child { border-top: 0; padding-top: 0; }
.match-row .rank { font-family: var(--display); font-size: .8rem; color: var(--faint); font-weight: 600; }
.match-row .who { min-width: 0; }
.match-row .who a { text-decoration: none; font-size: .9rem; font-weight: 500; }
.match-row .who a:hover { color: var(--teal); }
.why { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 4px; font-size: .75rem; color: var(--muted); }
.why span.ok::before { content: '✓ '; color: var(--ok); font-weight: 700; }
.why span.partial::before { content: '! '; color: var(--warn); font-weight: 700; }
.why span.no::before { content: '× '; color: var(--alert); font-weight: 700; }
.match-row .acts { grid-column: 2 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.score { text-align: right; }
.score .eyebrow { display: block; font-size: .52rem; }
.score b { font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--teal-lo); }
.score.hi b { color: var(--copper-text); }
.score i { display: block; height: 3px; background: var(--surface-3); margin-top: 3px; border-radius: 2px; overflow: hidden; }
.score i em { display: block; height: 100%; background: var(--teal); }
.score.hi i em { background: var(--copper); }
.note-ai { font-size: .76rem; color: var(--muted); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

/* Quadro de critérios do match (✓ ! ×) */
.crit { display: grid; gap: 0; }
.crit-row { display: grid; grid-template-columns: minmax(0, 150px) 24px minmax(0, 1fr) 44px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: .84rem; }
.crit-row:first-child { border-top: 0; }
.crit-row .k { color: var(--ink-2); font-weight: 500; }
.crit-row .t { color: var(--muted); font-size: .8rem; }
.crit-row .w { text-align: right; font-size: .72rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.crit-row .k .x { color: var(--copper-text); font-size: .68rem; margin-left: 4px; }

/* Parecer */
.pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pc h3 { font-family: var(--display); font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
.pc h3.pro { color: var(--ok); }
.pc h3.con { color: var(--warn); }
.pc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .86rem; }
.pc li { padding-left: 16px; position: relative; }
.pc li::before { content: ''; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; }
.pc .pros li::before { background: var(--ok); }
.pc .cons li::before { background: var(--warn); }
.verdict { border-left: 3px solid var(--copper); padding: 12px 16px; background: var(--copper-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .9rem; color: var(--ink-2); }
.verdict .eyebrow { color: var(--copper-text); margin-bottom: 6px; }
.verdict p { margin: 0 0 6px; }
.verdict p:last-child { margin-bottom: 0; }

.timeline { display: grid; }
.tl { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; position: relative; }
.tl::before { content: ''; position: absolute; left: 6px; top: 14px; bottom: 0; width: 1px; background: var(--line-strong); }
.tl:last-child::before { display: none; }
.tl .pt { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--teal); background: var(--surface); margin-top: 4px; }
.tl.hl .pt { background: var(--copper); border-color: var(--copper); }
.tl.muted .pt { border-color: var(--faint); }
.tl .what { font-size: .86rem; }
.tl .when { font-size: .74rem; color: var(--muted); }

.stepper { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.stepper div { padding-top: 9px; border-top: 3px solid var(--line-strong); font-size: .68rem; color: var(--muted); line-height: 1.3; overflow-wrap: break-word; hyphens: auto; min-width: 0; }
.stepper div.done { border-top-color: var(--teal-line); color: var(--ink-3); }
.stepper div.cur { border-top-color: var(--copper); color: var(--copper-text); font-weight: 600; }

/* ---------- Clientes ---------- */

.client-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-bottom: 22px; }
.client-head h1 { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.8vw, 2rem); color: var(--teal-lo); line-height: 1.15; }
.client-head .sub { color: var(--ink-3); margin-top: 4px; }
.pref-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; }
.pref-grid .eyebrow { margin-bottom: 4px; }
.pref-grid div { font-size: .88rem; }
.hist-kind { font-family: var(--display); font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hist-Aquisição { color: var(--teal); }
.hist-Venda { color: var(--copper-text); }
.hist-Recusa { color: var(--alert); }
.hist-Avaliação, .hist-Consultoria, .hist-Mandato { color: var(--info); }

/* ---------- Mandatos ---------- */

.mandate { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); box-shadow: var(--shadow); text-decoration: none; }
.mandate + .mandate { margin-top: 14px; }
a.mandate:hover { border-color: var(--teal-line); }
.mandate .m-left { padding: 18px 20px; border-right: 1px solid var(--line); }
.mandate .m-right { padding: 18px 20px; }
.mandate .m-title { font-family: var(--display); font-weight: 600; font-size: 1.02rem; margin: 6px 0 10px; color: var(--teal-lo); }
.need-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.need-grid div { padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.need-grid div:nth-child(4n) { border-right: 0; }
.need-grid div:nth-last-child(-n + 4) { border-bottom: 0; }
.need-grid b { display: block; font-family: var(--display); font-weight: 600; font-size: .98rem; margin-top: 4px; color: var(--teal-lo); }
.subj { display: grid; gap: 7px; }
.subj-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: center; font-size: .84rem; }
.pips { display: flex; gap: 4px; }
.pips i { width: 22px; height: 6px; border-radius: 3px; background: var(--surface-3); }
.pips i.on { background: var(--copper); }
.prio { display: grid; gap: 6px; counter-reset: p; }
.prio div { display: flex; gap: 10px; align-items: center; font-size: .88rem; counter-increment: p; }
.prio div::before { content: counter(p); width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: .7rem; font-weight: 700; flex: none; }
.shortlist-tag { font-family: var(--display); font-size: .56rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.rec-tag { font-family: var(--display); font-size: .56rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-text); }

/* ---------- Off-market ---------- */

.levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; background: var(--surface); box-shadow: var(--shadow); }
.levels div { padding: 16px 18px; border-right: 1px solid var(--line); }
.levels div:last-child { border-right: 0; }
.levels b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.8rem; margin: 6px 0 0; color: var(--teal-lo); }
.levels .s { font-size: .78rem; color: var(--muted); }
.private { border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: 280px minmax(0, 1fr); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.private + .private { margin-top: 14px; }
.private .plane { border-radius: 0; min-height: 180px; height: 100%; }
.private .body { padding: 18px 22px; display: grid; gap: 10px; align-content: start; }
.private h3 { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--teal-lo); }
.opp-code { font-family: var(--display); font-weight: 700; font-size: .64rem; letter-spacing: .18em; color: var(--copper-text); }
.empty-box { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 16px; font-size: .86rem; color: var(--muted); background: var(--surface-2); }

/* ---------- Kanban e Deal Room ---------- */

.board { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 14px; align-items: flex-start; }
.col { flex: 0 0 214px; background: var(--surface-3); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; max-height: calc(100vh - 240px); }
.col-head { padding: 11px 12px 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.col-head h3 { font-family: var(--display); font-weight: 600; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-lo); }
.col-head .n { font-size: .74rem; color: var(--muted); }
.col-sum { padding: 0 12px 8px; font-size: .72rem; color: var(--muted); }
.col-body { padding: 0 8px 10px; display: grid; gap: 8px; overflow-y: auto; min-height: 70px; align-content: start; }
.col.drop { border-color: var(--copper); background: var(--copper-soft); }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px; display: grid; gap: 7px; cursor: grab; text-decoration: none; box-shadow: var(--shadow); }
.kcard:hover { border-color: var(--teal-line); }
.kcard.dragging { opacity: .4; }
.kcard .plane { height: 58px; }
.kcard .code { font-family: var(--display); font-size: .56rem; font-weight: 700; letter-spacing: .12em; color: var(--copper-text); display: flex; justify-content: space-between; gap: 6px; }
.kcard .t { font-size: .82rem; font-weight: 500; line-height: 1.3; }
.kcard .bot { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: .72rem; color: var(--muted); }
.kcard .avatar { width: 22px; height: 22px; font-size: .5rem; }

.room-head { border-radius: var(--radius); background: radial-gradient(90% 160% at 100% 0%, #c5882e30 0%, transparent 50%), linear-gradient(150deg, var(--teal-hi), var(--teal-lo) 70%); color: #eef3f2; padding: 22px 24px; margin-bottom: 18px; }
.room-head .eyebrow { color: var(--copper-hi); }
.room-head h1 { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin: 6px 0 4px; color: #fff; }
.room-head .muted { color: #eef3f2a8; }
.room-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid #ffffff22; margin-top: 16px; }
.room-grid > div { padding: 12px 12px 0 0; min-width: 0; }
.room-grid > div + div { padding-left: 12px; border-left: 1px solid #ffffff22; }
.room-grid .eyebrow { color: #eef3f2a0; }
.room-grid b { display: block; font-family: var(--display); font-weight: 600; font-size: .98rem; margin-top: 4px; word-break: break-word; color: #fff; }
.room-head .stepper div { color: #eef3f280; border-top-color: #ffffff2a; }
.room-head .stepper div.done { color: #eef3f2c0; border-top-color: #eef3f270; }
.room-head .stepper div.cur { color: var(--copper-hi); border-top-color: var(--copper-hi); }

.dd-group + .dd-group { margin-top: 16px; }
.dd-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 128px 110px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: .86rem; }
.dd-row .note { font-size: .76rem; color: var(--muted); }
.dd-row select { padding: 4px 7px; font-size: .78rem; }
.dd-row select.st-ok { color: var(--ok); border-color: #2c7a5766; }
.dd-row select.st-pend { color: var(--warn); border-color: #b0731c66; }
.dd-row select.st-prob { color: var(--alert); border-color: #b3432e66; }
.sem { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.sem-ok { background: var(--ok); }
.sem-pend { background: #e0a83a; }
.sem-prob { background: var(--alert); }
.task { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); font-size: .86rem; }
.task:first-child { border-top: 0; }
.task input { accent-color: var(--teal); margin-top: 3px; }
.task.done .txt { color: var(--muted); text-decoration: line-through; }
.composer { display: grid; gap: 10px; }
.composer textarea, .composer input { width: 100%; }
.composer-foot { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.offer { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .86rem; align-items: center; }
.offer:first-child { border-top: 0; }

/* ---------- Comparador ---------- */

.cmp-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.cmp-pick label { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface); cursor: pointer; }
.cmp-pick label.on { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); font-weight: 500; }
.cmp-pick input { accent-color: var(--teal); }
.cmp th.ac-col { text-transform: none; letter-spacing: 0; font-size: .86rem; color: var(--teal-lo); font-family: var(--display); vertical-align: top; min-width: 170px; }
.cmp th.ac-col .plane { height: 74px; margin-bottom: 8px; }
.cmp td:first-child { color: var(--muted); font-size: .8rem; white-space: nowrap; }

/* ---------- Mercado ---------- */

.indic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.indic div { padding: 14px 16px; border-right: 1px solid var(--line); }
.indic div:last-child { border-right: 0; }
.indic b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-top: 4px; }
.lv-Alta { color: var(--ok); }
.lv-Média { color: var(--warn); }
.lv-Baixa { color: var(--alert); }

/* ---------- Knowledge e assistente ---------- */

.kb { display: grid; gap: 14px; }
.kb-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; box-shadow: var(--shadow); }
.kb-item h3 { font-family: var(--display); font-size: .98rem; font-weight: 600; color: var(--teal-lo); margin: 6px 0 6px; }
.kb-item p { margin: 0; font-size: .88rem; color: var(--ink-2); }
.kb-item .foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; font-size: .76rem; color: var(--muted); }
mark { background: #c5882e33; color: inherit; border-radius: 2px; padding: 0 1px; }

.ask { display: grid; gap: 10px; }
.ask-box { display: flex; gap: 10px; }
.ask-box input { flex: 1; padding: 11px 14px; font-size: .92rem; }
.prompts { display: flex; flex-wrap: wrap; gap: 8px; }
.prompts button { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px; padding: 6px 12px; font-size: .8rem; cursor: pointer; text-align: left; color: var(--ink-2); }
.prompts button:hover { border-color: var(--teal); color: var(--teal); }
.answer { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.answer + .answer { margin-top: 14px; }
.answer .q { padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-weight: 500; display: flex; gap: 10px; align-items: center; border-radius: var(--radius) var(--radius) 0 0; }
.answer .q svg { color: var(--copper); flex: none; }
.answer .a { padding: 16px 18px; }
.answer .a p { margin: 0 0 10px; }
.answer .src { font-size: .74rem; color: var(--muted); margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ---------- Relatório (ASA Aircraft Advisory Report) ---------- */

.report { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); max-width: 940px; margin: 0 auto; box-shadow: var(--shadow); }
.report-cover { background: linear-gradient(150deg, var(--teal-hi), var(--teal-lo) 70%); color: #eef3f2; padding: 34px 42px; border-radius: var(--radius) var(--radius) 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.report-cover .mark { width: 120px; height: 38px; color: #fff; }
.report-cover .eyebrow { color: var(--copper-hi); }
.report-cover h1 { font-family: var(--display); font-weight: 600; font-size: 1.7rem; letter-spacing: .04em; margin: 10px 0 0; color: #fff; }
.report-cover dl { display: grid; grid-template-columns: auto auto; gap: 4px 14px; margin: 0; font-size: .84rem; }
.report-cover dt { color: #eef3f2a0; }
.report-cover dd { margin: 0; color: #fff; }
.report-body { padding: 10px 42px 36px; }
.report-sec { padding: 22px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.report-sec:last-child { border-bottom: 0; }
.report-sec h2 { font-family: var(--display); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--copper-text); margin-bottom: 12px; display: flex; gap: 10px; align-items: baseline; }
.report-sec h2 span { color: var(--faint); }
.report-sec p { margin: 0 0 8px; }
.report-foot { padding: 16px 42px; border-top: 1px solid var(--line); font-size: .74rem; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.shortlist-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sl-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sl-card.rec { border-color: var(--copper); box-shadow: 0 0 0 1px var(--copper); }
.sl-card .plane { aspect-ratio: 16 / 9; border-radius: 0; }
.sl-card .b { padding: 10px 12px; font-size: .82rem; }
.sl-card .b > b { font-family: var(--display); color: var(--teal-lo); display: block; font-size: .9rem; }

/* ---------- Portal ASA Private Client ---------- */

.portal { max-width: 1160px; margin: 0 auto; }
.persona { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; padding: 10px 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius); font-size: .82rem; color: var(--muted); background: var(--surface-2); }
.portal-hero { border-radius: var(--radius); background: radial-gradient(80% 140% at 100% 0%, #c5882e38 0%, transparent 55%), linear-gradient(150deg, var(--teal-hi), var(--teal-lo) 70%); color: #eef3f2; padding: 30px 34px; margin-bottom: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.portal-hero .mark { width: 104px; height: 33px; color: #fff; }
.portal-hero .eyebrow { color: var(--copper-hi); }
.portal-hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2.1rem); margin: 10px 0 6px; color: #fff; }
.portal-hero p { margin: 0; color: #eef3f2c4; }
.advisor { display: flex; gap: 12px; align-items: center; background: #ffffff12; border: 1px solid #ffffff22; border-radius: var(--radius); padding: 12px 14px; }
.advisor .avatar { background: var(--copper); color: #fff; }
.next-step { display: flex; gap: 14px; align-items: center; border: 1px solid var(--copper-line); background: var(--copper-soft); border-radius: var(--radius); padding: 14px 18px; }
.next-step .task-ico { background: var(--copper); color: #fff; }

/* ---------- Roteiro ---------- */

.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-family: var(--display); font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; background: var(--surface); }
.chain span.node { padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--ink-3); }
.chain span.node.on { border-color: var(--copper); color: var(--copper-text); background: var(--copper-soft); }
.chain span.arrow { color: var(--copper); }
.phase { border-top: 1px solid var(--line-strong); padding: 20px 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
.phase h3 { font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin-top: 6px; color: var(--teal-lo); }
.phase ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 24px; font-size: .88rem; }
.phase li { padding: 3px 0; break-inside: avoid; }
.phase li.in::before { content: '■ '; font-size: .6rem; vertical-align: 2px; color: var(--copper); }
.phase li.out { color: var(--muted); }
.phase li.out::before { content: '□ '; font-size: .6rem; vertical-align: 2px; }

/* ---------- Modal, toast, notificações ---------- */

.modal { position: fixed; inset: 0; z-index: 80; background: #0d2f3b8c; display: none; place-items: center; padding: 20px; }
.modal.open { display: grid; }
.modal-panel { background: var(--surface); border-radius: var(--radius); width: min(600px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 24px 26px; box-shadow: 0 24px 60px #0d2f3b40; }
.modal-panel h2 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin: 6px 0 18px; color: var(--teal-lo); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); z-index: 95; background: var(--teal-lo); color: #fff; font-weight: 500; padding: 12px 18px; border-radius: var(--radius); font-size: .86rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); border-left: 3px solid var(--copper); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.lang-switch button { padding: 7px 10px; }
.notif-wrap { position: relative; }
.bell { position: relative; }
.bell .badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--copper); color: #fff; font-weight: 700; font-size: .62rem; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.notif-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(420px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 16px 40px #13242b26; z-index: 50; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.notif { display: flex; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .84rem; }
.notif:hover { background: var(--surface-2); }
.notif.unread { background: #c5882e0b; }
.notif.unread .grow > div:first-child { font-weight: 600; }
.notif .grow { flex: 1; min-width: 0; }

.stars { color: var(--copper); letter-spacing: 2px; font-size: .8rem; }
.stars i { color: var(--line-strong); font-style: normal; }
.matrix td.c input { accent-color: var(--teal); width: 16px; height: 16px; cursor: pointer; }

/* ---------- Impressão (relatório e comparador em PDF) ---------- */

@media print {
  @page { margin: 12mm; }
  body { background: #fff; font-size: 12px; }
  .sidebar, .topbar, .no-print, .toast, .tooltip, .modal { display: none !important; }
  .main { margin: 0; }
  .content { padding: 0; max-width: none; }
  .report, .card, .table-wrap { box-shadow: none; }
  .report { border: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Responsivo ---------- */

@media (max-width: 1280px) {
  .g-main, .g-side { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { border-left: 0; border-top: 1px solid #ffffff2a; padding-top: 14px; }
  .hero-stats a:first-child { padding-left: 0; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-kpi.k9 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .room-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; }
  .room-grid > div:nth-child(4) { border-left: 0; padding-left: 0; }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; }
  .scrim.show { display: block; position: fixed; inset: 0; background: #0d2f3b8c; z-index: 35; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 10px 16px; gap: 8px; }
  .status-pill { display: none; }
  .content { padding: 20px 16px 48px; }
  .g-2, .g-3, .g-4, .dossier-head, .mandate, .pc, .shortlist-cards, .report-cover { grid-template-columns: minmax(0, 1fr); }
  .mandate .m-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .g-kpi, .g-kpi.k9 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi .value { font-size: 1.5rem; }
  .facts, .need-grid, .indic, .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .facts div:nth-child(2n) { border-left: 1px solid var(--line); padding-left: 14px; }
  .facts div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .need-grid div { border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .indic div, .levels div { border-right: 0; border-bottom: 1px solid var(--line); }
  .pref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats5 > div { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--line); }
  .stats5 > div:nth-child(even) { border-left: 1px solid var(--line); padding-left: 14px; }
  .stats5 > div:last-child { border-bottom: 0; }
  .eyebrow { overflow-wrap: anywhere; }
  .private { grid-template-columns: minmax(0, 1fr); }
  .private .plane { min-height: 0; aspect-ratio: 16 / 9; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .phase { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .phase ul { columns: 1; }
  .dl { grid-template-columns: 120px minmax(0, 1fr); }
  .hbar { grid-template-columns: 96px minmax(0, 1fr) 46px; }
  .hero { padding: 22px 18px; }
  .hero-stats a { padding: 0 10px; }
  .hero-stats b { font-size: 1.8rem; }
  .stepper { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; }
  .filters > select, .filters > .seg { flex: 1 1 160px; min-width: 0; }
  .seg { overflow-x: auto; }
  .col { max-height: none; }
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .room-grid > div:nth-child(even) { border-left: 1px solid #ffffff22; padding-left: 12px; }
  .client-head { grid-template-columns: auto minmax(0, 1fr); }
  .client-head > :last-child { grid-column: 1 / -1; }
  .crit-row { grid-template-columns: minmax(0, 110px) 22px minmax(0, 1fr); }
  .crit-row .w { display: none; }
  .dd-row { grid-template-columns: 18px minmax(0, 1fr) 110px; }
  .dd-row > :last-child { grid-column: 2 / -1; }
  .report-cover, .report-body, .report-foot { padding-left: 18px; padding-right: 18px; }
  .portal-hero { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  .score-line { grid-template-columns: minmax(0, 1fr) 80px 28px; }
  .subj-row { grid-template-columns: 120px minmax(0, 1fr); }
  .ask-box { flex-direction: column; }
}
