:root {
  /* Palette and control styling from the fiscal home page. */
  color-scheme: light;
  --ink: #17263e;
  --muted: #66758b;
  --line: #dfe6ef;
  --blue: #1557bf;
  --blue-dark: #104494;
  --navy: #123b75;
  --bg: #f5f7fa;
  --surface: #fff;
  --red: #a62c24;
  --shadow: 0 10px 30px #16365d0c;
  font: 15px/1.55 system-ui, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--blue); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #5d9cff; outline-offset: 2px; }
.wrap { width: min(100%, 1160px); margin-inline: auto; padding-inline: 22px; }
.skip { position: absolute; inset: .5rem auto auto .5rem; padding: .6rem 1rem; background: var(--surface); transform: translateY(-200%); z-index: 2; }
.skip:focus { transform: none; }

.site-header, .site-footer { background: var(--surface); }
.site-header { border-bottom: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.header-inner, .footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 22px; }
.header-inner { width: min(100%, 1240px); min-height: 76px; padding-block: 12px; }
.footer-inner { padding-block: 20px; }
.site-footer p { margin: 0; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.site-header nav a, .form-page nav a {
  display: inline-block;
  padding: 9px 13px;
  border-radius: 8px;
  color: #42536c;
  font-weight: 600;
  text-decoration: none;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"], .form-page nav a:hover {
  background: #edf3fb;
  color: var(--navy);
}
.site-footer nav { gap: 6px 14px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); font-size: 1.06rem; font-weight: 760; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, #1767cf, var(--navy)); font-weight: 800; letter-spacing: -.06em; }

main { flex: 1; padding-block: 34px 68px; }
h1, h2 { line-height: 1.15; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.7rem, 3vw, 2.25rem); letter-spacing: -.035em; margin: 0 0 7px; }
h2 { font-size: 1.2rem; }
.lead { color: var(--muted); margin-block: .5rem 1.5rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 16px; }
.card, .form-page, .auth-card, .auth-consult {
  min-width: 0;
  overflow-wrap: anywhere;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h2 { margin-top: 0; }
.prose { max-width: 70ch; overflow-wrap: anywhere; }
.catalog { max-width: none; }
.form-page { max-width: 46rem; }
.form-page > a:first-child { display: inline-block; margin-bottom: .75rem; }
.operations { max-width: 100%; }
details { border-bottom: 1px solid var(--line); padding: .75rem 0; }
summary { cursor: pointer; font-weight: 650; }

form { margin-block: 1rem; }
form div { margin-block: .75rem; }
label { display: block; margin-bottom: 6px; font-size: .86rem; font-weight: 650; color: #34445c; }
input:not([type=hidden]), textarea, select {
  width: min(100%, 36rem);
  padding: 10px 12px;
  border: 1px solid #c8d2e0;
  border-radius: 9px;
  background: var(--surface);
  font: inherit;
  color: inherit;
}
.action, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 0;
  border-radius: 9px;
  background: #eaf0f7;
  color: #203a5d;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
button:hover { background: #dce7f3; }
.action { background: var(--blue); color: white; }
a.action { margin-block: .25rem 1rem; }
.action:hover { background: var(--blue-dark); }
#action-link button { display: flex; margin-top: 1rem; }
.errorlist { color: var(--red); padding-left: 1.25rem; font-size: .9rem; }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--red); }
.pricing-grid ul { padding-inline-start: 1.25rem; }
.pricing-grid li + li { margin-block-start: .5rem; }

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 26rem);
  justify-content: center;
  align-content: center;
  align-items: stretch;
  gap: 16px;
}
.auth-layout.auth-signup-layout { grid-template-columns: minmax(0, 35rem); }
.auth-card, .auth-consult { padding: clamp(22px, 4vw, 32px); }
.auth-intro { margin: .55rem 0 1.45rem; color: var(--muted); }
.auth-card .action { width: 100%; margin-top: .4rem; }
.auth-help, .auth-switch { font-size: .9rem; }
.auth-switch { border-top: 1px solid var(--line); margin: 1rem 0 0; padding-top: 1rem; }
.auth-switch a, .auth-consult a { font-weight: 700; }
.auth-consult { background: #f2f7ff; }
.auth-consult h2 { margin: 0; color: var(--navy); }
.auth-consult p { margin: .65rem 0 1rem; }

@media (max-width: 680px) {
  .wrap { padding-inline: 15px; }
  main { padding-block: 22px 48px; }
  .header-inner nav { width: 100%; }
  .site-header nav a, .form-page nav a { padding: 8px 11px; }
  .auth-layout { grid-template-columns: minmax(0, 26rem); align-content: start; }
  .card, .form-page, .auth-card, .auth-consult { padding: 16px; }
}

.steps { padding-left: 1.25rem; }
.steps h2 { margin: 0 0 .35rem; }
.steps li + li { margin-block-start: .9rem; }
.steps p { margin-top: 0; }
.pricing-grid .card { display: flex; flex-direction: column; }
.pricing-grid .card .action { align-self: flex-start; margin: auto 0 0; }

.site-header { position: sticky; top: 0; z-index: 5; }
.site-header .header-inner { max-width: 1240px; margin: 0 auto; padding: 12px 22px; gap: 10px 22px; }
.site-header nav a.nav-account { border: 1px solid var(--line); }
.site-footer .footer-inner { margin: 0 auto; padding: 24px 22px; gap: 14px 22px; }
.footer-inner strong { color: var(--ink); }
.footer-inner div p { margin-top: .3rem; }
main .portal { margin: 0 0 .8rem; }
main.wrap:has(#page-consulta) { padding-block: 0; }

.home-hero {
  display: grid;
  align-items: center;
  padding: clamp(26px, 6vw, 72px);
  border-radius: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 60px);
  background: radial-gradient(ellipse at 94% 12%, #2366bf 0, transparent 52%), #112d53;
  border: 0;
  color: white;
}
.home-hero h1 { color: white; font-size: clamp(2.4rem, 5.8vw, 4.4rem); max-width: 12ch; line-height: 1.02; }
.home-hero .lead, .home-hero .hero-note { color: #d7e4f7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero-actions a { color: white; }
.hero-actions a.action { margin: 0; color: #142f53; background: #fff; }
.hero-actions a.action:hover { background: #e9f2ff; }
.home-hero .lead { font-size: 1.05rem; }
.hero-note { margin: 1rem 0 0; font-size: .89rem; }
.hero-preview {
  border: 1px solid #d5e1ee;
  border-radius: 16px;
  padding: clamp(12px, 2.5vw, 24px);
  min-width: 0;
  background: white;
  color: var(--ink);
  box-shadow: 0 24px 50px #06152d55;
}
.preview-top, .preview-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.preview-top strong { font-size: 1.15rem; }
.preview-top span, .preview-filters { font-size: .78rem; color: var(--muted); }
.preview-filters { margin: 1rem 0; }
.preview-filters span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; }
.preview-filters span:last-child { color: var(--navy); background: #edf4ff; }
.hero-preview table { width: 100%; border-collapse: collapse; font-size: clamp(.7rem, 1.4vw, .87rem); }
.hero-preview th, .hero-preview td { padding: .55rem .25rem; text-align: left; border-bottom: 1px solid var(--line); }
.hero-preview td:first-child { font-weight: 700; color: var(--navy); }
.hero-preview td:last-child { color: var(--blue-dark); white-space: nowrap; }
.home-details { margin-top: clamp(2rem, 5vw, 3.4rem); }
.home-details h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); margin: 0 0 1.1rem; }
.home-details article { border-top: 2px solid #b8d2f6; padding: 1rem 0; }
.home-details h3 { margin: 0 0 .35rem; font-size: 1rem; }
.home-details p { margin: 0; max-width: 34ch; color: var(--muted); }

@media (max-width: 760px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero h1 { max-width: 15ch; }
  .site-header .header-inner, .site-footer .footer-inner { padding-inline: 15px; }
}

/* Confirmação do cadastro: cartão único, sem expor o estado da conta. */
.auth-confirm-layout { grid-template-columns: minmax(0, 31rem); }
.auth-confirm-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 1.1rem; border-radius: 14px; color: var(--blue-dark); background: #e9f2ff; }
.auth-confirm-icon svg { width: 28px; height: 28px; }
.auth-confirm-email { display: block; padding: .8rem 1rem; margin: 1rem 0; background: #f2f7ff; border-radius: 10px; overflow-wrap: anywhere; }
.auth-confirm-help { margin: 1.25rem 0; border-top: 1px solid var(--line); padding-top: 1rem; }
.auth-confirm-help h2 { font-size: 1rem; margin: 0 0 .45rem; }
.auth-confirm-help ul { padding-inline-start: 1.25rem; margin: .4rem 0; color: var(--muted); }
.auth-confirm-help li + li { margin-top: .35rem; }
.auth-confirm-layout .action { display: block; text-align: center; }
.auth-confirm-back { display: block; text-align: center; font-weight: 700; }

/* Personal account, independent of fiscal controls. */
.account-shell { width: min(100%, 1320px); max-width: 1320px; }
.account-heading { margin-bottom: 24px; }
.account-heading .lead { margin-bottom: 0; }
.account-grid { display: grid; grid-template-columns: minmax(0, 13.5rem) minmax(0, 1fr); gap: 24px; align-items: start; }
.account-sidebar, .account-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); min-width: 0; }
.account-sidebar { padding: 12px; box-shadow: none; }
.account-sidebar nav { display: grid; gap: 5px; }
.account-panel > form { max-width: 36rem; }
.account-sidebar nav a { padding: 11px 12px; border-radius: 9px; font-weight: 650; text-decoration: none; color: var(--ink); }
.account-sidebar nav a:hover, .account-sidebar nav a[aria-current="page"] { background: #edf3fb; color: var(--navy); }
.account-sidebar .account-logout { border-top: 1px solid var(--line); margin: 16px 0 0; padding-top: 16px; }
.account-logout button { width: 100%; background: transparent; border: 1px solid var(--line); color: var(--red); }
.account-logout button:hover { background: #fff4f3; }
.account-identity { display: flex; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 22px; }
.account-avatar { flex: 0 0 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #e9f2ff; color: var(--navy); font-size: 1.35rem; font-weight: 750; }
.account-identity-text { min-width: 0; overflow-wrap: anywhere; }
.account-identity-text h2 { margin: 0 0 4px; }
.account-identity-text p { margin: 0; color: var(--muted); }
.account-status { display: inline-block; margin-top: 7px; font-size: .82rem; font-weight: 650; color: #226342; }
.account-panel form { margin-bottom: 0; }
.account-panel input:not([type=hidden]) { width: 100%; }
.account-panel h2 { margin-top: 0; }
.account-panel .account-description { color: var(--muted); }
@media (max-width: 680px) {
  .account-grid { grid-template-columns: minmax(0, 1fr); }
  .account-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Current entitlement at a glance; billing remains on its own page. */
.account-plan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; background: #f2f6fc; border: 1px solid #dce7f7; border-radius: 12px; padding: 18px 20px; margin: 0 0 24px; }
.account-plan-content { flex: 1 1 12rem; min-width: 0; }
.account-plan-label { color: var(--muted); font-size: .8rem; font-weight: 650; margin: 0 0 3px; }
.account-plan-name { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--navy); font-size: 1.4rem; line-height: 1.3; font-weight: 750; margin: 0 0 6px; }
.account-plan-detail { color: var(--muted); font-size: .88rem; margin: 0; }
.account-plan-tag { border-radius: 20px; background: #e4f2e9; color: #226342; font-size: .75rem; font-weight: 650; padding: 3px 9px; }
.account-plan-link { display: inline-block; border-radius: 8px; background: var(--surface); border: 1px solid #c5d6ee; color: var(--navy); padding: 9px 14px; font-size: .86rem; font-weight: 650; text-decoration: none; text-align: center; }
.account-plan-link:hover { background: #e7effb; }
.account-plan-premium { background: #eef5ff; }
@media (max-width: 480px) {
  .account-plan { padding: 15px; }
  .account-plan-link { width: 100%; }
}

.account-quota { flex: 1 0 100%; min-width: 0; border-top: 1px solid #dce7f7; padding-top: 14px; }
.account-quota-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; font-size: .88rem; }
.account-quota-summary label { margin: 0; }
.account-quota-summary span { color: var(--muted); }
.account-quota progress { display: block; width: 100%; height: 10px; margin: 9px 0; border: 0; border-radius: 10px; overflow: hidden; accent-color: var(--blue); background: #dfe7f2; }
.account-quota progress::-webkit-progress-bar { background: #dfe7f2; border-radius: 10px; }
.account-quota progress::-webkit-progress-value { background: var(--blue); border-radius: 10px; }
.account-quota progress::-moz-progress-bar { background: var(--blue); border-radius: 10px; }
.account-quota-reset, .account-quota-note { color: var(--muted); font-size: .8rem; margin: 5px 0 0; }
.account-quota-reset strong { color: var(--ink); }

/* Shared customer-facing help and information pages. */
.help-heading { margin: 0 0 26px; padding: 28px clamp(20px, 4vw, 38px); border: 1px solid #dce7f7; border-radius: 16px; background: linear-gradient(110deg, #edf4ff, #fff); }
.help-heading h1 { color: var(--navy); }
.help-heading .lead { margin-bottom: 0; }
.help-content { max-width: none; }
.guide-section { margin-bottom: 28px; }
.guide-section > h2 { font-size: 1.35rem; margin: 0 0 14px; }
.help-grid .card { padding: 22px; }
.help-grid .card p:last-child, .policy-card p:last-child { margin-bottom: 0; }
.help-grid .card p, .guide-steps p, .help-note p, .help-contact p, .policy-card p { color: var(--muted); }
.guide-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.guide-steps li { display: flex; align-items: flex-start; gap: 16px; }
.guide-number { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-weight: 750; color: var(--navy); background: #e9f2ff; }
.guide-steps h3 { margin: 0 0 5px; font-size: 1.08rem; }
.guide-steps p { margin: 0; }
.help-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; background: #112d53; color: white; border-radius: 15px; padding: clamp(20px, 4vw, 30px); margin-top: 24px; }
.help-cta h2 { margin: 0 0 6px; font-size: 1.25rem; }
.help-cta p { color: #d7e4f7; margin: 0; }
.help-cta .action { background: #fff; color: var(--navy); margin: 0; }
.help-cta .action:hover { background: #e9f2ff; }
.faq-search { margin-bottom: 18px; }
.faq-search input { width: 100%; max-width: none; }
.faq-search #faq-resultados { color: var(--muted); margin: .6rem 0 0; font-size: .88rem; }
.faq-search #faq-resultados:empty { display: none; }
.faq-groups { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; align-items: stretch; }
.faq-group h2 { margin: 0 0 8px; color: var(--navy); }
.faq-group details { padding: 0; }
.faq-group details:last-child { border-bottom: 0; }
.faq-group summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; }
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::after { content: "+"; color: var(--blue); font-size: 1.2rem; font-weight: 600; flex: 0 0 auto; }
.faq-group details[open] summary::after { content: "−"; }
.faq-group details[open] summary { color: var(--blue-dark); }
.faq-group details p { margin: 0 0 14px; color: var(--muted); }
.price-card { padding: clamp(20px, 4vw, 32px); }
.price-card .price-kicker { color: var(--blue-dark); font-size: .8rem; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; margin: 0 0 8px; }
.price-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.price-card .price-value { color: var(--navy); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 750; line-height: 1.2; margin: 0 0 8px; }
.price-premium { border-color: #9abbe8; border-top: 3px solid var(--blue); }
.price-card ul { margin: 10px 0 22px; }
.help-note { margin-top: 18px; }
.help-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.help-contact > .card { display: flex; flex-direction: column; align-items: flex-start; }
.help-contact > .card > a:last-child { margin-top: auto; margin-bottom: 0; }
.policy-card { max-width: 800px; padding: clamp(20px, 4vw, 32px); }
.policy-card h2:not(:first-child) { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.form-shell { max-width: 980px; }
.form-shell > .form-page { margin-inline: auto; padding: clamp(22px, 4vw, 32px); }
.form-shell .form-page input:not([type=hidden]), .form-shell .form-page textarea { width: 100%; }
.form-shell .form-page [role=status] { color: var(--muted); }
.form-shell .form-page nav { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.billing-history { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.billing-history ul { list-style: none; padding: 0; }
.billing-history li { padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.billing-test { background: #f5f7fa; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 20px; }
.billing-test h2 { font-size: 1rem; }
.billing-test p { color: var(--muted); }
@media (max-width: 760px) {
  .faq-groups, .help-contact { grid-template-columns: minmax(0, 1fr); }
  .faq-groups { grid-auto-rows: auto; }
  .help-heading { padding: 22px 18px; }
  .help-cta .action { width: 100%; }
}

/* Operations console: scoped, responsive, no external assets or inline scripts. */
.ops-body { background:#f3f6fa; color:#17263e; }
.ops-layout { display:grid; grid-template-columns:238px minmax(0,1fr); min-height:100vh; }
.ops-sidebar { background:#122b4b; color:#dce6f4; padding:26px 16px; display:flex; flex-direction:column; gap:24px; }
.ops-brand { color:white; text-decoration:none; display:flex; align-items:center; gap:10px; font-weight:750; line-height:1.2; padding:0 5px; }
.ops-brand small { display:block; margin-top:5px; font-size:.75rem; color:#c2d1e7; font-weight:500; }
.ops-sidebar nav { display:flex; flex-direction:column; align-items:stretch; gap:5px; }
.ops-sidebar nav a,.ops-sidebar-foot a { text-decoration:none; color:#dce6f4; padding:10px 12px; border-radius:8px; font-size:.9rem; }
.ops-sidebar nav a:hover,.ops-sidebar nav a[aria-current="page"] { background:#274a74; color:white; }
.ops-sidebar-foot { margin-top:auto; border-top:1px solid #38506e; padding-top:12px; display:flex; flex-direction:column; }
.ops-sidebar-foot form { margin:6px 12px; }
.ops-sidebar-foot button { width:100%; background:#29486d; color:white; }
.ops-main { padding:30px clamp(16px,3vw,40px) 24px; min-width:0; max-width:1500px; width:100%; margin-inline:auto; }
.ops-top { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.ops-top h1 { margin:0; font-size:clamp(1.7rem,2.7vw,2.3rem); }
.ops-eyebrow { margin:0 0 4px; color:#526982; font-size:.76rem; font-weight:750; letter-spacing:.075em; text-transform:uppercase; }
.ops-meta { display:flex; gap:10px; align-items:center; font-size:.82rem; color:#526982; }
.ops-tag { display:inline-flex; border-radius:6px; padding:3px 8px; background:#e7eef8; color:#23466e; font-size:.78rem; font-weight:650; }
.ops-notice { border:1px solid #d4e1f1; background:#edf3fb; color:#334c69; border-radius:9px; padding:12px 15px; margin:0 0 20px; font-size:.86rem; }
.ops-kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr)); gap:14px; margin-bottom:20px; }
.ops-kpis article,.ops-panel { min-width:0; background:white; border:1px solid #dce5ef; border-radius:12px; box-shadow:0 2px 7px #17263e08; padding:20px; }
.ops-kpis article { display:flex; flex-direction:column; gap:6px; border-top:3px solid #4380d0; }
.ops-kpis article span { color:#526982; font-weight:650; font-size:.84rem; }
.ops-kpis article strong { font-size:clamp(1.3rem,2.6vw,2rem); line-height:1.15; font-variant-numeric:tabular-nums; color:#173a66; overflow-wrap:anywhere; }
.ops-kpis article small,.ops-muted,.ops-footer { color:#526982; font-size:.82rem; }
.ops-columns { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr)); gap:16px; }
.ops-panel { margin-bottom:16px; }
.ops-panel h2 { margin:0 0 10px; font-size:1.12rem; }
.ops-stats { margin:0; }
.ops-stats div { display:flex; justify-content:space-between; gap:14px; padding:12px 0; border-bottom:1px solid #e4eaf1; }
.ops-stats div:last-child { border-bottom:0; }
.ops-stats dt { font-size:.87rem; overflow-wrap:anywhere; }
.ops-stats dd { margin:0; font-weight:700; font-variant-numeric:tabular-nums; text-align:right; }
.ops-table { overflow-x:auto; border:1px solid #e1e7ef; border-radius:8px; }
.ops-table table { width:100%; border-collapse:collapse; font-size:.86rem; min-width:440px; }
.ops-table th { background:#f0f4f9; color:#405976; font-weight:700; text-align:left; white-space:nowrap; }
.ops-table td,.ops-table th { padding:11px 12px; border-bottom:1px solid #e5ebf2; vertical-align:middle; }
.ops-table td { overflow-wrap:anywhere; }
.ops-table td small { display:block; color:#526982; margin-top:4px; }
.ops-table tr:last-child td { border-bottom:0; }
.ops-table form { margin:4px 0; }
.ops-table button { padding:7px 10px; font-size:.8rem; white-space:nowrap; }
.ops-table details { min-width:180px; max-width:460px; border:0; }
.ops-danger { background:#f9e9e7; color:#8d2520; }
.ops-danger:hover { background:#f4d7d3; }
.ops-filter { display:flex; align-items:end; flex-wrap:wrap; gap:10px; margin:0 0 12px; }
.ops-filter label { margin:0 0 8px; }
.ops-filter input:not([type=hidden]),.ops-filter select { width:auto; max-width:100%; min-width:120px; }
.ops-filter a,.ops-pagination a,.ops-controls a { font-weight:650; }
.ops-controls { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:18px; }
.ops-controls .action { margin:0; }
.ops-pagination { display:flex; justify-content:flex-end; gap:16px; padding-top:16px; font-size:.85rem; }
.ops-empty { text-align:center; color:#526982; }
.ops-footer { margin-top:24px; }
.ops-auth-main { display:grid; place-items:center; width:100%; padding:24px; }
.ops-auth-main .form-page { width:min(100%,430px); }
.ops-auth-main .form-page .action { width:100%; }
@media(max-width:800px){.ops-layout{grid-template-columns:1fr}.ops-sidebar{gap:14px;padding:15px}.ops-sidebar nav{flex-direction:row;flex-wrap:wrap}.ops-sidebar-foot{flex-direction:row;align-items:center;margin-top:0;flex-wrap:wrap}.ops-main{padding-top:20px}.ops-panel{padding:14px}}

/* Optional analytics preferences. No third-party resources before consent. */
.nfse-consent[hidden] { display:none!important; }
.nfse-consent { position:fixed; bottom:16px; right:16px; z-index:20; width:min(420px,calc(100% - 32px)); padding:18px; border:1px solid #dce5ef; border-radius:12px; background:white; color:#17263e; box-shadow:0 8px 32px #122b4b25; font-size:.88rem; }
.nfse-consent p { margin:7px 0 10px; }
.nfse-consent-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.nfse-consent-actions button { flex:1; font-size:.85rem; padding:9px 12px; }

@media(min-width:801px){.ops-sidebar{position:sticky;top:0;height:100vh;overflow:auto}}

/* Identidade institucional: não altera os controles do fluxo fiscal. */
.site-header { border-bottom-color: #d7e3e6; }
.site-header .brand { color: #153b48; font-size: 1.12rem; letter-spacing: -.025em; white-space: nowrap; }
.site-header .brand-mark { background: #126b69; border-radius: 10px; flex: 0 0 38px; }
.site-header .brand-name strong { color: #126b69; font-weight: 800; }
.site-header nav a.nav-account { min-width: 114px; text-align: center; background: #126b69; border-color: #126b69; color: #fff; }
.site-header nav a.nav-account:hover, .site-header nav a.nav-account:focus-visible { background: #0b5353; color: #fff; border-color: #0b5353; }

.home-hero { background: radial-gradient(ellipse at 100% 0%, #216b72 0, transparent 60%), #123842; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); padding: clamp(24px, 5vw, 62px); }
.home-hero h1 { font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.12; max-width: 20ch; letter-spacing: -.04em; }
.home-kicker { color: #bdece1; font-size: .72rem; font-weight: 750; letter-spacing: .09em; margin: 0 0 1rem; }
.home-hero .lead, .home-hero .hero-note { color: #d8eceb; }
.home-hero .hero-actions a.action { color: #123842; background: #e3f7ef; }
.home-hero .hero-actions a.action:hover { background: #fff; }
.hero-preview { box-shadow: 0 24px 50px #061d2c55; }
.hero-preview .preview-top span { color: #4d6871; }
.home-trust-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); background: #fff; border: 1px solid #d8e4e6; border-radius: 16px; margin-top: 18px; padding: 18px 22px; gap: 12px; }
.home-trust-strip > div { min-width: 0; padding: 4px 14px; }
.home-trust-strip > div + div { border-left: 1px solid #d8e4e6; }
.home-trust-strip strong, .home-trust-strip span { display: block; }
.home-trust-strip strong { color: #17464e; font-size: .98rem; }
.home-trust-strip span { color: #536776; font-size: .85rem; margin-top: 4px; }
.home-trust-strip .trust-security { color: #17464e; font-weight: 700; }
.home-details { margin-top: clamp(2.7rem, 6vw, 4.5rem); }
.home-details h2 { color: #163e4c; }
.home-eyebrow { color: #126b69 !important; letter-spacing: .09em; font-weight: 750; font-size: .75rem; margin-bottom: .55rem !important; }
.home-steps article, .home-audience article { padding: 23px; border: 1px solid #d8e4e6; border-top: 3px solid #4a9f92; border-radius: 12px; background: #fff; }
.home-details article h3 { font-size: 1.13rem; color: #163e4c; }
.home-details article p { max-width: none; }
.home-step { display: inline-block; color: #126b69; font-weight: 800; font-size: 1.5rem; margin-bottom: .75rem; }
.home-section-link { margin-top: 1.15rem !important; max-width: none !important; }
.home-split { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: clamp(20px,5vw,55px); align-items: center; padding: clamp(22px,4vw,42px); background: #eaf2f2; border: 1px solid #d7e3e6; border-radius: 18px; }
.home-split p { margin: 0 0 1rem; }
.home-security-card { background: white; border-radius: 13px; border: 1px solid #d5e4e4; padding: clamp(18px,3vw,28px); }
.home-security-card h3 { margin: 0 0 .75rem; color: #163e4c; }
.home-security-card ul { padding-left: 1.2em; margin: 0 0 1.2em; color: #425e69; }
.home-security-card li + li { margin-top: .5em; }
.home-faq details { padding: 1rem 0; }
.home-faq details p { margin-top: .6rem; }
.home-final { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; background: #123842; color: #fff; border-radius: 18px; padding: clamp(22px,4vw,42px); margin-top: clamp(2.5rem,6vw,4.5rem); }
.home-final h2 { font-size: clamp(1.4rem,3vw,2rem); margin: 0 0 .5rem; }
.home-final p { margin: 0; color: #d8eceb; }
.home-final a.action { background: #e3f7ef; color: #123842; }
.home-final a.action:hover { background: #fff; }
@media (max-width: 760px) {
  .home-hero, .home-split { grid-template-columns: 1fr; }
  .home-hero h1 { max-width: 25ch; }
  .home-trust-strip { grid-template-columns: 1fr; }
  .home-trust-strip > div + div { border-left: 0; border-top: 1px solid #d8e4e6; padding-top: 12px; }
}
@media (max-width: 420px) {
  .site-header nav { gap: 4px; }
  .site-header nav a { padding: 8px 9px; font-size: .86rem; }
  .site-header nav a.nav-account { min-width: 100px; }
  .home-hero { padding: 20px; }
}

/* Keep initial commercial layouts stable while local scripts and extension status load. */
#page-consulta #cnpjField { max-width: none; }
#page-consulta .cnpj-connect-row { display: flex; align-items: stretch; flex-wrap: wrap; gap: 10px; }
#page-consulta .cnpj-connect-row #consultCnpj { width: min(100%, 20rem); min-width: 0; }
#page-consulta .cnpj-connect-row #selectCertBtn { max-width: 100%; white-space: normal; }
@media (max-width: 680px) {
  #page-consulta .cnpj-connect-row { flex-direction: column; }
  #page-consulta .cnpj-connect-row #consultCnpj, #page-consulta .cnpj-connect-row #selectCertBtn { width: 100%; }
}
.consultation-status { min-block-size: 3.9rem; padding-block: .1rem .5rem; }
main .consultation-status .portal { margin: 0; flex-wrap: wrap; white-space: normal; justify-content: flex-start; min-inline-size: 0; }
.consultation-status .portal .dot { flex: 0 0 8px; }
.consultation-status #bridgeNotice { font-size: .8rem; color: #536776; line-height: 1.4; overflow-wrap: anywhere; }
.consultation-status #bridgeNotice[hidden] { display: none !important; }
#page-consulta .consultation-quota { min-block-size: 4.6rem; display: flow-root; }
/* The authorization and entitlement changes must not resize the results toolbar. */
#page-consulta .tools-actions { align-items: stretch; }
#page-consulta #zipBtn, #page-consulta #excelBtn, #page-consulta #selectedZipBtn {
  min-block-size: 3.65rem; justify-content: center; align-items: center;
}
#page-consulta #zipBtn, #page-consulta #excelBtn { flex-direction: column; gap: 0; }
#page-consulta #zipBtn { min-inline-size: 10.5rem; }
#page-consulta #excelBtn { min-inline-size: 10.5rem; }
#page-consulta #zipBtn small, #page-consulta #excelBtn small { font-size: .75em; line-height: 1.4; }
#page-consulta .company-card { min-block-size: 5.1rem; }
#page-consulta #message { min-block-size: 3.1em; }
#page-consulta #selectCertBtn[hidden] { display: inline-flex !important; visibility: hidden; pointer-events: none; }
@media (max-width: 680px) {
  #page-consulta #selectCertBtn[hidden] { display: flex !important; }
  #page-consulta #zipBtn, #page-consulta #excelBtn { min-inline-size: 0; }
}
.faq-search input:disabled { opacity: 1; color: var(--ink); background: var(--surface); }
@media (max-width: 680px) {
  .consultation-status { min-block-size: 6.8rem; }
  main .consultation-status .portal { margin-inline-start: 0; }
  #page-consulta .consultation-quota { min-block-size: 6.8rem; }
}

/* Shared visual language: prose links, secondary navigation and primary actions. */
:root {
  --brand-link: #126b69;
  --brand-link-hover: #0b5353;
  --brand-ink: #163e4c;
  --brand-soft: #eaf4f2;
  --brand-border: #c9dfdc;
  --blue: var(--brand-link);
  --blue-dark: var(--brand-link-hover);
  --navy: var(--brand-ink);
}
a { color: var(--brand-link); font-weight: 600; text-decoration-thickness: 1px; text-decoration-color: #74a6a1; text-underline-offset: .19em; }
a:hover { color: var(--brand-link-hover); text-decoration-color: currentColor; }
:focus-visible { outline-color: #258a83; }
a.link-action, .auth-confirm-back, .ops-pagination a {
  display: inline-flex; align-items: center; gap: .55rem; max-width: 100%;
  min-height: 38px; padding: .48rem .8rem; border: 1px solid var(--brand-border);
  border-radius: 8px; background: var(--surface); color: var(--brand-link);
  font-weight: 650; font-size: .9rem; line-height: 1.35; text-decoration: none;
  overflow-wrap: anywhere;
}
a.link-action::after { content: ""; width: .42em; height: .42em; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); flex: 0 0 .42em; }
a.link-back { flex-direction: row-reverse; }
a.link-back::after { transform: rotate(-135deg); }
a.link-action:hover, .auth-confirm-back:hover, .ops-pagination a:hover {
  background: var(--brand-soft); color: var(--brand-link-hover); border-color: #8cbdb6;
}
.link-group { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.home-hero .hero-actions a.link-action { background: transparent; border-color: #a3c6c5; color: #fff; min-height: 45px; padding: 10px 16px; font-size: 1rem; }
.home-hero .hero-actions a.link-action:hover { background: #ffffff15; color: #fff; border-color: white; }
.hero-benefit { margin: 1.15rem 0 0; padding-inline-start: .85rem; border-inline-start: 3px solid #9cdbcc; }
.hero-benefit strong, .hero-benefit span { display: block; }
.hero-benefit strong { color: #e3f7ef; font-size: .96rem; }
.hero-benefit span { color: #d8eceb; font-size: .88rem; margin-top: .2rem; }
.hero-note { margin-top: .7rem; }
.site-header nav a:not(.nav-account):hover, .site-header nav a:not(.nav-account)[aria-current="page"],
.form-page nav a:hover, .account-sidebar nav a:hover, .account-sidebar nav a[aria-current="page"] {
  background: var(--brand-soft); color: var(--brand-ink);
}
.site-footer { background: #f8fbfa; border-top-color: var(--brand-border); }
.site-footer .footer-inner { gap: 18px 28px; padding-block: 24px 42px; }
.footer-brand { color: var(--brand-ink); font-size: 1rem; letter-spacing: -.02em; font-weight: 400; }
.footer-brand strong { color: var(--brand-link); font-weight: 800; }
.site-footer nav { gap: 4px 8px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 38px; padding: .5rem .65rem; border-radius: 7px; color: #415c63; font-size: .84rem; font-weight: 600; text-decoration: none; }
.site-footer nav a:hover, .site-footer nav a:focus-visible { background: var(--brand-soft); color: var(--brand-link-hover); }
.help-heading { background: linear-gradient(110deg, #eaf4f2, #fff); border-color: var(--brand-border); }
.help-cta { background: #123842; }
.help-cta p { color: #d8eceb; }
.help-cta .action, .help-cta .action:hover { color: var(--brand-ink); }
.guide-number, .auth-confirm-icon, .auth-confirm-email, .auth-consult, .account-avatar { background: var(--brand-soft); }
.price-premium { border-color: #a2c9c3; border-top-color: var(--brand-link); }
.account-plan, .account-plan-premium { background: #f0f7f5; border-color: var(--brand-border); }
.account-plan-link { color: var(--brand-link); border-color: var(--brand-border); }
.account-plan-link:hover { background: var(--brand-soft); }
.ops-brand .brand-mark { background: var(--brand-link); }
.ops-sidebar nav a:hover, .ops-sidebar nav a[aria-current="page"], .ops-sidebar-foot a:hover { background: #27575d; color: white; }
.ops-kpis article { border-top-color: #4a9f92; }
.ops-kpis article strong { color: var(--brand-ink); }
.ops-pagination { flex-wrap: wrap; }
.nfse-consent a { color: var(--brand-link); }
body:has(#page-consulta) { --blue: var(--brand-link); --blue-dark: var(--brand-link-hover); --navy: var(--brand-ink); }
#page-consulta a:not(.primary):not(.secondary), .consultation-status .portal-link { color: var(--brand-link); font-weight: 650; }
#page-consulta .company-card { background: #f0f7f5; border-color: var(--brand-border); }
#page-consulta .secondary:not(:disabled) { background: var(--brand-soft); color: var(--brand-ink); }
#page-consulta .secondary:not(:disabled):hover { background: #d7ebe6; }
@media (max-width: 680px) {
  .site-footer .footer-inner { align-items: flex-start; }
  .site-footer nav { width: 100%; }
  .home-hero .hero-actions { gap: .65rem; }
}

/* Customer detail and grouped administration metrics. */
.ops-detail { max-width: 1120px; }
.ops-detail-heading { margin-top: 22px; }
.ops-detail-heading p:not(.ops-eyebrow) { margin: 5px 0 0; color: #526982; overflow-wrap: anywhere; }
.ops-detail-data { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; margin: 0; }
.ops-detail-data > div { min-width: 0; padding: 14px; background: #f5f8fa; border-radius: 8px; }
.ops-detail-data dt { font-size: .82rem; color: #526982; }
.ops-detail-data dd { margin: 4px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.ops-detail-note { margin-top: 12px; color: #526982; font-size: .86rem; border-bottom: 0; }
.ops-group { margin: 0 0 22px; min-width: 0; }
.ops-group > h2 { font-size: 1.15rem; margin: 0 0 10px; }
.ops-group > .ops-kpis { margin-bottom: 0; }
.ops-group .ops-muted { margin: 0 0 12px; }
.ops-technical { margin: 0 0 18px; border: 1px solid #dce5ef; border-radius: 12px; background: white; padding: 16px; }
.ops-technical > summary { color: var(--brand-ink); }
.ops-technical[open] > summary { margin-bottom: 14px; }
.ops-filter > div { margin: 0; }
.ops-filter .link-action { align-self: end; }

/* Consistent brand hierarchy, without changing the icon or navigation. */
.site-header .brand-name, .ops-brand .brand-name { font-weight: 400; }
.ops-brand .brand-name strong { font-weight: 800; }
.ops-brand .brand-mark { flex: 0 0 38px; }
.ops-brand-light { color: var(--brand-ink); padding: 0; margin: 16px 0; }
.ops-brand-light small { color: #526982; }
.ops-brand-light .brand-name strong { color: var(--brand-link); }
.ops-detail-brand { margin-bottom: 0; }

/* Subscription checkout: reuse the account and plan visual language. */
.billing-panel .billing-summary { margin: 0 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.billing-panel h3 { margin: 0 0 10px; font-size: 1.08rem; color: var(--navy); }
.billing-summary dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0; }
.billing-summary dt { font-size: .8rem; color: var(--muted); }
.billing-summary dd { margin: 3px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.billing-checkout { margin: 18px 0; border: 1px solid var(--brand-border); border-top: 3px solid var(--brand-link); border-radius: 12px; background: var(--surface); }
.billing-checkout .price-value span { font-size: .9rem; font-weight: 500; color: var(--muted); }
.billing-checkout .action { display: inline-flex; justify-content: center; width: 100%; text-align: center; }
.billing-promotion { color: var(--muted); font-size: .88rem; margin: 0 0 8px; overflow-wrap: anywhere; }
.billing-note { color: var(--muted); font-size: .88rem; margin: 12px 0 0; }
.billing-secure { border-top: 1px solid var(--line); padding-top: 12px; }
.billing-benefits { padding-left: 1.25rem; }
.billing-cancel { margin-top: 16px; }
.billing-cancel-button { background: transparent; border: 1px solid var(--line); color: var(--red); width: 100%; }
.billing-cancel-button:hover { background: #fff4f3; }
.billing-charges li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.billing-charges li div { display: grid; gap: 3px; }
.billing-charges li div span, .billing-charge-status, .billing-empty { color: var(--muted); font-size: .88rem; }
@media (max-width: 480px) { .billing-summary dl { grid-template-columns: minmax(0,1fr); } }

/* Password controls: progressive enhancement, no inline scripts. */
.password-input-wrap { position: relative; margin: 0; max-width: 36rem; }
.password-input-wrap input { width: 100%; padding-right: 48px; }
.password-input-wrap .password-toggle { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 40px; height: 36px; padding: 7px; color: var(--brand-ink); background: transparent; border-radius: 7px; }
.password-input-wrap .password-toggle:hover { background: var(--brand-soft); }
.password-toggle svg { width: 21px; height: 21px; }
.password-toggle:focus-visible { outline: 2px solid var(--brand-link); outline-offset: 1px; }
.password-checklist { list-style: none; margin: 8px 0 4px; padding: 0; font-size: .81rem; color: var(--muted); }
.password-checklist li { display: flex; align-items: center; gap: 7px; margin: 4px 0; }
.password-checklist li.is-met, .password-match.is-met { color: #146c43; }
.password-match { margin: 6px 0 0; font-size: .81rem; color: var(--muted); }
.password-match.is-mismatch { color: var(--red); }

.signup-terms { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 4px; }
.signup-terms input[type="checkbox"] { width: 18px; height: 18px; min-width: 18px; margin: 3px 0 0; accent-color: #126b69; }
.signup-terms label { margin: 0; font-size: .85rem; font-weight: 500; line-height: 1.5; }
.signup-terms a { font-weight: 700; }
.signup-terms-note, .policy-version { font-size: .8rem; color: var(--muted); }

/* Confirmation is a separate, deliberate step, with the paid period visible. */
.billing-confirm { max-width: 680px; margin: 0 auto 24px; }
.billing-confirm-check { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; font-weight: 600; }
.billing-confirm-check input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; accent-color: var(--brand-link); }
.billing-confirm-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.billing-confirm-actions > * { flex: 1 1 220px; text-align: center; justify-content: center; min-height: 44px; }
.billing-confirm-actions .billing-cancel-button, a.billing-cancel-link { color: var(--red); border: 1px solid var(--line); border-radius: 8px; }
.billing-confirm-actions .billing-cancel-button { padding: 10px 14px; font-weight: 650; }
.billing-pix-qr { display: block; width: 200px; max-width: 100%; height: auto; margin: 16px auto; border: 1px solid var(--line); border-radius: 8px; }

/* Two purchase options; the existing server-side guards control availability. */
.billing-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; align-items: stretch; }
.billing-options .billing-checkout { margin: 0 0 18px; min-width: 0; }

/* Provider-derived status, separate from purchase options. */
.billing-status-panel { margin: 0 0 24px; padding: clamp(16px, 3vw, 24px); border: 1px solid var(--brand-border); border-left: 4px solid var(--brand-link); border-radius: 12px; background: var(--surface); }
.billing-status-heading { display: flex; align-items: center; gap: 12px; }
.billing-status-heading h3 { margin: 0; }
.billing-status-panel p { margin: 10px 0 0; }
.billing-status-panel .billing-status-amount, .billing-status-detail { color: var(--muted); font-size: .88rem; }
.billing-status-indicator { width: 24px; height: 24px; flex: 0 0 24px; border: 3px solid var(--brand-border); border-top-color: var(--brand-link); border-radius: 50%; animation: billing-status-spin 1.25s linear infinite; }
@keyframes billing-status-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .billing-status-indicator { animation: none; } }

/* Commercial layout: two plans in public; two payment methods in account. */
.pricing-two-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; margin-inline: auto; }
.pricing-two-plans .price-card { padding: clamp(22px, 4vw, 32px); }
.pricing-two-plans .price-value span { font-size: 1rem; font-weight: 500; }
.account-billing-shell { width: min(100%, 1320px); max-width: 1320px; }
.account-billing-shell .account-grid { grid-template-columns: minmax(0, 13.5rem) minmax(0, 1fr); }
.account-billing-shell .billing-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.account-billing-shell .billing-options .billing-checkout { display: flex; flex-direction: column; padding: clamp(18px, 2vw, 26px); }
.account-billing-shell .billing-options .billing-secure { margin-top: auto; }
.password-recovery-shell { max-width: 510px; }
.password-recovery-shell .form-page { padding: clamp(24px, 5vw, 36px); }
.password-recovery-shell h1 { margin: 0; font-size: clamp(1.65rem, 4vw, 2rem); }
.password-recovery-shell .action { width: 100%; margin-top: .65rem; }
.password-recovery-shell .recovery-back { text-align: center; margin: 1.35rem 0 0; }
@media (max-width: 850px) {
  .account-billing-shell .account-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .pricing-two-plans, .account-billing-shell .billing-options { grid-template-columns: minmax(0, 1fr); }
}

/* Administrative workspace: compact controls, readable cells, local overflow. */
.ops-main { padding: 24px clamp(16px, 2.2vw, 32px); }
.ops-panel { padding: clamp(14px, 1.7vw, 22px); }
.ops-main > *, .ops-columns > *, .ops-detail-history > * { min-width: 0; }
.ops-meta { flex-wrap: wrap; }
.ops-sidebar nav a { line-height: 1.35; }
.ops-toolbar { display:flex; align-items:flex-end; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.ops-toolbar form { margin:0; }
.ops-toolbar .ops-search { flex:1 1 300px; }
.ops-toolbar .ops-search > div { flex:1 1 170px; min-width:0; }
.ops-toolbar .ops-search input { width:100%; min-width:0; }
.ops-toolbar .ops-filter > div { display:flex; flex-direction:column; gap:5px; }
.ops-toolbar .ops-filter label { margin:0; }
.ops-toolbar .ops-filter button,.ops-clear button { white-space:nowrap; }
.ops-table { max-width:100%; }
.ops-table table { table-layout:auto; width:100%; font-size:.84rem; }
.ops-table td,.ops-table th { padding:12px 14px; overflow-wrap:normal; word-break:normal; }
.ops-table td { white-space:nowrap; font-variant-numeric:tabular-nums; }
.ops-table td:first-child,.ops-table td:has(details) { white-space:normal; overflow-wrap:anywhere; min-width:140px; }
.ops-table td:has(.ops-tag) { white-space:normal; }
.ops-table td small { white-space:normal; overflow-wrap:anywhere; }
.ops-table .ops-tag { white-space:nowrap; word-break:normal; overflow-wrap:normal; }
.ops-table .ops-table-users { min-width:780px; }
.ops-table .ops-table-users td:first-child { width:32%; min-width:190px; }
.ops-table .ops-table-payments { min-width:850px; }
.ops-table .ops-table-audit td:nth-child(3),.ops-table .ops-table-audit td:last-child { white-space:normal; overflow-wrap:anywhere; }
.ops-table .ops-row-actions { min-width:130px; }
.ops-table .ops-row-actions .link-action { white-space:nowrap; }
.ops-row-actions form { margin:5px 0 0; }
.ops-tag-good { background:#e6f4eb; color:#17663d; }
.ops-tag-warn { background:#fff2d9; color:#80500b; }
.ops-tag-bad { background:#f9e6e4; color:#8d2520; }
.ops-table tbody tr:hover { background:#f8fbfa; }
.ops-detail { max-width:1280px; }
.ops-detail-heading > div { min-width:0; }
.ops-detail-heading h1 { overflow-wrap:anywhere; }
.ops-detail-history { display:grid; grid-template-columns:minmax(0,1fr); gap:0; }
.ops-offers { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:14px; }
.ops-offers article { display:flex; flex-direction:column; gap:8px; min-width:0; border:1px solid #dce5ef; border-radius:12px; padding:16px; }
.ops-offers header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.ops-offers h3 { margin:0; font-size:1rem; }
.ops-offers .ops-price { color:var(--brand-ink); font-size:1.45rem; font-variant-numeric:tabular-nums; }
.ops-offers small { color:#526982; }
.ops-offers .link-action { align-self:flex-start; margin-top:auto; }
@media(max-width:600px) { .ops-toolbar .ops-search { flex-basis:100%; } .ops-sidebar nav a { padding:8px 10px; } .ops-table td,.ops-table th { padding:10px 12px; } }

/* Final admin review: headings, readable dates and compact supporting text. */
.ops-panel-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin:0 0 12px; }
.ops-panel-heading h2 { margin:0; }
.ops-analytics p { margin:8px 0; }
.ops-table td:first-child { white-space:nowrap; overflow-wrap:normal; min-width:0; }
.ops-table .ops-table-users td:first-child,.ops-table .ops-table-payments td:first-child,.ops-table .ops-table-support td:first-child { white-space:normal; overflow-wrap:anywhere; min-width:150px; }
.ops-table td:has(details) { white-space:normal; overflow-wrap:anywhere; }
.ops-table td:has(.ops-tag) { white-space:normal; }
.ops-table .ops-table-users td:first-child { min-width:190px; }
.ops-table:focus-visible { outline:2px solid var(--brand-link); outline-offset:2px; }
.ops-detail-note summary { cursor:pointer; }
.ops-detail-note[open] { margin-bottom:16px; }

/* Prepaid plans: compare the amount actually charged, without monthly averages. */
.prepaid-pricing { width:min(100%, 1440px); }
.prepaid-comparison { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; align-items:stretch; }
.prepaid-comparison .price-card { padding:16px; min-width:0; border-top:3px solid var(--brand-link); }
.prepaid-comparison .prepaid-free { border-top-color:var(--line); }
.prepaid-comparison .price-card h2 { font-size:1.18rem; margin:0 0 5px; }
.prepaid-period-card .price-value { font-size:clamp(1.15rem,1.8vw,1.65rem); font-variant-numeric:tabular-nums; margin:10px 0 2px; white-space:nowrap; letter-spacing:-.035em; }
.prepaid-period-card .prepaid-no-price { white-space:normal; font-size:1rem; }
.prepaid-duration,.prepaid-price-caption { margin:0; font-size:.85rem; color:var(--muted); }
.prepaid-discount { min-height:2.75rem; margin:8px 0; font-size:.8rem; }
.prepaid-discount span { display:inline-block; padding:4px 7px; border-radius:6px; background:#e5f3ed; color:#17663d; font-weight:700; }
.prepaid-discount small { display:block; color:var(--muted); }
.prepaid-comparison .prepaid-benefits { font-size:.86rem; margin:8px 0 20px; padding-inline-start:1.05rem; }
.prepaid-comparison .action { width:100%; justify-content:center; text-align:center; font-size:.86rem; padding:10px 8px; }
.prepaid-unavailable { margin-top:auto; text-align:center; color:var(--muted); font-size:.85rem; }
.prepaid-common { margin:18px 0 24px; text-align:center; font-size:.9rem; }
.prepaid-common p { margin:5px 0; }
.prepaid-account .billing-panel { min-width:0; }
.prepaid-account .billing-options.prepaid-period-grid { margin:14px 0; grid-template-columns:repeat(2,minmax(0,1fr)); }
.prepaid-account .prepaid-period-card { padding:16px; min-width:0; }
.prepaid-account .prepaid-period-card form .action { display:block; width:100%; margin-top:8px; }
.prepaid-account .prepaid-period-card .signup-terms { font-size:.84rem; align-items:start; }
.prepaid-account .prepaid-period-card input[type=checkbox] { width:auto; }
.prepaid-account .prepaid-account-section,.prepaid-account .prepaid-history h2 { margin:24px 0 8px; font-size:1.15rem; }
.prepaid-payment-notice { background:#f3f7f6; border-radius:8px; padding:12px; font-size:.88rem; }
.prepaid-history { border-top:1px solid var(--line); margin-top:24px; }
.prepaid-history p { padding:10px 0; margin:0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
@media(max-width:950px) { .prepaid-comparison { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:650px) { .prepaid-comparison { grid-template-columns:repeat(2,minmax(0,1fr)); } .prepaid-account .billing-options.prepaid-period-grid { grid-template-columns:minmax(0,1fr); } }
@media(max-width:400px) { .prepaid-comparison { grid-template-columns:minmax(0,1fr); } }

.prepaid-account .billing-options .prepaid-period-card { display:flex; flex-direction:column; }
.prepaid-account .prepaid-period-card form { display:flex; flex-direction:column; margin-top:auto; }
.prepaid-account .prepaid-payment-actions { display:grid; gap:10px; margin-top:14px; }
.prepaid-account .prepaid-payment-actions .action { margin:0; min-height:44px; padding:9px 7px; font-size:.8rem; line-height:1.3; }
.prepaid-account .prepaid-contract { color:var(--muted); font-size:.85rem; margin:12px 0; }
.prepaid-account .prepaid-period-card .signup-terms { display:flex; gap:8px; min-height:44px; margin:8px 0 0; }
.prepaid-account .prepaid-period-card .signup-terms label { line-height:1.4; font-size:.8rem; }
.prepaid-account .prepaid-period-card .signup-terms input { flex:none; margin-top:3px; }
.prepaid-pending-message { display:flex; align-items:center; gap:10px; }
.prepaid-pending-message .billing-status-indicator { flex:none; display:inline-block; }
.prepaid-test-notice { background:#fff4dc; color:#704a08; border-radius:8px; padding:10px 12px; }
.prepaid-payment-step { max-width:680px; margin:24px auto; }
.prepaid-account .prepaid-card-pending { max-width:none; margin:24px 0; }
.prepaid-card-pending-actions { display:flex; flex-wrap:wrap; align-items:stretch; gap:12px; }
.prepaid-card-pending-actions form, .prepaid-card-pending-actions .action { margin:0; }
.prepaid-card-pending-actions .action { min-height:44px; text-align:center; white-space:normal; height:100%; }
@media(max-width:600px) {
  .prepaid-card-pending-actions { flex-direction:column; }
  .prepaid-card-pending-actions .action { width:100%; }
}
.prepaid-pending-card { margin:16px 0; padding:20px; }
.prepaid-pending-card header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; border-bottom:1px solid var(--line); padding-bottom:12px; }
.prepaid-pending-card header h3 { margin:0; }
.prepaid-payment-total { font-size:1.45rem; color:var(--brand-ink); white-space:nowrap; }
.prepaid-pending-label { font-weight:650; color:#80500b; }
.prepaid-pix-content { display:grid; grid-template-columns:220px minmax(0,1fr); gap:16px; align-items:center; }
.prepaid-pix-content img { max-width:100%; height:auto; display:block; margin:auto; }
.prepaid-pix-content textarea { width:100%; min-width:0; resize:vertical; overflow-wrap:anywhere; }
@media(max-width:650px) { .prepaid-pix-content { grid-template-columns:minmax(0,1fr); } }
/* Shared wide account shell, compact navigation and four aligned plans. */
@media(min-width:1200px) {
  .prepaid-account .billing-options.prepaid-period-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
  .prepaid-account .prepaid-period-card { padding:14px; }
  .prepaid-account .prepaid-period-card .price-value { font-size:1.4rem; }
}
.prepaid-account .prepaid-payment-actions .action { font-size:.82rem; min-height:52px; text-align:center; white-space:normal; }
.prepaid-current-pix { margin:18px 0; padding:18px; }
.prepaid-current-pix textarea { width:100%; max-width:100%; }
.prepaid-current-pix img { width:180px; max-width:100%; height:auto; }
@media(max-width:850px) { .account-grid { grid-template-columns:minmax(0,1fr); } }


.prepaid-pix-header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; border-bottom:1px solid var(--line); padding-bottom:12px; }
.prepaid-pix-header h3,.prepaid-pix-header p { margin:0; }
.prepaid-pix-clock { display:flex; flex-direction:column; align-items:center; gap:4px; background:#f3f7f6; padding:16px; border-radius:10px; margin:16px 0; }
.prepaid-pix-clock strong { font-size:2rem; font-variant-numeric:tabular-nums; color:var(--brand-ink); }
.prepaid-pix-clock small { color:var(--muted); }
.prepaid-current-pix [hidden] { display:none !important; }
.prepaid-current-pix [data-pix-copy-status] { display:block; margin-top:8px; }
.prepaid-pix-summary { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; padding:16px; background:#f3f7f6; border-radius:8px; }
.prepaid-pix-summary dt { color:var(--muted); }
.prepaid-pix-summary dd { margin:0; text-align:right; font-weight:650; overflow-wrap:anywhere; }
.prepaid-pix-buttons { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:12px; margin-top:18px; }
.prepaid-pix-buttons .action { margin:0; }

/* Native dialog: focus stays inside, Escape closes without a payment. */
.prepaid-pix-dialog { width:min(480px,calc(100% - 32px)); max-height:calc(100% - 32px); margin:auto; padding:0; border:0; border-radius:16px; box-shadow:0 20px 70px rgba(0,0,0,.24); background:#fff; color:var(--text); overflow:auto; }
.prepaid-pix-dialog::backdrop { background:rgba(15,29,36,.55); }
.prepaid-pix-dialog .prepaid-payment-step { margin:0; padding:24px; border:0; box-shadow:none; }
.prepaid-pix-confirm-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.prepaid-pix-confirm-heading h1 { font-size:1.35rem; margin:0; }
.prepaid-pix-dismiss { border:0; background:transparent; color:var(--muted); font-size:1.7rem; line-height:1; padding:8px; cursor:pointer; }
.prepaid-pix-dismiss[hidden] { display:none; }
.prepaid-pix-dialog .prepaid-pix-buttons { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; }
.prepaid-pix-dialog .prepaid-pix-buttons .link-action { display:flex; align-items:center; justify-content:center; padding:10px; border:1px solid var(--line); border-radius:8px; }
@media(max-width:400px) { .prepaid-pix-dialog .prepaid-payment-step { padding:18px; } }

/* Contract links target the account overview, not an individual plan.
   Native anchor fallback; JS uses the measured sticky header height. */
.prepaid-account #visao-premium { scroll-margin-top: 100px; }
@media (max-width: 650px) {
  .prepaid-account #visao-premium { scroll-margin-top: 175px; }
}

/* Shown only after a previously authenticated session has ended. */
.session-ended-notice { margin: 0 auto; max-width: 1100px; padding: 10px 16px; font-size: .875rem; color: #713f12; background: #fff7df; border: 1px solid #f5d68c; border-radius: 8px; }

.profile-security { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
.profile-security form { max-width: 36rem; }
.account-usage { border: 1px solid var(--brand-border, var(--line)); border-radius: 12px; padding: 16px 20px; margin: 0 0 24px; background: #f7faf9; }
.account-usage .account-quota { border-top: 0; padding-top: 0; }
.preview-kind { color: var(--muted); font-size: .78rem; }

/* A single accessible OTP input with six visual slots; plain field without JS. */
.ops-totp-enhanced { position:relative; width:100%; margin:4px 0 16px; }
.ops-totp-slots { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; }
.ops-totp-slot { display:grid; place-items:center; aspect-ratio: .84; border:1px solid #b8c8d8; border-radius:9px; background:#fff; color:#18334e; font:600 clamp(1.15rem, 5vw, 1.65rem)/1 monospace; }
.ops-totp-enhanced:focus-within .ops-totp-slot.is-current { border-color:#2563a0; outline:2px solid #2563a0; outline-offset:1px; }
.ops-totp-enhanced input { position:absolute; inset:0; width:100%; height:100%; opacity:0; margin:0; cursor:text; }
.ops-totp-enhanced:focus-within .ops-totp-slots { outline:1px solid transparent; }
@media (max-width:380px) { .ops-totp-slots { gap:5px; } }

/* Keep shared chrome stable across short and long pages and session resolution. */
html { scrollbar-gutter: stable; }
.site-header nav a.nav-account { width: 114px; flex: 0 0 114px; white-space: nowrap; }
.site-header nav a[data-session-pending] { visibility: hidden; }
/* Leave noscript's native visibility intact: forcing display renders raw markup with JS enabled. */
.site-header nav:has(noscript a) a[data-session-pending] { display: none; }
@media (max-width: 420px) {
  .site-header nav a.nav-account { width: 114px; min-width: 114px; flex-basis: 114px; }
}

/* Home Excel and plans: use the available space without inheriting split layout. */
.home-excel, .home-plans { min-width: 0; max-width: 100%; }
.home-excel > .lead, .home-excel > .home-excel-note { max-width: none; }
.home-excel > .lead { margin: 0 0 1.25rem; }
.home-excel > .home-excel-note { margin: 1rem 0 0; font-size: .9rem; }
.home-excel .home-audience { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-excel .home-audience > article, .home-plans-grid > article { min-width: 0; overflow-wrap: anywhere; }
.home-plans { display: block; padding: clamp(22px,4vw,42px); background: #eaf2f2; border: 1px solid #d7e3e6; border-radius: 18px; }
.home-plans h2 { margin: 0 0 1.25rem; }
.home-plans-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.home-plans-grid > article { padding: clamp(16px,2.5vw,23px); border: 1px solid #d5e4e4; border-radius: 12px; background: #fff; }
.home-plans-grid > article:last-child { border-top: 3px solid #4a9f92; }
.home-plans-grid > article p + p { margin-top: .75rem; }
.home-plans .link-action { margin-top: 1.15rem; }
@media (max-width: 760px) {
  .home-excel .home-audience, .home-plans-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Support conversations reuse the administrative cards and action styles. */
.support-conversation { max-width: 900px; overflow-wrap:anywhere; }
.support-conversation textarea { width:100%; max-width:100%; resize:vertical; }
.support-message { border:1px solid #dce5ef; border-radius:9px; padding:14px; margin:12px 0; background:#f5f7fa; }
.support-message-outgoing { background:#f0f7f5; border-color:#cce1dc; }
.support-message header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; }
.support-message header small { color:#526982; font-size:.82rem; }
.support-message p { margin:10px 0 0; white-space:normal; overflow-wrap:anywhere; }
.support-close { margin-top:14px; }

/* Public visual polish: static, accessible illustrations in the brand palette. */
.home-details { min-width: 0; }
.home-steps > article, .home-audience > article { min-width: 0; overflow-wrap: anywhere; }
.visual-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; background: #e8f4f0; color: #126b69; border-radius: 11px; }
.home-step-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: .85rem; }
.home-step-top .home-step { margin: 0; font-size: .95rem; color: #527876; }
.home-excel .home-audience .visual-icon, .visual-help-card > .visual-icon { margin-bottom: .85rem; }
.excel-preview { margin: 0 0 18px; min-width: 0; padding: clamp(16px, 3vw, 26px); border: 1px solid #d5e4e4; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px #16365d08; }
.excel-preview-header, .excel-preview-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.excel-preview-header { justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.excel-preview-heading strong { display: block; color: #163e4c; font-size: 1.05rem; }
.excel-preview-heading span:not(.visual-icon), .excel-preview-tag { color: #536776; font-size: .8rem; }
.excel-preview-tag { border: 1px solid #d5e4e4; border-radius: 6px; padding: 4px 8px; }
.excel-preview-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.excel-preview-metrics > div { min-width: 0; background: #f0f7f5; border: 1px solid #e0ebe8; border-radius: 9px; padding: clamp(9px, 2vw, 15px); }
.excel-preview-metrics span { display: block; color: #536776; font-size: .78rem; }
.excel-preview-metrics strong { display: block; color: #163e4c; font-size: clamp(.9rem, 2vw, 1.35rem); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.excel-preview-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 14px; }
.excel-preview-table, .excel-preview-chart { min-width: 0; padding: 12px; border: 1px solid #dbe8e5; border-radius: 9px; }
.excel-preview-body strong { display: block; margin-bottom: 8px; color: #163e4c; font-size: .88rem; }
.excel-preview-table table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .8rem; }
.excel-preview-table th, .excel-preview-table td { text-align: left; padding: 7px 4px; border-bottom: 1px solid #e3ecea; overflow-wrap: anywhere; }
.excel-preview-table th { background: #eef6f3; color: #285b58; }
.excel-preview-table th:first-child { width: 20%; }
.excel-preview-table th:last-child { width: 35%; }
.excel-preview-table td:last-child, .excel-preview-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.excel-preview-chart svg { display: block; width: 100%; max-height: 168px; }
.excel-chart-axis { fill: #526776; font: 10px system-ui, sans-serif; }
.excel-preview figcaption { margin-top: 12px; color: #536776; font-size: .78rem; }
.home-security { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 34px); align-items: stretch; }
.home-security-copy, .home-security-card { min-width: 0; }
.home-security-copy > p:not(.home-eyebrow) { max-width: none; margin-bottom: 1rem; }
.home-security-card { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.home-security-card ul { width: 100%; }
.home-security a.link-action { max-width: 100%; white-space: normal; }
.security-visual { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); align-items: center; gap: 9px; margin: 0 0 1rem; padding: 12px; border: 1px solid #cbdeda; border-radius: 12px; background: #f7fbfa; }
.security-visual > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.security-visual .visual-icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 8px; }
.security-visual .visual-icon svg { width: 20px; height: 20px; }
.security-visual strong, .security-visual small { display: block; overflow-wrap: anywhere; }
.security-visual strong { font-size: .85rem; color: #163e4c; }
.security-visual small { font-size: .75rem; color: #536776; }
.security-visual-arrow { width: 24px; height: 24px; color: #126b69; }
.visual-help-card h2 { color: #163e4c; }
@media (max-width: 900px) {
  .home-security { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .excel-preview-body { grid-template-columns: minmax(0, 1fr); }
  .excel-preview-metrics { gap: 6px; }
  .security-visual > div { flex-direction: column; align-items: flex-start; }
}
