/* ==========================================================================
   GovernoCerto — components.css
   Cabeçalho, botões, cartões, ícones, FAQ, rodapé, formulários e
   os mockups do painel (construídos em HTML/CSS/SVG).
   ========================================================================== */

/* ---------- Ícones ---------- */
.ic { width: 1.25em; height: 1.25em; flex: none; --ic-accent: var(--gold); }
.ic--sm { width: 16px; height: 16px; }
.ic--md { width: 22px; height: 22px; }
.ic--lg { width: 28px; height: 28px; }

.ic-tile {
  width: 54px; height: 54px; flex: none; border-radius: 15px;
  display: grid; place-items: center; color: var(--navy);
  background: linear-gradient(150deg, #fff 0%, var(--beige) 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.ic-tile .ic { width: 27px; height: 27px; }
.section--dark .ic-tile, .section--deep .ic-tile, .on-dark .ic-tile {
  color: #9CC0FF; background: linear-gradient(150deg, rgba(255,255,255,.1), rgba(255,255,255,.02));
  border-color: var(--line-dark); box-shadow: none;
}

/* ---------- Botões ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: var(--r-pill);
  font-family: var(--f-text); font-weight: 650; font-size: .98rem; letter-spacing: -.005em; line-height: 1.1;
  white-space: nowrap; text-align: center;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .3s, border-color .3s, color .3s;
}
.btn .ic { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.btn:hover .ic-seta { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn::after { /* brilho que atravessa no hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }

.btn--gold {
  color: var(--navy-950);
  background: linear-gradient(180deg, #E4B536 0%, var(--gold) 100%);
  box-shadow: 0 12px 28px -12px rgba(212,160,23,.8), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(212,160,23,.9), inset 0 1px 0 rgba(255,255,255,.45); }
.btn--glass {
  color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn--glass:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); transform: translateY(-2px); }
.btn--navy { color: #fff; background: var(--navy); box-shadow: 0 12px 26px -14px rgba(11,47,107,.8); }
.btn--navy:hover { background: var(--navy-800); transform: translateY(-2px); }
.btn--outline { color: var(--navy); background: transparent; border: 1px solid var(--line-strong); }
.btn--outline:hover { background: #fff; border-color: var(--navy); transform: translateY(-2px); }
.btn--green { color: #fff; background: var(--green-ink); box-shadow: 0 12px 26px -14px rgba(15,157,118,.9); }
.btn--green:hover { background: #086A4F; transform: translateY(-2px); }
.btn--ghost { color: inherit; padding: 0 12px; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .9rem; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 1.04rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--blue-ink); }
.link-arrow .ic { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.link-arrow:hover .ic { transform: translateX(4px); }
.section--dark .link-arrow, .section--deep .link-arrow { color: var(--gold-300); }
.link { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: #fff; border-bottom: 1px solid transparent;
  transition: background-color .45s var(--ease), border-color .45s, box-shadow .45s, height .35s var(--ease);
}
.site-header.is-scrolled {
  --header-h: 66px;
  background: rgba(6, 27, 63, .74);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.5);
}
.site-header--light { color: var(--navy); }
.site-header--light.is-scrolled { background: rgba(246, 243, 235, .82); border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(6,27,63,.35); }

.header__bar { display: flex; align-items: center; gap: 20px; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex: none; }
.brand img { width: auto; height: 48px; object-fit: contain; }
.brand .brand__logo--escura { display: block; }
.brand .brand__logo--clara { display: none; }
.site-header--light .brand__logo--clara { display: block; }
.site-header--light .brand__logo--escura { display: none; }
.brand__word { font-family: var(--f-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -.035em; line-height: 1; }
.brand__word b { color: var(--gold); font-weight: 800; }
.site-header--light .brand__word { color: var(--navy); }
.site-header--light .brand__word b { color: var(--gold-deep); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__list a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-size: .93rem; font-weight: 550; opacity: .86; transition: opacity .25s;
}
.nav__list a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav__list a:hover, .nav__list a[aria-current="page"] { opacity: 1; }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__login { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; font-weight: 600; font-size: .93rem; opacity: .9; }
.nav__login:hover { opacity: 1; }
.nav__login .ic { width: 18px; height: 18px; }

.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 14px;
  place-items: center; color: inherit; border: 1px solid currentColor; border-color: rgba(255,255,255,.28);
}
.site-header--light .nav-toggle { border-color: var(--line-strong); }
.nav-toggle .ic { width: 22px; height: 22px; }
.nav-toggle .ic-fechar { display: none; }
.nav-open .nav-toggle .ic-abrir { display: none; }
.nav-open .nav-toggle .ic-fechar { display: block; }

@media (max-width: 1023.98px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; justify-content: space-between; gap: 32px;
    padding: 28px var(--gutter) 32px; overflow-y: auto;
    background: var(--navy-950); color: #fff;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .35s var(--ease), transform .45s var(--ease-out), visibility 0s .45s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-open { background: var(--navy-950) !important; color: #fff; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .nav-open .nav-toggle { border-color: rgba(255,255,255,.28); }
  .nav-open .brand__logo--clara { display: none !important; }
  .nav-open .brand__logo--escura { display: block !important; }
  .nav-open .brand__word { color: #fff; }
  .nav-open .brand__word b { color: var(--gold); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line-dark); }
  .nav__list a { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; padding: 16px 0; opacity: 1; width: 100%; }
  .nav__list a::after { display: none; }
  .nav__cta { flex-direction: column; align-items: stretch; }
  .nav__cta .btn { width: 100%; }
  .nav__login { justify-content: center; border: 1px solid var(--line-dark-strong); border-radius: var(--r-pill); min-height: 50px; }
}
body.no-scroll { overflow: hidden; }

/* ---------- Cabeçalhos de seção ---------- */
.sec-head { margin-bottom: clamp(44px, 5vw, 80px); }
.sec-head .h2 { margin-top: 22px; }
.sec-head__lead { margin-top: 22px; }
@media (min-width: 1024px) {
  .sec-head.grid-12 { align-items: end; }
  .sec-head .sec-head__title { grid-column: 1 / span 7; }
  .sec-head .sec-head__lead { grid-column: 9 / span 4; margin-top: 0; }
}

.rule-num { display: flex; align-items: center; gap: 14px; font-family: var(--f-display); font-weight: 700; font-size: .85rem; color: var(--gold-deep); letter-spacing: .04em; }
.rule-num::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.section--dark .rule-num, .section--deep .rule-num { color: var(--gold); }
.section--dark .rule-num::after, .section--deep .rule-num::after { background: var(--line-dark); }

/* ---------- Cartões ---------- */
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 32px); box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card--dark {
  color: #fff; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border-color: var(--line-dark); box-shadow: none;
}
.card--dark:hover { border-color: rgba(212,160,23,.5); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill);
  font-size: .78rem; font-weight: 600; line-height: 1.2; background: #fff; border: 1px solid var(--line); color: var(--navy);
}
.chip .ic { width: 14px; height: 14px; }
.section--dark .chip, .section--deep .chip { background: rgba(255,255,255,.06); border-color: var(--line-dark); color: rgba(255,255,255,.86); }

.tag-ficticio {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--r-pill);
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); border: 1px dashed currentColor; background: rgba(212,160,23,.07);
}
.section--dark .tag-ficticio, .section--deep .tag-ficticio, .on-dark .tag-ficticio { color: var(--gold-300); }

.checklist li { position: relative; padding-left: 32px; margin-top: 12px; line-height: 1.5; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%230A7A5B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.section--dark .checklist li::before, .section--deep .checklist li::before { background-color: rgba(15,157,118,.22); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%2367E0B5' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- Faixa corrida ---------- */
.marquee { overflow: hidden; background: var(--navy-950); color: rgba(255,255,255,.72); border-top: 1px solid var(--line-dark); }
.marquee__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item { display: inline-flex; align-items: center; gap: 28px; padding: 22px 0 22px 28px; font-family: var(--f-display); font-weight: 650; font-size: 1.05rem; letter-spacing: -.01em; white-space: nowrap; }
.marquee__item::after { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); border-radius: 1px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; min-height: 44px; text-align: left; color: var(--navy);
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.05rem, .98rem + .4vw, 1.3rem); letter-spacing: -.015em; line-height: 1.3;
}
.faq__icon {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); transition: transform .5s var(--ease-out), background-color .3s, border-color .3s;
}
.faq__icon .ic { width: 18px; height: 18px; }
.faq__q:hover .faq__icon { border-color: var(--navy); }
.faq__item.is-open .faq__icon { transform: rotate(135deg); background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.faq__a > div { overflow: hidden; visibility: hidden; transition: visibility 0s .55s; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a > div { visibility: visible; transition-delay: 0s; }
.faq__a p { margin: 0; padding: 0 64px 28px 0; color: var(--ink-2); max-width: 70ch; }
@media (max-width: 640px) { .faq__a p { padding-right: 0; } }

/* ---------- Botão flutuante de WhatsApp ---------- */
.whats-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: var(--green-ink);
  box-shadow: 0 16px 34px -10px rgba(10,122,91,.75), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .35s var(--ease-out);
}
.whats-float:hover { transform: translateY(-3px) scale(1.04); }
.whats-float .ic { width: 30px; height: 30px; }
.whats-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green);
  animation: anel 2.6s var(--ease-out) infinite;
}
.whats-float__tip {
  position: absolute; right: 72px; top: 50%; transform: translate(8px, -50%); white-space: nowrap;
  background: var(--navy-950); color: #fff; font-size: .85rem; font-weight: 600; padding: 9px 14px; border-radius: 10px;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease-out);
}
.whats-float:hover .whats-float__tip, .whats-float:focus-visible .whats-float__tip { opacity: 1; transform: translate(0, -50%); }
@keyframes anel { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.55); opacity: 0; } }

