:root {
  --deep-green: #1D4E89;
  --deep-green-lt: #2563A8;
  --leaf: #2F6FBF;
  --leaf-dk: #1D4E89;
  --mint: #E4EDF8;
  --cream: #F2F4F8;
  --ink: #141C2B;
  --graphite: #45526A;
  --muted: #66728A;
  --hairline: #DCE3EC;
  --paper: #F2F4F8;
  --yellow: #FFE066;
  --red: #B42318;
  --wa: #25D366;
  --wa-dk: #1EB857;
  --excel: #217346;
  --excel-dk: #1A5D38;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(15, 31, 44, 0.06);
  --shadow-md: 0 4px 20px rgba(15, 31, 44, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 31, 44, 0.12);
  --radius: 14px;
  --radius-lg: 20px;
}

/* Temas por banco: só na Apresentação (#apresentacao[data-bank]) desde 26/11/2026; o layout do sistema não muda de cor */
[data-bank="itau"] { --deep-green: #002672; --deep-green-lt: #003399; --leaf: #EC7000; --leaf-dk: #B15400; --mint: #FDF3EA; }
[data-bank="bradesco"] { --deep-green: #7B0027; --deep-green-lt: #A50034; --leaf: #CC092F; --leaf-dk: #990623; --mint: #FAEBEE; }
[data-bank="santander"] { --deep-green: #840000; --deep-green-lt: #B00000; --leaf: #EC0000; --leaf-dk: #B10000; --mint: #FDEAEA; }
[data-bank="bb"] { --deep-green: #002D5B; --deep-green-lt: #003D7A; --leaf: #FEDF00; --leaf-dk: #BEA700; --mint: #FEFCEA; }
[data-bank="caixa"] { --deep-green: #00457E; --deep-green-lt: #005CA9; --leaf: #F39200; --leaf-dk: #B66D00; --mint: #FEF6EA; }
[data-bank="safra"] { --deep-green: #002157; --deep-green-lt: #002D74; --leaf: #2A5CAA; --leaf-dk: #1F457F; --mint: #EDF1F8; }
[data-bank="btg"] { --deep-green: #0C1820; --deep-green-lt: #10202B; --leaf: #C9A959; --leaf-dk: #967E42; --mint: #FAF8F1; }
[data-bank="banrisul"] { --deep-green: #157351; --deep-green-lt: #1D9A6C; --leaf: #00A651; --leaf-dk: #007C3C; --mint: #E4EDF8; }
[data-bank="banestes"] { --deep-green: #002157; --deep-green-lt: #002D74; --leaf: #0067B1; --leaf-dk: #004D84; --mint: #EAF2F8; }
[data-bank="banese"] { --deep-green: #007997; --deep-green-lt: #00A2CA; --leaf: #005EA6; --leaf-dk: #00467C; --mint: #EAF2F7; }
[data-bank="brb"] { --deep-green: #002830; --deep-green-lt: #003641; --leaf: #FFC900; --leaf-dk: #BF9600; --mint: #FFFAEA; }
[data-bank="mercantil"] { --deep-green: #507B2B; --deep-green-lt: #2F6FBF; --leaf: #4A7F26; --leaf-dk: #375F1C; --mint: #F0F4ED; }
[data-bank="daycoval"] { --deep-green: #002B54; --deep-green-lt: #003A70; --leaf: #2E7CBE; --leaf-dk: #225D8E; --mint: #EEF4F9; }
[data-bank="sofisa"] { --deep-green: #508933; --deep-green-lt: #6BB745; --leaf: #4A9524; --leaf-dk: #376F1B; --mint: #F0F6ED; }
[data-bank="abc"] { --deep-green: #002D5B; --deep-green-lt: #003D7A; --leaf: #D50032; --leaf-dk: #9F0025; --mint: #FBEAEE; }
[data-bank="nubank"] { --deep-green: #67038E; --deep-green-lt: #8A05BE; --leaf: #B333E0; --leaf-dk: #8626A8; --mint: #F8EEFC; }
[data-bank="inter"] { --deep-green: #BF5B00; --deep-green-lt: #FF7A00; --leaf: #CC5500; --leaf-dk: #993F00; --mint: #FAF1EA; }
[data-bank="c6"] { --deep-green: #0C0C0C; --deep-green-lt: #111111; --leaf: #C9A959; --leaf-dk: #967E42; --mint: #FAF8F1; }
[data-bank="credsystem"] { --deep-green: #0A3D7A; --deep-green-lt: #0D4F9E; --leaf: #F28C00; --leaf-dk: #B56900; --mint: #EEF3FA; }
[data-bank="fortbrasil"] { --deep-green: #0B4D2C; --deep-green-lt: #0F6B3D; --leaf: #00A651; --leaf-dk: #007C3C; --mint: #EAF6EF; }
[data-bank="realize"] { --deep-green: #8C0013; --deep-green-lt: #B3001A; --leaf: #D2001E; --leaf-dk: #9E0017; --mint: #FBEAEC; }
[data-bank="ipanema"] { --deep-green: #023E62; --deep-green-lt: #035A8C; --leaf: #0096C7; --leaf-dk: #007095; --mint: #EAF5FA; }
[data-bank="neon"] { --deep-green: #BF0060; --deep-green-lt: #FF0080; --leaf: #CC0066; --leaf-dk: #99004C; --mint: #FAEAF2; }
[data-bank="next"] { --deep-green: #00AB78; --deep-green-lt: #00E4A0; --leaf: #00B380; --leaf-dk: #008660; --mint: #EAF8F4; }
[data-bank="digio"] { --deep-green: #BFA500; --deep-green-lt: #FFDD00; --leaf: #F5C400; --leaf-dk: #B79300; --mint: #FEFAEA; }
[data-bank="iti"] { --deep-green: #BF2672; --deep-green-lt: #FF3399; --leaf: #E60082; --leaf-dk: #AC0061; --mint: #FDEAF5; }
[data-bank="picpay"] { --deep-green: #189146; --deep-green-lt: #21C25E; --leaf: #199A48; --leaf-dk: #127336; --mint: #ECF6F0; }
[data-bank="mercadopago"] { --deep-green: #0084AF; --deep-green-lt: #00B1EA; --leaf: #009EE3; --leaf-dk: #0076AA; --mint: #EAF7FC; }
[data-bank="willbank"] { --deep-green: #5D39BF; --deep-green-lt: #7C4DFF; --leaf: #5B2FE0; --leaf-dk: #4423A8; --mint: #F1EEFC; }
[data-bank="nomad"] { --deep-green: #BF9600; --deep-green-lt: #FFC800; --leaf: #E5B300; --leaf-dk: #AB8600; --mint: #FCF8EA; }
[data-bank="sofisa_direto"] { --deep-green: #508933; --deep-green-lt: #6BB745; --leaf: #4A9524; --leaf-dk: #376F1B; --mint: #F0F6ED; }
[data-bank="bmg"] { --deep-green: #BE3C00; --deep-green-lt: #FE5000; --leaf: #CC4000; --leaf-dk: #993000; --mint: #FAEFEA; }
[data-bank="pan"] { --deep-green: #007B87; --deep-green-lt: #00A5B4; --leaf: #00C4D6; --leaf-dk: #0093A0; --mint: #EAFAFB; }
[data-bank="bv"] { --deep-green: #007873; --deep-green-lt: #00A19A; --leaf: #00C4B4; --leaf-dk: #009387; --mint: #EAFAF9; }
[data-bank="crefisa"] { --deep-green: #002672; --deep-green-lt: #003399; --leaf: #0055B8; --leaf-dk: #003F8A; --mint: #EAF1F9; }
[data-bank="cetelem"] { --deep-green: #005F99; --deep-green-lt: #007FCC; --leaf: #00A0FF; --leaf-dk: #0078BF; --mint: #EAF7FF; }
[data-bank="losango"] { --deep-green: #9A0000; --deep-green-lt: #CE0000; --leaf: #00A651; --leaf-dk: #007C3C; --mint: #E4EDF8; }
[data-bank="omni"] { --deep-green: #B56D19; --deep-green-lt: #F29222; --leaf: #D67917; --leaf-dk: #A05A11; --mint: #FBF4EC; }
[data-bank="facta"] { --deep-green: #007B3C; --deep-green-lt: #00A550; --leaf: #008040; --leaf-dk: #006030; --mint: #E4EDF8; }
[data-bank="agibank"] { --deep-green: #AC004A; --deep-green-lt: #E60063; --leaf: #B3004E; --leaf-dk: #86003A; --mint: #F8EAF0; }
[data-bank="master"] { --deep-green: #967E42; --deep-green-lt: #C9A959; --leaf: #A88A3A; --leaf-dk: #7E672B; --mint: #F8F5EF; }
[data-bank="portocred"] { --deep-green: #960C22; --deep-green-lt: #C8102E; --leaf: #8B0021; --leaf-dk: #680018; --mint: #F5EAED; }
[data-bank="olé"] { --deep-green: #003F7B; --deep-green-lt: #0055A5; --leaf: #F5A623; --leaf-dk: #B77C1A; --mint: #FEF7ED; }
[data-bank="safra_finance"] { --deep-green: #002157; --deep-green-lt: #002D74; --leaf: #2A5CAA; --leaf-dk: #1F457F; --mint: #EDF1F8; }
[data-bank="cbss"] { --deep-green: #002D5B; --deep-green-lt: #003D7A; --leaf: #0067B1; --leaf-dk: #004D84; --mint: #EAF2F8; }
[data-bank="zema"] { --deep-green: #007C3C; --deep-green-lt: #00A651; --leaf: #008040; --leaf-dk: #006030; --mint: #E4EDF8; }
[data-bank="sicoob"] { --deep-green: #002830; --deep-green-lt: #003641; --leaf: #00A94F; --leaf-dk: #007E3B; --mint: #EAF8F0; }
[data-bank="sicredi"] { --deep-green: #00742B; --deep-green-lt: #009B3A; --leaf: #007A2E; --leaf-dk: #005B22; --mint: #EAF4EE; }
[data-bank="cresol"] { --deep-green: #AB9322; --deep-green-lt: #E5C42E; --leaf: #B39A25; --leaf-dk: #86731B; --mint: #F8F6ED; }
[data-bank="unicred"] { --deep-green: #002D5B; --deep-green-lt: #003D7A; --leaf: #F5A623; --leaf-dk: #B77C1A; --mint: #FEF7ED; }
[data-bank="riachuelo"] { --deep-green: #B20026; --deep-green-lt: #EE0033; --leaf: #B30026; --leaf-dk: #86001C; --mint: #F8EAED; }
[data-bank="renner"] { --deep-green: #00366C; --deep-green-lt: #004990; --leaf: #005CBF; --leaf-dk: #00458F; --mint: #EAF1F9; }
[data-bank="cea"] { --deep-green: #B10000; --deep-green-lt: #ED0000; --leaf: #B30000; --leaf-dk: #860000; --mint: #F8EAEA; }
[data-bank="pernambucanas"] { --deep-green: #002D7B; --deep-green-lt: #003DA5; --leaf: #0055CC; --leaf-dk: #003F99; --mint: #EAF1FA; }
[data-bank="casasbahia"] { --deep-green: #00457B; --deep-green-lt: #005DA4; --leaf: #007DCC; --leaf-dk: #005D99; --mint: #EAF4FA; }
[data-bank="magalu"] { --deep-green: #00458A; --deep-green-lt: #005CB9; --leaf: #FF0080; --leaf-dk: #BF0060; --mint: #FFEAF4; }
[data-bank="pontofrio"] { --deep-green: #AA040E; --deep-green-lt: #E30613; --leaf: #B30000; --leaf-dk: #860000; --mint: #F8EAEA; }
[data-bank="marisa"] { --deep-green: #AB005F; --deep-green-lt: #E4007F; --leaf: #B30063; --leaf-dk: #86004A; --mint: #F8EAF2; }
[data-bank="havan"] { --deep-green: #BFA100; --deep-green-lt: #FFD700; --leaf: #B39700; --leaf-dk: #867100; --mint: #F8F6EA; }
[data-bank="atacadao"] { --deep-green: #AB0020; --deep-green-lt: #E4002B; --leaf: #FFDD00; --leaf-dk: #BFA500; --mint: #FFFCEA; }
[data-bank="assai"] { --deep-green: #B25501; --deep-green-lt: #EE7202; --leaf: #FFDD00; --leaf-dk: #BFA500; --mint: #FFFCEA; }
[data-bank="extra"] { --deep-green: #A91D1C; --deep-green-lt: #E22726; --leaf: #B30000; --leaf-dk: #860000; --mint: #F8EAEA; }
[data-bank="carrefour"] { --deep-green: #003F77; --deep-green-lt: #00549F; --leaf: #E4002B; --leaf-dk: #AB0020; --mint: #FCEAEE; }
[data-bank="americanas"] { --deep-green: #AB0020; --deep-green-lt: #E4002B; --leaf: #B30000; --leaf-dk: #860000; --mint: #F8EAEA; }
[data-bank="submarino"] { --deep-green: #BFA600; --deep-green-lt: #FFDE00; --leaf: #B39C00; --leaf-dk: #867500; --mint: #F8F7EA; }
[data-bank="shoptime"] { --deep-green: #AB0020; --deep-green-lt: #E4002B; --leaf: #B30000; --leaf-dk: #860000; --mint: #F8EAEA; }
[data-bank="marabraz"] { --deep-green: #BF941D; --deep-green-lt: #FFC627; --leaf: #E4A800; --leaf-dk: #AB7E00; --mint: #FCF8EA; }
[data-bank="torra"] { --deep-green: #AB0020; --deep-green-lt: #E4002B; --leaf: #B30000; --leaf-dk: #860000; --mint: #F8EAEA; }
[data-bank="cem"] { --deep-green: #002D5B; --deep-green-lt: #003D7A; --leaf: #0055B8; --leaf-dk: #003F8A; --mint: #EAF1F9; }
[data-bank="insinuante"] { --deep-green: #AA040E; --deep-green-lt: #E30613; --leaf: #B30000; --leaf-dk: #860000; --mint: #F8EAEA; }
[data-bank="samsclub"] { --deep-green: #002A58; --deep-green-lt: #003876; --leaf: #0055B8; --leaf-dk: #003F8A; --mint: #EAF1F9; }
[data-bank="esplanada"] { --deep-green: #004C86; --deep-green-lt: #0066B3; --leaf: #004080; --leaf-dk: #003060; --mint: #EAEFF4; }
[data-bank="leader"] { --deep-green: #AB0020; --deep-green-lt: #E4002B; --leaf: #B30000; --leaf-dk: #860000; --mint: #F8EAEA; }
[data-bank="cassol"] { --deep-green: #00468A; --deep-green-lt: #005EB8; --leaf: #003D7A; --leaf-dk: #002D5B; --mint: #EAEFF4; }
[data-bank="koerich"] { --deep-green: #AB0020; --deep-green-lt: #E4002B; --leaf: #B30000; --leaf-dk: #860000; --mint: #F8EAEA; }
[data-bank="honda"] { --deep-green: #990000; --deep-green-lt: #CC0000; --leaf: #E60012; --leaf-dk: #AC000D; --mint: #FDEAEC; }
[data-bank="toyota"] { --deep-green: #AC000D; --deep-green-lt: #E60012; --leaf: #B30000; --leaf-dk: #860000; --mint: #F8EAEA; }
[data-bank="gm"] { --deep-green: #8A7800; --deep-green-lt: #B8A100; --leaf: #F5D000; --leaf-dk: #B79C00; --mint: #FEFBEA; }
[data-bank="ford"] { --deep-green: #00275A; --deep-green-lt: #003478; --leaf: #0055B8; --leaf-dk: #003F8A; --mint: #EAF1F9; }
[data-bank="vw"] { --deep-green: #00163C; --deep-green-lt: #001E50; --leaf: #003D7A; --leaf-dk: #002D5B; --mint: #EAEFF4; }
[data-bank="fiat"] { --deep-green: #900000; --deep-green-lt: #C00000; --leaf: #8B0000; --leaf-dk: #680000; --mint: #F5EAEA; }
[data-bank="renault"] { --deep-green: #BF9800; --deep-green-lt: #FFCB00; --leaf: #E5B300; --leaf-dk: #AB8600; --mint: #FCF8EA; }
[data-bank="hyundai"] { --deep-green: #002147; --deep-green-lt: #002C5F; --leaf: #0055B8; --leaf-dk: #003F8A; --mint: #EAF1F9; }
[data-bank="kia"] { --deep-green: #030F17; --deep-green-lt: #05141F; --leaf: #C74747; --leaf-dk: #953535; --mint: #FAF0F0; }
[data-bank="nissan"] { --deep-green: #920023; --deep-green-lt: #C3002F; --leaf: #8B0021; --leaf-dk: #680018; --mint: #F5EAED; }
[data-bank="yamaha"] { --deep-green: #002672; --deep-green-lt: #003399; --leaf: #0055B8; --leaf-dk: #003F8A; --mint: #EAF1F9; }
[data-bank="suzuki"] { --deep-green: #AC000D; --deep-green-lt: #E60012; --leaf: #B30000; --leaf-dk: #860000; --mint: #F8EAEA; }
[data-bank="peugeot"] { --deep-green: #161E3C; --deep-green-lt: #1E2851; --leaf: #004A9F; --leaf-dk: #003777; --mint: #EAF0F7; }
[data-bank="citroen"] { --deep-green: #860000; --deep-green-lt: #B30000; --leaf: #8B0000; --leaf-dk: #680000; --mint: #F5EAEA; }
[data-bank="volvo"] { --deep-green: #002441; --deep-green-lt: #003057; --leaf: #00579D; --leaf-dk: #004175; --mint: #EAF1F7; }
[data-bank="scania"] { --deep-green: #031631; --deep-green-lt: #041E42; --leaf: #003D7A; --leaf-dk: #002D5B; --mint: #EAEFF4; }
[data-bank="iveco"] { --deep-green: #002D5B; --deep-green-lt: #003D7A; --leaf: #0055B8; --leaf-dk: #003F8A; --mint: #EAF1F9; }
[data-bank="mercedes"] { --deep-green: #0081B3; --deep-green-lt: #00ADEF; --leaf: #006E9E; --leaf-dk: #005276; --mint: #EAF3F7; }
[data-bank="bmw"] { --deep-green: #154E9F; --deep-green-lt: #1C69D4; --leaf: #0055A5; --leaf-dk: #003F7B; --mint: #EAF1F7; }
[data-bank="audi"] { --deep-green: #8C0724; --deep-green-lt: #BB0A30; --leaf: #8B0021; --leaf-dk: #680018; --mint: #F5EAED; }
[data-bank="mitsubishi"] { --deep-green: #AA040E; --deep-green-lt: #E30613; --leaf: #B30000; --leaf-dk: #860000; --mint: #F8EAEA; }
[data-bank="caoa"] { --deep-green: #002D5B; --deep-green-lt: #003D7A; --leaf: #0055B8; --leaf-dk: #003F8A; --mint: #EAF1F9; }
[data-bank="jac"] { --deep-green: #002D5B; --deep-green-lt: #003D7A; --leaf: #0055B8; --leaf-dk: #003F8A; --mint: #EAF1F9; }
[data-bank="creditas"] { --deep-green: #BD8E00; --deep-green-lt: #FDBE00; --leaf: #E0A600; --leaf-dk: #A87C00; --mint: #FCF7EA; }
[data-bank="geru"] { --deep-green: #00843B; --deep-green-lt: #00B14F; --leaf: #008040; --leaf-dk: #006030; --mint: #E4EDF8; }
[data-bank="rebel"] { --deep-green: #AB005F; --deep-green-lt: #E4007F; --leaf: #B30063; --leaf-dk: #86004A; --mint: #F8EAF2; }
[data-bank="meliuz"] { --deep-green: #7800BF; --deep-green-lt: #A100FF; --leaf: #7300B3; --leaf-dk: #560086; --mint: #F3EAF8; }
[data-bank="serasa"] { --deep-green: #002D5B; --deep-green-lt: #003D7A; --leaf: #0055B8; --leaf-dk: #003F8A; --mint: #EAF1F9; }
[data-bank="juno"] { --deep-green: #007C3C; --deep-green-lt: #00A651; --leaf: #008040; --leaf-dk: #006030; --mint: #E4EDF8; }
[data-bank="elo"] { --deep-green: #B76118; --deep-green-lt: #F58220; --leaf: #00A4E0; --leaf-dk: #007BA8; --mint: #EAF7FC; }
[data-bank="hipercard"] { --deep-green: #851A26; --deep-green-lt: #B22333; --leaf: #8B1A28; --leaf-dk: #68131E; --mint: #F5ECED; }
[data-bank="sorocred"] { --deep-green: #002D5B; --deep-green-lt: #003D7A; --leaf: #0055B8; --leaf-dk: #003F8A; --mint: #EAF1F9; }
[data-bank="cabal"] { --deep-green: #003E74; --deep-green-lt: #00539B; --leaf: #003D7A; --leaf-dk: #002D5B; --mint: #EAEFF4; }
[data-bank="original"] { --deep-green: #507B2B; --deep-green-lt: #2F6FBF; --leaf: #8ED64B; --leaf-dk: #6AA038; --mint: #F5FBF0; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--paper);
  font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.app { max-width: 1400px; margin: 0 auto; padding: 20px 24px 140px; }

header.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--deep-green) 0%, var(--deep-green-lt) 100%);
  color: white; border-radius: var(--radius-lg);
  margin-bottom: 16px; box-shadow: var(--shadow-md);
}
header .brand { display: flex; align-items: center; gap: 14px; }
header .logo {
  width: 42px; height: 42px; border-radius: 10px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
header .brand-text { font-size: 10px; letter-spacing: 2px; font-weight: 700; opacity: 0.75; }
header h1 { font-size: 19px; font-weight: 700; margin-top: 2px; }
.header-actions { display: flex; gap: 8px; }

.btn {
  padding: 10px 16px; border-radius: 10px; border: none;
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.15s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--leaf); color: white; }
.btn-primary:hover { background: var(--leaf-dk); }
.btn-secondary { background: white; color: var(--deep-green); border: 1.5px solid var(--hairline); }
.btn-secondary:hover { border-color: var(--deep-green); }
.btn-ghost { background: rgba(255,255,255,0.15); color: white; }
.btn-ghost:hover { background: rgba(255,255,255,0.25); }

/* HEADER - botões com máximo contraste sobre fundo colorido do tema */
header.top .btn-primary {
  background: rgba(255,255,255,0.95); color: var(--deep-green);
  font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border: none;
}
header.top .btn-primary:hover {
  background: white; box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
header.top .btn-ghost {
  background: rgba(255,255,255,0.18); color: white;
  border: 1px solid rgba(255,255,255,0.35);
}
header.top .btn-ghost:hover {
  background: rgba(255,255,255,0.28); border-color: rgba(255,255,255,0.5);
}
.btn-wa { background: var(--leaf); color: white; }
.btn-wa:hover { background: var(--leaf-dk); }
.btn-excel { background: var(--deep-green-lt); color: white; }
.btn-excel:hover { background: var(--deep-green); }
.btn-card { background: var(--leaf); color: white; border: none; }
.btn-card:hover { background: var(--leaf-dk); }

/* TABS */
.tabs {
  display: flex; gap: 8px; margin-bottom: 20px;
}
.tab {
  padding: 12px 20px;
  background: white; border: 1.5px solid var(--hairline);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--muted); transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.tab:hover { border-color: var(--deep-green); color: var(--deep-green); }
.tab.active {
  background: var(--deep-green); color: white; border-color: var(--deep-green);
}

.mode { display: none; }
.mode.active { display: block; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grid > * { min-width: 0; } /* coluna não estica além da tela no celular */
@media (max-width: 1100px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--hairline);
  margin-bottom: 12px;
}
.card h2 {
  font-size: 11px; letter-spacing: 2px; color: var(--muted);
  text-transform: uppercase; font-weight: 700;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--leaf);
}

/* FIELDS */
.field { margin-bottom: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field label,
.field > label,
label {
  display: block;
  font-size: 13px; color: var(--graphite);
  margin-bottom: 6px; font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="month"],
select, textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--hairline);
  background: white;
  font-family: inherit; font-size: 14px;
  color: var(--ink);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="month"]:focus,
select:focus, textarea:focus {
  border-color: var(--leaf);
}
input::placeholder { color: var(--muted); }
input[type="hidden"] { display: none; }

.hint {
  font-size: 12px; color: var(--muted); margin-top: 6px;
}

/* CHIPS */
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chips input[type="radio"] { display: none; }
.chips label {
  padding: 8px 14px; border: 1.5px solid var(--hairline); border-radius: 20px;
  font-size: 13px; color: var(--muted); font-weight: 600;
  cursor: pointer; transition: all 0.15s; margin: 0;
}
.chips label:hover { border-color: var(--leaf); color: var(--deep-green); }
/* Label que CONTÉM o input radio checked */
.chips label:has(input[type="radio"]:checked) {
  background: var(--deep-green); color: white; border-color: var(--deep-green);
  box-shadow: 0 2px 8px rgba(29, 78, 137, 0.25);
}
/* Fallback pra estrutura input + label (compatibilidade) */
.chips input[type="radio"]:checked + label {
  background: var(--deep-green); color: white; border-color: var(--deep-green);
}

/* HERO ECONOMIA - grande card verde no topo direito */
.kpi-hero, .hero {
  background: linear-gradient(135deg, var(--deep-green) 0%, var(--deep-green-lt) 100%);
  color: white;
  padding: 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.kpi-hero .lbl, .hero .hero-label {
  font-size: 11px; letter-spacing: 2px; opacity: 0.8;
  font-weight: 700; text-transform: uppercase;
  margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.kpi-hero .val, .hero .hero-value {
  font-size: 48px; font-weight: 800; letter-spacing: -2px;
  line-height: 1; margin: 4px 0;
  font-variant-numeric: tabular-nums;
}
.kpi-hero .sub, .hero .hero-note {
  font-size: 13px; opacity: 0.85; margin-top: 6px;
}
.kpi-hero.empty .val, .hero.empty .hero-value { opacity: 0.4; }

/* KPIs em cards brancos */
.kpis {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-bottom: 12px;
}
.kpi {
  background: white; padding: 20px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.kpi .lbl {
  font-size: 10px; letter-spacing: 1.5px; color: var(--muted);
  font-weight: 700; text-transform: uppercase;
  margin-bottom: 8px;
}
.kpi .val {
  font-size: 20px; font-weight: 800;
  color: var(--ink); line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* KPI editável */
.kpi-edit-btn {
  background: none; border: none; padding: 0 2px; cursor: pointer;
  font-size: 12px; opacity: 0.4;
  transition: opacity 0.15s; vertical-align: middle;
}
.kpi-edit-btn:hover { opacity: 1; }
.editable-kpi.edited::after {
  content: "editado"; display: block;
  font-size: 9px; color: var(--leaf);
  margin-top: 4px; letter-spacing: 1px;
  text-transform: uppercase; font-weight: 700;
}
.editable-kpi.edited .val { color: var(--leaf); }
.kpi-input {
  font-size: 20px; font-weight: 800; letter-spacing: -0.5px;
  border: 1.5px solid var(--leaf); border-radius: 6px;
  padding: 4px 8px;
  color: var(--leaf); background: white;
  outline: none; width: 100%; text-align: center;
}

/* COMPARATIVO */
.compare {
  background: var(--mint);
  padding: 20px; border-radius: var(--radius);
  margin-bottom: 12px;
}
.compare h3 {
  font-size: 11px; letter-spacing: 2px; color: var(--muted);
  text-transform: uppercase; font-weight: 700;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 4px solid var(--leaf);
}
.compare-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
  font-size: 14px;
}
.compare-row .lbl { color: var(--graphite); font-weight: 600; }
.compare-row .val { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; }
.compare-row.original .val { color: var(--red); }
.compare-row.conteste .val { color: var(--deep-green); }
.compare-bar {
  height: 4px; background: var(--hairline);
  border-radius: 2px; overflow: hidden; margin-bottom: 10px;
}
.compare-fill {
  height: 100%; border-radius: 2px;
  transition: width 0.4s ease;
}
.compare-fill.original { background: var(--red); }
.compare-fill.conteste { background: var(--deep-green); }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  background: var(--leaf); color: white;
  margin-left: 8px;
}

/* RECEITA CONTESTE */
.receita {
  background: white; padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  margin-top: 12px;
}
.receita-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.receita-row:last-child { border-bottom: none; }
.receita-total {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; margin-top: 6px;
  border-top: 2px solid var(--deep-green);
  font-weight: 700; color: var(--graphite);
}
.receita-total .v { color: var(--deep-green); font-size: 20px; }
/* Desconto nos honorários (16/11/2026): só Murilo, Maria Veras e Thaís */
.hono-edit-btn, .ent-edit-btn {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 8px; padding: 3px 10px; cursor: pointer; vertical-align: middle;
  font: 700 11px/1.4 inherit; letter-spacing: .2px; white-space: nowrap;
  color: var(--deep-green); background: var(--mint, #E4EDF8);
  border: 1px solid rgba(47,111,191,.35); border-radius: 999px;
  transition: background .15s, border-color .15s, transform .1s;
}
.hono-edit-btn:hover, .ent-edit-btn:hover { background: white; border-color: var(--leaf); }
.hono-edit-btn:active, .ent-edit-btn:active { transform: scale(.97); }
.receita-total .v.descontado { color: var(--leaf-dk, var(--deep-green)); }
.receita-total .hono-input {
  font-size: 18px; font-weight: 800; width: 150px; text-align: right;
  border: 1.5px solid var(--leaf); border-radius: 6px; padding: 4px 8px;
  color: var(--deep-green); background: white; outline: none;
}
/* Entrada alterada pelos closers + registro de alterações (17/11/2026) */
.ent-input { width: 120px; font-weight: 800; font-size: 13px; border: 1.5px solid var(--leaf); border-radius: 6px; padding: 2px 6px; color: var(--deep-green); outline: none; }
.ent-reg { margin: 8px 0 2px; }
.closer-trava { font-size: 10.5px; color: var(--muted, #66728A); margin-top: 4px; }
.closer-trava b { color: var(--deep-green); }
.chips.travado { opacity: .55; pointer-events: none; }
.hist-desc-linha { font-size: 11.5px; color: var(--graphite, #2A3550); margin-top: 4px; }
.hist-desc-linha s { color: var(--muted, #66728A); }
.hist-desc { font-size: 9px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  color: var(--leaf-dk, #4E7D27); background: var(--mint, #E4EDF8); border-radius: 999px; padding: 2px 7px; margin-left: 6px; vertical-align: middle; }

/* ACTION BAR fixa embaixo */
.action-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  padding: 12px 20px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--hairline);
  display: flex; gap: 8px; align-items: center;
  z-index: 50;
  box-shadow: 0 -4px 20px rgba(15, 31, 44, 0.06);
}
.action-bar .btn { padding: 13px 20px; }
.action-bar .btn-primary { flex: 1; justify-content: center; }

/* DETALHAMENTO técnico */
.detalhamento {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px dashed var(--hairline);
}
.detalhamento summary {
  cursor: pointer; padding: 6px 0;
  font-size: 13px; color: var(--muted);
  list-style: none; font-weight: 600;
}
.detalhamento summary::-webkit-details-marker { display: none; }
.detalhamento summary::after {
  content: " ▾"; font-weight: 400; margin-left: 4px;
}
.detalhamento[open] summary::after { content: " ▴"; }
.detalhamento-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px;
  padding: 12px 0 0;
}
.detalhamento-row {
  display: flex; justify-content: space-between;
  padding: 4px 0;
  font-size: 12px; color: var(--graphite);
}
.detalhamento-row span:last-child {
  color: var(--ink); font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Formulário compacto (05/11/2026): campos lado a lado */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.row > .field, .row-3 > .field { min-width: 0; }
.row-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-4 > .field { min-width: 0; }
.info2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.info2 > div { margin-bottom: 0 !important; }
@media (max-width: 560px) { .row-3, .info2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .row, .row-3, .info2 { grid-template-columns: 1fr; } }

/* ROBÔ DE CONTRATOS: campos do atendimento e "Laudo concluído" */
.robo-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.robo-grid > .field[hidden] { display:none; }
.row-3 .chips { flex-wrap: nowrap; }
@media (max-width:560px) { .robo-grid { grid-template-columns:1fr; gap:0; } }
input[type="date"] { width:100%; padding:10px 14px; border:1.5px solid var(--hairline); background:white; font-family:inherit; font-size:14px; color:var(--ink); border-radius:10px; outline:none; }
input[type="date"]:focus { border-color:var(--leaf); }
.robo-pag { margin-top:16px; padding-top:16px; border-top:1px solid var(--hairline); }
.robo-pag[hidden] { display:none; }
.robo-total { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 16px; border-radius:10px; background:var(--mint); font-size:13px; font-weight:600; color:var(--graphite); }
.robo-total b { color:var(--deep-green); font-size:16px; }
.robo-concluir { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:14px; }
.btn-concluir { border:1.5px solid var(--deep-green); background:white; color:var(--deep-green); font-family:inherit; font-size:14px; font-weight:700; padding:10px 18px; border-radius:10px; cursor:pointer; }
.btn-concluir:hover { background:var(--mint); }
.btn-concluir.ok { background:var(--deep-green); color:white; }
.robo-status { font-size:12px; color:var(--muted); }

/* SIMULAÇÃO PAGAMENTO NO CARTÃO (taxas fixas das maquininhas) */
.sim-head { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-top:16px; }
.sim-head .chips { margin-top:0; }
.sim-info { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.sim-maq { font-size:12px; font-weight:700; color:var(--deep-green); background:var(--mint); padding:6px 12px; border-radius:20px; }
.sim-maq b { margin-left:4px; }
.sim-nota { font-size:11px; color:var(--muted); margin-top:10px; }
.sim-dica { font-size:11px; color:var(--muted); margin-top:10px; }
.sim-escolha { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:12px; padding:10px 14px; border-radius:12px; background:var(--mint); border:1.5px solid var(--leaf); font-size:13px; color:var(--deep-green); }
.sim-escolha + .sim-dica { display:none; }
.sim-limpar { border:none; background:transparent; color:var(--muted); font-size:14px; cursor:pointer; width:26px; height:26px; border-radius:50%; }
.sim-limpar:hover { background:#fff; color:var(--red); }
.sim-tab tbody tr { cursor:pointer; transition:background 0.12s; }
.sim-tab tbody tr:hover td { background:var(--mint); }
.sim-tab tbody tr.sel td { background:var(--deep-green); color:#fff; font-weight:700; }
.sim-tab tbody tr.sel td.tx, .sim-tab tbody tr.sel td.par { color:#fff; }
.sim-liq { font-size:12px; color:var(--muted); font-weight:600; }
.sim-liq b { color:var(--deep-green); font-size:15px; margin-left:6px; }
.sim-wrap { overflow-x:auto; margin-top:12px; }
.sim-tab { width:100%; border-collapse:collapse; font-size:13px; font-variant-numeric:tabular-nums; }
.sim-tab th { text-align:right; font-size:10px; letter-spacing:1.5px; text-transform:uppercase; color:var(--muted); font-weight:700; padding:6px 8px; border-bottom:1px solid var(--hairline); }
.sim-tab th:first-child, .sim-tab td:first-child { text-align:left; }
.sim-tab td { text-align:right; padding:8px; border-bottom:1px solid var(--hairline); color:var(--ink); }
.sim-tab td.tx { color:var(--muted); }
.sim-tab td.par { color:var(--deep-green); font-weight:700; }
.sim-tab tr:last-child td { border-bottom:none; }

/* DETALHAMENTO TÉCNICO (Balão) - colapsável */
.card-details { cursor: pointer; }
.card-details summary {
  display: flex; align-items: center; justify-content: space-between;
  list-style: none; cursor: pointer;
  padding: 0;
}
.card-details summary::-webkit-details-marker { display: none; }
.card-details summary h2 {
  font-size: 11px; letter-spacing: 2px; color: var(--muted);
  text-transform: uppercase; font-weight: 700;
  padding-left: 12px !important;
  border-left: 4px solid var(--leaf) !important;
}
.card-details .chev {
  font-size: 12px; color: var(--muted); font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.card-details .chev::after {
  content: "▾"; transition: transform 0.2s;
  display: inline-block;
}
.card-details[open] .chev::after { transform: rotate(180deg); }
.card-details[open] .chev { color: var(--deep-green); }
.card-details:hover .chev { color: var(--deep-green); }

.detail-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .detail-grid { grid-template-columns: repeat(2, 1fr); } }
.detail-block {
  padding: 12px 14px; background: var(--paper);
  border-radius: 10px; border: 1px solid var(--hairline);
}
.dt-lbl {
  font-size: 10px; letter-spacing: 1.5px; color: var(--muted);
  text-transform: uppercase; font-weight: 700; margin-bottom: 4px;
}
.dt-val {
  font-size: 16px; font-weight: 800; color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* CARTÃO - conta extrajudicial (débitos + texto pronto para copiar) */
body.tipo-cartao .nao-cartao { display: none !important; }

/* ASSISTENTE EM ETAPAS (Laudo Padrão), como no primeiro sistema */
.passos { margin-bottom: 16px; }
.passos ol { display: grid; grid-template-columns: repeat(var(--n-passos, 4), minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.passos button {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer;
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: white; border: 1px solid var(--hairline); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
}
.passos button:hover { border-color: var(--leaf); }
.passos button:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }
.passos .bola {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: var(--paper); color: var(--graphite);
}
.passos .txt { min-width: 0; }
.passos b { display: block; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.passos small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.passos .feito .bola { background: var(--deep-green); color: white; }
.passos .ativo { border-color: var(--deep-green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--deep-green) 15%, transparent); }
.passos .ativo .bola { background: var(--mint); color: var(--deep-green); box-shadow: inset 0 0 0 2px var(--deep-green); }
.trilho { height: 4px; background: var(--hairline); border-radius: 4px; overflow: hidden; margin-top: 10px; }
.trilho i { display: block; height: 100%; width: 0; background: var(--deep-green); transition: width .35s cubic-bezier(.16, 1, .3, 1); }
.etapa { display: none; }
.etapa.on { display: block; animation: etapa-entra .3s cubic-bezier(.16, 1, .3, 1); }
@keyframes etapa-entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.etapa h2 { outline: none; }
.etapa-lead { font-size: 13px; color: var(--graphite); margin: -6px 0 16px; }
.etapa-ajuda { font-size: 12px; color: var(--muted); margin-top: 10px; }
.passos-rodape {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: white; border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 12px 16px; margin-bottom: 12px;
}
.passos-rodape .passo-txt { font-size: 13px; color: var(--muted); }
.passos-rodape .btn:disabled { opacity: .45; cursor: default; }
.passos-rodape .btn[hidden] { display: none; }
.revisao { border: 1px solid var(--hairline); border-radius: 12px; }
.revisao > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--hairline); font-size: 13.5px; }
.revisao > div:last-child { border-bottom: 0; }
.revisao span { color: var(--graphite); flex: 0 0 auto; }
.revisao b { text-align: right; min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.revisao .dest b { color: var(--deep-green); font-size: 15px; }
.revisao .vazio b { color: #B54708; font-weight: 600; }
.revisao .corrigir { background: none; border: 0; cursor: pointer; color: var(--leaf-dk); font: inherit; font-weight: 700; font-size: 12px; margin-left: 10px; padding: 2px 0; }
.revisao .corrigir:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .passos small { display: none; } }
@media (max-width: 560px) {
  .passos ol { display: flex; gap: 6px; }
  .passos li { flex: 1 1 0; min-width: 0; }
  .passos li:has(.ativo) { flex: 3.5 1 0; }
  .passos button { justify-content: center; padding: 10px 6px; }
  .passos .txt { display: none; }
  .passos .ativo .txt { display: block; }
  .passos-rodape .passo-txt { display: none; }
}
.debitos-lista { display: grid; gap: 10px; }
.debito-total { font-size: 12px; color: var(--graphite); margin: -4px 0 10px; }
.debito-total b { color: var(--deep-green); }

/* REFI - contratos primitivo/aditivo */
.refi-only { display: none; }
.refi .refi-only { display: block; }
.refi .normal-only { display: none; }

.refi-summary {
  background: var(--mint);
  padding: 12px 14px; border-radius: var(--radius);
  margin-top: 12px;
}
.refi-summary-row {
  display: flex; justify-content: space-between;
  padding: 4px 0;
  font-size: 13px; color: var(--graphite);
}
.refi-summary-row span:last-child {
  font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.refi-summary-row.destaque span:last-child {
  color: var(--deep-green); font-size: 16px;
}

/* CONFIG WARNING */
.config-warning {
  display: none;
  position: fixed; inset: 0;
  background: var(--paper);
  align-items: center; justify-content: center;
  padding: 40px 24px; z-index: 500;
}
.config-warning.show { display: flex; }
.config-warning .card {
  max-width: 560px; width: 100%; text-align: left;
  border-top: 4px solid var(--red);
}
.config-warning h2 {
  font-size: 22px; color: var(--red); margin-bottom: 12px;
  border-left: none; padding-left: 0; text-transform: none; letter-spacing: 0;
}
.config-warning p { font-size: 14px; line-height: 1.6; margin-bottom: 10px; color: var(--graphite); }
.config-warning code {
  background: var(--paper); padding: 2px 6px;
  border-radius: 4px; font-family: Menlo, monospace;
  font-size: 12px; color: var(--deep-green);
}

/* MODO LOCAL (arquivo aberto direto do computador, sem servidor) */
.modo-local-aviso {
  background: #FFF4D6; color: #6B4E00; border-bottom: 1px solid #F0D58A;
  font-size: 13px; line-height: 1.5; padding: 8px 16px; text-align: center;
}
.modo-local-aviso code {
  background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px;
  font-family: Menlo, Consolas, monospace; font-size: 12px;
}
body.modo-local #btnSair, body.modo-local #btnTrocarSenha { display: none !important; }

/* LOGIN SCREEN
   Cores fixas da marca (não seguem o tema do banco escolhido no laudo) */
.login-screen {
  --login-azul: #1D4E89;
  --login-azul-hover: #173F70;
  --login-tinta: #141C2B;
  --login-texto: #66728A;
  --login-borda: #D5DCE6;
  position: fixed; inset: 0; background: #F2F4F8;
  display: none; align-items: center; justify-content: center;
  padding: 32px 16px; z-index: 200; overflow-y: auto;
}
.login-screen.show { display: flex; }
.login-card {
  background: #fff; width: 100%; max-width: 408px;
  padding: 32px 32px 28px;
  border-radius: 16px; border: 1px solid #E3E8EF; border-top: 4px solid var(--login-azul);
  box-shadow: 0 24px 60px -12px rgba(20, 28, 43, 0.14), 0 2px 6px rgba(20, 28, 43, 0.04);
}
.login-logo { display: block; width: 54px; height: auto; margin-bottom: 22px; }
.login-titulo {
  font-size: 22px; font-weight: 800; color: var(--login-tinta);
  letter-spacing: -0.01em; line-height: 1.2; margin: 0;
  border: none; padding: 0; text-transform: none;
}
.login-sub { font-size: 13px; color: var(--login-texto); margin: 6px 0 26px; line-height: 1.5; }
.login-form { display: flex; flex-direction: column; gap: 18px; }
.login-campo label {
  display: block; font-size: 13px; font-weight: 700; color: var(--login-tinta);
  margin-bottom: 8px; text-transform: none; letter-spacing: 0;
}
.login-campo input {
  display: block; width: 100%; height: 50px; box-sizing: border-box;
  padding: 0 14px; font: inherit; font-size: 15px; color: var(--login-tinta);
  background: #fff; border: 1px solid var(--login-borda); border-radius: 10px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.login-campo input::placeholder { color: #9AA4B5; }
.login-campo input:focus { border-color: var(--login-azul); box-shadow: 0 0 0 3px rgba(29, 78, 137, 0.15); }
.login-senha { position: relative; }
.login-senha input { padding-right: 84px; }
.login-ver {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  background: none; border: none; border-radius: 6px; cursor: pointer;
  padding: 8px 10px; font: inherit; font-size: 13px; font-weight: 700; color: var(--login-azul);
}
.login-ver:hover { background: rgba(29, 78, 137, 0.07); }
.login-ver:focus-visible { outline: 2px solid var(--login-azul); outline-offset: 1px; }
.login-error {
  color: var(--red); font-size: 13px;
  padding: 10px 12px; background: rgba(180, 35, 24, 0.08);
  border-radius: 8px;
  display: none; margin-bottom: -4px;
}
.login-error.show { display: block; }
.login-entrar {
  width: 100%; height: 50px; margin-top: 4px;
  background: var(--login-azul); color: #fff; border: none; border-radius: 10px;
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.login-entrar:hover { background: var(--login-azul-hover); }
.login-entrar:focus-visible { outline: 3px solid rgba(29, 78, 137, 0.35); outline-offset: 2px; }
.login-entrar:disabled { opacity: .7; cursor: wait; }
.login-rodape {
  margin: 22px 8px 0; text-align: center;
  font-size: 12px; line-height: 1.6; color: var(--login-texto);
}
.link-btn {
  background: none; border: none; cursor: pointer;
  color: var(--deep-green); font-size: 13px;
  padding: 8px 0; font-weight: 600;
  text-align: center; margin-top: 6px;
}
.link-btn:hover { text-decoration: underline; }
.login-footer {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 12px; color: var(--muted); text-align: center;
}

/* TOAST + MODAIS */
.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: white;
  padding: 12px 20px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  z-index: 500; opacity: 0; transition: opacity 0.25s;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; }

.modal-backdrop, .modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 31, 44, 0.5);
  display: none; align-items: center; justify-content: center;
  z-index: 300; padding: 20px;
}
.modal-backdrop.show, .modal-overlay.show,
.modal-backdrop.open, .modal-overlay.open { display: flex; }
.modal {
  background: white; border-radius: var(--radius-lg);
  padding: 24px; max-width: 900px; width: 100%;
  max-height: 90vh; overflow: auto;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.modal-title { font-size: 20px; font-weight: 800; }
/* Botão de fechar (×) sempre no canto superior direito da janela.
   sticky + float: fica no canto e continua visível quando a janela tem rolagem (Card, Orçamento). */
.modal { position: relative; }
.modal-close {
  position: sticky; top: -10px; float: right; z-index: 5;
  margin: -10px -10px 0 8px;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.92); /* fundo claro: o × não some sobre o conteúdo ao rolar */
  border: none; cursor: pointer; padding: 0;
  font-size: 26px; line-height: 1; color: var(--muted);
  transition: background .15s, color .15s;
}
.modal-close:hover { color: var(--ink); background: #EEF1F5; }
.modal-close:focus-visible { outline: 2px solid var(--deep-green); outline-offset: 1px; }

/* USER BADGE - avatar + nome do usuário logado no header */
.user-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  padding: 6px 12px 6px 6px;
  border-radius: 24px;
  margin-right: 4px;
}
.user-badge .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--leaf); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  text-transform: uppercase;
}
.user-badge .name {
  font-size: 13px; font-weight: 600; color: white;
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.card-preview {
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: var(--paper);
  border-radius: var(--radius-lg); margin: 20px 0;
}
@media (max-width: 800px) {
  .card-preview { transform: scale(0.5); margin: -135px auto; }
}

/* HISTÓRICO */
.hist-search {
  margin-bottom: 12px;
}
.hist-list { display: flex; flex-direction: column; gap: 8px; }

.hist-item {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 16px; align-items: center;
  padding: 14px 18px; background: white;
  border-radius: var(--radius); cursor: pointer;
  border: 1.5px solid var(--hairline);
  transition: all 0.15s;
}
.hist-item:hover { border-color: var(--leaf); box-shadow: var(--shadow-sm); }
.hist-item.own { border-color: var(--leaf); background: rgba(47, 111, 191, 0.03); }

.hist-item .name {
  font-weight: 700; color: var(--ink); font-size: 15px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.hist-item .hist-mode {
  display: inline-block;
  padding: 2px 8px; border-radius: 10px;
  font-size: 9px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--mint); color: var(--deep-green);
}
.hist-item .hist-mode.balao { background: rgba(255,224,102,0.35); color: #8B6D00; }

.hist-item .meta {
  font-size: 12px; color: var(--muted);
  margin-top: 4px;
}
.hist-item .author {
  font-size: 11px; color: var(--muted);
  margin-top: 6px;
  display: flex; align-items: center; gap: 6px;
}
.hist-item .author b { color: var(--graphite); font-weight: 600; }
.hist-item .author-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--leaf); color: white;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase;
}

.hist-item .valor {
  text-align: right; padding: 0 4px;
}
.hist-item .valor .v {
  font-size: 17px; font-weight: 800; color: var(--deep-green);
  font-variant-numeric: tabular-nums; letter-spacing: -0.3px; line-height: 1;
}
.hist-item .valor .l {
  font-size: 10px; letter-spacing: 1.5px; color: var(--muted);
  text-transform: uppercase; font-weight: 700; margin-top: 4px;
}

.hist-item .hist-del {
  background: transparent; border: 1px solid var(--hairline);
  color: var(--muted); cursor: pointer;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 16px; line-height: 1; padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.hist-item .hist-del:hover { border-color: var(--red); color: var(--red); background: rgba(180, 35, 24, 0.06); }
.hist-item .hist-del.armado { width: auto; padding: 0 10px; border-radius: 14px; font-size: 11px; font-weight: 700; border-color: var(--red); color: white; background: var(--red); }

.hist-empty {
  text-align: center; padding: 40px 20px;
  color: var(--muted); font-size: 14px;
}
.hist-empty small { font-size: 12px; opacity: 0.7; display: block; margin-top: 6px; }

/* Design do card (mesma escala 1080x1080 mas em 540x540 pra preview) */
/* ══ CARD WHATSAPP (1080×1080 nativo; prévia em 50%) ══ */
.wc-frame { width: 540px; height: 540px; overflow: hidden; border-radius: 10px; }
.wc-frame #waCard { transform: scale(0.5); transform-origin: 0 0; }
.wc { width: 1080px; height: 1080px; position: relative; overflow: hidden; color: #fff;
  font-family: 'Manrope', 'Segoe UI', Roboto, Arial, sans-serif;
  background: linear-gradient(160deg, #0E4A2C 0%, #08391F 45%, #062E19 100%); }
.wc-glow1 { position: absolute; right: -320px; top: -360px; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,125,216,0.38) 0%, rgba(59,125,216,0) 62%); }
.wc-glow2 { position: absolute; left: -380px; bottom: -380px; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,125,216,0.26) 0%, rgba(59,125,216,0) 62%); }
.wc-glow3 { position: absolute; left: 140px; top: 260px; width: 800px; height: 520px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(29,78,137,0.30) 0%, rgba(29,78,137,0) 65%); }
.wc-tex { position: absolute; left: 0; top: 0; width: 1080px; height: 1080px; }
.wc-in { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; padding: 34px 50px 36px; text-align: center; }
.wc-in > * { flex-shrink: 0; }
.wc-brand { display: flex; align-items: center; gap: 20px; }
.wc-brand img { width: 76px; height: 76px; border-radius: 15px; }
.wc-brand span { font-size: 20px; font-weight: 600; letter-spacing: 5px; }
.wc-title { margin-top: 30px; font-size: 20px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; }
.wc-name { margin-top: 4px; font-size: 30px; font-weight: 600; letter-spacing: 1px; }
.wc-bar { width: 50px; height: 4px; border-radius: 2px; background: #8EC5FF; margin-top: 12px; }
.wc-label { margin-top: 28px; font-size: 40px; font-weight: 700; letter-spacing: 5px; text-transform: uppercase; }
.wc-label .hl { color: #8EC5FF; }
.wc-value { margin-top: 0; font-size: 130px; font-weight: 700; letter-spacing: -3px; line-height: 1.05; }
.wc-desc { margin-top: 10px; font-size: 27px; line-height: 1.35; max-width: 570px; }
.wc-boxes { margin-top: 32px; margin-bottom: 28px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wc-box { display: flex; align-items: center; text-align: left; padding: 26px 22px; border-radius: 20px;
  border: 2px solid rgba(142,197,255,0.75);
  background: linear-gradient(135deg, rgba(142,197,255,0.10) 0%, rgba(0,0,0,0.12) 100%); }
.wc-ic { flex: none; width: 104px; height: 104px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(142,197,255,0.55); background: rgba(0,0,0,0.22); }
.wc-ic svg { width: 56px; height: 56px; }
.wc-sep { flex: none; width: 1.5px; height: 80px; background: rgba(255,255,255,0.22); margin: 0 20px; }
.wc-bl { font-size: 19px; font-weight: 600; letter-spacing: 3px; white-space: nowrap; text-transform: uppercase; }
.wc-old { font-size: 18px; opacity: 0.6; margin-top: 2px; }
.wc-old s { text-decoration: line-through; }
.wc-bv { font-size: 46px; font-weight: 700; line-height: 1.12; margin-top: 2px; white-space: nowrap; }
.wc-foot { margin-top: auto; width: 100%; border-top: 1px solid rgba(255,255,255,0.18); padding-top: 18px; display: flex; }
.wc-fl { flex: 1; display: flex; justify-content: center; gap: 16px; text-align: left; }
.wc-fl + .wc-fl { border-left: 1px solid rgba(255,255,255,0.18); }
.wc-pin { flex: none; width: 30px; height: 30px; margin-top: 2px; }
.wc-fn { font-size: 18px; font-weight: 600; letter-spacing: 4px; }
.wc-fa { font-size: 17px; line-height: 1.45; opacity: 0.9; margin-top: 4px; }
.wc-fw { font-size: 25px; font-weight: 700; margin-top: 6px; margin-left: -46px; display: flex; align-items: center; gap: 12px; }
.wc-fw svg { width: 34px; height: 34px; }
.wc-central { margin-top: 22px; display: flex; align-items: center; padding: 12px 44px 12px 16px; border-radius: 22px;
  border: 2px solid rgba(142,197,255,0.75); background: linear-gradient(135deg, rgba(142,197,255,0.10) 0%, rgba(0,0,0,0.15) 100%); }
.wc-cic { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(142,197,255,0.55); background: rgba(0,0,0,0.22); }
.wc-cic svg { width: 36px; height: 36px; }
.wc-central .wc-sep { height: 64px; margin: 0 26px; }
.wc-central .t { font-size: 17px; font-weight: 600; letter-spacing: 4px; text-align: left; }
.wc-central .n { font-size: 44px; font-weight: 700; line-height: 1.1; text-align: left; }

.card-actions { display: flex; gap: 10px; margin-top: 16px; }
.card-actions .btn { flex: 1; justify-content: center; padding: 12px; }

/* ORÇAMENTO PDF */
.btn-orc { background: var(--deep-green); color: white; border: none; }
.btn-orc:hover { background: var(--deep-green-lt); }
.orc-modal { max-width: 1120px; }
.orc-body { display: grid; grid-template-columns: 330px 1fr; gap: 20px; align-items: start; }
.orc-editor h3 { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; }
.orc-editor h3:first-child { margin-top: 0; }
.orc-editor .field { margin-bottom: 10px; }
.orc-editor select, .orc-editor input[type="date"], .orc-editor textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--hairline); border-radius: 10px; font: inherit; font-size: 14px; background: white; }
.orc-editor textarea { resize: vertical; min-height: 60px; }
.orc-checks { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--graphite); }
.orc-checks label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.orc-aviso { font-size: 12px; color: var(--red); font-weight: 600; margin-top: 8px; display: none; }
.orc-preview { background: var(--paper); border-radius: var(--radius-lg); padding: 16px; display: flex; justify-content: center; overflow: hidden; }
.orc-scale { width: 794px; height: 1123px; transform-origin: top left; flex: none; }
.orc-scale iframe { width: 794px; height: 1123px; border: 0; background: white; box-shadow: 0 6px 24px rgba(15,31,44,0.18); display: block; }
@media (max-width: 900px) { .orc-body { grid-template-columns: 1fr; } }

/* MODO APRESENTAÇÃO (tela cheia para mostrar ao cliente) */
.btn-apr { background: white; color: var(--deep-green); border: 1.5px solid var(--deep-green); }
.btn-apr:hover { background: var(--mint); }
.apr { position: fixed; inset: 0; z-index: 300; display: none; overflow-y: auto;
  background: radial-gradient(120% 90% at 80% 0%, #2b7a52 0%, #2563A8 45%, #0f3a25 100%); color: #fff; }
.apr.open { display: block; }
.apr-in { max-width: 1180px; margin: 0 auto; padding: 28px 32px 40px; min-height: 100%; display: flex; flex-direction: column; }
.apr-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.apr-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 13px; letter-spacing: .14em; }
.apr-brand img { width: 40px; height: 40px; border-radius: 10px; }
.apr-pill { font-size: 13px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); padding: 6px 14px; border-radius: 99px; }
.apr-x { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; padding: 8px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.apr-grid { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; margin-top: 28px; }
.apr-grid.solo { grid-template-columns: 1fr; max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }
.apr-hello { font-size: 18px; opacity: .88; }
.apr-hello b { color: #8EC5FF; }
.apr-lbl { font-weight: 700; letter-spacing: .14em; font-size: 14px; margin-top: 18px; opacity: .92; }
.apr-big { font-weight: 800; font-size: clamp(48px, 8vw, 92px); line-height: 1; letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.apr-big small { font-size: .42em; vertical-align: top; margin-right: 8px; opacity: .85; }
.apr-swap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 26px; text-align: left; }
.apr-swap > div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 14px 16px; }
.apr-swap .l { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; font-weight: 700; }
.apr-swap s { display: block; opacity: .6; font-size: 14px; margin-top: 4px; }
.apr-swap .v { font-weight: 800; font-size: 26px; color: #8EC5FF; font-variant-numeric: tabular-nums; }
.apr-cta { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.apr-grid.solo .apr-cta { justify-content: center; }
.apr-grid.solo .apr-calc { left: 50%; transform: translateX(-50%); }
.apr-cta > button { font: inherit; font-weight: 700; font-size: 15px; border-radius: 12px; padding: 14px 22px; cursor: pointer; border: none; }
.apr-cta .go { background: #8EC5FF; color: #0f3a25; }
.apr-cta .go:hover { background: #b2ec7c; }
.apr-chart { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 16px 16px 10px; }
.apr-chart .t { font-size: 14px; font-weight: 600; opacity: .92; margin-bottom: 6px; }
.apr-legend { display: flex; gap: 16px; font-size: 12px; opacity: .85; margin-top: 4px; flex-wrap: wrap; }
.apr-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.apr-foot { margin-top: 26px; font-size: 11px; opacity: .6; text-align: center; }
@media (max-width: 860px) {
  .apr-in { padding: 18px 16px 28px; }
  .apr-grid { grid-template-columns: 1fr; gap: 22px; margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) { .apr * { transition: none !important; animation: none !important; } }
/* Orçamento vindo da apresentação: só a forma escolhida */
.orc-ctrs { display: grid; gap: 6px; }
.orc-ctr { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--paper); font-size: 13px; }
.orc-ctr span { min-width: 0; } .orc-ctr small { display: block; color: var(--muted); font-size: 11px; }
.orc-ctr b { color: var(--deep-green); white-space: nowrap; margin-left: auto; }
.orc-ctr button { border: none; background: transparent; color: var(--muted); font-size: 15px; cursor: pointer; width: 26px; height: 26px; border-radius: 50%; flex: none; }
.orc-ctr button:hover { background: #fff; color: var(--red); }
.orc-ctr-tot { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--deep-green); padding: 4px 12px 0; }
.orc-juntar { margin-top: 8px; background: none; border: 1.5px dashed var(--leaf); color: var(--deep-green); font: inherit; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 10px; cursor: pointer; width: 100%; }
.orc-juntar:hover { background: var(--mint); }
.orc-busca { margin-top: 8px; }
.orc-busca[hidden] { display: none; }
.orc-busca-l { display: flex; gap: 6px; }
.orc-busca-l button { border: none; background: var(--deep-green); color: #fff; font: inherit; font-size: 13px; font-weight: 600; padding: 0 14px; border-radius: 10px; cursor: pointer; }
.orc-lista { display: grid; gap: 6px; margin-top: 8px; max-height: 220px; overflow-y: auto; }
.orc-lista label { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border: 1.5px solid var(--hairline); border-radius: 10px; font-size: 13px; font-weight: 500; cursor: pointer; margin: 0; }
.orc-lista label small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.orc-lista label b { margin-left: auto; color: var(--deep-green); white-space: nowrap; }
.orc-lista .vazio { font-size: 12px; color: var(--muted); padding: 6px 2px; }
.orc-escolha { display: none; background: var(--mint); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 13px; }
.orc-escolha b { color: var(--deep-green); font-size: 15px; display: block; margin-top: 2px; }
.orc-escolha button { margin-top: 6px; background: none; border: none; padding: 0; color: var(--deep-green); font: inherit; font-size: 12px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.orc-editor.preset .orc-escolha { display: block; }
.orc-editor.preset .orc-pagcfg { display: none; }
.orc-editor.preset.sem-boleto .orc-bolcfg { display: none; }
/* Apresentação: formas de pagamento */
.apr-fp { cursor: pointer; position: relative; transition: border-color .15s, box-shadow .15s; }
.apr-fp:hover { border-color: #9BC97A; }
.apr-fp.sel { border-color: #2563A8; box-shadow: 0 0 0 3px rgba(47,111,191,.35); }
.apr-fp:focus-visible { outline: 3px solid #2F6FBF; outline-offset: 2px; }
.apr-fp .ok { position: absolute; top: 14px; right: 14px; display: none; align-items: center; gap: 5px; background: #2563A8; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.apr-fp.sel .ok { display: inline-flex; }
.apr-fp .pick { font-size: 12px; color: #6b7280; margin-top: 4px; }
.apr-fp.sel .pick { display: none; }
.apr-pay-cta button:disabled { background: #9CA3AF; cursor: not-allowed; }
.apr-off { display: inline-block; background: #2F6FBF; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; margin-left: 4px; }
.apr-pay { margin-top: 34px; background: #fff; color: #141C2B; border-radius: 22px; padding: 24px; }
.apr-pay-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.apr-pay-h h3 { margin: 0; font-size: 20px; color: #2563A8; }
.apr-pay-h .inv { font-size: 14px; color: #4b5563; }
.apr-pay-h .inv b { font-size: 20px; color: #2563A8; font-variant-numeric: tabular-nums; }
.apr-fps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.apr-fp { border: 1.5px solid #E5E7EB; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.apr-fp .ic { width: 38px; height: 38px; border-radius: 11px; background: #E4EDF8; display: flex; align-items: center; justify-content: center; }
.apr-fp .t { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #4E7A2A; margin-top: 4px; }
.apr-fp .v { font-size: 24px; font-weight: 800; color: #2563A8; line-height: 1.15; font-variant-numeric: tabular-nums; }
.apr-fp .e { font-size: 13px; font-weight: 600; color: #6b7280; font-variant-numeric: tabular-nums; }
.apr-fp .d { font-size: 12.5px; color: #4b5563; }
.apr-fp .d b { color: #141C2B; word-break: break-all; }
.apr-n { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.apr-n button { font: inherit; font-size: 13px; font-weight: 700; min-width: 38px; padding: 7px 0; border-radius: 9px; border: 1.5px solid #E5E7EB; background: #fff; color: #374151; cursor: pointer; font-variant-numeric: tabular-nums; }
.apr-n button:hover { border-color: #2F6FBF; }
.apr-n button.on { background: #2563A8; border-color: #2563A8; color: #fff; }
.apr-pay-cta { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.apr-pay-cta button { font: inherit; font-weight: 700; font-size: 14px; border-radius: 12px; padding: 12px 18px; cursor: pointer; border: none; background: #2563A8; color: #fff; display: inline-flex; gap: 8px; align-items: center; }
.apr-pay-cta button:hover { background: #2E7D5A; }
.apr-pay-note { font-size: 11.5px; color: #6b7280; margin-top: 10px; }
/* Calculadora */
.apr-cta { position: relative; }
.apr-calc-btn { display: inline-flex; gap: 8px; align-items: center; font: inherit; font-weight: 700; font-size: 15px; padding: 14px 22px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.apr-calc-btn:hover, .apr-calc-btn[aria-expanded="true"] { background: rgba(255,255,255,.2); }
.apr-calc { position: absolute; left: 0; top: calc(100% + 10px); z-index: 311; width: 280px; max-width: calc(100vw - 32px);
  background: #fff; color: #141C2B; border-radius: 20px; padding: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.35); display: none; text-align: left; }
.apr-calc.open { display: block; }
.apr-calc-hd { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; color: #6b7280; letter-spacing: .08em; text-transform: uppercase; }
.apr-calc-hd button { border: none; background: none; font-size: 18px; cursor: pointer; color: #6b7280; line-height: 1; }
.apr-calc-scr { background: #E4EDF8; border-radius: 12px; padding: 10px 12px; margin-top: 8px; text-align: right; font-variant-numeric: tabular-nums; }
.apr-calc-scr .h { font-size: 12px; color: #6b7280; min-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apr-calc-scr .r { font-size: 28px; font-weight: 800; color: #2563A8; overflow-x: auto; white-space: nowrap; }
.apr-calc-k { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.apr-calc-k button { font: inherit; font-size: 18px; font-weight: 600; padding: 12px 0; border-radius: 12px; border: none; background: #F3F4F6; color: #141C2B; cursor: pointer; }
.apr-calc-k button:hover { background: #E5E7EB; }
.apr-calc-k button.op { background: #E4EDF8; color: #2563A8; font-weight: 800; }
.apr-calc-k button.eq { background: #2F6FBF; color: #fff; grid-row: span 2; }
.apr-calc-k button.z { grid-column: span 2; }
.apr-calc-k button.fn { color: #B42318; }
.apr-calc-btn:focus-visible, .apr-calc-k button:focus-visible, .apr-n button:focus-visible, .apr-pay-cta button:focus-visible, .apr-cta button:focus-visible { outline: 3px solid #8EC5FF; outline-offset: 2px; }
@media (max-width: 520px) { .apr-cta { flex-wrap: nowrap; gap: 8px; } .apr-cta > button { padding: 12px 12px; font-size: 13.5px; white-space: nowrap; } .apr-cta > button.go { flex: 1; } }
@media (max-width: 860px) { .apr-fps { grid-template-columns: 1fr; } .apr-pay { padding: 18px; } .apr-in { padding-bottom: 90px; } }

/* ═════════ APRESENTAÇÃO V2 (05/11/2026): 5 telas, fundo claro, Geist ═════════ */
.apr.ap2 { background:#E7ECF3; color:#0E1F38; font-family:'Manrope',-apple-system,'Segoe UI',Arial,sans-serif; }
.ap2 .apr-in { max-width:none; padding:14px 20px; min-height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; }
.ap2-stage { --ink:#0E1F38; --ink2:#33415C; --mut:#66728A; --line:#D9E1EC; --line2:#EDF1F7; --g:#2563A8; --gd:#1D4E89; --gs:#E4EDF8;
  --ease:cubic-bezier(.16,1,.3,1); --eio:cubic-bezier(.65,0,.35,1);
  --t-hero:6.6cqw; --t-h:3.4cqw; --t-h2:2.2cqw; --t-b:1.3cqw; --t-s:1.02cqw; --t-xs:.86cqw; --pad:4.4cqw;
  position:relative; width:min(100%, calc((100dvh - 96px) * 16 / 9)); aspect-ratio:16/9; background:#FAFBFD; border-radius:14px; overflow:hidden;
  container-type:inline-size; box-shadow:0 1px 0 rgba(14,31,56,.04),0 24px 60px -28px rgba(29,78,137,.28),0 0 0 1px rgba(14,31,56,.06); }
.ap2-stage .num, .ap2-stage b, .ap2-stage .v { font-variant-numeric:tabular-nums; }
.ap2-top { position:absolute; inset:0 0 auto 0; display:flex; align-items:center; justify-content:space-between; padding:2.2cqw var(--pad) 0; z-index:5; font-size:var(--t-xs); color:var(--mut); }
.ap2-brand { display:flex; align-items:center; gap:.8cqw; color:var(--ink); font-weight:600; font-size:var(--t-s); }
.ap2-brand img { width:2cqw; height:2cqw; border-radius:4px; }
.ap2-idx { font-family:ui-monospace,Menlo,monospace; }
.ap2-idx b { color:var(--ink); font-weight:500; }
.ap2-s { position:absolute; inset:0; padding:7.4cqw var(--pad) var(--pad); opacity:0; visibility:hidden; transition:opacity .28s ease, visibility 0s linear .28s; }
.ap2-s.on { opacity:1; visibility:visible; transition:opacity .2s ease; }
.ap2-s [data-a] { opacity:0; transform:translateY(1.6cqw); transition:opacity .5s ease, transform .9s var(--ease); }
.ap2-s.on [data-a] { opacity:1; transform:none; transition-delay:calc(var(--i,0)*80ms + 120ms); }
.ap2-s .mk { display:block; overflow:hidden; padding-bottom:.12em; }
.ap2-s .mk > span { display:block; transform:translateY(105%); transition:transform 1s var(--ease); }
.ap2-s.on .mk > span { transform:none; transition-delay:calc(var(--i,0)*80ms + 120ms); }
.ap2-s .cap { font-size:var(--t-s); color:var(--mut); }
.ap2-s .h { font-size:var(--t-h); font-weight:600; letter-spacing:-.035em; line-height:1.06; }
.ap2-s .h em { font-style:normal; color:var(--g); }
.ap2-s .h .soft { color:var(--mut); font-weight:500; }
.ap2-s .b { font-size:var(--t-b); color:var(--ink2); line-height:1.5; max-width:44ch; }
/* 1 capa */
.ap2-s1 { display:grid; grid-template-columns:1.2fr 1fr; gap:6cqw; align-items:end; }
.ap2-s1 .ap2-hero { font-size:var(--t-hero); font-weight:600; letter-spacing:-.045em; line-height:.98; }
.ap2-s1 .ap2-hero .soft { color:var(--mut); font-weight:400; }
.ap2-s1 .b { margin-top:2.2cqw; }
.ap2-dl { display:grid; grid-template-columns:auto 1fr; font-size:var(--t-b); }
.ap2-dl dt, .ap2-dl dd { padding:1cqw 0; border-top:1px solid var(--line); margin:0; }
.ap2-dl dt { color:var(--mut); }
.ap2-dl dd { text-align:right; font-weight:500; }
.ap2-dl dt:last-of-type, .ap2-dl dd:last-of-type { border-bottom:1px solid var(--line); }
/* 2 linha do tempo */
.ap2-s2 { display:grid; grid-template-rows:auto 1fr; gap:3cqw; }
.ap2-s2 .head { display:grid; grid-template-columns:1fr auto; align-items:end; gap:4cqw; }
.ap2-big { font-size:5.4cqw; font-weight:600; letter-spacing:-.045em; line-height:1; white-space:nowrap; }
.ap2-big small { font-size:.42em; font-weight:500; color:var(--mut); margin-right:.25em; vertical-align:.62em; letter-spacing:-.02em; }
.ap2-tl { align-self:end; }
.ap2-tk-w { position:relative; }
.ap2-tk { display:grid; gap:.22cqw; height:15cqw; align-items:end; }
.ap2-tk.dens { gap:.08cqw; }
.ap2-tk i { display:block; height:100%; background:var(--ink); border-radius:1px; transform:scaleY(0); transform-origin:bottom; }
.ap2-tk i.p { background:var(--line); }
.ap2-s.on .ap2-tk i { transform:scaleY(1); transition:transform .7s var(--ease); transition-delay:calc(var(--k)*var(--kd,6ms) + 400ms); }
.ap2-now { position:absolute; top:-3cqw; bottom:-2.6cqw; border-left:1px dashed var(--g); }
.ap2-now span { position:absolute; top:0; left:.8cqw; white-space:nowrap; font-size:var(--t-xs); color:var(--g); font-weight:500; }
.ap2-now.dir span { left:auto; right:.8cqw; }
.ap2-ax { display:flex; justify-content:space-between; margin-top:1cqw; font-size:var(--t-xs); color:var(--mut); font-family:ui-monospace,Menlo,monospace; }
.ap2-lg { display:flex; flex-wrap:wrap; gap:.8cqw 2.4cqw; font-size:var(--t-s); color:var(--mut); margin-top:2cqw; }
.ap2-lg i { display:inline-block; width:.9cqw; height:.9cqw; border-radius:2px; margin-right:.6cqw; background:var(--ink); vertical-align:-.05cqw; }
.ap2-lg i.p { background:var(--line); }
/* 3 anatomia */
.ap2-s3 { display:grid; grid-template-columns:1fr 1.05fr; gap:5cqw; }
.ap2-s3 .txt { display:flex; flex-direction:column; justify-content:center; gap:2cqw; }
.ap2-anat { display:grid; grid-template-columns:9cqw 1fr; gap:2.4cqw; height:100%; }
.ap2-col { position:relative; height:100%; border-radius:4px; overflow:hidden; background:var(--line2); }
.ap2-col .ok, .ap2-col .ex { position:absolute; left:0; right:0; }
.ap2-col .ok { bottom:0; height:var(--ok); background:var(--g); transform:scaleY(0); transform-origin:bottom; }
.ap2-col .ex { top:0; bottom:var(--ok); background:repeating-linear-gradient(135deg, rgba(14,31,56,.82) 0 .32cqw, rgba(14,31,56,.18) .32cqw .9cqw); clip-path:inset(0 0 100% 0); }
.ap2-s.on .ap2-col .ex { clip-path:inset(0 0 0 0); transition:clip-path 1.3s var(--eio) .9s; }
.ap2-s.on .ap2-col .ok { transform:none; transition:transform .8s var(--ease) .5s; }
.ap2-lbls { position:relative; }
.ap2-lbl { position:absolute; left:0; right:0; display:grid; grid-template-columns:3cqw 1fr; gap:1.2cqw; align-items:start; }
.ap2-lbl::before { content:""; height:1px; background:var(--ink); margin-top:1.2cqw; transform:scaleX(0); transform-origin:left; transition:transform .6s var(--ease); }
.ap2-s.on .ap2-lbl::before { transform:none; transition-delay:calc(var(--i)*80ms + 120ms); }
.ap2-lbl .v { font-size:var(--t-h2); font-weight:600; letter-spacing:-.03em; line-height:1.05; }
.ap2-lbl .d { font-size:var(--t-s); color:var(--mut); margin-top:.4cqw; line-height:1.4; max-width:30ch; }
.ap2-lbl.l1 { top:0; } .ap2-lbl.l2 { top:34%; } .ap2-lbl.l3 { bottom:3%; }
.ap2-lbl.l3 .v { color:var(--g); }
/* 4 comparação */
.ap2-s4 { display:grid; grid-template-rows:auto 1fr; gap:2cqw; }
.ap2-chart { position:relative; align-self:center; padding:5cqw 0 6cqw; }
.ap2-gl { position:absolute; top:2.6cqw; bottom:6cqw; border-left:1px solid var(--line2); }
.ap2-gl span { position:absolute; top:-.4cqw; left:.5cqw; transform:translateY(-100%); font-size:var(--t-xs); color:var(--mut); white-space:nowrap; font-family:ui-monospace,Menlo,monospace; }
.ap2-row { position:relative; display:grid; grid-template-columns:15cqw 1fr; align-items:center; height:6.2cqw; }
.ap2-row + .ap2-row { margin-top:2.2cqw; }
.ap2-row .k { font-size:var(--t-b); color:var(--ink2); line-height:1.3; }
.ap2-row .k b { display:block; font-weight:600; color:var(--ink); font-size:var(--t-h2); letter-spacing:-.03em; white-space:nowrap; }
.ap2-track { position:relative; height:100%; }
.ap2-bar { position:absolute; left:0; top:0; bottom:0; width:100%; border-radius:3px; }
.ap2-bar.a { background:var(--ink); transform:scaleX(0); transform-origin:left; }
.ap2-s.on .ap2-bar.a { transform:none; transition:transform 1.1s var(--ease) .35s; }
.ap2-bar.gh { background:repeating-linear-gradient(135deg, rgba(37,99,168,.55) 0 .3cqw, transparent .3cqw .9cqw); box-shadow:inset 0 0 0 1px rgba(37,99,168,.45); opacity:0; }
.ap2-s.on .ap2-bar.gh { opacity:1; transition:opacity .4s ease 2.05s; }
.ap2-bar.r { background:var(--g); transform:scaleX(0); transform-origin:left; }
.ap2-s.on .ap2-bar.r { transform:scaleX(var(--r)); transition:transform 1.25s var(--eio) 1s; }
.ap2-brk { position:absolute; left:var(--rp); right:0; bottom:-2.6cqw; height:1.6cqw; border:1px solid var(--g); border-top:0; border-radius:0 0 3px 3px; opacity:0; transform:translateY(-.6cqw); transition:all .6s var(--ease); }
.ap2-brk span { position:absolute; left:50%; bottom:0; transform:translate(-50%,50%); white-space:nowrap; font-size:var(--t-b); font-weight:600; color:var(--g); background:#FAFBFD; padding:0 1cqw; }
.ap2-s.on .ap2-brk { opacity:1; transform:none; transition-delay:2.3s; }
.ap2-brk span { display:inline-flex; align-items:center; gap:.9cqw; }
.ap2-pct { font-style:normal; font-weight:700; color:#fff; background:var(--g); border-radius:999px; padding:.35cqw 1cqw; letter-spacing:-.01em; font-variant-numeric:tabular-nums; transform:scale(.6); opacity:0; }
.ap2-bolso { position:absolute; left:50%; top:calc(100% + 2.3cqw); transform:translate(-50%,.5cqw); white-space:nowrap; font-style:normal; font-size:var(--t-b); color:var(--ink2); opacity:0; }
.ap2-s.on .ap2-bolso { transform:translate(-50%,0); opacity:1; transition:transform .6s var(--ease) 2.9s, opacity .6s ease 2.9s; }
.ap2-s.on .ap2-pct { transform:none; opacity:1; transition:transform .55s cubic-bezier(.34,1.56,.64,1) 2.55s, opacity .3s ease 2.55s; }
/* 5 resultado + pagamento */
.ap2-s5 { display:grid; grid-template-columns:1.2fr 1fr; gap:5cqw; }
.ap2-res { display:flex; flex-direction:column; justify-content:flex-end; padding-bottom:.6cqw; }
.ap2-res .ap2-hero { font-size:7.6cqw; font-weight:600; letter-spacing:-.05em; line-height:.92; color:var(--gd); white-space:nowrap; }
.ap2-res .ap2-hero small { font-size:.32em; font-weight:500; color:var(--mut); vertical-align:1.5em; margin-right:.12em; letter-spacing:-.02em; }
.ap2-delta { display:flex; gap:3.4cqw; margin-top:2.6cqw; padding-top:1.6cqw; border-top:1px solid var(--line); }
.ap2-delta div { font-size:var(--t-s); color:var(--mut); }
.ap2-delta b { display:block; font-size:var(--t-h2); color:var(--ink); font-weight:600; letter-spacing:-.03em; margin-top:.3cqw; }
.ap2-delta b.g { color:var(--g); }
.ap2-delta s { display:block; font-size:var(--t-s); color:var(--mut); margin-top:.2cqw; }
.ap2-pay { display:flex; flex-direction:column; justify-content:flex-end; gap:1.4cqw; }
.ap2-fps { border-bottom:1px solid var(--line); }
.ap2-fp { display:grid; grid-template-columns:1fr auto; gap:.3cqw 2cqw; padding:1.2cqw .2cqw; border-top:1px solid var(--line); font-size:var(--t-b); cursor:pointer; border-radius:0; transition:background .15s; }
.ap2-fp:hover { background:#F3F6F4; }
.ap2-fp .n { font-weight:500; }
.ap2-fp .p { font-weight:600; text-align:right; }
.ap2-fp .off { margin-left:.8cqw; font-size:var(--t-xs); font-weight:600; color:var(--g); background:var(--gs); padding:.15cqw .55cqw; border-radius:3px; font-style:normal; }
.ap2-fp .x { grid-column:1/-1; font-size:var(--t-s); color:var(--mut); display:none; }
.ap2-fp .p.mut { color:var(--mut); font-weight:500; }
.ap2-step { grid-column:1/-1; display:none; align-items:center; gap:1.2cqw; margin-top:.8cqw; font-size:var(--t-s); color:var(--ink2); }
.ap2-step button { width:3cqw; height:3cqw; min-width:30px; min-height:30px; border-radius:6px; border:1px solid var(--line); background:#fff; font:inherit; font-size:var(--t-b); color:var(--ink); cursor:pointer; }
.ap2-step button:hover { border-color:#B9C6C0; }
.ap2-step button:active { transform:scale(.96); }
.ap2-step input { width:5.4cqw; min-width:52px; height:3cqw; min-height:30px; text-align:center; border:1px solid var(--line); border-radius:6px; font:inherit; font-size:var(--t-b); font-weight:600; color:var(--ink); padding:0; }
.ap2-step input:focus { outline:none; border-color:var(--g); box-shadow:0 0 0 3px rgba(37,99,168,.14); }
.ap2-pay.escolhido .ap2-fp { display:none; cursor:default; }
.ap2-pay.escolhido .ap2-fp:hover { background:transparent; }
.ap2-pay.escolhido .ap2-fp.sel { display:grid; }
.ap2-pay.escolhido .ap2-fp.sel .x, .ap2-pay.escolhido .ap2-fp.sel .ap2-step { display:flex; }
.ap2-pay.escolhido .ap2-fp.sel .x { display:block; }
.ap2-troca { align-self:flex-start; background:none; border:0; padding:0; font:inherit; font-size:var(--t-s); color:var(--g); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.ap2-cta { appearance:none; border:0; font:inherit; font-size:var(--t-b); font-weight:600; color:#fff; background:var(--g); border-radius:6px; padding:1.2cqw 1.8cqw; display:flex; justify-content:space-between; align-items:center; gap:1cqw; cursor:pointer; text-align:left;
  box-shadow:0 10px 24px -14px rgba(29,78,137,.8); transition:background .2s ease, transform .15s ease; }
.ap2-cta:hover { background:var(--gd); }
.ap2-cta:active { transform:scale(.98); }
.ap2-cta:disabled { background:#C9D3CE; box-shadow:none; cursor:default; }
.ap2-foot { font-size:var(--t-xs); color:var(--mut); line-height:1.45; }
/* controles abaixo do palco */
.ap2-ctl { width:min(100%, calc((100dvh - 96px) * 16 / 9)); display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.ap2-ctl > button, .ap2-ctl .apr-calc-btn { appearance:none; border:1px solid #C9D3CE; background:#FAFBFD; color:#0E1F38; font:500 13px 'Manrope',sans-serif; height:36px; min-width:36px; padding:0 12px; border-radius:6px; cursor:pointer; display:inline-flex; align-items:center; gap:6px; }
.ap2-ctl > button:hover, .ap2-ctl .apr-calc-btn:hover { background:#fff; }
.ap2-ctl > button:disabled { opacity:.4; cursor:default; }
.ap2-ctl .ap2-go { background:#2563A8; color:#fff; border-color:#2563A8; }
.ap2-ctl .ap2-go:hover { background:#1D4E89; }
.ap2-prog { flex:1; min-width:120px; display:flex; gap:6px; }
.ap2-prog button { flex:1; height:24px; border:0; background:transparent; padding:0; position:relative; cursor:pointer; min-width:0; }
.ap2-prog button::before { content:""; position:absolute; left:0; right:0; top:50%; height:3px; margin-top:-1.5px; border-radius:2px; background:#CAD4CF; }
.ap2-prog button.done::before, .ap2-prog button.cur::before { background:#2563A8; }
.ap2-ctl .apr-cta { position:relative; display:block; margin:0; padding:0; }
.ap2-ctl .apr-calc { top:auto; bottom:calc(100% + 10px); left:auto; right:0; }
.ap2-ctl .apr-calc-btn[aria-expanded="true"] { background:#fff; border-color:#2563A8; }
@media (max-width:760px) {
  .ap2 .apr-in { padding:10px 12px; justify-content:flex-start; }
  .ap2-stage { width:100%; aspect-ratio:auto; height:calc(100dvh - 128px); min-height:520px;
    --t-hero:11.4cqw; --t-h:7cqw; --t-h2:5.4cqw; --t-b:3.9cqw; --t-s:3.4cqw; --t-xs:3cqw; --pad:5.6cqw; }
  .ap2-ctl { width:100%; }
  .ap2-top { padding-top:4.6cqw; }
  .ap2-brand img { width:5cqw; height:5cqw; }
  .ap2-s { padding:15cqw var(--pad) var(--pad); overflow-y:auto; }
  .ap2-s1, .ap2-s3, .ap2-s5 { grid-template-columns:1fr; gap:6cqw; align-content:space-between; }
  .ap2-s2 .head { grid-template-columns:1fr; }
  .ap2-big { font-size:11cqw; }
  .ap2-tk { height:34cqw; } .ap2-tk, .ap2-tk.dens { gap:1px; }
  .ap2-now { top:-6cqw; bottom:-6cqw; } .ap2-now span { left:2cqw; } .ap2-now.dir span { right:2cqw; }
  .ap2-lg { flex-direction:column; } .ap2-lg i { width:2.6cqw; height:2.6cqw; }
  .ap2-s3 { grid-template-rows:auto 1fr; }
  .ap2-anat { grid-template-columns:18cqw 1fr; gap:5cqw; min-height:70cqw; }
  .ap2-lbl { grid-template-columns:5cqw 1fr; gap:2cqw; } .ap2-lbl::before { margin-top:3cqw; }
  .ap2-row { grid-template-columns:1fr; height:auto; } .ap2-row .k { margin-bottom:2cqw; } .ap2-track { height:11cqw; }
  .ap2-gl { display:none; } .ap2-chart { padding:8cqw 0 12cqw; } .ap2-brk { bottom:-6cqw; height:3.4cqw; } .ap2-bolso { top:calc(100% + 6cqw); }
  .ap2-res .ap2-hero { font-size:13.5cqw; } .ap2-delta { gap:5cqw; flex-wrap:wrap; }
  .ap2-fp { padding:3cqw .5cqw; } .ap2-cta { padding:3.6cqw 4cqw; border-radius:8px; }
  .ap2-step button, .ap2-step input { height:40px; } .ap2-step button { width:40px; }
  .ap2-ctl .ap2-hint { display:none; }
}

/* Cor do banco só no lado "banco" da apresentação; economia e Conteste seguem no verde (05/11/2026) */
.ap2-stage { --bk:var(--ink); }
[data-bank] .ap2-stage { --bk:var(--deep-green); }
.ap2-tk i { background:var(--bk); }
.ap2-tk i.p { background:var(--line); }
.ap2-lg i { background:var(--bk); }
.ap2-lg i.p { background:var(--line); }
.ap2-col .ex { background:repeating-linear-gradient(135deg, color-mix(in srgb, var(--bk) 85%, transparent) 0 .32cqw, color-mix(in srgb, var(--bk) 18%, transparent) .32cqw .9cqw); }
.ap2-lbl.l2 .v { color:var(--bk); }
.ap2-bar.a { background:var(--bk); }
.ap2-dl dd.bk { color:var(--bk); font-weight:600; }

/* Imagem do contrato na capa: cartão ou contrato, nas cores do banco (sem logo) */
.ap2-s1 .lado { display:flex; flex-direction:column; gap:3cqw; justify-content:flex-end; }
.ap2-vis { perspective:120cqw; display:flex; justify-content:flex-start; }
.ap2-card { position:relative; width:30cqw; aspect-ratio:1.586; border-radius:1.4cqw; padding:1.8cqw 2cqw; color:#fff; overflow:hidden;
  background:linear-gradient(135deg, var(--bk) 0%, color-mix(in srgb, var(--bk) 70%, #fff) 100%);
  box-shadow:0 2.4cqw 4cqw -2cqw color-mix(in srgb, var(--bk) 70%, transparent), inset 0 0 0 1px rgba(255,255,255,.14);
  transform:rotateY(-18deg) rotateX(8deg) translateY(2cqw); opacity:0; transition:transform 1.2s var(--ease), opacity .6s ease; }
.ap2-s.on .ap2-card { transform:rotateY(-8deg) rotateX(4deg); opacity:1; transition-delay:.35s; }
.ap2-card::after { content:""; position:absolute; inset:-40% -10% auto auto; width:70%; aspect-ratio:1; border-radius:50%; background:radial-gradient(circle, rgba(255,255,255,.22), transparent 65%); }
.ap2-card .bn { font-weight:600; font-size:var(--t-b); letter-spacing:-.01em; }
.ap2-card .tp { position:absolute; right:2cqw; top:1.9cqw; font-size:var(--t-xs); opacity:.8; }
.ap2-card .chip { position:absolute; left:2cqw; top:40%; width:3.6cqw; height:2.7cqw; border-radius:.5cqw; background:linear-gradient(135deg,#e9d9a8,#b99b52); box-shadow:inset 0 0 0 1px rgba(0,0,0,.15); }
.ap2-card .chip::before { content:""; position:absolute; inset:30% 0; border-top:1px solid rgba(0,0,0,.25); border-bottom:1px solid rgba(0,0,0,.25); }
.ap2-card .nfc { position:absolute; left:6.6cqw; top:41%; width:2cqw; height:2.4cqw; border:.22cqw solid rgba(255,255,255,.7); border-left:0; border-top-color:transparent; border-bottom-color:transparent; border-radius:50%; }
.ap2-card .nr { position:absolute; left:2cqw; bottom:4.6cqw; font-family:ui-monospace,Menlo,monospace; font-size:var(--t-b); letter-spacing:.12em; opacity:.92; }
.ap2-card .nm { position:absolute; left:2cqw; bottom:1.7cqw; font-size:var(--t-xs); letter-spacing:.08em; text-transform:uppercase; opacity:.85; max-width:20cqw; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ap2-card .cc { position:absolute; right:2cqw; bottom:1.6cqw; width:4.4cqw; height:2.7cqw; }
.ap2-card .cc i { position:absolute; top:0; width:2.7cqw; height:2.7cqw; border-radius:50%; background:rgba(255,255,255,.55); }
.ap2-card .cc i + i { right:0; background:rgba(255,255,255,.3); }
.ap2-doc { position:relative; width:19cqw; aspect-ratio:.92; border-radius:.8cqw; background:#fff; padding:0; overflow:hidden;
  box-shadow:0 2.4cqw 4cqw -2cqw rgba(14,31,56,.35), 0 0 0 1px rgba(14,31,56,.08);
  transform:rotate(-4deg) translateY(2cqw); opacity:0; transition:transform 1.2s var(--ease), opacity .6s ease; }
.ap2-s.on .ap2-doc { transform:rotate(-2deg); opacity:1; transition-delay:.35s; }
.ap2-doc .hd { background:var(--bk); color:#fff; padding:1.4cqw 1.6cqw; font-size:var(--t-s); font-weight:600; }
.ap2-doc .hd small { display:block; font-weight:400; opacity:.8; font-size:var(--t-xs); margin-top:.2cqw; }
.ap2-doc .bd { padding:1.4cqw 1.6cqw; }
.ap2-doc .ln { height:.45cqw; border-radius:.25cqw; background:var(--line2); margin-bottom:.7cqw; }
.ap2-doc .ln.s { width:60%; } .ap2-doc .ln.m { width:82%; }
.ap2-doc .vl { font-size:var(--t-h2); font-weight:600; letter-spacing:-.03em; color:var(--ink); margin:.8cqw 0 .2cqw; }
.ap2-doc .vl small { display:block; font-size:var(--t-xs); color:var(--mut); font-weight:400; letter-spacing:0; }
.ap2-doc .ass { position:absolute; left:1.6cqw; right:1.6cqw; bottom:1.8cqw; border-top:1px solid var(--line); padding-top:.4cqw; font-size:var(--t-xs); color:var(--mut); }
.ap2-doc .ass::before { content:""; position:absolute; left:10%; bottom:110%; width:45%; height:1.1cqw; border-bottom:.2cqw solid color-mix(in srgb, var(--bk) 70%, #000); border-radius:0 0 60% 40%; transform:skewX(-20deg); opacity:.7; }
.ap2-doc .ic { position:absolute; right:1.4cqw; top:1.2cqw; width:2.6cqw; height:2.6cqw; color:#fff; opacity:.9; }
@media (max-width:760px) { .ap2-card { width:72cqw; border-radius:3.4cqw; padding:4cqw; } .ap2-card .chip { left:4.4cqw; width:9cqw; height:6.6cqw; } .ap2-card .nfc { left:15cqw; width:4.4cqw; height:5.4cqw; } .ap2-card .nr { left:4.4cqw; bottom:11cqw; } .ap2-card .nm { left:4.4cqw; bottom:4cqw; max-width:46cqw; } .ap2-card .tp { right:4.4cqw; top:4.4cqw; } .ap2-card .cc { right:4.4cqw; bottom:4cqw; width:10cqw; height:6cqw; } .ap2-card .cc i { width:6cqw; height:6cqw; }
  .ap2-doc { width:56cqw; } .ap2-doc .ic { width:6cqw; height:6cqw; right:3cqw; top:3cqw; } .ap2-s1 .lado { gap:6cqw; } }

.ap2-lgb { display:inline-flex; flex:none; width:3.4cqw; height:3.4cqw; border-radius:.7cqw; background:#fff; padding:.35cqw; align-items:center; justify-content:center; box-shadow:0 0 0 1px rgba(0,0,0,.06); }
.ap2-lgb img { width:100%; height:100%; object-fit:contain; display:block; }
.ap2-card .bn, .ap2-doc .hd .bnl { display:flex; align-items:center; gap:.9cqw; }
.ap2-doc .hd .bnl .ap2-lgb { width:2.8cqw; height:2.8cqw; }
@media (max-width:760px) { .ap2-lgb { width:8cqw; height:8cqw; border-radius:1.6cqw; padding:.8cqw; } .ap2-doc .hd .bnl .ap2-lgb { width:7cqw; height:7cqw; } .ap2-card .bn, .ap2-doc .hd .bnl { gap:2cqw; } }
@media (prefers-reduced-motion: reduce) { .ap2-stage *, .ap2-stage *::before, .ap2-stage *::after { transition-duration:0s !important; transition-delay:0s !important; } }

/* FORMAS DE PAGAMENTO: ocultas por ora (pedido de 24/11/2026). Para voltar, apague esta regra.
   O cálculo continua rodando por baixo; a mensagem do WhatsApp usa o padrão (entrada + 5 boletos). */
.sim-cartao { display: none !important; }

/* AUTOCOMPLETAR (instituição financeira e veículo / objeto), trazido do primeiro sistema */
.auto { position: relative; }
.auto-lista {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40;
  list-style: none; margin: 0; background: white; border: 1px solid var(--hairline); border-radius: 12px;
  padding: 6px; max-height: 320px; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.auto-lista[hidden] { display: none; }
.auto-lista li[role=option] { position: relative; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; line-height: 1.35; color: var(--ink); }
.auto-lista li[role=option] small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.auto-lista li[role=option]:hover, .auto-lista li[aria-selected=true] { background: var(--mint); }
.auto-lista li[aria-selected=true] { box-shadow: inset 3px 0 0 var(--deep-green); }
.auto-lista mark { background: none; color: var(--deep-green); font-weight: 800; }
.auto-grupo { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 4px; }
.auto-vazio { font-size: 12.5px; color: var(--muted); padding: 8px 10px; }
.auto-lista li.auto-usar { font-weight: 700; color: var(--deep-green); border-top: 1px solid var(--hairline); border-radius: 0 0 8px 8px; margin-top: 4px; }
.auto-lista li.auto-usar.so { border-top: 0; border-radius: 8px; margin-top: 0; }
.auto-remover { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.auto-remover:hover { color: var(--red); background: white; }

/* campos calculados sozinhos (Financiamento: valor financiado e parcela revisada) */
input.calculado { background: var(--paper); color: var(--deep-green); font-weight: 700; cursor: default; }
.hint.aviso { color: var(--red); font-weight: 600; }

/* DADOS DO ATENDIMENTO: ocultos (pedido de 24/11/2026: "não é necessário"). O cartão continua na página, escondido,
   porque guarda a Unidade (Recife) que o robô do Datajuri lê. Para voltar, apague esta regra. */
#p_cardAtend, #b_cardAtend { display: none !important; }

/* CPF / CNPJ: selo dentro do campo mostra qual é e se os dígitos conferem (trazido do primeiro sistema) */
.doc-wrap { position: relative; }
.doc-wrap:has(.doc-tipo:not([hidden])) input { padding-right: 84px; }
.doc-tipo {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--muted);
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 6px; padding: 3px 8px;
}
.doc-tipo[hidden], .hint[hidden] { display: none; }
.doc-tipo.ok { color: var(--deep-green); background: var(--mint); border-color: transparent; }
.doc-tipo.erro { color: #B54708; background: #FEF0C7; border-color: transparent; }
input.invalido { border-color: #F79009 !important; }
#cpfAviso { color: #B54708; }

/* apresentação sem honorários: o último slide fica só com a economia, em uma coluna */
.ap2-s5.sem-pag { grid-template-columns: 1fr; }
/* "Ir para o resultado" some no último slide (o display do botão vencia o atributo hidden) */
.ap2-ctl > button[hidden] { display: none; }

/* HONORÁRIOS COMO CAMPO EDITÁVEL (24/11/2026), no lugar do lápis: o valor já vem preenchido com o calculado
   e qualquer pessoa pode digitar outro. O span #p_rcpTotal/#b_rcpTotal continua (escondido): outras partes leem dele. */
#p_rcpTotal, #b_rcpTotal, .hono-edit-btn { display: none !important; }
.receita-total .hono-campo {
  width: 170px; text-align: right; font: inherit; font-size: 20px; font-weight: 800; color: var(--deep-green);
  background: white; border: 1.5px solid var(--hairline); border-radius: 10px; padding: 6px 10px;
  transition: border-color .15s, box-shadow .15s;
}
.receita-total .hono-campo:hover { border-color: var(--leaf); }
.receita-total .hono-campo:focus { outline: none; border-color: var(--deep-green); box-shadow: 0 0 0 3px var(--mint); }
.receita-total .hono-campo.alterado { border-color: var(--leaf); background: var(--mint); }
.receita-total .hono-campo[readonly] { background: var(--paper); color: var(--muted); cursor: default; }

/* Quadro do Valor divergente com o efeito do cartão do Orçamento (24/11/2026): brilho no alto à direita e
   círculo em contorno saindo pelo canto de baixo. Segue as cores do banco (--deep-green / --deep-green-lt). */
.kpi-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(circle at 88% 18%, rgba(142,197,255,.28) 0, rgba(142,197,255,0) 42%),
    linear-gradient(135deg, var(--deep-green) 0%, var(--deep-green-lt) 100%);
}
.kpi-hero::after {
  content: ''; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px;
  border-radius: 50%; border: 2px solid rgba(142,197,255,.25); pointer-events: none; z-index: -1;
}

/* Resultado (valor divergente, KPIs, comparativo e honorários) acompanha a rolagem da página (26/11/2026).
   Só com as duas colunas lado a lado; abaixo de 1100px a coluna fica embaixo e rola normal.
   Sem rolagem interna: em tela baixa ele fica mais compacto e, se ainda não couber, rola junto com a página e
   prende pela base, logo acima da barra de botões (--painel-topo negativo, calculado em app.js). */
@media (min-width: 1101px) {
  .painel-resultado { position: sticky; top: var(--painel-topo, 16px); }
}
@media (min-width: 1101px) and (max-height: 900px) {
  .painel-resultado .kpi-hero { padding: 12px 18px; margin-bottom: 8px; }
  .painel-resultado .kpi-hero .lbl { margin-bottom: 2px; }
  .painel-resultado .kpi-hero .val { font-size: 34px; margin: 2px 0; }
  .painel-resultado .kpi-hero .sub { font-size: 12px; margin-top: 2px; }
  .painel-resultado .kpis { gap: 8px; margin-bottom: 8px; }
  .painel-resultado .kpi { padding: 10px 8px; }
  .painel-resultado .kpi .lbl { margin-bottom: 5px; }
  .painel-resultado .kpi .val { font-size: 17px; }
  .painel-resultado > .card { padding: 12px 18px; margin-bottom: 8px; }
  .painel-resultado > .card h2 { margin-bottom: 8px; }
  .painel-resultado .compare { padding: 10px 16px; margin-bottom: 6px; }
  .painel-resultado .compare-row { margin-bottom: 4px; }
  .painel-resultado .compare-bar { margin-bottom: 6px; }
  .painel-resultado .receita { padding: 8px 16px; margin-top: 8px; }
  .painel-resultado .receita-total { padding-top: 6px; margin-top: 4px; }
}

/* Último slide da apresentação com o anel (26/11/2026): título no alto à esquerda, economia embaixo e, à direita,
   a fatia do total cobrado pelo banco que o cliente deixa de pagar (anima ao entrar no slide) */
.ap2-s5.com-anel { grid-template-columns: 1.25fr 1fr; gap: 5cqw; }
.ap2-res-h { margin-bottom: auto; }
.ap2-anel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4cqw; }
.ap2-anel-g { position: relative; width: 21cqw; aspect-ratio: 1; }
.ap2-anel-g svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ap2-anel-g circle { fill: none; stroke-width: 11; }
.ap2-anel-g .tr { stroke: var(--line); }
.ap2-anel-g .ec { stroke: var(--g); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.ap2-s.on .ap2-anel-g .ec { stroke-dashoffset: calc(100 - var(--p)); transition: stroke-dashoffset 1.5s var(--eio) .7s; }
.ap2-anel-g .c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ap2-anel-g .c b { font-size: 4.6cqw; font-weight: 600; letter-spacing: -.05em; line-height: 1; color: var(--gd); }
.ap2-anel-g .c span { font-size: var(--t-s); color: var(--mut); margin-top: .6cqw; }
.ap2-anel-lg { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 31cqw; font-size: var(--t-s); color: var(--mut); }
.ap2-anel-lg li { display: flex; align-items: center; gap: .8cqw; padding: .95cqw 0; border-top: 1px solid var(--line); }
.ap2-anel-lg li:first-child { border-top: none; }
.ap2-anel-lg i { width: .9cqw; height: .9cqw; border-radius: 50%; flex: none; }
.ap2-anel-lg i.ok { background: var(--line); }
.ap2-anel-lg i.ec { background: var(--g); }
.ap2-anel-lg b { margin-left: auto; color: var(--ink); font-weight: 600; font-size: var(--t-b); white-space: nowrap; }
.ap2-anel-lg li.tot b { color: var(--bk); }
.ap2-anel-lg li.ec b { color: var(--g); }
/* no celular o slide fica como antes (economia grande em cima): sem título e sem anel */
@media (max-width: 760px) {
  .ap2-s5.com-anel { grid-template-columns: 1fr; }
  .ap2-s5.com-anel .ap2-anel, .ap2-res-h { display: none; }
}

/* Borracha (01/12/2026): no canto do primeiro card de cada aba, limpa todos os campos */
.card.com-borracha { position: relative; }
.btn-borracha { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--hairline); background: white; border-radius: 8px; padding: 5px 10px;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.btn-borracha:hover { border-color: var(--red); color: var(--red); }
.btn-borracha:focus-visible { outline: 2px solid var(--deep-green); outline-offset: 2px; }
/* aviso com botão (ex.: "Desfazer"): o aviso normal não recebe clique */
.toast.com-acao { pointer-events: auto; display: flex; align-items: center; gap: 14px; }
.toast .toast-acao { border: 0; background: none; color: #9FC3F0; font: inherit; font-weight: 700; cursor: pointer; padding: 2px 4px; text-decoration: underline; }

/* Formas de pagamento na tela do laudo (01/12/2026); o orçamento só mostra o resumo */
.orc-pag-resumo { background: var(--paper); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--graphite); line-height: 1.6; margin-bottom: 10px; }
.orc-pag-resumo b { color: var(--deep-green); }
.orc-pag-resumo small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; line-height: 1.4; }
.orc-pag-resumo .vazio { color: var(--red); font-weight: 600; }
/* card compacto no painel do resultado, abaixo dos honorários: uma linha por forma */
.pag-card h2 { margin-bottom: 8px; }
.pag-linha { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 10px; padding: 5px 0; border-top: 1px solid var(--hairline); }
.pag-linha:first-of-type { border-top: 0; }
.pag-forma-t { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.pag-forma-c { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pag-forma-c input, .pag-forma-c select { width: auto; flex: 1 1 120px; min-width: 0; padding: 8px 10px; font-size: 13.5px; }
.pag-valor { font-size: 14px; font-weight: 700; color: var(--ink); padding: 8px 0; }
.pag-info { flex-basis: 100%; font-size: 12px; color: var(--graphite); margin: 0; }
.pag-info b { color: var(--deep-green); }
.pag-nota { font-size: 11.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.4; }
@media (max-width: 560px) { .pag-linha { grid-template-columns: 1fr; gap: 6px; } }
.pag-sem { font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }
