/* Tribuna CRM. Plano: grafite quase preto, cinza claro e branco, degradês finos.
   Layout: lateral grafite com seda viva, área clara com cartões brancos e blocos escuros de destaque.
   Forma: cartões 18px, controles 12px, chips e avatares em pílula. Sem sombras projetadas. */
:root {
  --g950: #0d0e10; --g900: #141518; --g850: #1a1c20; --g800: #212429; --g700: #2c3036; --g600: #42464e;
  --g500: #6a7079; --g400: #8f959e; --g300: #b7bcc4; --g200: #d5d8dd; --g150: #e4e6ea; --g100: #eceef1; --g50: #f5f6f8; --w: #fff;
  --ink: #111215; --line: rgba(17, 18, 21, .08);
  --r-card: 18px; --r-ctl: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body { font-family: var(--font); background: var(--g100); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
.ic { flex: none; display: block; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
* { scrollbar-width: thin; scrollbar-color: var(--g300) transparent; }

/* ---------- animação de entrada (um só gesto, termina visível) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.97); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sweep { from { background-position: 160% 0; } to { background-position: -60% 0; } }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes beam { to { --a: 360deg; } }
[data-i] { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }

/* ---------- entrada ---------- */
.login { position: fixed; inset: 0; background: var(--g950); display: grid; place-items: center; overflow: hidden; z-index: 50; }
.login canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.login::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 30%, rgba(13, 14, 16, .55) 100%); pointer-events: none; }
.glass { position: relative; z-index: 2; width: min(540px, calc(100vw - 32px)); padding: 34px; border-radius: 28px; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)), rgba(20, 21, 24, .55);
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(28px) saturate(140%); backdrop-filter: blur(28px) saturate(140%); animation: pop 1s var(--ease) both; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -.01em; font-size: 18px; }
.mark { width: 30px; height: 30px; border-radius: 50%; background: repeating-linear-gradient(135deg, #fff 0 2px, #7c828c 2px 4px); -webkit-mask: radial-gradient(circle, #000 62%, rgba(0, 0, 0, .35) 100%); mask: radial-gradient(circle, #000 62%, rgba(0, 0, 0, .35) 100%); }
.login h1 { margin: 26px 0 6px; font-size: 40px; line-height: 1.05; letter-spacing: -.035em; font-weight: 200; }
.login h1 b { font-weight: 700; }
.login p.sub { color: rgba(255, 255, 255, .62); max-width: 40ch; }
.profs { display: grid; gap: 10px; margin-top: 24px; }
.prof { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; text-align: left; width: 100%; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .5s var(--ease), background .4s, border-color .4s; }
.prof:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .06)); border-color: rgba(255, 255, 255, .28); transform: translateY(-2px); }
.prof .who { flex: 1; min-width: 0; }
.prof .who b { display: block; font-weight: 600; font-size: 15px; }
.prof .who span { color: rgba(255, 255, 255, .58); font-size: 13px; }
.prof .go { opacity: .4; transition: transform .5s var(--ease), opacity .3s; }
.prof:hover .go { opacity: 1; transform: translateX(4px); }
.login .fine { margin-top: 20px; font-size: 12.5px; color: rgba(255, 255, 255, .45); }