/* ---------- Rodapé ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--navy-950); color: rgba(255,255,255,.7); padding: clamp(72px, 8vw, 110px) 0 28px; }
.site-footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 85% 0%, rgba(46,123,255,.14), transparent 70%), radial-gradient(40% 40% at 0% 100%, rgba(212,160,23,.08), transparent 70%);
}
.footer__grid { position: relative; row-gap: 44px; }
.footer__brand .brand__word { color: #fff; font-size: 1.5rem; }
.footer__brand p { margin-top: 20px; max-width: 30ch; font-family: var(--f-display); font-size: 1.12rem; font-weight: 600; line-height: 1.45; color: rgba(255,255,255,.85); letter-spacing: -.01em; }
.footer__col h2 { font-family: var(--f-text); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer__col li + li { margin-top: 4px; }
.footer__col a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: .95rem; transition: color .25s; }
.footer__col a:hover { color: #fff; }
.footer__col .ic { width: 18px; height: 18px; }
.footer__mega { position: relative; margin-top: clamp(48px, 6vw, 80px); }
.footer__mega .mega-logo { display: block; width: clamp(260px, 46vw, 640px); height: auto; }
.footer__bottom {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .84rem; color: rgba(255,255,255,.58);
}
.footer__bottom a:hover { color: #fff; }
@media (min-width: 768px) {
  .footer__brand { grid-column: 1 / span 12; }
  .footer__col { grid-column: span 4; }
}
@media (min-width: 1024px) {
  .footer__brand { grid-column: 1 / span 4; }
  .footer__col { grid-column: span 2; }
  .footer__col--wide { grid-column: span 2; }
  .footer__col:first-of-type { grid-column: 5 / span 2; }
}
@media (max-width: 767.98px) {
  .footer__col { grid-column: span 6 !important; }
  .footer__col--wide { grid-column: 1 / -1 !important; }
}

/* ---------- Formulários ---------- */
.field { display: grid; gap: 8px; }
.field > label, .field__label { font-size: .875rem; font-weight: 600; color: var(--navy); }
.field__hint { font-size: .8rem; color: var(--ink-3); }
.input, .select {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 13px;
  background: #fff; border: 1px solid var(--line-strong); color: var(--ink);
  transition: border-color .2s, box-shadow .25s;
}
.select { appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%230B2F6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center/18px no-repeat; }
.input::placeholder { color: #9AA1AC; }
.input:hover, .select:hover { border-color: rgba(11,47,107,.36); }
.input:focus, .select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(46,123,255,.18); }
.field.is-invalid .input, .field.is-invalid .select { border-color: var(--danger); }
.field__error { display: none; font-size: .8rem; color: var(--danger); font-weight: 550; }
.field.is-invalid .field__error { display: block; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 52px; }
.input-wrap__btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-3); }
.input-wrap__btn:hover { color: var(--navy); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--navy); cursor: pointer; }
.check.is-invalid { color: var(--danger); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: .9rem; line-height: 1.5; background: var(--blue-soft); color: var(--navy); border: 1px solid rgba(46,123,255,.25); }
.alert .ic { width: 20px; height: 20px; margin-top: 1px; }
.alert--ok { background: var(--green-soft); border-color: rgba(15,157,118,.3); color: #064E3B; }
.alert--warn { background: #FBF1D3; border-color: rgba(212,160,23,.4); color: #5C4300; }

/* ==========================================================================
   MOCKUPS DO PAINEL
   Tudo dentro de .frame é dimensionado em "em"; a fonte da moldura segue a
   largura do contêiner (cqi), então o mockup escala como uma imagem.
   ========================================================================== */
.mock { position: relative; container-type: inline-size; }
.frame {
  font-size: clamp(6px, 1.72cqi, 14.5px);
  position: relative; overflow: hidden; text-align: left; line-height: 1.35;
  font-family: var(--f-text); color: var(--ink);
  background: #fff; border-radius: 1.15em; border: 1px solid rgba(11,47,107,.14);
  box-shadow: var(--shadow-lg);
}
.frame--dark { border-color: rgba(255,255,255,.14); box-shadow: 0 50px 100px -40px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.04); }
.frame__bar { display: flex; align-items: center; gap: .8em; padding: .7em 1em; background: #F1EEE6; border-bottom: 1px solid var(--line); }
.frame__dots { display: flex; gap: .4em; }
.frame__dots i { width: .72em; height: .72em; border-radius: 50%; background: #D8D1C1; }
.frame__dots i:first-child { background: #E8B4A6; }
.frame__dots i:nth-child(2) { background: #EBD49A; }
.frame__dots i:nth-child(3) { background: #A9D8C3; }
.frame__url { flex: 1; max-width: 26em; margin-inline: auto; display: flex; align-items: center; justify-content: center; gap: .45em; padding: .32em .9em; border-radius: .6em; background: #fff; border: 1px solid var(--line); color: var(--ink-3); font-size: .82em; }
.frame__url .ic { width: 1em; height: 1em; color: var(--green-ink); --ic-accent: var(--green-ink); }
.frame__spacer { width: 3.4em; }

@container (max-width: 560px) {
  .frame { font-size: clamp(8px, 2.85cqi, 12px); }
  .m-hide-sm { display: none !important; }
}

/* App shell */
.app { display: grid; grid-template-columns: 15em minmax(0, 1fr); background: var(--beige); }
.app__side { display: flex; flex-direction: column; gap: .12em; padding: 1.2em .8em 1.4em; color: rgba(255,255,255,.76); background: linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%); }
.app__logo { display: flex; align-items: center; gap: .5em; padding: .1em .5em 1.1em; font-family: var(--f-display); font-weight: 800; font-size: 1.12em; letter-spacing: -.03em; color: #fff; }
.app__logo img { width: 1.9em; height: 1.9em; }
.app__logo b { color: var(--gold); }
.app__item { display: flex; align-items: center; gap: .65em; padding: .5em .7em; border-radius: .6em; font-size: .82em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__item .ic { width: 1.3em; height: 1.3em; color: #A9C5FF; }
.app__item.is-active { background: rgba(255,255,255,.11); color: #fff; box-shadow: inset 2px 0 0 var(--gold); }
.app__group { padding: 1.3em .85em .45em; font-size: .6em; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.app__main { display: flex; flex-direction: column; gap: 1em; min-width: 0; padding: 1.35em 1.5em 1.5em; }
.app__top { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.app__hello strong { display: block; font-family: var(--f-display); font-size: 1.5em; font-weight: 800; letter-spacing: -.025em; color: var(--navy); line-height: 1.15; }
.app__hello span { font-size: .82em; color: var(--ink-3); }
.app__tools { display: flex; align-items: center; gap: .7em; }
.app__search { display: flex; align-items: center; gap: .45em; min-width: 13em; padding: .45em .9em; border-radius: 99em; background: #fff; border: 1px solid var(--line); color: var(--ink-3); font-size: .78em; }
.app__search .ic { width: 1.1em; height: 1.1em; }
.app__bell { position: relative; color: var(--navy); }
.app__bell .ic { width: 1.6em; height: 1.6em; }
.app__bell::after { content: ""; position: absolute; top: .1em; right: .1em; width: .5em; height: .5em; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--beige); }
.ava {
  width: 2.2em; height: 2.2em; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-size: .78em; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--blue), var(--navy));
}
.ava--g { background: linear-gradient(135deg, #2BC392, var(--green-ink)); }
.ava--o { background: linear-gradient(135deg, #EBC14E, #B58300); color: var(--navy-950); }
.ava--n { background: linear-gradient(135deg, #3A5585, var(--navy-950)); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75em; }
.kpi { display: flex; align-items: center; gap: .7em; padding: .85em .9em; background: #fff; border: 1px solid var(--line); border-radius: .9em; min-width: 0; }
.kpi__ic { width: 2.5em; height: 2.5em; flex: none; border-radius: .75em; display: grid; place-items: center; color: var(--blue-ink); background: var(--blue-soft); }
.kpi__ic .ic { width: 1.35em; height: 1.35em; }
.kpi__ic--g { color: var(--green-ink); background: var(--green-soft); --ic-accent: var(--green-ink); }
.kpi__ic--o { color: #8A6400; background: var(--gold-soft); }
.kpi__txt { min-width: 0; }
.kpi__label { display: block; font-size: .7em; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__value { display: block; font-family: var(--f-display); font-size: 1.32em; font-weight: 800; color: var(--navy); letter-spacing: -.025em; line-height: 1.15; }
.kpi__delta { font-size: .68em; font-weight: 700; color: var(--green-ink); }

.app__row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: .75em; }
.panel { min-width: 0; padding: 1em 1.1em; background: #fff; border: 1px solid var(--line); border-radius: .9em; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: .8em; margin-bottom: .7em; }
.panel__title { font-weight: 700; font-size: .88em; color: var(--navy); }
.panel__meta { font-size: .68em; color: var(--ink-3); white-space: nowrap; }
.legend-dot { display: inline-flex; align-items: center; gap: .35em; }
.legend-dot::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--c, var(--blue)); }

@container (max-width: 560px) {
  .app { grid-template-columns: 1fr; }
  .app__side, .app__search { display: none; }
  .app__main { padding: 1.1em; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app__row { grid-template-columns: 1fr; }
}

/* Gráfico de linha (desenha ao entrar) */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart__grid line { stroke: rgba(11,47,107,.08); stroke-width: 1; }
.chart__axis text { font: 500 9px var(--f-text); fill: #8B93A1; }
.chart__line { fill: none; stroke: var(--blue); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 2.4s var(--ease-out) .25s; }
.chart__line--2 { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 1000; transition-delay: .6s; }
.chart__area { opacity: 0; transition: opacity 1.4s ease 1.1s; }
.chart__dot { fill: #fff; stroke: var(--blue); stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: opacity .4s 2.2s, transform .5s var(--ease-out) 2.2s; }
[data-draw].is-in .chart__line { stroke-dashoffset: 0; }
[data-draw].is-in .chart__area { opacity: 1; }
[data-draw].is-in .chart__dot { opacity: 1; transform: scale(1); }

/* Barras genéricas (crescem ao entrar) */
.bar { height: .55em; border-radius: 99em; background: var(--beige-200); overflow: hidden; }
.bar > i { display: block; height: 100%; width: var(--p, 50%); border-radius: inherit; background: var(--c, var(--green)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms + .2s); }
[data-draw].is-in .bar > i { transform: scaleX(1); }

/* Mapa de bairros (gerado por main.js) */
.mapa-wrap { position: relative; }
.mapa { width: 100%; height: auto; overflow: hidden; }
.map-card .mapa { max-height: 540px; margin-inline: auto; }
.mapa .bairro {
  stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; cursor: default;
  fill: var(--green); fill-opacity: calc(.14 + var(--cob) * .74);
  transition: fill .6s, fill-opacity .6s, opacity .8s var(--ease-out), stroke-width .25s;
  transition-delay: 0s, 0s, calc(var(--i) * 40ms), 0s;
}
.mapa[data-camada="atendimentos"] .bairro { fill: var(--blue); fill-opacity: calc(.12 + var(--ate) * .76); }
.mapa[data-camada="demandas"] .bairro { fill: var(--gold); fill-opacity: calc(.12 + var(--dem) * .8); }
.js [data-draw]:not(.is-in) .mapa .bairro { opacity: 0; }
.mapa .bairro[tabindex] { cursor: pointer; }
.mapa .bairro.is-hover, .mapa .bairro:focus { stroke: var(--navy); stroke-width: 4; outline: none; }
.mapa__rio { fill: none; stroke: #A9C8FF; stroke-width: 15; stroke-linecap: round; opacity: .6; }
.mapa__rio--brilho { stroke: #fff; stroke-width: 2; opacity: .9; stroke-dasharray: 6 12; animation: fluxo 5s linear infinite; }
.mapa__via { fill: none; stroke: rgba(11,47,107,.4); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.mapa__rotulo { font: 650 13px var(--f-text); fill: var(--navy-950); paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: 3.5px; stroke-linejoin: round; pointer-events: none; }
.mapa__ponto { fill: var(--gold); stroke: #fff; stroke-width: 2.5; }
.mapa__pulso { fill: var(--gold); opacity: 0; transform-box: fill-box; transform-origin: center; animation: pulso 2.6s var(--ease-out) infinite; animation-delay: var(--pd, 0s); }
.mapa__pulso--2 { animation-delay: calc(var(--pd, 0s) + 1.3s); }
@keyframes pulso { 0% { transform: scale(.3); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes fluxo { to { stroke-dashoffset: -72; } }
.mapa__tip {
  position: absolute; left: 1em; bottom: 1em; max-width: min(80%, 22em); padding: .75em 1em; border-radius: .8em;
  background: rgba(4,18,44,.94); color: #fff; font-size: .82rem; line-height: 1.4;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .3s var(--ease-out); pointer-events: none;
}
.mapa__tip.is-on { opacity: 1; transform: none; }
.mapa__tip strong { display: block; font-family: var(--f-display); font-size: 1.05em; }
.mapa__tip span { opacity: .78; }

/* Kanban — Operações de Campo */
.modview { padding: 1.3em 1.4em 1.5em; background: var(--beige); }
.modview__head { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-bottom: 1.1em; }
.modview__title { display: flex; align-items: center; gap: .6em; }
.modview__title strong { font-family: var(--f-display); font-size: 1.35em; font-weight: 800; letter-spacing: -.025em; color: var(--navy); }
.modview__title .ic { width: 1.6em; height: 1.6em; color: var(--navy); }
.modview__filters { display: flex; gap: .4em; }
.mchip { display: inline-flex; align-items: center; gap: .35em; padding: .35em .75em; border-radius: 99em; background: #fff; border: 1px solid var(--line); font-size: .72em; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.mchip.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.mbtn { display: inline-flex; align-items: center; gap: .4em; padding: .55em .9em; border-radius: .65em; background: var(--navy); color: #fff; font-size: .74em; font-weight: 650; white-space: nowrap; }
.mbtn .ic { width: 1.1em; height: 1.1em; }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75em; }
.kcol { padding: .7em; border-radius: .9em; background: #EDE8DB; }
.kcol__head { display: flex; align-items: center; justify-content: space-between; padding: .15em .3em .25em; font-size: .76em; font-weight: 700; color: var(--navy); }
.kcol__head span { display: inline-grid; place-items: center; min-width: 1.8em; height: 1.8em; padding: 0 .4em; border-radius: 99em; background: #fff; font-size: .9em; }
.kcard { margin-top: .6em; padding: .75em .85em; background: #fff; border: 1px solid var(--line); border-radius: .75em; box-shadow: 0 1px 2px rgba(6,27,63,.05); }
.kcard__tag { font-size: .62em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-ink); }
.kcard__tag--g { color: var(--green-ink); }
.kcard__tag--o { color: #8A6400; }
.kcard__title { margin: .3em 0 .55em; font-size: .84em; font-weight: 650; line-height: 1.3; color: var(--ink); }
.kcard__meta { display: flex; align-items: center; justify-content: space-between; gap: .5em; font-size: .66em; color: var(--ink-3); }
.kcard .bar { margin: .2em 0 .6em; height: .45em; }
.avs { display: flex; }
.avs .ava { width: 1.9em; height: 1.9em; font-size: .62em; box-shadow: 0 0 0 2px #fff; }
.avs .ava + .ava { margin-left: -.5em; }
@container (max-width: 560px) {
  .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kanban .kcol:nth-child(3), .modview__filters { display: none; }
}

/* CRM — Contatos e Atendimentos */
.crm { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: .8em; }
.crm__list { background: #fff; border: 1px solid var(--line); border-radius: .9em; overflow: hidden; }
.crm__row { display: grid; grid-template-columns: 2.1fr 1.2fr 1.25fr 1.15fr; gap: .6em; align-items: center; padding: .62em .9em; border-bottom: 1px solid var(--line); font-size: .76em; }
.crm__row:last-child { border-bottom: 0; }
.crm__row--head { font-size: .6em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: #FAF8F3; }
.crm__row.is-sel { background: #F2F6FF; box-shadow: inset 3px 0 0 var(--blue); }
.person { display: flex; align-items: center; gap: .55em; min-width: 0; font-weight: 600; color: var(--ink); }
.person span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .ava { width: 2.1em; height: 2.1em; font-size: .72em; }
.ok-badge { display: inline-flex; align-items: center; gap: .3em; padding: .2em .55em; border-radius: 99em; font-size: .92em; font-weight: 700; color: var(--green-ink); background: var(--green-soft); white-space: nowrap; }
.ok-badge .ic { width: 1em; height: 1em; }
.src { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm__detail { padding: 1em 1.1em; background: #fff; border: 1px solid var(--line); border-radius: .9em; }
.crm__who { display: flex; gap: .7em; align-items: center; padding-bottom: .9em; border-bottom: 1px solid var(--line); }
.crm__who .ava { width: 2.8em; height: 2.8em; font-size: .9em; }
.crm__who strong { display: block; font-size: .95em; color: var(--navy); }
.crm__who small { font-size: .72em; color: var(--ink-3); }
.tl { padding-top: .9em; }
.tl li { position: relative; padding: 0 0 .9em 1.4em; font-size: .74em; color: var(--ink-2); line-height: 1.4; }
.tl li::before { content: ""; position: absolute; left: 0; top: .3em; width: .65em; height: .65em; border-radius: 50%; background: #fff; border: 2px solid var(--blue); }
.tl li::after { content: ""; position: absolute; left: .3em; top: 1.1em; bottom: 0; width: 1px; background: var(--line-strong); }
.tl li:last-child::after { display: none; }
.tl li.tl--g::before { border-color: var(--green); }
.tl li.tl--o::before { border-color: var(--gold); }
.tl b { display: block; color: var(--ink); font-weight: 650; }
.tl time { font-size: .9em; color: var(--ink-3); }
@container (max-width: 560px) {
  .crm { grid-template-columns: 1fr; }
  .crm__row { grid-template-columns: 1.7fr 1.2fr; }
  .crm__row > :nth-child(n+3) { display: none; }
  .crm__detail { display: none; }
}

/* Hierarquia */
.tree { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2.4em; padding: 1.8em 1.4em 1.6em; background: var(--beige); }
.tnode { position: relative; display: flex; align-items: center; gap: .6em; min-width: 0; padding: .65em .9em; background: #fff; border: 1px solid var(--line); border-radius: .85em; box-shadow: 0 1px 2px rgba(6,27,63,.06); font-size: .82em; }
.tnode .ava { width: 2.3em; height: 2.3em; font-size: .78em; }
.tnode strong { display: block; color: var(--navy); font-size: .98em; line-height: 1.2; white-space: nowrap; }
.tnode small { display: block; color: var(--ink-3); font-size: .82em; white-space: nowrap; }
.tnode--top { background: var(--navy); border-color: var(--navy); color: #fff; padding: .8em 1.2em; }
.tnode--top strong { color: #fff; }
.tnode--top small { color: rgba(255,255,255,.7); }
.tnode--top::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 1.2em; background: var(--line-strong); }
.tlevel { position: relative; display: flex; justify-content: center; gap: .9em; width: 100%; }
.tlevel > .tnode, .tlevel > .tgroup { flex: 1 1 0; }
.tlevel::before { content: ""; position: absolute; top: -1.2em; left: 16.66%; right: 16.66%; height: 1px; background: var(--line-strong); }
.tlevel > *::before { content: ""; position: absolute; left: 50%; top: -1.2em; width: 1px; height: 1.2em; background: var(--line-strong); }
.tgroup { position: relative; display: flex; flex-direction: column; gap: .4em; padding: .7em; border-radius: .85em; border: 1px dashed var(--line-strong); background: rgba(255,255,255,.55); font-size: .78em; }
.tgroup b { color: var(--navy); }
.tgroup .avs { margin-top: .2em; }
.tscope { display: inline-flex; align-self: flex-start; padding: .15em .5em; border-radius: 99em; font-size: .85em; font-weight: 700; color: var(--green-ink); background: var(--green-soft); }
.tvol { display: flex; align-items: center; justify-content: space-between; gap: 1em; width: 100%; padding: .8em 1em; border-radius: .85em; background: #fff; border: 1px solid var(--line); font-size: .8em; }
.tvol strong { color: var(--navy); font-family: var(--f-display); font-size: 1.2em; }
@container (max-width: 560px) {
  .tlevel { flex-direction: column; }
  .tlevel::before, .tlevel > *::before { display: none; }
  .tree { gap: 1.2em; }
  .tnode--top::after { display: none; }
}

/* Celular */
.phone {
  position: relative; width: min(296px, 100%); aspect-ratio: 9 / 18.6; padding: 10px; border-radius: 46px;
  background: linear-gradient(160deg, #1B2C55, #050E24); box-shadow: 0 50px 90px -40px rgba(0,0,0,.65), inset 0 0 0 1.5px rgba(255,255,255,.12);
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); border-radius: 99px; background: #050E24; z-index: 2; }
.phone__screen { height: 100%; overflow: hidden; display: flex; flex-direction: column; border-radius: 37px; background: var(--beige); font-size: 12.5px; line-height: 1.4; color: var(--ink); }
.phone__head { padding: 52px 18px 16px; color: #fff; background: linear-gradient(160deg, var(--navy), var(--navy-900)); }
.phone__head small { display: block; font-size: .72em; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.phone__head strong { display: block; margin-top: 4px; font-family: var(--f-display); font-size: 1.25em; line-height: 1.2; letter-spacing: -.02em; }
.phone__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 18px; }
.phone__q { font-weight: 650; color: var(--navy); font-size: .95em; }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; }
.pchips span { padding: 6px 10px; border-radius: 99px; font-size: .82em; font-weight: 600; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.pchips span.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.prate { display: flex; gap: 6px; }
.prate span { flex: 1; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: .85em; background: #fff; border: 1px solid var(--line); color: var(--ink-3); }
.prate span.is-on { background: var(--gold); border-color: var(--gold); color: var(--navy-950); }
.pconsent { display: flex; gap: 8px; align-items: flex-start; font-size: .78em; color: var(--ink-2); }
.pconsent i { width: 16px; height: 16px; flex: none; margin-top: 1px; border-radius: 5px; background: var(--green-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.pbtn { margin-top: auto; padding: 12px; border-radius: 12px; text-align: center; font-weight: 700; color: var(--navy-950); background: var(--gold); }

/* QR ilustrativo */
.qr-card { width: 158px; padding: 14px; border-radius: 20px; background: #fff; color: var(--navy-950); box-shadow: var(--shadow-lg); text-align: center; }
.qr-card [data-qr] svg { width: 100%; height: auto; }
.qr-card small { display: block; margin-top: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }

/* Matriz de permissões */
.matrix { width: 100%; font-size: .8em; }
.matrix th, .matrix td { padding: .75em .7em; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.matrix thead th { font-size: .78em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: #FAF8F3; }
.matrix tbody th { text-align: left; font-weight: 600; color: var(--ink); }
.matrix tbody tr:last-child > * { border-bottom: 0; }
.mx { display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; }
.mx .ic { width: 1.1em; height: 1.1em; }
.mx--ok { color: var(--green-ink); background: var(--green-soft); }
.mx--no { color: #A3A9B4; background: #F1EFEA; }
.mx--2fa { width: auto; padding: 0 .55em; gap: .3em; display: inline-flex; align-items: center; border-radius: 99em; color: #7A5900; background: var(--gold-soft); font-weight: 700; font-size: .85em; height: 1.9em; }
.mx--scope { width: auto; padding: 0 .6em; border-radius: 99em; color: var(--blue-ink); background: var(--blue-soft); font-weight: 700; font-size: .85em; height: 1.9em; display: inline-flex; align-items: center; }
@container (max-width: 560px) {
  .matrix th:nth-child(5), .matrix td:nth-child(5) { display: none; }
  .matrix { font-size: .82em; }
}

/* Feed de auditoria */
.audit li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .85em; align-items: center; padding: .85em 0; border-bottom: 1px solid var(--line); }
.audit li:last-child { border-bottom: 0; }
.audit .ava { width: 2.6em; height: 2.6em; font-size: .78em; }
.audit__txt { min-width: 0; font-size: .82em; line-height: 1.4; }
.audit__txt b { color: var(--ink); font-weight: 700; }
.audit__txt span { color: var(--ink-2); }
.audit__mod { display: inline-flex; margin-top: .3em; padding: .15em .55em; border-radius: 99em; font-size: .85em; font-weight: 650; color: var(--navy); background: #EEF2FA; }
.audit__time { text-align: right; font-size: .76em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.audit__time code { display: block; margin-top: .3em; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; color: #8B93A1; }
.lock-badge { display: inline-flex; align-items: center; gap: .4em; padding: .3em .7em; border-radius: 99em; font-size: .72em; font-weight: 700; color: #7A5900; background: var(--gold-soft); white-space: nowrap; }
.lock-badge .ic { width: 1.1em; height: 1.1em; --ic-accent: #7A5900; }
@container (max-width: 560px) { .audit__time code { display: none; } }

/* Calendário */
.cal { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: .8em; }
.cal__month { padding: 1em; background: #fff; border: 1px solid var(--line); border-radius: .9em; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3em; }
.cal__wd { padding-bottom: .3em; font-size: .62em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
.cal__d { position: relative; aspect-ratio: 1 / .82; padding: .3em .4em; border-radius: .5em; background: #FAF8F3; font-size: .7em; font-weight: 600; color: var(--ink-2); }
.cal__d.is-out { opacity: .35; }
.cal__d.is-today { background: var(--navy); color: #fff; }
.cal__d i { position: absolute; bottom: .4em; width: .5em; height: .5em; border-radius: 50%; background: var(--c, var(--blue)); }
.cal__d i:nth-of-type(1) { left: .45em; }
.cal__d i:nth-of-type(2) { left: 1.15em; }
.cal__list { display: flex; flex-direction: column; gap: .55em; }
.ev { display: grid; grid-template-columns: auto 1fr; gap: .2em .7em; padding: .7em .8em; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--c, var(--blue)); border-radius: .7em; font-size: .76em; }
.ev time { grid-row: span 2; font-family: var(--f-display); font-weight: 800; font-size: 1.15em; color: var(--navy); }
.ev b { color: var(--ink); font-weight: 650; }
.ev small { color: var(--ink-3); }
@container (max-width: 560px) { .cal { grid-template-columns: 1fr; } .cal__list .ev:nth-child(n+3) { display: none; } }

/* Financeiro */
.fin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8em; }
.fin__sum { display: grid; grid-template-columns: auto 1fr; gap: 1em; align-items: center; }
.donut { width: 6.5em; height: 6.5em; }
.donut circle { fill: none; stroke-width: 10; }
.donut__bg { stroke: var(--beige-200); }
.donut__val { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 0 999; transition: stroke-dasharray 2s var(--ease-out) .3s; transform: rotate(-90deg); transform-origin: center; }
[data-draw].is-in .donut__val { stroke-dasharray: var(--dash) 999; }
.fin__big { font-family: var(--f-display); font-weight: 800; font-size: 1.55em; color: var(--navy); letter-spacing: -.03em; line-height: 1.1; }
.fin__lines li { display: grid; grid-template-columns: 8.5em 1fr 3.2em; gap: .7em; align-items: center; padding: .4em 0; font-size: .74em; color: var(--ink-2); }
.fin__lines li b { text-align: right; color: var(--ink); font-weight: 650; }
.stock li { display: flex; align-items: center; justify-content: space-between; gap: .8em; padding: .55em 0; border-bottom: 1px solid var(--line); font-size: .76em; }
.stock li:last-child { border-bottom: 0; }
.stock .st { padding: .15em .55em; border-radius: 99em; font-size: .9em; font-weight: 700; }
.st--ok { color: var(--green-ink); background: var(--green-soft); }
.st--low { color: #8A4B00; background: #FBE6C8; }
@container (max-width: 560px) { .fin { grid-template-columns: 1fr; } .fin > .panel:nth-child(3) { display: none; } }
