/* Visual F: estrutura do portal com a leveza da direção minimalista. Cores do logotipo: laranja #F68121, preto #231F20, branco. */
:root {
  --bg: #FFFFFF; --surface: #FFFFFF; --soft: #F7F6F5; --soft2: #F1EFED; --line: #EEEBE9; --line2: #E2DEDB;
  --ink: #3A3435; --title: #231F20; --muted: #857F80; --faint: #B3AEAF;
  --accent: #F68121; --accent-ink: #B4570F; --accent-soft: #FEF2E7; --hot-line: rgba(246,129,33,0.28); --on-accent: #231F20;
  --ok: #0E8F67; --ok-soft: rgba(18,184,134,0.10); --ok-dot: #12B886;
  --warn: #8A5B00; --warn-soft: rgba(242,179,61,0.16); --warn-dot: #F2B33D;
  --bad: #D92D20; --bad-soft: rgba(217,45,32,0.08);
  --blue: #231F20; --blue-soft: #F1EFED; --blue-ink: #231F20; --on-blue: #FFFFFF;
  --violet: #231F20; --violet-soft: #F1EFED; --violet-dot: #B3AEAF;
  --navy: #8A8485; --rec: #D9D4D1; --spark: #CFC9C7; --black: #231F20;
  --side-bg: #FFFFFF; --side-hair: #EEEBE9; --side-text: #3A3435; --side-gray: #B3AEAF; --side-icon: #857F80; --side-active: #F7F6F5;
  --sbtn-bg: #FFFFFF; --sbtn-bd: #EEEBE9; --sbtn-fg: #3A3435; --nav-on: #231F20;
  --hero: #FEF2E7; --hero-fg: #231F20; --hero-chip: #231F20; --hero-chip-fg: #FFFFFF;
  --login-bg: #F7F6F5; --login-fg: #231F20; --login-sub: #857F80; --login-chip: #FFFFFF; --login-bd: #E2DEDB;
  --head-bg: rgba(255,255,255,0.88);
  --tip-bg: #231F20; --tip-fg: #FFFFFF;
  --shadow: none;
  --shadow-pop: 0 24px 50px -20px rgba(35,31,32,0.30), 0 2px 6px rgba(35,31,32,0.05);
  --scrim: rgba(35,31,32,0.32);
  --logo-filter: none;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --r-lg: 18px; --r-md: 14px; --r-sm: 10px;
  --side-w: 244px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0F0D0E; --surface: #0F0D0E; --soft: #181516; --soft2: #1F1B1C; --line: #242021; --line2: #332E2F;
  --ink: #D9D4D3; --title: #F4F2F1; --muted: #8E8788; --faint: #5E5859;
  --accent-ink: #FFA25A; --accent-soft: rgba(246,129,33,0.11); --hot-line: rgba(246,129,33,0.35); --on-accent: #231F20;
  --ok: #3DD9A4; --ok-soft: rgba(61,217,164,0.12); --warn: #F6CB72; --warn-soft: rgba(242,179,61,0.13);
  --bad: #FF8A80; --bad-soft: rgba(255,138,128,0.12);
  --blue: #F4F2F1; --blue-soft: #1F1B1C; --blue-ink: #F4F2F1; --on-blue: #231F20;
  --violet: #F4F2F1; --violet-soft: #1F1B1C; --navy: #8E8788; --rec: #3A3435; --spark: #4A4344;
  --side-bg: #0F0D0E; --side-hair: #242021; --side-text: #D9D4D3; --side-gray: #5E5859; --side-icon: #8E8788; --side-active: #181516;
  --sbtn-bg: #0F0D0E; --sbtn-bd: #242021; --sbtn-fg: #D9D4D3; --nav-on: #F4F2F1;
  --hero: rgba(246,129,33,0.11); --hero-fg: #F4F2F1; --hero-chip: #F68121; --hero-chip-fg: #231F20;
  --login-bg: #181516; --l1-card: #161314; --login-fg: #F4F2F1; --login-sub: #8E8788; --login-chip: #0F0D0E; --login-bd: #332E2F;
  --head-bg: rgba(15,13,14,0.88); --tip-bg: #F4F2F1; --tip-fg: #231F20;
  --shadow: none; --shadow-pop: 0 24px 50px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05);
  --scrim: rgba(0,0,0,0.55); --logo-filter: none; color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0F0D0E; --surface: #0F0D0E; --soft: #181516; --soft2: #1F1B1C; --line: #242021; --line2: #332E2F;
  --ink: #D9D4D3; --title: #F4F2F1; --muted: #8E8788; --faint: #5E5859;
  --accent-ink: #FFA25A; --accent-soft: rgba(246,129,33,0.11); --hot-line: rgba(246,129,33,0.35); --on-accent: #231F20;
  --ok: #3DD9A4; --ok-soft: rgba(61,217,164,0.12); --warn: #F6CB72; --warn-soft: rgba(242,179,61,0.13);
  --bad: #FF8A80; --bad-soft: rgba(255,138,128,0.12);
  --blue: #F4F2F1; --blue-soft: #1F1B1C; --blue-ink: #F4F2F1; --on-blue: #231F20;
  --violet: #F4F2F1; --violet-soft: #1F1B1C; --navy: #8E8788; --rec: #3A3435; --spark: #4A4344;
  --side-bg: #0F0D0E; --side-hair: #242021; --side-text: #D9D4D3; --side-gray: #5E5859; --side-icon: #8E8788; --side-active: #181516;
  --sbtn-bg: #0F0D0E; --sbtn-bd: #242021; --sbtn-fg: #D9D4D3; --nav-on: #F4F2F1;
  --hero: rgba(246,129,33,0.11); --hero-fg: #F4F2F1; --hero-chip: #F68121; --hero-chip-fg: #231F20;
  --login-bg: #181516; --l1-card: #161314; --login-fg: #F4F2F1; --login-sub: #8E8788; --login-chip: #0F0D0E; --login-bd: #332E2F;
  --head-bg: rgba(15,13,14,0.88); --tip-bg: #F4F2F1; --tip-fg: #231F20;
  --shadow: none; --shadow-pop: 0 24px 50px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05);
  --scrim: rgba(0,0,0,0.55); --logo-filter: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; transition: background-color .35s ease; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--head-bg); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; color: var(--title); text-wrap: balance; }