/* ---------- avatares e tons por sócio ---------- */
.av { --s: 36px; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; font-size: calc(var(--s) * .34); font-weight: 600; letter-spacing: .01em; flex: none; position: relative; }
.t1 { background: linear-gradient(180deg, #2b2e34, #0f1012); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.t2 { background: linear-gradient(180deg, #565a63, #3a3d44); color: #fff; }
.t3 { background: linear-gradient(180deg, #d9dce1, #bcc0c7); color: var(--ink); }
.t4 { background: linear-gradient(180deg, #fff, #eef0f2); color: var(--ink); box-shadow: inset 0 0 0 1px #b7bcc4; }
.t0 { background: linear-gradient(180deg, #fff, #e8eaed); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.av.big { --s: 64px; }
.avs { display: flex; }
.avs .av { --s: 28px; margin-left: -8px; box-shadow: 0 0 0 2px #fff; }
.avs .av:first-child { margin-left: 0; }

/* ---------- estrutura ---------- */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); height: 100%; }
.side { position: relative; background: var(--g950); color: #fff; display: flex; flex-direction: column; overflow: hidden; padding: 22px 16px 16px; }
.side canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .95; }
.side::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 14, 16, .25) 0%, rgba(13, 14, 16, .55) 70%, rgba(13, 14, 16, .85) 100%); pointer-events: none; }
.side > * { position: relative; z-index: 2; }
.side .brand { padding: 4px 10px 22px; }
.nav { display: grid; gap: 4px; }
.nav .lbl { padding: 16px 12px 6px; font-size: 12.5px; color: rgba(255, 255, 255, .42); }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-ctl); color: rgba(255, 255, 255, .7); border: 1px solid transparent; transition: background .35s, color .35s, transform .5s var(--ease); cursor: pointer; }
.nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; transform: translateX(2px); }
.nav a.on { color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .05)); border-color: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav a .n { margin-left: auto; font-size: 12px; padding: 1px 8px; border-radius: 99px; background: rgba(255, 255, 255, .14); }
.side .me { margin-top: auto; padding: 12px; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .12); display: flex; align-items: center; gap: 12px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.me b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.me span { font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.me .out { margin-left: auto; color: rgba(255, 255, 255, .6); padding: 6px; border-radius: 10px; transition: background .3s, color .3s; }
.me .out:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.main { display: flex; flex-direction: column; min-width: 0; background: linear-gradient(180deg, #eef0f3 0%, #e3e5e9 100%); }
.top { display: flex; align-items: center; gap: 14px; padding: 18px 40px; flex: none; }
.search { flex: 1; max-width: 520px; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: var(--r-ctl); background: linear-gradient(180deg, #fff, #f3f4f6); border: 1px solid var(--line); color: var(--g500); text-align: left; transition: border-color .3s; }
.search:hover { border-color: var(--g300); }
.search span { flex: 1; }
.kbd { font-size: 11.5px; padding: 2px 7px; border-radius: 7px; background: rgba(17, 18, 21, .05); border: 1px solid rgba(17, 18, 21, .09); color: var(--g500); }
.top .sp { flex: 1; }
.chip-role { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border-radius: 99px; background: rgba(255, 255, 255, .6); border: 1px solid var(--line); font-size: 13.5px; color: var(--g700); }
.chip-role .av { --s: 26px; }
.iconbtn { position: relative; width: 44px; height: 44px; border-radius: var(--r-ctl); display: grid; place-items: center; background: linear-gradient(180deg, #fff, #f3f4f6); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s; }
.iconbtn:hover { border-color: var(--g300); transform: translateY(-1px); }
.iconbtn .dot { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--g950); color: #fff; font-size: 11.5px; display: grid; place-items: center; border: 2px solid #eceef1; }

.btn { height: 44px; padding: 0 20px; border-radius: var(--r-ctl); display: inline-flex; align-items: center; gap: 9px; font-weight: 500; white-space: nowrap; transition: transform .45s var(--ease), filter .3s, border-color .3s; }
.btn:active { transform: scale(.97); }
.btn-dark { color: #fff; background: linear-gradient(180deg, #30333a 0%, #14151a 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16); }
.btn-dark:hover { filter: brightness(1.18); transform: translateY(-1px); }
.btn-light { background: linear-gradient(180deg, #fff, #f1f2f4); border: 1px solid var(--line); }
.btn-light:hover { border-color: var(--g300); transform: translateY(-1px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }

.view { flex: 1; overflow-y: auto; padding: 6px 40px 64px; }
.wrap { max-width: 1340px; margin: 0 auto; }

/* ---------- cartões ---------- */
.card { position: relative; border-radius: var(--r-card); padding: 22px; background: linear-gradient(180deg, #fff 0%, #f3f4f6 100%); border: 1px solid var(--line); box-shadow: inset 0 1px 0 #fff; }
.card.flat { padding: 0; overflow: hidden; }
.dark { color: #fff; border-color: rgba(255, 255, 255, .08); background: linear-gradient(155deg, #2b2e34 0%, #16181c 52%, #0d0e10 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); overflow: hidden; }
.dark::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 10px); -webkit-mask: linear-gradient(200deg, #000 0%, transparent 62%); mask: linear-gradient(200deg, #000 0%, transparent 62%); }
.dark > * { position: relative; }
.card h2, .h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.muted { color: var(--g500); }
.dark .muted { color: rgba(255, 255, 255, .58); }
.small { font-size: 13px; }

.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 10px 0 28px; }
.display { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -.04em; font-weight: 200; }
.display b { font-weight: 700; }
.page-h p { color: var(--g500); margin-top: 8px; }
.num { font-weight: 200; letter-spacing: -.05em; line-height: .95; font-variant-numeric: tabular-nums; }
.grid { display: grid; gap: 16px; }

.bento { grid-template-columns: 1.55fr 1fr 1fr 1fr; grid-template-rows: auto; }
.kpi { display: flex; flex-direction: column; justify-content: space-between; min-height: 176px; }
.kpi .lab { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--g500); }
.dark .lab { color: rgba(255, 255, 255, .62); }
.kpi .num { font-size: 64px; }
.kpi.big .num { font-size: 92px; }
.kpi .foot { font-size: 13.5px; color: var(--g500); display: flex; align-items: center; gap: 8px; }
.dark .foot { color: rgba(255, 255, 255, .6); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; }
.bars i { width: 10px; border-radius: 4px; background: rgba(255, 255, 255, .28); transform-origin: bottom; animation: grow 1.1s var(--ease) both; animation-delay: calc(var(--k) * 70ms + 300ms); }
.bars i.on { background: #fff; }
@keyframes grow { from { transform: scaleY(0); } }

.two { grid-template-columns: 1.4fr 1fr; margin-top: 16px; align-items: start; }
.list { display: grid; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 8px; border-radius: 14px; transition: background .35s; cursor: pointer; }
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: linear-gradient(90deg, rgba(17, 18, 21, .04), rgba(17, 18, 21, 0)); }
.row .when { width: 72px; flex: none; }
.row .when b { display: block; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.row .when span { font-size: 12.5px; color: var(--g500); }
.row .what { flex: 1; min-width: 0; }
.row .what b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .what span { font-size: 13px; color: var(--g500); display: flex; align-items: center; gap: 6px; }
.empty { padding: 28px 10px; text-align: center; color: var(--g500); }
.empty b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }

.beam { position: relative; }
.beam::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--a), transparent 0 68%, rgba(17, 18, 21, .15) 78%, var(--ink) 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: beam 3.4s linear infinite; }
.dark.beam::before, .beam.on-dark::before { background: conic-gradient(from var(--a), transparent 0 68%, rgba(255, 255, 255, .2) 78%, #fff 92%, transparent 100%); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.st-exito { background: linear-gradient(180deg, #2b2e34, #121316); color: #fff; }
.st-recurso { background: linear-gradient(180deg, #7b818b, #5d626b); color: #fff; }
.st-andamento { background: #fff; border: 1px solid var(--g300); color: var(--g700); }
.st-encerrado { background: var(--g150); color: var(--g500); }
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; background: var(--g100); color: var(--g700); border: 1px solid var(--line); }
.mix { display: flex; gap: 2px; height: 6px; width: 120px; }
.mix i { border-radius: 99px; min-width: 6px; }
.m-exito { background: #141518; } .m-recurso { background: #7b818b; } .m-andamento { background: #c8ccd2; } .m-encerrado { background: #e4e6ea; box-shadow: inset 0 0 0 1px #d5d8dd; }

/* ---------- agenda ---------- */
.bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 14px; background: rgba(17, 18, 21, .06); }
.seg button { height: 34px; padding: 0 16px; border-radius: 10px; font-weight: 500; font-size: 14px; color: var(--g600); transition: background .35s, color .35s; }
.seg button.on { background: linear-gradient(180deg, #fff, #f1f2f4); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.navarrows { display: flex; align-items: center; gap: 6px; }
.navarrows .iconbtn { width: 38px; height: 38px; }
.range { font-weight: 600; font-size: 17px; min-width: 190px; text-align: center; letter-spacing: -.01em; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.fchip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 5px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; transition: opacity .3s, transform .4s var(--ease); }
.fchip .av { --s: 28px; }
.fchip.off { opacity: .42; }
.fchip:hover { transform: translateY(-1px); }
.cal { display: grid; grid-template-columns: 62px repeat(var(--cols), minmax(0, 1fr)); }
.cal-h { display: contents; }
.cal-h > div { padding: 14px 10px; text-align: left; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff, #f6f7f8); display: flex; align-items: center; gap: 10px; }
.cal-h .d { font-size: 13px; color: var(--g500); }
.cal-h .d b { display: block; font-size: 22px; font-weight: 300; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cal-h .today .d b { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 99px; background: linear-gradient(180deg, #2b2e34, #121316); color: #fff; font-weight: 500; }
.cal-h .av { --s: 32px; }
.cal-h .who b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.cal-h .who span { font-size: 12px; color: var(--g500); }
.hours { position: relative; }
.hours div { height: 60px; font-size: 12px; color: var(--g400); text-align: right; padding: 0 10px 0 0; transform: translateY(-8px); font-variant-numeric: tabular-nums; }
.col { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0 59px, rgba(17, 18, 21, .07) 59px 60px); cursor: cell; }
.col.today { background-color: rgba(17, 18, 21, .025); }
.ev { position: absolute; border-radius: 12px; padding: 8px 10px; font-size: 12.5px; line-height: 1.3; overflow: hidden; cursor: pointer; text-align: left; transition: transform .5s var(--ease), filter .3s; animation: pop .7s var(--ease) both; animation-delay: calc(var(--k, 0) * 40ms); }
.ev:hover { transform: scale(1.015); filter: brightness(1.08); z-index: 3; }
.ev b { display: block; font-weight: 600; font-size: 12.5px; }
.ev span { opacity: .78; display: block; }
.ev.t4 { box-shadow: inset 0 0 0 1px #b7bcc4; }
.nowline { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px solid var(--ink); z-index: 4; pointer-events: none; }
.nowline::before { content: ''; position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--g500); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend .av { --s: 22px; font-size: 9px; }

/* ---------- tabelas ---------- */
.thead, .trow { display: grid; align-items: center; gap: 16px; padding: 0 24px; }
.thead { height: 46px; font-size: 13px; color: var(--g500); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fafafb, #f1f2f4); }
.trow { min-height: 74px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .4s; background-image: linear-gradient(100deg, transparent 30%, rgba(17, 18, 21, .045) 50%, transparent 70%); background-size: 260% 100%; background-position: 160% 0; }
.trow:hover { animation: sweep 1.1s var(--ease) both; }
.trow:last-child { border-bottom: 0; }
.cl-cols { grid-template-columns: minmax(220px, 1.7fr) minmax(130px, 1fr) 120px 140px 130px 28px; }
.pr-cols { grid-template-columns: minmax(240px, 1.8fr) minmax(150px, 1fr) 150px 140px 150px; }
.tcell b { font-weight: 500; display: block; }
.tcell span { font-size: 13px; color: var(--g500); }
.cell-person { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cell-person .av { --s: 42px; border-radius: 14px; }
.cell-person b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.field-search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; min-width: 300px; border-radius: var(--r-ctl); background: #fff; border: 1px solid var(--line); color: var(--g500); }
.field-search input { border: 0; outline: 0; background: none; flex: 1; color: var(--ink); }
.field-search:focus-within { border-color: var(--ink); }

/* ---------- ficha do cliente ---------- */
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--g500); margin: 6px 0 18px; padding: 6px 12px 6px 6px; border-radius: 99px; transition: background .3s, color .3s; }
.back:hover { background: rgba(17, 18, 21, .06); color: var(--ink); }
.ficha-h { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; }
.ficha-h .av { --s: 84px; border-radius: 26px; font-size: 28px; }
.ficha-h .acts { margin-left: auto; display: flex; gap: 10px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tabs { display: flex; gap: 6px; margin: 4px 0 18px; border-bottom: 1px solid var(--line); }
.tabs button { padding: 12px 16px; color: var(--g500); font-weight: 500; position: relative; transition: color .3s; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); }
.tabs button.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); animation: fade .4s both; }
.stats4 { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.stat .num { font-size: 56px; margin: 18px 0 8px; }
.stat .lab { font-size: 14px; color: var(--g500); display: flex; align-items: center; gap: 8px; }
.dark .stat .lab, .stat.dark .lab { color: rgba(255, 255, 255, .62); }
.rate { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .16); overflow: hidden; margin-top: 4px; }
.rate i { display: block; height: 100%; border-radius: 99px; background: #fff; transform-origin: left; animation: grow2 1.3s var(--ease) both .3s; }
@keyframes grow2 { from { transform: scaleX(0); } }
.orbit { position: relative; width: 300px; height: 300px; margin: 6px auto 0; }
.orbit .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); }
.orbit .ring.r2 { inset: 54px; }
.orbit .core { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 24px; color: #fff; background: radial-gradient(circle at 30% 25%, #4b4f58, #121316 70%); box-shadow: 0 0 0 8px rgba(17, 18, 21, .05), 0 0 0 16px rgba(17, 18, 21, .03); }
.orbit .spin { position: absolute; inset: 0; animation: spin 70s linear infinite; }
.orbit .node { position: absolute; left: 50%; top: 50%; transform: translate(var(--x), var(--y)); }
.orbit .node > div { animation: spin 70s linear infinite reverse; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: -22px 0 0 -22px; width: 44px; }
.orbit .node .av { --s: 44px; }
.orbit .node em { font-style: normal; font-size: 11.5px; padding: 1px 8px; border-radius: 99px; background: var(--ink); color: #fff; white-space: nowrap; }
.tl { position: relative; padding-left: 26px; display: grid; gap: 4px; }
.tl::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--g300), var(--g200) 70%, transparent); }
.tl .it { position: relative; padding: 10px 0 10px 6px; }
.tl .it::before { content: ''; position: absolute; left: -26px; top: 16px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 1.5px solid var(--g400); }
.tl .it.s-exito::before { background: var(--ink); border-color: var(--ink); }
.tl .it.s-recurso::before { background: linear-gradient(90deg, var(--g600) 50%, #fff 50%); border-color: var(--g600); }
.tl .it b { font-weight: 500; display: block; }
.tl .it span { font-size: 13px; color: var(--g500); }
.doc { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 12px; transition: background .3s; cursor: pointer; }
.doc:hover { background: rgba(17, 18, 21, .045); }
.doc + .doc { border-top: 1px solid var(--line); }
.doc .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--g100); border: 1px solid var(--line); }
.drop { margin-top: 12px; border: 1.5px dashed var(--g300); border-radius: 16px; padding: 22px; text-align: center; color: var(--g500); transition: background .3s, border-color .3s; cursor: pointer; }
.drop:hover { background: rgba(17, 18, 21, .03); border-color: var(--g500); }

/* ---------- datas importantes ---------- */
.date-row { display: flex; align-items: center; gap: 18px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.date-row:last-child { border-bottom: 0; }
.date-row .big { width: 64px; flex: none; text-align: center; }
.date-row .big b { display: block; font-size: 32px; font-weight: 200; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.date-row .big span { font-size: 12.5px; color: var(--g500); }
.date-row .mid { flex: 1; min-width: 0; }
.date-row .mid b { display: block; font-weight: 500; }
.date-row .mid span { font-size: 13px; color: var(--g500); }
.who-chips { display: flex; gap: 6px; }
.wchip { padding: 5px 12px; border-radius: 99px; font-size: 12.5px; background: var(--g100); color: var(--g500); border: 1px solid var(--line); transition: background .3s, color .3s; }
.wchip.on { background: linear-gradient(180deg, #2b2e34, #121316); color: #fff; border-color: transparent; }
.in { font-size: 12.5px; color: var(--g500); width: 92px; text-align: right; flex: none; }
.sec-title { margin: 28px 4px 12px; font-size: 14px; color: var(--g500); font-weight: 500; }

/* ---------- janelas ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(13, 14, 16, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: grid; place-items: center; animation: fade .35s both; padding: 20px; }
.modal { width: min(580px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 24px; padding: 28px; background: linear-gradient(180deg, #fff, #f1f2f4); border: 1px solid rgba(255, 255, 255, .7); animation: pop .7s var(--ease) both; }
.modal h3 { font-size: 26px; letter-spacing: -.03em; font-weight: 200; line-height: 1.1; }
.modal h3 b { font-weight: 700; }
.modal .sub { color: var(--g500); margin: 6px 0 20px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fgrid .full { grid-column: 1 / -1; }
.f label { display: block; font-size: 13px; color: var(--g600); margin-bottom: 6px; font-weight: 500; }
.f input, .f select { width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r-ctl); border: 1px solid var(--g200); background: #fff; outline: 0; transition: border-color .3s, box-shadow .3s; }
.f input:focus, .f select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 18, 21, .1); }
.warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 13.5px; margin-top: 14px; animation: rise .5s var(--ease) both; }
.ok { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--g100); border: 1px solid var(--line); font-size: 13.5px; color: var(--g600); margin-top: 14px; }
.mfoot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.x { position: absolute; right: 18px; top: 18px; }
.modal { position: relative; }
.kv { display: grid; gap: 14px; margin-top: 8px; }
.kv div { display: flex; gap: 14px; align-items: center; }
.kv .k { width: 22px; color: var(--g500); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 99px; background: linear-gradient(180deg, #2b2e34, #0f1012); color: #fff; font-size: 14px; animation: pop .6s var(--ease) both; }

.spot { align-items: start; padding-top: 14vh; }
.spotbox { width: min(660px, 100%); border-radius: 22px; overflow: hidden; color: #fff; background: linear-gradient(180deg, rgba(48, 51, 58, .9), rgba(20, 21, 24, .94)); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); animation: pop .6s var(--ease) both; }
.spotin { display: flex; align-items: center; gap: 12px; padding: 0 20px; height: 62px; border-bottom: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .6); }
.spotin input { flex: 1; background: none; border: 0; outline: 0; color: #fff; font-size: 17px; }
.spotin input::placeholder { color: rgba(255, 255, 255, .4); }
.spotres { max-height: 52vh; overflow-y: auto; padding: 8px; }
.spotres h5 { font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, .45); padding: 10px 12px 6px; }
.sp-it { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; width: 100%; text-align: left; color: #fff; }
.sp-it.on, .sp-it:hover { background: rgba(255, 255, 255, .1); }
.sp-it small { margin-left: auto; color: rgba(255, 255, 255, .45); font-size: 12.5px; }
.sp-it .ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); }

.pop { position: fixed; z-index: 70; width: 380px; top: 74px; right: 40px; border-radius: 20px; padding: 10px; background: linear-gradient(180deg, #fff, #f1f2f4); border: 1px solid var(--line); animation: pop .55s var(--ease) both; }
.pop h4 { padding: 12px 12px 8px; font-weight: 600; }
.pop .nt { display: flex; gap: 12px; padding: 12px; border-radius: 14px; align-items: flex-start; }
.pop .nt + .nt { border-top: 1px solid var(--line); }
.pop .nt .ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; flex: none; }
.pop .nt b { font-weight: 500; display: block; line-height: 1.3; }
.pop .nt span { font-size: 13px; color: var(--g500); }

@media (max-width: 1180px) and (orientation: portrait) {
  .app { grid-template-columns: 84px minmax(0, 1fr); }
  .side { padding: 18px 12px; align-items: center; }
  .side .brand span, .nav .lbl, .nav a span, .nav a .n, .me > div, .me .out { display: none; }
  .nav a { justify-content: center; padding: 13px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .two, .stats4 { grid-template-columns: 1fr; }
  .view, .top { padding-left: 24px; padding-right: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.search span, .nav a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#root { height: 100%; }
@media (max-height: 760px) {
  .login { overflow-y: auto; place-items: start center; padding: 18px 0; }
  .glass { width: min(820px, calc(100vw - 32px)); margin: auto; padding: 26px 30px; }
  .login h1 { margin: 14px 0 4px; font-size: 32px; }
  .login h1 br { display: none; }
  .profs { grid-template-columns: 1fr 1fr; margin-top: 16px; gap: 8px; }
  .login .fine { margin-top: 12px; }
}
@media (max-height: 760px) { .login h1 span { margin-right: .25em; } }
.view, .login, .modal, .spotres { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.view { touch-action: pan-y; }
.app { min-height: 0; } .main { min-height: 0; overflow: hidden; } .view { min-height: 0; }

/* ---------- acesso ---------- */
.auth .afs { display: grid; gap: 14px; margin-top: 24px; }
.af label { display: block; font-size: 13px; color: rgba(255, 255, 255, .62); margin-bottom: 6px; font-weight: 500; }
.ain { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 14px; border-radius: 14px; color: rgba(255, 255, 255, .55); background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .14); transition: border-color .3s, background .3s; }
.ain:focus-within { border-color: rgba(255, 255, 255, .6); color: #fff; }
.ain input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font-size: 16px; height: 100%; }
.ain input::placeholder { color: rgba(255, 255, 255, .32); }
.ain button { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: rgba(255, 255, 255, .6); }
.ain button:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-white { width: 100%; height: 52px; justify-content: center; margin-top: 18px; color: var(--ink); font-weight: 600; background: linear-gradient(180deg, #fff, #d9dce1); }
.btn-white:hover { filter: brightness(1.06); transform: translateY(-1px); }
.aerr { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 11px 14px; border-radius: 12px; font-size: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); animation: rise .45s var(--ease) both; }
.reqs { list-style: none; padding: 0; margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.reqs li { display: flex; align-items: center; gap: 7px; transition: color .3s; }
.reqs li.sim { color: #fff; }
.reqs.light { color: var(--g400); } .reqs.light li.sim { color: var(--ink); }
.f input[type=password] { font-size: 16px; }
@media (max-height: 760px) { .auth .afs { grid-template-columns: 1fr 1fr; margin-top: 14px; } .btn-white { margin-top: 12px; } }
.side .brand { font-size: 16px; white-space: nowrap; }

/* fase 1: prazos, documentos e honorários */
.stat .num.sm { font-size: 38px; letter-spacing: -.03em; }
.pz-two, .hon-two { grid-template-columns: 1.15fr 1fr; align-items: start; }
.hon-two { grid-template-columns: minmax(0, 1fr); }
.doc-two { grid-template-columns: .8fr 1.2fr; align-items: start; }
.pz-cols { grid-template-columns: minmax(240px, 1.7fr) 150px 160px minmax(230px, 1.3fr) 190px; }
.hon-cols { grid-template-columns: minmax(200px, 1.6fr) 120px 120px 110px 200px; }
.acts { display: flex; gap: 8px; justify-content: flex-end; }
.pz-res { margin-top: 18px; padding: 18px 20px; border-radius: 14px; background: linear-gradient(180deg, #14151a, #26292f); color: #fff; }
.pz-big span { display: block; font-size: 13.5px; opacity: .6; margin-bottom: 4px; }
.pz-big b { display: block; font-size: 40px; font-weight: 700; letter-spacing: -.03em; }
.pz-res .small { margin-top: 10px; color: rgba(255, 255, 255, .62) !important; }
.pub { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.pub b { display: block; font-weight: 600; }
.pub span { font-size: 13px; color: var(--g500); }
.alt { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--g400); }
.alt span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; border: 1px solid var(--g300); }
.alt span.on { color: var(--ink); }
.alt span.on::before { background: var(--ink); border-color: var(--ink); }
.esc { display: block; margin-top: 6px; font-size: 12.5px; color: var(--g600); font-weight: 600; }
.nv { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: var(--g300); }
.nv.crit { background: var(--ink); } .nv.atenc { background: var(--g500); }
.st-atraso { background: #fff; border: 1.5px solid var(--ink); color: var(--ink); font-weight: 600; }
.paper { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 56px 64px; font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.7; color: #111; min-height: 640px; }
.paper h4 { text-align: center; font-size: 20px; margin-bottom: 26px; }
.paper p { margin-bottom: 14px; text-align: justify; }
.paper .ass { text-align: center; margin-top: 40px; }
.paper mark { background: #e4e6ea; padding: 0 4px; border-radius: 3px; }
.wa { background: #e9ebee; border-radius: 16px; padding: 18px; margin-bottom: 16px; }
.bub { background: #fff; border-radius: 4px 14px 14px 14px; padding: 14px 16px; font-size: 14.5px; line-height: 1.55; max-width: 420px; }
@media print { body.printdoc .side, body.printdoc .top, body.printdoc .page-h, body.printdoc .doc-two > .card { display: none !important; } body.printdoc .paper { border: 0; padding: 0; } }

/* ---------- menu lateral rola quando a tela é baixa (celular deitado) ---------- */
.side { min-height: 0; }
.nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; align-content: start; touch-action: pan-y; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.nav::-webkit-scrollbar { width: 0; }
.side .me { flex: none; }
.side .brand { flex: none; }
.mbrand, .mav, .tabbar, .fab { display: none; }

/* ---------- celular em pé ---------- */
@media (max-width: 820px) and (orientation: portrait) {
  html, body { height: 100%; }
  .app { display: block; height: 100dvh; position: relative; }
  .side { display: none; }
  .main { height: 100dvh; }
  .top { padding: 10px 14px; gap: 10px; }
  .mbrand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; margin-right: auto; min-width: 0; }
  .mbrand .mark { width: 26px; height: 26px; filter: invert(1); }
  .mbrand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .search { flex: none; width: 44px; padding: 0; justify-content: center; }
  .search span, .search .kbd, .chip-role, .top .sp, .btn-novo { display: none; }
  .mav { display: grid; place-items: center; --s: 40px; }
  .view { padding: 2px 16px calc(116px + env(safe-area-inset-bottom)); }
  .page-h { flex-direction: column; align-items: flex-start; gap: 14px; margin: 6px 0 18px; }
  .display { font-size: 36px; }
  .card { padding: 18px; }
  .card.flat { padding: 0; }
  .bento, .two, .stats4, .pz-two, .hon-two, .doc-two { grid-template-columns: 1fr; }
  .bento, .stats4 { grid-template-columns: 1fr 1fr; }
  .bento .kpi.big, .stats4 .stat:first-child { grid-column: 1 / -1; }
  .kpi { min-height: 128px; }
  .kpi .num { font-size: 52px; }
  .kpi.big .num { font-size: 72px; }
  .stat .num { font-size: 44px; margin: 12px 0 4px; }
  .stat .num.sm { font-size: 28px; }
  .pz-big b { font-size: 34px; }
  .paper { padding: 28px 22px; font-size: 14px; min-height: 0; }
  .mfoot { flex-wrap: wrap; }
  .mfoot .btn { flex: 1 1 auto; justify-content: center; }

  /* tabelas viram cartões */
  .thead { display: none; }
  .trow { grid-template-columns: 1fr 1fr !important; gap: 10px 14px; padding: 16px; min-height: 0; }
  .trow > :first-child, .trow > .alt, .trow > .acts { grid-column: 1 / -1; }
  .acts { justify-content: flex-start; flex-wrap: wrap; }
  .field-search { min-width: 0; width: 100%; }
  .seg { max-width: 100%; overflow-x: auto; }
  .seg button { white-space: nowrap; }
  .toolbar { gap: 10px; }
  .date-row { flex-wrap: wrap; gap: 10px 14px; padding: 14px 16px; }
  .in { width: auto; text-align: left; }

  /* ficha */
  .ficha-h { flex-wrap: wrap; gap: 14px; }
  .ficha-h .av { --s: 64px; font-size: 22px; border-radius: 20px; }
  .ficha-h .acts { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .tabs { overflow-x: auto; white-space: nowrap; margin-left: -4px; }
  .tabs button { padding: 12px 14px; }
  .orbit { transform: scale(.88); transform-origin: top center; margin-bottom: -30px; }

  /* agenda do celular */
  .mweek { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; margin-bottom: 12px; }
  .mdays { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
  .mdays button { display: grid; justify-items: center; gap: 2px; padding: 10px 0 8px; border-radius: 16px; background: linear-gradient(180deg, #fff, #f3f4f6); border: 1px solid var(--line); color: var(--g500); }
  .mdays button b { font-size: 22px; font-weight: 300; color: var(--ink); letter-spacing: -.03em; }
  .mdays button span { font-size: 12.5px; }
  .mdays button i { font-style: normal; font-size: 11px; min-height: 14px; color: var(--g500); }
  .mdays button.on { background: linear-gradient(180deg, #2b2e34, #121316); border-color: transparent; color: rgba(255, 255, 255, .7); }
  .mdays button.on b, .mdays button.on i { color: #fff; }
  .mdays button.hoje:not(.on) { border-color: var(--ink); }
  .mfil { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }
  .mfil .fchip { flex: none; }

  /* barra de abas e botão + */
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40; padding: 6px; border-radius: 24px; color: rgba(255, 255, 255, .62);
    background: linear-gradient(180deg, rgba(48, 51, 58, .92), rgba(15, 16, 19, .96)); border: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%); }
  .tabbar button { position: relative; display: grid; justify-items: center; gap: 3px; padding: 9px 0 7px; border-radius: 18px; color: inherit; transition: background .35s, color .35s; min-height: 56px; }
  .tabbar button span { font-size: 11.5px; font-weight: 500; }
  .tabbar button.on { color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06)); }
  .tabbar button em { position: absolute; top: 8px; right: calc(50% - 18px); width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #1c1e23; }
  .fab { display: grid; place-items: center; position: fixed; right: 18px; bottom: calc(104px + env(safe-area-inset-bottom)); z-index: 41; width: 56px; height: 56px; border-radius: 50%; color: var(--ink);
    background: linear-gradient(180deg, #fff, #d9dce1); border: 1px solid rgba(17, 18, 21, .12); transition: transform .45s var(--ease), opacity .3s; }
  .fab:active { transform: scale(.94); }
  .fab.off { opacity: 0; pointer-events: none; transform: scale(.7); }

  /* janelas viram folhas que sobem de baixo */
  .scrim { place-items: end center; padding: 0; }
  .modal { width: 100%; max-height: 92dvh; border-radius: 26px 26px 0 0; padding: 24px 18px calc(24px + env(safe-area-inset-bottom)); animation: sheet .6s var(--ease) both; }
  .modal h3 { font-size: 28px; padding-right: 40px; }
  .fgrid { grid-template-columns: 1fr; }
  .f input, .f select { font-size: 16px; }
  .spot { place-items: start center; padding: 10px; }
  .spotbox { margin-top: 4vh; }
  .pop { width: auto; left: 12px; right: 12px; top: 64px; }
  .toast { bottom: calc(100px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); }
  .mlist { display: grid; gap: 8px; margin-top: 18px; }
  .mlist button { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; text-align: left; background: #fff; border: 1px solid var(--line); font-weight: 500; }
  .mlist button span { flex: 1; }
  .mlist button .ic:last-child { color: var(--g400); }

  /* entrada */
  .glass { padding: 26px 20px; border-radius: 24px; }
  .login h1 { font-size: 34px; }
  .profs, .auth .afs { grid-template-columns: 1fr !important; }
  .reqs { grid-template-columns: 1fr; }
  .login { overflow-y: auto; place-items: start center; padding: 16px 0; }
  .glass { margin: auto; }
}
@media (max-width: 820px) and (orientation: portrait) {
  .view > .wrap, .bento > *, .two > *, .stats4 > *, .pz-two > *, .hon-two > *, .doc-two > *, .card, .list, .row { min-width: 0; max-width: 100%; }
  .row .what span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .row .when { width: 58px; }
  .card-h { flex-wrap: wrap; gap: 6px 12px; }
  .mfil .fchip { max-width: none; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Celular em pé: barra de abas flutuante (modelo A), dentro do layout, fundo 65% */
@media (max-width: 820px) and (orientation: portrait) {
  html, body { height: var(--ah, 100%); overflow: hidden; }
  .app { display: flex; flex-direction: column; height: var(--ah, 100dvh); position: relative; }
  .main { flex: 1 1 auto; min-height: 0; height: auto; }
  .view { padding-bottom: 110px; }
  .tabbar { position: absolute; left: 22px; right: 22px; bottom: calc(5px + env(safe-area-inset-bottom)); margin: 0; z-index: 40; padding: 4px; border-radius: 22px;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); background: linear-gradient(180deg, rgba(48, 51, 58, .65), rgba(18, 19, 22, .65)); }
  .tabbar button { min-height: 46px; padding: 6px 0 5px; gap: 1px; border-radius: 18px; }
  .tabbar button svg, .tabbar button .ic { width: 21px; height: 21px; }
  .tabbar button span { font-size: 10.5px; }
  .fab { position: absolute; right: 22px; bottom: calc(71px + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
  .toast { bottom: calc(82px + env(safe-area-inset-bottom)); }
}

/* seletor de perfil do modo de teste */
.perfis { display: grid; gap: 8px; margin-top: 16px; }
.perfis button { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; text-align: left; background: #fff; border: 1px solid var(--line); font-weight: 500; }
.perfis button .av { flex: none; width: 44px; height: 44px; }
.perfis button span:last-child { display: grid; }
.perfis button small { font-weight: 400; color: var(--g500); font-size: 13px; }

/* clientes: áreas em texto no desktop, etiqueta de situação só no celular */
.st-pill { display: none; }
@media (max-width: 820px) and (orientation: portrait) {
  .card.flat:has(#cl-list) { background: none; border: 0; box-shadow: none; padding: 0; overflow: visible; }
  #cl-list { display: grid; gap: 14px; }
  #cl-list .trow { grid-template-columns: 1fr 1fr 1fr !important; grid-template-areas: "pessoa pessoa pessoa" "areas areas areas" "casos contr socios"; gap: 12px 10px; padding: 18px 16px 16px; position: relative;
    border: 1px solid rgba(17, 18, 21, .12); border-radius: 24px; background: linear-gradient(180deg, #fff, #f4f5f7); box-shadow: 0 1px 0 #fff inset, 0 10px 24px -16px rgba(17, 18, 21, .35); }
  #cl-list .trow.cl-historico { background: linear-gradient(180deg, #f6f7f8, #eceef1); }
  #cl-list .trow > .cell-person { grid-area: pessoa; display: flex; align-items: center; gap: 14px; }
  #cl-list .trow > .cell-person .tcell { flex: 1; }
  .st-pill { display: inline-block; font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #111215; color: #fff; align-self: flex-start; }
  .cl-historico .st-pill { background: #dfe2e6; color: #4a4e55; }
  #cl-list .trow > .areas { grid-area: areas; display: flex; flex-wrap: wrap; gap: 6px; }
  #cl-list .areas b { display: flex; flex-wrap: wrap; gap: 6px; }
  #cl-list .trow > .avs { grid-area: socios; }
  #cl-list .trow > .tcell:nth-of-type(4) { grid-area: casos; }
  #cl-list .trow > .tcell:nth-of-type(5) { grid-area: contr; }
  #cl-list .trow > .tcell:nth-of-type(4), #cl-list .trow > .tcell:nth-of-type(5), #cl-list .trow > .avs { background: rgba(17, 18, 21, .045); border-radius: 16px; padding: 12px; min-height: 84px; align-content: start; }
  #cl-list .trow > .avs::before { content: 'Sócios'; display: block; width: 100%; font-size: 12.5px; color: var(--g500); margin-bottom: 8px; }
  #cl-list .trow > .avs { flex-wrap: wrap; align-content: start; }
  #cl-list .trow > svg:last-child, #cl-list .trow > .ic:last-child { display: none; }
}

/* ---------- cores por área do direito ---------- */
[data-a="Civil"] { --ac: #3d6fa8; }
[data-a="Empresarial"] { --ac: #2f8079; }
[data-a="Ambiental"] { --ac: #5f8f3a; }
[data-a="Administrativo"] { --ac: #bb8420; }
[data-a="Licitações"] { --ac: #7a58a8; }
[data-a="Tributário"] { --ac: #b8553d; }
[data-a="Consumidor"] { --ac: #b04f7a; }
.ar { --c: var(--ac, #6b7078); display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; margin: 0 5px 4px 0; border-radius: 999px; font-size: 12.5px; font-weight: 500; line-height: 1.3; white-space: nowrap;
  color: color-mix(in srgb, var(--c) 62%, #111215); background: color-mix(in srgb, var(--c) 11%, #fff); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.ar::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.tcell .ar { color: color-mix(in srgb, var(--c) 62%, #111215); font-size: 12.5px; margin-top: 6px; }
.tcell.areas { display: flex; flex-wrap: wrap; }
.tcell.areas > b { display: flex; flex-wrap: wrap; }

/* faixa de perfil e explicação das telas */
.voce { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; margin: 0 0 18px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #1a1c20, #34383f 60%, #23262b); box-shadow: 0 10px 26px -14px rgba(17, 18, 21, .55); }
.voce .av { flex: none; --s: 44px; border: 1px solid rgba(255, 255, 255, .25); }
.voce .vt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.voce .vt b { font-weight: 600; font-size: 15px; }
.voce .vt em { font-style: normal; }
.voce .vt span { font-size: 13px; color: rgba(255, 255, 255, .66); line-height: 1.35; }
.voce .vbtn { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-weight: 500; font-size: 13.5px; }
.guia { position: relative; display: flex; gap: 14px; padding: 16px 44px 16px 16px; margin: 0 0 20px; border-radius: 22px; background: linear-gradient(180deg, #fff, #f3f4f6); border: 1px solid var(--line); box-shadow: 0 8px 22px -16px rgba(17, 18, 21, .35); }
.guia .gi { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, #3a3d44, #131417); }
.guia .gt b { display: block; font-weight: 600; font-size: 15.5px; }
.guia .gt p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--g500); }
.guia .gc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.guia .gc i { font-style: normal; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: rgba(17, 18, 21, .06); color: #3a3e45; }
.guia .gx { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--g500); }
.guia-min { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--g500); background: rgba(17, 18, 21, .05); }

@media (max-width: 820px) and (orientation: portrait) {
  .voce { padding: 10px 10px 10px 10px; gap: 12px; margin-bottom: 14px; border-radius: 20px; }
  .voce .av { --s: 40px; }
  .voce .vt em { display: none; }
  .voce .vt b { font-size: 14.5px; }
  .voce .vbtn { height: 38px; padding: 0 12px; font-size: 13px; }
  .guia { padding: 14px 38px 14px 14px; gap: 12px; margin-bottom: 16px; }
  .guia .gi { width: 36px; height: 36px; border-radius: 11px; }
  .guia .gt b { font-size: 15px; }
  .guia .gt p { font-size: 13.5px; line-height: 1.45; }
  .guia .gc { gap: 5px; margin-top: 8px; }
  .guia .gc i { font-size: 12px; padding: 3px 9px; }
  .pr-cols > :nth-child(1) > span:not(.ar) { display: block; }
  .pr-cols > :nth-child(1) .ar { display: flex; width: fit-content; margin-top: 8px; }

  /* tabelas viram cartões separados, sem divisória fina */
  .card.flat:has(.trow), .card.flat:has(.date-row) { background: none; border: 0; box-shadow: none; padding: 0; overflow: visible; }
  .hon-two .card.flat .toolbar { padding: 0 !important; margin-bottom: 16px; }
  .hon-cols:has(.st-atraso) { --ac: #c24a3a; } .hon-cols:has(.st-andamento) { --ac: #bb8420; } .hon-cols:has(.st-exito) { --ac: #2f8a5a; }
  .pz-cols.beam { --ac: #c24a3a; }
  .hon-cols > :nth-child(2), .hon-cols > :nth-child(3) { align-self: stretch; }
  .hon-two .card.flat .toolbar + .thead + * { margin-top: 0; }
  .trow:not(.cl-cols) { position: relative; margin-bottom: 14px; border: 1px solid rgba(17, 18, 21, .1); border-radius: 22px; background-color: #fff; box-shadow: 0 10px 24px -16px rgba(17, 18, 21, .35); padding: 20px 16px 16px; gap: 12px 10px; }
  .trow:not(.cl-cols)::after { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 4px; border-radius: 0 0 6px 6px; background: var(--ac, #c9ccd1); }
  .trow:not(.cl-cols) > * { min-width: 0; }
  .trow:not(.cl-cols) .tcell b { white-space: normal !important; }
  #cl-list .trow::after { content: ''; position: absolute; left: 18px; right: 18px; top: 0; height: 4px; border-radius: 0 0 6px 6px; background: var(--ac, #c9ccd1); }

  /* processos */
  .pr-cols { grid-template-areas: "tit tit" "cli resp" "sit pra"; }
  .pr-cols > :nth-child(1) { grid-area: tit; } .pr-cols > :nth-child(2) { grid-area: cli; } .pr-cols > :nth-child(3) { grid-area: resp; } .pr-cols > :nth-child(4) { grid-area: sit; } .pr-cols > :nth-child(5) { grid-area: pra; }
  .pr-cols > :nth-child(1) b { font-size: 16.5px; line-height: 1.3; }
  .pr-cols > :nth-child(2)::before { content: 'Cliente'; display: block; font-size: 12px; color: var(--g500); margin-bottom: 2px; }
  .pr-cols > :nth-child(3)::before { content: 'Responsável'; display: block; width: 100%; font-size: 12px; color: var(--g500); }
  .pr-cols > :nth-child(3) { flex-wrap: wrap; align-content: start; }
  .pr-cols > :nth-child(5) { background: rgba(17, 18, 21, .05); border-radius: 16px; padding: 10px 12px; }
  .pr-cols > :nth-child(5)::before { content: 'Próximo prazo'; display: block; font-size: 12px; color: var(--g500); margin-bottom: 2px; }
  .pr-cols > :nth-child(4) { align-self: center; }

  /* prazos */
  .pz-cols { grid-template-areas: "tit tit" "ven resp" "alt alt" "cie cie"; }
  .pz-cols > :nth-child(1) { grid-area: tit; } .pz-cols > :nth-child(2) { grid-area: resp; } .pz-cols > :nth-child(3) { grid-area: ven; } .pz-cols > :nth-child(4) { grid-area: alt; } .pz-cols > :nth-child(5) { grid-area: cie; }
  .pz-cols > :nth-child(1) b { font-size: 16px; line-height: 1.3; }
  .pz-cols > :nth-child(3) { background: rgba(17, 18, 21, .05); border-radius: 16px; padding: 10px 12px; }
  .pz-cols > :nth-child(3)::before { content: 'Vence'; display: block; font-size: 12px; color: var(--g500); margin-bottom: 2px; }
  .pz-cols > :nth-child(2) { flex-wrap: wrap; align-content: start; }
  .pz-cols > :nth-child(2)::before { content: 'Responsável'; display: block; width: 100%; font-size: 12px; color: var(--g500); }

  /* honorários */
  .hon-cols { grid-template-areas: "cli cli" "ven val" "sit act"; }
  .hon-cols > :nth-child(1) { grid-area: cli; } .hon-cols > :nth-child(2) { grid-area: ven; } .hon-cols > :nth-child(3) { grid-area: val; } .hon-cols > :nth-child(4) { grid-area: sit; } .hon-cols > .acts { grid-area: act; justify-content: flex-end; }
  .hon-cols > :nth-child(1) b { font-size: 16px; }
  .hon-cols > :nth-child(2), .hon-cols > :nth-child(3) { background: rgba(17, 18, 21, .05); border-radius: 16px; padding: 10px 12px; }
  .hon-cols > :nth-child(2)::before { content: 'Vencimento'; display: block; font-size: 12px; color: var(--g500); margin-bottom: 2px; }
  .hon-cols > :nth-child(3)::before { content: 'Valor'; display: block; font-size: 12px; color: var(--g500); margin-bottom: 2px; }
  .hon-cols > :nth-child(3) b { font-size: 18px; }

  /* linhas de data e de casos viram cartões */
  .date-row { margin-bottom: 12px; border: 1px solid rgba(17, 18, 21, .1); border-radius: 20px; background: #fff; box-shadow: 0 10px 24px -18px rgba(17, 18, 21, .35); }
  .date-row:last-child { border-bottom: 1px solid rgba(17, 18, 21, .1); }
  .date-row:has(.who-chips) { display: grid; grid-template-columns: 56px 1fr auto; grid-template-areas: "big mid mid" "chips chips in"; align-items: center; gap: 12px; }
  .date-row:has(.who-chips) > .big { grid-area: big; width: auto; } .date-row:has(.who-chips) > .mid { grid-area: mid; }
  .date-row:has(.who-chips) > .who-chips { grid-area: chips; display: flex; gap: 8px; flex-wrap: wrap; } .date-row:has(.who-chips) > .in { grid-area: in; text-align: right; }
}

/* ---------- painel: precisa de você agora ---------- */
.page-h.guia-on p { display: none; }
[data-a="Sucessório"] { --ac: #8a6a3c; }
.agora { margin-bottom: 16px; }
.ag-list { display: grid; gap: 10px; }
.ag { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 12px; border-radius: 18px; background: rgba(17, 18, 21, .04); border: 1px solid rgba(17, 18, 21, .07); transition: background .3s; }
.ag:hover { background: rgba(17, 18, 21, .07); }
.ag .ag-i { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, #3a3d44, #131417); }
.ag.u .ag-i { background: linear-gradient(160deg, #d9604d, #a63a2b); } .ag.c .ag-i { background: linear-gradient(160deg, #d29a35, #a8741a); } .ag.a .ag-i { background: linear-gradient(160deg, #8b8f97, #5a5e66); }
.ag .ag-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ag .ag-t b { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.ag .ag-t span { font-size: 13px; color: var(--g500); line-height: 1.35; }
.ag-tag { flex: none; font-style: normal; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #111215; color: #fff; align-self: flex-start; }
.ag.u .ag-tag { background: #c24a3a; } .ag.c .ag-tag { background: #b88222; } .ag.a .ag-tag { background: #6b7078; }

/* ---------- andamento do processo ---------- */
.cs-t { font-size: 17px; font-weight: 600; margin-top: 12px; line-height: 1.3; }
.cs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.cs-meta .ar { margin: 0; }
.cs-r { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.cs-r .av { --s: 28px; font-size: 11px; }
.cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 14px; }
.cs-grid > div { background: rgba(17, 18, 21, .05); border-radius: 16px; padding: 10px 12px; display: grid; gap: 2px; align-content: start; }
.cs-grid small { font-size: 12px; color: var(--g500); } .cs-grid b { font-weight: 500; line-height: 1.3; } .cs-grid span { font-size: 13px; color: var(--g500); }
.cs-nova { display: grid; gap: 8px; margin: 4px 0 16px; }
.cs-nova label { font-size: 13.5px; font-weight: 500; }
.cs-nova textarea { width: 100%; padding: 12px 14px; border-radius: var(--r-ctl); border: 1px solid var(--g200); background: #fff; outline: 0; resize: vertical; font-size: 16px; }
.cs-nova textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 18, 21, .1); }
.cs-nova .btn { justify-content: center; }
.cs-tl { max-height: 260px; overflow-y: auto; }

/* ---------- funil ---------- */
.funil { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.fcol { background: rgba(17, 18, 21, .045); border-radius: 22px; padding: 12px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.fcol header { display: grid; gap: 2px; padding: 4px 6px 6px; }
.fcol header b { font-weight: 600; } .fcol header span { font-size: 12.5px; color: var(--g500); }
.fcol.f3 { background: linear-gradient(180deg, #1b1d21, #2e3137); color: #fff; }
.fcol.f3 header span, .fcol.f3 .f-vazio { color: rgba(255, 255, 255, .62); }
.lead { position: relative; overflow: hidden; display: grid; gap: 8px; padding: 16px 14px 14px; border-radius: 18px; background: #fff; color: var(--ink); border: 1px solid rgba(17, 18, 21, .09); box-shadow: 0 8px 20px -16px rgba(17, 18, 21, .4); }
.lead::before { content: ''; position: absolute; left: 14px; right: 14px; top: 0; height: 3px; border-radius: 0 0 4px 4px; background: var(--ac, #c9ccd1); }
.lead.atras { border-color: rgba(194, 74, 58, .45); }
.ld-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ld-h b { font-weight: 600; line-height: 1.25; } .ld-v { font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.ld-m { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; } .ld-m .ar { margin: 0; } .ld-m i { font-style: normal; font-size: 12.5px; color: var(--g500); }
.ld-d { font-size: 12.5px; color: var(--g500); }
.ld-a { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #b8402f; }
.ld-b { display: flex; gap: 8px; justify-content: flex-end; }
.f-vazio { font-size: 13px; color: var(--g500); padding: 14px 8px; text-align: center; }

/* ---------- robô de WhatsApp ---------- */
.robo-two { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); align-items: start; gap: 22px; }
.robo-sel { margin-bottom: 12px; }
.robo-sel select { width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r-ctl); border: 1px solid var(--g200); background: #fff; }
.robo-sel label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 6px; }
.phone { display: flex; flex-direction: column; height: 540px; border-radius: 30px; overflow: hidden; border: 1px solid rgba(17, 18, 21, .14); background: #e7e9ec; box-shadow: 0 24px 50px -28px rgba(17, 18, 21, .55); }
.ph-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: #fff; background: linear-gradient(135deg, #1a1c20, #34383f); }
.ph-h .av { --s: 40px; flex: none; } .ph-h b { display: block; font-weight: 600; } .ph-h span { display: flex; align-items: center; gap: 5px; font-size: 12px; color: rgba(255, 255, 255, .65); }
.ph-b { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; background: repeating-linear-gradient(135deg, rgba(17, 18, 21, .025) 0 2px, transparent 2px 14px); }
.ph-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: #fff; border-top: 1px solid var(--line); color: var(--g500); font-size: 13px; }
.bub-w { display: flex; flex-direction: column; align-items: flex-start; max-width: 90%; margin-bottom: 10px; animation: fade .35s both; }
.bub-w.user { align-self: flex-end; align-items: flex-end; }
.b { padding: 9px 12px 6px; border-radius: 16px; font-size: 14.5px; line-height: 1.42; }
.b.bot { background: #fff; border-top-left-radius: 4px; box-shadow: 0 2px 6px -3px rgba(17, 18, 21, .3); }
.b.user { background: linear-gradient(180deg, #2b2e34, #121316); color: #fff; border-top-right-radius: 4px; }
.b i { display: block; text-align: right; font-style: normal; font-size: 10.5px; opacity: .55; margin-top: 2px; }
.b .arq { display: inline-flex; align-items: center; gap: 8px; padding: 6px 2px; }
.qr { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qr button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; background: #fff; border: 1px solid rgba(17, 18, 21, .2); font-size: 13px; font-weight: 500; }
.b.dig { display: flex; gap: 5px; padding: 12px 14px; }
.b.dig span { width: 7px; height: 7px; border-radius: 50%; background: #8b8f97; animation: dig 1s infinite; }
.b.dig span:nth-child(2) { animation-delay: .15s; } .b.dig span:nth-child(3) { animation-delay: .3s; }
@keyframes dig { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.rb-l { list-style: none; display: grid; gap: 14px; padding: 0; margin: 0; }
.rb-l li { display: grid; gap: 2px; font-size: 14px; color: var(--g500); } .rb-l li b { color: var(--ink); font-weight: 600; font-size: 15px; }

/* ---------- resultados ---------- */
.ra-l { display: grid; gap: 18px; }
.ra { display: grid; gap: 8px; }
.ra-h { display: flex; align-items: center; justify-content: space-between; } .ra-h .ar { margin: 0; }
.ra .mix { width: 100%; height: 9px; }
.ra-leg { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; font-size: 12.5px; color: var(--g500); }
.ra-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.rb-bars { display: flex; align-items: flex-end; gap: 14px; height: 170px; }
.rb-bars.sm { height: 120px; }
.rb-bars > div { flex: 1; display: grid; justify-items: center; align-content: end; gap: 6px; min-width: 0; }
.rb-bars b { font-size: 12.5px; font-weight: 600; }
.rb-bars i { width: 100%; max-width: 54px; border-radius: 12px 12px 6px 6px; background: linear-gradient(180deg, #4a4e56, #131417); }
.rb-bars span { font-size: 12.5px; color: var(--g500); }

@media (max-width: 1100px) { .funil { grid-template-columns: repeat(2, minmax(0, 1fr)); } .robo-two { grid-template-columns: 1fr; } }
@media (max-width: 820px) and (orientation: portrait) {
  .funil { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 10px; }
  .fcol { flex: 0 0 84%; scroll-snap-align: center; }
  .phone { height: 480px; border-radius: 26px; }
  .robo-two { gap: 16px; }
  .ra-l { gap: 16px; }
  .cs-grid { grid-template-columns: 1fr; }
  .ag { padding: 10px; }
}
.ph-h .av { background: linear-gradient(160deg, #3a3d44, #131417); color: #fff; border: 1px solid rgba(255,255,255,.25); }

/* ---------- cadastro completo e validação ---------- */
.modal.cadm { width: min(760px, 100%); }
.cadm .cad-sec { grid-column: 1 / -1; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.cadm .fgrid > .f[hidden], .cadm .pf-only[hidden], .cadm .pj-only[hidden] { display: none; }
.cadm textarea { width: 100%; resize: vertical; min-height: 96px; border-radius: 14px; border: 1px solid var(--line); padding: 12px 14px; font: inherit; background: #fff; }
.cadm .erro { border-color: #c24a3a !important; box-shadow: 0 0 0 3px rgba(194, 74, 58, .14); }
.cv-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cv-empty, .cv-file { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 120px; border-radius: 18px; border: 1.5px dashed rgba(17, 18, 21, .22); color: var(--g500); background: rgba(17, 18, 21, .03); }
.cv-empty { flex-direction: column; gap: 6px; }
.cv-file { justify-content: flex-start; padding: 16px 18px; border-style: solid; border-width: 1px; background: #fff; color: var(--ink); }
.cv-file b { display: block; font-weight: 600; } .cv-file span { color: var(--g500); font-size: 13px; }
.cv-img { border-radius: 18px; overflow: hidden; background: #111215; } .cv-img img { display: block; width: 100%; max-height: 320px; object-fit: cover; }
.kv { display: grid; } .kv-r { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); } .kv-r:last-child { border-bottom: 0; }
.kv-r span { color: var(--g500); flex: none; } .kv-r b { font-weight: 500; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.cam-ov { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(12, 13, 16, .66); backdrop-filter: blur(8px); }
.cam-box { width: min(560px, 100%); border-radius: 24px; padding: 18px; background: linear-gradient(180deg, #fff, #f1f2f4); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6); }
.cam-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } .cam-h b { font-size: 18px; font-weight: 600; }
.cam-stage { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #111215; }
.cam-stage video, .cam-stage img { width: 100%; height: 100%; object-fit: cover; display: block; } .cam-stage [hidden] { display: none; }
.cam-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: #fff; line-height: 1.45; }
.cam-dica { margin: 12px 2px 0; color: var(--g500); font-size: 14px; } .cam-f { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
@media (max-width: 820px) and (orientation: portrait) { .cadm .fgrid { grid-template-columns: 1fr 1fr; } .cadm .fgrid > .f { grid-column: 1 / -1; } .cadm .fgrid > #c-tipo, .cv-btns .btn { } .cv-btns .btn { flex: 1 1 100%; justify-content: center; } .cam-f .btn { flex: 1; } }
.dj-fontes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.dj-f { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.dj-f i { width: 10px; height: 10px; border-radius: 50%; background: var(--g300); margin-top: 6px; flex: none; }
.dj-f.on i { background: #2f8a5a; box-shadow: 0 0 0 4px rgba(47, 138, 90, .18); }
.dj-f b { display: block; font-weight: 600; font-size: 14px; }
.dj-f span { font-size: 13px; color: var(--g500); }
.dj-oab { display: flex; gap: 12px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.dj-oab b { display: block; font-weight: 600; }
.dj-oab span { font-size: 13px; color: var(--g500); }
.dj-chips { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.dj-chips button { padding: 7px 16px; border-radius: 99px; border: 1px solid var(--g300); background: #fff; font: inherit; font-size: 13.5px; cursor: pointer; }
.dj-chips button.on { background: #121316; color: #fff; border-color: #121316; }
.dj-i { display: grid; grid-template-columns: 96px 1.6fr 1.2fr auto; gap: 18px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); }
.dj-i:first-child { border-top: 0; }
.dj-d { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.dj-d b { font-size: 15px; }
.dj-c b { display: block; font-weight: 600; }
.dj-c span { display: block; font-size: 13px; color: var(--g500); }
.dj-c .dj-n { margin-top: 2px; }
.dj-p em { font-style: normal; font-weight: 600; font-size: 13.5px; display: block; }
.dj-p span { font-size: 13px; color: var(--g500); }
.dj-nota { margin-top: 12px; max-width: 70ch; }
@media (max-width: 860px) {
  .dj-fontes { grid-template-columns: 1fr; }
  .dj-i { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
  .dj-d { flex-direction: row; align-items: center; gap: 10px; }
  .dj-a { padding-top: 4px; }
}
.still [data-i], .still .wrap > * { animation: none !important; }
.dj-i { display: block; padding: 0; }
.dj-head { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 96px 1.6fr 1.1fr auto; gap: 18px; align-items: center; padding: 16px 20px; width: 100%; cursor: pointer; }
.dj-head:focus-visible { outline: 2px solid #121316; outline-offset: -2px; border-radius: 14px; }
.dj-i[hidden] { display: none; }
.dj-s { display: flex; align-items: center; gap: 10px; }
.dj-seta { display: inline-flex; transition: transform .25s var(--ease); color: var(--g500); }
.dj-i.open .dj-seta { transform: rotate(90deg); }
.dj-i.open { background: #fafafb; }
.dj-det { display: none; padding: 4px 20px 20px 20px; border-top: 1px dashed var(--line); }
.dj-i.open .dj-det { display: block; }
.dj-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 16px 0; }
.dj-det h4 { font-size: 13px; font-weight: 600; color: var(--g500); margin: 0 0 6px; }
.dj-det p { margin: 0 0 8px; line-height: 1.5; max-width: 60ch; }
.dj-prio { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.dj-prio > span { font-size: 13px; color: var(--g500); margin-right: 4px; }
.dj-prio button { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--g300); background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.dj-prio button.on { background: #121316; color: #fff; border-color: #121316; }
.dj-det textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--g300); border-radius: 12px; padding: 10px 12px; font: inherit; resize: vertical; }
.dj-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.dj-btns a { text-decoration: none; }
.dj-pr { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.dj-pr-i { background: #fbefd2; color: #8a5f10; }
.dj-pr-u { background: #f8dcd7; color: #a23a2b; }
.dj-pz { display: block; }
@media (max-width: 860px) {
  .dj-head { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
  .dj-s { justify-content: space-between; }
  .dj-cols { grid-template-columns: 1fr; gap: 6px; }
  .dj-det { padding: 4px 16px 18px; }
  .dj-btns .btn { flex: 1 1 100%; justify-content: center; }
}
#view { overflow-anchor: none; }

.dj-socios{display:flex;gap:8px;overflow-x:auto;margin:0 0 16px;padding-bottom:2px}
.dj-socios button{display:flex;align-items:center;gap:8px;padding:6px 14px 6px 6px;border-radius:999px;border:1px solid var(--line,#ddd);background:#fff;font:inherit;white-space:nowrap;cursor:pointer}
.dj-socios button.on{background:var(--ink,#111);color:#fff;border-color:transparent}
.dj-socios .av{width:28px;height:28px;font-size:11px}
.dj-vazio{padding:20px}
/* ===== Quadro semanal (estilo Trello) ===== */
.tk-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.tk-kpi .card { padding: 16px 18px; }
.tk-kpi .lab { font-size: 13px; color: var(--g500); }
.tk-kpi .dark .lab { color: rgba(255,255,255,.6); }
.tk-kpi .num { font-size: 38px; font-weight: 200; letter-spacing: -.04em; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tk-kpi .num small { font-size: 15px; font-weight: 400; opacity: .6; letter-spacing: 0; }
.tk-kpi .rate { height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); margin-top: 8px; overflow: hidden; }
.tk-kpi .rate i { display: block; height: 100%; background: #fff; border-radius: 4px; transition: width .5s var(--ease); }
.tk-int { cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; }
.tk-int:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(17,18,21,.08); }
.tk-nav { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.tk-nav b { font-weight: 500; min-width: 190px; text-align: center; }
.tk-board { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 18px; align-items: flex-start; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.tcol { flex: 0 0 258px; background: var(--g150); border-radius: 16px; padding: 10px; scroll-snap-align: start; transition: background .15s, box-shadow .15s; min-height: 120px; }
.tcol.over { background: var(--g200); box-shadow: inset 0 0 0 2px var(--ink); }
.tcol.hoje { background: #e1e4ea; }
.tcol.atras header b { color: #c2403b; }
.tcol.feito { background: #e7ece8; }
.tcol header { display: flex; align-items: baseline; gap: 8px; padding: 4px 6px 10px; }
.tcol header b { font-weight: 600; font-size: 15px; }
.tc-sub { font-size: 12.5px; color: var(--g500); flex: 1; }
.tc-n { font-style: normal; font-size: 12px; background: rgba(17,18,21,.08); padding: 1px 8px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.tcol-b { display: grid; gap: 8px; min-height: 18px; }
.tk { position: relative; background: #fff; border-radius: 12px; padding: 10px 12px 11px 16px; box-shadow: 0 1px 0 rgba(17,18,21,.12), 0 1px 3px rgba(17,18,21,.06); cursor: grab; user-select: none; -webkit-user-select: none; transition: box-shadow .15s, transform .15s; outline: none; }
.tk:hover { box-shadow: 0 1px 0 rgba(17,18,21,.14), 0 6px 16px rgba(17,18,21,.1); }
.tk:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.tk-l { position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--g400); }
.tk[data-tipo=prazo] .tk-l, .tk[data-tipo=pfazer] .tk-l { background: #e0524d; }
.tk[data-tipo=evento] .tk-l { background: #3b7bd9; }
.tk[data-tipo=recurso] .tk-l { background: #e0962f; }
.tk-top { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--g500); margin-bottom: 3px; }
.tk-t { font-weight: 500; letter-spacing: .01em; }
.tk-do { background: var(--ink); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 10.5px; }
.tk-ck { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--g300); display: grid; place-items: center; color: transparent; transition: all .15s; flex: none; }
.tk-ck:hover { border-color: var(--ink); color: var(--g400); }
.tk.feito .tk-ck { background: var(--ink); border-color: var(--ink); color: #fff; }
.tk.feito .tk-ti { text-decoration: line-through; color: var(--g500); }
.tk-ti { display: block; font-weight: 500; font-size: 14.5px; line-height: 1.3; }
.tk-m { display: block; font-size: 12.5px; color: var(--g500); margin-top: 3px; }
.tk-m em { color: #c2403b; font-style: normal; }
.tk-ghost { position: fixed; z-index: 9999; pointer-events: none; transform: rotate(3deg); box-shadow: 0 18px 40px rgba(17,18,21,.28); cursor: grabbing; }
.tk.drag-src { opacity: .3; }
body.tk-arrastando { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.tk.pop-in { animation: tkpop .35s var(--ease); }
@keyframes tkpop { from { transform: scale(.94); opacity: .4; } to { transform: none; opacity: 1; } }
.tc-add { display: flex; align-items: center; gap: 6px; width: 100%; padding: 8px 8px; margin-top: 8px; border-radius: 10px; color: var(--g500); font-size: 13.5px; text-align: left; }
.tc-add:hover { background: rgba(17,18,21,.06); color: var(--ink); }
.tc-form { margin-top: 8px; display: grid; gap: 8px; }
.tc-form input { width: 100%; padding: 9px 11px; border-radius: 10px; border: 1.5px solid var(--ink); background: #fff; }
.tc-form div { display: flex; gap: 8px; }

/* ===== O que fazer (intimação) ===== */
.oq-tipos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.oq-t { text-align: left; padding: 11px 12px; border-radius: 14px; border: 1.5px solid var(--g200); background: #fff; display: grid; gap: 2px; transition: all .15s; }
.oq-t b { font-weight: 500; font-size: 14px; }
.oq-t span { font-size: 12px; color: var(--g500); line-height: 1.3; }
.oq-t .ic { margin-bottom: 4px; }
.oq-t:hover { border-color: var(--g400); }
.oq-t.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.oq-t.on span { color: rgba(255,255,255,.65); }
.oq-tipos.opc { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.oq-tipos.opc .oq-t { padding: 9px 12px; }
.oq-dest { display: flex; gap: 8px; align-items: flex-start; background: var(--g50); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--g600); margin-top: 6px; }
.oq-dest .ic { margin-top: 2px; flex: none; }
.oq-dest b { font-weight: 600; color: var(--ink); }
.dj-acoes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dj-acoes:empty { display: none; }
.cv-e { color: #c2403b; font-size: 12.5px; min-height: 16px; }

/* ===== andamento editável ===== */
.nt-m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.nt-d { position: relative; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; border-bottom: 1px dashed var(--g300); color: var(--g600); }
.nt-d:hover { color: var(--ink); border-color: var(--ink); }
.nt-d input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.nt-f { font-style: normal; background: var(--ink); color: #fff; border-radius: 99px; padding: 0 8px; font-size: 11.5px; }
.nt em { font-style: normal; font-size: 12.5px; }
.nt-lk { font-size: 12.5px; text-decoration: underline; }
.nt-x { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: var(--g400); }
.nt-x:hover { background: var(--g100); color: var(--ink); }
.nt-tx[data-act] { cursor: text; }
.nt-tx[contenteditable=true] { outline: 2px solid var(--ink); border-radius: 6px; padding: 2px 4px; }
.cs-fase { margin: 14px 0 4px; display: grid; gap: 8px; }
.cs-fase small, .cs-pzl { color: var(--g500); font-size: 12.5px; }
.cs-fase select { max-width: 280px; padding: 9px 11px; border-radius: 12px; border: 1.5px solid var(--g200); background: #fff; }
.cs-desf { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.cs-desf:empty { display: none; }
.cs-pzl { position: relative; display: inline-block; margin-top: 4px; text-decoration: underline; cursor: pointer; }
.cs-pzl input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.fs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; margin-top: 8px; max-width: 360px; }
.fs i { height: 5px; border-radius: 4px; background: var(--g200); }
.fs i.ok { background: var(--g600); }
.fs i.now { background: var(--ink); box-shadow: 0 0 0 2px rgba(17,18,21,.15); }

/* ===== ficha: casos e relatórios ===== */
.cx { align-items: flex-start; }
.cx .mid { flex: 1; min-width: 0; }
.cx .mid > b { display: block; font-weight: 500; }
.cx .mid > span { display: block; font-size: 13px; color: var(--g500); }
.cx-d { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cx-b { display: grid; gap: 6px; flex: none; }
.cx.fechado .big b { color: var(--g400); }
.rl-top { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rl-top p { color: var(--g500); font-size: 14px; max-width: 640px; }
.rl-lista { display: grid; gap: 12px; }
.rl { background: #fff; border-radius: 18px; padding: 18px 20px; display: grid; gap: 10px; }
.rl-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rl-h b { font-weight: 500; font-size: 16px; display: block; }
.rl-h div > span { font-size: 13px; color: var(--g500); }
.rl-p { color: var(--g600); font-size: 14.5px; line-height: 1.5; }
.rl-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; font-size: 13.5px; }
.rl-g small { display: block; color: var(--g500); font-size: 12px; margin-bottom: 2px; }
.rl-b { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .tk-kpi { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tk-kpi .num { font-size: 32px; }
  .tk-nav b { min-width: 0; flex: 1; font-size: 14px; }
  .tk-board { margin: 0 -16px; padding: 4px 16px 18px; scroll-padding: 0 16px; }
  .tcol { flex-basis: 82vw; }
  .rl-g { grid-template-columns: 1fr; }
  .rl-top { flex-direction: column; align-items: stretch; }
  .cx { flex-wrap: wrap; }

  .cx-b { grid-auto-flow: column; width: 100%; }
  .rl-h { flex-direction: column; }
}
.tk-board, .tk-board * { -webkit-user-select: none; user-select: none; }
.tk-board .tc-form input { -webkit-user-select: text; user-select: text; }
.fs { align-items: center; height: 8px; }
.fs i, .cx .fs i, .cs-fase .fs i { display: block !important; height: 5px !important; min-height: 0 !important; width: auto !important; padding: 0 !important; margin: 0 !important; font-size: 0; }
.cx .mid .fs { margin-top: 10px; }
@media (max-width: 760px) { .cx .big { width: 56px; } .cx .big b { font-size: 22px; } }
.hn { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 22px; border-top: 1px solid var(--line); }
.hn-t { min-width: 0; display: grid; gap: 1px; }
.hn-t b { font-weight: 500; }
.hn-t > span { font-size: 13px; color: var(--g500); }
.hn-n { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .hn { flex-direction: column; align-items: stretch; } .hn .cx-b { grid-auto-flow: column; } }
.login .brand .tsys { font-weight: 600; letter-spacing: .14em; font-size: 15px; }
.auth .afs, .auth .af, .auth .ain { box-sizing: border-box; min-width: 0; max-width: 100%; }
.auth .ain input { min-width: 0; width: 100%; box-sizing: border-box; }

/* tarefas reais (do Diário): cinza escuro degradê, igual ao cartão "Feito na semana" */
.tk.meu { color: #fff; background: linear-gradient(155deg, #2b2e34 0%, #16181c 52%, #0d0e10 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 3px rgba(17,18,21,.2); }
.tk.meu:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 6px 16px rgba(17,18,21,.3); }
.tk.meu .tk-top, .tk.meu .tk-m { color: rgba(255,255,255,.62); }
.tk.meu .tk-m em { color: #ff8f8a; }
.tk.meu .tk-do { background: rgba(255,255,255,.16); color: #fff; }
.tk.meu .tk-ck { border-color: rgba(255,255,255,.4); }
.tk.meu .tk-ck:hover { border-color: #fff; color: rgba(255,255,255,.6); }
.tk.meu.feito .tk-ck { background: #fff; border-color: #fff; color: #16181c; }
.tk.meu.feito .tk-ti { color: rgba(255,255,255,.5); }
.tk.meu:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }

/* ---------- módulos e financeiro ---------- */
.fn-acts { display: flex; gap: 10px; align-items: center; }
.fn-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.fn-k { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 18px 16px; display: grid; gap: 4px; min-width: 0; }
.fn-k small { font-size: 13px; color: var(--g500); }
.fn-k b { font-size: 26px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.fn-k em { font-style: normal; font-size: 12.5px; color: var(--g500); }
.fn-k.dk { background: linear-gradient(180deg, #2b2e34, #121316); color: #fff; border-color: transparent; }
.fn-k.dk small, .fn-k.dk em { color: rgba(255, 255, 255, .62); }
.fn-gr { display: flex; align-items: flex-end; gap: 10px; padding: 14px 4px 0; }
.fn-gr > div { flex: 1; display: grid; gap: 6px; justify-items: center; min-width: 0; }
.fn-gr em { font-style: normal; font-size: 11.5px; color: var(--g600); white-space: nowrap; }
.fn-gr u { text-decoration: none; display: flex; align-items: flex-end; width: 100%; height: 84px; }
.fn-gr i { display: block; width: 100%; border-radius: 9px 9px 4px 4px; background: var(--g200); transition: height .6s var(--ease); }
.fn-gr .cur i { background: linear-gradient(180deg, #2b2e34, #121316); }
.fn-gr span { font-size: 12px; color: var(--g500); text-transform: capitalize; }
.fn-seg { display: flex; width: 100%; margin: 0 0 14px; }
.fn-seg button { flex: 1; padding: 0 6px; font-size: 13.5px; white-space: nowrap; }
.fn-seg .muted { margin-left: 3px; }
.fn-r { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; padding: 16px 20px; border-top: 1px solid var(--line); align-items: start; }
.fn-r:first-child { border-top: 0; }
.fn-l { min-width: 0; display: grid; gap: 1px; }
.fn-l b { font-weight: 500; }
.fn-l span { font-size: 13.5px; color: var(--g600); }
.fn-l small { font-size: 12.5px; color: var(--g500); }
.fn-m { display: grid; justify-items: end; gap: 6px; }
.fn-m b { font-weight: 500; font-size: 17px; white-space: nowrap; }
.fn-b { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.fn-p { display: inline-flex; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.fn-p.ok { background: var(--g150); color: var(--g600); }
.fn-p.late { background: #fff; border: 1.5px solid var(--ink); color: var(--ink); font-weight: 600; }
.fn-p.open { background: #fff; border: 1px solid var(--g300); color: var(--g700); }
.fn-oc .v { filter: blur(7px); user-select: none; }
.md-g { font-size: 13px; color: var(--g500); font-weight: 500; padding: 18px 20px 6px; }
.md-r { display: flex; gap: 14px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); }
.md-g + .md-r { border-top: 0; }
.md-i { width: 42px; height: 42px; border-radius: 12px; background: var(--g100); display: grid; place-items: center; flex: none; }
.md-t { min-width: 0; flex: 1; display: grid; gap: 1px; }
.md-t b { font-weight: 500; }
.md-t span { font-size: 13.5px; color: var(--g600); line-height: 1.35; }
.md-x { display: flex; align-items: center; gap: 10px; flex: none; }
.md-r.off .md-i { opacity: .5; }
.sw { width: 50px; height: 30px; border-radius: 99px; background: var(--g200); position: relative; transition: background .35s; flex: none; }
.sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .35s var(--ease); }
.sw[aria-checked="true"] { background: var(--ink); }
.sw[aria-checked="true"]::after { transform: translateX(20px); }
@media (max-width: 820px) {
  .fn-kpi { grid-template-columns: 1fr 1fr; }
  .fn-kpi .fn-k:first-child { grid-column: 1 / -1; }
  .fn-k b { font-size: 24px; }
  .md-r { padding: 14px 16px; gap: 12px; }
  .md-g { padding: 18px 16px 6px; }
  .fn-r { padding: 16px; }
}
.md-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.md-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border-radius: 99px; background: var(--g100); font-size: 13.5px; color: var(--g700); }
.au-st { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.au-st > div { display: grid; gap: 2px; min-width: 0; }
.au-st b { font-weight: 500; }
.au-st span { font-size: 13px; color: var(--g500); }
.au-i { display: flex; gap: 14px; padding: 16px 20px; border-top: 1px solid var(--line); }
.au-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--g100); display: grid; place-items: center; flex: none; }
.au-t { min-width: 0; flex: 1; display: grid; gap: 2px; }
.au-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.au-h b { font-weight: 500; }
.au-t > span { font-size: 13.5px; color: var(--g600); overflow-wrap: anywhere; }
.au-t > small { font-size: 12.5px; color: var(--g500); }
.au-l { font-size: 14px; margin-top: 4px; }
.au-l i { font-style: normal; color: var(--g500); }
.au-n { font-size: 13px; color: var(--g600); }
.au-d { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.au-d em { font-style: normal; font-size: 12px; padding: 2px 10px; border-radius: 99px; background: var(--g100); color: var(--g700); }
@media (max-width: 820px) { .au-i { padding: 16px; gap: 12px; } .au-st { flex-wrap: wrap; } }
.au-s { display: grid; gap: 6px; margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: var(--g100); }
.au-s b { font-weight: 500; font-size: 13px; }
.au-s span { font-size: 13.5px; line-height: 1.45; color: var(--g700); padding-left: 12px; position: relative; }
.au-s span::before { content: ''; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--g500); }
.au-tx { margin-top: 6px; font-size: 13.5px; }
.au-tx summary { cursor: pointer; color: var(--g600); }
.au-tx p { margin-top: 6px; line-height: 1.5; color: var(--g700); overflow-wrap: anywhere; }
.au-tabs { margin: 14px 0; }
.au-tabs button em { font-style: normal; font-size: 12px; opacity: .7; margin-left: 4px; }
.au-vazio { padding: 22px; text-align: center; }
.pc-paper { min-height: 420px; outline: none; }
.pc-paper[contenteditable="true"]:focus-visible { border-color: var(--g500); }
.pc-paper h4 { font-size: 15px; margin: 22px 0 10px; line-height: 1.5; }
.pc-paper h4:first-child { margin-top: 0; }
.pc-paper h4.pc-h { text-align: left; }
.pc-paper p.pc-a { text-align: center; margin-bottom: 4px; }
.pc-paper p.pc-l { text-align: left; margin-bottom: 4px; }
.pc-paper mark.pc-s { background: #fdf0c8; }
.pc-paper mark.pc-f { background: #f9d9d4; }
.pc-esp { color: var(--g500); text-align: center !important; font-family: inherit; }
.pc-vazio { display: grid; gap: 6px; text-align: center; padding: 60px 10px; font-family: Inter, system-ui, sans-serif; color: var(--g500); }
.pc-vazio b { font-weight: 500; color: var(--g700); font-size: 16px; }
.pc-vazio span { font-size: 14px; line-height: 1.5; }
.pc-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pc-bar .btn { margin-left: auto; }
.pc-req { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.pc-req li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--g600); }
.pc-req li svg { flex: none; margin-top: 3px; padding: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--g100); color: transparent; }
.pc-req li.ok { color: var(--g900, #121316); }
.pc-req li.ok svg { background: #121316; color: #fff; }
.pc-or { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--g100); margin-bottom: 16px; }
.pc-or > div { display: grid; gap: 2px; min-width: 0; }
.pc-or b { font-weight: 500; font-size: 14px; }
.pc-or span { font-size: 13px; color: var(--g600); }
@media (max-width: 820px) { .pc-bar .btn { margin-left: 0; } }
.pc-grid { grid-template-columns: .8fr 1.2fr; grid-template-areas: "a1 a2" "a3 a2"; grid-template-rows: auto 1fr; align-items: start; }
.pc-a1 { grid-area: a1; } .pc-a2 { grid-area: a2; min-width: 0; } .pc-a3 { grid-area: a3; }
.pc-req { padding: 0; margin-left: 0; }
@media (max-width: 820px) { .pc-grid { grid-template-columns: 1fr; grid-template-areas: "a1" "a2" "a3"; } .pc-grid > * { min-width: 0; max-width: 100%; } }
.eq-p { display: flex; gap: 14px; padding: 16px 20px; border-top: 1px solid var(--line); }
.eq-p:first-child, .eq-h:first-child { border-top: 0; }
.eq-av { --s: 44px; flex: none; }
.eq-pt { min-width: 0; flex: 1; display: grid; gap: 2px; }
.eq-pt > span { font-size: 13.5px; color: var(--g600); overflow-wrap: anywhere; }
.eq-pt > small { font-size: 13px; color: var(--g500); }
.eq-pt > small em { font-style: normal; color: #b3261e; }
.eq-pg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.eq-pl { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.eq-h { display: flex; gap: 14px; padding: 13px 20px; border-top: 1px solid var(--line); }
.eq-h[hidden] { display: none; }
.eq-hq { flex: none; width: 104px; font-size: 13.5px; font-weight: 500; display: grid; align-content: start; }
.eq-hq small { font-weight: 400; font-size: 12px; color: var(--g500); }
.eq-ht { min-width: 0; flex: 1; display: grid; gap: 1px; }
.eq-ht b { font-weight: 500; font-size: 14.5px; overflow-wrap: anywhere; }
.eq-ht span { font-size: 13.5px; color: var(--g600); }
.eq-ht span.blo { color: #b3261e; }
.eq-ht small { font-size: 12.5px; color: var(--g500); }
.eq-trava { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--g100); font-size: 13.5px; line-height: 1.45; color: var(--g700); }
.eq-trava svg { flex: none; margin-top: 2px; }
.tk-rp { margin-left: 6px; font-size: 10px; font-weight: 600; letter-spacing: 0; width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--g200); color: var(--g700); }
.tk.meu .tk-rp { background: rgba(255,255,255,.18); color: #fff; }
.tk-lk { margin-left: 6px; display: inline-grid; place-items: center; opacity: .7; }
#eq-bar { position: fixed; left: 0; right: 0; top: 0; height: 38px; z-index: 45; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 12px; background: #121316; color: #fff; font-size: 13px; white-space: nowrap; }
#eq-bar span { overflow: hidden; text-overflow: ellipsis; }
#eq-bar b { font-weight: 600; }
#eq-bar button { border: 0; border-radius: 99px; padding: 5px 12px; background: #fff; color: #121316; font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; flex: none; }
body.eq-vendo .app { height: calc(100% - 38px); margin-top: 38px; }
.f textarea { width: 100%; padding: 12px 14px; border-radius: var(--r-ctl); border: 1px solid var(--g200); background: #fff; font: inherit; line-height: 1.5; outline: 0; resize: vertical; }
.f textarea:focus { border-color: var(--ink); }
@media (max-width: 820px) { .eq-pg { grid-template-columns: 1fr; } .eq-p, .eq-h { padding-left: 16px; padding-right: 16px; } .eq-hq { width: 84px; } .f textarea { font-size: 16px; } }
.l2-b { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.l2-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.l2-h b, .l2-hd summary b { font-weight: 500; font-size: 15px; }
.l2-h em, .l2-hd summary em { font-style: normal; font-size: 12px; color: var(--g500); margin-left: 4px; }
.l2-up { cursor: pointer; }
.l2-v { padding: 4px 0; }
.l2-f { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.l2-f > svg { flex: none; color: var(--g500); }
.l2-f > div { min-width: 0; flex: 1; display: grid; }
.l2-f b { font-weight: 500; font-size: 14px; overflow-wrap: anywhere; }
.l2-f b a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.l2-f small { font-size: 12.5px; color: var(--g500); }
.l2-c { padding: 8px 0; }
.l2-ca { font-size: 13.5px; font-weight: 500; }
.l2-ca small { font-weight: 400; color: var(--g500); margin-left: 6px; font-size: 12.5px; }
.l2-c p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.l2-at { font-weight: 600; }
.l2-ci textarea, .l2-cxf textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--g200); background: #fff; font: inherit; line-height: 1.45; outline: 0; margin-top: 6px; }
.l2-cm { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.l2-cm > button:not(.btn) { border: 1px solid var(--g200); background: #fff; border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.l2-cm .btn { margin-left: auto; }
.l2-cxf { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--g100); }
.l2-cxf[hidden] { display: none; }
.l2-cxf label { font-size: 13.5px; color: var(--g700); }
.l2-ss { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.l2-s { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; line-height: 1; padding: 3px 7px; border-radius: 99px; background: var(--g100); color: var(--g700); }
.l2-s.estrategico { background: #121316; color: #fff; }
.l2-s.x { background: #f9d9d4; color: #7a1f17; }
.tk.meu .l2-s { background: rgba(255,255,255,.16); color: #fff; }
.tk.meu .l2-s.estrategico { background: #fff; color: #121316; }
.tk.cancel .tk-ti { text-decoration: line-through; opacity: .6; }
.l2-fil { margin: 0 0 12px; align-items: center; }
.l2-fil i { width: 1px; height: 22px; background: var(--g300); margin: 0 4px; }
.l2-tg { margin: 0; }
.l2-hd summary { cursor: pointer; list-style: none; }
.l2-hd summary::-webkit-details-marker { display: none; }
.l2-hd summary::after { content: 'ver'; float: right; font-size: 13px; color: var(--g500); }
.l2-hd[open] summary::after { content: 'fechar'; }
.l2-hl .eq-h { padding-left: 0; padding-right: 0; }
.l2-ov { position: fixed; inset: 0; z-index: 500; background: rgba(12,13,16,.86); display: grid; place-items: center; gap: 12px; padding: 20px; align-content: center; }
.l2-ov img { max-width: 100%; max-height: 78vh; border-radius: 10px; }
@media (max-width: 820px) { .l2-ci textarea, .l2-cxf textarea { font-size: 16px; } }
.bk-p[hidden] { display: none; }
.pc-bb { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.pc-bar .pc-bb .btn { margin-left: 0; }
.bk-q { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 46px; border-radius: 12px; border: 1px solid var(--g200); background: #fff; margin: 4px 0 12px; color: var(--g500); }
.bk-q:focus-within { border-color: var(--g500); }
.bk-q input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); }
.bk-fc { margin-bottom: 4px; }
.bk-i { padding: 16px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.bk-t { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bk-t b { font-weight: 500; font-size: 15.5px; line-height: 1.35; }
.bk-t .pill { flex: none; }
.bk-i small { font-size: 12.5px; color: var(--g500); line-height: 1.45; }
.bk-x { margin: 2px 0; font-size: 14.5px; line-height: 1.55; color: var(--g700); overflow-wrap: anywhere; }
.bk-x mark { background: #fdf0c8; color: inherit; }
.bk-d summary { cursor: pointer; font-size: 13.5px; color: var(--g700); text-decoration: underline; text-underline-offset: 3px; list-style: none; padding: 2px 0; }
.bk-d summary::-webkit-details-marker { display: none; }
.bk-d[open] summary { margin-bottom: 10px; }
.bk-pp { min-height: 0; max-height: 420px; overflow: auto; font-size: 13.5px; }
.bk-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.bk-nota { margin: 14px 4px 0; line-height: 1.5; }
.pc-paper .bk-novo { background: #e6f1e4; transition: background .6s; }
@media (max-width: 820px) { .pc-bb { margin-left: 0; width: 100%; } .bk-q input { font-size: 16px; } .bk-t { flex-direction: column; gap: 6px; } }
/* conta real */
.auth.ct .ct-l { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.auth.ct .ct-a { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 14px; color: rgba(255, 255, 255, .82); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.auth.ct .ct-a:hover { color: #fff; }
.auth.ct .ct-a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
.auth.ct .ain select { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: inherit; font: inherit; height: 100%; appearance: none; -webkit-appearance: none; }
.auth.ct .ain select option { color: #121316; }
.auth.ct .ct-2 { display: grid; grid-template-columns: 1fr 1.3fr .8fr; gap: 10px; grid-column: 1 / -1; }
.auth.ct .afs { grid-template-columns: 1fr !important; }
.auth.ct .btn-white:disabled { opacity: .7; cursor: default; transform: none; }
.aerr.aok { background: rgba(190, 240, 205, .16); border-color: rgba(190, 240, 205, .42); }
#av-bar { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 14px; background: #f3e3a8; color: #3d3206; font-size: 12.5px; line-height: 1.35; }
#av-bar svg { flex: none; }
#av-bar span { font-weight: 400; }
#av-bar b { font-weight: 600; }
@media (max-width: 820px) { #av-bar { font-size: 12px; justify-content: flex-start; } body.eq-vendo .app { height: calc(var(--ah, 100dvh) - 38px); } }
