/* =====================================================================
   LITIGANTE DE BOA-FÉ — sistema de design (painel, área do aluno e vitrine)
   O mesmo padrão da casa (Sistema JR): um componente = uma classe; cor,
   canto, altura e sombra saem dos tokens. Montado do app.css do painel,
   com tema claro (creme e vinho, o padrão) e tema escuro, fontes locais e
   as peças próprias do BoaFé no fim (tocador de vídeo, vitrine, capas).
   Para mudar uma cor do sistema inteiro, mude o token, nunca a tela.
   ===================================================================== */
@import url("fontes.css");

/* ---------- 1. TOKENS ------------------------------------------------ */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  color-scheme: dark;

  /* fundos */
  --void: #05060b;
  --deep: #090b12;
  --panel: #0c0f17;
  --panel2: #11151f;
  --panel3: var(--sk-bg);
  --panel4: #1c2231;
  --ctl-bg: #080a11;
  --ctl-bg-2: #0b0e16;

  /* linhas */
  --line: rgba(var(--linha-rgb), .075);
  --line2: rgba(var(--linha-rgb), .14);
  --line3: rgba(var(--linha-rgb), .24);

  /* texto */
  --ice: #eceef6;
  --text2: #b5bacb;
  --mute: #8a90a6;
  --dim: #5b6178;

  /* destaque (muda com data-acento) */
  --acc: #cda85e;
  --acc-hi: #ebd39c;
  --acc-lo: #8f6e34;
  --acc2: #f4dfa8;
  --acc-rgb: 205, 168, 94;
  --acc-hi-rgb: 235, 211, 156;
  --on-acc: #17120a;

  /* significados */
  --ok: #3ddc97;   --ok-rgb: 61, 220, 151;
  --warn: #f5b84b; --warn-rgb: 245, 184, 75;
  --bad: #ff6b6b;  --bad-rgb: 255, 107, 107;
  --info: #6fa8ff; --info-rgb: 111, 168, 255;
  --ia: #a98bff;   --ia-rgb: 169, 139, 255;
  --ia2: #6fd3ff;
  --grad-ia: linear-gradient(120deg, #6fa8ff, #a98bff 45%, #3ddc97);

  /* tipografia */
  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-marca: 'Cinzel', 'Cormorant Garamond', serif;
  --f-ui: 'Sora', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  /* canto (muda com data-canto) */
  --raio: 4px;
  --raio-sm: calc(var(--raio) * .7);
  --raio-lg: calc(var(--raio) * 1.5);

  /* controles: todos com a mesma altura */
  --ctl-h: 40px;
  --ctl-h-sm: 32px;
  --ctl-h-lg: 48px;
  --ctl-px: 13px;
  --ctl-fs: 13.5px;

  /* espaçamento (muda com data-densidade) */
  --gap: 18px;
  --pad: 20px;
  --pad-sm: 14px;
  --row-py: 12px;

  /* sombras */
  --sh-card: inset 0 1px 0 rgba(var(--brilho-rgb), .03), 0 14px 36px -22px rgba(var(--sombra-rgb), calc(.9 * var(--sombra-k)));
  --sh-pop: 0 22px 60px rgba(var(--sombra-rgb), calc(.62 * var(--sombra-k))), 0 0 0 1px rgba(var(--linha-rgb), .05);
  --sh-modal: 0 30px 90px rgba(var(--sombra-rgb), calc(.7 * var(--sombra-k)));
  --glow: 0 0 0 3px rgba(var(--acc-rgb), .14), 0 0 24px rgba(var(--acc-rgb), .12);

  /* casca */
  --side: 264px;
  --side-min: 76px;
  --top: 64px;
  --page-max: 1600px;

  /* movimento */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-back: cubic-bezier(.2, 1.1, .3, 1);


  /* tokens do BoaFé: o que era cor fixa virou variável (o tema claro redefine) */
  --hl-rgb: 255, 255, 255;
  --brilho-rgb: 255, 255, 255;
  --linha-rgb: 214, 222, 255;
  --fundo-rgb: 5, 6, 11;
  --sup-rgb: 12, 15, 23;
  --veu-rgb: 2, 3, 7;
  --sombra-rgb: 0, 0, 0;
  --sombra-k: 1;
  --trilho: #1b2030;
  --rolagem: #20263a;
  --caixa-borda: #3a4157;
  --knob: #7d8398;
  --ctl-foco: #06070d;
  --code-bg: #06070c;
  --code-tx: #c9cfe0;
  --tip-bg: #1a2030;
  --tip-tx: #eceef6;
  --sk-bg: #151a26;
  --forte: #ffffff;
  --primario-hover: #fff8e8;
  --ok-tx: #8ff2c6; --warn-tx: #ffd08a; --bad-tx: #ff9b9b; --ia-tx: #cdbdff; --info-tx: #a9caff;

  /* camadas */
  --z-side: 30;
  --z-top: 40;
  --z-modal: 400;
  --z-pop: 1200;
  --z-palette: 1500;
  --z-toast: 2000;
  --z-tip: 3000;
}

/* ---------- 2. VARIAÇÕES DE APARÊNCIA ------------------------------- */
/* cor de destaque */
:root[data-acento="ouro"]      { --acc: #cda85e; --acc-hi: #ebd39c; --acc-lo: #8f6e34; --acc2: #f4dfa8; --acc-rgb: 205, 168, 94;  --acc-hi-rgb: 235, 211, 156; --on-acc: #17120a; }
:root[data-acento="champanhe"] { --acc: #d8c39a; --acc-hi: #f1e6cc; --acc-lo: #9c8660; --acc2: #fff3d6; --acc-rgb: 216, 195, 154; --acc-hi-rgb: 241, 230, 204; --on-acc: #17130c; }
:root[data-acento="ambar"]     { --acc: #e0a04a; --acc-hi: #f6c987; --acc-lo: #9e6a26; --acc2: #ffd9a0; --acc-rgb: 224, 160, 74;  --acc-hi-rgb: 246, 201, 135; --on-acc: #1a1006; }
:root[data-acento="bronze"]    { --acc: #c28457; --acc-hi: #e6b38f; --acc-lo: #8a5832; --acc2: #f0c9a6; --acc-rgb: 194, 132, 87;  --acc-hi-rgb: 230, 179, 143; --on-acc: #1a0f08; }
:root[data-acento="platina"]   { --acc: #b8c4d6; --acc-hi: #e3e9f2; --acc-lo: #7b879a; --acc2: #ffffff; --acc-rgb: 184, 196, 214; --acc-hi-rgb: 227, 233, 242; --on-acc: #0d1118; }
:root[data-acento="esmeralda"] { --acc: #48c99a; --acc-hi: #9bebcb; --acc-lo: #257a5b; --acc2: #c9f7e5; --acc-rgb: 72, 201, 154;  --acc-hi-rgb: 155, 235, 203; --on-acc: #04140e; }
:root[data-acento="safira"]    { --acc: #6f9bff; --acc-hi: #b5cbff; --acc-lo: #3a5db0; --acc2: #dce6ff; --acc-rgb: 111, 155, 255; --acc-hi-rgb: 181, 203, 255; --on-acc: #060b1a; }
:root[data-acento="rubi"]      { --acc: #ff5a4e; --acc-hi: #ff9b8f; --acc-lo: #b02a20; --acc2: #ff8a5b; --acc-rgb: 255, 90, 78;   --acc-hi-rgb: 255, 155, 143; --on-acc: #1a0605; }

/* canto */
:root[data-canto="0"] { --raio: 0px; }
:root[data-canto="2"] { --raio: 2px; }
:root[data-canto="3"] { --raio: 3px; }
:root[data-canto="4"] { --raio: 4px; }
:root[data-canto="8"] { --raio: 8px; }

/* densidade */
:root[data-densidade="compacta"] {
  --ctl-h: 34px; --ctl-h-sm: 28px; --ctl-h-lg: 42px; --ctl-px: 11px; --ctl-fs: 13px;
  --gap: 12px; --pad: 15px; --pad-sm: 11px; --row-py: 8px; --top: 56px;
}

/* ---------- 3. BASE E UTILITÁRIOS ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--void); color: var(--ice);
  font-family: var(--f-body); font-size: 13.5px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--f-ui); font-weight: 600; letter-spacing: -.01em; color: var(--ice); }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 18px; }
hr, .divider { border: 0; height: 1px; background: var(--line); margin: var(--gap) 0; }
.divider.dashed { background: none; border-top: 1px dashed var(--line2); height: 0; }
::selection { background: rgba(var(--acc-rgb), .32); color: #fff; }
:focus-visible { outline: 2px solid rgba(var(--acc-rgb), .8); outline-offset: 2px; }
code, kbd, .mono { font-family: var(--f-mono); }
code { font-size: .92em; padding: 1px 6px; border-radius: var(--raio-sm); background: rgba(var(--acc-rgb), .08); color: var(--acc-hi); border: 1px solid rgba(var(--acc-rgb), .16); }
kbd { display: inline-flex; align-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--raio-sm); border: 1px solid var(--line2); border-bottom-width: 2px; background: var(--panel2); color: var(--text2); font-size: 10.5px; }
mark { background: rgba(var(--acc-rgb), .22); color: var(--acc-hi); padding: 0 3px; border-radius: 2px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--rolagem); border-radius: 10px; border: 2px solid var(--void); }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--acc-rgb), .45); }
* { scrollbar-width: thin; scrollbar-color: var(--rolagem) transparent; }

.ic { width: 18px; height: 18px; flex: 0 0 auto; stroke: currentColor; }
/* ícone no meio do texto: sempre ao lado, nunca em cima (em flex/grid nada muda) */
:is(p, small, span, b, strong, em, a, label, li, dd, dt, td, th, h1, h2, h3, h4, h5, h6, .small, .xsmall, .faint, .muted, .px-nota) > .ic { display: inline-block; vertical-align: -.25em; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* texto */
.overline { font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); display: inline-flex; align-items: center; gap: 8px; }
.overline::before { content: ""; width: 14px; height: 1px; background: currentColor; opacity: .7; }
.overline.plain::before { display: none; }
.eyebrow { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.display { font-family: var(--f-display); font-weight: 600; letter-spacing: 0; }
.h1 { font-family: var(--f-display); font-size: 34px; font-weight: 600; line-height: 1.12; letter-spacing: 0; }
.h2 { font-family: var(--f-ui); font-size: 20px; font-weight: 600; }
.h3 { font-family: var(--f-ui); font-size: 15px; font-weight: 600; }
.small { font-size: 12.5px; } .xsmall { font-size: 11.5px; } .tiny { font-size: 10.5px; }
.muted { color: var(--text2); } .faint { color: var(--mute); } .dim { color: var(--dim); }
.bold { font-weight: 600; } .strong { font-weight: 700; color: var(--ice); }
.upper { text-transform: uppercase; letter-spacing: .1em; }
.acc-text, .gold-text { color: var(--acc-hi); }
.ok-text { color: var(--ok); } .warn-text { color: var(--warn); } .bad-text { color: var(--bad); } .info-text { color: var(--info); }
.ia-text { background: var(--grad-ia); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text { background: linear-gradient(100deg, var(--acc-hi), var(--acc) 45%, var(--acc2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; } .center { text-align: center; }
.nowrap { white-space: nowrap; } .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link { color: var(--acc-hi); cursor: pointer; border-bottom: 1px dotted rgba(var(--acc-rgb), .5); }
.link:hover { color: var(--forte); border-bottom-color: var(--acc); }

/* disposição */
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row.top, .row-between.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; min-width: 0; }
.grow { flex: 1 1 auto; min-width: 0; }
.shrink0 { flex-shrink: 0; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; } .mb-24 { margin-bottom: 24px; }
.ml-auto { margin-left: auto; }
.p-0 { padding: 0 !important; }
.w-100 { width: 100%; }
.grid { display: grid; gap: var(--gap); min-width: 0; }
.grid > * { min-width: 0; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.g-main-side { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
.g-side-main { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-all { grid-column: 1 / -1; }
.stack > * + * { margin-top: var(--gap); }

/* ---------- 4. FUNDO TECNOLÓGICO E CASCA ---------------------------- */
.bg-tech { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 8% -12%, rgba(var(--acc-rgb), .085), transparent 62%),
    radial-gradient(900px 520px at 108% 4%, rgba(var(--acc-rgb), .05), transparent 60%),
    radial-gradient(760px 760px at 50% 125%, rgba(var(--ia-rgb), .045), transparent 60%);
}
.bg-tech::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(var(--acc-rgb), .04) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--acc-rgb), .04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 18%, #000 18%, transparent 74%); mask-image: radial-gradient(ellipse at 50% 18%, #000 18%, transparent 74%);
}
.bg-tech::after { content: ""; position: absolute; inset: 0; opacity: .02;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.bg-neural { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .34; }
:root[data-fundo="grade"] .bg-neural, :root[data-fundo="liso"] .bg-neural { display: none; }
:root[data-fundo="liso"] .bg-tech::before { display: none; }

.app { position: relative; z-index: 1; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .35s var(--ease); }
.app.is-collapsed { grid-template-columns: var(--side-min) minmax(0, 1fr); }
.main { min-width: 0; display: flex; flex-direction: column; }
.page { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 26px 32px 64px; animation: pageIn .55s var(--ease-out) both; }
.page--full { max-width: none; padding: 0; height: calc(100vh - var(--top)); display: flex; flex-direction: column; min-height: 0; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* menu lateral */
.sidebar { position: sticky; top: 0; height: 100vh; z-index: var(--z-side); display: flex; flex-direction: column; min-width: 0;
  background: linear-gradient(180deg, rgba(var(--sup-rgb), .94), rgba(var(--sup-rgb), .97)); border-right: 1px solid var(--line);
  overflow: hidden; }
.sidebar::after { content: ""; position: absolute; top: 0; right: -1px; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, rgba(var(--acc-rgb), .35) 30%, transparent 70%); pointer-events: none; }
.sidebar-neural { position: absolute; inset: 0; opacity: .5; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 34%, transparent 70%, #000 100%); mask-image: linear-gradient(180deg, #000 0, transparent 34%, transparent 70%, #000 100%); }
.brand { position: relative; display: flex; align-items: center; gap: 12px; height: var(--top); padding: 0 18px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.brand-mark { width: 38px; height: 38px; flex: 0 0 38px; filter: drop-shadow(0 0 12px rgba(var(--acc-rgb), .35)); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; overflow: hidden; }
.brand-text strong { font-family: var(--f-display); font-size: 19px; font-weight: 600; letter-spacing: .06em; color: var(--ice); }
.brand-text span { font-family: var(--f-mono); font-size: 9px; letter-spacing: .42em; color: var(--acc); margin-top: 3px; }
.nav { position: relative; flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 12px 12px 16px; }
.nav-group + .nav-group { margin-top: 14px; }
.nav-label { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); padding: 0 10px 6px; white-space: nowrap; }
.nav-item { position: relative; display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px; border-radius: var(--raio); color: var(--text2); font-family: var(--f-ui); font-size: 12.5px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; transition: background .2s, color .2s; }
.nav-item .ic { width: 18px; height: 18px; color: var(--mute); transition: color .2s; }
.nav-item > span:not(.nav-count) { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; }
.nav-item:hover { background: rgba(var(--hl-rgb), .035); color: var(--ice); }
.nav-item:hover .ic { color: var(--acc-hi); }
.nav-item.is-active { background: linear-gradient(90deg, rgba(var(--acc-rgb), .14), rgba(var(--acc-rgb), .03)); color: var(--acc-hi); }
.nav-item.is-active .ic { color: var(--acc); filter: drop-shadow(0 0 6px rgba(var(--acc-rgb), .6)); }
.nav-item.is-active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--acc); box-shadow: 0 0 12px rgba(var(--acc-rgb), .8); }
.nav-count { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; display: inline-grid; place-items: center; font-family: var(--f-mono); font-size: 10px; font-weight: 600; background: rgba(var(--hl-rgb), .06); color: var(--text2); }
.nav-count.is-hot { background: rgba(var(--bad-rgb), .16); color: var(--bad-tx); box-shadow: 0 0 0 1px rgba(var(--bad-rgb), .3); }
.nav-count.is-acc { background: rgba(var(--acc-rgb), .14); color: var(--acc-hi); box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .28); }
.nav-count.is-ia { background: rgba(var(--ia-rgb), .14); color: var(--ia-tx); }
.sidebar-foot { position: relative; padding: 12px; border-top: 1px solid var(--line); flex: 0 0 auto; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--raio); background: rgba(var(--hl-rgb), .025); border: 1px solid var(--line); }
.user-chip .who { flex: 1 1 auto; min-width: 0; line-height: 1.25; overflow: hidden; }
.user-chip .who strong { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip .who span { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.app.is-collapsed .brand-text, .app.is-collapsed .nav-label, .app.is-collapsed .nav-item > span, .app.is-collapsed .user-chip .who, .app.is-collapsed .user-chip .btn-icon { display: none; }
.app.is-collapsed .nav-item { justify-content: center; padding: 0; }
.app.is-collapsed .nav-item .nav-count { position: absolute; top: 2px; right: 4px; min-width: 16px; height: 14px; font-size: 8.5px; padding: 0 4px; }
.app.is-collapsed .brand { justify-content: center; padding: 0; }
.app.is-collapsed .user-chip { justify-content: center; padding: 6px; background: none; border-color: transparent; }

/* barra superior */
.topbar { position: sticky; top: 0; z-index: var(--z-top); height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 22px 0 16px;
  background: rgba(var(--sup-rgb), .96); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--mute); white-space: nowrap; }
.crumbs .ic { width: 14px; height: 14px; color: var(--dim); }
.crumbs b { color: var(--ice); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.search-trigger { display: flex; align-items: center; gap: 10px; height: var(--ctl-h-sm); width: min(420px, 34vw); margin-left: 12px; padding: 0 8px 0 12px; border-radius: var(--raio); border: 1px solid var(--line2); background: rgba(var(--fundo-rgb), .7); color: var(--mute); font-size: 12.5px; transition: border-color .2s, box-shadow .2s; }
.search-trigger .ic { width: 16px; height: 16px; }
.search-trigger span { flex: 1 1 auto; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-trigger:hover { border-color: rgba(var(--acc-rgb), .45); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .08); color: var(--text2); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-chip { display: inline-flex; align-items: center; gap: 8px; height: var(--ctl-h-sm); padding: 0 10px; border-radius: var(--raio); border: 1px solid var(--line2); background: rgba(var(--hl-rgb), .02); font-family: var(--f-ui); font-size: 11.5px; font-weight: 600; color: var(--text2); transition: border-color .2s, color .2s; }
.top-chip .ic { width: 15px; height: 15px; color: var(--acc); }
.top-chip:hover { border-color: rgba(var(--acc-rgb), .45); color: var(--ice); }
.top-chip .count { background: var(--bad); color: #fff; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-family: var(--f-mono); font-size: 10px; display: inline-grid; place-items: center; }
.ai-pill { position: relative; display: inline-flex; align-items: center; gap: 8px; height: var(--ctl-h-sm); padding: 0 12px 0 10px; border-radius: 999px; font-family: var(--f-ui); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--ice); border: 1px solid transparent;
  background: linear-gradient(var(--panel2), var(--panel2)) padding-box, conic-gradient(from var(--ang), rgba(var(--info-rgb), .9), rgba(var(--ia-rgb), .95), rgba(var(--ok-rgb), .8), rgba(var(--info-rgb), .9)) border-box;
  animation: giro 5s linear infinite; box-shadow: 0 0 18px rgba(var(--ia-rgb), .18); }
.ai-pill:hover { box-shadow: 0 0 26px rgba(var(--ia-rgb), .32); }
@keyframes giro { to { --ang: 360deg; } }

/* modo imersivo (WhatsApp): sem barra e sem menu fixo; o menu abre por cima */
body[data-layout="imersivo"] .app { grid-template-columns: minmax(0, 1fr); }
body[data-layout="imersivo"] .topbar { display: none; }
body[data-layout="imersivo"] .page--full { height: 100vh; }
body[data-layout="imersivo"] .sidebar { position: fixed; left: 0; top: 0; width: var(--side); transform: translateX(-102%); transition: transform .35s var(--ease); box-shadow: 30px 0 80px rgba(var(--sombra-rgb), calc(.6 * var(--sombra-k))); z-index: calc(var(--z-modal) - 10); }
body[data-layout="imersivo"] .app.is-menu-open .sidebar { transform: none; }
.side-scrim { position: fixed; inset: 0; background: rgba(var(--veu-rgb), .7); z-index: calc(var(--z-modal) - 11); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility 0s .3s; }
.app.is-menu-open .side-scrim, .app.is-mobile-open .side-scrim { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s; }

/* cabeçalho de página */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head > div:first-child { flex: 1 1 520px; min-width: 0; }
.page-head h1 { font-family: var(--f-display); font-size: 36px; line-height: 1.08; font-weight: 600; letter-spacing: 0; margin-top: 6px; }
.page-head p { color: var(--text2); margin-top: 8px; max-width: 860px; font-size: 13.5px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.section-head h2 { font-family: var(--f-ui); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.section-head h2 .ic { color: var(--acc); width: 17px; height: 17px; }

/* ---------- 5. SUPERFÍCIES E MODELOS DE BORDA ----------------------- */
/* Superfície = tudo que é "caixa": cartões, indicadores, janelas, colunas
   do funil, menus e blocos. O modelo vem de <html data-borda="A–H">;
   data-bm="X" força um modelo num elemento (vitrine, prévias).       */
.bx, .card, .kpi, .modal, .kb-col, .menu, .pop, .tile {
  position: relative; min-width: 0; border-radius: var(--raio);
  border: 1px solid var(--line2);
  background: linear-gradient(180deg, var(--panel2), var(--panel));
}

/* A · Linha fina */
:root[data-borda="A"] :is(.bx, .card, .kpi, .modal, .kb-col, .menu, .pop, .tile):not([data-bm]), [data-bm="A"] {
  border: 1px solid var(--line2); background: linear-gradient(180deg, var(--panel2), var(--panel)); }
:root[data-borda="A"] :is(.hov, .tile):not([data-bm]):hover, [data-bm="A"].hov:hover { border-color: var(--line3); }

/* B · Vidro */
:root[data-borda="B"] :is(.bx, .card, .kpi, .modal, .kb-col, .menu, .pop, .tile):not([data-bm]), [data-bm="B"] {
  border: 1px solid rgba(var(--hl-rgb), .1);
  background: linear-gradient(180deg, rgba(var(--hl-rgb), .055), rgba(var(--hl-rgb), .015) 38%, rgba(var(--hl-rgb), .02)), rgba(var(--sup-rgb), .95);
  box-shadow: inset 0 1px 0 rgba(var(--brilho-rgb), .1), 0 10px 30px rgba(var(--sombra-rgb), calc(.3 * var(--sombra-k))); }
:root[data-borda="B"] :is(.hov, .tile):not([data-bm]):hover, [data-bm="B"].hov:hover { border-color: rgba(var(--hl-rgb), .2); }

/* C · Gradiente da marca */
:root[data-borda="C"] :is(.bx, .card, .kpi, .modal, .kb-col, .menu, .pop, .tile):not([data-bm]), [data-bm="C"] {
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--panel2), var(--panel)) padding-box,
    linear-gradient(135deg, var(--acc) 0%, rgba(var(--acc-rgb), .08) 32%, rgba(var(--linha-rgb), .1) 60%, var(--acc2) 100%) border-box; }
:root[data-borda="C"] :is(.hov, .tile):not([data-bm]):hover, [data-bm="C"].hov:hover {
  background: linear-gradient(180deg, var(--panel3), var(--panel)) padding-box,
    linear-gradient(135deg, var(--acc-hi) 0%, rgba(var(--acc-rgb), .2) 32%, rgba(var(--linha-rgb), .16) 60%, var(--acc2) 100%) border-box; }

/* D · Gradiente em giro */
:root[data-borda="D"] :is(.bx, .card, .kpi, .modal, .kb-col, .menu, .pop, .tile):not([data-bm]), [data-bm="D"] {
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--panel2), var(--panel)) padding-box,
    conic-gradient(from var(--ang), rgba(var(--linha-rgb), .1) 0deg, rgba(var(--linha-rgb), .1) 250deg, var(--acc) 300deg, #fff 320deg, var(--acc2) 340deg, rgba(var(--linha-rgb), .1) 360deg) border-box;
  animation: giro 6s linear infinite; }

/* E · Cantos marcados */
:root[data-borda="E"] :is(.bx, .card, .kpi, .modal, .kb-col, .menu, .pop, .tile):not([data-bm]), [data-bm="E"] {
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--acc), var(--acc)) top left / 14px 1px no-repeat, linear-gradient(var(--acc), var(--acc)) top left / 1px 14px no-repeat,
    linear-gradient(var(--acc), var(--acc)) top right / 14px 1px no-repeat, linear-gradient(var(--acc), var(--acc)) top right / 1px 14px no-repeat,
    linear-gradient(var(--line3), var(--line3)) bottom left / 14px 1px no-repeat, linear-gradient(var(--line3), var(--line3)) bottom left / 1px 14px no-repeat,
    linear-gradient(var(--line3), var(--line3)) bottom right / 14px 1px no-repeat, linear-gradient(var(--line3), var(--line3)) bottom right / 1px 14px no-repeat,
    linear-gradient(180deg, var(--panel2), var(--panel)); }

/* F · Chanfro */
:root[data-borda="F"] :is(.bx, .card, .kpi, .modal, .kb-col, .tile):not([data-bm]), [data-bm="F"] {
  border: 1px solid var(--line2); border-radius: 0 !important;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  background:
    linear-gradient(225deg, rgba(var(--acc-rgb), .9) 0 10px, transparent 10.5px) top right / 20px 20px no-repeat,
    linear-gradient(45deg, var(--line3) 0 10px, transparent 10.5px) bottom left / 20px 20px no-repeat,
    linear-gradient(180deg, var(--panel2), var(--panel)); }
/* menus e janelas flutuantes não usam o chanfro (cortaria a sombra) */
:root[data-borda="F"] :is(.menu, .pop):not([data-bm]) { border: 1px solid var(--line2); background: linear-gradient(180deg, var(--panel3), var(--panel2)); border-radius: 0; }

/* G · Neon suave */
:root[data-borda="G"] :is(.bx, .card, .kpi, .modal, .kb-col, .menu, .pop, .tile):not([data-bm]), [data-bm="G"] {
  border: 1px solid rgba(var(--acc-rgb), .42); background: linear-gradient(180deg, var(--panel2), var(--panel));
  box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .07), 0 0 22px rgba(var(--acc-rgb), .13), inset 0 0 22px rgba(var(--acc-rgb), .04); }
:root[data-borda="G"] :is(.hov, .tile):not([data-bm]):hover, [data-bm="G"].hov:hover { box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .14), 0 0 32px rgba(var(--acc-rgb), .24), inset 0 0 22px rgba(var(--acc-rgb), .07); }

/* H · Linha dupla */
:root[data-borda="H"] :is(.bx, .card, .kpi, .modal, .kb-col, .menu, .pop, .tile):not([data-bm]), [data-bm="H"] {
  border: 1px solid var(--line2); outline: 1px solid var(--line); outline-offset: 3px; background: linear-gradient(180deg, var(--panel2), var(--panel)); }
:root[data-borda="H"] :is(.hov, .tile):not([data-bm]):hover, [data-bm="H"].hov:hover { outline-color: rgba(var(--acc-rgb), .7); }
:root[data-borda="H"] .grid { gap: calc(var(--gap) + 6px); }
:root[data-borda="H"] .modal:not([data-bm]) { outline-offset: 4px; }

/* cartões */
.card { padding: var(--pad); box-shadow: var(--sh-card); }
:root[data-borda="B"] .card:not([data-bm]), :root[data-borda="G"] .card:not([data-bm]) { box-shadow: none; }
.card.pad-0 { padding: 0; }
.card.pad-sm { padding: var(--pad-sm); }
.card.flat { box-shadow: none; }
.card.hov { transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; cursor: pointer; }
.card.hov:hover { transform: translateY(-2px); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card.pad-0 > .card-head { padding: var(--pad) var(--pad) 0; }
.card-head > div:first-child { min-width: 0; flex: 1 1 200px; }
.card-head h3, .card-title { font-family: var(--f-ui); font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; color: var(--ice); }
.card-head h3 .ic, .card-title .ic { width: 16px; height: 16px; color: var(--acc); }
.card-head p { font-size: 12px; color: var(--mute); margin-top: 5px; }
.card-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin: 16px calc(-1 * var(--pad)) calc(-1 * var(--pad)); padding: 12px var(--pad); border-top: 1px solid var(--line); background: rgba(var(--fundo-rgb), .35); }
.card-foot .left { margin-right: auto; display: flex; gap: 8px; align-items: center; }
.card.pad-0 > .card-foot { margin: 0; }
.inset { border-radius: var(--raio); border: 1px solid var(--line); background: rgba(var(--fundo-rgb), .45); padding: var(--pad-sm); min-width: 0; }
.inset.acc { border-color: rgba(var(--acc-rgb), .25); background: rgba(var(--acc-rgb), .045); }

/* indicadores */
.kpi { padding: 16px 18px 42px; min-height: 138px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sh-card); }
.kpi-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kpi-label { font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: 8px; min-width: 0; }
.kpi-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 8px rgba(var(--acc-rgb), .8); flex: 0 0 6px; }
.kpi-label.ok::before { background: var(--ok); box-shadow: 0 0 8px rgba(var(--ok-rgb), .8); }
.kpi-label.bad::before { background: var(--bad); box-shadow: 0 0 8px rgba(var(--bad-rgb), .8); }
.kpi-label.info::before { background: var(--info); box-shadow: 0 0 8px rgba(var(--info-rgb), .8); }
.kpi-label.warn::before { background: var(--warn); box-shadow: 0 0 8px rgba(var(--warn-rgb), .8); }
.kpi-label.ia::before { background: var(--ia); box-shadow: 0 0 8px rgba(var(--ia-rgb), .8); }
.kpi-ic { margin-left: auto; width: 30px; height: 30px; flex: 0 0 30px; border-radius: var(--raio); display: grid; place-items: center; color: var(--acc); background: rgba(var(--acc-rgb), .07); border: 1px solid rgba(var(--acc-rgb), .2); }
.kpi-ic .ic { width: 16px; height: 16px; }
.kpi-value { font-family: var(--f-display); font-size: 34px; font-weight: 700; line-height: 1; margin-top: 14px; font-variant-numeric: lining-nums tabular-nums; letter-spacing: .01em; }
.kpi-value small { font-family: var(--f-ui); font-size: 13px; font-weight: 500; color: var(--mute); margin-left: 4px; }
.kpi-sub { font-size: 11.5px; color: var(--mute); margin-top: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-family: var(--f-mono); font-size: 11px; font-weight: 600; }
.delta .ic { width: 13px; height: 13px; }
.delta.up { color: var(--ok); } .delta.down { color: var(--bad); } .delta.flat { color: var(--mute); }
.kpi .spark { position: absolute; left: 0; right: 0; bottom: 0; height: 36px; opacity: .85; pointer-events: none; }
.kpi.hov { cursor: pointer; }

/* estatística compacta */
.stat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-width: 0; }
.stat-ic { width: 36px; height: 36px; flex: 0 0 36px; border-radius: var(--raio); display: grid; place-items: center; background: rgba(var(--acc-rgb), .08); border: 1px solid rgba(var(--acc-rgb), .22); color: var(--acc); }
.stat-ic.ok { background: rgba(var(--ok-rgb), .08); border-color: rgba(var(--ok-rgb), .25); color: var(--ok); }
.stat-ic.bad { background: rgba(var(--bad-rgb), .08); border-color: rgba(var(--bad-rgb), .25); color: var(--bad); }
.stat-ic.warn { background: rgba(var(--warn-rgb), .08); border-color: rgba(var(--warn-rgb), .25); color: var(--warn); }
.stat-ic.info { background: rgba(var(--info-rgb), .08); border-color: rgba(var(--info-rgb), .25); color: var(--info); }
.stat-ic.ia { background: rgba(var(--ia-rgb), .08); border-color: rgba(var(--ia-rgb), .25); color: var(--ia); }
.stat-v { font-family: var(--f-ui); font-size: 20px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-l { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-top: 3px; }
.stat.card { padding: 12px 14px; }

/* blocos selecionáveis */
.tile { padding: 14px; cursor: pointer; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-1px); }
.tile.is-on { box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .75), 0 0 26px rgba(var(--acc-rgb), .18); }
.tile.is-on::after { content: ""; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); }

/* ---------- 6. BOTÕES ------------------------------------------------ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; isolation: isolate;
  height: var(--ctl-h); padding: 0 16px; border-radius: var(--raio); border: 1px solid var(--line2);
  background: rgba(var(--hl-rgb), .025); color: var(--ice);
  font-family: var(--f-ui); font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; line-height: 1;
  white-space: nowrap; user-select: none; overflow: hidden; vertical-align: middle;
  transition: background .25s, border-color .25s, color .25s, box-shadow .25s, transform .15s, filter .25s;
}
.btn .ic { width: 16px; height: 16px; }
.btn:hover { border-color: var(--line3); background: rgba(var(--hl-rgb), .055); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--glow); }
.btn[disabled], .btn.is-disabled { opacity: .42; pointer-events: none; filter: saturate(.4); }

/* primário: contorno dourado (padrão) · sólido · vidro — escolhido em Aparência */
.btn-primary { color: var(--acc-hi); border-color: rgba(var(--acc-rgb), .55);
  background: linear-gradient(180deg, rgba(var(--acc-rgb), .17), rgba(var(--acc-rgb), .055));
  box-shadow: inset 0 1px 0 rgba(var(--acc-hi-rgb), .14), 0 8px 22px -12px rgba(var(--acc-rgb), .55); }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(var(--acc-hi-rgb), .26) 50%, transparent 68%); transform: translateX(-130%); transition: transform .85s var(--ease); }
.btn-primary:hover { color: var(--primario-hover); border-color: var(--acc);
  background: linear-gradient(180deg, rgba(var(--acc-rgb), .28), rgba(var(--acc-rgb), .1));
  box-shadow: inset 0 1px 0 rgba(var(--acc-hi-rgb), .22), 0 0 0 3px rgba(var(--acc-rgb), .1), 0 12px 30px -12px rgba(var(--acc-rgb), .75); }
.btn-primary:hover::after { transform: translateX(130%); }
:root[data-botao="solido"] .btn-primary { color: var(--on-acc); border-color: var(--acc-lo); text-shadow: 0 1px 0 rgba(var(--brilho-rgb), .22);
  background: linear-gradient(180deg, var(--acc-hi) 0%, var(--acc) 50%, var(--acc-lo) 100%);
  box-shadow: inset 0 1px 0 rgba(var(--brilho-rgb), .38), inset 0 -1px 0 rgba(var(--sombra-rgb), calc(.25 * var(--sombra-k))), 0 10px 24px -12px rgba(var(--acc-rgb), .85); }
:root[data-botao="solido"] .btn-primary:hover { color: var(--on-acc); filter: brightness(1.07); box-shadow: inset 0 1px 0 rgba(var(--brilho-rgb), .45), 0 0 0 3px rgba(var(--acc-rgb), .16), 0 14px 30px -12px rgba(var(--acc-rgb), .9); }
:root[data-botao="vidro"] .btn-primary { color: var(--ice); border-color: rgba(var(--hl-rgb), .16);
  background: linear-gradient(180deg, rgba(var(--hl-rgb), .1), rgba(var(--hl-rgb), .025));
  box-shadow: inset 0 1px 0 rgba(var(--brilho-rgb), .16), inset 0 -2px 0 rgba(var(--acc-rgb), .85), 0 10px 26px -14px rgba(var(--sombra-rgb), calc(.9 * var(--sombra-k))); }
:root[data-botao="vidro"] .btn-primary:hover { color: var(--forte); border-color: rgba(var(--hl-rgb), .28); box-shadow: inset 0 1px 0 rgba(var(--brilho-rgb), .2), inset 0 -2px 0 var(--acc-hi), 0 0 22px rgba(var(--acc-rgb), .22); }

.btn-secondary { /* igual ao .btn: neutro */ }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text2); }
.btn-ghost:hover { background: rgba(var(--hl-rgb), .05); color: var(--ice); border-color: transparent; }
.btn-danger { color: var(--bad-tx); border-color: rgba(var(--bad-rgb), .45); background: rgba(var(--bad-rgb), .06); }
.btn-danger:hover { color: var(--bad-tx); border-color: var(--bad); background: rgba(var(--bad-rgb), .13); box-shadow: 0 0 0 3px rgba(var(--bad-rgb), .1); }
.btn-success { color: var(--ok-tx); border-color: rgba(var(--ok-rgb), .45); background: rgba(var(--ok-rgb), .06); }
.btn-success:hover { border-color: var(--ok); background: rgba(var(--ok-rgb), .13); box-shadow: 0 0 0 3px rgba(var(--ok-rgb), .1); }
.btn-ia { color: var(--ice); border-color: transparent;
  background: linear-gradient(var(--panel3), var(--panel3)) padding-box, conic-gradient(from var(--ang), rgba(var(--info-rgb), .9), rgba(var(--ia-rgb), .95), rgba(var(--ok-rgb), .8), rgba(var(--info-rgb), .9)) border-box;
  animation: giro 4.5s linear infinite; box-shadow: 0 0 18px rgba(var(--ia-rgb), .16); }
.btn-ia .ic { color: var(--ia-tx); }
.btn-ia:hover { box-shadow: 0 0 26px rgba(var(--ia-rgb), .32); background: linear-gradient(var(--panel4), var(--panel4)) padding-box, conic-gradient(from var(--ang), rgba(var(--info-rgb), 1), rgba(var(--ia-rgb), 1), rgba(var(--ok-rgb), .9), rgba(var(--info-rgb), 1)) border-box; }
.btn-link { height: auto; padding: 0; border: 0; background: none; color: var(--acc-hi); text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; overflow: visible; }
.btn-link:hover { background: none; color: var(--forte); text-decoration: underline; text-underline-offset: 3px; }

.btn-sm { height: var(--ctl-h-sm); padding: 0 12px; font-size: 10.5px; gap: 6px; }
.btn-sm .ic { width: 14px; height: 14px; }
.btn-lg { height: var(--ctl-h-lg); padding: 0 22px; font-size: 12px; }
.btn-lg .ic { width: 18px; height: 18px; }
.btn-block { width: 100%; }
.btn .count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: rgba(var(--hl-rgb), .1); font-family: var(--f-mono); font-size: 10px; display: inline-grid; place-items: center; letter-spacing: 0; }
.btn-primary .count { background: rgba(var(--acc-rgb), .25); }
.btn kbd { height: 18px; font-size: 9.5px; letter-spacing: 0; }

/* carregando */
.btn.is-loading { color: transparent !important; text-shadow: none !important; pointer-events: none; }
.btn.is-loading .ic { opacity: 0; }
.btn.is-loading::before { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid rgba(var(--hl-rgb), .16); border-top-color: var(--acc-hi); animation: spin .7s linear infinite; }
:root[data-botao="solido"] .btn-primary.is-loading::before { border-color: rgba(var(--sombra-rgb), calc(.2 * var(--sombra-k))); border-top-color: var(--on-acc); }
@keyframes spin { to { transform: rotate(360deg); } }

/* botão de ícone */
.btn-icon { position: relative; display: inline-grid; place-items: center; width: var(--ctl-h); height: var(--ctl-h); padding: 0; flex: 0 0 auto;
  border-radius: var(--raio); border: 1px solid transparent; background: transparent; color: var(--text2); transition: background .2s, color .2s, border-color .2s, transform .25s; }
.btn-icon .ic { width: 18px; height: 18px; }
.btn-icon:hover { background: rgba(var(--hl-rgb), .055); color: var(--ice); }
.btn-icon.sm { width: var(--ctl-h-sm); height: var(--ctl-h-sm); }
.btn-icon.sm .ic { width: 15px; height: 15px; }
.btn-icon.xs { width: 24px; height: 24px; }
.btn-icon.xs .ic { width: 13px; height: 13px; }
.btn-icon.lg { width: var(--ctl-h-lg); height: var(--ctl-h-lg); }
.btn-icon.bordered { border-color: var(--line2); background: rgba(var(--hl-rgb), .02); }
.btn-icon.bordered:hover { border-color: rgba(var(--acc-rgb), .5); color: var(--acc-hi); }
.btn-icon.is-on { color: var(--acc-hi); background: rgba(var(--acc-rgb), .1); border-color: rgba(var(--acc-rgb), .35); }
.btn-icon.danger:hover { color: var(--bad); border-color: rgba(var(--bad-rgb), .45); background: rgba(var(--bad-rgb), .08); }
.btn-icon .dot-count { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--bad); color: #fff; font-family: var(--f-mono); font-size: 9px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--void); animation: estala .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes estala { from { transform: scale(0); } }
/* fechar janela */
.x { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border-radius: var(--raio); border: 1px solid var(--line2); background: none; color: var(--mute); cursor: pointer; transition: all .22s var(--ease); }
.x .ic { width: 16px; height: 16px; }
.x:hover { color: var(--forte); border-color: var(--acc); background: rgba(var(--acc-rgb), .12); transform: rotate(90deg); }

/* grupos */
.btn-group { display: inline-flex; align-items: stretch; }
.btn-group > .btn { border-radius: 0; }
.btn-group > .btn + .btn { margin-left: -1px; }
.btn-group > .btn:first-child { border-radius: var(--raio) 0 0 var(--raio); }
.btn-group > .btn:last-child { border-radius: 0 var(--raio) var(--raio) 0; }
.btn-group > .btn:hover, .btn-group > .btn.is-active { z-index: 1; }
.btn-group > .btn.is-active { color: var(--acc-hi); border-color: rgba(var(--acc-rgb), .55); background: rgba(var(--acc-rgb), .1); }
.btn-split { display: inline-flex; }
.btn-split > .btn:first-child { border-radius: var(--raio) 0 0 var(--raio); }
.btn-split > .btn:last-child { border-radius: 0 var(--raio) var(--raio) 0; margin-left: -1px; padding: 0 10px; }
.btn-split > .btn-primary:last-child { border-left-color: rgba(var(--acc-rgb), .3); }

/* chips de filtro */
.chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: var(--raio); border: 1px solid var(--line2);
  background: rgba(var(--hl-rgb), .02); color: var(--text2); font-family: var(--f-ui); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: all .2s; }
.chip .ic { width: 14px; height: 14px; }
.chip:hover { border-color: var(--line3); color: var(--ice); }
.chip.is-on { color: var(--acc-hi); border-color: rgba(var(--acc-rgb), .55); background: rgba(var(--acc-rgb), .1); box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), .15); }
.chip .n { font-family: var(--f-mono); font-size: 10px; padding: 1px 5px; border-radius: var(--raio-sm); background: rgba(var(--hl-rgb), .07); color: var(--text2); letter-spacing: 0; }
.chip.is-on .n { background: rgba(var(--acc-rgb), .2); color: var(--acc-hi); }
.chip .rm { margin-right: -4px; width: 18px; height: 18px; border-radius: 3px; display: grid; place-items: center; opacity: .6; }
.chip .rm:hover { opacity: 1; background: rgba(var(--hl-rgb), .08); }
.chip.dashed { border-style: dashed; }

/* ---------- 7. FORMULÁRIOS ------------------------------------------- */
/* Todos os controles têm a mesma altura (--ctl-h), o mesmo canto (--raio),
   a mesma borda e o mesmo foco. Variações só de tamanho: -sm e -lg.     */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label:not([class]), .label { display: block; height: 16px; line-height: 16px; font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.label .req, .field > label:not([class]) .req { color: var(--acc); font-size: 12px; margin-left: 2px; }
.label .opt, .field > label:not([class]) .opt { margin-left: 6px; font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-size: 11px; color: var(--dim); }
.label .help, .field > label:not([class]) .help { width: 13px; height: 13px; margin-left: 4px; vertical-align: -2px; color: var(--dim); cursor: help; }
.label .ic, .field > label:not([class]) .ic { vertical-align: -2px; }
.field .hint { font-size: 11.5px; color: var(--mute); line-height: 1.45; }
.field .msg { max-width: none; padding: 0; border: 0; border-radius: 0; background: none; font-size: 11.5px; display: none; align-items: flex-start; gap: 6px; line-height: 1.4; animation: msgIn .25s var(--ease-out); }
.field .msg .ic { width: 13px; height: 13px; margin-top: 1px; }
.field.is-valid .msg.ok { display: flex; color: var(--ok); }
.field.is-invalid .msg.err { display: flex; color: var(--bad-tx); }
.field.is-warn .msg.warn { display: flex; color: var(--warn); }
@keyframes msgIn { from { opacity: 0; transform: translateY(-3px); } }

.control { position: relative; display: flex; align-items: center; min-width: 0; }
.control > .ic { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--dim); pointer-events: none; transition: color .2s; z-index: 1; }
.control > .ic.right { left: auto; right: 12px; }
.control > .pre, .control > .suf { position: absolute; font-family: var(--f-mono); font-size: 12px; color: var(--mute); pointer-events: none; z-index: 1; }
.control > .pre { left: 12px; } .control > .suf { right: 12px; }
.control > .ic ~ .input, .control > .ic ~ .select { padding-left: 38px; }
.control > .pre ~ .input { padding-left: 34px; }
.control > .suf ~ .input, .control > .ic.right ~ .input { padding-right: 38px; }
.control > .state { position: absolute; right: 12px; width: 16px; height: 16px; display: none; z-index: 1; }
.control > .act { position: absolute; right: 4px; z-index: 1; }
.control > .act ~ .input { padding-right: 44px; }
.field.is-valid .control > .state.ok { display: block; color: var(--ok); }
.field.is-invalid .control > .state.err { display: block; color: var(--bad); }
.control:focus-within > .ic:not(.right) { color: var(--acc); }

.input, .select, .textarea {
  width: 100%; min-width: 0; height: var(--ctl-h); padding: 0 var(--ctl-px); border-radius: var(--raio);
  border: 1px solid var(--line2); background: var(--ctl-bg); color: var(--ice); font-family: var(--f-body); font-size: var(--ctl-fs); line-height: 1.2;
  outline: none; box-shadow: inset 0 1px 0 rgba(var(--sombra-rgb), calc(.28 * var(--sombra-k))); transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line3); }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(var(--acc-rgb), .75); background: var(--ctl-foco); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .12), inset 0 1px 0 rgba(var(--sombra-rgb), calc(.28 * var(--sombra-k))); }
.input[readonly]:not([data-afro]), .textarea[readonly] { background: rgba(var(--hl-rgb), .018); border-style: dashed; color: var(--text2); }
.input:disabled, .select:disabled, .textarea:disabled { opacity: .5; cursor: not-allowed; }
.input.mono { font-family: var(--f-mono); font-size: calc(var(--ctl-fs) - .5px); letter-spacing: .02em; }
.input.center { text-align: center; }
.input-sm, .select.input-sm { height: var(--ctl-h-sm); font-size: 12.5px; padding: 0 10px; }
.select.input-sm { padding-right: 30px; background-position: right 10px center; }
.input-lg { height: var(--ctl-h-lg); font-size: 15px; }
.textarea { height: auto; min-height: 96px; padding: 10px var(--ctl-px); resize: vertical; line-height: 1.55; }
.textarea.sm { min-height: 64px; }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a90a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 15px; }
.select option, .select optgroup { background: var(--panel3); color: var(--ice); }
.field.is-valid .input, .field.is-valid .select { border-color: rgba(var(--ok-rgb), .55); }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: rgba(var(--bad-rgb), .7); box-shadow: 0 0 0 3px rgba(var(--bad-rgb), .1); }
.field.is-warn .input { border-color: rgba(var(--warn-rgb), .65); }
.flash-fill { animation: flashFill 1.2s var(--ease-out); }
@keyframes flashFill { 0% { background: rgba(var(--acc-rgb), .22); } 100% { background: var(--ctl-bg); } }

/* grupo com complemento */
.input-group { display: flex; align-items: stretch; min-width: 0; }
.input-group > * { border-radius: 0 !important; }
.input-group > * + * { margin-left: -1px; }
.input-group > :first-child { border-radius: var(--raio) 0 0 var(--raio) !important; }
.input-group > :last-child { border-radius: 0 var(--raio) var(--raio) 0 !important; }
.input-group > .input, .input-group > .select { flex: 1 1 auto; }
.input-group > .input:focus { position: relative; z-index: 1; }
.addon { display: inline-flex; align-items: center; gap: 6px; height: var(--ctl-h); padding: 0 12px; border: 1px solid var(--line2); background: var(--panel2); color: var(--mute); font-family: var(--f-mono); font-size: 12px; white-space: nowrap; }

/* grade de formulário */
.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.c-1 { grid-column: span 1; } .c-2 { grid-column: span 2; } .c-3 { grid-column: span 3; } .c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; } .c-6 { grid-column: span 6; }
.c-7 { grid-column: span 7; } .c-8 { grid-column: span 8; } .c-9 { grid-column: span 9; } .c-10 { grid-column: span 10; } .c-11 { grid-column: span 11; } .c-12 { grid-column: span 12; }
.form-grid > [data-enche] { grid-column: var(--enche); } /* Atualização 46: o último campo da linha estica */
.form-section { padding: 4px 0 0; }
.form-section + .form-section { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line2); }
.form-section > h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-family: var(--f-ui); font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.form-section > h4 .ic { width: 16px; height: 16px; color: var(--acc); }
.form-section > h4 .badge, .form-section > h4 .lock { margin-left: auto; }
.form-section > p { font-size: 12px; color: var(--mute); margin-bottom: 14px; }
.form-section > h4 + .form-grid { margin-top: 12px; }
.fieldset { border: 1px solid var(--line); border-radius: var(--raio); padding: 14px; background: rgba(var(--fundo-rgb), .3); }
.fieldset > .legend { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); margin-bottom: 10px; }

/* caixa de seleção e opção única */
.check { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--text2); user-select: none; line-height: 1.35; min-height: 20px; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.check .box { position: relative; width: 18px; height: 18px; flex: 0 0 18px; border-radius: var(--raio-sm); border: 1.5px solid var(--caixa-borda); background: var(--ctl-bg); display: grid; place-items: center; transition: all .2s var(--ease); }
.check .box::after { content: ""; width: 9px; height: 5px; margin-top: -2px; border-left: 2px solid var(--on-acc); border-bottom: 2px solid var(--on-acc); transform: rotate(-45deg) scale(0); transition: transform .2s var(--ease-back); }
.check:hover .box { border-color: rgba(var(--acc-rgb), .6); }
.check input:checked + .box { background: var(--acc); border-color: var(--acc); box-shadow: 0 0 12px rgba(var(--acc-rgb), .35); }
.check input:checked + .box::after { transform: rotate(-45deg) scale(1); }
.check input:indeterminate + .box { background: rgba(var(--acc-rgb), .25); border-color: var(--acc); }
.check input:indeterminate + .box::after { width: 8px; height: 0; margin: 0; border-left: 0; border-bottom: 2px solid var(--acc-hi); transform: none; }
.check input:focus-visible + .box { box-shadow: var(--glow); }
.check input:disabled + .box, .check input:disabled ~ * { opacity: .45; cursor: not-allowed; }
.check.radio .box { border-radius: 50%; }
.check.radio .box::after { width: 8px; height: 8px; margin: 0; border: 0; border-radius: 50%; background: var(--on-acc); transform: scale(0); }
.check.radio input:checked + .box::after { transform: scale(1); }
.check.sm { font-size: 12px; } .check.sm .box { width: 15px; height: 15px; flex-basis: 15px; }
.check-card { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--raio); border: 1px solid var(--line2); background: rgba(var(--hl-rgb), .018); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; min-width: 0; }
.check-card:hover { border-color: rgba(var(--acc-rgb), .4); }
.check-card:has(input:checked) { border-color: rgba(var(--acc-rgb), .7); background: rgba(var(--acc-rgb), .06); box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .15); }
.check-card b { display: block; color: var(--ice); font-size: 13px; }
.check-card .sub { display: block; font-size: 11.5px; color: var(--mute); margin-top: 2px; line-height: 1.4; }
.check-card .check { margin-top: 1px; }
/* caixa de marcar do tamanho de um campo (Atualização 46) */
.check-card.ctl { height: var(--ctl-h); padding: 0 12px; align-items: center; gap: 10px; }
.check-card.ctl .check { margin-top: 0; }
.check-card.ctl .cc-t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.check-card.ctl b { display: inline; }
.check-card.ctl .sub { display: inline; margin: 0 0 0 6px; }

/* chave liga/desliga */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--text2); user-select: none; line-height: 1.35; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.switch .track { position: relative; width: 38px; height: 22px; flex: 0 0 38px; border-radius: 22px; background: var(--trilho); border: 1px solid var(--line2); transition: background .25s, border-color .25s, box-shadow .25s; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--knob); transition: transform .3s var(--ease-back), background .25s, box-shadow .25s; }
.switch input:checked + .track { background: rgba(var(--acc-rgb), .3); border-color: rgba(var(--acc-rgb), .7); box-shadow: 0 0 14px rgba(var(--acc-rgb), .22); }
.switch input:checked + .track::after { transform: translateX(16px); background: var(--acc-hi); box-shadow: 0 0 10px rgba(var(--acc-rgb), .9); }
.switch input:focus-visible + .track { box-shadow: var(--glow); }
.switch input:disabled + .track { opacity: .4; }
.switch .txt b { display: block; color: var(--ice); font-weight: 600; font-size: 13px; }
.switch .txt span { display: block; font-size: 11.5px; color: var(--mute); }
.switch.sm .track { width: 30px; height: 18px; flex-basis: 30px; }
.switch.sm .track::after { width: 12px; height: 12px; }
.switch.sm input:checked + .track::after { transform: translateX(12px); }

/* seletor segmentado */
.segmented { display: inline-flex; align-items: center; gap: 2px; height: var(--ctl-h); padding: 3px; border-radius: var(--raio); border: 1px solid var(--line2); background: var(--ctl-bg); max-width: 100%; overflow-x: auto; }
.segmented label, .segmented button { position: relative; flex: 0 0 auto; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span, .segmented button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: calc(var(--ctl-h) - 8px); padding: 0 12px; border-radius: var(--raio-sm); border: 0; background: transparent; color: var(--mute); font-family: var(--f-ui); font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: all .2s; }
.segmented span .ic, .segmented button .ic { width: 14px; height: 14px; }
.segmented span:hover, .segmented button:hover { color: var(--ice); }
.segmented input:checked + span, .segmented button.is-active { background: rgba(var(--acc-rgb), .15); color: var(--acc-hi); box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), .38); }
.segmented.sm { height: var(--ctl-h-sm); }
.segmented.sm span, .segmented.sm button { height: calc(var(--ctl-h-sm) - 8px); padding: 0 9px; font-size: 10px; }
.segmented.block { display: flex; width: 100%; }
.segmented.block label, .segmented.block button { flex: 1 1 0; }
.segmented.block span { width: 100%; }

/* faixa */
.range { width: 100%; -webkit-appearance: none; appearance: none; height: 22px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--acc) var(--p, 50%), var(--trilho) var(--p, 50%)); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--trilho); }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--acc); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--acc-hi); border: 3px solid var(--void); box-shadow: 0 0 0 1px var(--acc), 0 0 12px rgba(var(--acc-rgb), .8); }
.range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--acc-hi); border: 3px solid var(--void); box-shadow: 0 0 0 1px var(--acc), 0 0 12px rgba(var(--acc-rgb), .8); }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-val { min-width: 54px; text-align: center; font-family: var(--f-mono); font-size: 12px; padding: 4px 8px; border-radius: var(--raio-sm); background: rgba(var(--acc-rgb), .1); color: var(--acc-hi); border: 1px solid rgba(var(--acc-rgb), .25); }

/* código de verificação */
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.otp input { width: 100%; height: var(--ctl-h); text-align: center; font-family: var(--f-mono); font-size: 17px; font-weight: 600; border-radius: var(--raio); border: 1px solid var(--line2); background: var(--ctl-bg); color: var(--ice); outline: none; transition: all .2s; }
.otp.lg input { height: var(--ctl-h-lg); font-size: 20px; }
.otp input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .14); }
.otp input.filled { border-color: rgba(var(--acc-rgb), .45); color: var(--acc-hi); }
.otp.is-error input { border-color: rgba(var(--bad-rgb), .7); animation: shake .4s; }
.otp.is-ok input { border-color: rgba(var(--ok-rgb), .7); color: var(--ok); }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

/* senha */
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.pw-meter i { height: 3px; border-radius: 3px; background: var(--trilho); transition: background .3s; }
.pw-meter[data-n="1"] i:nth-child(-n+1) { background: var(--bad); }
.pw-meter[data-n="2"] i:nth-child(-n+2) { background: var(--warn); }
.pw-meter[data-n="3"] i:nth-child(-n+3) { background: var(--info); }
.pw-meter[data-n="4"] i { background: var(--ok); }
.counter { font-family: var(--f-mono); font-size: 10.5px; color: var(--dim); text-align: right; }
.counter.is-near { color: var(--warn); } .counter.is-over { color: var(--bad); }

/* área de envio */
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 24px; text-align: center; cursor: pointer;
  border: 1.5px dashed rgba(var(--acc-rgb), .38); border-radius: var(--raio);
  background: radial-gradient(420px 120px at 50% 0, rgba(var(--acc-rgb), .08), transparent), rgba(var(--fundo-rgb), .45); transition: border-color .25s, box-shadow .25s, background .25s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--acc); box-shadow: 0 0 0 4px rgba(var(--acc-rgb), .07), inset 0 0 40px rgba(var(--acc-rgb), .06); }
.dropzone .dz-ic { width: 44px; height: 44px; margin-bottom: 8px; padding: 11px; border-radius: var(--raio); color: var(--acc); background: rgba(var(--acc-rgb), .08); border: 1px solid rgba(var(--acc-rgb), .25); }
.dropzone strong { font-size: 13.5px; color: var(--ice); }
.dropzone span { font-size: 12px; color: var(--mute); }
.dropzone.sm { padding: 14px; flex-direction: row; gap: 12px; text-align: left; }
.dropzone.sm .dz-ic { margin: 0; width: 36px; height: 36px; padding: 8px; }
.upq { display: flex; flex-direction: column; gap: 8px; }
.upq-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--raio); border: 1px solid var(--line); background: rgba(var(--fundo-rgb), .4); }
.upq-item .fi { width: 34px; height: 34px; border-radius: var(--raio-sm); display: grid; place-items: center; background: rgba(var(--info-rgb), .1); color: var(--info); }
.upq-item .nm { font-size: 12.5px; color: var(--ice); }
.upq-item .mt { font-size: 11px; color: var(--mute); }

/* chips dentro do campo */
.chips-input { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: var(--ctl-h); padding: 4px 6px; border-radius: var(--raio); border: 1px solid var(--line2); background: var(--ctl-bg); cursor: text; transition: border-color .2s, box-shadow .2s; }
.chips-input:focus-within { border-color: rgba(var(--acc-rgb), .75); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .12); }
.chips-input input { flex: 1 1 120px; min-width: 80px; height: calc(var(--ctl-h) - 12px); border: 0; background: transparent; outline: none; padding: 0 6px; font-size: var(--ctl-fs); color: var(--ice); }
.token { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 4px 0 8px; border-radius: var(--raio-sm); background: rgba(var(--acc-rgb), .12); border: 1px solid rgba(var(--acc-rgb), .3); color: var(--acc-hi); font-size: 12px; }
.token button { width: 18px; height: 18px; border: 0; background: none; color: inherit; display: grid; place-items: center; border-radius: 3px; opacity: .7; padding: 0; }
.token button:hover { opacity: 1; background: rgba(var(--hl-rgb), .08); }
.token .ic { width: 12px; height: 12px; }

/* amostras de cor */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; background: var(--sw); box-shadow: inset 0 0 0 2px rgba(var(--sombra-rgb), calc(.35 * var(--sombra-k))); transition: transform .2s var(--ease-back), border-color .2s; }
.swatch:hover { transform: scale(1.08); }
.swatch.is-on { border-color: #fff; box-shadow: inset 0 0 0 2px rgba(var(--sombra-rgb), calc(.35 * var(--sombra-k))), 0 0 0 3px rgba(var(--hl-rgb), .12), 0 0 18px var(--sw); }
.swatch-lbl { display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

/* busca com resultados (combobox) */
.combo { position: relative; }
.combo-pop { position: fixed; z-index: var(--z-pop); max-height: 320px; overflow-y: auto; padding: 6px; box-shadow: var(--sh-pop); animation: popIn .16s var(--ease-out); }
.combo-pop .opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: var(--raio-sm); border: 0; background: none; color: var(--text2); font-size: 13px; text-align: left; cursor: pointer; }
.combo-pop .opt .ic { width: 16px; height: 16px; color: var(--mute); }
.combo-pop .opt .opt-main { flex: 1 1 auto; min-width: 0; }
.combo-pop .opt .opt-main b { display: block; color: var(--ice); font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-pop .opt .opt-main small { display: block; font-size: 11.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-pop .opt:hover, .combo-pop .opt.is-sel { background: rgba(var(--acc-rgb), .1); color: var(--ice); }
.combo-pop .opt:hover .ic, .combo-pop .opt.is-sel .ic { color: var(--acc); }
.combo-pop .opt.is-checked::after { content: "✓"; margin-left: auto; color: var(--acc); font-weight: 700; }
.combo-pop .opt.create { color: var(--acc-hi); border-top: 1px dashed var(--line2); border-radius: 0 0 var(--raio-sm) var(--raio-sm); margin-top: 4px; }
.opt-group { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); padding: 8px 10px 4px; }
.opt-empty { padding: 14px; text-align: center; color: var(--mute); font-size: 12.5px; }

/* calendário de escolha de data */
.dp { position: fixed; z-index: var(--z-pop); width: 292px; padding: 12px; box-shadow: var(--sh-pop); animation: popIn .16s var(--ease-out); }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-head b { font-family: var(--f-ui); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-grid .wd { font-family: var(--f-mono); font-size: 9.5px; color: var(--dim); text-align: center; padding: 4px 0; text-transform: uppercase; }
.dp-grid button { position: relative; height: 34px; border: 0; border-radius: var(--raio-sm); background: none; color: var(--text2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.dp-grid button:hover { background: rgba(var(--hl-rgb), .06); color: var(--ice); }
.dp-grid button.out { color: var(--dim); opacity: .5; }
.dp-grid button.nu { color: var(--bad-tx); opacity: .75; }
.dp-grid button.fer::after { content: ""; position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--bad); }
.dp-grid button.today { box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), .6); color: var(--acc-hi); }
.dp-grid button.sel { background: var(--acc); color: var(--on-acc); font-weight: 700; box-shadow: 0 0 14px rgba(var(--acc-rgb), .5); }
.dp-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11px; color: var(--mute); }

/* ---------- 8. EXIBIÇÃO ---------------------------------------------- */
/* badges */
.badge { --c: var(--mute); --c-rgb: 138, 144, 166; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--raio-sm);
  border: 1px solid rgba(var(--c-rgb), .32); background: rgba(var(--c-rgb), .1); color: var(--c);
  font-family: var(--f-ui); font-size: 9.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; line-height: 1; vertical-align: middle; }
.badge .dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.badge .ic { width: 12px; height: 12px; }
.badge.acc, .badge.gold { --c: var(--acc-hi); --c-rgb: var(--acc-rgb); }
.badge.ok { --c: var(--ok-tx); --c-rgb: var(--ok-rgb); }
.badge.warn { --c: var(--warn-tx); --c-rgb: var(--warn-rgb); }
.badge.bad { --c: var(--bad-tx); --c-rgb: var(--bad-rgb); }
.badge.info { --c: var(--info-tx); --c-rgb: var(--info-rgb); }
.badge.ia { --c: var(--ia-tx); --c-rgb: var(--ia-rgb); }
.badge.muted { --c: var(--mute); --c-rgb: 138, 144, 166; }
.badge.outline { background: transparent; }
.badge.solid { background: var(--acc); color: var(--on-acc); border-color: var(--acc); }
.badge.solid.ok { background: var(--ok); color: #04140e; border-color: var(--ok); }
.badge.solid.bad { background: var(--bad); color: #1a0505; border-color: var(--bad); }
.badge.sm { height: 18px; padding: 0 6px; font-size: 8.5px; gap: 4px; }
.badge.lg { height: 26px; padding: 0 10px; font-size: 10.5px; }
.badge.pulse .dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.75); } }
.num-bubble { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--bad); color: #fff; font-family: var(--f-mono); font-size: 10px; font-weight: 700; }
.num-bubble.acc { background: var(--acc); color: var(--on-acc); }
.num-bubble.muted { background: rgba(var(--hl-rgb), .08); color: var(--text2); }

/* teses e etapas (cores de catálogo) */
.tese, .etapa, .tag { --c: #9aa0b4; --c-rgb: 154, 160, 180; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--raio-sm);
  background: rgba(var(--c-rgb), .1); color: var(--c); border: 1px solid rgba(var(--c-rgb), .26); font-size: 11px; font-weight: 600; white-space: nowrap; line-height: 1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tese::before, .etapa::before { content: ""; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 2px; background: currentColor; }
.t-juros { --c: #e5c77f; --c-rgb: 229, 199, 127; }
.t-auxilio { --c: #6ee7b0; --c-rgb: 110, 231, 176; }
.t-hora { --c: #7fd8e8; --c-rgb: 127, 216, 232; }
.t-seguro { --c: #ffb97a; --c-rgb: 255, 185, 122; }
.t-descontos { --c: #ff93a8; --c-rgb: 255, 147, 168; }
.t-prev { --c: var(--info-tx); --c-rgb: 143, 188, 255; }
.t-medico { --c: var(--ia-tx); --c-rgb: 205, 182, 255; }
.t-outros { --c: #b4b8c6; --c-rgb: 180, 184, 198; }
.e-aguardando { --c: #fdee3e; --c-rgb: 253, 238, 62; }
.e-aberto { --c: #aab1bd; --c-rgb: 109, 116, 129; }
.e-protocolar { --c: #d46bd3; --c-rgb: 140, 2, 139; }
.e-protocolado { --c: #5cc4f2; --c-rgb: 16, 165, 232; }
.e-cumprimento { --c: #f06a98; --c-rgb: 223, 34, 100; }
.e-finalizado { --c: #2fc795; --c-rgb: 7, 150, 106; }
.e-cancelado { --c: var(--bad-tx); --c-rgb: 255, 155, 155; }
.tag.sm { height: 18px; font-size: 10px; padding: 0 6px; }
.tag.upper { font-family: var(--f-ui); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }

/* status com ponto */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text2); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mute); flex: 0 0 8px; }
.status.ok::before { background: var(--ok); box-shadow: 0 0 8px rgba(var(--ok-rgb), .8); }
.status.warn::before { background: var(--warn); box-shadow: 0 0 8px rgba(var(--warn-rgb), .8); }
.status.bad::before { background: var(--bad); box-shadow: 0 0 8px rgba(var(--bad-rgb), .8); }
.status.info::before { background: var(--info); box-shadow: 0 0 8px rgba(var(--info-rgb), .8); }
.status.acc::before { background: var(--acc); box-shadow: 0 0 8px rgba(var(--acc-rgb), .8); }
.status.live::before { animation: pulse 1.6s ease-in-out infinite; }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; flex: 0 0 8px; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid currentColor; color: var(--ok); animation: ping 1.8s var(--ease-out) infinite; }
.pulse-dot.acc { background: var(--acc); } .pulse-dot.acc::after { color: var(--acc); }
.pulse-dot.bad { background: var(--bad); } .pulse-dot.bad::after { color: var(--bad); }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* avatares */
.avatar { position: relative; display: inline-grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%;
  font-family: var(--f-ui); font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--on-acc);
  background: linear-gradient(135deg, var(--acc-hi), var(--acc) 55%, var(--acc-lo)); box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .35); user-select: none; }
.avatar.dark { color: var(--acc-hi); background: linear-gradient(135deg, var(--panel4), var(--panel3)); box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .3); }
.avatar.c1 { color: #fff; background: linear-gradient(135deg, #5b8dff, #3657b8); box-shadow: none; }
.avatar.c2 { color: #fff; background: linear-gradient(135deg, #3ddc97, #1f8c5f); box-shadow: none; }
.avatar.c3 { color: #fff; background: linear-gradient(135deg, #ff8a5b, #c9452b); box-shadow: none; }
.avatar.c4 { color: #fff; background: linear-gradient(135deg, #b78bff, #6d45c9); box-shadow: none; }
.avatar.c5 { color: #fff; background: linear-gradient(135deg, #43c6d8, #237c8a); box-shadow: none; }
.avatar.c6 { color: #fff; background: linear-gradient(135deg, #ff6f9f, #b83463); box-shadow: none; }
.avatar.c7 { color: #1a1406; background: linear-gradient(135deg, #f3d27a, #b8902f); box-shadow: none; }
.avatar.xs { width: 22px; height: 22px; flex-basis: 22px; font-size: 8.5px; }
.avatar.sm { width: 28px; height: 28px; flex-basis: 28px; font-size: 10px; }
.avatar.lg { width: 44px; height: 44px; flex-basis: 44px; font-size: 14px; }
.avatar.xl { width: 64px; height: 64px; flex-basis: 64px; font-size: 20px; }
.avatar.sq { border-radius: var(--raio); }
.avatar .on { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--panel); }
.avatar .on.off { background: var(--dim); }
.avatars { display: inline-flex; align-items: center; }
.avatars > .avatar { box-shadow: 0 0 0 2px var(--panel); }
.avatars > .avatar + .avatar { margin-left: -6px; }
.avatars .more { display: inline-grid; place-items: center; height: 28px; min-width: 28px; padding: 0 6px; margin-left: -6px; border-radius: 14px; background: var(--panel4); color: var(--text2); font-size: 10px; font-weight: 700; box-shadow: 0 0 0 2px var(--panel); }
.person { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.person b { display: block; font-size: 13px; color: var(--ice); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person small { display: block; font-size: 11.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* prazos */
.countdown { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--raio-sm); font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; white-space: nowrap; border: 1px solid; }
.countdown .ic { width: 12px; height: 12px; }
.countdown.late { color: #fff; background: rgba(var(--bad-rgb), .55); border-color: var(--bad); box-shadow: 0 0 12px rgba(var(--bad-rgb), .35); }
.countdown.d0 { color: var(--bad-tx); background: rgba(var(--bad-rgb), .14); border-color: rgba(var(--bad-rgb), .45); animation: glowBad 1.8s ease-in-out infinite; }
.countdown.d1 { color: var(--warn-tx); background: rgba(var(--warn-rgb), .12); border-color: rgba(var(--warn-rgb), .4); }
.countdown.d2 { color: var(--acc-hi); background: rgba(var(--acc-rgb), .1); border-color: rgba(var(--acc-rgb), .32); }
.countdown.dn { color: var(--text2); background: rgba(var(--hl-rgb), .03); border-color: var(--line2); }
@keyframes glowBad { 50% { box-shadow: 0 0 14px rgba(var(--bad-rgb), .45); } }

/* bancos, CNJ, fontes */
.bank { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; white-space: nowrap; min-width: 0; }
.bank i { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 6px; font-style: normal; font-family: var(--f-ui); font-size: 8.5px; font-weight: 800; color: #fff; box-shadow: inset 0 0 0 1px rgba(var(--hl-rgb), .15); }
.cnj { font-family: var(--f-mono); font-size: 12px; letter-spacing: .01em; white-space: nowrap; }
.cnj em { font-style: normal; color: var(--acc-hi); }
.source-chip { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: var(--raio-sm); background: rgba(var(--ia-rgb), .1); border: 1px solid rgba(var(--ia-rgb), .28); color: var(--ia-tx); font-family: var(--f-mono); font-size: 10px; white-space: nowrap; cursor: default; }
.source-chip .ic { width: 11px; height: 11px; }
.source-chip.low { background: rgba(var(--warn-rgb), .1); border-color: rgba(var(--warn-rgb), .35); color: var(--warn-tx); }
.lock { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ia-tx); padding: 3px 8px; border-radius: var(--raio-sm); background: rgba(var(--ia-rgb), .1); border: 1px solid rgba(var(--ia-rgb), .28); }
.lock .ic { width: 11px; height: 11px; }
.money { font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.money.pos { color: var(--ok); } .money.neg { color: var(--bad); }

/* ícone em caixinha (listas) */
.li-ic { width: 34px; height: 34px; flex: 0 0 34px; border-radius: var(--raio); display: grid; place-items: center; background: rgba(var(--acc-rgb), .08); border: 1px solid rgba(var(--acc-rgb), .2); color: var(--acc); }
.li-ic .ic { width: 16px; height: 16px; }
.li-ic.ok { background: rgba(var(--ok-rgb), .08); border-color: rgba(var(--ok-rgb), .25); color: var(--ok); }
.li-ic.bad { background: rgba(var(--bad-rgb), .08); border-color: rgba(var(--bad-rgb), .25); color: var(--bad); }
.li-ic.warn { background: rgba(var(--warn-rgb), .08); border-color: rgba(var(--warn-rgb), .25); color: var(--warn); }
.li-ic.info { background: rgba(var(--info-rgb), .08); border-color: rgba(var(--info-rgb), .25); color: var(--info); }
.li-ic.ia { background: rgba(var(--ia-rgb), .08); border-color: rgba(var(--ia-rgb), .25); color: var(--ia); }
.li-ic.muted { background: rgba(var(--hl-rgb), .03); border-color: var(--line); color: var(--mute); }
.li-ic.lg { width: 44px; height: 44px; flex-basis: 44px; }
.li-ic.lg .ic { width: 20px; height: 20px; }

/* chave e valor */
.kv { display: grid; grid-template-columns: minmax(120px, 38%) minmax(0, 1fr); gap: 0; }
.kv > dt, .kv > .k { padding: 9px 0; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); border-bottom: 1px dashed var(--line); display: flex; align-items: center; gap: 6px; }
.kv > dd, .kv > .v { margin: 0; padding: 8px 0 8px 12px; font-size: 13px; color: var(--ice); border-bottom: 1px dashed var(--line); min-width: 0; overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kv > :nth-last-child(-n+2) { border-bottom: 0; }
.kv.cols-2 { grid-template-columns: minmax(110px, auto) minmax(0, 1fr) minmax(110px, auto) minmax(0, 1fr); column-gap: 18px; }
.kv .empty-v { color: var(--dim); font-style: italic; }

/* listas */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.list-item:last-child { border-bottom: 0; }
.list-item.hov, .list-item[data-ficha], .list-item[data-open] { cursor: pointer; margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: var(--raio); transition: background .2s; }
.list-item.hov:hover, .list-item[data-ficha]:hover, .list-item[data-open]:hover { background: rgba(var(--hl-rgb), .03); }
.li-body { flex: 1 1 auto; min-width: 0; }
.li-title { font-size: 13px; font-weight: 600; color: var(--ice); display: flex; align-items: center; gap: 8px; min-width: 0; }
.li-title > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-sub { font-size: 11.5px; color: var(--mute); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-meta { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

/* progresso */
.progress { position: relative; height: 6px; border-radius: 6px; background: var(--trilho); overflow: hidden; }
.progress > i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--acc-lo), var(--acc) 60%, var(--acc-hi)); box-shadow: 0 0 10px rgba(var(--acc-rgb), .6); transition: width 1.1s var(--ease-out); }
.progress.ok > i { background: linear-gradient(90deg, #1f8c5f, var(--ok)); box-shadow: 0 0 10px rgba(var(--ok-rgb), .5); }
.progress.bad > i { background: linear-gradient(90deg, #b03030, var(--bad)); box-shadow: 0 0 10px rgba(var(--bad-rgb), .5); }
.progress.ia > i { background: var(--grad-ia); box-shadow: 0 0 10px rgba(var(--ia-rgb), .5); }
.progress.info > i { background: linear-gradient(90deg, #3a5db0, var(--info)); }
.progress.sm { height: 4px; } .progress.lg { height: 10px; }
.progress.indet > i { width: 35% !important; animation: indet 1.3s var(--ease) infinite; }
@keyframes indet { from { left: -35%; } to { left: 100%; } }
.progress.striped > i { background-image: linear-gradient(45deg, rgba(var(--hl-rgb), .18) 25%, transparent 25%, transparent 50%, rgba(var(--hl-rgb), .18) 50%, rgba(var(--hl-rgb), .18) 75%, transparent 75%), linear-gradient(90deg, var(--acc-lo), var(--acc)); background-size: 16px 16px, 100% 100%; animation: stripes .8s linear infinite; }
@keyframes stripes { to { background-position: 16px 0, 0 0; } }
.prog-row { display: flex; align-items: center; gap: 10px; }
.prog-row .progress { flex: 1 1 auto; }
.prog-row .v { font-family: var(--f-mono); font-size: 11px; color: var(--text2); min-width: 42px; text-align: right; }
.steps-mini { display: inline-flex; gap: 3px; }
.steps-mini span { width: 12px; height: 4px; border-radius: 2px; background: var(--trilho); }
.steps-mini span.on { background: rgba(var(--acc-rgb), .55); }
.steps-mini span.now { background: var(--acc); box-shadow: 0 0 8px rgba(var(--acc-rgb), .8); }

/* legenda */
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 11.5px; color: var(--text2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i, .lg-dot { width: 9px; height: 9px; border-radius: 2px; display: inline-block; flex: 0 0 9px; }

/* ---------- 9. DADOS ------------------------------------------------- */
/* tabelas */
.table-wrap { position: relative; width: 100%; overflow-x: auto; min-width: 0; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table th { padding: 10px 12px; text-align: left; font-family: var(--f-mono); font-size: 9.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); white-space: nowrap; border-bottom: 1px solid var(--line2); background: rgba(var(--fundo-rgb), .35); }
.table td { padding: var(--row-py) 12px; border-bottom: 1px solid var(--line); color: var(--text2); vertical-align: middle; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: rgba(var(--hl-rgb), .025); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr[data-ficha], .table tbody tr[data-open], .table tbody tr.clickable { cursor: pointer; }
.table tbody tr[data-ficha]:hover td:first-child, .table tbody tr[data-open]:hover td:first-child { box-shadow: inset 2px 0 0 var(--acc); }
.table tbody tr.is-sel { background: rgba(var(--acc-rgb), .06); }
.table .right, .table th.right { text-align: right; }
.table .center, .table th.center { text-align: center; }
.table td.mono { font-family: var(--f-mono); font-size: 12px; white-space: nowrap; }
.table .cell-title { color: var(--ice); font-weight: 600; font-size: 13px; line-height: 1.3; }
.table .cell-sub { font-size: 11.5px; color: var(--mute); margin-top: 2px; line-height: 1.35; }
.table .col-check { width: 38px; }
.table .row-actions { display: inline-flex; gap: 2px; opacity: .35; transition: opacity .2s; }
.table tr:hover .row-actions { opacity: 1; }
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable::after { content: "↕"; margin-left: 6px; opacity: .35; font-family: var(--f-body); }
.table th.sortable.asc::after { content: "↑"; opacity: 1; color: var(--acc); }
.table th.sortable.desc::after { content: "↓"; opacity: 1; color: var(--acc); }
.table tfoot td { font-weight: 600; color: var(--ice); background: rgba(var(--acc-rgb), .04); border-top: 1px solid var(--line2); border-bottom: 0; }
.table.compact td { padding: 7px 10px; }
.table.compact th { padding: 8px 10px; }
.table.zebra tbody tr:nth-child(even) { background: rgba(var(--hl-rgb), .014); }
.table-wrap.sticky { max-height: 520px; overflow: auto; }
.table-wrap.sticky th { position: sticky; top: 0; z-index: 2; background: var(--panel2); }
.card.pad-0 .table th:first-child, .card.pad-0 .table td:first-child { padding-left: var(--pad); }
.card.pad-0 .table th:last-child, .card.pad-0 .table td:last-child { padding-right: var(--pad); }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.card.pad-0 > .toolbar { padding: var(--pad-sm) var(--pad); border-bottom: 1px solid var(--line); }
.toolbar .search { flex: 1 1 240px; max-width: 420px; }
.toolbar .sep { width: 1px; height: 22px; background: var(--line2); margin: 0 4px; }

/* grade editável (cálculos) */
.dgrid { width: 100%; border-collapse: separate; border-spacing: 0; font-family: var(--f-mono); font-size: 11.5px; }
.dgrid th { position: sticky; top: 0; z-index: 2; padding: 8px 8px; background: var(--panel3); color: var(--mute); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; text-align: right; font-weight: 500; white-space: nowrap; border-bottom: 1px solid var(--line2); }
.dgrid th:first-child, .dgrid td:first-child { text-align: left; }
.dgrid td { padding: 2px 4px; border-bottom: 1px solid var(--line); text-align: right; color: var(--text2); white-space: nowrap; }
.dgrid td input { width: 100%; min-width: 64px; height: 28px; padding: 0 6px; text-align: right; border: 1px solid transparent; border-radius: var(--raio-sm); background: transparent; color: var(--ice); font: inherit; outline: none; transition: all .15s; }
.dgrid td input:hover { border-color: var(--line2); }
.dgrid td input:focus { border-color: rgba(var(--acc-rgb), .7); background: var(--ctl-foco); box-shadow: 0 0 0 2px rgba(var(--acc-rgb), .12); }
.dgrid td.ia input { box-shadow: inset 2px 0 0 rgba(var(--ia-rgb), .7); }
.dgrid td.low { background: rgba(var(--warn-rgb), .07); }
.dgrid td.low input { color: var(--warn-tx); }
.dgrid td.edited input { color: var(--acc-hi); box-shadow: inset 2px 0 0 var(--acc); }
.dgrid td.calc { color: var(--ice); font-weight: 600; padding: 0 8px; }
.dgrid tr:hover td { background: rgba(var(--hl-rgb), .02); }
.dgrid tfoot td { position: sticky; bottom: 0; background: var(--panel3); color: var(--acc-hi); font-weight: 700; padding: 9px 8px; border-top: 1px solid var(--line2); }

/* paginação e ações em massa */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px var(--pad); border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }
.pager .pages { display: flex; gap: 4px; }
.pager button { min-width: 30px; height: 30px; padding: 0 8px; border-radius: var(--raio-sm); border: 1px solid var(--line2); background: rgba(var(--hl-rgb), .02); color: var(--text2); font-family: var(--f-mono); font-size: 11px; }
.pager button:hover { border-color: var(--line3); color: var(--ice); }
.pager button.is-on { border-color: rgba(var(--acc-rgb), .6); background: rgba(var(--acc-rgb), .12); color: var(--acc-hi); }
.pager button[disabled] { opacity: .35; pointer-events: none; }
.bulk-bar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px auto 0; width: fit-content; max-width: 100%; padding: 8px 8px 8px 16px; border-radius: var(--raio); border: 1px solid rgba(var(--acc-rgb), .45); background: rgba(var(--sup-rgb), .96); box-shadow: var(--sh-pop), 0 0 30px rgba(var(--acc-rgb), .12); animation: sobe .3s var(--ease-back); }
.bulk-bar b { color: var(--acc-hi); font-family: var(--f-mono); }

/* linha do tempo */
.timeline { position: relative; display: flex; flex-direction: column; }
.tl-item { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; }
.tl-item::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: -2px; width: 1px; background: linear-gradient(180deg, var(--line3), var(--line)); }
.tl-item:last-child::before { display: none; }
.tl-dot { position: relative; z-index: 1; width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; background: var(--panel3); border: 1px solid var(--line2); color: var(--acc); }
.tl-dot .ic { width: 11px; height: 11px; }
.tl-dot.acc { border-color: rgba(var(--acc-rgb), .6); box-shadow: 0 0 10px rgba(var(--acc-rgb), .35); }
.tl-dot.ok { color: var(--ok); border-color: rgba(var(--ok-rgb), .5); }
.tl-dot.bad { color: var(--bad); border-color: rgba(var(--bad-rgb), .5); }
.tl-dot.ia { color: var(--ia); border-color: rgba(var(--ia-rgb), .5); }
.tl-dot.info { color: var(--info); border-color: rgba(var(--info-rgb), .5); }
.tl-body { min-width: 0; }
.tl-title { font-size: 13px; color: var(--ice); font-weight: 600; }
.tl-title b { color: var(--acc-hi); font-weight: 600; }
.tl-meta { font-size: 11.5px; color: var(--mute); margin-top: 2px; }
.tl-text { font-size: 12.5px; color: var(--text2); margin-top: 6px; }

/* comentários */
.comment { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
.comment + .comment { margin-top: 14px; }
.comment-box { padding: 10px 12px; border-radius: var(--raio); border: 1px solid var(--line); background: rgba(var(--hl-rgb), .02); }
.comment-head { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 4px; }
.comment-head b { color: var(--ice); }
.comment-head span { color: var(--mute); font-size: 11px; }
.comment-text { font-size: 13px; color: var(--text2); }
.comment-text .mention { color: var(--acc-hi); font-weight: 600; }

/* conversa (mensagens) */
.chat { display: flex; flex-direction: column; gap: 6px; }
.msg { position: relative; max-width: min(560px, 78%); padding: 8px 12px 6px; border-radius: 10px; font-size: 13px; line-height: 1.5; color: var(--ice); word-wrap: break-word; animation: msgIn .25s var(--ease-out); }
.msg.in { align-self: flex-start; background: var(--sk-bg); border: 1px solid var(--line); border-top-left-radius: 3px; }
.msg.out { align-self: flex-end; background: linear-gradient(180deg, rgba(var(--acc-rgb), .2), rgba(var(--acc-rgb), .11)); border: 1px solid rgba(var(--acc-rgb), .28); border-top-right-radius: 3px; }
.msg .m-author { font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; color: var(--acc-hi); margin-bottom: 2px; }
.msg.in .m-author { color: var(--info); }
.msg .m-meta { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 2px; font-family: var(--f-mono); font-size: 9.5px; color: var(--mute); }
.msg .m-meta .ic { width: 13px; height: 13px; color: var(--info); }
.msg.note { display: block; align-self: stretch; max-width: none; background: rgba(var(--warn-rgb), .07); border: 1px dashed rgba(var(--warn-rgb), .35); color: var(--warn-tx); font-size: 12.5px; }
.msg.note .ic { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; }
.msg.ia { align-self: stretch; max-width: none; background: rgba(var(--ia-rgb), .07); border: 1px solid rgba(var(--ia-rgb), .25); color: var(--ia-tx); font-size: 12.5px; }
.msg.sys { align-self: center; max-width: none; padding: 5px 12px; border-radius: var(--raio); background: rgba(var(--hl-rgb), .04); border: 1px solid var(--line); color: var(--text2); font-size: 12px; }
.msg.sys b { color: var(--ok); font-weight: 600; }
.msg.file { display: flex; align-items: center; gap: 10px; }
.msg .fic { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 8px; display: grid; place-items: center; background: rgba(var(--hl-rgb), .06); color: var(--acc-hi); }
.msg.audio { display: flex; align-items: center; gap: 10px; min-width: 240px; }
.wave { flex: 1 1 auto; height: 26px; background: repeating-linear-gradient(90deg, rgba(var(--acc-rgb), .7) 0 2px, transparent 2px 5px); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 26' preserveAspectRatio='none'><path d='M0 13h2V9h3v8h3V5h3v16h3V8h3v10h3V3h3v20h3V7h3v12h3V10h3v6h3V4h3v18h3V8h3v10h3V11h3v4h3V6h3v14h3V9h3v8h3V12h3v2h3V7h3v12h3V9h3v8h3V13z' fill='black'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 26' preserveAspectRatio='none'><path d='M0 13h2V9h3v8h3V5h3v16h3V8h3v10h3V3h3v20h3V7h3v12h3V10h3v6h3V4h3v18h3V8h3v10h3V11h3v4h3V6h3v14h3V9h3v8h3V12h3v2h3V7h3v12h3V9h3v8h3V13z' fill='black'/></svg>"); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.msg-media { width: 220px; height: 150px; border-radius: 8px; background: linear-gradient(135deg, #1b2233, #10141f); display: grid; place-items: center; color: var(--dim); margin-bottom: 6px; border: 1px solid var(--line); }
.msg-actions { display: flex; gap: 6px; margin: 6px 0 2px; }
.day-sep { align-self: center; margin: 10px 0; padding: 3px 12px; border-radius: 999px; background: rgba(var(--hl-rgb), .04); border: 1px solid var(--line); font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

/* kanban */
.kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; min-height: 0; align-items: flex-start; }
.kb-col { --c: var(--acc); flex: 0 0 290px; width: 290px; display: flex; flex-direction: column; max-height: 100%; min-height: 180px; }
.kanban.fit .kb-col { flex: 1 1 0; width: auto; min-width: 220px; }
.kb-col::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c); box-shadow: 0 0 12px var(--c); border-radius: var(--raio) var(--raio) 0 0; opacity: .9; z-index: 1; }
.kb-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px; border-bottom: 1px solid var(--line); }
.kb-head .kb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); flex: 0 0 8px; }
.kb-head b { flex: 1 1 auto; font-family: var(--f-ui); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-count, .kb-tot { min-width: 24px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: var(--raio-sm); font-family: var(--f-mono); font-size: 10.5px; color: var(--c); border: 1px solid currentColor; background: rgba(var(--hl-rgb), .02); }
.kb-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; padding: 10px; overflow-y: auto; min-height: 80px; transition: background .2s; }
.kb-body.is-over { background: rgba(var(--acc-rgb), .05); box-shadow: inset 0 0 0 1px dashed rgba(var(--acc-rgb), .4); }
.kb-card { position: relative; padding: 11px 12px; border-radius: var(--raio); border: 1px solid var(--line2); background: linear-gradient(180deg, var(--sk-bg), var(--panel3)); cursor: grab; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.kb-card:hover { border-color: rgba(var(--acc-rgb), .4); transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(var(--sombra-rgb), calc(.9 * var(--sombra-k))); }
.kb-card.is-dragging { opacity: .45; transform: rotate(1.5deg) scale(.98); }
.kb-card .kb-t { font-size: 12.5px; font-weight: 600; color: var(--ice); line-height: 1.35; }
.kb-card .kb-s { font-size: 11px; color: var(--mute); margin-top: 3px; }
.kb-card .kb-f { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.kb-empty { padding: 18px 10px; text-align: center; font-size: 12px; color: var(--dim); border: 1px dashed var(--line2); border-radius: var(--raio); }
.kb-add { display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; margin: 0 10px 10px; border-radius: var(--raio); border: 1px dashed var(--line2); background: none; color: var(--mute); font-size: 12px; }
.kb-add:hover { color: var(--acc-hi); border-color: rgba(var(--acc-rgb), .5); }
.kb-gate { margin-top: 8px; padding: 6px 8px; border-radius: var(--raio-sm); font-size: 11px; background: rgba(var(--warn-rgb), .08); color: var(--warn-tx); border: 1px solid rgba(var(--warn-rgb), .25); display: flex; gap: 6px; }
.kb-gate .ic { width: 12px; height: 12px; margin-top: 1px; }

/* calendário mensal */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--raio); overflow: hidden; }
.cal .cal-wd { padding: 8px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); background: rgba(var(--fundo-rgb), .45); border-bottom: 1px solid var(--line); }
.cal-day { min-height: 104px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; transition: background .2s; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day .dn { font-family: var(--f-mono); font-size: 11px; color: var(--text2); display: flex; justify-content: space-between; align-items: center; }
.cal-day.out { background: rgba(var(--sombra-rgb), calc(.22 * var(--sombra-k))); }
.cal-day.out .dn { color: var(--dim); }
.cal-day.nu { background: repeating-linear-gradient(135deg, rgba(var(--hl-rgb), .028) 0 6px, transparent 6px 12px); }
.cal-day.fer { background: repeating-linear-gradient(135deg, rgba(var(--bad-rgb), .07) 0 6px, transparent 6px 12px); }
.cal-day.today { box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), .7); background: rgba(var(--acc-rgb), .04); }
.cal-day.today .dn b { color: var(--on-acc); background: var(--acc); padding: 1px 6px; border-radius: 3px; }
.cal-day:hover { background: rgba(var(--hl-rgb), .02); }
.cal-ev { display: block; padding: 2px 6px; border-radius: 3px; font-size: 10.5px; color: var(--ice); background: rgba(var(--acc-rgb), .14); border-left: 2px solid var(--acc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cal-ev.bad { background: rgba(var(--bad-rgb), .14); border-left-color: var(--bad); }
.cal-ev.warn { background: rgba(var(--warn-rgb), .12); border-left-color: var(--warn); }
.cal-ev.info { background: rgba(var(--info-rgb), .12); border-left-color: var(--info); }
.cal-ev.ok { background: rgba(var(--ok-rgb), .12); border-left-color: var(--ok); }
.cal-fer { font-size: 9.5px; color: var(--bad-tx); }

/* árvore de pastas */
.tree { display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; }
.tree-item { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; border-radius: var(--raio-sm); color: var(--text2); cursor: pointer; white-space: nowrap; min-width: 0; }
.tree-item .ic { width: 16px; height: 16px; color: var(--acc); }
.tree-item .chev { width: 13px; height: 13px; color: var(--dim); transition: transform .2s; }
.tree-item.is-open > .chev { transform: rotate(90deg); }
.tree-item span { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; }
.tree-item small { font-family: var(--f-mono); font-size: 10px; color: var(--dim); }
.tree-item:hover { background: rgba(var(--hl-rgb), .04); color: var(--ice); }
.tree-item.is-on { background: rgba(var(--acc-rgb), .1); color: var(--acc-hi); }
.tree-children { padding-left: 16px; margin-left: 13px; border-left: 1px dashed var(--line2); }
.path { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11px; color: var(--mute); }
.path b { color: var(--ice); font-weight: 500; }
.path .ic { width: 12px; height: 12px; }

/* arquivos */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.file { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: var(--raio); border: 1px solid var(--line); background: rgba(var(--hl-rgb), .02); cursor: pointer; transition: border-color .2s, transform .2s var(--ease), background .2s; min-width: 0; }
.file:hover { border-color: rgba(var(--acc-rgb), .45); transform: translateY(-2px); background: rgba(var(--acc-rgb), .03); }
.thumb { position: relative; height: 92px; border-radius: var(--raio-sm); display: grid; place-items: center; color: rgba(var(--hl-rgb), .8); overflow: hidden; }
.thumb .ic { width: 28px; height: 28px; }
.thumb.pdf { background: linear-gradient(135deg, #3a1418, #20090c); color: var(--bad-tx); }
.thumb.img { background: linear-gradient(135deg, #10283a, #0a1622); color: var(--info-tx); }
.thumb.vid { background: linear-gradient(135deg, #261a3d, #140d22); color: var(--ia-tx); }
.thumb.aud { background: linear-gradient(135deg, #0f2c24, #081812); color: var(--ok-tx); }
.thumb.doc { background: linear-gradient(135deg, #14233d, #0a1222); color: var(--info-tx); }
.thumb.xls { background: linear-gradient(135deg, #0f2c1a, #07160d); color: var(--ok-tx); }
.thumb .ext { position: absolute; left: 6px; bottom: 6px; font-family: var(--f-mono); font-size: 9px; font-weight: 700; letter-spacing: .1em; padding: 2px 5px; border-radius: 3px; background: rgba(var(--sombra-rgb), calc(.45 * var(--sombra-k))); color: #fff; }
.thumb .seal { position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #04140e; }
.thumb .seal .ic { width: 12px; height: 12px; }
.file .fname { font-size: 12px; color: var(--ice); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .fmeta { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10px; color: var(--mute); }
.file .ftype { gap: 6px; min-width: 0; }
.file .ftype .badge { display: block; min-width: 0; max-width: 100%; line-height: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .ftype .source-chip { flex: 0 0 auto; }
.file-list .file-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 120px 90px 90px 40px; gap: 12px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 12.5px; cursor: pointer; }
.file-list .file-row:hover { background: rgba(var(--hl-rgb), .025); }
.file-list .fi-sm { width: 34px; height: 34px; border-radius: var(--raio-sm); display: grid; place-items: center; }
.folder-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--raio); border: 1px solid var(--line); background: rgba(var(--hl-rgb), .02); cursor: pointer; transition: border-color .2s, background .2s; min-width: 0; }
.folder-card .ic { color: var(--acc); width: 20px; height: 20px; }
.folder-card:hover { border-color: rgba(var(--acc-rgb), .45); background: rgba(var(--acc-rgb), .04); }
.folder-card b { display: block; font-size: 12.5px; color: var(--ice); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder-card small { font-size: 11px; color: var(--mute); }

/* ---------- 10. NAVEGAÇÃO -------------------------------------------- */
/* abas: linha (padrão), pílulas e vertical */
.tabs { position: relative; display: flex; align-items: stretch; gap: 2px; border-bottom: 1px solid var(--line2); overflow-x: auto; scrollbar-width: none; min-width: 0; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 0; background: none; color: var(--mute);
  font-family: var(--f-ui); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; flex: 0 0 auto; transition: color .2s; }
.tab .ic { width: 15px; height: 15px; }
.tab:hover { color: var(--ice); }
.tab.is-active { color: var(--acc-hi); }
.tab.is-active .ic { color: var(--acc); }
.tab .tab-count { min-width: 18px; height: 18px; padding: 0 6px; border-radius: 9px; display: inline-grid; place-items: center; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0; background: rgba(var(--hl-rgb), .07); color: var(--text2); }
.tab.is-active .tab-count { background: rgba(var(--acc-rgb), .18); color: var(--acc-hi); }
.tab .tab-count.hot { background: rgba(var(--bad-rgb), .2); color: var(--bad-tx); }
.tabs-ink { position: absolute; bottom: 0; left: 0; height: 2px; width: 0; background: var(--acc); box-shadow: 0 0 12px rgba(var(--acc-rgb), .8); transition: left .35s var(--ease-out), width .35s var(--ease-out); pointer-events: none; }
.tabs.pills { border-bottom: 0; gap: 6px; }
.tabs.pills .tab { height: 32px; padding: 0 12px; border-radius: var(--raio); border: 1px solid var(--line2); background: rgba(var(--hl-rgb), .02); font-size: 10.5px; }
.tabs.pills .tab.is-active { border-color: rgba(var(--acc-rgb), .55); background: rgba(var(--acc-rgb), .1); }
.tabs.pills .tabs-ink { display: none; }
.tabs.compact .tab { padding: 0 11px; height: 40px; font-size: 10.5px; }
.tabs.vert { flex-direction: column; border-bottom: 0; border-right: 1px solid var(--line2); gap: 2px; }
.tabs.vert .tab { height: 38px; justify-content: flex-start; border-radius: var(--raio) 0 0 var(--raio); }
.tabs.vert .tab.is-active { background: rgba(var(--acc-rgb), .08); box-shadow: inset -2px 0 0 var(--acc); }
.tabs.vert .tabs-ink { display: none; }
.tab-panel { display: none; min-width: 0; }
.tab-panel.is-active { display: block; animation: fadeUp .35s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* etapas do processo */
.stepper { display: flex; align-items: flex-start; overflow-x: auto; padding: 4px 0 2px; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.step { position: relative; flex: 1 1 0; min-width: 104px; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0 6px; text-align: center; }
.step::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 20px); right: calc(50% + 20px); height: 2px; border-radius: 2px; background: var(--line2); }
.step:first-child::before { display: none; }
.step.done::before, .step.now::before { background: linear-gradient(90deg, rgba(var(--acc-rgb), .7), var(--acc)); box-shadow: 0 0 8px rgba(var(--acc-rgb), .45); }
.step .sn { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--panel3); border: 1px solid var(--line2); color: var(--mute); font-family: var(--f-mono); font-size: 11px; transition: all .3s; }
.step .sn .ic { width: 15px; height: 15px; }
.step.done .sn { background: rgba(var(--acc-rgb), .14); border-color: rgba(var(--acc-rgb), .6); color: var(--acc); }
.step.now .sn { background: var(--acc); border-color: var(--acc); color: var(--on-acc); box-shadow: 0 0 0 4px rgba(var(--acc-rgb), .14), 0 0 20px rgba(var(--acc-rgb), .6); }
.step.bad .sn { background: rgba(var(--bad-rgb), .15); border-color: var(--bad); color: var(--bad); }
.step .sl { font-family: var(--f-ui); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--mute); }
.step.done .sl { color: var(--text2); } .step.now .sl { color: var(--acc-hi); }
.step .sd { font-size: 10.5px; color: var(--dim); line-height: 1.3; }
.stepper.sm .step .sn { width: 24px; height: 24px; font-size: 10px; }
.stepper.sm .step::before { top: 11px; left: calc(-50% + 16px); right: calc(50% + 16px); }

/* etapas do assistente (janela) */
.wizard-steps { display: flex; align-items: center; gap: 6px; padding: 10px 22px; border-bottom: 1px solid var(--line); background: rgba(var(--fundo-rgb), .3); overflow-x: auto; scrollbar-width: none; flex: 0 0 auto; }
.wizard-steps::-webkit-scrollbar { display: none; }
.wz { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 4px; border-radius: var(--raio); border: 1px solid transparent; background: none; color: var(--mute);
  font-family: var(--f-ui); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; flex: 0 0 auto; transition: all .2s; }
.wz i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--f-mono); font-size: 10px; background: rgba(var(--hl-rgb), .04); border: 1px solid var(--line2); transition: all .25s; }
.wz:hover { color: var(--ice); }
.wz.is-active { color: var(--acc-hi); border-color: rgba(var(--acc-rgb), .4); background: rgba(var(--acc-rgb), .08); }
.wz.is-active i { background: var(--acc); color: var(--on-acc); border-color: var(--acc); box-shadow: 0 0 12px rgba(var(--acc-rgb), .6); }
.wz.is-done { color: var(--text2); }
.wz.is-done i { background: rgba(var(--ok-rgb), .14); color: var(--ok); border-color: rgba(var(--ok-rgb), .45); }
.wz + .wz::before { content: ""; width: 14px; height: 1px; background: var(--line2); margin-right: 4px; }
.wz-panel { display: none; min-width: 0; }
.wz-panel.is-active { display: block; animation: fadeUp .35s var(--ease-out); }

/* menu lateral de seções (configurações, vitrine) */
.side-nav { position: sticky; top: calc(var(--top) + 16px); display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - var(--top) - 32px); overflow-y: auto; padding: 8px; }
.side-nav .sn-group { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); padding: 14px 10px 6px; }
.side-nav .sn-group:first-child { padding-top: 6px; }
.side-nav a, .side-nav button { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 10px; border: 0; border-radius: var(--raio); background: none; color: var(--text2); font-size: 12.5px; text-align: left; transition: background .2s, color .2s; }
.side-nav a .ic, .side-nav button .ic { width: 16px; height: 16px; color: var(--mute); }
.side-nav a:hover, .side-nav button:hover { background: rgba(var(--hl-rgb), .04); color: var(--ice); }
.side-nav a.is-active, .side-nav button.is-active { background: rgba(var(--acc-rgb), .1); color: var(--acc-hi); box-shadow: inset 2px 0 0 var(--acc); }
.side-nav a.is-active .ic, .side-nav button.is-active .ic { color: var(--acc); }
.side-nav .n { margin-left: auto; font-family: var(--f-mono); font-size: 10px; color: var(--dim); }

/* acordeão */
.accordion { display: flex; flex-direction: column; gap: 8px; }
.acc-item { border: 1px solid var(--line); border-radius: var(--raio); background: rgba(var(--hl-rgb), .015); transition: border-color .2s; }
.acc-item.is-open { border-color: rgba(var(--acc-rgb), .35); }
.acc-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border: 0; background: none; color: var(--ice); font-family: var(--f-ui); font-size: 13px; font-weight: 600; text-align: left; }
.acc-head .ic { width: 16px; height: 16px; color: var(--acc); }
.acc-head .chev { margin-left: auto; color: var(--mute); transition: transform .3s var(--ease); }
.acc-item.is-open .acc-head .chev { transform: rotate(180deg); color: var(--acc); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.acc-item.is-open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }
.acc-body > div > .acc-in { padding: 0 14px 14px; font-size: 13px; color: var(--text2); }

/* esteira da IA */
.pipeline { display: flex; align-items: center; overflow-x: auto; padding: 14px 16px; border-radius: var(--raio); border: 1px solid var(--line); background: rgba(var(--fundo-rgb), .45); scrollbar-width: none; }
.pipeline::-webkit-scrollbar { display: none; }
.pl-step { position: relative; display: flex; align-items: center; gap: 10px; flex: 1 1 0; min-width: 150px; padding-right: 18px; }
.pl-step + .pl-step::before { content: ""; position: absolute; left: -18px; top: 50%; width: 14px; height: 1px; background: var(--line3); }
.pl-ic { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line2); background: var(--panel3); color: var(--mute); transition: all .3s; }
.pl-ic .ic { width: 16px; height: 16px; }
.pl-t { font-family: var(--f-ui); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); }
.pl-s { font-size: 11px; color: var(--mute); margin-top: 1px; }
.pl-step.done .pl-ic { color: var(--ok); border-color: rgba(var(--ok-rgb), .5); background: rgba(var(--ok-rgb), .08); }
.pl-step.run .pl-ic { color: var(--ia-tx); border-color: rgba(var(--ia-rgb), .8); background: rgba(var(--ia-rgb), .12); animation: glowIa 1.4s ease-in-out infinite; }
.pl-step.run .pl-t { color: var(--ia-tx); }
.pl-step.wait .pl-ic { opacity: .55; }
@keyframes glowIa { 50% { box-shadow: 0 0 0 5px rgba(var(--ia-rgb), .1), 0 0 20px rgba(var(--ia-rgb), .5); } }

/* ---------- 11. JANELAS ---------------------------------------------- */
/* Janela (modal): fecha SOMENTE no X ou em botão com data-close.
   Clique fora ou Esc faz a janela "respirar" (nudge) e continuar aberta. */
.modal-bg { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 20px;
  background: rgba(var(--veu-rgb), .86); animation: fade .2s ease-out; overscroll-behavior: contain; }
.modal-bg[hidden] { display: none !important; }
.modal-bg + .modal-bg { background: rgba(var(--veu-rgb), .62); }
.modal-bg.sai { animation: fadeOut .18s forwards; }
.modal-bg.sai > .modal { animation: desce .18s forwards; }
.modal { width: min(720px, 100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; box-shadow: var(--sh-modal); overflow: hidden; animation: sobe .3s var(--ease-back); }
.modal-bg > .modal { transform-origin: center; }
.modal:not(.modal-bg > .modal) { display: none; }
.modal[data-size="sm"], .modal.sm { width: min(480px, 100%); }
.modal[data-size="md"], .modal.md { width: min(720px, 100%); }
.modal[data-size="lg"], .modal.lg { width: min(1040px, 100%); }
.modal[data-size="xl"], .modal.xl { width: min(1280px, 100%); }
.modal[data-size="full"], .modal.full { width: calc(100vw - 40px); height: calc(100dvh - 40px); }
.modal.ficha { width: min(1320px, 100%); height: min(900px, calc(100dvh - 40px)); }
.modal.tall { height: min(860px, calc(100dvh - 40px)); }
@keyframes sobe { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes desce { to { opacity: 0; transform: translateY(12px) scale(.985); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }

.modal-head { display: flex; align-items: center; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--line); flex: 0 0 auto; min-width: 0; }
.modal-ic { width: 38px; height: 38px; flex: 0 0 38px; border-radius: var(--raio); display: grid; place-items: center; background: rgba(var(--acc-rgb), .08); border: 1px solid rgba(var(--acc-rgb), .28); color: var(--acc); }
.modal-ic .ic { width: 18px; height: 18px; }
.modal-ic.ia { background: rgba(var(--ia-rgb), .1); border-color: rgba(var(--ia-rgb), .35); color: var(--ia-tx); }
.modal-ic.bad { background: rgba(var(--bad-rgb), .1); border-color: rgba(var(--bad-rgb), .35); color: var(--bad); }
.modal-title { flex: 1 1 auto; min-width: 0; }
.modal-title h3 { font-family: var(--f-ui); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-title .overline + h3 { margin-top: 5px; }
.modal-title p { font-size: 12px; color: var(--mute); margin-top: 4px; line-height: 1.45; }
.modal-tools { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.modal-tabs { padding: 0 20px; border-bottom: 1px solid var(--line); flex: 0 0 auto; min-width: 0; background: rgba(var(--fundo-rgb), .22); }
.modal-tabs .tabs { border-bottom: 0; }
.modal-body { padding: 20px; overflow-y: auto; flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; }
.modal-body.p-0 { padding: 0; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 13px 20px; border-top: 1px solid var(--line); background: rgba(var(--fundo-rgb), .42); flex: 0 0 auto; }
.modal-foot .left { margin-right: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--mute); }
.modal-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); min-height: 100%; }
.modal-split > .ms-main { padding: 20px; min-width: 0; }
.modal-split > .ms-side { padding: 20px; border-left: 1px solid var(--line); background: rgba(var(--fundo-rgb), .3); min-width: 0; }
.confirm-ic { width: 54px; height: 54px; margin: 4px auto 14px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--bad-rgb), .1); border: 1px solid rgba(var(--bad-rgb), .35); color: var(--bad); box-shadow: 0 0 30px rgba(var(--bad-rgb), .2); }
.confirm-ic.acc { background: rgba(var(--acc-rgb), .1); border-color: rgba(var(--acc-rgb), .35); color: var(--acc); box-shadow: 0 0 30px rgba(var(--acc-rgb), .2); }
.confirm-ic .ic { width: 24px; height: 24px; }

/* menus suspensos (abrem por cima de tudo, nunca são cortados) */
.menu { position: fixed; z-index: var(--z-pop); min-width: 220px; max-width: min(380px, calc(100vw - 16px)); max-height: min(520px, calc(100vh - 24px)); overflow-y: auto; padding: 6px; display: none; box-shadow: var(--sh-pop); }
.menu.is-open { display: block; animation: popIn .16s var(--ease-out); }
.menu.wide { width: 380px; }
.menu a, .menu .mi { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 6px 10px; border: 0; border-radius: var(--raio-sm); background: none; color: var(--text2); font-size: 13px; text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.menu a .ic, .menu .mi .ic { width: 16px; height: 16px; color: var(--mute); }
.menu a:hover, .menu .mi:hover { background: rgba(var(--acc-rgb), .09); color: var(--ice); }
.menu a:hover .ic, .menu .mi:hover .ic { color: var(--acc); }
.menu .mi.danger, .menu a.danger { color: var(--bad-tx); }
.menu .mi.danger .ic, .menu a.danger .ic { color: var(--bad); }
.menu .mi kbd, .menu a kbd { margin-left: auto; }
.menu-title { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); padding: 8px 10px 5px; }
.menu .sep { height: 1px; background: var(--line); margin: 6px 0; }
.menu .notif { align-items: flex-start; padding: 10px; }
.menu .notif .n-ic { width: 32px; height: 32px; flex: 0 0 32px; border-radius: var(--raio); display: grid; place-items: center; }
.menu .notif .n-ic .ic { width: 16px; height: 16px; color: inherit; }
.menu .notif strong { display: block; font-size: 12.5px; color: var(--ice); font-weight: 600; }
.menu .notif small { display: block; font-size: 11.5px; color: var(--mute); margin-top: 2px; }
.menu .notif.unread { background: rgba(var(--acc-rgb), .04); box-shadow: inset 2px 0 0 var(--acc); }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

/* painel flutuante (filtros, opções) */
.pop { position: fixed; z-index: var(--z-pop); width: 320px; max-width: calc(100vw - 16px); max-height: min(560px, calc(100vh - 24px)); overflow-y: auto; padding: 14px; display: none; box-shadow: var(--sh-pop); }
.pop.is-open { display: block; animation: popIn .16s var(--ease-out); }
.pop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pop-head b { font-family: var(--f-ui); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.pop-sec { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin: 14px 0 8px; }

/* dica (tooltip) */
.tip { position: fixed; z-index: var(--z-tip); max-width: 280px; padding: 6px 9px; border-radius: var(--raio-sm); background: var(--tip-bg); border: 1px solid var(--line2); color: var(--tip-tx); font-size: 11.5px; line-height: 1.4; box-shadow: 0 10px 30px rgba(var(--sombra-rgb), calc(.5 * var(--sombra-k))); pointer-events: none; opacity: 0; transform: translateY(3px); transition: opacity .15s, transform .15s; }
.tip.is-on { opacity: 1; transform: none; }

/* avisos rápidos (toasts) */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: 10px; width: min(390px, calc(100vw - 32px)); pointer-events: none; }
.toast { --c: var(--acc); --c-rgb: var(--acc-rgb); position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px 14px; border-radius: var(--raio); pointer-events: auto;
  border: 1px solid rgba(var(--c-rgb), .38); background: rgba(var(--sup-rgb), .98); box-shadow: var(--sh-pop), 0 0 24px rgba(var(--c-rgb), .12); overflow: hidden; animation: toastIn .45s var(--ease-back); }
.toast .t-ic { width: 30px; height: 30px; flex: 0 0 30px; border-radius: var(--raio); display: grid; place-items: center; color: var(--c); background: rgba(var(--c-rgb), .12); border: 1px solid rgba(var(--c-rgb), .3); }
.toast .t-ic .ic { width: 16px; height: 16px; }
.toast strong { display: block; font-size: 13px; color: var(--ice); }
.toast span { display: block; font-size: 12px; color: var(--text2); margin-top: 2px; }
.toast .t-x { margin-left: auto; width: 24px; height: 24px; border: 0; background: none; color: var(--mute); border-radius: 4px; display: grid; place-items: center; flex: 0 0 24px; }
.toast .t-x:hover { color: var(--forte); background: rgba(var(--hl-rgb), .06); }
.toast .t-x .ic { width: 13px; height: 13px; }
.toast .t-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--c); transform-origin: left; animation: tbar linear forwards; opacity: .8; }
.toast.ok { --c: var(--ok); --c-rgb: var(--ok-rgb); }
.toast.bad { --c: var(--bad); --c-rgb: var(--bad-rgb); }
.toast.warn { --c: var(--warn); --c-rgb: var(--warn-rgb); }
.toast.info { --c: var(--info); --c-rgb: var(--info-rgb); }
.toast.ia { --c: var(--ia); --c-rgb: var(--ia-rgb); }
.toast.out { animation: toastOut .35s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }
@keyframes tbar { to { transform: scaleX(0); } }

/* busca global (paleta) */
.palette-bg { position: fixed; inset: 0; z-index: calc(var(--z-palette) - 1); background: rgba(var(--veu-rgb), .8); display: none; }
.palette-bg.is-open { display: block; animation: fade .15s; }
.palette { position: fixed; left: 50%; top: 11vh; z-index: var(--z-palette); width: min(700px, calc(100vw - 24px)); transform: translateX(-50%); display: none; box-shadow: var(--sh-modal); overflow: hidden; }
.palette.is-open { display: block; animation: palIn .2s var(--ease-out); }
@keyframes palIn { from { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(.98); } }
.palette-input { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.palette-input .ic { width: 20px; height: 20px; color: var(--acc); }
.palette-input input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--ice); font-size: 16px; }
.palette-list { max-height: min(52vh, 480px); overflow-y: auto; padding: 8px; }
.palette-group { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); padding: 10px 10px 4px; }
.palette-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--raio-sm); color: var(--text2); min-width: 0; cursor: pointer; }
.palette-item .ic { width: 16px; height: 16px; color: var(--mute); }
.palette-item > span { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ice); font-size: 13px; }
.palette-item small { margin-left: auto; padding-left: 12px; font-size: 11.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.palette-item.is-sel { background: rgba(var(--acc-rgb), .1); box-shadow: inset 2px 0 0 var(--acc); }
.palette-item.is-sel .ic { color: var(--acc); }
.palette-foot { display: flex; gap: 14px; flex-wrap: wrap; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 11px; color: var(--mute); background: rgba(var(--fundo-rgb), .35); }

/* assistente de IA (janela flutuante, não bloqueia a tela) */
.ia-win { position: fixed; right: 20px; bottom: 20px; z-index: calc(var(--z-modal) - 5); width: min(420px, calc(100vw - 24px)); height: min(640px, calc(100vh - 96px)); display: none; flex-direction: column; overflow: hidden;
  border-radius: calc(var(--raio) + 6px); border: 1px solid transparent;
  background: linear-gradient(var(--panel2), var(--panel)) padding-box, conic-gradient(from var(--ang), rgba(var(--info-rgb), .85), rgba(var(--ia-rgb), .9), rgba(var(--ok-rgb), .7), rgba(var(--info-rgb), .85)) border-box;
  animation: giro 6s linear infinite; box-shadow: 0 30px 80px rgba(var(--sombra-rgb), calc(.6 * var(--sombra-k))), 0 0 40px rgba(var(--ia-rgb), .14); }
.ia-win.is-open { display: flex; }
.ia-win.is-open .ia-win-in { animation: sobe .3s var(--ease-back); }
.ia-win-in { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.ia-win-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ia-win-body { flex: 1 1 auto; overflow-y: auto; padding: 14px 16px; min-height: 0; }
.ia-win-foot { padding: 12px; border-top: 1px solid var(--line); background: rgba(var(--fundo-rgb), .4); }

/* ---------- 12. FEEDBACK --------------------------------------------- */
.note { --c: var(--acc); --c-rgb: var(--acc-rgb); display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: var(--raio);
  border: 1px solid rgba(var(--c-rgb), .3); background: linear-gradient(90deg, rgba(var(--c-rgb), .09), rgba(var(--c-rgb), .03)); color: var(--text2); font-size: 12.5px; line-height: 1.5; min-width: 0; }
.note > .ic { width: 16px; height: 16px; color: var(--c); margin-top: 1px; flex: 0 0 16px; }
.note b, .note strong { color: var(--ice); }
.note.ok { --c: var(--ok); --c-rgb: var(--ok-rgb); }
.note.warn { --c: var(--warn); --c-rgb: var(--warn-rgb); }
.note.bad { --c: var(--bad); --c-rgb: var(--bad-rgb); }
.note.info { --c: var(--info); --c-rgb: var(--info-rgb); }
.note.ia { --c: var(--ia); --c-rgb: var(--ia-rgb); }
.note.muted { --c: var(--mute); --c-rgb: 138, 144, 166; }
.note .note-act { margin-left: auto; flex: 0 0 auto; }
.note.bar { border-left-width: 3px; }
.banner { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--raio); overflow: hidden;
  border: 1px solid rgba(var(--acc-rgb), .35); background: linear-gradient(100deg, rgba(var(--acc-rgb), .14), rgba(var(--acc-rgb), .03) 60%, transparent); }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(var(--acc-hi-rgb), .08) 50%, transparent 60%); transform: translateX(-100%); animation: varre 5s var(--ease) infinite; pointer-events: none; }
@keyframes varre { 60%, 100% { transform: translateX(100%); } }
.principle { display: flex; align-items: center; gap: 0; flex-wrap: wrap; border-radius: var(--raio); border: 1px solid var(--line2); background: rgba(var(--fundo-rgb), .45); overflow: hidden; }
.principle > div { flex: 1 1 200px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 12.5px; color: var(--text2); }
.principle > div + div { border-left: 1px solid var(--line); }
.principle > div .ic { width: 18px; height: 18px; color: var(--acc); }
.principle > div.ia .ic { color: var(--ia); }
.principle > div.ok .ic { color: var(--ok); }
.principle b { color: var(--ice); }

/* estado vazio */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 38px 20px; }
.empty .e-ic { width: 54px; height: 54px; margin-bottom: 8px; border-radius: 50%; display: grid; place-items: center; color: var(--acc); background: radial-gradient(circle, rgba(var(--acc-rgb), .14), rgba(var(--acc-rgb), .03)); border: 1px solid rgba(var(--acc-rgb), .28); box-shadow: 0 0 30px rgba(var(--acc-rgb), .12); }
.empty .e-ic .ic { width: 22px; height: 22px; }
.empty h4 { font-family: var(--f-ui); font-size: 14px; }
.empty p { font-size: 12.5px; color: var(--mute); max-width: 420px; }
.empty .btn { margin-top: 12px; }
.empty.sm { padding: 18px 12px; }
.empty.sm .e-ic { width: 40px; height: 40px; }

/* esqueleto de carregamento */
.sk { position: relative; overflow: hidden; border-radius: var(--raio-sm); background: var(--sk-bg); }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(var(--hl-rgb), .05), transparent); animation: sk 1.4s infinite; }
@keyframes sk { to { transform: translateX(100%); } }
.sk.line { height: 11px; margin: 6px 0; } .sk.line.w60 { width: 60%; } .sk.line.w40 { width: 40%; } .sk.line.w80 { width: 80%; }
.sk.block { height: 90px; } .sk.circle { width: 40px; height: 40px; border-radius: 50%; }

/* carregando */
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(var(--hl-rgb), .1); border-top-color: var(--acc); animation: spin .7s linear infinite; display: inline-block; }
.spinner.sm { width: 14px; height: 14px; border-width: 2px; }
.spinner.lg { width: 36px; height: 36px; border-width: 3px; }
.thinking { display: inline-flex; gap: 4px; align-items: center; }
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--ia); animation: think 1.2s ease-in-out infinite; }
.thinking i:nth-child(2) { animation-delay: .15s; } .thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes think { 0%, 80%, 100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.loader-neural { position: relative; width: 64px; height: 64px; }
.loader-neural i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(var(--acc-rgb), .5); animation: ping 1.8s var(--ease-out) infinite; }
.loader-neural i:nth-child(2) { animation-delay: .6s; } .loader-neural i:nth-child(3) { animation-delay: 1.2s; }
.loader-neural b { position: absolute; inset: 24px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 20px var(--acc); }

/* ---------- 13. GRÁFICOS, IA E EFEITOS ------------------------------- */
.chart { position: relative; width: 100%; min-width: 0; }
.chart svg { overflow: visible; max-width: none; }
.grid-line { stroke: rgba(var(--linha-rgb), .06); stroke-width: 1; }
.axis-lbl { fill: var(--mute); font-family: var(--f-mono); font-size: 10px; }
.line { fill: none; stroke: var(--acc); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(var(--acc-rgb), .5)); }
.line-2 { fill: none; stroke: var(--ia); stroke-width: 1.6; stroke-linecap: round; opacity: .9; }
.draw { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); animation: draw 1.6s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.area-fill { opacity: 0; animation: fadeIn .9s .35s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.dotp { fill: var(--acc-hi); stroke: var(--void); stroke-width: 2; transition: r .2s; }
.cursor-line { stroke: rgba(var(--acc-rgb), .45); stroke-dasharray: 3 3; opacity: 0; transition: opacity .15s; }
.bar { transform-origin: bottom; transform-box: fill-box; animation: growY .9s var(--ease-out) both; transition: opacity .2s; cursor: pointer; }
.bar:hover { opacity: .8; }
@keyframes growY { from { transform: scaleY(0); } }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, -100%); padding: 7px 10px; border-radius: var(--raio-sm); background: var(--tip-bg); border: 1px solid var(--line2); font-size: 11.5px; color: var(--tip-tx); box-shadow: 0 10px 30px rgba(var(--sombra-rgb), calc(.5 * var(--sombra-k))); white-space: nowrap; opacity: 0; transition: opacity .15s; }
.donut-num { fill: var(--ice); font-family: var(--f-display); font-size: 30px; font-weight: 700; }
.donut-lbl { fill: var(--mute); font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; }
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut-wrap .legend { flex-direction: column; gap: 8px; flex: 1 1 160px; }
.seg { cursor: pointer; transition: opacity .2s; }
.seg:hover { opacity: .8; }
.ring { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; }
.ring svg { transform: rotate(-90deg); }
.ring-bg { stroke: var(--trilho); }
.ring-fg { stroke: var(--acc); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease-out); filter: drop-shadow(0 0 5px rgba(var(--acc-rgb), .6)); }
.ring-lbl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--f-ui); font-size: 17px; font-weight: 600; }
.ring-lbl small { display: block; font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); font-weight: 400; margin-top: 2px; }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(110px, 32%) minmax(0, 1fr) 54px; align-items: center; gap: 12px; font-size: 12.5px; color: var(--text2); }
.hbar .lbl { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hbar .val { text-align: right; font-family: var(--f-mono); font-size: 12px; color: var(--ice); }
.hbar .progress { height: 8px; }
.hbar.bad .lbl { color: var(--bad-tx); }
.stk { display: flex; height: 16px; border-radius: 4px; overflow: hidden; background: var(--trilho); }
.stk > i { display: block; height: 100%; transition: width 1s var(--ease-out); }
.funnel { display: flex; flex-direction: column; gap: 6px; }
.fun-step { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 34px; padding: 0 12px; margin: 0 auto; border-radius: var(--raio-sm); font-size: 12px; color: var(--ice); background: linear-gradient(90deg, rgba(var(--c-rgb, var(--acc-rgb)), .32), rgba(var(--c-rgb, var(--acc-rgb)), .08)); border: 1px solid rgba(var(--c-rgb, var(--acc-rgb)), .3); transition: width 1s var(--ease-out); min-width: 180px; }
.fun-step b { font-family: var(--f-mono); }
.heat { display: grid; gap: 3px; }
.heat i { aspect-ratio: 1; border-radius: 2px; background: rgba(var(--acc-rgb), var(--a, .08)); }
.spark { width: 100%; height: 36px; }

/* elementos de IA */
.ia-orb { position: relative; width: 56px; height: 56px; flex: 0 0 56px; }
.ia-orb .core { position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #c9b6ff 30%, #6fa8ff 60%, #2a3a8a); box-shadow: 0 0 22px rgba(var(--ia-rgb), .8), 0 0 44px rgba(var(--info-rgb), .35); animation: orbPulse 2.4s ease-in-out infinite; }
.ia-orb .orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(var(--ia-rgb), .45); border-top-color: transparent; border-bottom-color: transparent; animation: spin 3.2s linear infinite; }
.ia-orb .orbit.o2 { inset: 10%; border-color: rgba(var(--info-rgb), .5); border-left-color: transparent; border-right-color: transparent; animation-duration: 2.2s; animation-direction: reverse; }
.ia-orb .orbit.o3 { inset: -8%; border-color: rgba(var(--ok-rgb), .25); border-top-color: transparent; animation-duration: 5s; }
.ia-orb.sm { width: 34px; height: 34px; flex-basis: 34px; }
.ia-orb.lg { width: 96px; height: 96px; flex-basis: 96px; }
@keyframes orbPulse { 50% { transform: scale(1.1); box-shadow: 0 0 30px rgba(var(--ia-rgb), 1), 0 0 60px rgba(var(--info-rgb), .45); } }
.ia-card { position: relative; padding: 14px; border-radius: var(--raio); border: 1px solid transparent; background: linear-gradient(180deg, var(--panel4), var(--panel3)) padding-box, linear-gradient(120deg, rgba(var(--info-rgb), .7), rgba(var(--ia-rgb), .8), rgba(var(--ok-rgb), .5)) border-box; }
.ia-head { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ia-tx); }
.ia-head .ic { width: 15px; height: 15px; color: var(--ia); }
.ia-par { border-left: 2px solid rgba(var(--ia-rgb), .6); background: rgba(var(--ia-rgb), .05); padding: 4px 0 4px 10px; }
.conf { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 10.5px; color: var(--text2); white-space: nowrap; }
.conf i { position: relative; width: 40px; height: 4px; border-radius: 3px; background: var(--trilho); overflow: hidden; }
.conf i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v, 50%); border-radius: inherit; background: var(--ok); }
.conf.low i::after { background: var(--warn); }
.caret::after { content: "▍"; margin-left: 2px; color: var(--acc); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scan { position: relative; overflow: hidden; }
.scan::after { content: ""; position: absolute; left: 0; right: 0; height: 40%; top: -40%; background: linear-gradient(180deg, transparent, rgba(var(--ia-rgb), .16), transparent); animation: scanY 2.2s var(--ease) infinite; pointer-events: none; }
@keyframes scanY { to { top: 100%; } }

/* efeitos */
.neural-box { position: relative; overflow: hidden; isolation: isolate; }
.neural-box > canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .8; }
.hud { position: relative; }
.hud::before, .hud::after { content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none; border-color: var(--acc); border-style: solid; opacity: .8; }
.hud::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.hud::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.glow { box-shadow: 0 0 34px rgba(var(--acc-rgb), .16); }
.bg-grid { background-image: linear-gradient(rgba(var(--acc-rgb), .045) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--acc-rgb), .045) 1px, transparent 1px); background-size: 28px 28px; }
.shine { position: relative; overflow: hidden; }
.shine::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(var(--acc-hi-rgb), .12), transparent); animation: shine 4.5s var(--ease) infinite; pointer-events: none; }
@keyframes shine { 55%, 100% { left: 130%; } }

/* ---------- 14. TELAS ------------------------------------------------ */
/* aparência (Minha conta e Configurações) */
.ap-intro { font-size: 13px; color: var(--mute); margin-bottom: 18px; line-height: 1.6; max-width: 900px; }
.ap-intro b { color: var(--ice); }
.ap-models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; }
.ap-model { display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; background: none; text-align: left; color: inherit; cursor: pointer; min-width: 0; }
.ap-prev { display: block; min-height: 94px; padding: 14px; transition: transform .25s var(--ease), filter .25s; }
.ap-prev b { display: block; font-family: var(--f-ui); font-size: 14px; font-weight: 600; color: var(--ice); }
.ap-prev small { display: block; font-size: 11.5px; color: var(--mute); margin-top: 6px; line-height: 1.45; }
.ap-model:hover .ap-prev { transform: translateY(-2px); }
.ap-model.is-on .ap-prev { filter: drop-shadow(0 0 12px rgba(var(--acc-rgb), .3)); }
.ap-cap { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11.5px; color: var(--text2); }
.ap-cap i { width: 24px; height: 24px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 600; color: var(--ice); border: 1px solid var(--line3); border-radius: var(--raio-sm); transition: all .2s; }
.ap-model.is-on .ap-cap { color: var(--ice); }
.ap-model.is-on .ap-cap i { background: var(--acc); border-color: var(--acc); color: var(--on-acc); box-shadow: 0 0 12px rgba(var(--acc-rgb), .6); }
.ap-bar { margin-top: 20px; padding: 16px 18px; border-radius: var(--raio); border: 1px solid rgba(var(--acc-rgb), .32); background: linear-gradient(90deg, rgba(var(--acc-rgb), .08), rgba(var(--acc-rgb), .02)); }
.ap-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ap-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.ap-sum b { font-family: var(--f-ui); font-size: 14px; font-weight: 600; }
.ap-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin-top: 22px; }
.ap-note { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 12.5px; color: var(--mute); flex-wrap: wrap; }
.ap-note .ic { width: 16px; height: 16px; color: var(--acc); }
.ap-note span { flex: 1 1 280px; }

/* vitrine de componentes (documentação) */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; align-items: start; }
.docs-nav { padding: 6px; }
.doc-sec { scroll-margin-top: calc(var(--top) + 20px); margin-bottom: 44px; }
.doc-sec > h2 { font-family: var(--f-display); font-size: 28px; font-weight: 600; letter-spacing: 0; margin-top: 6px; }
.doc-sec > p { color: var(--text2); margin: 6px 0 18px; max-width: 880px; }
.doc-sub { font-family: var(--f-ui); font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; margin: 22px 0 10px; color: var(--ice); display: flex; align-items: center; gap: 10px; }
.doc-sub::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }
.demo { border: 1px solid var(--line); border-radius: var(--raio); background: rgba(var(--fundo-rgb), .35); overflow: hidden; margin-bottom: 14px; min-width: 0; }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); background: rgba(var(--fundo-rgb), .3); }
.demo-stage { padding: 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; min-width: 0; background-image: radial-gradient(rgba(var(--acc-rgb), .07) 1px, transparent 1px); background-size: 18px 18px; }
.demo-stage.col { flex-direction: column; align-items: stretch; }
.demo-stage.block { display: block; }
.demo-code { position: relative; border-top: 1px solid var(--line); background: var(--code-bg); }
.demo-code pre { margin: 0; padding: 14px 54px 14px 16px; max-height: 260px; overflow: auto; font-family: var(--f-mono); font-size: 11.5px; line-height: 1.65; color: var(--code-tx); white-space: pre-wrap; word-break: break-word; }
.demo-code .copy { position: absolute; top: 8px; right: 8px; }
.tk-tag { color: var(--info-tx); } .tk-attr { color: var(--acc-hi); } .tk-str { color: var(--ok-tx); } .tk-com { color: var(--dim); font-style: italic; }
.tok { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tok i { display: block; height: 58px; border-radius: var(--raio); border: 1px solid var(--line2); }
.tok b { font-family: var(--f-mono); font-size: 11px; color: var(--ice); font-weight: 500; }
.tok small { font-family: var(--f-mono); font-size: 10px; color: var(--mute); }
.type-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.type-row:last-child { border-bottom: 0; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.icon-cell { appearance: none; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border-radius: var(--raio-sm); border: 1px solid transparent; font-family: var(--f-mono); font-size: 9.5px; color: var(--mute); cursor: pointer; text-align: center; word-break: break-all; }
.icon-cell .ic { width: 20px; height: 20px; color: var(--ice); }
.icon-cell:hover { border-color: rgba(var(--acc-rgb), .4); color: var(--acc-hi); background: rgba(var(--acc-rgb), .05); }
.bm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bm-grid .bx { min-height: 110px; padding: 16px; }

/* ---------- 14b. FICHAS, ASSISTENTES E PEÇAS ------------------------- */
.gap-10 { gap: 10px; }
.field .segmented { align-self: flex-start; }
.chart .hit { fill: transparent; cursor: crosshair; }

/* cabeçalho de ficha (processo, cliente, intimação...) */
.fh { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1 1 auto; padding: 2px 0; }
.fh-ic { position: relative; width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; border-radius: calc(var(--raio) + 4px); color: var(--c, var(--acc)); border: 1px solid rgba(var(--c-rgb, var(--acc-rgb)), .4); background: radial-gradient(120% 120% at 28% 18%, rgba(var(--c-rgb, var(--acc-rgb)), .24), rgba(var(--c-rgb, var(--acc-rgb)), .04) 72%); box-shadow: 0 0 28px rgba(var(--c-rgb, var(--acc-rgb)), .16), inset 0 1px 0 rgba(var(--brilho-rgb), .07); }
.fh-ic::after { content: ""; position: absolute; inset: 5px; border-radius: inherit; border: 1px dashed rgba(var(--c-rgb, var(--acc-rgb)), .22); pointer-events: none; }
.fh-ic .ic { width: 24px; height: 24px; }
.fh-ic.info { --c: var(--info); --c-rgb: var(--info-rgb); }
.fh-ic.ia { --c: var(--ia-tx); --c-rgb: var(--ia-rgb); }
.fh-ic.ok { --c: var(--ok); --c-rgb: var(--ok-rgb); }
.fh-ic.warn { --c: var(--warn); --c-rgb: var(--warn-rgb); }
.fh-ic.bad { --c: var(--bad); --c-rgb: var(--bad-rgb); }
.fh > .avatar { flex: 0 0 auto; }
.fh-main { min-width: 0; flex: 1 1 auto; }
/* título das fichas no mesmo padrão das outras janelas (fonte do sistema, caixa alta, espaçada) */
.fh-title { font-family: var(--f-ui); font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--ice); margin-top: 6px; letter-spacing: .07em; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fh-link { color: inherit; border-bottom: 1px solid rgba(var(--acc-rgb), .35); transition: color .15s, border-color .15s; }
.fh-link:hover { color: var(--acc-hi); border-bottom-color: var(--acc); }
.fh-title .vs { font-family: var(--f-ui); font-size: .8em; font-weight: 400; color: var(--dim); margin: 0 .35em; vertical-align: .05em; }
.fh-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 7px; font-size: 12px; color: var(--mute); }
.fh-meta > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.fh-meta .ic { width: 13px; height: 13px; color: var(--dim); }
.fh-meta b { color: var(--text2); font-weight: 500; }
.fh .row-wrap .badge, .fh .row-wrap .tese, .fh .row-wrap .etapa { height: 22px; }

/* faixa de atalhos da ficha (contadores que levam às abas) */
.ficha-top { margin-bottom: 18px; }
.fstrip { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
.fs-item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 1px; align-items: center; min-width: 0; padding: 10px 12px; border-radius: var(--raio); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(var(--hl-rgb), .03), rgba(var(--hl-rgb), .006)); color: var(--text2); text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.fs-item .ic { grid-row: 1 / span 2; width: 18px; height: 18px; color: var(--dim); transition: color .2s; }
.fs-item b { font-family: var(--f-ui); font-size: 18px; font-weight: 600; color: var(--ice); line-height: 1.1; }
.fs-item span { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-item:hover { border-color: rgba(var(--acc-rgb), .42); background: rgba(var(--acc-rgb), .05); transform: translateY(-1px); }
.fs-item:hover .ic { color: var(--acc); }
.fs-item.hot { border-color: rgba(var(--warn-rgb), .36); }
.fs-item.hot .ic { color: var(--warn); }
.fs-item.hot::after { content: ""; position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 3px rgba(var(--warn-rgb), .14), 0 0 10px var(--warn); animation: pulse 2s ease-in-out infinite; }

/* etapa do processo: o que falta para avançar */
.gate-box { padding: 16px 18px; border-radius: var(--raio); border: 1px solid rgba(var(--acc-rgb), .22); background: linear-gradient(135deg, rgba(var(--acc-rgb), .075), rgba(var(--acc-rgb), .012) 62%); }
.gate-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.gate { display: grid; grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 1px; align-items: center; min-width: 0; padding: 8px 10px; border-radius: var(--raio-sm); border: 1px solid var(--line); background: rgba(var(--fundo-rgb), .42); color: var(--text2); font-size: 12.5px; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.gate:hover { border-color: var(--line3); background: rgba(var(--hl-rgb), .03); color: var(--ice); }
.gate .gi { grid-row: 1 / span 2; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line2); color: var(--dim); }
.gate .gi .ic { width: 12px; height: 12px; }
.gate .gt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.gate .gs { min-width: 0; font-family: var(--f-mono); font-size: 10px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gate.ok .gi { color: var(--ok); border-color: rgba(var(--ok-rgb), .45); background: rgba(var(--ok-rgb), .1); }
.gate.ok .gs { color: var(--ok); }
.gate.pend { border-color: rgba(var(--warn-rgb), .3); }
.gate.pend .gi { color: var(--warn); border-color: rgba(var(--warn-rgb), .45); background: rgba(var(--warn-rgb), .1); }
.gate.pend .gs { color: var(--warn-tx); }

/* linha de processo clicável (dentro de fichas e listas) */
.proc-row { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--raio); border: 1px solid var(--line); background: rgba(var(--hl-rgb), .018); cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); min-width: 0; }
.proc-row:hover { border-color: rgba(var(--acc-rgb), .4); background: rgba(var(--acc-rgb), .04); transform: translateX(2px); }
.proc-row .pr-l { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.proc-row .pr-l b { color: var(--ice); font-size: 12.5px; }
.proc-row .pr-m { min-width: 0; }
.proc-row .pr-r { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* arquivos (Dropbox) dentro das fichas */
.files-pane { display: grid; grid-template-columns: 300px minmax(0, 1fr); border-radius: var(--raio); border: 1px solid var(--line); overflow: hidden; min-height: 420px; background: rgba(var(--fundo-rgb), .25); }
.files-pane .fp-side { padding: 14px; border-right: 1px solid var(--line); background: rgba(var(--fundo-rgb), .38); min-width: 0; }
.files-pane .fp-main { padding: 14px 16px; min-width: 0; }
.files-pane .fp-cur { color: var(--ice); }
.file .ftype { margin-top: 2px; gap: 6px; }
.thumb .thumb-seal { position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #04140e; box-shadow: 0 0 10px rgba(var(--ok-rgb), .5); }
.thumb .thumb-seal .ic { width: 12px; height: 12px; }

/* visualizador de arquivo */
.ms-main:has(> .viewer) { padding: 0; }
.viewer { position: relative; display: grid; place-items: center; min-height: 480px; height: 100%; padding: 32px 24px; background: radial-gradient(80% 60% at 50% 0%, rgba(var(--acc-rgb), .07), transparent 70%), repeating-linear-gradient(45deg, rgba(var(--hl-rgb), .012) 0 12px, transparent 12px 24px), #07080e; }
.ic.viewer-ic { width: 72px; height: 72px; color: var(--mute); opacity: .75; filter: drop-shadow(0 0 20px rgba(var(--acc-rgb), .25)); }
.doc-page { width: min(430px, 100%); aspect-ratio: 1 / 1.414; padding: 44px 40px; display: flex; flex-direction: column; gap: 11px; background: #f3f0e8; border-radius: 3px; box-shadow: 0 30px 60px rgba(var(--sombra-rgb), calc(.55 * var(--sombra-k))), 0 0 0 1px rgba(var(--hl-rgb), .06); }
.doc-page .dp-l { height: 7px; width: 100%; border-radius: 4px; background: rgba(var(--fundo-rgb), .16); }
.doc-page .dp-l.w80 { width: 80%; } .doc-page .dp-l.w60 { width: 60%; } .doc-page .dp-l.w40 { width: 40%; }
.doc-page .dp-l:first-child { height: 11px; width: 52%; margin: 0 auto 12px; background: rgba(var(--fundo-rgb), .34); }

/* abusividade: média do BACEN x taxa contratada */
.abuso { padding: 12px 14px; border-radius: var(--raio); border: 1px solid var(--line); background: rgba(var(--fundo-rgb), .42); }
.abuso-track { position: relative; height: 10px; border-radius: 999px; overflow: hidden; background: linear-gradient(90deg, rgba(var(--bad-rgb), .35), rgba(var(--bad-rgb), .85)); box-shadow: 0 0 16px rgba(var(--bad-rgb), .22); }
.abuso-track i.m { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, rgba(var(--ok-rgb), .5), var(--ok)); box-shadow: 2px 0 0 #fff; transition: width .5s var(--ease); }

/* prazos e publicação */
.prazo-card { cursor: pointer; }
.prazo-card .prazo-date { font-family: var(--f-display); font-size: 32px; font-weight: 600; line-height: 1; color: var(--ice); margin-top: 10px; }
.pub-text { font-family: var(--f-body); font-size: 13.5px; line-height: 1.75; color: var(--text2); padding: 16px 18px; border-radius: var(--raio); border: 1px solid var(--line); background: rgba(var(--fundo-rgb), .45); max-height: 340px; overflow-y: auto; white-space: pre-line; }
.pub-text mark, .rt-area mark { background: rgba(var(--acc-rgb), .2); color: var(--acc-hi); padding: 0 3px; border-radius: 3px; box-shadow: inset 0 -1px 0 rgba(var(--acc-rgb), .6); }
.prazo-box { padding: 16px; border-radius: var(--raio); border: 1px solid rgba(var(--acc-rgb), .3); background: linear-gradient(160deg, rgba(var(--acc-rgb), .1), rgba(var(--acc-rgb), .015) 70%); }
.prazo-box .pz-big { font-family: var(--f-display); font-size: 44px; font-weight: 600; line-height: 1; margin-top: 8px; color: var(--ice); text-shadow: 0 0 26px rgba(var(--acc-rgb), .35); }
.prazo-box .kv { margin-top: 12px; }

/* andamento vertical */
.vsteps { position: relative; display: flex; flex-direction: column; gap: 14px; padding-left: 4px; }
.vsteps::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 1px; background: var(--line2); }
.vstep { position: relative; display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--mute); }
.vstep > i { position: relative; z-index: 1; width: 15px; height: 15px; flex: 0 0 15px; border-radius: 50%; border: 1.5px solid var(--line3); background: var(--panel); }
.vstep.done { color: var(--text2); }
.vstep.done > i { border-color: var(--ok); background: var(--ok); box-shadow: 0 0 8px rgba(var(--ok-rgb), .45); }
.vstep.now { color: var(--ice); font-weight: 600; }
.vstep.now > i { border-color: var(--acc); background: var(--panel); box-shadow: 0 0 0 4px rgba(var(--acc-rgb), .16), 0 0 12px rgba(var(--acc-rgb), .6); }
.vstep.now > i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--acc); }

/* documentos da solicitação */
.doc-card { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--raio); border: 1px solid var(--line); background: rgba(var(--hl-rgb), .018); min-width: 0; transition: border-color .2s, background .2s; }
.doc-card + .doc-card { margin-top: 8px; }
.doc-card .dc-ic { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: var(--raio-sm); border: 1px solid var(--line2); color: var(--mute); background: rgba(var(--fundo-rgb), .4); }
.doc-card .dc-ic .ic { width: 17px; height: 17px; }
.doc-card .dc-body { flex: 1 1 auto; min-width: 0; }
.doc-card .dc-body b { color: var(--ice); font-size: 13px; }
.doc-card .dc-act { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.doc-card.pendente .dc-ic { color: var(--warn); border-color: rgba(var(--warn-rgb), .35); background: rgba(var(--warn-rgb), .07); }
.doc-card.analise { border-color: rgba(var(--info-rgb), .32); background: rgba(var(--info-rgb), .035); }
.doc-card.analise .dc-ic { color: var(--info); border-color: rgba(var(--info-rgb), .4); background: rgba(var(--info-rgb), .08); }
.doc-card.recebido .dc-ic { color: var(--ok); border-color: rgba(var(--ok-rgb), .4); background: rgba(var(--ok-rgb), .08); }
.doc-card.recusado { border-color: rgba(var(--bad-rgb), .3); }
.doc-card.recusado .dc-ic { color: var(--bad); border-color: rgba(var(--bad-rgb), .4); background: rgba(var(--bad-rgb), .08); }
.ia-note { display: inline-flex; align-items: flex-start; gap: 6px; color: var(--ia-tx); line-height: 1.45; }
.ia-note .ic { width: 13px; height: 13px; flex: 0 0 13px; margin-top: 1px; color: var(--ia-tx); }
.doc-list { display: flex; flex-direction: column; border-radius: var(--raio-sm); border: 1px solid var(--line); overflow: hidden; }
.doc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 12px; align-items: center; padding: 8px 12px; font-size: 12.5px; color: var(--text2); background: rgba(var(--fundo-rgb), .3); }
.doc-row + .doc-row { border-top: 1px solid var(--line); }
.doc-row .ic { width: 14px; height: 14px; color: var(--mute); }

/* link seguro, QR e prévias */
.linkbox { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: var(--raio-sm); border: 1px solid rgba(var(--acc-rgb), .3); background: rgba(var(--acc-rgb), .05); min-width: 0; }
.linkbox > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--acc-hi); }
.qr-mini { position: relative; width: 112px; height: 112px; border-radius: 8px; background: #f4f1ea; box-shadow: 0 0 0 1px rgba(var(--hl-rgb), .08), 0 10px 30px rgba(var(--sombra-rgb), calc(.4 * var(--sombra-k))); }
.qr-mini::before { content: ""; position: absolute; inset: 9px; background: repeating-conic-gradient(#0b0c12 0 25%, transparent 0 50%) 0 0 / 8px 8px, repeating-conic-gradient(#0b0c12 0 25%, transparent 0 50%) 3px 5px / 13px 13px; opacity: .88; }
.qr-mini::after { content: ""; position: absolute; inset: 9px; background:
  linear-gradient(#0b0c12 0 0) left 8px top 8px / 10px 10px no-repeat, linear-gradient(#0b0c12 0 0) right 8px top 8px / 10px 10px no-repeat, linear-gradient(#0b0c12 0 0) left 8px bottom 8px / 10px 10px no-repeat,
  linear-gradient(#f4f1ea 0 0) left 4px top 4px / 18px 18px no-repeat, linear-gradient(#f4f1ea 0 0) right 4px top 4px / 18px 18px no-repeat, linear-gradient(#f4f1ea 0 0) left 4px bottom 4px / 18px 18px no-repeat,
  linear-gradient(#0b0c12 0 0) left top / 26px 26px no-repeat, linear-gradient(#0b0c12 0 0) right top / 26px 26px no-repeat, linear-gradient(#0b0c12 0 0) left bottom / 26px 26px no-repeat,
  linear-gradient(#f4f1ea 0 0) left top / 30px 30px no-repeat, linear-gradient(#f4f1ea 0 0) right top / 30px 30px no-repeat, linear-gradient(#f4f1ea 0 0) left bottom / 30px 30px no-repeat; }
.wa-mini { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--raio); border: 1px solid var(--line); background: radial-gradient(circle at 1px 1px, rgba(var(--hl-rgb), .035) 1px, transparent 0) 0 0 / 14px 14px, #0a0d14; }
.wa-mini .msg { max-width: 92%; }
.video-box { position: relative; aspect-ratio: 16 / 9; max-width: 560px; display: grid; place-items: center; border-radius: var(--raio); border: 1px solid var(--line2); background: radial-gradient(60% 70% at 50% 40%, rgba(var(--acc-rgb), .14), transparent 70%), linear-gradient(135deg, #171b28, #0b0d15); color: var(--ice); cursor: pointer; overflow: hidden; }
.video-box > .ic { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: rgba(var(--hl-rgb), .1); border: 1px solid rgba(var(--hl-rgb), .25); box-shadow: 0 0 30px rgba(var(--acc-rgb), .35); transition: transform .2s var(--ease); }
.video-box:hover > .ic { transform: scale(1.08); }
.video-box > span { position: absolute; right: 10px; bottom: 8px; font-family: var(--f-mono); font-size: 10.5px; padding: 2px 6px; border-radius: 4px; background: rgba(var(--sombra-rgb), calc(.55 * var(--sombra-k))); }

/* seleção de processo/cliente nos assistentes */
.picked { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--raio); border: 1px solid rgba(var(--acc-rgb), .35); background: linear-gradient(90deg, rgba(var(--acc-rgb), .08), rgba(var(--acc-rgb), .015)); min-width: 0; animation: fadeUp .25s var(--ease-out); }
.picked b { color: var(--ice); }
.picked.empty-pick { border-style: dashed; border-color: var(--line2); background: rgba(var(--fundo-rgb), .3); color: var(--mute); font-size: 13px; }
.picked.empty-pick > .ic { width: 18px; height: 18px; color: var(--dim); }
.tese-tile, .calc-tipo { width: 100%; text-align: left; color: var(--text2); }
.calc-tipo { padding: 18px; }
.doc-up { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--raio); border: 1px solid var(--line); background: rgba(var(--hl-rgb), .018); min-width: 0; }
.doc-up:has(.li-ic.ok) { border-color: rgba(var(--ok-rgb), .3); }
.check-line { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 10px; border-radius: var(--raio-sm); border: 1px solid var(--line); background: rgba(var(--fundo-rgb), .3); font-size: 12.5px; color: var(--text2); cursor: pointer; transition: border-color .2s, background .2s; }
.check-line:hover { border-color: var(--line3); }
.check-line:has(input:checked) { border-color: rgba(var(--acc-rgb), .45); background: rgba(var(--acc-rgb), .05); color: var(--ice); }
.toggle-area { display: none; }
.toggle-area.is-on { display: block; margin-top: 16px; animation: fadeUp .3s var(--ease-out); }

/* execução da IA (cálculo e petição) */
.calc-run { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 10px 10px; }
.calc-run .pipeline { width: 100%; text-align: left; }
.calc-run .progress { width: 100%; }
.gen-lines { display: flex; flex-direction: column; gap: 9px; width: min(520px, 100%); }
.gen-lines i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(var(--ia-rgb), .12), rgba(var(--ia-rgb), .45), rgba(var(--ia-rgb), .12)); background-size: 200% 100%; animation: genShimmer 1.6s linear infinite; }
.gen-lines i:nth-child(2) { width: 92%; animation-delay: .1s; } .gen-lines i:nth-child(4) { width: 96%; animation-delay: .25s; } .gen-lines i:nth-child(5) { width: 88%; animation-delay: .3s; } .gen-lines i:nth-child(7) { width: 70%; animation-delay: .45s; }
.gen-lines i.s { width: 45%; margin-bottom: 8px; }
@keyframes genShimmer { to { background-position: -200% 0; } }

/* celular (prévia da mensagem) */
.phone { width: min(300px, 100%); margin: 0 auto; border-radius: 26px; padding: 10px; background: linear-gradient(160deg, #1d2130, #0c0e16); border: 1px solid var(--line2); box-shadow: 0 24px 60px rgba(var(--sombra-rgb), calc(.55 * var(--sombra-k))), inset 0 1px 0 rgba(var(--brilho-rgb), .06); }
.phone-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 18px 18px 0 0; background: var(--panel3); font-size: 12px; color: var(--ice); border-bottom: 1px solid var(--line); }
.phone-bar .ic { width: 16px; height: 16px; color: #25d366; }
.phone-body { display: flex; flex-direction: column; gap: 6px; min-height: 240px; padding: 14px 10px; border-radius: 0 0 18px 18px; background: radial-gradient(circle at 1px 1px, rgba(var(--hl-rgb), .035) 1px, transparent 0) 0 0 / 14px 14px, #0a0d14; }
.phone-body .msg { max-width: 94%; font-size: 12px; white-space: pre-line; }

/* lista ordenável (arrastar) */
.sort-list { display: flex; flex-direction: column; gap: 6px; }
.sort-item { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 6px; border-radius: var(--raio-sm); border: 1px solid var(--line); background: rgba(var(--fundo-rgb), .38); transition: border-color .2s, box-shadow .2s, opacity .2s; }
.sort-item .input { flex: 1 1 auto; border-color: transparent; background: transparent; }
.sort-item .input:focus { border-color: rgba(var(--acc-rgb), .6); background: var(--ctl-bg); }
.sort-item.is-dragging { opacity: .55; border-color: var(--acc); box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .4), 0 12px 30px rgba(var(--sombra-rgb), calc(.45 * var(--sombra-k))); }
.handle { display: grid; place-items: center; width: 22px; height: 30px; color: var(--dim); cursor: grab; border-radius: 4px; }
.handle:hover { color: var(--acc); background: rgba(var(--acc-rgb), .06); }
.handle:active { cursor: grabbing; }
.handle .ic { width: 14px; height: 14px; }

/* matriz de permissões */
.pm { border-radius: var(--raio); border: 1px solid var(--line); overflow-x: auto; background: rgba(var(--fundo-rgb), .3); }
.pm-row { display: grid; grid-template-columns: minmax(190px, 1.25fr) repeat(5, 76px) minmax(230px, 2fr) 176px; min-width: 1000px; align-items: center; border-top: 1px solid var(--line); transition: background .15s; }
.pm-row > * { padding: 8px 10px; min-width: 0; }
.pm-row:not(.pm-head):hover { background: rgba(var(--hl-rgb), .02); }
.pm-head { border-top: 0; background: rgba(var(--fundo-rgb), .6); font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.pm-head > div:nth-child(n+2):nth-child(-n+6) { text-align: center; }
.pm-mod { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.pm-mod .ic { width: 16px; height: 16px; color: var(--acc); flex: 0 0 16px; }
.pm-mod b { color: var(--ice); font-weight: 500; }
.pm-cell, .pm-row > .pm-na { display: grid; place-items: center; justify-self: stretch; }
.pm-cell .check { cursor: pointer; }
.pm-na { color: var(--dim); font-family: var(--f-mono); font-size: 12px; }
.pm-cell.extra .check input:checked + .box { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 12px rgba(var(--ok-rgb), .5); }
.pm-cell.tirada .check .box { border-color: var(--bad); background: rgba(var(--bad-rgb), .14); box-shadow: 0 0 10px rgba(var(--bad-rgb), .35); }
.pm-cell.tirada .check .box::before { content: ""; position: absolute; width: 10px; height: 1.5px; background: var(--bad); transform: rotate(45deg); }
.pm-extra { display: flex; flex-wrap: wrap; gap: 5px; }
.pm-extra .chip { height: 24px; padding: 0 9px; font-family: var(--f-body); font-size: 11.5px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.pm-extra .chip.dashed.is-on { border-color: var(--ok); color: var(--ok-tx); background: rgba(var(--ok-rgb), .08); }
.pm-extra .chip.dashed:not(.is-on) { border-color: rgba(var(--bad-rgb), .6); color: var(--bad-tx); text-decoration: line-through; }
.pm-row .select { width: 100%; }
.team-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 3px; box-shadow: 0 0 10px currentColor; }

/* auditoria: antes e depois */
.diff-old { display: inline-block; padding: 1px 6px; border-radius: 4px; background: rgba(var(--bad-rgb), .1); color: var(--bad-tx); text-decoration: line-through; text-decoration-color: rgba(var(--bad-rgb), .6); font-family: var(--f-mono); font-size: 11.5px; }
.diff-new { display: inline-block; padding: 1px 6px; border-radius: 4px; background: rgba(var(--ok-rgb), .1); color: var(--ok-tx); font-family: var(--f-mono); font-size: 11.5px; }

/* janela dividida que ocupa a altura toda (fichas grandes) */
.modal-body:has(> .modal-split.fill) { overflow: hidden; }
.modal-split.fill { height: 100%; min-height: 0; }
.modal-split.fill > .ms-main, .modal-split.fill > .ms-side { overflow-y: auto; min-height: 0; overscroll-behavior: contain; }

/* editor de texto simples */
.rt { border-radius: var(--raio); border: 1px solid var(--line2); background: var(--ctl-bg); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.rt:focus-within { border-color: rgba(var(--acc-rgb), .7); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .12); }
.rt-bar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 5px 6px; border-bottom: 1px solid var(--line); background: rgba(var(--fundo-rgb), .45); }
.rt-bar .sep { width: 1px; height: 18px; margin: 0 4px; background: var(--line2); }
.rt-area { min-height: 140px; max-height: 360px; overflow-y: auto; padding: 12px 14px; font-size: 13.5px; line-height: 1.65; color: var(--ice); outline: none; }
.rt-area:empty::before { content: attr(data-placeholder); color: var(--dim); }
.rt-area ul, .rt-area ol { padding-left: 22px; }

/* ---------- 14c. MÓDULOS (painel, listas, calendário, configurações) --- */
/* painel: abertura do dia */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 28px; padding: 28px 30px; overflow: hidden; }
.hero::marker { display: none; }
.hero-main h1 { font-family: var(--f-display); font-size: 42px; font-weight: 600; line-height: 1.05; margin-top: 10px; }
.hero-main h1 span { background: linear-gradient(100deg, var(--acc-hi), var(--acc) 55%, var(--acc-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-main p { color: var(--text2); margin-top: 10px; font-size: 14px; max-width: 640px; line-height: 1.6; }
.hero-main p b { font-weight: 600; }
.hero-ia { position: relative; padding: 16px 16px 14px; border-radius: var(--raio); border: 1px solid transparent; background: linear-gradient(180deg, var(--panel4), var(--panel3)) padding-box, linear-gradient(130deg, rgba(var(--ia-rgb), .75), rgba(var(--info-rgb), .35), rgba(var(--acc-rgb), .5)) border-box; box-shadow: 0 0 40px rgba(var(--ia-rgb), .08); }
.hero-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hero-list button { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 8px 8px; border: 0; border-radius: var(--raio-sm); background: none; color: var(--text2); font-size: 12.5px; line-height: 1.5; text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.hero-list button > .ic:first-child { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; color: var(--ia-tx); }
.hero-list button .go { width: 14px; height: 14px; flex: 0 0 14px; margin: 3px 0 0 auto; color: var(--dim); opacity: 0; transition: opacity .15s, transform .15s; }
.hero-list button:hover { background: rgba(var(--ia-rgb), .08); color: var(--ice); }
.hero-list button:hover .go { opacity: 1; transform: translateX(2px); color: var(--ia-tx); }
.hero-list b { color: var(--ice); font-weight: 600; }

/* bloco de data (prazos, agenda, quadros) */
.date-block { width: 44px; flex: 0 0 44px; padding: 5px 0 4px; border-radius: var(--raio-sm); border: 1px solid var(--line2); background: rgba(var(--fundo-rgb), .5); text-align: center; line-height: 1; }
.date-block b { display: block; font-family: var(--f-display); font-size: 20px; font-weight: 700; color: var(--ice); }
.date-block span { display: block; margin-top: 3px; font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.date-block.hot { border-color: rgba(var(--bad-rgb), .55); background: rgba(var(--bad-rgb), .1); }
.date-block.hot b { color: var(--bad-tx); }
.date-block.ok { border-color: rgba(var(--ok-rgb), .5); background: rgba(var(--ok-rgb), .08); }
.date-block.ok b { color: var(--ok); }

/* funil com link */
a.fun-step { transition: transform .2s var(--ease), filter .2s; }
a.fun-step:hover { transform: scale(1.02); filter: brightness(1.2); }

/* listagem padrão */
.ls-root { min-width: 0; }
.ls-bar .select.input-sm { width: auto; max-width: 220px; }
/* filtros das tabelas no padrão dos campos do sistema */
.fsel { display: inline-flex; align-items: center; gap: 8px; height: var(--ctl-h); padding: 0 12px; max-width: 260px; border-radius: var(--raio);
  border: 1px solid var(--line2); background: var(--ctl-bg); color: var(--ice); font-family: var(--f-body); font-size: var(--ctl-fs); cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(var(--sombra-rgb), calc(.28 * var(--sombra-k))); transition: border-color .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.fsel:hover { border-color: var(--line3); }
.fsel:focus-visible, .fsel[aria-expanded="true"] { outline: none; border-color: rgba(var(--acc-rgb), .75); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .12); }
.fsel .fsel-t { color: var(--mute); font-size: 12px; }
.fsel .fsel-v { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; color: var(--text2); font-weight: 500; }
.fsel .fsel-v.on { color: var(--acc); font-weight: 600; }
.fsel .ic { width: 15px; height: 15px; color: var(--mute); flex: 0 0 15px; }
.fsel.is-on { border-color: rgba(var(--acc-rgb), .45); background: rgba(var(--acc-rgb), .06); }
.fsel-pop { min-width: 220px; max-width: 360px; }
.fsel-pop .fsel-cab { padding: 6px 10px 8px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); font-family: var(--f-mono); }
.fsel-pop .fsel-busca { position: relative; margin: 0 4px 6px; }
.fsel-pop .fsel-busca .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--dim); }
.fsel-pop .fsel-busca .input { padding-left: 30px; }
.ls-bar .search .input { height: var(--ctl-h); }
.ls-bar .search { flex: 1 1 200px; }
.vinc-ic { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: -2px; }
.vinc-ic .ic { width: 13px; height: 13px; color: var(--mute); }
.vinc-ic .ic.acc { color: var(--acc); } .vinc-ic .ic.info { color: var(--info); }
.ls-body { min-width: 0; }
.ls-body .table td { white-space: nowrap; }
.ls-body .table td.wrap { white-space: normal; min-width: 150px; }
.ls-body > .table-wrap > .table th:first-child, .ls-body > .table-wrap > .table td:first-child { padding-left: var(--pad); }
.ls-body > .table-wrap > .table th:last-child, .ls-body > .table-wrap > .table td:last-child { padding-right: var(--pad); }
.ls-cards { padding: var(--pad); }
.ls-abas .chip .n { min-width: 22px; text-align: center; }
.chip.tone-bad .n { background: rgba(var(--bad-rgb), .18); color: var(--bad-tx); }
.chip.tone-warn .n { background: rgba(var(--warn-rgb), .18); color: var(--warn-tx); }
.chip.tone-ia .n { background: rgba(var(--ia-rgb), .2); color: var(--ia-tx); }
.chip.tone-ok .n { background: rgba(var(--ok-rgb), .16); color: var(--ok-tx); }
.ls-count { white-space: nowrap; }
.page-tabs { margin-bottom: 18px; }

/* cartão de registro (modo cartões das listas) */
.rec { display: flex; flex-direction: column; gap: 12px; padding: 16px; cursor: pointer; min-width: 0; }
.rec-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rec-top .rec-t { min-width: 0; flex: 1 1 auto; }
.rec-top .rec-t b { display: block; color: var(--ice); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-top .rec-t span { display: block; font-size: 11.5px; color: var(--mute); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line2); font-size: 11.5px; color: var(--mute); flex-wrap: wrap; }
.rec .kv { font-size: 12px; }

/* quadro por etapa (processos) */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.board .kb-col { max-height: calc(100vh - 260px); }

/* calendário de prazos */
.cal-wrap { padding: var(--pad); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cal-head h3 { font-family: var(--f-display); font-size: 24px; font-weight: 600; }
.cal-ev { cursor: pointer; }
.cal-ev:hover { filter: brightness(1.25); }

/* configurações */
.cfg { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.cfg-panel { display: none; }
.cfg-panel.is-active { display: block; animation: fadeUp .25s var(--ease-out); }
.cfg-panel > .card + .card, .cfg-panel > .card + .grid, .cfg-panel > .grid + .card { margin-top: 16px; }
.secret { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11.5px; color: var(--text2); }
.secret .ic { width: 14px; height: 14px; color: var(--ok); }
.int-card { display: flex; flex-direction: column; gap: 12px; }
.int-logo { width: 42px; height: 42px; flex: 0 0 42px; border-radius: var(--raio); display: grid; place-items: center; font-family: var(--f-ui); font-weight: 700; font-size: 13px; color: #fff; }

/* login */
body.is-login .login { position: relative; z-index: 2; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, 480px); }
.login-art { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 52px; overflow: hidden; }
.login-art h1 { font-family: var(--f-display); font-size: 58px; font-weight: 600; line-height: 1.02; max-width: 640px; }
.login-art h1 em { font-style: normal; background: linear-gradient(100deg, var(--acc-hi), var(--acc) 60%, var(--acc-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-art p { color: var(--text2); max-width: 520px; margin-top: 16px; font-size: 14.5px; line-height: 1.65; }
.login-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 720px; }
.login-feats > div { padding: 14px; border-radius: var(--raio); border: 1px solid var(--line); background: rgba(var(--fundo-rgb), .55); font-size: 12px; color: var(--text2); }
.login-feats b { display: flex; align-items: center; gap: 8px; color: var(--ice); font-size: 12.5px; margin-bottom: 4px; }
.login-feats .ic { width: 15px; height: 15px; color: var(--acc); }
.login-side { display: flex; align-items: center; justify-content: center; padding: 32px; background: linear-gradient(90deg, rgba(var(--fundo-rgb), 0), rgba(var(--fundo-rgb), .75) 18%); }
.login-box { width: 100%; max-width: 400px; padding: 30px; }
.login-box h2 { font-family: var(--f-display); font-size: 36px; font-weight: 600; line-height: 1.1; margin-top: 8px; color: var(--ice); }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand .brand-mark { width: 44px; height: 44px; }
.login-brand strong { display: block; font-family: var(--f-ui); font-size: 14px; letter-spacing: .22em; }
.login-brand span { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .3em; color: var(--acc); margin-top: 2px; }
.login-step { display: none; }
.login-step.is-on { display: block; animation: fadeUp .3s var(--ease-out); }
.login-mid { margin: 40px 0; }
.login-mid h1 { margin-top: 14px; }
.login-lead { color: var(--text2); font-size: 13.5px; line-height: 1.6; margin-top: 8px; }
.login-typed { display: flex; align-items: center; gap: 2px; min-height: 22px; margin-top: 22px; font-family: var(--f-mono); font-size: 13px; color: var(--acc-hi); letter-spacing: .02em; }
.login-typed i { width: 8px; height: 16px; background: var(--acc); box-shadow: 0 0 10px rgba(var(--acc-rgb), .6); animation: blink 1s steps(1) infinite; }
.login-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.login-stats b { display: block; font-family: var(--f-display); font-size: 34px; font-weight: 600; color: var(--ice); line-height: 1; }
.login-stats span { display: block; margin-top: 6px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.login-copy { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--dim); }
.login-or { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.login-or::before, .login-or::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }
.login-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; color: var(--mute); }
.login-foot .ic { width: 14px; height: 14px; color: var(--ok); }
.login-boot { text-align: center; padding-top: 6px; }
.login-boot .ia-orb { margin: 0 auto; }
.boot-lines { display: flex; flex-direction: column; gap: 6px; min-height: 150px; }
.boot-line { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text2); animation: fadeUp .3s var(--ease-out); }
.boot-line .ic { width: 15px; height: 15px; padding: 2px; border-radius: 50%; background: rgba(var(--ok-rgb), .14); color: var(--ok); }
.login-box .row-between { gap: 12px; }
.login-brand-m { display: none; }
.login-step > .overline { display: flex; width: max-content; }

/* vitrine de cores e tipos no painel de usuários/perfis */
.perfil-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; cursor: pointer; }
.perfil-card .pc-ic { width: 40px; height: 40px; border-radius: var(--raio); display: grid; place-items: center; border: 1px solid; }
.perfil-card .pc-ic .ic { width: 19px; height: 19px; }
.perm-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.perm-dots i { width: 8px; height: 8px; border-radius: 2px; background: var(--line2); }
.perm-dots i.on { background: var(--acc); box-shadow: 0 0 6px rgba(var(--acc-rgb), .6); }
.kb-gate.ok { background: rgba(var(--ok-rgb), .08); color: var(--ok-tx); border-color: rgba(var(--ok-rgb), .25); }
.kb-card[data-ficha] { cursor: pointer; }
.kb-card[draggable="true"] { cursor: grab; }
button.kpi, a.kpi { width: 100%; text-align: left; color: inherit; font: inherit; }
.kpi:not(:has(.spark)) { padding-bottom: 16px; min-height: 0; }

/* faixa de etapas (processos) */
.etapas-bar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-radius: var(--raio); border: 1px solid var(--line2); background: rgba(var(--fundo-rgb), .6); overflow: hidden; }
.etapas-bar button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 15px 16px 13px; border: 0; border-right: 1px solid var(--line); background: none; color: var(--text2); text-align: left; cursor: pointer; transition: background .2s; }
.etapas-bar button:last-child { border-right: 0; }
.etapas-bar button::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c); box-shadow: 0 0 10px var(--c); opacity: .85; }
.etapas-bar button:hover { background: rgba(var(--hl-rgb), .03); }
.etapas-bar button.is-on { background: rgba(var(--c-rgb), .09); }
.etapas-bar .eb-top { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; overflow: hidden; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.etapas-bar .eb-top span { overflow: hidden; text-overflow: ellipsis; }
.etapas-bar .eb-top .ic { width: 14px; height: 14px; flex: 0 0 14px; color: var(--c); }
.etapas-bar b { font-family: var(--f-display); font-size: 30px; font-weight: 700; line-height: 1; color: var(--ice); font-variant-numeric: lining-nums tabular-nums; }
.etapas-bar small { font-size: 11px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ls-body .table td, .ls-body .table th { padding-left: 10px; padding-right: 10px; }
/* ações da linha: aparecem por cima do fim da linha ao passar o mouse, sem ocupar coluna */
.ls-body .table th.acts-h, .ls-body .table td.acts { width: 0; min-width: 0; padding: 0 !important; position: sticky; right: 0; z-index: 2; }
.ls-body .table td.acts .row-actions { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; gap: 2px; padding: 4px 4px 4px 30px; opacity: 0; pointer-events: none; background: linear-gradient(90deg, rgba(var(--sup-rgb), 0), rgba(var(--sup-rgb), .97) 28px); border-radius: var(--raio-sm); transition: opacity .15s; }
.ls-body .table tr:hover td.acts .row-actions, .ls-body .table td.acts .row-actions:focus-within { opacity: 1; pointer-events: auto; }
@media (hover: none) { .ls-body .table td.acts .row-actions { opacity: 1; pointer-events: auto; } }
.steps-mini span.bad { background: var(--bad); box-shadow: 0 0 8px rgba(var(--bad-rgb), .6); }
.top-actions > *, .ai-pill, .top-chip { flex-shrink: 0; white-space: nowrap; }
.crumbs { flex: 0 1 auto; overflow: hidden; }
.search-trigger { flex: 0 1 380px; min-width: 44px; }
.ls-body .table .cell-title { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.ls-body .table .cell-sub { white-space: normal; min-width: 110px; max-width: 250px; }
.ls-body .table td.wrap .small { white-space: normal; }
.ls-body .table .row-actions .btn-icon { width: 26px; height: 26px; }
.ls-body .table .row-actions .btn-icon .ic { width: 14px; height: 14px; }
.ls-body .table td.wrap .cell-title { white-space: normal; }
.calc-tipo-card { display: flex; flex-direction: column; }
.calc-tipo-card > .row:last-child { margin-top: auto; padding-top: 16px; }
.row-between > .btn, .row-between > button.btn { flex-shrink: 0; }
.empty-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 180px; padding: 18px; border-radius: var(--raio); border: 1px dashed var(--line3); background: rgba(var(--hl-rgb), .01); color: var(--mute); text-align: center; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.empty-tile b { color: var(--ice); font-size: 13.5px; }
.empty-tile .e-ic { width: 44px; height: 44px; margin-bottom: 6px; border-radius: 50%; display: grid; place-items: center; color: var(--acc); border: 1px dashed rgba(var(--acc-rgb), .5); background: rgba(var(--acc-rgb), .05); }
.empty-tile .e-ic .ic { width: 20px; height: 20px; }
.empty-tile:hover { border-color: rgba(var(--acc-rgb), .6); background: rgba(var(--acc-rgb), .04); color: var(--text2); }
.adv-card { display: flex; align-items: center; gap: 12px; min-height: var(--ctl-h); padding: 6px 12px; border-radius: var(--raio); border: 1px dashed var(--line2); background: rgba(var(--fundo-rgb), .35); }
.adv-card b { color: var(--ice); font-size: 13px; }
.integ { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.integ-logo { width: 46px; height: 46px; flex: 0 0 46px; border-radius: var(--raio); display: grid; place-items: center; color: #fff; font-family: var(--f-ui); font-weight: 700; font-size: 14px; box-shadow: 0 8px 20px rgba(var(--sombra-rgb), calc(.35 * var(--sombra-k))); }
.integ-logo .ic { width: 22px; height: 22px; }
.integ h3 { font-family: var(--f-ui); font-size: 14px; font-weight: 600; }
.meta-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; }
.meta-row .progress { grid-column: 1 / -1; }
.rule-lock { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--raio-sm); border: 1px solid var(--line); background: rgba(var(--fundo-rgb), .4); font-size: 12.5px; color: var(--text2); }
.rule-lock > .ic { width: 16px; height: 16px; flex: 0 0 16px; color: var(--acc); }
.rule-lock b { color: var(--ice); }
.rule-lock .tag-lock { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line2); font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.rule-lock .tag-lock .ic { width: 11px; height: 11px; }
.cfg .doc-sub { margin-top: 24px; }

/* ---------- 14f. QUEM FEZ: selo de autoria, histórico, etapas e fluxo da esteira ---------- */
.quem { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; vertical-align: middle; }
.quem .q-av { position: relative; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-ui); font-size: 8.5px; font-weight: 700; letter-spacing: .02em; line-height: 1; }
.quem .q-av .ic { width: 12px; height: 12px; }
.quem > b { font-family: var(--f-ui); font-size: 12px; font-weight: 600; color: var(--ice); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.quem > small { font-size: 10.5px; color: var(--mute); white-space: nowrap; }
.q-pessoa .q-av { color: #1a1406; background: linear-gradient(135deg, var(--acc-hi), var(--acc) 60%, var(--acc-lo)); }
.q-pessoa.q-dark .q-av { color: var(--acc-hi); background: linear-gradient(135deg, var(--panel4), var(--panel3)); box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .38); }
.q-ia .q-av { background: radial-gradient(circle at 34% 30%, #fff 0 7%, #e4d8ff 16%, #a58bff 44%, #5a3bd0 78%, #2f1c80); box-shadow: 0 0 10px rgba(var(--ia-rgb), .75), 0 0 0 1px rgba(var(--ia-rgb), .65); }
.q-ia .q-av::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid rgba(var(--ia-rgb), .35); animation: qOrb 3.2s linear infinite; border-top-color: rgba(var(--ia-rgb), .9); }
@keyframes qOrb { to { transform: rotate(360deg); } }
.q-ia > b { color: var(--ia-tx); letter-spacing: .08em; }
.q-auto .q-av { color: var(--info-tx); background: rgba(var(--info-rgb), .14); box-shadow: inset 0 0 0 1px rgba(var(--info-rgb), .5); }
.q-auto > b { color: var(--info-tx); }
.q-cliente .q-av { color: #04140e; background: linear-gradient(135deg, #8ff2c6, #2fb57a); }
.q-cliente > b { color: var(--ok-tx); }
:root[data-movimento="reduzido"] .q-ia .q-av::after { animation: none; }

.carimbo { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; padding: 3px 10px 3px 3px; border-radius: calc(var(--raio) + 8px); border: 1px solid var(--line2); background: rgba(var(--hl-rgb), .025); vertical-align: middle; }
.carimbo .cb-a { padding-left: 6px; font-size: 11px; color: var(--mute); white-space: nowrap; }
.carimbo .cb-q { font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); white-space: nowrap; }
.carimbo.q-ia { border-color: rgba(var(--ia-rgb), .5); background: linear-gradient(90deg, rgba(var(--ia-rgb), .14), rgba(var(--ia-rgb), .05)); box-shadow: 0 0 16px -6px rgba(var(--ia-rgb), .6); }
.carimbo.q-auto { border-color: rgba(var(--info-rgb), .38); background: rgba(var(--info-rgb), .06); }
.carimbo.q-cliente { border-color: rgba(var(--ok-rgb), .38); background: rgba(var(--ok-rgb), .05); }
.carimbo.q-pessoa { border-color: rgba(var(--acc-rgb), .3); }
.carimbos { display: flex; flex-wrap: wrap; gap: 8px; }

.cell-sub.por { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 6px; white-space: nowrap; min-width: 0; }
.cell-sub.por:first-child { margin-top: 0; }
.cell-sub.por .quem { gap: 5px; max-width: 100%; }
.cell-sub.por .q-av { width: 16px; height: 16px; flex-basis: 16px; font-size: 6.5px; }
.cell-sub.por .q-av .ic { width: 10px; height: 10px; }
.cell-sub.por .q-ia .q-av::after { inset: -2px; }
.cell-sub.por .quem > b { font-size: 11px; font-weight: 500; }
.cell-sub.por .pq-m { display: flex; flex-wrap: nowrap; align-items: baseline; gap: 5px; padding-left: 21px; font-size: 10.5px; color: var(--dim); white-space: nowrap; }
.cell-sub.por .pq-m > * { white-space: nowrap; flex: none; }
.cell-sub.por .pq-m i { font-style: normal; color: var(--dim); }
.cell-sub.por .pq-a { color: var(--mute); }
.cell-sub.por .pq-q { font-family: var(--f-mono); font-size: 10px; color: var(--dim); }

/* histórico */
.trilha { display: flex; flex-direction: column; }
.tr-dia { display: flex; align-items: center; gap: 10px; margin: 16px 0 4px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--acc); }
.tr-dia::after { content: ""; flex: 1 1 auto; height: 1px; background: linear-gradient(90deg, var(--line2), transparent); }
.tr-dia:first-child { margin-top: 0; }
.tr-it { position: relative; display: grid; grid-template-columns: 42px 30px minmax(0, 1fr); gap: 12px; padding: 7px 0; }
.tr-it::before { content: ""; position: absolute; left: 68px; top: -8px; bottom: -8px; width: 1px; background: var(--line2); }
.tr-dia + .tr-it::before { top: 18px; }
.tr-h { font-family: var(--f-mono); font-size: 11px; color: var(--mute); text-align: right; padding-top: 7px; }
.tr-dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--panel3); border: 1px solid rgba(var(--acc-rgb), .35); color: var(--acc-hi); }
.tr-dot .ic { width: 14px; height: 14px; }
.tr-it.t-ia .tr-dot { color: var(--ia-tx); border-color: rgba(var(--ia-rgb), .65); background: radial-gradient(circle at 35% 30%, rgba(var(--ia-rgb), .45), rgba(var(--ia-rgb), .12)); box-shadow: 0 0 16px rgba(var(--ia-rgb), .45); }
.tr-it.t-auto .tr-dot { color: var(--info-tx); border-color: rgba(var(--info-rgb), .5); background: rgba(var(--info-rgb), .1); }
.tr-it.t-cliente .tr-dot { color: var(--ok-tx); border-color: rgba(var(--ok-rgb), .5); background: rgba(var(--ok-rgb), .1); }
.tr-it.tom-ok .tr-dot { color: var(--ok-tx); border-color: rgba(var(--ok-rgb), .55); }
.tr-it.tom-bad .tr-dot { color: var(--bad-tx); border-color: rgba(var(--bad-rgb), .55); background: rgba(var(--bad-rgb), .1); }
.tr-it.tom-warn .tr-dot { color: var(--warn-tx); border-color: rgba(var(--warn-rgb), .55); }
.tr-it.tom-acc .tr-dot { color: #1a1406; background: linear-gradient(135deg, var(--acc-hi), var(--acc)); border-color: var(--acc); box-shadow: 0 0 14px rgba(var(--acc-rgb), .45); }
.tr-b { min-width: 0; padding-top: 3px; }
.tr-a { font-size: 13px; color: var(--ice); line-height: 1.4; }
.tr-m { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 12px; margin-top: 6px; }
.tr-det { font-size: 11.5px; color: var(--mute); min-width: 0; }
.trilha .tr-oculto { display: none; }
.trilha.tr-tudo .tr-oculto { display: grid; }
.trilha.tr-tudo .tr-dia.tr-oculto { display: flex; }
.tr-mais { align-self: flex-start; margin: 8px 0 0 54px; }

/* etapas com quem fez */
.esteira { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); border: 1px solid var(--line2); border-radius: var(--raio); background: rgba(var(--fundo-rgb), .55); overflow: hidden; }
.es-st { position: relative; display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 15px 14px 13px; border-right: 1px solid var(--line); }
.es-st:last-child { border-right: 0; }
.es-st::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line2); }
.es-st.feito::before { background: var(--ok); box-shadow: 0 0 10px rgba(var(--ok-rgb), .55); }
.es-st.agora::before { background: linear-gradient(90deg, var(--acc-lo), var(--acc-hi)); box-shadow: 0 0 12px rgba(var(--acc-rgb), .8); }
.es-st.bad::before { background: var(--bad); }
.es-st.agora { background: linear-gradient(180deg, rgba(var(--acc-rgb), .09), transparent 75%); }
.es-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.es-n { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line3); color: var(--dim); font-family: var(--f-mono); font-size: 10px; }
.es-n .ic { width: 12px; height: 12px; }
.es-st.feito .es-n { background: var(--ok); border-color: var(--ok); color: #04140e; }
.es-st.agora .es-n { border-color: var(--acc); color: var(--acc-hi); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .16); animation: esPulse 2.2s ease-in-out infinite; }
.es-st.bad .es-n { background: rgba(var(--bad-rgb), .16); border-color: rgba(var(--bad-rgb), .6); color: var(--bad-tx); }
@keyframes esPulse { 50% { box-shadow: 0 0 0 7px rgba(var(--acc-rgb), .04); } }
.es-nome { font-family: var(--f-ui); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-st.feito .es-nome { color: var(--ice); }
.es-st.agora .es-nome { color: var(--acc-hi); }
.es-quem { display: flex; flex-direction: column; gap: 4px; min-height: 40px; min-width: 0; }
.es-quem .quem > b { font-size: 11.5px; }
.es-q { font-family: var(--f-mono); font-size: 10px; color: var(--mute); padding-left: 29px; }
.es-rot { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.es-sub .warn { color: var(--warn-tx); }
.es-sub .warn .ic { color: var(--warn); }
.es-pend { font-size: 11px; color: var(--dim); line-height: 1.4; }
.es-st.agora .es-pend { color: var(--text2); }
.es-sub { display: flex; flex-direction: column; gap: 5px; padding-top: 9px; border-top: 1px dashed var(--line2); }
.es-sub > div { display: grid; grid-template-columns: 13px minmax(0, 1fr) auto; gap: 6px; align-items: center; font-size: 10.5px; color: var(--dim); }
.es-sub > div { align-items: start; }
.es-sub > div > span:nth-child(2) { line-height: 1.35; }
.es-sub > div > .ic { margin-top: 1px; }
.es-sub b { color: var(--text2); font-weight: 600; }
.es-sub .ic { width: 12px; height: 12px; }
.es-sub .ok { color: var(--text2); }
.es-sub .ok .ic { color: var(--ok); }
.es-sub .run { color: var(--ia-tx); }
.es-sub .run .ic { color: var(--ia); animation: spin 1.4s linear infinite; }
.es-sub .bad { color: var(--bad-tx); }
.es-sub .bad .ic { color: var(--bad); }
.es-sub .t { font-family: var(--f-mono); font-size: 9.5px; color: var(--mute); }
.esteira.compact .es-st { padding: 12px 12px 10px; }

/* faixa de ação da etapa atual */
.es-acao { display: flex; align-items: center; gap: 16px; margin-top: 12px; padding: 14px 16px; border-radius: var(--raio); border: 1px solid rgba(var(--acc-rgb), .35); background: linear-gradient(90deg, rgba(var(--acc-rgb), .1), rgba(var(--acc-rgb), .02)); }
.es-acao.ia { border-color: rgba(var(--ia-rgb), .45); background: linear-gradient(90deg, rgba(var(--ia-rgb), .12), rgba(var(--ia-rgb), .02)); }
.es-acao.bad { border-color: rgba(var(--bad-rgb), .45); background: linear-gradient(90deg, rgba(var(--bad-rgb), .1), rgba(var(--bad-rgb), .02)); }
.es-acao.ok { border-color: rgba(var(--ok-rgb), .4); background: linear-gradient(90deg, rgba(var(--ok-rgb), .08), rgba(var(--ok-rgb), .02)); }
.es-acao .ea-ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: var(--raio); display: grid; place-items: center; color: var(--acc-hi); background: rgba(var(--acc-rgb), .12); border: 1px solid rgba(var(--acc-rgb), .35); }
.es-acao.ia .ea-ic { color: var(--ia-tx); background: rgba(var(--ia-rgb), .16); border-color: rgba(var(--ia-rgb), .5); }
.es-acao.bad .ea-ic { color: var(--bad-tx); background: rgba(var(--bad-rgb), .12); border-color: rgba(var(--bad-rgb), .45); }
.es-acao.ok .ea-ic { color: var(--ok-tx); background: rgba(var(--ok-rgb), .1); border-color: rgba(var(--ok-rgb), .4); }
.es-acao .ea-ic .ic { width: 18px; height: 18px; }
.es-acao .ea-t { flex: 1 1 auto; min-width: 0; }
.es-acao .ea-t b { display: block; font-size: 14px; color: var(--ice); }
.es-acao .ea-t span { display: block; margin-top: 3px; font-size: 12px; color: var(--text2); line-height: 1.5; }
.es-acao .ea-b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- 15. RESPONSIVO E MOVIMENTO REDUZIDO ---------------------- */
@media (max-width: 1500px) {
  .g-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1280px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main-side { grid-template-columns: minmax(0, 1fr); }
  .ap-models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-side { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .cfg { grid-template-columns: minmax(0, 1fr); }
  .cfg .side-nav { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; }
  .cfg .side-nav .sn-group { width: 100%; }
  body.is-login .login { grid-template-columns: minmax(0, 1fr); }
  .login-art { display: none; }
  .login-side { background: none; }
  .login-brand-m { display: flex; }
}
@media (max-width: 1180px) {
  .search-trigger { width: 44px; padding: 0; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs-nav { position: sticky; top: var(--top); z-index: 6; max-height: none; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; background: rgba(var(--fundo-rgb), .92); }
  .docs-nav::-webkit-scrollbar { display: none; }
  .docs-nav .sn-group { display: none; }
  .docs-nav a { flex: 0 0 auto; white-space: nowrap; }
  .doc-sec { scroll-margin-top: calc(var(--top) + 72px); }
}
@media (max-width: 980px) {
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-side-main { grid-template-columns: minmax(0, 1fr); }
  .ap-more { grid-template-columns: minmax(0, 1fr); }
  .form-grid .c-3, .form-grid .c-4, .form-grid .c-2 { grid-column: span 6; }
  .kv.cols-2 { grid-template-columns: minmax(110px, auto) minmax(0, 1fr); }
  .top-chip { display: none; }
  .etapas-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .etapas-bar button:nth-child(3n) { border-right: 0; }
  .etapas-bar button:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .modal-split { grid-template-columns: minmax(0, 1fr); }
  .modal-split > .ms-side { border-left: 0; border-top: 1px solid var(--line); }
  .modal-body:has(> .modal-split.fill) { overflow-y: auto; }
  .modal-split.fill { height: auto; }
  .modal-split.fill > .ms-main, .modal-split.fill > .ms-side { overflow: visible; }
  .modal-head:has(.fh) { flex-wrap: wrap; row-gap: 10px; }
  .modal-head:has(.fh) > .fh { flex: 1 1 0; }
  .modal-head:has(.fh) > .x { order: 2; align-self: flex-start; }
  .modal-head:has(.fh) > .modal-tools { order: 3; flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .modal-head:has(.fh) > .modal-tools > * { flex: 0 0 auto; }
  .files-pane { grid-template-columns: minmax(0, 1fr); }
  .files-pane .fp-side { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .login-side { padding: 16px; align-items: flex-start; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .kpi-grid .kpi { padding: 13px 13px 34px; min-height: 0; }
  .kpi-grid .kpi:not(:has(.spark)) { padding-bottom: 13px; }
  .kpi-grid .kpi-label { font-size: 9px; letter-spacing: .12em; }
  .kpi-grid .kpi-ic { width: 26px; height: 26px; flex-basis: 26px; }
  .kpi-grid .kpi-value { font-size: 26px; margin-top: 10px; }
  .kpi-grid .kpi-sub { font-size: 10.5px; }
  .kpi-grid .kpi .spark { height: 28px; }
  .etapas-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etapas-bar button { border-bottom: 1px solid var(--line); padding: 12px 13px 11px; }
  .etapas-bar button:nth-child(3n) { border-right: 1px solid var(--line); }
  .etapas-bar button:nth-child(2n) { border-right: 0; }
  .etapas-bar button:nth-last-child(-n+2) { border-bottom: 0; }
  .etapas-bar b { font-size: 26px; }
  .ls-abas { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-right: -14px; padding-right: 14px; }
  .ls-abas::-webkit-scrollbar { display: none; }
  .ls-abas .chip { flex: 0 0 auto; }
  .login-box { padding: 22px 20px; }
  .login-box h2 { font-size: 30px; }
  :root { --top: 58px; }
  .app, .app.is-collapsed { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; width: var(--side); transform: translateX(-102%); transition: transform .35s var(--ease); z-index: calc(var(--z-modal) - 10); box-shadow: 30px 0 80px rgba(var(--sombra-rgb), calc(.6 * var(--sombra-k))); }
  .app.is-mobile-open .sidebar { transform: none; }
  .app.is-collapsed .brand-text, .app.is-collapsed .nav-label, .app.is-collapsed .nav-item > span, .app.is-collapsed .user-chip .who { display: revert; }
  .topbar { padding: 0 12px; gap: 8px; }
  .crumbs { display: none; }
  .search-trigger { margin-left: 0; }
  .ai-pill .txt { display: none; }
  .ai-pill { padding: 0 10px; }
  .top-actions .btn span { display: none; }
  .page { padding: 18px 14px 50px; }
  .page-head h1 { font-size: 29px; }
  .g-2, .g-3, .g-4, .g-5, .g-6 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid > [class*="c-"] { grid-column: 1 / -1; }
  .ap-models, .bm-grid { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .kv > dt, .kv > .k { border-bottom: 0; padding-bottom: 0; }
  .modal-bg { padding: 0; place-items: end stretch; }
  .modal, .modal[data-size], .modal.ficha, .modal.tall, .modal.full { width: 100%; max-height: 94dvh; height: auto; clip-path: none !important; border-radius: calc(var(--raio) + 10px) calc(var(--raio) + 10px) 0 0 !important; }
  .modal.ficha, .modal.tall { height: 94dvh; }
  .modal-foot .left { width: 100%; }
  .modal-foot .left:not(:has(button, a, input, select, label, .btn)) { display: none; }
  .toasts { right: 12px; left: 12px; width: auto; bottom: 12px; }
  .ia-win { right: 8px; left: 8px; bottom: 8px; width: auto; }
  .wizard-steps { padding: 8px 12px; }
  .wz { font-size: 0; gap: 0; padding: 0 4px; }
  .wz.is-active { font-size: 10px; gap: 8px; padding: 0 10px 0 4px; }
  .pager { justify-content: center; }
  .stepper .step { min-width: 86px; }
  .principle > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .fh { gap: 12px; }
  .fh-ic { width: 42px; height: 42px; flex-basis: 42px; }
  .fh-ic .ic { width: 20px; height: 20px; }
  .fh-title { font-size: 15px; }
  .fh-meta { gap: 3px 12px; font-size: 11.5px; }
  .fstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proc-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .proc-row .pr-r { justify-content: flex-start; }
  .gate-list { grid-template-columns: minmax(0, 1fr); }
  .doc-card { flex-wrap: wrap; }
  .doc-card .dc-act { width: 100%; justify-content: flex-start; padding-left: 48px; }
  .doc-row { grid-template-columns: minmax(0, 1fr) auto; }
  .doc-row > :nth-child(2) { display: none; }
  .paper { padding: 30px 22px; font-size: 12.5px; }
  .paper-stage, .modal-split > .ms-main.paper-stage { padding: 12px; }
  .viewer { min-height: 320px; padding: 18px 12px; }
  .doc-page { padding: 26px 22px; }
  .prazo-box .pz-big { font-size: 36px; }
  .hero { padding: 20px 16px; gap: 18px; }
  .hero-main h1 { font-size: 32px; }
  .ls-bar .search { flex: 1 1 100%; max-width: none; }
  .ls-bar .select.input-sm { flex: 1 1 140px; min-width: 0 !important; }
  .ls-bar .fsel { flex: 1 1 140px; min-width: 0 !important; max-width: none; }
  .ls-bar .grow { display: none; }
  .board { grid-auto-columns: minmax(250px, 86vw); }
}

/* animações reduzidas: tudo que gira ou pulsa roda uma vez e para */
:root[data-movimento="reduzido"] *, :root[data-movimento="reduzido"] *::before, :root[data-movimento="reduzido"] *::after { animation-iteration-count: 1 !important; }
:root[data-movimento="reduzido"] .page { animation: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   3.1 · módulos organizados (abas em cartões, etapas com cor própria,
   fichas com o próximo passo e formulários em blocos)
   ===================================================================== */

/* abas de situação em cartões: substituem os indicadores do topo e os chips repetidos */
.ls-abas.cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--min, 158px), 1fr)); gap: 12px; margin-bottom: 18px; }
.aba-card { --c: var(--acc); position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; padding: 15px 16px 14px; text-align: left; font: inherit; color: var(--text2); cursor: pointer; overflow: hidden;
  border-radius: calc(var(--raio) + 2px); border: 1px solid var(--line2); background: linear-gradient(180deg, var(--panel2), var(--panel)); box-shadow: var(--sh-card); transition: border-color .18s, transform .18s var(--ease), box-shadow .2s, background .2s; }
.aba-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c); opacity: .45; transition: opacity .2s, height .2s; }
.aba-card::after { content: ""; position: absolute; right: -34px; top: -34px; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 24%, transparent), transparent 70%); opacity: .45; pointer-events: none; transition: opacity .2s; }
.aba-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 50%, var(--line2)); }
.aba-card:hover::after { opacity: .8; }
.aba-card:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.aba-card .ac-top { display: flex; align-items: center; gap: 8px; max-width: 100%; font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.aba-card .ac-top { min-height: 26px; }
.aba-card .ac-top > span { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.aba-card .ac-top .ic { width: 15px; height: 15px; flex: 0 0 15px; color: var(--c); }
.aba-card .n { font-family: var(--f-ui); font-size: 28px; font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--ice); font-variant-numeric: tabular-nums; }
.aba-card .ac-sub { max-width: 100%; font-size: 11.5px; line-height: 1.35; color: var(--mute); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.aba-card.is-on { border-color: var(--c); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 17%, var(--panel2)), color-mix(in srgb, var(--c) 5%, var(--panel)));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent), 0 14px 34px -16px color-mix(in srgb, var(--c) 75%, transparent); }
.aba-card.is-on::before { opacity: 1; height: 3px; }
.aba-card.is-on .ac-top { color: color-mix(in srgb, var(--c) 60%, var(--forte)); }
.aba-card.is-on .n { color: var(--forte); }
@media (max-width: 760px) {
  .ls-abas.cartoes { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .aba-card { flex: 0 0 150px; scroll-snap-align: start; }
}

/* etapas do processo: a mesma paleta em todo lugar (config/jr.php) */
.e-aguardando { --c: #fdee3e; --c-rgb: 253, 238, 62; --on: #1c1a02; }
.e-aberto { --c: #aab1bd; --c-rgb: 109, 116, 129; --on: #fff; }
.e-protocolar { --c: #d46bd3; --c-rgb: 140, 2, 139; --on: #fff; }
.e-protocolado { --c: #5cc4f2; --c-rgb: 16, 165, 232; --on: #fff; }
.e-cumprimento { --c: #f06a98; --c-rgb: 223, 34, 100; --on: #fff; }
.e-finalizado { --c: #2fc795; --c-rgb: 7, 150, 106; --on: #fff; }
.e-cancelado { --c: #cbd5e1; --c-rgb: 100, 116, 139; --on: #fff; }
.etapa { background: rgba(var(--c-rgb), .16); border-color: rgba(var(--c-rgb), .5); }
.badge.falta-doc { --c: #ff6464; --c-rgb: 254, 4, 4; background: rgba(254, 4, 4, .08); border: 1px dashed rgba(254, 4, 4, .75); }
.steps-mini span.on { background: rgba(var(--c-rgb, var(--acc-rgb)), .5); }
.steps-mini span.now { background: rgb(var(--c-rgb, var(--acc-rgb))); box-shadow: 0 0 8px rgba(var(--c-rgb, var(--acc-rgb)), .8); }

/* chave e valor: coluna do rótulo mais estreita (o valor não fica jogado no meio) */
.kv { grid-template-columns: minmax(118px, 32%) minmax(0, 1fr); }
.kv.wide { grid-template-columns: minmax(150px, 26%) minmax(0, 1fr); }
.ms-side .kv { grid-template-columns: minmax(92px, 40%) minmax(0, 1fr); }

/* fichas de registro: fluxo, próximo passo e blocos */
.reg-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.reg-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.trajeto { display: flex; align-items: flex-start; margin: 0 0 4px; padding: 16px 12px 14px; border-radius: calc(var(--raio) + 2px); border: 1px solid var(--line); background: rgba(var(--fundo-rgb), .35); overflow-x: auto; }
.trajeto .tj { flex: 1 1 0; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 86px; text-align: center; }
.trajeto .tj::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 20px); right: calc(50% + 20px); height: 2px; border-radius: 2px; background: var(--line2); }
.trajeto .tj:first-child::before { display: none; }
.trajeto .tj i { position: relative; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line2); background: var(--ctl-bg); color: var(--dim); font-style: normal; }
.trajeto .tj i .ic { width: 15px; height: 15px; }
.trajeto .tj span { font-size: 11px; line-height: 1.3; color: var(--mute); }
.trajeto .tj small { font-size: 10px; color: var(--dim); font-family: var(--f-mono); }
.trajeto .tj.feito i { border-color: rgba(var(--ok-rgb), .6); color: var(--ok); background: rgba(var(--ok-rgb), .1); }
.trajeto .tj.feito::before, .trajeto .tj.agora::before { background: linear-gradient(90deg, rgba(var(--ok-rgb), .6), rgba(var(--ok-rgb), .35)); }
.trajeto .tj.agora i { border-color: var(--acc); color: var(--acc-hi); background: rgba(var(--acc-rgb), .15); box-shadow: 0 0 0 4px rgba(var(--acc-rgb), .1), 0 0 20px rgba(var(--acc-rgb), .35); }
.trajeto .tj.agora span { color: var(--ice); font-weight: 600; }
.trajeto .tj.fora i { border-color: rgba(var(--bad-rgb), .65); color: var(--bad-tx); background: rgba(var(--bad-rgb), .1); box-shadow: 0 0 16px rgba(var(--bad-rgb), .25); }
.trajeto .tj.fora span { color: var(--bad-tx); font-weight: 600; }
.passo { position: relative; border-radius: calc(var(--raio) + 2px); border: 1px solid rgba(var(--acc-rgb), .3); background: linear-gradient(180deg, rgba(var(--acc-rgb), .08), rgba(var(--acc-rgb), .015)); padding: 16px; overflow: hidden; }
.passo::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--acc-hi), var(--acc-lo)); }
.passo .eyebrow { margin-bottom: 6px; }
.passo h4 { font-family: var(--f-ui); font-size: 15px; font-weight: 600; color: var(--ice); line-height: 1.3; }
.passo p { margin-top: 5px; font-size: 12px; line-height: 1.5; color: var(--mute); }
.passo .acts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.passo .acts .btn { width: 100%; justify-content: flex-start; }
.passo.ok { border-color: rgba(var(--ok-rgb), .35); background: linear-gradient(180deg, rgba(var(--ok-rgb), .08), rgba(var(--ok-rgb), .015)); }
.passo.ok::before { background: linear-gradient(180deg, #9ff0c6, var(--ok)); }
.passo.bad { border-color: rgba(var(--bad-rgb), .35); background: linear-gradient(180deg, rgba(var(--bad-rgb), .08), rgba(var(--bad-rgb), .015)); }
.passo.bad::before { background: linear-gradient(180deg, #ffb4b4, var(--bad)); }
.pessoas { display: flex; flex-direction: column; gap: 12px; }
.pessoas .pp { display: flex; flex-direction: column; gap: 6px; }
.pessoas .pp > label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.chips-lista { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-info { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; border: 1px solid var(--line2); background: rgba(var(--hl-rgb), .03); font-size: 12px; color: var(--text2); white-space: nowrap; }
.chip-info .ic { width: 13px; height: 13px; color: var(--acc); }
.chip-info.ok { border-color: rgba(var(--ok-rgb), .4); color: var(--ok-tx); background: rgba(var(--ok-rgb), .06); }
.chip-info.ok .ic { color: var(--ok); }
.bloco-vazio { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--raio); border: 1px dashed var(--line2); color: var(--mute); font-size: 12.5px; }
.bloco-vazio .ic { width: 16px; height: 16px; color: var(--dim); flex: 0 0 16px; }
.lista-proc { display: flex; flex-direction: column; gap: 8px; }
.lista-proc .lp { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--raio); border: 1px solid var(--line); background: rgba(var(--hl-rgb), .02); min-width: 0; }
.lista-proc .lp.hov { cursor: pointer; transition: border-color .15s, background .15s; }
.lista-proc .lp.hov:hover { border-color: rgba(var(--acc-rgb), .45); background: rgba(var(--acc-rgb), .04); }
.lista-proc .lp .grow { min-width: 0; }
.lista-proc .lp b { font-size: 13px; color: var(--ice); }
.lista-proc .lp small { display: block; font-size: 11.5px; color: var(--mute); margin-top: 2px; }

/* opções em cartões (modelos de procuração, advogados, bancos, exigências) */
.op-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.op-grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.op { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: var(--raio); border: 1px solid var(--line2); background: rgba(var(--hl-rgb), .018); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.op:hover { border-color: rgba(var(--acc-rgb), .45); }
.op > input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.op .op-ic { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(var(--hl-rgb), .05); color: var(--mute); transition: background .15s, color .15s; }
.op .op-ic .ic { width: 15px; height: 15px; }
.op .op-t { min-width: 0; flex: 1 1 auto; }
.op .op-t b { display: block; font-size: 12.5px; font-weight: 600; color: var(--ice); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op .op-t small { display: block; margin-top: 2px; font-size: 11px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op:has(> input:checked) { border-color: rgba(var(--acc-rgb), .8); background: rgba(var(--acc-rgb), .09); box-shadow: 0 0 0 1px rgba(var(--acc-rgb), .2); }
.op:has(> input:checked) .op-ic { background: var(--acc); color: var(--on-acc); }
.op:has(> input:focus-visible) { outline: 2px solid var(--acc); outline-offset: 2px; }
.op.inativo { opacity: .6; }
.planos { display: flex; flex-direction: column; gap: 8px; }
.plano { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr) 34px; align-items: center; gap: 8px; }
.plano .pn { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(var(--acc-rgb), .12); color: var(--acc-hi); font-family: var(--f-mono); font-size: 11px; }
.form-box { border: 1px solid var(--line); border-radius: calc(var(--raio) + 2px); background: rgba(var(--fundo-rgb), .28); padding: 16px; }
.form-box + .form-box { margin-top: 14px; }
.form-box > h4 { display: flex; align-items: center; gap: 10px; font-family: var(--f-ui); font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--ice); margin-bottom: 4px; }
.form-box > h4 .ic { width: 16px; height: 16px; color: var(--acc); }
.form-box > h4 .num { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(var(--acc-rgb), .14); color: var(--acc-hi); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0; }
.form-box > p { font-size: 12px; color: var(--mute); margin-bottom: 12px; line-height: 1.5; }
.form-box > h4 + .form-grid, .form-box > h4 + .op-grid { margin-top: 12px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--acc-hi); font: inherit; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.link-btn .ic { width: 13px; height: 13px; }
.link-btn:hover { text-decoration: underline; }
iframe.previa { display: block; width: 100%; height: 64vh; border: 0; border-radius: var(--raio); background: #fff; box-shadow: 0 10px 40px rgba(var(--sombra-rgb), calc(.35 * var(--sombra-k))); }
.cli-pick { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--raio); border: 1px solid rgba(var(--acc-rgb), .3); background: rgba(var(--acc-rgb), .05); min-width: 0; }
.cli-pick .grow { min-width: 0; }
.cli-pick b { display: block; color: var(--ice); font-size: 14px; }
.cli-pick small { display: block; color: var(--mute); font-size: 11.5px; margin-top: 2px; }
@media (max-width: 760px) {
  .plano { grid-template-columns: 22px minmax(0, 1fr) 30px; }
  .plano > :nth-child(3) { grid-column: 2 / 3; }
  .trajeto .tj { min-width: 74px; }
}

/* último registro nas listas: a ação é cortada com reticências (a tabela não passa da tela) */
.cell-sub.por .pq-a { min-width: 0; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* botões com o atributo hidden somem de verdade (o .btn tem display próprio) */
.btn[hidden], .form-box[hidden], .op-grid[hidden], .planos[hidden] { display: none !important; }

/* ---------- 3.2 · quadros de tarefas (dados reais) ---------- */
.qd-quadro-sel { min-width: 200px; max-width: 280px; }
.qd-bar .control { width: min(280px, 100%); }
.qd-col .kb-body { gap: 8px; }
.qd-col.final .kb-body .qd-card { opacity: .92; }
.qd-card.atrasado { border-color: rgba(var(--bad-rgb), .45); }
.qd-card .qd-vinc { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 11px; color: var(--text2); min-width: 0; }
.qd-card .qd-vinc .ic { width: 12px; height: 12px; flex: 0 0 12px; color: var(--acc); }
.qd-card .qd-vinc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qd-card .qd-onde { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 10.5px; color: var(--mute); }
.qd-card .qd-onde .ic { width: 11px; height: 11px; }
.qd-meta span.ok { color: var(--ok); }
.qd-add-card { display: flex; align-items: center; gap: 6px; width: calc(100% - 20px); margin: 0 10px 10px; padding: 8px 10px; border-radius: var(--raio-sm); border: 1px dashed transparent; background: none; color: var(--mute); font-size: 12px; cursor: pointer; transition: all .18s; }
.qd-add-card:hover { color: var(--acc-hi); border-color: rgba(var(--acc-rgb), .45); background: rgba(var(--acc-rgb), .05); }
.qd-add-card .ic { width: 14px; height: 14px; }
.qd-add-form { padding: 0 10px 10px; }
.qd-lane-vazia { padding: 18px; }
.kb-empty { padding: 14px 8px; text-align: center; font-size: 12px; color: var(--dim); line-height: 1.5; }
.kb-empty.hidden { display: none; }

/* escolha de pessoas, etiquetas e registros */
.qd-escolha { display: flex; flex-direction: column; gap: 4px; max-height: 52vh; overflow-y: auto; }
.qd-op { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: var(--raio-sm); border: 1px solid transparent; background: none; color: inherit; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.qd-op:hover { background: rgba(var(--hl-rgb), .03); border-color: var(--line2); }
.qd-op input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qd-op > .ic { width: 16px; height: 16px; margin-left: auto; color: var(--acc); opacity: 0; transition: opacity .15s; }
.qd-op:has(input:checked) { background: rgba(var(--acc-rgb), .08); border-color: rgba(var(--acc-rgb), .4); }
.qd-op:has(input:checked) > .ic { opacity: 1; }
.qd-op[hidden] { display: none; }
.qd-op-v { flex: 0 0 auto; display: grid; place-items: center; min-width: 28px; }
.qd-op-v .ic { width: 16px; height: 16px; color: var(--acc); }
.qd-op-t { display: flex; flex-direction: column; min-width: 0; }
.qd-op-t b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qd-op-t small { font-size: 11px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qd-lb-dot { display: inline-block; width: 22px; height: 12px; border-radius: 3px; background: color-mix(in srgb, var(--c) 70%, transparent); border: 1px solid var(--c); }
button.qd-lb-sel { cursor: pointer; height: 24px; padding: 0 10px; font-size: 9.5px; opacity: .55; transition: opacity .15s, box-shadow .15s; }
button.qd-lb-sel:hover { opacity: .85; }
button.qd-lb-sel.is-on { opacity: 1; box-shadow: 0 0 0 1px var(--c), 0 0 12px color-mix(in srgb, var(--c) 45%, transparent); }

/* cartão aberto */
.qd-modal .modal-head { align-items: center; }
.qd-modal .qd-mhead { flex-wrap: wrap; gap: 10px; }
.qd-modal .qd-quadro { display: inline-flex; align-items: center; gap: 5px; }
.qd-modal .qd-quadro .ic { width: 12px; height: 12px; }
.qd-modal .qd-where[disabled] { opacity: .7; cursor: default; }
.qd-modal .qd-titulo h2.editavel { cursor: text; border-radius: var(--raio-sm); padding: 2px 4px; margin: -2px -4px; transition: background .15s; }
.qd-modal .qd-titulo h2.editavel:hover, .qd-modal .qd-titulo h2.editavel:focus { background: rgba(var(--hl-rgb), .04); outline: none; }
.qd-modal .qd-titulo-inp { font-family: var(--f-ui); font-size: 15px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.qd-modal .qd-titulo .ok-t { color: var(--ok); display: inline-flex; align-items: center; gap: 3px; }
.qd-modal .qd-titulo .ok-t .ic { width: 11px; height: 11px; }
.qd-modal .qd-blocos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 18px 0 0 38px; }
.qd-modal .qd-b .eyebrow { margin-bottom: 8px; }
.qd-modal .qd-b .link { display: inline-flex; align-items: center; gap: 6px; }
.qd-modal .qd-b .link .ic { width: 14px; height: 14px; }
.qd-modal .qd-desc textarea { min-height: 96px; }
.qd-modal .qd-desc-txt { font-size: 13.5px; line-height: 1.6; color: var(--text2); white-space: normal; }
.qd-modal .qd-check-list { display: flex; flex-direction: column; gap: 18px; }
.qd-modal .qd-ck .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.qd-modal .qd-ck .eyebrow .ic { width: 13px; height: 13px; }
.qd-modal .qd-ck-it { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: var(--raio-sm); }
.qd-modal .qd-ck-it:hover { background: rgba(var(--hl-rgb), .025); }
.qd-modal .qd-ck-it .check { flex: 1 1 auto; min-width: 0; }
.qd-modal .qd-ck-it.feito .check span:last-child { text-decoration: line-through; color: var(--mute); }
.qd-modal .qd-ck-it .btn-icon { opacity: 0; transition: opacity .15s; }
.qd-modal .qd-ck-it:hover .btn-icon { opacity: 1; }
.qd-modal .qd-anexos { margin: 20px 0 0 38px; }
.qd-modal .qd-anexo { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--raio-sm); border: 1px solid var(--line); margin-bottom: 6px; }
.qd-modal .qd-anexo .link { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qd-modal .ms-side .chat { max-height: calc(100vh - 360px) !important; overflow: auto; }
.qd-et-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qd-et-row .input { flex: 1 1 180px; }
.qd-arq { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.qd-arq-it { display: flex; flex-direction: column; gap: 8px; }
.qd-mi { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; }
@media (max-width: 760px) {
  .qd-modal .qd-blocos, .qd-modal .qd-anexos { margin-left: 0; grid-template-columns: minmax(0, 1fr); }
  .qd-bar .control { width: 100%; }
}
.row[hidden], .control[hidden], .row-wrap[hidden], .row-between[hidden] { display: none !important; }
.qd-modal .qd-anexos .eyebrow { display: flex; align-items: center; gap: 6px; }
.qd-modal .qd-anexos .eyebrow .ic { width: 13px; height: 13px; }

/* ---------- 3.3 · WhatsApp (histórico real) ---------- */
.wa-arq { display: flex; align-items: center; gap: 10px; min-width: 200px; padding: 6px 2px; }
.wa-arq .fic { width: 34px; height: 34px; flex: 0 0 34px; border-radius: var(--raio-sm); display: grid; place-items: center; background: rgba(var(--hl-rgb), .06); color: var(--acc); }
.wa-arq .fic .ic { width: 17px; height: 17px; }
.msg .m-meta .tk .ic { width: 13px; height: 13px; color: var(--mute); }
.msg .m-meta .tk.lida .ic { color: #53bdeb; }
.msg .m-meta .tk.erro .ic { color: var(--bad); }
.msg.erro { box-shadow: inset 0 0 0 1px rgba(var(--bad-rgb), .45); }
.msg .m-reacao { position: relative; display: inline-block; margin-top: 4px; font-size: 14px; }
.msg code { font-family: var(--f-mono); font-size: 12px; background: rgba(var(--hl-rgb), .06); padding: 1px 4px; border-radius: 4px; }
.wa-aviso-envio { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; font-size: 11.5px; line-height: 1.5; color: var(--text2); }
.wa-aviso-envio .ic { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 2px; color: var(--warn); }
.wa-conv .wa-tag .ic { width: 10px; height: 10px; }
.wa-c-mid span.wa-unread { flex: 0 0 auto; min-width: 18px; overflow: visible; }
.op-grid.tipos { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.op-grid.tipos .op { align-items: flex-start; }
.op-grid.tipos .op-t small { white-space: normal; line-height: 1.4; }
.qd-ht { overflow: hidden; }
.qd-ht b { max-width: 100%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 3.4 · cálculos mês a mês ---------- */
.calc-grid-wrap { max-height: 56vh; overflow: auto; }
.calc-grid th, .calc-grid td { white-space: nowrap; }
.calc-grid td .input.input-sm { height: 30px; min-width: 110px; text-align: right; padding: 0 8px; }
.calc-grid td .input.input-sm.dias { min-width: 64px; width: 72px; text-align: center; }
.calc-grid tr.calc-zero td { color: var(--dim); }
.calc-lei { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 4px; font-size: 9px; font-weight: 700; background: rgba(var(--hl-rgb), .06); color: var(--mute); }
.calc-linha { display: grid; grid-template-columns: 130px 140px 90px minmax(0, 1fr) 34px; gap: 8px; align-items: center; margin-bottom: 8px; }
.calc-linha:has(> select:first-child) { grid-template-columns: 120px 140px 90px minmax(0, 1fr) 34px; }
.calc-tot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.calc-tot-v { display: flex; flex-direction: column; gap: 2px; }
.calc-tot-v b { font-family: var(--f-display); font-size: 26px; color: var(--acc-hi); }
@media (max-width: 760px) { .calc-linha, .calc-linha:has(> select:first-child) { grid-template-columns: 1fr 1fr; } }
.calc-grid tr[hidden] { display: none; }

/* =====================================================================
   Atualização 18 · envio de arquivos (JR.drop) — o mesmo em todo o painel
   ===================================================================== */
.dz { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dz-alvo { position: relative; display: flex; align-items: center; gap: 16px; padding: 22px 20px; border-radius: calc(var(--raio) + 4px); cursor: pointer; overflow: hidden; isolation: isolate;
  border: 1px dashed rgba(var(--acc-rgb), .45); background: linear-gradient(180deg, rgba(var(--acc-rgb), .06), rgba(var(--acc-rgb), .015));
  transition: border-color .2s, background .2s, transform .25s var(--ease-out), box-shadow .25s; }
.dz.compacto .dz-alvo { padding: 14px 16px; }
.dz-alvo:hover { border-color: rgba(var(--acc-rgb), .8); background: linear-gradient(180deg, rgba(var(--acc-rgb), .1), rgba(var(--acc-rgb), .03)); }
.dz-alvo:focus-within { box-shadow: var(--glow); }
.dz-ic { position: relative; width: 50px; height: 50px; flex: 0 0 50px; display: grid; place-items: center; border-radius: 14px; background: rgba(var(--acc-rgb), .12); border: 1px solid rgba(var(--acc-rgb), .35); transition: transform .3s var(--ease-back), background .2s; }
.dz.compacto .dz-ic { width: 40px; height: 40px; flex-basis: 40px; border-radius: 11px; }
.dz-ic .ic { width: 22px; height: 22px; color: var(--acc-hi); transition: transform .3s var(--ease-back); }
.dz-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dz-t b { font-size: 14px; color: var(--ice); font-weight: 600; }
.dz-t small { font-size: 12px; color: var(--mute); }
.dz-t u { text-decoration: none; color: var(--acc-hi); border-bottom: 1px dashed rgba(var(--acc-rgb), .6); cursor: pointer; }
.dz-t u:hover { color: var(--ice); border-bottom-color: var(--ice); }
/* arrastando por cima */
.dz-alvo.is-over { border-style: solid; border-color: var(--acc-hi); background: linear-gradient(180deg, rgba(var(--acc-rgb), .18), rgba(var(--acc-rgb), .06)); transform: scale(1.012); box-shadow: 0 0 0 4px rgba(var(--acc-rgb), .12), 0 12px 40px rgba(var(--acc-rgb), .14); }
.dz-alvo.is-over .dz-ic { transform: translateY(-3px) scale(1.08); background: rgba(var(--acc-rgb), .25); }
.dz-alvo.is-over .dz-ic .ic { transform: translateY(-2px); }
.dz-alvo::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(420px 120px at var(--mx, 50%) 110%, rgba(var(--acc-rgb), .28), transparent 70%); transition: opacity .25s; }
.dz-alvo.is-over::after { opacity: 1; animation: dzRespira 1.6s ease-in-out infinite; }
@keyframes dzRespira { 50% { opacity: .55; } }
/* arrastando arquivos em qualquer lugar da janela: os quadros se acendem */
html.arrastando-arquivos .dz-alvo:not(.is-over) { border-color: rgba(var(--acc-rgb), .75); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .07); }
/* acabou de receber */
.dz-alvo.recebeu .dz-ic { animation: dzPega .6s var(--ease-back); }
@keyframes dzPega { 30% { transform: scale(.86); } 70% { transform: scale(1.1); } }
/* lista */
.dz-lista { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dz-its { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dz-it { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: var(--raio); border: 1px solid var(--line2); background: rgba(var(--hl-rgb), .02); animation: dzEntra .28s var(--ease-out) both; min-width: 0; transition: border-color .2s, background .2s; }
@keyframes dzEntra { from { opacity: 0; transform: translateY(6px); } }
.dz-mini { width: 38px; height: 38px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: rgba(var(--hl-rgb), .04); border: 1px solid var(--line); }
.dz-mini img { width: 100%; height: 100%; object-fit: cover; }
.dz-n { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dz-n b { font-size: 12.5px; font-weight: 600; color: var(--ice); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-n small { display: flex; gap: 10px; font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); }
.dz-barra { position: relative; height: 3px; border-radius: 3px; background: rgba(var(--hl-rgb), .06); overflow: hidden; opacity: 0; transition: opacity .2s; }
.dz-barra i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--acc), var(--acc-hi)); transition: width .25s var(--ease-out); overflow: hidden; }
.dz-barra i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(var(--hl-rgb), .55), transparent); transform: translateX(-100%); animation: dzBrilho 1.1s linear infinite; }
@keyframes dzBrilho { to { transform: translateX(100%); } }
.dz-it.enviando .dz-barra, .dz-it.preparando .dz-barra, .dz-it.ok .dz-barra { opacity: 1; }
.dz-it.enviando { border-color: rgba(var(--acc-rgb), .45); }
.dz-it.ok { border-color: rgba(var(--ok-rgb), .4); background: rgba(var(--ok-rgb), .04); }
.dz-it.ok .dz-barra i { background: var(--ok); }
.dz-it.ok .dz-barra i::after, .dz-it.fila .dz-barra i::after { display: none; }
.dz-it.ok [data-dz-sttxt] { color: var(--ok); }
.dz-it.erro { border-color: rgba(var(--bad-rgb), .45); background: rgba(var(--bad-rgb), .05); }
.dz-it.erro [data-dz-sttxt] { color: var(--bad); }
.dz-st { width: 22px; display: grid; place-items: center; }
.dz-st .ic { width: 16px; height: 16px; }
.dz-it.ok .dz-st .ic { color: var(--ok); animation: dzOk .45s var(--ease-back); }
@keyframes dzOk { from { transform: scale(0) rotate(-40deg); } }
.dz-it.erro .dz-st .ic { color: var(--bad); }
.dz-giro { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(var(--acc-rgb), .25); border-top-color: var(--acc-hi); animation: spin .8s linear infinite; }
.dz-acts { display: flex; gap: 2px; }
.dz-grupo { border-radius: calc(var(--raio) + 2px); border: 1px solid rgba(var(--acc-rgb), .28); background: rgba(var(--acc-rgb), .03); padding: 10px; animation: dzEntra .3s var(--ease-out) both; min-width: 0; }
.dz-gh { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dz-gic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(var(--acc-rgb), .14); }
.dz-gic .ic { width: 16px; height: 16px; color: var(--acc-hi); }
.dz-gt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dz-gt b { font-size: 13px; color: var(--ice); }
.dz-gt small { font-size: 11px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-rodape { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--mute); padding: 0 2px; }
.ok-text { color: var(--ok); }

/* cálculo: vínculos, resumo e correção */
.calc-resumo { margin-bottom: 14px; padding: 16px 18px; border-radius: calc(var(--raio) + 4px); border: 1px solid rgba(var(--acc-rgb), .4); background: linear-gradient(135deg, rgba(var(--acc-rgb), .09), rgba(var(--acc-rgb), .02)); }
.calc-resumo:empty { display: none; }
.cr-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cr-cab > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.cr-total { font-family: var(--f-display); font-size: 30px; color: var(--acc-hi); line-height: 1.1; }
.cr-cab small { font-size: 12px; color: var(--mute); }
.cr-teto { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--raio); font-size: 12.5px; font-weight: 600; }
.cr-teto .ic { width: 16px; height: 16px; }
.cr-teto small { display: block; font-weight: 400; font-size: 11px; color: var(--mute); }
.cr-teto.ok { border: 1px solid rgba(var(--ok-rgb), .4); color: var(--ok); }
.cr-teto.bad { border: 1px solid rgba(var(--bad-rgb), .5); color: var(--bad); background: rgba(var(--bad-rgb), .06); }
.cr-tab { margin-top: 12px; }
.cr-tab tbody tr { cursor: pointer; }
.cr-tab tbody tr:hover td { background: rgba(var(--acc-rgb), .05); }
.cr-tab tr.is-sel td { background: rgba(var(--acc-rgb), .09); }
.cr-tab tfoot td { border-top: 1px solid rgba(var(--acc-rgb), .35); padding-top: 8px; }
.calc-corr { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 14px; border-radius: var(--raio); border: 1px solid var(--line2); background: rgba(var(--hl-rgb), .015); }
.calc-corr:empty { display: none; }
.calc-corr .cc-ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(var(--info-rgb), .12); border: 1px solid rgba(var(--info-rgb), .35); align-self: center; }
.calc-corr .cc-ic .ic { width: 17px; height: 17px; color: var(--info); }
.calc-corr .cc-t { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; align-self: center; min-width: 0; }
.calc-corr .cc-t b { font-size: 13px; color: var(--ice); }
.calc-corr .cc-t small { font-size: 11px; color: var(--mute); }
.calc-corr .field { margin: 0; }
.calc-corr .field .select { min-width: 260px; }
.calc-corr .field .input { width: 110px; }
.calc-vtabs { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.calc-vtabs:empty { display: none; }
.cv-lista { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.cv-aba { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: var(--raio); border: 1px solid var(--line2); background: rgba(var(--hl-rgb), .02); color: var(--text2); cursor: pointer; text-align: left; transition: border-color .2s, background .2s; }
.cv-aba:hover { border-color: rgba(var(--acc-rgb), .5); }
.cv-aba.is-on { border-color: var(--acc); background: rgba(var(--acc-rgb), .1); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .08); }
.cv-n { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-family: var(--f-mono); font-size: 11px; background: rgba(var(--acc-rgb), .15); color: var(--acc-hi); }
.cv-aba.is-on .cv-n { background: var(--acc); color: #0b0d14; }
.cv-t { display: flex; flex-direction: column; gap: 1px; }
.cv-t b { font-size: 12.5px; color: var(--ice); }
.cv-t small { font-size: 10.5px; color: var(--mute); font-family: var(--f-mono); }
.cv-mais { border-style: dashed; }
.cv-mais > .ic { width: 16px; height: 16px; color: var(--acc); margin-left: 4px; }
.calc-lendo span { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.calc-lendo small { font-size: 11.5px; color: var(--mute); }
.cl-barra { position: relative; height: 4px; border-radius: 4px; background: rgba(var(--hl-rgb), .06); overflow: hidden; margin-top: 4px; }
.cl-barra i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: linear-gradient(90deg, var(--info), var(--acc-hi)); transition: width .4s var(--ease-out); }
.calc-irmaos { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.calc-irmaos .chip { cursor: pointer; }
.cr-corr { width: 100%; margin: 0; }
.cr-corr .select { width: 100%; min-width: 250px; }
.cr-jz { display: grid; grid-template-columns: 40px minmax(0, 1fr) 160px 110px; gap: 14px; align-items: center; margin-top: 8px; padding: 12px 14px; border-radius: var(--raio); border: 1px solid var(--line2); }
.cr-jz .field { margin: 0; }
@media (max-width: 720px) { .cr-jz { grid-template-columns: 40px minmax(0, 1fr); } .calc-corr .field .select { min-width: 0; width: 100%; } .dz-alvo { padding: 16px; } }
.dz-bandeja { position: fixed; left: 20px; bottom: 20px; z-index: calc(var(--z-modal) + 20); display: flex; flex-direction: column; gap: 8px; width: min(340px, calc(100vw - 40px)); pointer-events: none; }
.dz-bandeja .dz-it { grid-template-columns: 38px minmax(0, 1fr) auto; background: rgba(12, 15, 24, .98); box-shadow: var(--sh-pop); pointer-events: auto; }
.dz-bandeja .dz-mini .ic { width: 18px; height: 18px; color: var(--acc-hi); }
.dz-it.sai { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
/* checklist do processo: arrastar documentos */
.px-dz { margin: 10px 0 12px; display: flex; flex-direction: column; gap: 8px; }
.px-dz-acs { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--raio); border: 1px solid rgba(var(--acc-rgb), .4); background: rgba(var(--acc-rgb), .06); }
.px-dz-acs[hidden] { display: none; }
.px-dz-sel { width: auto; min-width: 190px; max-width: 260px; height: 30px; font-size: 12px; }
.px-doc.alvo { outline: 2px dashed var(--acc-hi); outline-offset: -2px; background: rgba(var(--acc-rgb), .1); }
.px-doc.alvo::after { content: "Solte para enviar aqui"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); padding: 4px 10px; border-radius: 999px; background: var(--acc); color: #0b0d14; font-size: 11px; font-weight: 700; pointer-events: none; }
.px-doc { position: relative; }
/* WhatsApp: clicar na mídia abre */
.wa-arq.abre { padding: 8px 10px; border-radius: var(--raio); border: 1px solid transparent; color: inherit; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s; }
.wa-arq.abre > .ic { width: 15px; height: 15px; margin-left: auto; color: var(--dim); }
.wa-arq.abre:hover { background: rgba(var(--hl-rgb), .05); border-color: rgba(var(--acc-rgb), .35); }
.wa-arq.abre:hover > .ic { color: var(--acc-hi); }
a > .wa-img { cursor: zoom-in; transition: filter .2s; }
a:hover > .wa-img { filter: brightness(1.08); }

/* WhatsApp · lateral do cliente (Atualização 18) */
.wa-perfil { padding: 12px; border-radius: calc(var(--raio) + 4px); border: 1px solid rgba(var(--acc-rgb), .3); background: linear-gradient(160deg, rgba(var(--acc-rgb), .09), rgba(var(--acc-rgb), .01) 60%); }
.wa-perfil-top { display: flex; align-items: center; gap: 12px; width: 100%; padding: 4px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; border-radius: var(--raio); }
.wa-perfil-top:hover { background: rgba(var(--hl-rgb), .03); }
.wa-perfil-n { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.wa-perfil-n b { font-size: 14px; color: var(--ice); line-height: 1.25; }
.wa-perfil-n small { font-size: 11px; color: var(--mute); }
.wa-perfil-seta { width: 16px; height: 16px; color: var(--dim); }
.wa-perfil-top:hover .wa-perfil-seta { color: var(--acc-hi); }
.wa-perfil-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 4px 0; }
.wa-perfil-chips:empty { display: none; }
.wa-perfil-acs { display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: 6px; margin-top: 12px; }
.wa-ac { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: var(--raio); border: 1px solid var(--line2); background: rgba(var(--fundo-rgb), .5); color: var(--text2); font-size: 10.5px; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.wa-ac .ic { width: 16px; height: 16px; color: var(--acc); }
.wa-ac:hover { border-color: rgba(var(--acc-rgb), .55); color: var(--ice); background: rgba(var(--acc-rgb), .08); }
.wa-ac.perigo .ic { color: var(--mute); }
.wa-ac.perigo:hover { border-color: rgba(var(--bad-rgb), .55); color: var(--bad-tx); background: rgba(var(--bad-rgb), .06); }
.wa-ac.perigo:hover .ic { color: var(--bad); }
.wa-resumo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.wa-rs { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 2px; border-radius: var(--raio); border: 1px solid var(--line); background: rgba(var(--hl-rgb), .015); color: var(--mute); cursor: pointer; }
.wa-rs .ic { width: 14px; height: 14px; color: var(--dim); }
.wa-rs b { font-family: var(--f-display); font-size: 18px; line-height: 1.1; color: var(--text2); }
.wa-rs small { font-size: 9.5px; text-align: center; line-height: 1.2; }
.wa-rs.tem b { color: var(--acc-hi); } .wa-rs.tem .ic { color: var(--acc); }
.wa-rs:hover { border-color: rgba(var(--acc-rgb), .45); }
.wa-acc { margin-top: 10px; border-radius: var(--raio); border: 1px solid var(--line); background: rgba(var(--hl-rgb), .012); transition: border-color .2s, box-shadow .3s; }
.wa-acc[open] { border-color: var(--line2); }
.wa-acc.pisca { box-shadow: 0 0 0 2px rgba(var(--acc-rgb), .45); }
.wa-acc > summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; list-style: none; user-select: none; }
.wa-acc > summary::-webkit-details-marker { display: none; }
.wa-acc-ic { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: rgba(var(--acc-rgb), .1); }
.wa-acc-ic .ic { width: 14px; height: 14px; color: var(--acc-hi); }
.wa-acc-t { font-size: 12.5px; font-weight: 600; color: var(--ice); }
.wa-acc-n { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; display: inline-grid; place-items: center; font-family: var(--f-mono); font-size: 10px; background: rgba(var(--acc-rgb), .18); color: var(--acc-hi); }
.wa-acc-n.zero { background: rgba(var(--hl-rgb), .05); color: var(--dim); }
.wa-acc-ok { font-size: 10.5px; color: var(--ok); }
.wa-acc-add { margin-left: auto; }
.wa-acc-seta { width: 14px; height: 14px; color: var(--dim); margin-left: auto; transition: transform .2s; }
.wa-acc-add + .wa-acc-seta, .wa-acc-ok + .wa-acc-seta { margin-left: 0; }
.wa-acc-ok { margin-left: auto; }
.wa-acc[open] > summary .wa-acc-seta { transform: rotate(180deg); }
.wa-acc-b { padding: 0 8px 8px; display: flex; flex-direction: column; gap: 6px; }
.wa-acc-vazio { font-size: 11.5px; color: var(--dim); padding: 2px 6px 6px; }
.wa-cc { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px 9px 12px; border-radius: var(--raio-sm); border: 1px solid var(--line); background: rgba(var(--fundo-rgb), .55); color: inherit; text-align: left; cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s; }
.wa-cc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--line3); }
.wa-cc.ok::before { background: var(--ok); } .wa-cc.warn::before { background: var(--warn); } .wa-cc.bad::before { background: var(--bad); }
.wa-cc[class*="et-"]::before { background: var(--acc); }
.wa-cc:hover { border-color: rgba(var(--acc-rgb), .45); background: rgba(var(--acc-rgb), .05); }
.wa-cc-ic { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(var(--hl-rgb), .04); }
.wa-cc-ic .ic { width: 14px; height: 14px; color: var(--mute); }
.wa-cc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wa-cc-t b { font-size: 12px; color: var(--ice); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-cc-t small { font-size: 10.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-cc-docs { display: block; height: 3px; margin-top: 4px; border-radius: 3px; background: rgba(var(--hl-rgb), .07); overflow: hidden; }
.wa-cc-docs i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--ok)); }
.wa-cc-seta { width: 14px; height: 14px; color: var(--dim); }
.wa-cc .badge { flex: 0 0 auto; }
/* WhatsApp · cadastro rápido na lateral */
.wa-cad { display: flex; flex-direction: column; gap: 8px; animation: dzEntra .25s var(--ease-out) both; }
.wa-cad-h { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: var(--raio); border: 1px solid rgba(var(--acc-rgb), .35); background: rgba(var(--acc-rgb), .06); }
.wa-cad-h b { display: block; font-size: 13px; color: var(--ice); }
.wa-cad-h small { font-size: 11px; color: var(--mute); line-height: 1.35; }
.wa-cad-sec { margin-top: 6px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); }
.wa-cad .form-grid { gap: 8px 8px; }
.wa-cad .field { margin: 0; }
.wa-cad .field label { font-size: 9.5px; }
.wa-cad-acs { position: sticky; bottom: -24px; display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; padding: 10px 0 4px; background: linear-gradient(transparent, rgba(var(--fundo-rgb), .96) 30%); }
/* WhatsApp · pronto para conectar */
.wa-pronto { margin-bottom: 16px; padding: 14px; border-radius: calc(var(--raio) + 2px); border: 1px solid rgba(var(--warn-rgb), .4); background: rgba(var(--warn-rgb), .05); }
.wa-pronto.ok { border-color: rgba(var(--ok-rgb), .45); background: rgba(var(--ok-rgb), .05); }
.wa-pronto-h { display: flex; align-items: center; gap: 12px; }
.wa-pronto-h > .ic { width: 22px; height: 22px; color: var(--warn); flex: 0 0 22px; }
.wa-pronto.ok .wa-pronto-h > .ic { color: var(--ok); }
.wa-pronto-h > div { flex: 1; min-width: 0; }
.wa-pronto-h b { display: block; font-size: 13.5px; color: var(--ice); }
.wa-pronto-h small { font-size: 11.5px; color: var(--mute); }
.wa-pronto-l { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.wa-pr { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--raio); border: 1px solid var(--line); background: rgba(var(--fundo-rgb), .5); }
.wa-pr-n { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 50%; font-family: var(--f-mono); font-size: 11px; border: 1px solid var(--line3); color: var(--mute); }
.wa-pr.ok .wa-pr-n { background: rgba(var(--ok-rgb), .18); border-color: rgba(var(--ok-rgb), .6); color: var(--ok); }
.wa-pr.ok .wa-pr-n .ic { width: 13px; height: 13px; }
.wa-pr.falta .wa-pr-n { border-color: rgba(var(--warn-rgb), .7); color: var(--warn); }
.wa-pr b { display: block; font-size: 12.5px; color: var(--ice); }
.wa-pr small { font-size: 11px; color: var(--mute); }
.wa-desv { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 8px; padding: 4px; border: 0; background: none; color: var(--dim); font-size: 10.5px; cursor: pointer; }
.wa-desv .ic { width: 12px; height: 12px; }
.wa-desv:hover { color: var(--bad-tx); }

/* WhatsApp · larguras: lista de conversas mais estreita, lateral do cliente mais larga */
@media (min-width: 1281px) {
  .wa-view[data-view="conversas"].is-on { grid-template-columns: 320px minmax(0, 1fr) 380px; }
  .wa-view[data-view="conversas"].is-on:not(.chat-on) { grid-template-columns: 320px minmax(0, 1fr); }
}
@media (min-width: 1281px) and (max-width: 1500px) { .wa-view[data-view="conversas"].is-on { grid-template-columns: 290px minmax(0, 1fr) 350px; } }
@media (max-width: 1280px) { .wa-view[data-view="conversas"].is-on.info-on .wa-info { width: 380px; } }
/* lateral: sem título; as abas ocupam a largura toda (e não ficam em cima da barra de rolagem) */
.wa-info-tabs { display: flex; align-items: stretch; gap: 4px; padding: 8px 10px 0 12px; border-bottom: 1px solid var(--line); }
.wa-info-tabs .tabs { flex: 1; display: grid; grid-template-columns: 1fr 1fr; padding: 0; border-bottom: 0; overflow: visible; }
.wa-info-tabs .tabs .tab { justify-content: center; width: 100%; }
.wa-info-tabs .info-close { align-self: center; }
.wa-info .wa-info-body { scrollbar-gutter: stable; }
/* botões da conversa só com ícone */
.wa-ia-ic { position: relative; }
.wa-ia-ic > i { position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.wa-ia-ic.on { color: var(--ia-tx); border-color: rgba(var(--ia-rgb), .6); background: rgba(var(--ia-rgb), .14); box-shadow: 0 0 14px rgba(var(--ia-rgb), .25); }
.wa-ia-ic.on > i { background: var(--ia); box-shadow: 0 0 6px var(--ia); }
.wa-resp-btn:hover { color: var(--ok); border-color: rgba(var(--ok-rgb), .6); }
.wa-chat-head .badge .ic { width: 12px; height: 12px; }
/* pasta do Dropbox em espaço estreito (lateral do WhatsApp): só o nome, botões só com ícone */
.pasta-card { container-type: inline-size; container-name: pasta; }
.pc-botoes { display: inline-flex; gap: 6px; align-items: center; }
@container pasta (max-width: 460px) {
  .pc-head { padding: 10px 12px; gap: 8px; }
  .pc-head h3 { font-size: 10.5px; }
  .pc-botoes { margin-left: auto; }
  .pc-botoes .btn { padding: 0; width: 32px; justify-content: center; }
  .pc-botoes .pc-bt { display: none; }
  .pc-cab { display: none; }
  .pc-it { grid-template-columns: minmax(0, 1fr) auto; padding: 7px 8px; }
  .pc-it .pc-tam, .pc-it .pc-q { display: none; }
  .pc-acs { opacity: 1; }
  .pc-nome { gap: 10px; }
  .pc-nome > svg, .pc-nome > .fi, .pc-nome > span:first-child:not(.pc-t) { flex: 0 0 auto; }
  .pc-t b { font-size: 12.5px; }
  .pc-pe { padding: 8px 12px 10px; font-size: 11px; }
  .pc-trilha { width: 100%; order: 3; }
}

/* janela de processamento (IA lendo, painel calculando) */
.pr-modal .modal-body { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 22px; }
.pr-palco { position: relative; display: flex; align-items: center; justify-content: center; gap: 26px; height: 150px; width: 100%; }
.pr-doc { position: relative; width: 92px; height: 118px; padding: 16px 12px; border-radius: 8px; border: 1px solid rgba(var(--acc-rgb), .35); background: linear-gradient(180deg, rgba(var(--hl-rgb), .05), rgba(var(--hl-rgb), .015)); display: flex; flex-direction: column; gap: 7px; overflow: hidden; box-shadow: 0 10px 30px rgba(var(--sombra-rgb), calc(.4 * var(--sombra-k))); transform: rotate(-4deg); }
.pr-doc i { display: block; height: 4px; width: 100%; border-radius: 2px; background: rgba(var(--linha-rgb), .16); }
.pr-doc i:first-child { width: 55%; background: rgba(var(--acc-rgb), .5); }
.pr-scan { position: absolute; left: 0; right: 0; top: 0; height: 26px; background: linear-gradient(180deg, transparent, rgba(var(--acc-rgb), .35), transparent); border-bottom: 1px solid rgba(var(--acc-hi-rgb), .9); animation: prScan 1.8s ease-in-out infinite alternate; will-change: transform; }
@keyframes prScan { from { transform: translateY(-26px); } to { transform: translateY(118px); } }
.pr-fluxo { display: flex; gap: 6px; }
.pr-fluxo span { width: 6px; height: 6px; border-radius: 50%; background: var(--acc-hi); box-shadow: 0 0 8px var(--acc); opacity: .2; animation: prFluxo 1.2s ease-in-out infinite; }
.pr-fluxo span:nth-child(2) { animation-delay: .2s; } .pr-fluxo span:nth-child(3) { animation-delay: .4s; }
@keyframes prFluxo { 40% { opacity: 1; transform: translateX(4px); } }
.pr-orb { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.pr-orb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pr-anel { fill: none; stroke-width: 1.5; stroke-linecap: round; transform-origin: 60px 60px; will-change: transform; }
.pr-anel.a1 { stroke: rgba(var(--acc-rgb), .8); stroke-dasharray: 90 250; animation: prGiro 2.4s linear infinite; }
.pr-anel.a2 { stroke: rgba(var(--ia-rgb), .85); stroke-dasharray: 60 200; animation: prGiro 1.7s linear infinite reverse; }
.pr-anel.a3 { stroke: rgba(var(--info-rgb), .8); stroke-dasharray: 30 160; animation: prGiro 1.2s linear infinite; }
@keyframes prGiro { to { transform: rotate(360deg); } }
.pr-nucleo { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--acc-hi) 30%, var(--acc) 60%, rgba(var(--acc-rgb), .2)); box-shadow: 0 0 24px rgba(var(--acc-rgb), .8), 0 0 60px rgba(var(--ia-rgb), .35); animation: prPulso 1.6s ease-in-out infinite; }
@keyframes prPulso { 50% { transform: scale(1.14); } }
.pr-pt { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--acc-hi); box-shadow: 0 0 6px var(--acc-hi); animation: prOrbita 3s linear infinite; }
.pr-pt.p2 { animation-duration: 2.2s; animation-direction: reverse; background: #c9b8ff; box-shadow: 0 0 6px var(--ia); }
.pr-pt.p3 { animation-duration: 4s; }
@keyframes prOrbita { from { transform: rotate(0deg) translateX(48px); } to { transform: rotate(360deg) translateX(48px); } }
.pr-msg { text-align: center; display: flex; flex-direction: column; gap: 4px; min-height: 44px; }
.pr-msg b { font-size: 15px; color: var(--ice); }
.pr-msg b.troca { animation: fadeUp .35s var(--ease-out); }
.pr-msg small { font-size: 12px; color: var(--mute); }
.pr-barra { position: relative; width: 100%; height: 4px; border-radius: 4px; background: rgba(var(--hl-rgb), .06); overflow: hidden; }
.pr-barra i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--acc), var(--acc-hi)); transition: width .4s var(--ease-out); }
.pr-barra.indef i { width: 35%; animation: indet 1.3s var(--ease) infinite; }
.pr-etapas { list-style: none; width: 100%; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pr-etapas li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--raio); border: 1px solid var(--line); color: var(--dim); transition: border-color .25s, background .25s, color .25s; }
/* (437) escopo próprio: outro componente usa .pr-dot (bolinha de 9px) e achatava o ícone das etapas */
.pr-etapas .pr-dot { width: 18px; height: 18px; min-width: 18px; min-height: 18px; flex: 0 0 18px; margin: 0; box-shadow: none; vertical-align: middle; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--line3); display: grid; place-items: center; }
.pr-etapas .pr-dot i { width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.pr-et { display: flex; flex-direction: column; min-width: 0; }
.pr-et b { font-size: 12.5px; font-weight: 600; }
.pr-et small { font-size: 11px; color: var(--mute); }
.pr-etapas li.on { color: var(--ice); border-color: rgba(var(--acc-rgb), .5); background: rgba(var(--acc-rgb), .06); }
.pr-etapas li.on .pr-dot { border-color: var(--acc-hi); border-top-color: transparent; animation: spin .8s linear infinite; }
.pr-etapas li.ok { color: var(--text2); }
.pr-etapas li.ok .pr-dot { border-color: var(--ok); background: rgba(var(--ok-rgb), .18); }
.pr-etapas li.ok .pr-dot i { background: var(--ok); }
.pr-etapas li.erro { color: var(--bad); border-color: rgba(var(--bad-rgb), .45); }
.pr-etapas li.erro .pr-dot { border-color: var(--bad); }
.pr-tempo { font-size: 12px; color: var(--mute); }
.pr-modal.pronto .pr-anel, .pr-modal.pronto .pr-scan, .pr-modal.pronto .pr-fluxo span { animation-play-state: paused; }
.pr-modal.pronto .pr-nucleo { background: radial-gradient(circle at 35% 35%, #fff, #8ff2c6 35%, var(--ok)); box-shadow: 0 0 30px rgba(var(--ok-rgb), .8); }
:root.a-sem-carregando .pr-anel, :root.a-sem-carregando .pr-scan, :root.a-sem-carregando .pr-fluxo span, :root.a-sem-carregando .pr-pt, :root.a-sem-carregando .pr-nucleo { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
/* cálculo em andamento (aviso no canto) */
.calc-rasc { position: fixed; left: 20px; bottom: 20px; z-index: 380; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: calc(var(--raio) + 4px); border: 1px solid rgba(var(--acc-rgb), .55); background: rgba(12, 15, 24, .98); box-shadow: var(--sh-pop), 0 0 24px rgba(var(--acc-rgb), .15); animation: dzEntra .3s var(--ease-out) both; }
.calc-rasc .cr-ic2 { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(var(--acc-rgb), .14); }
.calc-rasc .cr-ic2 .ic { width: 17px; height: 17px; color: var(--acc-hi); }
.calc-rasc .cr-ic2.lendo { background: rgba(var(--ia-rgb), .16); animation: brilhoOp 1.6s ease-in-out infinite; }
.calc-rasc .cr-ic2.lendo .ic { color: var(--ia-tx); }
.calc-rasc .cr-txt { display: flex; flex-direction: column; align-items: flex-start; border: 0; background: none; color: inherit; cursor: pointer; padding: 0 4px; }
.calc-rasc .cr-txt b { font-size: 12.5px; color: var(--ice); }
.calc-rasc .cr-txt small { font-size: 11px; color: var(--mute); }

/* ===== Atualização 86: filtros recolhidos (botão Filtros + painel + etiquetas), em todas as listas ===== */
.ls-bar { flex-wrap: nowrap; }
.ls-bar .search { flex: 1 1 320px; max-width: 560px; min-width: 140px; }
.ls-fbtn { flex: none; gap: 8px; }
.ls-fbtn > .ic:first-child { color: var(--acc); }
.ls-fbtn .fsel-v { flex: none; color: var(--ice); }
.ls-fbtn .ls-fn { min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 99px; font: 700 10.5px/1 var(--f-mono); background: var(--acc); color: var(--on-acc); }
.ls-fbtn.aberto { border-color: var(--acc); }
.ls-fbtn.aberto > .ic:last-child { transform: rotate(180deg); }
.ls-filtros { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: rgba(var(--hl-rgb), .012); }
.ls-filtros .fsel { width: 100%; max-width: none; min-width: 0; }
.ls-filtros .ls-flimpa { justify-self: start; align-self: center; }
.ls-ativos { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.ls-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 9px; border-radius: var(--raio); border: 1px solid rgba(var(--acc-rgb), .4); background: rgba(var(--acc-rgb), .07); font-size: 12px; color: var(--text2); }
.ls-tag b { color: var(--acc-hi); font-weight: 600; }
.ls-tag button { display: grid; place-items: center; width: 18px; height: 18px; border: 0; background: none; color: var(--mute); cursor: pointer; border-radius: 3px; }
.ls-tag button:hover { color: var(--ice); background: rgba(var(--hl-rgb), .06); }
.ls-tag button .ic { width: 12px; height: 12px; }
.ls-tag.limpa { cursor: pointer; border-color: var(--line2); background: none; padding: 4px 9px; color: var(--mute); }
.ls-tag.limpa:hover { color: var(--ice); }
@media (max-width: 760px) { .ls-fbtn .fsel-v { display: none; } .ls-filtros { grid-template-columns: 1fr 1fr; padding: 10px; } .ls-ativos { padding: 0 10px 10px; } }
/* baixar vários processos de uma vez */
.bx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
.bx-ops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.bx-op { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line2); border-radius: var(--raio); background: var(--panel2); cursor: pointer; text-align: left; }
.bx-op b { display: block; color: var(--ice); font-size: 13px; }
.bx-op small { display: block; color: var(--mute); font-size: 11.5px; margin-top: 2px; line-height: 1.35; }
.bx-op .ic { width: 16px; height: 16px; color: var(--mute); flex: none; margin-top: 2px; }
.bx-op.on { border-color: rgba(var(--acc-rgb), .7); background: rgba(var(--acc-rgb), .1); }
.bx-op.on .ic { color: var(--acc-hi); }
.bx-res { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--raio); font-size: 13px; }
.bx-res b { color: var(--ice); }
.bx-barra { height: 6px; border-radius: 99px; background: var(--panel3); overflow: hidden; margin-top: 12px; }
.bx-barra i { display: block; height: 100%; width: 0; background: var(--acc); transition: width .25s; }
.bx-lista { margin-top: 10px; max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.bx-li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: max(2px, calc(var(--raio) - 2px)); }
.bx-li .ic { width: 14px; height: 14px; flex: none; color: var(--dim); }
.bx-li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-li small { color: var(--mute); white-space: nowrap; }
.bx-li.indo { background: rgba(var(--acc-rgb), .08); } .bx-li.indo .ic { color: var(--acc); }
.bx-li.ok .ic { color: var(--ok); } .bx-li.erro .ic { color: var(--bad); } .bx-li.erro small { color: var(--bad-tx); }
@media (max-width: 760px) { .bx-grid, .bx-ops { grid-template-columns: 1fr; } }
.ls-filtros[hidden], .ls-ativos[hidden], .ls-fn[hidden] { display: none; }


/* =====================================================================
   BOAFÉ · o que o painel da casa não tinha
   1. Cores de destaque (vinho é o padrão) nos dois temas
   2. Tema claro (creme e vinho): o padrão do site, da área do aluno e do painel
   3. Marca (símbolo, filete e nome em versal)
   4. Tocador de vídeo protegido (aulas e lives)
   5. Capa de apostila desenhada
   6. Site: topo, abertura, seções, cartão de produto, consultoria, rodapé
   7. Área do aluno: trilha, aula, apostila
   8. Ajustes de painel (casca, entrada, formulário de arquivo, filtros)
   ===================================================================== */

/* ---------- 1. CORES DE DESTAQUE ------------------------------------- */
/* tema escuro (o de referência) */
:root[data-acento="vinho"]     { --acc: #b8404f; --acc-hi: #eaa6af; --acc-lo: #7f1d2d; --acc2: #f2c4ca; --acc-rgb: 184, 64, 79;  --acc-hi-rgb: 234, 166, 175; --on-acc: #fff7f5; }
:root[data-acento="grafite"]   { --acc: #b8c4d6; --acc-hi: #e3e9f2; --acc-lo: #7b879a; --acc2: #ffffff; --acc-rgb: 184, 196, 214; --acc-hi-rgb: 227, 233, 242; --on-acc: #0d1118; }
/* tema claro: o destaque vira a cor escura (o texto de destaque precisa ler bem no creme) */
:root[data-tema="claro"][data-acento="vinho"]     { --acc: #7f1d2d; --acc-hi: #6b1626; --acc-lo: #561020; --acc2: #b04a59; --acc-rgb: 127, 29, 45;  --acc-hi-rgb: 107, 22, 38;  --on-acc: #fff8f3; }
:root[data-tema="claro"][data-acento="ouro"]      { --acc: #9c7631; --acc-hi: #7d5c22; --acc-lo: #6a4c1b; --acc2: #c9a35c; --acc-rgb: 156, 118, 49; --acc-hi-rgb: 125, 92, 34;  --on-acc: #ffffff; }
:root[data-tema="claro"][data-acento="bronze"]    { --acc: #9a5b33; --acc-hi: #7c4626; --acc-lo: #683a1f; --acc2: #c58560; --acc-rgb: 154, 91, 51;  --acc-hi-rgb: 124, 70, 38;  --on-acc: #ffffff; }
:root[data-tema="claro"][data-acento="esmeralda"] { --acc: #1e7a56; --acc-hi: #155f42; --acc-lo: #114e36; --acc2: #3fa67f; --acc-rgb: 30, 122, 86;  --acc-hi-rgb: 21, 95, 66;   --on-acc: #ffffff; }
:root[data-tema="claro"][data-acento="safira"]    { --acc: #2d5bb5; --acc-hi: #234a93; --acc-lo: #1c3c78; --acc2: #5c86d6; --acc-rgb: 45, 91, 181;  --acc-hi-rgb: 35, 74, 147;  --on-acc: #ffffff; }
:root[data-tema="claro"][data-acento="grafite"]   { --acc: #3b3631; --acc-hi: #2a2622; --acc-lo: #1e1b18; --acc2: #6b635b; --acc-rgb: 59, 54, 49;   --acc-hi-rgb: 42, 38, 34;   --on-acc: #ffffff; }

/* ---------- 2. TEMA CLARO -------------------------------------------- */
:root { --marca-cor: #c24b5c; --marca-tinta: #eceef6; --creme: #faf7f2; }
:root[data-tema="claro"] {
  color-scheme: light;
  --void: #faf7f2; --deep: #f3eee6;
  --panel: #ffffff; --panel2: #fffefb; --panel3: #f7f2ea; --panel4: #efe8dc;
  --ctl-bg: #ffffff; --ctl-bg-2: #fffdf8;
  --line: rgba(42, 38, 34, .09); --line2: rgba(42, 38, 34, .16); --line3: rgba(42, 38, 34, .3);
  --ice: #2a2622; --text2: #4d463f; --mute: #776d64; --dim: #a1978c;
  --ok: #1f8a5b; --ok-rgb: 31, 138, 91;
  --warn: #b7791f; --warn-rgb: 183, 121, 31;
  --bad: #b42318; --bad-rgb: 180, 35, 24;
  --info: #2f64b8; --info-rgb: 47, 100, 184;
  --ia: #6e4bc7; --ia-rgb: 110, 75, 199; --ia2: #2f86b8;
  --grad-ia: linear-gradient(120deg, #2f64b8, #6e4bc7 45%, #1f8a5b);
  --ok-tx: #17704a; --warn-tx: #87570f; --bad-tx: #9b1c14; --ia-tx: #5a3ba8; --info-tx: #234e92;
  --hl-rgb: 42, 38, 34;
  --brilho-rgb: 255, 255, 255;
  --linha-rgb: 42, 38, 34;
  --fundo-rgb: 238, 231, 220;
  --sup-rgb: 255, 253, 249;
  --veu-rgb: 38, 28, 24;
  --sombra-rgb: 72, 44, 32;
  --sombra-k: .32;
  --trilho: #e9e2d7;
  --rolagem: #d9cfc2;
  --caixa-borda: #b9ad9f;
  --knob: #ffffff;
  --ctl-foco: #ffffff;
  --code-bg: #231f1c;
  --code-tx: #efe7dc;
  --tip-bg: #2a2622;
  --tip-tx: #faf7f2;
  --sk-bg: #eee7dc;
  --forte: #1a1512;
  --primario-hover: var(--acc-lo);
  --sh-card: inset 0 1px 0 rgba(255, 255, 255, .7), 0 1px 2px rgba(72, 44, 32, .05), 0 14px 32px -24px rgba(72, 44, 32, .35);
  --sh-pop: 0 18px 48px rgba(72, 44, 32, .16), 0 0 0 1px rgba(42, 38, 34, .06);
  --sh-modal: 0 30px 80px rgba(38, 28, 24, .26);
  --glow: 0 0 0 3px rgba(var(--acc-rgb), .14);
  --marca-cor: #7f1d2d; --marca-tinta: #2a2622;
}
html { background: var(--void); }
:root[data-tema="claro"] ::selection { background: rgba(var(--acc-rgb), .2); color: var(--forte); }
:root[data-tema="claro"] .modal-bg { background: rgba(var(--veu-rgb), .46); }
:root[data-tema="claro"] .modal-bg + .modal-bg { background: rgba(var(--veu-rgb), .3); }
:root[data-tema="claro"] .side-scrim, :root[data-tema="claro"] .palette-bg { background: rgba(var(--veu-rgb), .4); }
:root[data-tema="claro"] .sidebar { background: linear-gradient(180deg, #fffdf9, #f6f0e7); }
:root[data-tema="claro"] .topbar { background: rgba(250, 247, 242, .94); backdrop-filter: saturate(1.2) blur(6px); }
:root[data-tema="claro"] .bulk-bar { background: rgba(255, 253, 249, .98); }
/* no claro, brilho de neon vira só cor: fica sóbrio */
:root[data-tema="claro"] :is(.nav-item.is-active .ic, .line, .ring-fg) { filter: none; }
:root[data-tema="claro"] :is(.nav-item.is-active::before, .tabs-ink, .progress > i, .badge .dot, .kpi-label::before, .status::before, .step.done::before, .step.now::before, .tile.is-on::after, .steps-mini span.now) { box-shadow: none; }
:root[data-tema="claro"] .check input:checked + .box { box-shadow: none; }
:root[data-tema="claro"] .switch input:checked + .track { background: var(--acc); border-color: var(--acc); box-shadow: none; }
:root[data-tema="claro"] .switch input:checked + .track::after { background: #fff; box-shadow: 0 1px 3px rgba(42, 38, 34, .3); }
:root[data-tema="claro"] .switch .track::after { box-shadow: 0 1px 2px rgba(42, 38, 34, .3); }
:root[data-tema="claro"] .step.now .sn { box-shadow: 0 0 0 4px rgba(var(--acc-rgb), .12); }
:root[data-tema="claro"] .wz.is-active i, :root[data-tema="claro"] .ap-model.is-on .ap-cap i { box-shadow: none; }
:root[data-tema="claro"] .brand-mark { filter: none; }
:root[data-tema="claro"] .avatar { box-shadow: none; }
:root[data-tema="claro"] .empty .e-ic { box-shadow: none; }
:root[data-tema="claro"] .x:hover { color: var(--acc-hi); }
:root[data-tema="claro"] .demo-stage { background-image: radial-gradient(rgba(var(--acc-rgb), .09) 1px, transparent 1px); }
:root[data-tema="claro"] .tk-tag { color: #9cc4ff; } :root[data-tema="claro"] .tk-str { color: #8fe3bd; } :root[data-tema="claro"] .tk-attr { color: #f2c4ca; }
:root[data-tema="claro"] .dotp { stroke: var(--panel); }
:root[data-tema="claro"] .grid-line { stroke: rgba(42, 38, 34, .07); }
:root[data-tema="claro"] .bar[style*="gAccV"] { filter: none; }
:root[data-tema="claro"] .btn-primary { text-shadow: none; }

/* ---------- 3. MARCA ------------------------------------------------- */
/* o símbolo (o "L" gótico) vem desenhado na página com fill=currentColor: segue --marca-cor */
.simbolo { display: block; width: 100%; height: 100%; color: var(--marca-cor); }
.brand-mark { display: grid; place-items: center; }
.brand-mark .simbolo { width: 30px; height: 38px; }
.brand-text strong { font-family: var(--f-marca); font-size: 12px; font-weight: 500; letter-spacing: .13em; color: var(--marca-tinta); }
.brand-text span { display: flex; align-items: center; gap: 7px; font-family: var(--f-marca); font-size: 8.5px; letter-spacing: .32em; color: var(--mute); margin-top: 5px; }
.brand-text span::before { content: ""; width: 14px; height: 1px; background: var(--marca-cor); }

/* a assinatura completa: símbolo | filete | LITIGANTE DE BOA FÉ / — DIREITO BANCÁRIO */
.marca { display: inline-flex; align-items: center; gap: 18px; color: var(--marca-tinta); text-decoration: none; min-width: 0; }
.marca-simbolo { flex: 0 0 auto; width: 34px; height: 42px; }
.marca-fio { flex: 0 0 1px; align-self: stretch; width: 1px; background: rgba(var(--linha-rgb), .22); }
.marca-nome { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.marca-nome b { font-family: var(--f-marca); font-weight: 500; font-size: 17px; letter-spacing: .22em; line-height: 1.1; white-space: nowrap; color: var(--marca-tinta); }
.marca-nome small { display: flex; align-items: center; gap: 10px; font-family: var(--f-marca); font-size: 9px; letter-spacing: .38em; color: var(--mute); white-space: nowrap; }
.marca-nome small::before { content: ""; width: 26px; height: 1px; background: var(--marca-cor); }
.marca.lg { gap: 26px; }
.marca.lg .marca-simbolo { width: 52px; height: 64px; }
.marca.lg .marca-nome b { font-size: 26px; letter-spacing: .2em; }
.marca.lg .marca-nome small { font-size: 11px; }
.marca.sm { gap: 12px; }
.marca.sm .marca-simbolo { width: 24px; height: 30px; }
.marca.sm .marca-nome b { font-size: 12.5px; letter-spacing: .18em; }
.marca.sm .marca-nome small { font-size: 7.5px; letter-spacing: .32em; }
.marca.sm .marca-nome small::before { width: 16px; }
@media (max-width: 520px) {
  .marca { gap: 12px; }
  .marca-nome b { font-size: 13px; letter-spacing: .16em; }
  .marca-nome small { font-size: 7.5px; letter-spacing: .3em; }
  .marca.lg .marca-simbolo { width: 38px; height: 48px; }
  .marca.lg .marca-nome b { font-size: 17px; }
}

/* ---------- 4. TOCADOR DE VÍDEO PROTEGIDO ---------------------------- */
/* aulas e lives (aula.js): controles próprios, marca-d'água por cima, sem baixar */
.palco { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #000; border: 1px solid var(--line2); border-radius: var(--raio); overflow: hidden; }
.palco__video { width: 100%; height: 100%; border: 0; display: block; }
.palco__aviso { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 30px; background: #14110f; color: #d9d2c8; }
.palco__aviso b { font-size: 15px; color: #faf7f2; }
.palco__aviso p { max-width: 46ch; line-height: 1.6; font-size: 13px; }
.palco__aviso--espera { gap: 14px; }
.palco__falha { position: absolute; left: 12px; right: 12px; bottom: 64px; z-index: 3; padding: 10px 14px; font-size: 13px; line-height: 1.5; text-align: center; color: #faf7f2; background: rgba(10, 9, 7, .88); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--raio-sm); }
.palco__marca { position: absolute; top: 5%; left: 5%; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; color: rgba(255, 255, 255, .3); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); pointer-events: none; user-select: none; }
.palco__aovivo { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: var(--raio-sm); background: rgba(10, 9, 7, .8); border: 1px solid rgba(255, 107, 107, .5); font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .12em; color: #ff8f8f; pointer-events: none; }
.palco__fim { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; background: rgba(8, 7, 5, .86); backdrop-filter: blur(2px); animation: fade .3s ease both; color: #d9d2c8; }
.palco__fim[hidden] { display: none; }
.palco__fim b { font-family: var(--f-display); font-weight: 600; font-size: 28px; color: #faf7f2; }
.palco__fim-ok { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #8ff2c6; background: rgba(61, 220, 151, .12); border: 1px solid rgba(61, 220, 151, .4); }
.palco__fim-prox { font-size: 13px; max-width: 46ch; margin-bottom: 6px; }
.palco--protegido { outline: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.palco--protegido:focus-visible { box-shadow: var(--glow); }
.palco--protegido .palco__video { position: absolute; inset: 0; z-index: 0; object-fit: contain; background: #000; }
.palco--protegido .palco__video::-webkit-media-controls, .palco--protegido .palco__video::-webkit-media-controls-enclosure { display: none !important; }
.palco--protegido:fullscreen, .palco--protegido:-webkit-full-screen { width: 100vw; height: 100vh; aspect-ratio: auto; border: 0; border-radius: 0; }
.palco--protegido.palco--cheia { position: fixed; inset: 0; z-index: 9990; width: 100vw; height: 100dvh; aspect-ratio: auto; border: 0; border-radius: 0; }
.palco--ao-vivo { border-color: rgba(var(--bad-rgb), .5); }
.pv-centro { position: absolute; top: 50%; left: 50%; z-index: 2; width: 68px; height: 68px; margin: -34px 0 0 -34px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: var(--on-acc); background: var(--acc); border: 0; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); transition: transform .15s ease, filter .15s ease; }
.pv-centro:hover { transform: scale(1.06); filter: brightness(1.12); }
.pv-centro[hidden], .pv-gira[hidden], .pv-recado[hidden], .pv-aviso[hidden], .pv-aviso__btn[hidden], .pv-aviso__txt[hidden] { display: none; }
.pv-centro svg { width: 26px; height: 26px; margin-left: 3px; }
.pv-gira { position: absolute; top: 50%; left: 50%; z-index: 2; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .22); border-top-color: var(--acc2); animation: spin .8s linear infinite; pointer-events: none; }
.pv-recado { position: absolute; left: 50%; top: 14px; z-index: 4; transform: translateX(-50%); max-width: 86%; padding: 8px 14px; font-size: 12.5px; line-height: 1.45; text-align: center; color: #faf7f2; background: rgba(10, 9, 7, .88); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--raio-sm); }
.pv-barra { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 26px 10px 8px; background: linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .5) 55%, transparent 100%); transition: opacity .25s ease; }
.pv-quieto.pv-tocando .pv-barra { opacity: 0; pointer-events: none; }
.pv-quieto.pv-tocando { cursor: none; }
.pv-btn { flex: 0 0 auto; min-width: 36px; height: 36px; padding: 0 8px; display: grid; place-items: center; color: #faf7f2; background: transparent; border: 0; border-radius: var(--raio-sm); cursor: pointer; font: 600 12px/1 var(--f-mono); }
.pv-btn:hover, .pv-btn:focus-visible { background: rgba(255, 255, 255, .14); outline: none; }
.pv-vel { min-width: 46px; }
.pv-tempo { flex: 0 0 auto; padding: 0 4px; color: #faf7f2; white-space: nowrap; font: 500 11.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.pv-trilho { position: relative; flex: 1 1 auto; min-width: 40px; height: 22px; cursor: pointer; touch-action: none; outline: none; }
.pv-trilho::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.pv-trilho__carregado, .pv-trilho__feito { position: absolute; left: 0; top: 9px; height: 4px; border-radius: 2px; width: 0; pointer-events: none; }
.pv-trilho__carregado { background: rgba(255, 255, 255, .38); }
.pv-trilho__feito { background: var(--acc2); }
.pv-trilho__feito::after { content: ""; position: absolute; right: -6px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); }
.pv-trilho:focus-visible::before { box-shadow: 0 0 0 2px var(--acc2); }
.pv-volume { flex: 0 0 64px; width: 64px; height: 22px; accent-color: var(--acc2); cursor: pointer; }
.pv-aviso { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; background: rgba(8, 7, 5, .93); }
.pv-aviso__tit { font-size: 16px; color: #faf7f2; max-width: 40ch; }
.pv-aviso__txt { font-size: 13px; line-height: 1.6; color: #b9b0a4; max-width: 52ch; margin: 0; }
.palco--protegido .palco__falha { z-index: 4; bottom: 58px; }
@media (max-width: 640px) {
  .pv-volume { display: none; }
  .pv-barra { gap: 2px; padding: 22px 6px 6px; }
  .pv-btn { min-width: 40px; height: 40px; }
  .pv-tempo { font-size: 10.5px; }
  .pv-centro { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
}
/* contador da live agendada */
.contador { display: flex; align-items: stretch; justify-content: center; gap: 10px; }
.contador > div { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; padding: 10px 8px; border-radius: var(--raio); border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); }
.contador b { font-family: var(--f-display); font-size: 32px; font-weight: 700; line-height: 1; color: #faf7f2; font-variant-numeric: tabular-nums; }
.contador span { font-family: var(--f-mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: #b9b0a4; }

/* ---------- 5. CAPA DE APOSTILA DESENHADA ---------------------------- */
/* sem imagem enviada, a capa é desenhada: clara (papel) ou escura (noite com moldura vinho) */
.capa { position: relative; display: block; aspect-ratio: 210 / 297; width: 100%; overflow: hidden; overflow-wrap: break-word; border-radius: 2px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.capa img { width: 100%; height: 100%; object-fit: cover; }
.capa.clara { background: #ffffff; box-shadow: 0 18px 30px -22px rgba(42, 30, 26, .5), 0 0 0 1px rgba(42, 38, 34, .1); padding: 12% 10%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; }
.capa.escura { background: #1c1820; box-shadow: 0 18px 30px -22px rgba(21, 18, 25, .7); padding: 7%; }
.capa.com-imagem { padding: 0; background: var(--panel3); box-shadow: 0 18px 30px -22px rgba(42, 30, 26, .5), 0 0 0 1px rgba(42, 38, 34, .1); }
a:hover > .capa, .capa.hov:hover { transform: translateY(-6px); box-shadow: 0 30px 40px -24px rgba(42, 30, 26, .6), 0 0 0 1px rgba(42, 38, 34, .1); }
.capa-topo { font-family: var(--f-marca); font-size: 9px; letter-spacing: .4em; color: #8a7a6c; }
.capa-meio { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.capa-titulo { margin: 0; font-family: var(--f-marca); font-weight: 400; color: #2a2622; font-size: 20px; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; }
.capa-titulo.longo { font-size: 15px; letter-spacing: .1em; }
.capa-fio { width: 28px; height: 1px; background: #7f1d2d; }
.capa-sub { font-family: var(--f-display); font-style: italic; font-size: 14px; line-height: 1.35; color: #6e6158; }
.capa-selo { font-family: var(--f-marca); font-size: 8px; letter-spacing: .34em; color: #7f1d2d; line-height: 1.6; }
.capa.escura .capa-moldura { height: 100%; border: 1px solid #7f1d2d; padding: 14% 8%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; }
.capa.escura .capa-topo { font-size: 7px; letter-spacing: .36em; color: #c9a35c; }
.capa.escura .capa-simbolo { width: 14px; height: 18px; color: #b8404f; }
.capa.escura .capa-titulo { color: #f5efe6; font-size: 18px; letter-spacing: .08em; line-height: 1.2; }
.capa.escura .capa-titulo b { display: block; font-weight: 700; font-size: 1.2em; margin-top: 6px; }
.capa.escura .capa-sub { color: #b9b0a4; }
.capa.escura .capa-selo { color: #d98a95; font-size: 7px; }
.capa-letras { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-marca); font-size: 32px; letter-spacing: .1em; color: var(--acc); background: linear-gradient(160deg, var(--panel3), var(--panel4)); }
.capa-marca-selo { position: absolute; top: 10px; left: 10px; }
.capa.mini { width: 54px; flex: 0 0 54px; padding: 0; }
.capa.mini .capa-letras { font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .capa, a:hover > .capa { transition: none; transform: none; } }

/* ---------- 6. SITE --------------------------------------------------- */
/* o site público usa os mesmos tokens (claro e vinho, fixo) e estas peças */
body.site { background: var(--creme); color: var(--ice); font-size: 15px; line-height: 1.65; }
.site-largura { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
/* topo */
.site-topo { position: sticky; top: 0; z-index: var(--z-top); background: rgba(250, 247, 242, .92); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
.site-topo-in { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { padding: 8px 12px; border-radius: var(--raio); font-family: var(--f-ui); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text2); transition: color .2s, background .2s; }
.site-nav a:hover { color: var(--acc); background: rgba(var(--acc-rgb), .06); }
.site-conta { display: flex; align-items: center; gap: 8px; }
.site-conta .quem-sou { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text2); }
.site-conta .quem-sou b { color: var(--ice); font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-menu-btn { display: none; }
@media (max-width: 1040px) {
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px; background: var(--creme); border-bottom: 1px solid var(--line2); box-shadow: var(--sh-pop); }
  .site-topo.is-open .site-nav { display: flex; }
  .site-nav a { padding: 12px 6px; border-bottom: 1px solid var(--line); }
  .site-menu-btn { display: inline-grid; margin-left: auto; }
  .site-conta { margin-left: 0; }
}
@media (max-width: 640px) {
  .site-topo-in { gap: 10px; min-height: 64px; }
  .site-conta .quem-sou b { display: none; }
  .site-topo .marca-nome small { display: none; }
  .site-topo .marca-nome b { font-size: 11px; letter-spacing: .12em; }
  .site-conta .btn { padding: 0 12px; }
  .site-largura { width: calc(100% - 32px); }
}
/* abertura */
.site-abertura { position: relative; overflow: hidden; padding: 92px 0 88px; border-bottom: 1px solid var(--line); background:
  radial-gradient(900px 420px at 85% -10%, rgba(var(--acc-rgb), .09), transparent 70%),
  radial-gradient(700px 360px at -10% 110%, rgba(var(--acc-rgb), .06), transparent 70%); }
.site-abertura::after { content: ""; position: absolute; right: -40px; top: 40px; width: 420px; height: 520px; background: url("img/simbolo.svg") no-repeat center / contain; opacity: .045; pointer-events: none; }
.site-abertura-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 56px; align-items: center; }
.site-sobre { font-family: var(--f-marca); font-size: 11px; letter-spacing: .38em; color: var(--acc); display: flex; align-items: center; gap: 14px; }
.site-sobre::before { content: ""; width: 34px; height: 1px; background: var(--acc); }
.site-titulo { margin: 22px 0 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -.01em; color: var(--ice); }
.site-titulo em { font-style: italic; color: var(--acc); }
.site-lead { margin-top: 22px; max-width: 58ch; font-size: 17px; line-height: 1.7; color: var(--text2); }
.site-acoes { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.site-destaques { display: flex; flex-direction: column; gap: 14px; }
.site-destaque { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px; border-radius: var(--raio); background: rgba(255, 255, 255, .72); border: 1px solid var(--line); box-shadow: var(--sh-card); }
/* o ícone no quadrado colorido: centralizado nos dois sentidos, 21px num quadrado de 44, cor vinho (rodada 9: o
   "span { display: block }" do texto pegava o quadrado e jogava o ícone no canto) */
.site-destaque .li-ic { width: 44px; height: 44px; display: grid; place-items: center; margin: 0; padding: 0; color: var(--acc); line-height: 0; }
.site-destaque .li-ic .ic { width: 21px; height: 21px; display: block; margin: 0; }
.site-destaque b { display: block; font-family: var(--f-ui); font-size: 13px; letter-spacing: .06em; color: var(--ice); }
.site-destaque > div > span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--mute); line-height: 1.55; }
.site-assinatura { margin-top: 30px; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--mute); }
.site-assinatura b { color: var(--ice); font-weight: 600; }
@media (max-width: 980px) { .site-abertura-in { grid-template-columns: minmax(0, 1fr); gap: 36px; } .site-abertura { padding: 60px 0; } }
/* seção */
.site-secao { padding: 88px 0; border-bottom: 1px solid var(--line); }
.site-secao.alt { background: #f4eee5; }
.site-secao.noite { background: #1c1820; color: #e8e1d6; border-bottom: 0; }
.site-secao-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.site-secao-cab > div { max-width: 720px; }
.site-secao-cab h2 { margin-top: 12px; font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 4.4vw, 50px); line-height: 1.08; color: var(--ice); }
.site-secao-cab p { margin-top: 12px; font-size: 16px; color: var(--text2); line-height: 1.7; }
.site-secao.noite .site-secao-cab h2 { color: #faf7f2; }
.site-secao.noite .site-secao-cab p { color: #b9b0a4; }
.site-secao.noite .site-sobre { color: #d98a95; }
.site-secao.noite .site-sobre::before { background: #d98a95; }
@media (max-width: 640px) { .site-secao { padding: 60px 0; } .site-secao-cab { margin-bottom: 28px; } }
/* vitrine: cartão de produto (apostila ou trilha) */
.vitrine { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.vitrine.trilhas { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.produto { position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 18px; border-radius: calc(var(--raio) + 2px); background: #fffdf9; border: 1px solid var(--line); box-shadow: var(--sh-card); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.produto:hover { transform: translateY(-3px); border-color: rgba(var(--acc-rgb), .3); box-shadow: 0 24px 40px -28px rgba(72, 44, 32, .45); }
.produto-capa { display: block; padding: 18px 26px 4px; background: linear-gradient(180deg, #f4eee5, transparent); border-radius: var(--raio); }
.produto-capa .capa { max-width: 210px; margin: 0 auto; }
.produto-banner { display: block; aspect-ratio: 16 / 8; border-radius: var(--raio); overflow: hidden; background: linear-gradient(140deg, #2a1d22, #7f1d2d); }
.produto-banner img { width: 100%; height: 100%; object-fit: cover; }
.produto-banner .capa-letras { position: static; height: 100%; color: #f2c4ca; background: none; font-size: 40px; }
.produto-corpo { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-width: 0; }
.produto-tipo { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); }
.produto h3 { font-family: var(--f-display); font-size: 25px; font-weight: 600; line-height: 1.15; color: var(--ice); letter-spacing: 0; }
.produto p { font-size: 14px; line-height: 1.6; color: var(--text2); }
.produto-pe { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.preco { display: flex; flex-direction: column; line-height: 1.1; }
.preco b { font-family: var(--f-display); font-size: 26px; font-weight: 700; color: var(--ice); font-variant-numeric: lining-nums; }
.preco small { font-size: 11.5px; color: var(--mute); margin-top: 3px; }
.preco.gratis b { color: var(--ok); font-size: 22px; }
.produto .badge.canto { position: absolute; top: 14px; right: 14px; z-index: 1; }
/* consultoria */
.consulta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: 48px; align-items: start; }
.consulta-frase { font-family: var(--f-display); font-style: italic; font-size: 28px; line-height: 1.35; color: var(--ice); }
.site-passos { counter-reset: passo; display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.site-passo { counter-increment: passo; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start; }
.site-passo::before { content: counter(passo, upper-roman); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(var(--acc-rgb), .35); font-family: var(--f-marca); font-size: 13px; color: var(--acc); background: #fffdf9; }
.site-passo p { font-size: 15px; color: var(--text2); line-height: 1.6; padding-top: 9px; }
.site-passo b { color: var(--ice); }
.consulta-preco { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.consulta-preco b { font-family: var(--f-display); font-size: 36px; font-weight: 700; color: var(--ice); }
.consulta-preco span { font-size: 13.5px; color: var(--mute); }
@media (max-width: 980px) { .consulta { grid-template-columns: minmax(0, 1fr); } }
/* comunidade */
.comunidade { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 40px 44px; border-radius: calc(var(--raio) + 4px); border: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(120deg, rgba(127, 29, 45, .35), rgba(127, 29, 45, .08)); }
.comunidade h3 { font-family: var(--f-display); font-weight: 600; font-size: 32px; color: #faf7f2; }
.comunidade p { margin-top: 8px; color: #c9c0b4; font-size: 15px; max-width: 64ch; }
@media (max-width: 760px) { .comunidade { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; } }
/* rodapé */
.site-rodape { background: #16131a; color: #b9b0a4; padding: 56px 0 30px; font-size: 13px; }
.site-rodape .marca { --marca-tinta: #f5efe6; --marca-cor: #c24b5c; }
.site-rodape-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
.site-rodape h4 { font-family: var(--f-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #8a8076; margin-bottom: 10px; font-weight: 500; }
.site-rodape p { line-height: 1.7; }
.site-rodape p + p { margin-top: 10px; }
.site-rodape a { color: #f2c4ca; }
.site-rodape a:hover { color: #fff; }
.site-redes { display: flex; gap: 8px; margin-top: 18px; }
.site-redes a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); color: #e8e1d6; }
.site-redes a:hover { border-color: #d98a95; color: #fff; }
.site-rodape-base { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--f-marca); font-size: 10px; letter-spacing: .26em; color: #8a8076; }
@media (max-width: 760px) { .site-rodape-in { grid-template-columns: minmax(0, 1fr); } }
/* página interna do site (curso, apostila, formulário, obrigado) */
.site-pagina { padding: 56px 0 88px; }
.site-voltar { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); margin-bottom: 22px; }
.site-voltar:hover { color: var(--acc); }
.site-ficha { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 48px; align-items: start; }
.site-ficha.larga { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
.site-ficha h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(36px, 4.6vw, 54px); line-height: 1.06; color: var(--ice); margin-top: 10px; }
.site-ficha .site-lead { font-size: 16.5px; }
.site-compra { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: calc(var(--raio) + 2px); background: #fffdf9; border: 1px solid var(--line); box-shadow: var(--sh-card); }
.texto-corrido { font-size: 15.5px; line-height: 1.75; color: var(--text2); }
.texto-corrido p + p { margin-top: 12px; }
.texto-corrido h2, .texto-corrido h3 { font-family: var(--f-display); font-size: 26px; font-weight: 600; margin: 28px 0 10px; color: var(--ice); }
.texto-corrido ul { padding-left: 20px; } .texto-corrido li + li { margin-top: 6px; }
@media (max-width: 860px) { .site-ficha, .site-ficha.larga { grid-template-columns: minmax(0, 1fr); gap: 28px; } .site-compra { position: static; } }
/* janela de entrar e criar conta no site (a mesma .modal do sistema) */
.conta-abas { margin: -4px 0 16px; }
.isca { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 7. ÁREA DO ALUNO ----------------------------------------- */
.boas-vindas { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 28px 30px; }
.boas-vindas h1 { font-family: var(--f-display); font-size: 38px; font-weight: 600; line-height: 1.05; margin-top: 8px; }
.boas-vindas p { margin-top: 8px; color: var(--text2); max-width: 62ch; }
.boas-vindas::after { content: ""; position: absolute; right: -20px; top: -20px; width: 180px; height: 220px; background: url("img/simbolo.svg") no-repeat center / contain; opacity: .06; pointer-events: none; }
@media (max-width: 760px) { .boas-vindas { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; } .boas-vindas h1 { font-size: 30px; } }
/* trilha: cartão do curso na lista e cabeçalho da trilha */
.curso-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: 0; }
.curso-card .produto-banner { border-radius: 0; aspect-ratio: 16 / 7; }
.curso-card-corpo { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1 1 auto; }
.curso-card h3 { font-family: var(--f-display); font-size: 24px; font-weight: 600; line-height: 1.15; }
.curso-card p { font-size: 13px; color: var(--text2); }
.curso-card-pe { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line2); }
.modulo { padding: 0; overflow: hidden; }
.modulo-cab { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modulo-cab b { font-family: var(--f-ui); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.modulo-cab small { margin-left: auto; font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); }
.aula-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--text2); transition: background .15s; }
.aula-item:last-child { border-bottom: 0; }
.aula-item:hover { background: rgba(var(--acc-rgb), .04); color: var(--ice); }
.aula-item .ai-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line2); color: var(--dim); }
.aula-item .ai-ic .ic { width: 13px; height: 13px; }
.aula-item.feita .ai-ic { border-color: rgba(var(--ok-rgb), .5); background: rgba(var(--ok-rgb), .1); color: var(--ok); }
.aula-item.atual { background: rgba(var(--acc-rgb), .06); box-shadow: inset 3px 0 0 var(--acc); color: var(--ice); }
.aula-item.atual .ai-ic { border-color: var(--acc); color: var(--acc); }
.aula-item.trancada { opacity: .6; }
.aula-item b { font-weight: 600; color: inherit; font-size: 13.5px; }
.aula-item small { display: block; font-size: 11.5px; color: var(--mute); }
.aula-item .mono { font-size: 11px; color: var(--mute); }
.aula-tela { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 22px; align-items: start; }
@media (max-width: 1080px) { .aula-tela { grid-template-columns: minmax(0, 1fr); } }
/* pergunta da aula */
.duvida { padding: 12px 14px; border-radius: var(--raio); border: 1px solid var(--line); background: rgba(var(--hl-rgb), .02); }
.duvida + .duvida { margin-top: 10px; }
.duvida__quem { font-size: 12px; color: var(--mute); margin-bottom: 4px; }
.duvida__quem b { color: var(--ice); }
.duvida__texto { font-size: 13.5px; color: var(--text2); white-space: pre-line; }
.duvida__resposta { margin-top: 10px; padding: 10px 12px; border-left: 2px solid var(--acc); background: rgba(var(--acc-rgb), .05); font-size: 13px; color: var(--text2); white-space: pre-line; }
.duvida--nova { border-color: rgba(var(--acc-rgb), .35); }
/* certificado (prévia) */
.certificado { position: relative; padding: 34px 38px; border-radius: 2px; background: #fffdf9; border: 1px solid #e3d8c8; box-shadow: var(--sh-card); text-align: center; color: #2a2622; }
.certificado::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(127, 29, 45, .35); pointer-events: none; }
.certificado h3 { font-family: var(--f-marca); font-size: 15px; letter-spacing: .3em; font-weight: 500; }
.certificado b { display: block; margin: 14px 0 6px; font-family: var(--f-display); font-size: 28px; font-weight: 600; }

/* ---------- 8. AJUSTES DE PAINEL ------------------------------------- */
/* entrada (painel e área do aluno): a tela de login do padrão, com a marca do BoaFé */
.login-art .marca { --marca-tinta: var(--ice); }
.login-art .site-titulo { font-size: 54px; }
.login-box .marca { margin-bottom: 26px; }
.login-box form { display: flex; flex-direction: column; gap: 14px; }
/* campo de arquivo comum (input file) no padrão do sistema */
.arquivo { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--raio); border: 1px dashed rgba(var(--acc-rgb), .4); background: rgba(var(--acc-rgb), .03); cursor: pointer; transition: border-color .2s, background .2s; min-width: 0; }
.arquivo:hover, .arquivo:focus-within { border-color: var(--acc); background: rgba(var(--acc-rgb), .06); }
.arquivo input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.arquivo .li-ic { width: 36px; height: 36px; flex-basis: 36px; }
.arquivo b { display: block; font-size: 13px; color: var(--ice); font-weight: 600; }
.arquivo small { display: block; font-size: 11.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arquivo .arq-nome { color: var(--acc-hi); }
/* filtros de lista feitos no servidor (formulário GET) */
.filtros { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.filtros .search { flex: 1 1 260px; max-width: 460px; }
.filtros .select { width: auto; min-width: 150px; }
/* paginação do servidor (links) no mesmo desenho do .pager */
.pager a, .pager span.pg { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: var(--raio-sm); border: 1px solid var(--line2); background: rgba(var(--hl-rgb), .02); color: var(--text2); font-family: var(--f-mono); font-size: 11px; }
.pager a:hover { border-color: var(--line3); color: var(--ice); }
.pager span.pg.is-on { border-color: rgba(var(--acc-rgb), .6); background: rgba(var(--acc-rgb), .12); color: var(--acc-hi); }
.pager span.pg.off { opacity: .35; }
/* faixa de envio de vídeo (o envio em pedaços da aula) */
.envio { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: var(--raio); border: 1px solid rgba(var(--acc-rgb), .3); background: rgba(var(--acc-rgb), .04); }
.envio[hidden] { display: none; }
.envio-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.envio-topo b { font-family: var(--f-ui); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ice); }
.envio-pct { font-family: var(--f-mono); font-size: 14px; color: var(--acc-hi); }
.envio-num { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.envio-num[hidden] { display: none; }
.envio-num span { display: flex; flex-direction: column; gap: 2px; font-family: var(--f-mono); font-size: 12px; color: var(--ice); }
.envio-num small { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.envio.convertendo { border-color: rgba(var(--info-rgb), .35); background: rgba(var(--info-rgb), .04); }
.envio.pronto { border-color: rgba(var(--ok-rgb), .4); background: rgba(var(--ok-rgb), .05); }
.envio.erro { border-color: rgba(var(--bad-rgb), .4); background: rgba(var(--bad-rgb), .05); }
/* faixa "vídeos na conversão" no alto da tela de trilhas */
.faixa-fila[hidden] { display: none; }
/* linha da lista com alça de ordem e ações sempre visíveis no toque */
.ordem { display: inline-flex; flex-direction: column; gap: 2px; }
.ordem .btn-icon.xs { width: 22px; height: 18px; }
/* prévia da capa na janela da apostila */
.previa-capa { width: 180px; margin: 0 auto; }
/* menu do painel no celular: botão no topo */
.topbar .menu-cel { display: none; }
@media (max-width: 760px) { .topbar .menu-cel { display: inline-grid; } .topbar #btn-collapse { display: none; } }
/* o conteúdo do formulário da janela que vem do servidor */
.modal form.modal { display: flex; }
form.modal-form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
/* bloco de texto pré-formatado (eventos da Kiwify, erros) */
.pre-bloco { margin: 0; padding: 12px 14px; max-height: 420px; overflow: auto; border-radius: var(--raio); background: var(--code-bg); color: var(--code-tx); font-family: var(--f-mono); font-size: 11.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
/* senha provisória em destaque */
.segredo-grande { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--raio); border: 1px dashed rgba(var(--acc-rgb), .5); background: rgba(var(--acc-rgb), .05); font-family: var(--f-mono); font-size: 20px; letter-spacing: .08em; color: var(--acc-hi); }

/* ---------- 9. JANELA: CLIQUE FORA = ZOOM; GAVETA ---------------------- */
/* a janela só fecha no X ou em Fechar/Cancelar: clicar fora ou apertar Esc faz um zoom (entra e sai) e acende o X */
.modal.nudge { animation: nudge .48s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes nudge { 0% { transform: scale(1); } 22% { transform: scale(1.035); } 50% { transform: scale(.982); } 75% { transform: scale(1.012); } 100% { transform: scale(1); } }
.modal.nudge .modal-head .x { animation: xAcende .9s ease-out; }
@keyframes xAcende { 0%, 60% { color: var(--acc-hi); border-color: rgba(var(--acc-rgb), .9); box-shadow: 0 0 0 4px rgba(var(--acc-rgb), .18), 0 0 18px rgba(var(--acc-rgb), .35); } 100% { box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .modal.nudge { animation: none; } }
/* gaveta: a mesma janela, presa à direita e na altura toda (fichas, detalhes, filtros longos) */
.modal-bg:has(> .modal.gaveta) { place-items: stretch end; padding: 0; }
.modal.gaveta { width: min(560px, 100%); height: 100dvh; max-height: 100dvh; border-radius: 0 !important; animation: gavetaIn .34s var(--ease-out); }
.modal.gaveta.nudge { animation: gavetaNudge .45s var(--ease-out); }
@keyframes gavetaIn { from { opacity: 0; transform: translateX(48px); } }
@keyframes gavetaNudge { 30% { transform: translateX(-10px); } 60% { transform: translateX(4px); } }
.modal-bg.sai > .modal.gaveta { animation: gavetaOut .18s forwards; }
@keyframes gavetaOut { to { opacity: 0; transform: translateX(48px); } }
@media (max-width: 760px) { .modal-bg:has(> .modal.gaveta) { place-items: end stretch; } .modal.gaveta { height: 94dvh; } }

/* ---------- 10. CONTEÚDO NO PAINEL (trilhas, apostilas, lives) ---------- */
/* a grade das trilhas: cartões que se arrastam pela alça */
.trilhas-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--gap); }
.curso-card { position: relative; color: inherit; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.curso-card.hov:hover { transform: translateY(-2px); border-color: rgba(var(--acc-rgb), .35); }
.curso-card h3 a { color: inherit; }
.curso-card h3 a:hover { color: var(--acc-hi); }
.curso-card .badge.canto { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--panel); }
.curso-card.rascunho .produto-banner { filter: grayscale(.7); opacity: .75; }
.handle.sobre { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--panel); border: 1px solid var(--line2); }
/* aulas no painel: alça, situação do vídeo, título com selos, duração */
.aula-item.adm { grid-template-columns: 22px 28px minmax(0, 1fr) auto; padding: 10px 16px; }
.aula-item small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.aula-item small .ic { width: 12px; height: 12px; vertical-align: -2px; }
.aula-item .ai-ic.ok { border-color: rgba(var(--ok-rgb), .5); color: var(--ok); background: rgba(var(--ok-rgb), .08); }
.aula-item .ai-ic.info { border-color: rgba(var(--info-rgb), .5); color: var(--info); background: rgba(var(--info-rgb), .08); }
.aula-item .ai-ic.warn { border-color: rgba(var(--warn-rgb), .5); color: var(--warn); background: rgba(var(--warn-rgb), .08); }
.aula-item .ai-ic.bad { border-color: rgba(var(--bad-rgb), .5); color: var(--bad); background: rgba(var(--bad-rgb), .08); }
.modulo-cab .handle { margin-left: -6px; }
.modulo-cab small + .row { margin-left: 4px; }
.modulo .empty.sm { padding: 18px; }
/* arrastar: o que está na mão e a lista gravando */
.arrastando { opacity: .5; outline: 1px dashed var(--acc); outline-offset: 2px; }
[data-ordenar].ordenando { opacity: .7; pointer-events: none; }
/* prévia do cartão do site na janela (trilha e apostila) */
.previa-produto { pointer-events: none; box-shadow: var(--sh-card); }
.previa-produto:hover { transform: none; }
.previa-produto .produto-banner { aspect-ratio: 16 / 9; }
.previa-capa { width: min(180px, 100%); margin: 0 auto; }
/* lista ativa (a live escolhida) */
.list-item.is-active { background: rgba(var(--acc-rgb), .07); box-shadow: inset 3px 0 0 var(--acc); }
/* a faixa "vídeos na conversão" */
.faixa-fila { align-items: center; }
.faixa-fila .btn { flex: 0 0 auto; }
/* o atributo hidden vence qualquer display das peças */
[hidden] { display: none !important; }
.table .capa.mini { width: 40px; flex-basis: 40px; }
.table .capa.mini .capa-letras { font-size: 12px; }
.g-lista { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); }
@media (max-width: 1080px) { .g-lista { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 11. SITE: peças da rodada 4 ------------------------------- */
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.site-h2 { margin-top: 12px; font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 4.4vw, 50px); line-height: 1.08; color: var(--ice); }
.produto h3 a { color: inherit; }
.produto h3 a:hover { color: var(--acc); }
.produto-pe .btn { flex: 0 0 auto; }
.lista-check { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text2); }
.lista-check li { display: flex; align-items: flex-start; gap: 10px; }
.lista-check .ic { width: 16px; height: 16px; color: var(--ok); margin-top: 3px; flex: 0 0 16px; }
.site-conta form { display: inline-flex; }
@media (max-width: 440px) { .site-topo .marca-nome, .site-topo .marca-fio { display: none; } }
@media (max-width: 640px) { .so-largo { display: none; } .site-conta .btn-ghost { padding: 0 8px; } }
/* página de conta (entrar e criar) e de recado (confirme, obrigado) */
.site-conta-pagina { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 480px); gap: 56px; align-items: start; }
.site-conta-pagina .card { padding: 26px; }
@media (max-width: 900px) { .site-conta-pagina { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.site-recado { max-width: 620px; margin: 0 auto; text-align: center; }
.site-recado .e-ic { margin: 0 auto 18px; }
.site-recado h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.site-recado p { margin-top: 12px; color: var(--text2); font-size: 16px; }
/* formulário longo do site (consultoria) em blocos */
.form-bloco + .form-bloco { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-bloco > .eyebrow { margin-bottom: 14px; display: block; }
/* sumário e aulas na página pública da trilha */
.sumario-curso .modulo + .modulo { margin-top: 14px; }
.kv-site { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; }
.kv-site dt { color: var(--mute); }
.kv-site dd { margin: 0; color: var(--ice); font-weight: 600; text-align: right; }
.site-banner { aspect-ratio: 16 / 5; border-radius: calc(var(--raio) + 2px); overflow: hidden; margin-bottom: 30px; background: linear-gradient(140deg, #2a1d22, #7f1d2d); }
.site-banner img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 12. ÁREA DO ALUNO: peças da rodada 4 ---------------------- */
.retomar { display: flex; align-items: center; gap: 16px; color: inherit; }
.retomar.hov:hover { border-color: rgba(var(--acc-rgb), .4); transform: translateY(-1px); }
.retomar-play { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: var(--on-acc); box-shadow: 0 10px 24px -10px rgba(var(--acc-rgb), .7); }
.retomar-play .ic { width: 20px; height: 20px; margin-left: 2px; }
.retomar .eyebrow { display: block; color: var(--acc); }
.retomar-tit { display: block; font-family: var(--f-display); font-size: 22px; font-weight: 600; line-height: 1.2; margin: 4px 0 2px; color: var(--ice); }
.retomar-pct { font-size: 18px; color: var(--acc-hi); }
.list-item .capa.mini { width: 36px; flex: 0 0 36px; }
.list-item .capa.mini .capa-letras { font-size: 11px; }
.list-item.apagada { opacity: .62; }
.list-item .li-title a { color: inherit; }
.list-item .li-title a:hover { color: var(--acc); }
.list-item .li-title .badge { margin-left: 6px; }
.li-meta form { display: inline-flex; }
.li-meta { display: flex; align-items: center; gap: 10px; }
/* trilha: o alto (imagem, título, progresso) */
.trilha-topo { padding: 0; overflow: hidden; }
.trilha-topo-img { aspect-ratio: 16 / 4; overflow: hidden; background: linear-gradient(140deg, #2a1d22, #7f1d2d); }
.trilha-topo-img img { width: 100%; height: 100%; object-fit: cover; }
.trilha-topo-corpo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 24px; }
.trilha-topo-tit, .aula-cab-tit, .apo-destaque-tit { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; color: var(--ice); margin-top: 6px; }
.trilha-topo-prog { display: flex; flex-direction: column; align-items: center; gap: 8px; }
@media (max-width: 760px) { .trilha-topo-corpo { grid-template-columns: minmax(0, 1fr); } .trilha-topo-prog { flex-direction: row; flex-wrap: wrap; } }
.compra-faixa { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.compra-faixa > div:first-child { flex: 1 1 320px; }
/* aula */
.aula-cab .overline { display: block; }
.aula-marcar--feita { border-color: rgba(var(--ok-rgb), .5); color: var(--ok); }
.duvida__quem { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.duvida__quem b, .duvida__nome { color: var(--ice); font-size: 13px; }
.duvida-aviso { color: var(--ok); }
.duvida-aviso--ruim { color: var(--bad); }
.na-trilha .aula-item { padding: 9px 18px; }
/* apostila em destaque e cabeçalho da apostila */
.apo-destaque { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; align-items: center; }
.apo-destaque-capa { display: block; padding: 14px; border-radius: var(--raio); background: linear-gradient(180deg, #f4eee5, transparent); }
.apo-destaque .preco b { font-size: 30px; }
@media (max-width: 640px) { .apo-destaque { grid-template-columns: minmax(0, 1fr); } .apo-destaque-capa { max-width: 200px; } }
/* lives */
.live-agora { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; color: inherit; border-color: rgba(var(--bad-rgb), .45); background: linear-gradient(120deg, rgba(var(--bad-rgb), .07), transparent 60%), var(--panel); }
.live-proxima { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.live-proxima .date-block { width: 54px; flex-basis: 54px; }
.palco__aviso > .ic { width: 30px; height: 30px; color: #d98a95; }
/* ===== consultoria (rodada 5): seletor de horário, sessão marcada, questionário ===== */
.segmented a { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: calc(var(--ctl-h) - 8px); padding: 0 12px; border-radius: var(--raio-sm); color: var(--mute); font-family: var(--f-ui); font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; transition: all .2s; }
.segmented a .ic { width: 14px; height: 14px; }
.segmented a:hover { color: var(--ice); }
.segmented a.is-active { background: rgba(var(--acc-rgb), .15); color: var(--acc-hi); box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), .38); }
/* o seletor de horário: a fila de dias e, embaixo, os horários do dia escolhido */
.slot-cal { display: flex; flex-direction: column; gap: 18px; }
.slot-dias { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.slot-dia { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: var(--raio); border: 1px solid var(--line2); background: var(--ctl-bg); color: var(--text2); text-align: left; scroll-snap-align: start; transition: border-color .2s, background .2s, box-shadow .2s; }
.slot-dia > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.slot-dia b { font-size: 13px; color: var(--ice); font-weight: 600; }
.slot-dia small { font-size: 11px; color: var(--mute); }
.slot-dia:hover { border-color: rgba(var(--acc-rgb), .5); }
.slot-dia.is-on { border-color: rgba(var(--acc-rgb), .75); background: rgba(var(--acc-rgb), .1); box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), .35); }
.slot-dia.is-on .date-block { border-color: rgba(var(--acc-rgb), .6); }
.slot-dia.is-on .date-block b { color: var(--acc-hi); }
.slot-grupo { border: 0; margin: 0; padding: 0; min-width: 0; }
.slot-grupo + .slot-grupo { margin-top: 16px; }
.slot-cal.com-js .slot-grupo + .slot-grupo { margin-top: 0; }
.slot-grupo legend { padding: 0; margin-bottom: 10px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { position: relative; display: block; cursor: pointer; }
.slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot > span { display: flex; align-items: center; justify-content: center; height: 42px; border-radius: var(--raio-sm); border: 1px solid var(--line2); background: var(--ctl-bg); font-family: var(--f-mono); font-size: 14px; color: var(--ice); transition: all .18s; }
.slot:hover > span { border-color: rgba(var(--acc-rgb), .55); }
.slot input:focus-visible + span { outline: 2px solid rgba(var(--acc-rgb), .8); outline-offset: 2px; }
.slot input:checked + span { background: var(--acc); border-color: var(--acc); color: var(--on-acc); font-weight: 600; box-shadow: 0 6px 18px -8px rgba(var(--acc-rgb), .8); }
.slot.ocupado > span, .slot input:disabled + span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.slot-cal.previa .slot { cursor: default; }
.slot-cal.previa .slots { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
.slot-cal.previa .slot > span { height: 34px; font-size: 12.5px; }
.slot-cal .card-foot { margin-top: 4px; }
[data-slot-escolhido] .ic { width: 15px; height: 15px; vertical-align: -3px; color: var(--acc); }
/* a sessão marcada: a data grande e as ações */
.date-block.grande { width: 64px; flex-basis: 64px; padding: 8px 0 7px; border-color: rgba(var(--acc-rgb), .5); background: rgba(var(--acc-rgb), .08); }
.date-block.grande b { font-size: 30px; color: var(--acc-hi); }
.date-block.grande span { font-size: 10px; }
.sessao-marcada { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.card.sessao-marcada { display: block; }
.card.sessao-marcada.tem { border-color: rgba(var(--acc-rgb), .35); }
.consulta-painel .stepper { max-width: 640px; }
/* o questionário: o número da pergunta; na ficha, as respostas por bloco */
.q-num { display: inline-block; min-width: 22px; margin-right: 4px; font-family: var(--f-mono); font-size: 11px; color: var(--acc-hi); }
.questionario .wizard-steps { flex-wrap: wrap; }
.questionario .field label { line-height: 1.45; }
.questionario textarea:disabled { opacity: 1; color: var(--ice); background: transparent; border-style: dashed; resize: none; }
.qa-bloco + .qa-bloco { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line2); }
.qa-bloco > h4 { margin-bottom: 10px; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--acc-hi); }
.qa { margin: 0; display: grid; gap: 4px; }
.qa dt { display: flex; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--text2); line-height: 1.45; }
.qa dt:first-child { margin-top: 0; }
.qa dt .q-num { flex: 0 0 auto; padding-top: 2px; }
.qa dd { margin: 0 0 0 32px; padding: 9px 12px; border-left: 2px solid rgba(var(--acc-rgb), .35); background: rgba(var(--fundo-rgb), .35); border-radius: 0 var(--raio-sm) var(--raio-sm) 0; font-size: 13.5px; color: var(--ice); line-height: 1.55; overflow-wrap: anywhere; }
.qa dd .empty-v { color: var(--dim); font-style: italic; }
/* o editor das perguntas */
.q-editor td { vertical-align: top; }
.q-editor .textarea { min-height: 58px; width: 100%; }
.q-editor .input, .q-editor .select { width: 100%; }
.q-editor .switch { margin-top: 6px; }
.list-item.passado { opacity: .55; }
.cal-day.fer .cal-fer { display: block; font-size: 10px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .qa dd { margin-left: 0; } .slots { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); } .sessao-marcada .row-wrap { width: 100%; } }
.cal-rola { overflow-x: auto; } .cal-rola > .cal { min-width: 640px; }
.riscado .date-block, .riscado > .small { opacity: .55; }
.riscado .date-block b { text-decoration: line-through; }
.questionario .field > label { height: auto; white-space: normal; overflow: visible; margin-bottom: 4px; font-family: var(--f-ui); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ice); line-height: 1.45; }
.questionario .field > label .q-num { font-size: 12px; }
/* ===== rodada 6: janelas, Kiwify, reembolso e tipos de consultoria ===== */
.crumbs .crumb-inicio { display: inline-flex; align-items: center; gap: 6px; color: inherit; border-radius: var(--raio-sm); transition: color .2s; }
.crumbs .crumb-inicio:hover { color: var(--ice); }
.crumbs .crumb-inicio:hover .ic { color: var(--acc); }
/* um bloco de ação dentro da janela (revogar, restaurar, cortesia, senha): moldura leve, título em rótulo */
.acao-bloco { padding: 16px; border-radius: var(--raio); border: 1px solid var(--line); background: rgba(var(--hl-rgb), .018); min-width: 0; }
.acao-bloco .eyebrow { display: flex; align-items: center; gap: 6px; }
.acao-bloco .eyebrow .ic { width: 14px; height: 14px; color: var(--acc); }
/* escolher o produto da Kiwify (Venda e acesso) */
.kiwify-ligacao .kl-estado { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kiwify-ligacao .kl-estado .small b { color: var(--ice); font-weight: 600; }
/* importar da Kiwify: uma linha por produto, com o "criar como" */
.kiwify-import { display: flex; flex-direction: column; gap: 8px; }
.ki-linha { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--raio); border: 1px solid var(--line); background: var(--panel2, transparent); }
.ki-linha.ligado { opacity: .75; }
.ki-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ki-info b { color: var(--ice); font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ki-acao { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ki-acao .select { width: auto; min-width: 150px; }
.ki-acao .input { width: 220px; }
@media (max-width: 760px) { .ki-linha { grid-template-columns: auto minmax(0, 1fr); } .ki-acao { grid-column: 1 / -1; justify-content: flex-start; } .ki-acao .input { width: 100%; } }
/* a janela do curso: o passo a passo, o novo módulo e a faixa de publicar */
.passo-a-passo { max-width: 560px; }
.passo-a-passo .step { min-width: 90px; }
.novo-modulo { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.novo-modulo .field { min-width: 220px; flex: 1 1 260px; }
.publicar-faixa { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--raio); border: 1px dashed rgba(var(--acc-rgb), .45); background: rgba(var(--acc-rgb), .05); }
.publicar-faixa.ok { border-style: solid; border-color: rgba(var(--ok-rgb), .45); background: rgba(var(--ok-rgb), .05); }
.publicar-faixa b { color: var(--ice); }
.modulos-janela .modulo { margin: 0; }
/* tipos de consultoria (painel) */
.tipo-card { display: flex; flex-direction: column; color: inherit; min-width: 0; }
.tipo-card h3 { font-size: 17px; }
.tipo-card.rascunho { opacity: .6; }
/* a seção da consultoria no site: um quadro de compra por tipo */
.consulta-tipos { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.consulta-tipos .site-compra { position: static; }
.consulta-tipo-nome { font-family: var(--f-display); font-size: 26px; font-weight: 600; line-height: 1.15; color: var(--ice); margin: 0; }
.alerta-kiwify .btn { flex: 0 0 auto; }
/* ===== rodada 8: copiar a pasta de outro Dropbox (Configurações › Integrações) ===== */
.copia-num { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.copia-num span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.copia-num small { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.copia-num b { font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; color: var(--ice); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copia-estado .bad-text .ic { width: 14px; height: 14px; vertical-align: -2px; }
.lista-mono { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow: auto; }
.lista-mono li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lista-mono .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.copia-dica { padding: 0 20px 14px; margin: -6px 0 0; text-align: right; }
@media (max-width: 760px) { .copia-num { grid-template-columns: repeat(2, minmax(0, 1fr)); } .copia-dica { text-align: left; } }
#copia-mapa { font-family: var(--f-mono); font-size: 13px; line-height: 1.6; }
.copia-troca .table td.mono { white-space: nowrap; }
.copia-troca .table td .mono { font-size: 11.5px; word-break: break-all; }
/* ===== rodada 8: área do aluno — capas grandes, a ficha da apostila, a grade, os cursos e a consultoria ===== */
.capa.grande { aspect-ratio: 3 / 4; box-shadow: 0 28px 48px -26px rgba(42, 30, 26, .55), 0 0 0 1px rgba(42, 38, 34, .08); }
.capa.grande.clara { padding: 13% 11%; }
/* os textos da capa desenhada acompanham a largura dela (a mesma capa vai de 200 a 300 px) */
.capa.grande { container-type: inline-size; }
.capa.grande .capa-topo { font-size: clamp(6.5px, 3.4cqw, 10px); }
.capa.grande .capa-meio { gap: clamp(8px, 5cqw, 16px); }
.capa.grande .capa-titulo { font-size: clamp(12px, 8.6cqw, 26px); }
.capa.grande .capa-titulo.longo { font-size: clamp(11px, 7cqw, 20px); }
.capa.grande .capa-sub { font-size: clamp(10px, 5.6cqw, 16px); }
.capa.grande .capa-selo { font-size: clamp(6px, 3cqw, 9px); }
.capa.escura.grande .capa-moldura { padding: 12% 7%; }
.capa.escura.grande .capa-titulo { letter-spacing: .06em; }
.apo-filtros .control.search { width: 260px; max-width: 100%; }
.apo-filtros .select { width: auto; min-width: 170px; max-width: 100%; }
.apo-ficha { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 32px; align-items: start; padding: 28px; }
.apo-ficha-capa { padding: 18px; border-radius: var(--raio); background: linear-gradient(180deg, #f4eee5, transparent 85%); }
.apo-ficha-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.apo-ficha-sub { font-family: var(--f-display); font-style: italic; font-size: 19px; line-height: 1.35; color: var(--text2); }
.apo-autor { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text2); }
.apo-autor .ic { width: 15px; height: 15px; color: var(--acc); }
.apo-fatos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px 18px; margin: 6px 0 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.apo-fatos dt { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.apo-fatos dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; color: var(--ice); }
.apo-sumario { margin-top: 6px; }
.apo-sumario .eyebrow { display: flex; align-items: center; gap: 6px; }
.apo-sumario .eyebrow .ic { width: 14px; height: 14px; color: var(--acc); }
.apo-sumario ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.apo-sumario li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; color: var(--ice); }
.apo-sumario li:last-child { border-bottom: 0; }
.apo-sumario .n { padding-top: 2px; font-size: 12px; color: var(--acc); }
.apo-sumario .t small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text2); }
.apo-sumario .p { font-size: 11.5px; color: var(--mute); white-space: nowrap; }
.apo-preparo { border-color: rgba(var(--ok-rgb), .35); }
@media (min-width: 641px) { .apo-destaque { grid-template-columns: 240px minmax(0, 1fr); } }
@media (max-width: 860px) { .apo-ficha { grid-template-columns: minmax(0, 1fr); padding: 20px; } .apo-ficha-capa { width: 100%; max-width: 280px; margin: 0 auto; } }
.apo-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--gap); }
.apo-cartao { display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; }
.apo-cartao.apagada .apo-cartao-capa { opacity: .7; }
.apo-cartao-capa { display: block; padding: 22px 30px 12px; background: linear-gradient(180deg, #f4eee5, transparent); }
.apo-cartao-capa .capa { max-width: 220px; margin: 0 auto; }
.apo-cartao-corpo { display: flex; flex: 1 1 auto; flex-direction: column; gap: 8px; padding: 14px 18px 18px; }
.apo-cartao h3 { font-family: var(--f-display); font-size: 21px; font-weight: 600; line-height: 1.15; }
.apo-cartao h3 a { color: inherit; }
.apo-cartao-pe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line2); }
.apo-cartao-pe .money { margin-right: auto; }
.apo-cartao-pe .ic { width: 14px; height: 14px; vertical-align: -2px; }
.vitrine { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.produto-capa .capa.grande { max-width: 230px; }
.site-capa-grande { padding: 26px 30px 18px; }
.site-capa-grande .capa { max-width: 300px; margin: 0 auto; }
.trilhas-grade { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.curso-card .produto-banner { aspect-ratio: 16 / 8; }
.consulta-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap); }
.consulta-oferta { display: flex; flex-direction: column; gap: 10px; }
.consulta-oferta h3 { font-family: var(--f-display); font-size: 26px; font-weight: 600; line-height: 1.1; }
.consulta-oferta .preco b { font-size: 26px; }
.consulta-oferta-pe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line2); }
.consulta-inicio .date-block { flex: 0 0 auto; }

/* rodada 9 — rede de segurança do quadrado do ícone: regra de texto do tipo "x span { display: block }" nunca o desmonta */
.li-ic.li-ic { display: grid; place-items: center; }

/* ===================================================================== rodada 9: apps, notificações, e-mail ===== */
/* o sino */
.sino { position: relative; }
.sino-menu { width: 380px; padding: 6px; }
.sino-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 6px 0; }
.sino-topo .menu-title { padding: 6px 10px 4px; }
.sino-topo form { margin: 0; }
.sino-vazio { display: flex; gap: 10px; align-items: flex-start; padding: 14px 12px; color: var(--mute); font-size: 12.5px; line-height: 1.5; }
.sino-vazio .ic { width: 18px; height: 18px; flex: 0 0 18px; color: var(--dim); margin-top: 1px; }
.menu .notif, .lista-notif .notif { position: relative; display: flex; gap: 10px; align-items: flex-start; }
.menu .notif .n-ic.li-ic, .lista-notif .notif .n-ic.li-ic { width: 32px; height: 32px; flex: 0 0 32px; }
.notif .n-corpo { min-width: 0; flex: 1 1 auto; display: block; }
.notif .n-corpo strong { display: block; font-size: 12.5px; color: var(--ice); font-weight: 600; line-height: 1.35; }
.notif .n-corpo small { display: block; font-size: 11.5px; color: var(--mute); margin-top: 2px; line-height: 1.45; }
.notif .n-corpo small.n-texto { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif .n-ponto { position: absolute; top: 14px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.lista-notif { display: flex; flex-direction: column; }
.lista-notif .notif { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--text2); text-decoration: none; transition: background .15s; }
.lista-notif .notif:last-child { border-bottom: 0; }
.lista-notif .notif:hover { background: rgba(var(--acc-rgb), .05); }
.lista-notif .notif.unread { background: rgba(var(--acc-rgb), .04); box-shadow: inset 3px 0 0 var(--acc); }
.lista-notif .notif .n-corpo strong { font-size: 14px; }
.lista-notif .notif .n-corpo small { font-size: 13px; }
@media (max-width: 640px) { .sino-menu { width: calc(100vw - 16px); } }

/* "Instalar o app" — claro (aluno) e escuro (painel) */
.instalar { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; margin: 0 0 20px;
  border-radius: calc(var(--raio) * 2); border: 1px solid rgba(var(--acc-rgb), .28); background: linear-gradient(120deg, rgba(var(--acc-rgb), .07), rgba(var(--acc-rgb), .015) 60%), var(--panel); box-shadow: var(--sh-card); }
.instalar[hidden] { display: none; }
.instalar-ic { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 6px 18px rgba(0, 0, 0, .14); }
.instalar-titulo { font-weight: 700; color: var(--ice); font-size: 15px; }
.instalar-texto { margin: 3px 0 0; font-size: 13px; color: var(--mute); line-height: 1.5; }
.instalar-acoes { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.instalar-passos { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.instalar-passos li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13px; color: var(--text2); line-height: 1.7; }
.instalar-num { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: var(--acc); color: var(--on-acc); font-size: 11.5px; font-weight: 700; margin-right: 2px; }
.instalar-tecla { display: inline-grid; place-items: center; vertical-align: middle; width: 24px; height: 24px; margin: 0 2px; border-radius: 7px; border: 1px solid var(--line2); background: var(--panel2); color: #0a84ff; }
.instalar-tecla .ic { width: 15px; height: 15px; }
.instalar--cartao { margin: 0; }
.instalar--escuro { --ice: #f5efe6; --mute: #b6ad9f; --text2: #ded6c9; background: radial-gradient(120% 140% at 0% 0%, #22161d 0%, #0c0f17 55%); border-color: rgba(201, 163, 92, .4); color: #ded6c9; }
.instalar--escuro .instalar-tecla { background: #161b27; border-color: rgba(255, 255, 255, .12); }
.instalar--escuro .instalar-num { background: #c9a35c; color: #17120a; }
@media (max-width: 640px) {
  .instalar { grid-template-columns: 48px minmax(0, 1fr); padding: 16px; align-items: start; }
  .instalar-ic { width: 48px; height: 48px; border-radius: 11px; }
  .instalar-acoes { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; align-items: center; }
}

/* push: "neste aparelho" */
.push-aparelho { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; margin-bottom: 14px; border-radius: var(--raio); border: 1px dashed var(--line2); }
.push-aparelho-corpo b { display: block; color: var(--ice); font-size: 13.5px; }
.push-aparelho-corpo span { display: block; font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.push-aparelho[data-push-situacao="ativo"] { border-style: solid; border-color: rgba(var(--ok-rgb), .4); }
.pref-notif td.center, .pref-notif th.center { text-align: center; }
@media (max-width: 640px) { .push-aparelho { grid-template-columns: 44px minmax(0, 1fr); } .push-aparelho .row-wrap { grid-column: 1 / -1; } }

/* Configurações › Notificações: os gatilhos */
.gatilhos { display: flex; flex-direction: column; }
.gatilho { display: grid; grid-template-columns: minmax(220px, .9fr) minmax(0, 1.6fr); gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.gatilho.is-off .gatilho-campos { opacity: .45; }
.gatilho-campos { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gatilho-campos .mono { font-size: 11px; }
@media (max-width: 760px) { .gatilho { grid-template-columns: minmax(0, 1fr); } }

/* a faixa do e-mail pausado */
.faixa-email-pausado { border-left: 3px solid var(--warn); }

/* o rodapé do site: "Baixe o app" */
.site-rodape-app { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 14px; border-radius: calc(var(--raio) * 2); border: 1px solid var(--line); background: rgba(255, 255, 255, .6); color: var(--ice); text-decoration: none; }
.site-rodape-app img { border-radius: 10px; }
.site-rodape-app b { display: block; font-size: 13.5px; }
.site-rodape-app small { display: block; font-size: 12px; color: var(--mute); }
.site-rodape-app .ic { width: 16px; height: 16px; color: var(--acc); }

/* /app — "Baixe o app" */
.app-topo { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 36px; }
.app-topo-ic { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 14px 34px rgba(127, 29, 45, .18); }
.app-topo-texto { max-width: 62ch; color: var(--mute); margin-top: 10px; line-height: 1.6; }
.app-sistemas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.app-sistema { padding: 24px; border-radius: calc(var(--raio) * 3); border: 1px solid var(--line); background: rgba(255, 255, 255, .7); box-shadow: var(--sh-card); }
.app-sistema header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.app-sistema header h2 { margin: 0; font-size: 22px; }
.app-sistema-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.app-celulares { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.celular { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.celular-tela { position: relative; aspect-ratio: 9 / 16; border-radius: 26px; border: 8px solid #1b1b1f; background: #faf7f2; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.celular--android .celular-tela { border-radius: 18px; }
.celular figcaption { font-size: 13px; color: var(--text2); line-height: 1.5; display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.celular figcaption .ic { width: 15px; height: 15px; color: #0a84ff; vertical-align: -2px; }
.celular-pagina { padding: 16% 10% 0; display: flex; flex-direction: column; gap: 8px; }
.cp-marca { width: 34%; height: 10px; border-radius: 5px; background: #7f1d2d; opacity: .85; }
.cp-linha { height: 7px; border-radius: 4px; background: rgba(0, 0, 0, .1); }
.cp-linha.curta { width: 60%; }
.cp-cartao { height: 70px; border-radius: 10px; background: rgba(127, 29, 45, .08); border: 1px solid rgba(127, 29, 45, .14); margin-top: 6px; }
.cp-faixa { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: #7f1d2d; color: #fff; font-size: 11px; font-weight: 600; }
.cp-faixa .ic { width: 13px; height: 13px; }
.celular-barra-ios { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px 12px; background: rgba(245, 245, 247, .96); border-top: 1px solid rgba(0, 0, 0, .08); }
.celular-barra-ios .cb-url { display: block; text-align: center; font-size: 10px; color: #555; background: #e7e7ea; border-radius: 8px; padding: 4px; margin-bottom: 8px; }
.cb-icones { display: flex; justify-content: space-around; align-items: center; }
.cb-icones i { width: 14px; height: 14px; border-radius: 3px; background: #b9b9be; }
.cb-compartilhar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(10, 132, 255, .35); color: #0a84ff; animation: pulso-app 1.8s ease-in-out infinite; }
.cb-compartilhar .ic { width: 16px; height: 16px; }
@keyframes pulso-app { 50% { box-shadow: 0 0 0 7px rgba(10, 132, 255, .12); } }
.celular-barra-android { display: flex; align-items: center; gap: 6px; padding: 8px; background: #fff; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.celular-barra-android .cb-url { flex: 1; font-size: 10px; color: #555; background: #eef0f3; border-radius: 14px; padding: 4px 8px; }
.celular-barra-android b { display: grid; place-items: center; color: #444; }
.celular-barra-android b .ic { width: 14px; height: 14px; }
.celular-tela--folha { background: rgba(0, 0, 0, .35); display: flex; align-items: flex-end; }
.folha { width: 100%; background: #f2f2f7; border-radius: 14px 14px 0 0; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.folha-app { display: flex; gap: 8px; align-items: center; padding: 6px; background: #fff; border-radius: 10px; }
.folha-app img { border-radius: 8px; }
.folha-app b { display: block; font-size: 10.5px; color: #111; }
.folha-app small { display: block; font-size: 9px; color: #777; }
.folha-item { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 9px; padding: 8px 10px; font-size: 10.5px; color: #111; }
.folha-item .ic { width: 13px; height: 13px; }
.folha-item--destaque { box-shadow: 0 0 0 2px #0a84ff; font-weight: 600; }
.dialogo-android { margin: auto; width: 82%; background: #fff; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; align-self: center; }
.dialogo-android img { border-radius: 10px; }
.dialogo-android b { font-size: 12px; color: #111; }
.dialogo-android small { font-size: 9.5px; color: #666; }
.dialogo-botoes { display: flex; gap: 14px; justify-content: flex-end; width: 100%; margin-top: 8px; font-size: 11px; font-style: normal; }
.dialogo-botoes i { font-style: normal; color: #555; }
.dialogo-botoes i.ok { color: #1a73e8; font-weight: 700; }
.celular-tela--folha .dialogo-android { margin-bottom: auto; margin-top: auto; }
.celular-tela--inicio { background: linear-gradient(160deg, #3a2430, #7f1d2d 60%, #a9545f); }
.grade-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px; padding: 18% 12%; }
.grade-apps i { aspect-ratio: 1; border-radius: 12px; background: rgba(255, 255, 255, .22); }
.grade-boafe { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.grade-boafe img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 2px #fff, 0 6px 14px rgba(0, 0, 0, .3); }
.grade-boafe small { font-size: 9px; color: #fff; }
.app-nota { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; font-size: 13px; color: var(--text2); }
.app-nota .ic { width: 17px; height: 17px; color: var(--acc); flex: 0 0 17px; margin-top: 2px; }
.app-computador { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 26px; }
@media (max-width: 760px) {
  .app-topo { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; }
  .app-topo-ic { width: 76px; height: 76px; border-radius: 18px; }
  .app-celulares { grid-template-columns: minmax(0, 1fr); max-width: 300px; margin: 0 auto; }
  .app-computador { grid-template-columns: 44px minmax(0, 1fr); }
  .app-computador .btn { grid-column: 1 / -1; }
}

/* a página "sem internet" dos apps */
.offline-app { min-height: 100vh; display: grid; place-items: center; background: #faf7f2; margin: 0; }
.offline-app--escuro { background: #0c0f17; color: #ded6c9; }
.offline-caixa { max-width: 420px; text-align: center; padding: 32px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.offline-caixa img { border-radius: 16px; }
.offline-caixa h1 { margin: 6px 0 0; font-size: 22px; }
.offline-app--escuro .offline-caixa h1 { color: #f5efe6; }
.offline-caixa p { color: inherit; opacity: .8; line-height: 1.6; margin: 0 0 8px; }

/* "Comprar" abre o checkout da Kiwify em outra aba: o ícone de link externo depois do texto */
.btn .ic-externo { display: inline-grid; place-items: center; margin-left: 2px; opacity: .78; }
.btn .ic-externo .ic { width: 13px; height: 13px; }

/* ficha do aluno: a lista da busca do "Unificar com outra conta" */
[data-unificar-lista] .list-item { width: 100%; display: flex; text-align: left; border: 1px solid var(--line); border-radius: var(--raio); background: var(--panel); padding: 8px 12px; margin-top: 6px; cursor: pointer; font: inherit; color: inherit; }
[data-unificar-lista] .list-item:hover, [data-unificar-lista] .list-item:focus-visible { border-color: rgba(var(--acc-rgb), .5); background: rgba(var(--acc-rgb), .05); }
[data-unificar-lista] .li-body, [data-unificar-lista] .li-title, [data-unificar-lista] .li-sub { display: block; }