p { margin: 0; }
svg.i { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 15px; height: 15px; } svg.i.xs { width: 13px; height: 13px; } svg.i.lg { width: 22px; height: 22px; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .t { color: var(--title); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Estrutura ---------- */
.app { display: flex; min-height: 100%; }
.side { flex: 0 0 var(--side-w); width: var(--side-w); position: sticky; top: 0; height: 100vh; align-self: flex-start; z-index: 30; background: var(--side-bg); border-right: 1px solid var(--side-hair); color: var(--side-text); padding: 14px 10px 12px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; transition: flex-basis .32s cubic-bezier(.3,.8,.25,1), width .32s cubic-bezier(.3,.8,.25,1); }
.app.col .side { --side-w: 68px; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 2px 8px; min-height: 36px; }
.app.col .side-head { flex-direction: column; padding: 4px 0; }
.side-logo { width: 128px; height: auto; filter: var(--logo-filter); display: block; }
.app.col .side-logo { width: 34px; height: 30px; object-fit: cover; object-position: left center; }
.side-ico-btn { width: 30px; height: 30px; border: none; border-radius: 8px; background: transparent; color: var(--side-icon); display: flex; align-items: center; justify-content: center; }
.side-ico-btn:hover { background: var(--side-active); }
.side-search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--side-hair); background: var(--surface); color: var(--muted); font-size: 13px; width: 100%; text-align: left; }
.side-search kbd { margin-left: auto; font-family: var(--font); font-size: 11px; color: var(--side-gray); }
.app.col .side-search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--side-hair); background: var(--surface); color: var(--muted); font-size: 13px; width: 100%; text-align: left; }
.side-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 14px; margin: 0 -4px; padding: 0 4px; scrollbar-width: none; }
.side-group { display: flex; flex-direction: column; gap: 1px; }
.side-group-t { font-size: 11px; font-weight: 600; color: var(--side-gray); padding: 0 10px 4px; white-space: nowrap; letter-spacing: .2px; }
.app.col .side-group-t { visibility: hidden; height: 6px; padding: 0; }
.nav { position: relative; display: flex; align-items: center; gap: 11px; height: 34px; padding: 0 10px; border-radius: 9px; color: var(--side-text); font-size: 12.5px; font-weight: 500; transition: background-color .15s ease; }
.nav:hover { background: var(--side-active); }
.nav .i { color: var(--side-icon); width: 17px; height: 17px; }
.nav[aria-current="page"] { background: var(--side-active); font-weight: 600; color: var(--nav-on); }
.nav[aria-current="page"]::before { content: ""; position: absolute; left: -10px; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav[aria-current="page"] .i { color: var(--accent); }
.nav .lbl { flex: 1; white-space: nowrap; font-size: 13.5px; }
.nav .cnt { font-size: 11px; font-weight: 700; color: #1C1205; background: var(--accent); border-radius: 99px; padding: 0 6px; min-width: 18px; text-align: center; line-height: 17px; }
.nav .soon { font-size: 10px; color: var(--side-gray); border: 1px solid var(--side-hair); border-radius: 99px; padding: 0 6px; }
.nav .dot { position: absolute; top: 6px; left: 30px; width: 7px; height: 7px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 0 2px var(--side-bg); display: none; }
.app.col .nav { justify-content: center; padding: 0; }
.app.col .nav .lbl, .app.col .nav .cnt, .app.col .nav .soon { display: none; }
.app.col .nav .dot.on { display: block; }
.side-status { border-radius: 10px; background: var(--side-active); padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--side-gray); }
.side-status b { color: var(--side-text); font-weight: 600; display: flex; align-items: center; gap: 6px; font-size: 12px; }
.pulse { width: 7px; height: 7px; border-radius: 99px; background: var(--ok-dot); box-shadow: 0 0 0 0 rgba(18,184,134,.5); animation: pulse 2s infinite; flex: 0 0 auto; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(18,184,134,.45); } 70% { box-shadow: 0 0 0 7px rgba(18,184,134,0); } 100% { box-shadow: 0 0 0 0 rgba(18,184,134,0); } }
.app.col .side-status { align-items: center; padding: 10px 0; } .app.col .side-status .txt { display: none; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 6px; border: none; border-radius: 10px; background: transparent; text-align: left; width: 100%; }
.side-user:hover { background: var(--side-active); }
.side-user .who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.side-user .who b { font-size: 12.5px; color: var(--side-text); font-weight: 600; white-space: nowrap; }
.side-user .who span { font-size: 11px; color: var(--side-gray); white-space: nowrap; }
.app.col .side-user { justify-content: center; } .app.col .side-user .who, .app.col .side-user .chev { display: none; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--head-bg); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 36px; min-height: 64px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); min-width: 0; flex: 1; }
.crumbs a:hover { color: var(--title); }
.crumbs b { color: var(--title); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.ibtn { position: relative; width: 38px; height: 38px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; transition: transform .15s ease, border-color .2s ease; }
.ibtn:hover { border-color: var(--line2); }
.ibtn:active { transform: scale(.95); }
.ibtn .badge-dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 0 2px var(--surface); }
.searchbtn { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; min-width: 240px; }
.searchbtn kbd { margin-left: auto; font-family: var(--font); font-size: 11px; color: var(--faint); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
.view { padding: 32px 36px 60px; width: 100%; max-width: none; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.view.enter > * { animation: rise .45s cubic-bezier(.2,.8,.25,1) both; }
.view.enter > *:nth-child(2) { animation-delay: .04s; } .view.enter > *:nth-child(3) { animation-delay: .08s; } .view.enter > *:nth-child(4) { animation-delay: .12s; } .view.enter > *:nth-child(5) { animation-delay: .16s; } .view.enter > *:nth-child(n+6) { animation-delay: .2s; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slidein { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes spin { from { transform: rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: var(--len, 1200); } to { stroke-dashoffset: 0; } }

/* ---------- Cabeçalho de página ---------- */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ph-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ph h1 { font-size: 32px; font-weight: 600; letter-spacing: -1.1px; line-height: 1.12; }
.ph .sub { color: var(--muted); font-size: 14px; }
.ph .eyebrow { font-size: 13px; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ph-a { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line2); background: var(--surface); color: var(--title); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: transform .15s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease; }
.btn:hover { background: var(--soft); }
.btn:active { transform: scale(.97); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn.pri:hover { background: #FF8D33; }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.dark { background: var(--title); border-color: var(--title); color: var(--surface); }
.btn.soft { background: var(--soft); border-color: transparent; }
.btn.soft:hover { background: var(--soft2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--soft); }
.btn.danger { color: var(--bad); }
.btn.okb { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 99px; }
.btn.xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 99px; gap: 5px; }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 99px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { color: var(--blue-ink); font-weight: 600; background: none; border: none; padding: 0; font-size: inherit; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; }

/* ---------- Cartões ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); min-width: 0; }
.card.pad { padding: 20px 22px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; flex-wrap: wrap; }
.card-h h2, .card-h h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -0.2px; }
.card-h .sub { font-size: 12.5px; color: var(--muted); }
.card-b { padding: 16px 22px 20px; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.row { display: flex; gap: 16px; flex-wrap: wrap; align-items: stretch; }
.row > .w2 { flex: 2 1 560px; min-width: 0; } .row > .w1 { flex: 1 1 320px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hr { height: 1px; background: var(--line); border: none; margin: 0; }

/* KPIs */
.kpi { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.kpi-top { display: flex; align-items: center; gap: 10px; }
.kpi-ico { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.kpi-lbl { font-size: 13.5px; color: var(--muted); }
.kpi-val { font-size: 38px; font-weight: 300; letter-spacing: -1.5px; color: var(--title); line-height: 1.05; }
.kpi-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.delta { white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: 12px; padding: 2px 7px; border-radius: 99px; }
.delta.up { color: var(--ok); background: var(--ok-soft); } .delta.down { color: var(--bad); background: var(--bad-soft); }
.kpi-mid { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.spark { width: 92px; height: 34px; flex: 0 0 auto; opacity: .95; }
.spark path.l { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 300; animation: draw 1.4s .2s ease both; --len: 300; }

.kstrip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.kstrip .k { padding: 20px 22px 16px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); transition: background-color .15s ease; color: inherit; }
.kstrip .k:last-child { border-right: none; }
.kstrip .k:hover { background: var(--soft); }
.kstrip .lb { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.kstrip .vl { font-size: 40px; font-weight: 300; letter-spacing: -1.6px; line-height: 1.15; margin-top: 2px; color: var(--title); }
.kstrip .k.hl .vl { color: var(--accent-ink); font-weight: 400; }
.kstrip .ht { font-size: 12px; color: var(--muted); }
.kstrip svg { width: 100%; height: 30px; display: block; margin-top: 8px; overflow: visible; }
.kstrip svg .l { fill: none; stroke: var(--spark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw2 1.4s .25s ease forwards; }
.kstrip .k.hl svg .l { stroke: var(--accent); }
@keyframes draw2 { to { stroke-dashoffset: 0; } }
.dl { font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 99px; color: var(--ok); background: var(--ok-soft); white-space: nowrap; }
.dl.bad { color: var(--bad); background: var(--bad-soft); }

/* Pílulas de status */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--soft2); color: var(--ink); }
.pill .d { width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
.pill.nova, .pill.escolher, .pill.aguardando, .pill.pronta, .pill.lancada, .pill.ganha, .pill.perdida, .pill.encerrada { background: transparent; padding: 0; height: auto; color: var(--ink); font-size: 12.5px; }
.pill.nova .d { background: var(--faint); } .pill.escolher .d { background: var(--accent); } .pill.aguardando .d { background: var(--warn-dot); } .pill.pronta .d, .pill.ganha .d { background: var(--ok-dot); } .pill.lancada .d { background: var(--title); } .pill.perdida .d { background: var(--bad); } .pill.encerrada .d { background: var(--faint); }
.pill.neutral { background: var(--soft2); color: var(--muted); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.blue { background: var(--soft2); color: var(--title); }
.pill.accent { background: var(--accent-soft); color: var(--accent-ink); }
.pill.outline { background: transparent; border: 1px solid var(--line2); color: var(--muted); font-weight: 500; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 500; background: var(--soft2); color: var(--ink); white-space: nowrap; }
.tag.cli-ternium { background: var(--soft2); color: var(--title); }
.tag.cli-confab { background: var(--soft2); color: var(--ink); }
.tags { display: flex; gap: 5px; flex-wrap: wrap; }

/* Avatares */
.av { width: 32px; height: 32px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; flex: 0 0 auto; letter-spacing: .2px; }
.av.sm { width: 26px; height: 26px; border-radius: 99px; font-size: 9px; letter-spacing: -0.2px; }
.av.lg { width: 48px; height: 48px; border-radius: 99px; font-size: 16px; }
.av.xl { width: 64px; height: 64px; border-radius: 99px; font-size: 21px; }
.av.round { border-radius: 99px; }
.avs { display: flex; } .avs .av { box-shadow: 0 0 0 2px var(--bg); } .avs .av + .av { margin-left: -6px; }
.av { background: var(--soft2); color: var(--ink); }
.c0, .c3, .c6 { background: var(--soft2); color: var(--ink); }
.av.me { background: #F68121; color: #231F20; }

/* Tabelas */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
.tbl th.s { cursor: pointer; user-select: none; } .tbl th.s:hover { color: var(--title); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background-color .15s ease; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover { background: var(--soft); }
.tbl td.n, .tbl th.n { text-align: right; white-space: nowrap; }
.tbl td.c, .tbl th.c { text-align: center; }
.tbl .primary { color: var(--title); font-weight: 600; }
.tbl .sec { font-size: 12px; color: var(--muted); }
.cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell .tx { display: flex; flex-direction: column; min-width: 0; }

/* Listas em linha (viram cartões no celular) */
.list { display: flex; flex-direction: column; }
.li { display: grid; align-items: center; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--line); transition: background-color .15s ease; }
.li.click { cursor: pointer; } .li.click:hover { background: var(--soft); }
.list-h { display: grid; gap: 14px; padding: 10px 22px; font-size: 12px; font-weight: 500; color: var(--muted); border-top: 1px solid var(--line); }
.cot-cols { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.1fr) 120px 28px; }

/* Formulários */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .flabel { font-size: 12.5px; font-weight: 600; color: var(--title); }
.field .hint { font-size: 12px; color: var(--muted); }
.inp, .sel, .ta { height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 12px; font-size: 14px; color: var(--title); width: 100%; transition: border-color .2s ease, box-shadow .2s ease; }
.ta { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.inp:focus, .sel:focus, .ta:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.inp-ico { position: relative; display: flex; align-items: center; }
.inp-ico .i { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.inp-ico .inp { padding-left: 38px; }
.inp-pre { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--surface); }
.inp-pre span { display: flex; align-items: center; padding: 0 10px; background: var(--soft); color: var(--muted); font-size: 13px; border-right: 1px solid var(--line); }
.inp-pre .inp { border: none; border-radius: 0; }
.inp-pre:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.inp-pre .inp:focus { box-shadow: none; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fgrid .full { grid-column: 1 / -1; }
.switch { position: relative; width: 42px; height: 26px; flex: 0 0 auto; border-radius: 99px; border: none; background: var(--line2); transition: background-color .2s ease; padding: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .22s cubic-bezier(.3,.8,.25,1.2); }
.switch[aria-checked="true"] { background: var(--ok-dot); }
.switch[aria-checked="true"]::after { transform: translateX(16px); }
.chk { width: 20px; height: 20px; border-radius: 6px; border: 1.6px solid var(--line2); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; padding: 0; transition: background-color .15s ease, border-color .15s ease; color: #fff; }
.chk[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.chk svg { opacity: 0; } .chk[aria-checked="true"] svg { opacity: 1; }
.setrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.setrow:first-child { border-top: none; }
.setrow .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.setrow .tx b { color: var(--title); font-weight: 600; font-size: 14px; }
.setrow .tx span { color: var(--muted); font-size: 12.5px; }

/* Segmentado e abas */
.seg { display: inline-flex; background: var(--soft); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: none; background: transparent; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 8px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; transition: background-color .2s ease, color .2s ease; white-space: nowrap; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--title); box-shadow: 0 1px 3px rgba(16,24,40,.12); font-weight: 600; }
.seg .n { font-size: 11px; color: var(--muted); background: var(--soft2); border-radius: 99px; padding: 0 6px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; border: none; background: transparent; padding: 10px 12px 12px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.tabs button:hover { color: var(--title); }
.tabs button[aria-selected="true"] { color: var(--title); font-weight: 600; }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); animation: growx .25s ease both; }
.tabs .n { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--soft); border-radius: 99px; padding: 1px 7px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line2); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px; transition: background-color .2s ease, color .2s ease; white-space: nowrap; }
.chip:hover { border-color: var(--line2); }
.chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--hot-line); font-weight: 600; }
.chip .n { font-size: 11px; opacity: .7; }

/* Barra de progresso e etapas */
.bar { height: 6px; border-radius: 99px; background: var(--soft2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transform-origin: left; animation: growx .9s cubic-bezier(.3,.8,.25,1) both; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.step { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.step .bar > i { animation-duration: 1.1s; }
.step .lab { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--title); min-width: 0; }
.step .num { width: 22px; height: 22px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: 0 0 auto; background: var(--soft); color: var(--muted); }
.step.done .num { background: var(--ok-dot); color: #FFFFFF; } .step.now .num { background: var(--accent); color: #fff; }
.step.todo .lab { color: var(--muted); font-weight: 500; }
.step .s { font-size: 12px; color: var(--muted); padding-left: 30px; }

/* Avisos em faixa */
.banner { display: flex; align-items: center; gap: 18px; padding: 16px 18px 16px 22px; border-radius: 16px; border: 1px solid transparent; flex-wrap: wrap; }
.banner .tx { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; }
.banner .tx b { font-weight: 650; }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.banner.bad .tx b { color: var(--bad); }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.info { background: var(--blue-soft); color: var(--blue); }
.banner.ok { background: var(--ok-soft); color: var(--ok); }
.banner.neutral { background: var(--soft); color: var(--ink); border-color: var(--line); }
.banner .tx span { color: var(--ink); opacity: .85; font-size: 13px; }
.banner.hot { background: var(--accent-soft); border-color: var(--hot-line); color: var(--accent-ink); }
.banner.hot .tx b { color: var(--title); }
.banner .cdn { font-size: 30px; font-weight: 300; letter-spacing: -0.8px; color: var(--accent-ink); line-height: 1; min-width: 128px; font-variant-numeric: tabular-nums; }
.banner .pd { width: 10px; height: 10px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 0 5px var(--hot-line); animation: pulse2 1.6s infinite; flex: 0 0 auto; }
@keyframes pulse2 { 50% { opacity: .35; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(217,45,32,0); } 50% { box-shadow: 0 0 0 5px rgba(217,45,32,.12); } }

/* Vazio */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 48px 20px; color: var(--muted); }
.empty .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--soft); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.empty b { color: var(--title); font-size: 15px; }

/* Sobreposições */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 70; animation: fade .2s ease both; backdrop-filter: blur(2px); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); z-index: 71; background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-pop); display: flex; flex-direction: column; animation: slidein .32s cubic-bezier(.2,.8,.25,1) both; padding-top: env(safe-area-inset-top, 0px); }
.drawer.wide { width: min(820px, 100vw); }
.dr-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.dr-h .t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dr-h h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.4px; }
.dr-b { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.dr-f { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
.dr-f .grow { flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted); }
.modal-wrap { position: fixed; inset: 0; z-index: 72; display: flex; align-items: center; justify-content: center; padding: 20px; pointer-events: none; }
.modal { pointer-events: auto; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: hidden; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-pop); animation: pop .26s cubic-bezier(.2,.8,.25,1) both; }
.modal.wide { width: min(760px, 100%); }
.modal .dr-b { padding: 18px 22px; }
.modal .dr-h { padding: 18px 22px 14px; }
.modal .dr-f { padding: 14px 22px; border-radius: 0 0 22px 22px; }
.pop { position: fixed; z-index: 75; width: 360px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-pop); animation: pop .2s ease both; overflow: hidden; display: flex; flex-direction: column; }
.pop-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.pop-h b { color: var(--title); font-size: 15px; }
.menu { display: flex; flex-direction: column; padding: 6px; }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; border: none; background: transparent; text-align: left; font-size: 13.5px; color: var(--ink); }
.menu button:hover, .menu a:hover { background: var(--soft); color: var(--title); }
.menu .sep { height: 1px; background: var(--line); margin: 4px 6px; }
.close { width: 34px; height: 34px; border-radius: 10px; border: none; background: var(--soft); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.close:hover { background: var(--soft2); }

/* Busca global */
.pal { pointer-events: auto; width: min(640px, 100%); align-self: flex-start; margin-top: 10vh; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-pop); overflow: hidden; animation: pop .2s ease both; display: flex; flex-direction: column; max-height: 70vh; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.pal-in input { flex: 1; height: 56px; border: none; background: transparent; font-size: 16px; color: var(--title); outline: none; }
.pal-res { overflow-y: auto; padding: 8px; }
.pal-g { font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 10px 10px 4px; }
.pal-it { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 11px; border: none; background: transparent; text-align: left; }
.pal-it:hover, .pal-it.on { background: var(--soft); }
.pal-it .tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pal-it .tx b { color: var(--title); font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-it .tx span { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-ico { width: 32px; height: 32px; border-radius: 10px; background: var(--soft); display: flex; align-items: center; justify-content: center; color: var(--muted); flex: 0 0 auto; }
.pal-foot { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.pal-foot kbd { font-family: var(--font); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; margin-right: 4px; }

/* Toasts */
.toasts { position: fixed; z-index: 90; top: calc(16px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { pointer-events: none; border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; background: var(--tip-bg); color: var(--tip-fg); padding: 11px 14px 11px 12px; border-radius: 14px; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-pop); animation: pop .25s ease both; max-width: min(420px, calc(100vw - 32px)); }
.toast .ok { width: 22px; height: 22px; border-radius: 99px; background: #12B886; color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.toast.out { animation: fade .25s ease reverse both; }

/* Gráficos */
.chart { position: relative; height: 220px; margin-left: 30px; }
.chart .gl { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.chart .yl { position: absolute; left: -30px; width: 24px; text-align: right; font-size: 11px; color: var(--muted); transform: translateY(-50%); }
.chart .cols { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.chart .col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; position: relative; cursor: default; }
.chart .col .b { width: 13px; border-radius: 5px 5px 2px 2px; transform-origin: bottom; animation: grow .9s cubic-bezier(.3,.8,.25,1.08) both; transition: opacity .2s ease; }
.chart .col:hover .b { opacity: 1 !important; }
.chart:hover .col .b { opacity: .45; }
.chart .tip { border: 1px solid var(--line); box-shadow: var(--shadow-pop); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--tip-bg); color: var(--tip-fg); font-size: 12px; padding: 7px 10px; border-radius: 10px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s ease; z-index: 2; }
.chart .tip { display: none; } .chart .col:hover .tip { opacity: 1; display: block; animation: fade .15s ease both; }
.chart .col:nth-last-child(-n+2) .tip { left: auto; right: 0; transform: none; } .chart .col:nth-child(-n+2) .tip { left: 0; transform: none; }
.xl { display: flex; margin-left: 30px; font-size: 11.5px; color: var(--muted); padding-top: 8px; } .xl span { flex: 1; text-align: center; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.donut { position: relative; width: 156px; height: 156px; flex: 0 0 auto; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); animation: spin 1s cubic-bezier(.3,.8,.25,1) both; }
.donut circle { fill: none; stroke-width: 14; transition: opacity .2s; }
.donut .ctr { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; }
.donut .ctr b { font-size: 36px; font-weight: 300; letter-spacing: -1px; color: var(--title); line-height: 1; }
.donut .ctr span { font-size: 12px; color: var(--muted); }
.lg-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border-radius: 10px; border: none; background: transparent; text-align: left; font-size: 13px; white-space: nowrap; color: var(--ink); transition: background-color .2s ease, border-color .2s ease; }
.lg-btn:hover, .lg-btn[aria-pressed="true"] { background: var(--soft); color: var(--title); }
.lg-btn b { margin-left: auto; color: var(--title); }
svg.line { width: 100%; height: 100%; overflow: visible; }
svg.line .ln { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len); animation: draw 1.4s ease both; }
svg.line text { font-size: 11px; fill: var(--muted); font-family: var(--font); }
svg.line .grid { stroke: var(--line); stroke-width: 1; }
.hbar { display: flex; flex-direction: column; gap: 12px; }
.hbar .r { display: grid; grid-template-columns: 150px 1fr 70px; gap: 12px; align-items: center; font-size: 13px; }
.hbar .r .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--title); font-weight: 500; }
.hbar .r .v { text-align: right; color: var(--muted); }

/* Itens da cotação */
.item { border-top: 1px solid var(--line); }
.item-row { display: grid; grid-template-columns: 34px minmax(0, 2.6fr) minmax(0, 0.8fr) minmax(0, 0.9fr) minmax(0, 1.5fr) minmax(0, 1.1fr) 28px; gap: 14px; align-items: center; padding: 14px 22px; cursor: pointer; transition: background-color .15s ease; }
.item-row:hover, .item.open .item-row { background: var(--soft); }
.item-n { width: 28px; height: 28px; border-radius: 9px; background: var(--soft2); color: var(--title); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.item .chev { transition: transform .25s ease; color: var(--muted); }
.item.open .chev { transform: rotate(180deg); }
.item-x { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; padding: 4px 22px 20px 70px; background: var(--soft); animation: fade .25s ease both; }
.box { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.box h4 { font-size: 13px; font-weight: 650; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.kv > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kv span { font-size: 11.5px; color: var(--muted); }
.kv b { font-size: 14px; color: var(--title); font-weight: 600; overflow-wrap: anywhere; }
.offer { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); width: 100%; text-align: left; transition: border-color .2s ease, background-color .2s ease; }
.offer:hover { border-color: var(--line2); }
.offer[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.offer .radio { width: 20px; height: 20px; border-radius: 99px; border: 2px solid var(--line2); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.offer[aria-checked="true"] .radio { border-color: var(--accent); }
.offer[aria-checked="true"] .radio::after { content: ""; width: 10px; height: 10px; border-radius: 99px; background: var(--accent); }
.offer .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.offer .pr { text-align: right; display: flex; flex-direction: column; }
.offer .pr b { font-size: 16px; color: var(--title); }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper .inp { text-align: center; font-size: 22px; font-weight: 650; height: 52px; letter-spacing: -0.5px; }
.stepper .btn { height: 52px; width: 52px; font-size: 22px; padding: 0; flex: 0 0 auto; }
.mg { border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; transition: background-color .3s ease; }
.mg span { font-size: 12px; } .mg b { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.mg.ok { background: var(--ok-soft); color: var(--ok); } .mg.bad { background: var(--bad-soft); color: var(--bad); } .mg.neutral { background: var(--soft); color: var(--muted); }
.mg.neutral b { color: var(--title); }

/* Documento da proposta (folha A4) */
.paper-wrap { background: var(--soft2); border-radius: 18px; padding: 28px; overflow-x: auto; }
.paper { width: 794px; min-height: 1060px; margin: 0 auto; background: #fff; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 11.3px; padding: 46px 40px 30px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); border-radius: 4px; display: flex; flex-direction: column; }
.paper .topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.paper .topo img { height: 56px; }
.paper .emp { text-align: center; font-size: 10px; line-height: 1.4; }
.paper .titulo { border: 1px solid #000; text-align: center; font-size: 16px; padding: 7px; margin-bottom: 10px; }
.paper .datas { display: flex; justify-content: space-between; padding: 0 44px; margin-bottom: 10px; font-size: 10.5px; }
.paper table { border-collapse: collapse; width: 100%; }
.paper .cli td { border: 1px solid #000; padding: 2px 6px; height: 19px; }
.paper .cli td.r { background: #F4B183; text-align: right; width: 82px; white-space: nowrap; }
.paper .its { margin-top: 14px; }
.paper .its th { background: #F4B183; border: 1px solid #000; font-size: 10px; padding: 3px; }
.paper .its td { border: 1px solid #000; padding: 4px; vertical-align: middle; }
.paper .c { text-align: center; } .paper .n { text-align: right; white-space: nowrap; }
.paper .nc { color: #C00000; font-weight: bold; text-align: center; }
.paper .obs { color: #C00000; font-weight: bold; }
.paper .base { display: flex; gap: 14px; margin-top: 18px; align-items: flex-start; }
.paper .cond { flex: 1.6; border: 1px solid #000; min-height: 96px; }
.paper .cond .h { background: #F4B183; text-align: center; font-weight: bold; border-bottom: 1px solid #000; padding: 2px; }
.paper .cond .l { padding: 2px 5px; line-height: 1.5; }
.paper .tot { flex: 1; }
.paper .tot td { border: 1px solid #000; padding: 2px 6px; }
.paper .tot td.r { background: #F4B183; text-align: right; width: 45%; }
.paper .tot tr.g td { font-weight: bold; }
.paper .ass { margin: 22px 0 0 64px; line-height: 1.55; font-size: 10.5px; }
.paper .rod { margin-top: auto; text-align: center; font-size: 9px; color: #333; padding-top: 30px; }
.paper .edit { background: #FFF6D6; outline: 1px dashed #E0A800; }

/* Telas de entrada */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--bg); }
.login.l1 { display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 40px max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px)); }
.l1-halo { position: absolute; width: 900px; height: 900px; left: 50%; top: 50%; translate: -50% -52%; border-radius: 50%; background: radial-gradient(closest-side, rgba(246,129,33,.16), rgba(246,129,33,0)); animation: breathe 8s ease-in-out infinite; pointer-events: none; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
.l1-rings { position: absolute; left: 50%; top: 50%; translate: -50% -52%; width: 760px; height: 760px; pointer-events: none; }
.l1-rings i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); }
.l1-rings i:nth-child(2) { inset: 90px; } .l1-rings i:nth-child(3) { inset: 180px; }
.l1-rings b { position: absolute; width: 8px; height: 8px; border-radius: 99px; background: var(--accent); top: -4px; left: calc(50% - 4px); transform-origin: 4px 384px; animation: orbit 14s linear infinite; }
.l1-rings b:nth-child(5) { top: 86px; transform-origin: 4px 294px; animation-duration: 10s; animation-direction: reverse; opacity: .6; }
@keyframes orbit { to { transform: rotate(360deg); } }
.l1-theme { position: absolute; top: max(20px, env(safe-area-inset-top, 0px)); right: max(20px, env(safe-area-inset-right, 0px)); z-index: 2; }
.l1-card { position: relative; z-index: 1; width: 440px; max-width: 100%; background: var(--l1-card, var(--surface)); border: 1px solid var(--line); border-radius: 28px; padding: 40px 40px 30px; box-shadow: 0 40px 80px -40px rgba(35,31,32,.35); display: flex; flex-direction: column; align-items: center; gap: 26px; animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.l1-logo { width: 190px; display: block; }
.l1-card .lg-form { width: 100%; animation: none; }
.l1-card .lg-head { text-align: center; } .l1-card .lg-head h1 { font-size: 24px; letter-spacing: -0.6px; }
.l1-card .lg-ok { align-items: center; text-align: center; }
.l1-ft { position: absolute; bottom: max(20px, env(safe-area-inset-bottom, 0px)); left: 16px; right: 16px; text-align: center; font-size: 12px; color: var(--muted); z-index: 1; }
.lg-art { position: relative; overflow: hidden; background: var(--soft); border-right: 1px solid var(--line); padding: 36px 48px 28px; display: flex; flex-direction: column; gap: 34px; min-height: 100vh; }
.lg-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 45%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 45%, #000 0%, transparent 70%); opacity: .7; }
.lg-glow { position: absolute; width: 560px; height: 560px; right: -120px; top: 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(246,129,33,.30), rgba(246,129,33,0)); animation: float 10s ease-in-out infinite; pointer-events: none; }
.lg-glow.b { width: 420px; height: 420px; left: -140px; right: auto; top: auto; bottom: -160px; background: radial-gradient(closest-side, rgba(246,129,33,.16), rgba(246,129,33,0)); animation-duration: 14s; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, 24px); } }
.lg-art > *:not(.lg-grid):not(.lg-glow) { position: relative; z-index: 1; }
.lg-logo { width: 168px; display: block; }
.lg-copy { display: flex; flex-direction: column; gap: 14px; max-width: 540px; animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.lg-kick { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line2); border-radius: 99px; padding: 6px 12px; }
.lg-kick i { width: 7px; height: 7px; border-radius: 99px; background: var(--ok-dot); animation: pulse2 1.8s infinite; }
.lg-copy h2 { font-size: 44px; line-height: 1.06; letter-spacing: -1.8px; font-weight: 600; color: var(--title); }
.lg-copy h2 em { font-style: normal; color: var(--accent-ink); }
.lg-copy p { font-size: 15.5px; color: var(--muted); line-height: 1.55; max-width: 470px; }
.lg-show { position: relative; flex: 1; min-height: 330px; }
.lg-card { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; box-shadow: 0 30px 60px -36px rgba(35,31,32,.35); display: flex; flex-direction: column; gap: 6px; animation: rise .8s cubic-bezier(.2,.8,.2,1) both, bob 7s ease-in-out infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.lg-card.c1 { left: 0; top: 10px; width: 300px; border-color: var(--hot-line); animation-delay: .15s, 0s; }
.lg-card.c2 { left: 330px; top: 0; width: 210px; animation-delay: .3s, 1.2s; }
.lg-card.c3 { left: 120px; top: 190px; width: 420px; animation-delay: .45s, 2.4s; }
.lg-ch { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.lg-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 0 4px var(--hot-line); animation: pulse2 1.6s infinite; }
.lg-tag { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); border-radius: 99px; padding: 2px 8px; }
.lg-cd { font-size: 36px; font-weight: 300; letter-spacing: -1px; color: var(--accent-ink); line-height: 1.05; font-variant-numeric: tabular-nums; }
.lg-sub { font-size: 12.5px; color: var(--ink); }
.lg-bar { height: 5px; border-radius: 99px; background: var(--soft2); overflow: hidden; margin-top: 4px; }
.lg-bar i { display: block; height: 100%; width: 92%; border-radius: 99px; background: var(--accent); transform-origin: left; animation: growx 1.6s .6s cubic-bezier(.2,.8,.2,1) both; }
.lg-num { font-size: 40px; font-weight: 300; letter-spacing: -1.5px; color: var(--title); line-height: 1.05; }
.lg-card svg { width: 100%; height: 40px; overflow: visible; }
.lg-card svg path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw2 1.6s .8s ease forwards; }
.lg-card svg circle { fill: var(--accent); }
.lg-flow { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.lg-flow span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; color: var(--muted); min-width: 64px; }
.lg-flow span b { width: 40px; height: 40px; border-radius: 99px; border: 2px solid var(--line2); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600; color: var(--title); background: var(--surface); }
.lg-flow span:nth-of-type(4) b { border-color: var(--accent); }
.lg-flow i { flex: 1; height: 4px; border-radius: 99px; margin-bottom: 18px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 14px); background-size: 28px 4px; animation: flowx 1s linear infinite; opacity: .8; }
@keyframes flowx { to { background-position: 28px 0; } }
.lg-toasts { position: absolute; left: 300px; top: 345px; width: 290px; height: 80px; pointer-events: none; }
.lg-toast { position: absolute; right: 0; top: 0; width: 290px; display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow-pop); opacity: 0; animation: toastcycle 7.2s ease-in-out infinite; }
.lg-toast .i { color: var(--accent); margin-top: 2px; }
.lg-toast b { display: block; font-size: 13px; color: var(--title); } .lg-toast span { font-size: 12px; color: var(--muted); }
@keyframes toastcycle { 0% { opacity: 0; transform: translateY(-10px) scale(.97); } 6%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; transform: translateY(8px) scale(.98); } }
.lg-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.lg-side { display: flex; flex-direction: column; min-height: 100vh; padding: 24px max(24px, env(safe-area-inset-right, 0px)) 24px max(24px, env(safe-area-inset-left, 0px)); }
.lg-bar-top { display: flex; justify-content: flex-end; align-items: center; }
.lg-logo.m { display: none; width: 140px; margin-right: auto; }
.lg-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 0; }
.lg-form { width: min(380px, 100%); display: flex; flex-direction: column; gap: 18px; animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
.lg-form.shake { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.lg-head h1 { font-size: 32px; font-weight: 600; letter-spacing: -1.1px; }
.lg-head p { margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.lg-inp { position: relative; display: flex; align-items: center; height: 48px; border: 1px solid var(--line2); border-radius: 14px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.lg-inp:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.lg-inp > .i { margin-left: 14px; color: var(--muted); }
.lg-inp input { flex: 1; min-width: 0; height: 100%; border: none; background: transparent; padding: 0 12px; font-size: 15px; color: var(--title); outline: none; }
.lg-eye { width: 40px; height: 40px; margin-right: 4px; border: none; background: transparent; color: var(--muted); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.lg-eye:hover { background: var(--soft); color: var(--title); }
.lg-lab { display: flex; justify-content: space-between; align-items: center; }
.lg-lab .link { font-size: 12.5px; color: var(--accent-ink); }
.lg-keep { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink); }
.lg-go { height: 50px; font-size: 15px; gap: 8px; }
.lg-spin { width: 16px; height: 16px; border-radius: 99px; border: 2px solid rgba(35,31,32,.25); border-top-color: #231F20; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.lg-note { text-align: center; font-size: 12px; color: var(--faint); }
.lg-err { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--bad); background: var(--bad-soft); border-radius: 12px; padding: 10px 12px; }
.lg-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; border: none; background: none; padding: 0; color: var(--muted); font-size: 13.5px; }
.lg-back:hover { color: var(--title); }
.lg-ok { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.lg-ok > span { width: 52px; height: 52px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.lg-ok h1 { font-size: 28px; font-weight: 600; letter-spacing: -1px; }
.lg-ok p { color: var(--muted); font-size: 14.5px; line-height: 1.5; } .lg-ok p b { color: var(--title); }
.lg-help { text-align: center; font-size: 12.5px; color: var(--muted); } .lg-help b { color: var(--ink); font-weight: 600; }
@media (max-width: 1180px) { .lg-card.c3 { left: 0; width: 360px; top: 200px; } .lg-card.c2 { left: 320px; } .lg-toasts { display: none; } }

/* Celular */
.mtop, .mtab { display: none; }
@media (max-width: 860px) {
  .side, .top { display: none; }
  .mtop { display: flex; position: sticky; position: -webkit-sticky; top: env(safe-area-inset-top, 0px); z-index: 20; align-items: center; justify-content: space-between; gap: 10px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); background: var(--head-bg); backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%); border-bottom: 1px solid var(--line); min-height: 56px; }
  .mtop .back { display: flex; align-items: center; gap: 2px; color: var(--accent-ink); font-size: 16px; font-weight: 500; border: none; background: none; padding: 0; min-width: 0; }
  .mtop .back span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
  .mtop { background: var(--side-bg); border-bottom-color: var(--side-hair); }
  body::before { background: var(--side-bg); }
  .mtop img { height: 24px; }
  .mtop .back { color: var(--accent); }
  .mtop .ibtn { background: var(--sbtn-bg); border-color: var(--sbtn-bd); color: var(--sbtn-fg); }
  .mtab { background: var(--side-bg) !important; border-top-color: var(--side-hair) !important; }
  .mtab a, .mtab button { color: var(--side-gray) !important; }
  .mtab [aria-current="page"] { color: var(--accent) !important; }
  .mtab { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--head-bg); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border-top: 1px solid var(--line); padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
  .mtab a, .mtab button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 500; color: var(--muted); padding: 4px 0; border: none; background: none; position: relative; }
  .mtab .i { width: 23px; height: 23px; }
  .mtab [aria-current="page"] { color: var(--accent); }
  .mtab .bd { position: absolute; top: 0; left: calc(50% + 6px); min-width: 17px; height: 17px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
  .view { padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(96px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); gap: 16px; }
  .ph h1 { font-size: 26px; }
  .ph-a .btn .bl { display: none; }
  .card-h { padding: 16px 16px 0; } .card-b { padding: 14px 16px 16px; } .card.pad { padding: 16px; }
  .li { padding: 14px 16px; }
  .cot-cols { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .cot-cols > .hide-m, .list-h { display: none; }
  .hide-m { display: none !important; }
  .kstrip { grid-template-columns: repeat(2, minmax(0,1fr)); } .kstrip .k { padding: 16px; } .kstrip .k:nth-child(2) { border-right: none; } .kstrip .k:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .kstrip .lb { flex-direction: column; align-items: flex-start; gap: 6px; } .kstrip .vl { font-size: 32px; } .kstrip .ht { display: none; }
  .banner .cdn { min-width: 0; } .banner.hot { flex-direction: column; align-items: stretch; gap: 10px; } .banner.hot .pd { display: none; }
  .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .grid.g4 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .kpi { padding: 14px; } .kpi-val { font-size: 24px; } .spark { display: none; } .kpi-top { gap: 8px; } .kpi-ico { width: 32px; height: 32px; border-radius: 10px; } .kpi-lbl { font-size: 12.5px; }
  .kpi-foot { flex-direction: column; align-items: flex-start; }
  .step:not(.now) .st-t { display: none; }
  .item-row { grid-template-columns: 30px minmax(0, 1fr) 24px; padding: 14px 16px; }
  .item-row > .hide-m { display: none; }
  .item-x { grid-template-columns: minmax(0, 1fr); padding: 4px 16px 16px; }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .step .s { display: none; } .step .lab { font-size: 11px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .drawer, .drawer.wide { width: 100vw; border-left: none; animation: sheet .32s cubic-bezier(.2,.8,.25,1) both; top: 0; }
  .dr-h { padding: 16px; } .dr-b { padding: 16px; } .dr-f { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .modal-wrap { align-items: flex-end; padding: 0; }
  .modal, .modal.wide { width: 100%; border-radius: 22px 22px 0 0; max-height: 92vh; animation: sheet .3s cubic-bezier(.2,.8,.25,1) both; }
  .modal .dr-f { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); border-radius: 0; }
  .pal { margin-top: 0; align-self: stretch; max-height: none; border-radius: 0; width: 100%; padding-top: env(safe-area-inset-top, 0px); }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .toasts { top: calc(10px + env(safe-area-inset-top, 0px)); }
  .login { grid-template-columns: minmax(0, 1fr); }
  .lg-art { display: none; }
  .login.l1 { align-items: flex-start; padding-top: 72px; }
  .l1-card { padding: 30px 20px 24px; border-radius: 24px; } .l1-rings { width: 560px; height: 560px; } .l1-rings b { transform-origin: 4px 284px; } .l1-rings b:nth-child(5) { transform-origin: 4px 194px; }
  .lg-side { padding: 16px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); }
  .lg-bar-top { justify-content: space-between; } .lg-logo.m { display: block; }
  .lg-wrap { align-items: flex-start; padding-top: 12vh; }
  .paper-wrap { padding: 12px; }
  .hbar .r { grid-template-columns: 110px 1fr 56px; }
  .chart { height: 180px; }
  .donut { width: 160px; height: 160px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Ajuda e tutoriais */
.fq-search { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px; border: 1px solid var(--line2); border-radius: 99px; background: var(--surface); max-width: 760px; transition: border-color .2s, box-shadow .2s; }
.fq-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.fq-search .i { color: var(--muted); }
.fq-search input { flex: 1; min-width: 0; border: none; background: transparent; font-size: 16px; color: var(--title); outline: none; height: 100%; }
.fq-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fq-qc { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px; text-align: left; transition: background-color .15s, transform .2s; }
.fq-qc:hover { background: var(--soft); transform: translateY(-2px); }
.fq-qc b { color: var(--title); font-size: 15px; font-weight: 600; line-height: 1.3; }
.fq-qi { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.fq-qc .link { font-size: 13px; color: var(--accent-ink); margin-top: auto; }
.fq-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.fq-nav { padding: 8px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 84px; }
.fq-nav button { display: flex; align-items: center; gap: 10px; border: none; background: transparent; padding: 9px 10px; border-radius: 10px; font-size: 13.5px; color: var(--ink); text-align: left; position: relative; }
.fq-nav button .i { color: var(--muted); }
.fq-nav button span { flex: 1; } .fq-nav button em { font-style: normal; font-size: 11.5px; color: var(--faint); }
.fq-nav button:hover { background: var(--soft); }
.fq-nav button[aria-current="true"] { background: var(--soft); color: var(--title); font-weight: 600; }
.fq-nav button[aria-current="true"] .i { color: var(--accent); }
.fq-items { margin-top: 10px; }
.fq { border-top: 1px solid var(--line); }
.fq-q { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 22px; border: none; background: transparent; text-align: left; font-size: 14.5px; color: var(--title); transition: background-color .15s; flex-wrap: wrap; }
.fq-q:hover { background: var(--soft); }
.fq-q b { flex: 1; font-weight: 600; min-width: 200px; }
.fq-q .i { color: var(--muted); transition: transform .25s; }
.fq.open .fq-q .i { transform: rotate(180deg); }
.fq-cat { width: 100%; font-size: 11.5px; color: var(--accent-ink); font-weight: 600; margin-bottom: -6px; }
.fq-a { padding: 0 22px 20px; display: flex; flex-direction: column; gap: 12px; animation: fade .25s ease both; }
.fq-a p { color: var(--ink); line-height: 1.6; font-size: 14px; max-width: 70ch; }
.fq-a ol { margin: 0; padding: 0; counter-reset: st; list-style: none; display: flex; flex-direction: column; gap: 10px; max-width: 72ch; }
.fq-a li { counter-increment: st; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.fq-a li::before { content: counter(st); width: 24px; height: 24px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.fq-tip { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 13.5px; color: var(--ink); max-width: 72ch; }
.fq-tip .i { color: var(--accent); margin-top: 1px; }
.fq-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fq-help { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.fq-th { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line2); background: var(--surface); border-radius: 99px; padding: 4px 10px; font-size: 12px; color: var(--ink); }
.fq-th:hover { background: var(--soft); }
.fq-new { position: sticky; top: 84px; }
.fq-log { list-style: none; margin: 0; padding: 14px 22px 20px; display: flex; flex-direction: column; gap: 16px; }
.fq-log li { display: flex; flex-direction: column; gap: 3px; position: relative; padding-left: 16px; }
.fq-log li::before { content: ""; position: absolute; left: 0; top: 6px; width: 7px; height: 7px; border-radius: 99px; background: var(--accent); }
.fq-log li:not(:last-child)::after { content: ""; position: absolute; left: 3px; top: 16px; bottom: -14px; width: 1px; background: var(--line); }
.fq-date { font-size: 11.5px; color: var(--muted); }
.fq-log b { font-size: 13.5px; color: var(--title); } .fq-log p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 1200px) { .fq-grid { grid-template-columns: 220px minmax(0, 1fr); } .fq-new { grid-column: 1 / -1; position: static; } }
@media (max-width: 860px) { .fq-grid { grid-template-columns: minmax(0, 1fr); } .fq-nav { position: static; flex-direction: row; overflow-x: auto; } .fq-nav button { white-space: nowrap; } .fq-nav button em { display: none; } .fq-quick { grid-template-columns: minmax(0, 1fr); gap: 8px; } .fq-qc { flex-direction: row; align-items: center; padding: 12px 14px; } .fq-qc .link { display: none; } .fq-qc b { font-size: 14px; } .fq-q { padding: 14px 16px; } .fq-a { padding: 0 16px 16px; } .fq-help { margin-left: 0; width: 100%; } .fq-search { height: 50px; } }

/* Assistente Newenger */
.ai-top { gap: 6px; } .ai-top .i { color: var(--accent); }
.ai-fab { position: fixed; z-index: 66; right: max(24px, env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); height: 52px; padding: 0 20px 0 16px; border-radius: 99px; border: none; background: var(--title); color: var(--bg); display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; box-shadow: 0 14px 34px -12px rgba(35,31,32,.45); transition: transform .2s cubic-bezier(.2,.8,.2,1.3), opacity .2s; animation: pop .4s .3s cubic-bezier(.2,.8,.2,1) both; }
.ai-fab .i { color: var(--accent); width: 20px; height: 20px; }
.ai-fab:hover { transform: translateY(-2px); }
.ai-fab.on span { display: none; } .ai-fab.on { padding: 0; width: 52px; justify-content: center; }
#ai.ov .ai-fab { opacity: 0; pointer-events: none; transform: scale(.8); }
.ai-win { position: fixed; z-index: 80; right: max(24px, env(safe-area-inset-right, 0px)); bottom: calc(88px + env(safe-area-inset-bottom, 0px)); width: 400px; height: min(620px, calc(100vh - 120px)); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; overflow: hidden; animation: pop .26s cubic-bezier(.2,.8,.25,1) both; transform-origin: bottom right; }
#ai.ov .ai-win { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.ai-h { display: flex; align-items: center; gap: 10px; padding: 14px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.ai-av { width: 36px; height: 36px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ai-av img { width: 30px; height: auto; }
.ai-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ai-t b { color: var(--title); font-size: 14.5px; }
.ai-t span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.ai-t span i { width: 7px; height: 7px; border-radius: 99px; background: var(--ok-dot); }
.ai-ib { width: 32px; height: 32px; border-radius: 99px; border: none; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.ai-ib:hover { background: var(--soft); color: var(--title); }
.ai-b { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ai-hello { background: var(--soft); border-radius: 16px; padding: 14px 16px; font-size: 13.5px; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.ai-hello b { color: var(--title); font-size: 15px; }
.ai-m { max-width: 88%; font-size: 13.5px; line-height: 1.5; padding: 10px 14px; border-radius: 16px; animation: rise .25s ease both; overflow-wrap: anywhere; }
.ai-m.me { align-self: flex-end; background: var(--title); color: var(--bg); border-bottom-right-radius: 6px; white-space: pre-wrap; }
.ai-m.bot { align-self: flex-start; background: var(--soft); color: var(--ink); border-bottom-left-radius: 6px; }
.ai-m.bot p { margin: 0 0 6px; } .ai-m.bot p:last-child { margin-bottom: 0; }
.ai-m.bot ul, .ai-m.bot ol { margin: 4px 0 6px; padding-left: 18px; } .ai-m.bot li { margin: 2px 0; }
.ai-m.bot b { color: var(--title); }
.ai-m.bot code { font-family: var(--mono); font-size: 12px; background: var(--soft2); padding: 1px 5px; border-radius: 5px; }
.ai-dots { display: inline-flex; gap: 4px; padding: 4px 0; } .ai-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--muted); animation: blink 1.2s infinite; } .ai-dots i:nth-child(2) { animation-delay: .15s; } .ai-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.ai-sug { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin-top: 4px; }
.ai-sug button { border: 1px solid var(--line2); background: var(--surface); color: var(--ink); border-radius: 14px; padding: 8px 12px; font-size: 13px; text-align: left; transition: background-color .15s, border-color .15s; }
.ai-sug button:hover { background: var(--accent-soft); border-color: var(--hot-line); color: var(--accent-ink); }
.ai-err { font-size: 12.5px; color: var(--bad); background: var(--bad-soft); border-radius: 12px; padding: 9px 12px; }
.ai-f { border-top: 1px solid var(--line); padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; }
.ai-ctx { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; padding: 0 4px; }
.ai-ctx b { color: var(--ink); font-weight: 600; }
.ai-in { display: flex; align-items: flex-end; gap: 8px; border: 1px solid var(--line2); border-radius: 18px; padding: 6px 6px 6px 14px; background: var(--surface); }
.ai-in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ai-in textarea { flex: 1; border: none; background: transparent; resize: none; font: inherit; font-size: 14px; line-height: 1.4; padding: 6px 0; max-height: 120px; color: var(--title); outline: none; }
.ai-send { width: 34px; height: 34px; border-radius: 99px; border: none; background: var(--accent); color: #231F20; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ai-send[disabled] { opacity: .4; } .ai-send.stop { background: var(--title); color: var(--bg); }
@media (max-width: 860px) {
  .ai-top { display: none; }
  .ai-fab { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); right: 16px; height: 48px; padding: 0; width: 48px; justify-content: center; }
  .ai-fab span { display: none; }
  .ai-win { inset: 0; width: auto; height: auto; border-radius: 0; border: none; padding-top: env(safe-area-inset-top, 0px); animation: sheet .3s cubic-bezier(.2,.8,.25,1) both; }
  .ai-fab.on { display: none; }
}
