/* ITAPREVI · Portal do Servidor (login, recuperação de senha, cadastro) */
@layer sections {
  .portal .related { display: none; }
  .auth { position: relative; overflow: hidden; margin-top: calc(var(--a11y-h) * -1); min-height: 100vh; padding: calc(var(--a11y-h) + var(--hdr-h) + clamp(36px, 5vw, 70px)) 0 clamp(60px, 7vw, 100px);
    background: #0B1E3B; }
  .auth::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
  .auth-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 6vw, 96px); align-items: start; }

  /* lado da marca */
  .auth-side { position: relative; padding-top: 8px; color: #fff; }
  .auth-back { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); text-decoration: none; font-size: .9375rem; }
  .auth-back .ico { transform: rotate(180deg); width: 18px; height: 18px; }
  .auth-back:hover { color: #fff; }
  .auth-eyebrow { display: flex; align-items: center; gap: 10px; margin-top: 34px; font-family: var(--font-display); font-weight: 640; font-size: 1rem; color: var(--sky-on-dark); }
  .auth-side-t { margin-top: 16px; font-size: clamp(2.2rem, 3.8vw, 3.6rem); line-height: 1.02; max-width: 13ch; }
  .auth-side-t em { color: var(--sky-on-dark); font-weight: 560; }
  .auth-perks { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 10px; max-width: 440px; }
  .auth-perks li { display: flex; gap: 14px; align-items: center; padding: 12px 14px 12px 12px; border-radius: 20px; background: #12294D; border: 1px solid #1F3A63; font-size: .9375rem; color: var(--fg-2); line-height: 1.35; }
  .auth-perks b { display: block; color: #fff; font-family: var(--font-display); font-weight: 640; font-size: 1.0313rem; }
  .auth-safe { display: flex; gap: 10px; align-items: flex-start; margin-top: 26px; max-width: 440px; font-size: .875rem; color: var(--fg-3); }
  .auth-safe .ico { width: 20px; height: 20px; color: var(--sky-on-dark); flex: none; }
  .auth-orbit { position: absolute; right: -40px; top: 40px; width: 260px; height: 260px; pointer-events: none; opacity: .9; }
  .auth-orbit img { position: absolute; left: 32%; top: 18%; width: 36%; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
  .ao-wrap { position: absolute; inset: 0; transform: rotate(-24deg); }
  .ao-ring { position: absolute; inset: 22% -4%; border: 2px solid rgba(195,200,208,.55); border-radius: 50%; }
  .ao-ring.r2 { inset: 30% 6%; border: 1px dashed rgba(255,255,255,.18); transform: rotate(-24deg); }
  .ao-dot { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 8px rgba(243,154,44,.18); offset-path: ellipse(54% 28% at 50% 50%); offset-anchor: 50% 50%; left: 0; top: 0; margin: 0; offset-rotate: 0deg; animation: aoRun 9s linear infinite; }
  @keyframes aoRun { to { offset-distance: 100%; } }

  /* cartão do formulário */
  .auth-card { position: relative; min-width: 0; padding: clamp(24px, 3vw, 40px); border-radius: 34px; background: #fff; color: var(--ink); box-shadow: 0 60px 100px -40px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.4); --fg: var(--ink); --fg-2: var(--ink-2); --fg-3: var(--ink-3); }
  .auth-pre { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 20px; padding: 10px 12px; border-radius: 14px; background: #FFF6EA; color: #7A4A0E; font-size: .8125rem; line-height: 1.4; }
  .auth-pre .ico { width: 18px; height: 18px; flex: none; color: #C46B07; }
  .auth-t { font-size: clamp(2.2rem, 3.4vw, 3rem); letter-spacing: -.04em; }
  .auth-lead { margin-top: 8px; color: var(--ink-2); }
  .auth-form { display: grid; gap: 18px; margin-top: 24px; }
  .auth-form[hidden] { display: none; }

  .aseg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0; padding: 4px; border: 0; border-radius: 16px; background: var(--paper-2); }
  .aseg label { position: relative; display: grid; place-items: center; min-height: 44px; padding: 4px 8px; border-radius: 12px; font-weight: 700; font-size: .9063rem; text-align: center; line-height: 1.2; color: var(--ink-2); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
  .aseg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
  .aseg label:has(input:checked) { background: #fff; color: var(--ink); box-shadow: 0 6px 14px -8px rgba(7,19,39,.4), 0 0 0 1px var(--line); }
  .aseg label:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 2px; }

  .fld { display: grid; gap: 7px; min-width: 0; }
  .fld label, .fld-row label { font-weight: 700; font-size: .9375rem; }
  .fld label small { font-weight: 500; color: var(--ink-3); }
  .fld-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .fld-row a, .auth-help a { color: var(--brand); font-weight: 700; font-size: .9063rem; }
  .auth .fld-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
  .inp { position: relative; display: flex; align-items: center; height: 56px; padding: 0 6px 0 16px; gap: 10px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper-2); transition: border-color .2s, box-shadow .2s, background .2s; }
  .inp:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(10,108,192,.14); }
  .inp > .ico { width: 20px; height: 20px; color: var(--ink-3); }
  .inp .ic-d { display: none; }
  .inp input { flex: 1; width: 100%; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 1.0625rem; color: var(--ink); }
  .inp input::placeholder { color: var(--ink-3); opacity: .8; }
  .eye { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); }
  .eye:hover { background: var(--paper-3); }
  .eye .ico { width: 20px; height: 20px; }
  .fld.bad .inp, .otp.bad input { border-color: #C0392B; background: #FFF6F5; }
  .err { color: #B42318; font-size: .8438rem; font-weight: 600; }
  .err[hidden] { display: none; }

  .auth-go, .wiz-nav .btn-sun { position: relative; width: 100%; }
  .btn.loading { color: transparent !important; pointer-events: none; }
  .btn.loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; border: 2.5px solid var(--sun-ink); border-right-color: transparent; animation: spin .7s linear infinite; }
  .auth-msg { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: #EAF3FC; color: var(--ink); font-size: .9375rem; line-height: 1.45; animation: rise .4s var(--ease); }
  .auth-msg[hidden] { display: none; }
  .auth-msg a { color: var(--brand); font-weight: 700; }
  .auth-or { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; color: var(--ink-3); font-size: .875rem; font-weight: 700; }
  .auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
  .auth-alt { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 14px; border-radius: 20px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-size: .875rem; color: var(--ink-2); transition: border-color .2s, transform .3s var(--ease), box-shadow .3s; }
  .auth-alt b { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 660; font-size: 1.0625rem; }
  .auth-alt .go { margin-left: auto; width: 22px; height: 22px; color: var(--ink); }
  .auth-alt:hover { border-color: var(--sun); transform: translateY(-2px); box-shadow: var(--sh-ui); }
  .auth-help { margin-top: 20px; text-align: center; color: var(--ink-3); font-size: .9063rem; }

  /* etapas */
  .steps { list-style: none; display: flex; gap: 6px; margin: 22px 0 0; padding: 0; counter-reset: s; }
  .steps li { flex: 1; display: grid; justify-items: center; gap: 6px; min-width: 0; text-align: center; color: var(--ink-3); font-size: .75rem; font-weight: 700; line-height: 1.15; }
  .steps i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-style: normal; font-family: var(--font-display); font-size: .9375rem; background: var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--line); transition: background .3s, color .3s, box-shadow .3s, transform .4s var(--ease); }
  .steps li.on { color: var(--ink); }
  .steps li.on i { background: var(--sun); color: var(--sun-ink); box-shadow: 0 0 0 5px rgba(243,154,44,.2); transform: scale(1.08); }
  .steps li.ok i { background: var(--brand); color: #fff; box-shadow: none; font-size: 0; }
  .steps li.ok i::after { content: ""; width: 12px; height: 7px; margin-top: -3px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
  .prog { height: 6px; margin-top: 16px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
  .prog i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-sky), var(--sun)); transform-origin: 0 50%; transform: scaleX(.2); transition: transform .6s var(--ease); }
  .wstep { display: grid; gap: 16px; min-width: 0; }
  .wstep[hidden] { display: none; }
  .step-t { font-size: 1.5rem; letter-spacing: -.025em; }
  .step-t:focus { outline: none; }
  .step-l { margin-top: -8px; color: var(--ink-2); font-size: .9688rem; }
  .opt-cards { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
  .opt-cards label { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; border-radius: 20px; border: 1.5px solid var(--line); background: #fff; font-size: .875rem; color: var(--ink-2); line-height: 1.35; cursor: pointer; transition: border-color .2s, background .2s, transform .3s var(--ease), box-shadow .3s; }
  .opt-cards label b { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 660; font-size: 1.0625rem; }
  .opt-cards input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
  .opt-cards label:hover { transform: translateY(-2px); box-shadow: var(--sh-ui); }
  .opt-cards label:has(input:checked) { border-color: var(--sun); background: #FFF8EE; box-shadow: 0 0 0 4px rgba(243,154,44,.16); }
  .opt-cards label:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 2px; }
  .opt-cards.bad label { border-color: #E4A49C; }
  .otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .otp input { width: 100%; height: 62px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper-2); text-align: center; font-family: var(--font-display); font-weight: 680; font-size: 1.6rem; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s, transform .25s var(--ease); }
  .otp input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(10,108,192,.14); transform: translateY(-2px); }
  .otp.full input { border-color: var(--ok); }
  .resend { font-size: .9063rem; color: var(--ink-3); }
  .resend b { color: var(--ink); font-variant-numeric: tabular-nums; }
  .linkbtn { padding: 0; border: 0; background: none; color: var(--brand); font-weight: 700; text-decoration: underline; }
  .hint-demo { font-size: .8125rem; color: #7A4A0E; }
  .meter { margin-top: -6px; }
  .mbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .mbar i { height: 5px; border-radius: 4px; background: var(--paper-3); transition: background .3s; }
  .meter[data-lvl="1"] .mbar i:nth-child(-n+1) { background: #D9534F; }
  .meter[data-lvl="2"] .mbar i:nth-child(-n+2) { background: #F0AD4E; }
  .meter[data-lvl="3"] .mbar i:nth-child(-n+3) { background: #5BB2E8; }
  .meter[data-lvl="4"] .mbar i { background: var(--ok); }
  .meter ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: .8125rem; color: var(--ink-3); }
  .meter li { display: flex; gap: 6px; align-items: center; }
  .meter li::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .25s, box-shadow .25s; }
  .meter li.ok { color: var(--ok); font-weight: 700; }
  .meter li.ok::before { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat; box-shadow: none; }
  .check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; color: var(--ink-2); cursor: pointer; }
  .check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
  .check a { color: var(--brand); font-weight: 700; }
  .check.bad { color: #B42318; }
  .wiz-nav { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 6px; }
  .wiz-nav [data-back][hidden] { display: none; }
  .wiz-nav [data-back][hidden] + .btn { grid-column: 1 / -1; }
  .wiz-nav .btn-line { --fg: var(--ink); }
  .done { justify-items: center; text-align: center; padding: 24px 0 6px; }
  .done-ic { position: relative; display: grid; place-items: center; width: 110px; height: 110px; }
  .done-ic::before { content: ""; position: absolute; inset: 14px -10px; border: 2px solid var(--orbit); border-radius: 50%; transform: rotate(-24deg); animation: spin 14s linear infinite; }
  .done-ic .appic { --sz: 76px; }
  .sum { list-style: none; width: 100%; margin: 4px 0 8px; padding: 6px 14px; border-radius: 18px; background: var(--paper-2); text-align: left; }
  .sum li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
  .sum li:last-child { border-bottom: 0; }
  .sum span { color: var(--ink-3); }
  .sum b { overflow-wrap: anywhere; text-align: right; }

  @media (max-width: 960px) {
    .auth-grid { grid-template-columns: minmax(0, 1fr); }
    .auth-card { order: -1; }
    .auth-side { padding-top: 0; }
    .auth-back { display: none; }
    .auth-eyebrow { margin-top: 6px; }
    .auth-orbit { display: none; }
  }
  @media (max-width: 720px) {
    .auth { padding-top: calc(var(--a11y-h) + var(--hdr-h) + 20px); }
    .auth-card { padding: 20px 16px 22px; border-radius: 26px; }
    .auth .fld-pair { grid-template-columns: minmax(0, 1fr); }
    .steps span { display: none; }
    .steps li.on span { display: block; position: absolute; left: -9999px; }
    .otp { gap: 6px; }
    .otp input { height: 54px; font-size: 1.35rem; border-radius: 13px; }
    .meter ul { grid-template-columns: 1fr; }
    .auth-side-t { font-size: 2rem; }
  }
}

/* acesso de demonstração */
@layer sections {
  .demo-box { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 12px 12px 12px; border-radius: 18px; background: #FFF6EA; border: 1.5px solid #F6C27F; font-size: .9375rem; color: var(--ink-2); line-height: 1.35; }
  .demo-box b { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 660; }
  .demo-box strong { color: var(--ink); font-weight: 800; white-space: nowrap; }
  .demo-fill { margin-left: auto; flex: none; height: 40px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 700; font-size: .875rem; }
  .demo-fill:hover { background: var(--brand-deep); }
  .auth-msg.bad { background: #FFF1F0; }
}

/* painel do servidor (demonstração) */
@layer sections {
  .pn { margin-top: calc(var(--a11y-h) * -1); padding: calc(var(--a11y-h) + var(--hdr-h) + 36px) 0 clamp(64px, 8vw, 110px); background: var(--paper-2); min-height: 100vh; }
  .pn-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
  .pn-hello { display: flex; align-items: center; gap: 18px; min-width: 0; }
  .pn-av { position: relative; flex: none; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-display); font-size: 1.6rem; }
  .pn-av::before { content: ""; position: absolute; inset: 18px -14px; border: 2px solid var(--orbit); border-radius: 50%; transform: rotate(-24deg); }
  .pn-av i { position: absolute; right: 2px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px var(--paper-2); }
  .pn-eyebrow { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand); font-size: .9375rem; }
  .pn-eyebrow .ico { width: 18px; height: 18px; }
  .pn-eyebrow .ic-d { display: none; }
  .pn-hello h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -.04em; }
  .pn-sub { margin-top: 4px; color: var(--ink-2); font-size: 1.0625rem; }
  .pn-actions { display: flex; gap: 10px; }
  .pn-actions .btn { --bh: 50px; }
  .pn-demo { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 12px 16px; border-radius: 16px; background: #FFF6EA; border: 1.5px solid #F6C27F; color: #6A3F08; font-size: .9688rem; }
  .pn-demo .ico { width: 20px; height: 20px; flex: none; color: #C46B07; margin-top: 1px; }
  .pn-tabs { display: flex; gap: 10px; margin-top: 22px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .pn-tabs::-webkit-scrollbar { display: none; }
  .pn-tabs a { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px 0 8px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem; transition: border-color .2s, transform .3s var(--ease); }
  .pn-tabs a:hover { border-color: var(--brand); transform: translateY(-2px); }
  .pn-tabs .appic { --sz: 38px; }
  .pn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
  .pn-card { display: flex; flex-direction: column; gap: 18px; padding: 22px; border-radius: 28px; background: #fff; border: 1.5px solid var(--line); scroll-margin-top: calc(var(--hdr-h) + 20px); min-width: 0; }
  .pc-pay { grid-column: span 2; }
  .pc-head { display: flex; align-items: center; gap: 14px; }
  .pc-head .appic { --sz: 52px; }
  .pc-head h2 { font-size: 1.375rem; letter-spacing: -.02em; }
  .pc-head p { color: var(--ink-2); font-size: .9688rem; }
  .pc-head .tag { margin-left: auto; }
  .tag { flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 99px; font-size: .8438rem; font-weight: 800; }
  .tag.ok { background: #E3F4EA; color: #0E6B3B; }
  .tag.wait { background: #FFF1DD; color: #8A4B05; }
  .pc-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
  .pay-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 22px; align-items: end; }
  .pay-lines { margin: 0; display: grid; gap: 2px; }
  .pay-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .pay-lines dt { color: var(--ink-2); }
  .pay-lines dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
  .pay-lines .neg { color: #B4321F; }
  .pay-lines .tot { border: 0; padding-top: 14px; }
  .pay-lines .tot dt { color: var(--ink); font-weight: 700; }
  .pay-lines .tot dd { font-family: var(--font-display); font-size: 1.75rem; letter-spacing: -.03em; color: var(--brand-deep); }
  .pay-chart { margin: 0; padding: 16px; border-radius: 20px; background: var(--paper-2); }
  .pay-chart figcaption { font-size: .875rem; font-weight: 700; color: var(--ink-2); }
  .bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end; height: 150px; margin-top: 12px; }
  .bars span { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 6px; justify-items: center; }
  .bars i { align-self: end; width: 100%; height: calc(var(--h) * 100%); border-radius: 8px 8px 4px 4px; background: #B9CDE4; transform-origin: bottom; animation: grow 1s var(--ease) both; }
  .bars .on i { background: var(--brand); }
  .bars small { font-size: .75rem; font-weight: 700; color: var(--ink-3); }
  .pv-ring { position: relative; width: 150px; height: 150px; align-self: center; }
  .pv-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
  .pv-ring circle { fill: none; stroke-width: 12; }
  .pv-ring .bg { stroke: var(--paper-3); }
  .pv-ring .fg { stroke: #0E8DD0; stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: calc(314.16 * (1 - .67)); animation: ringIn 1.4s var(--ease) both; }
  @keyframes ringIn { from { stroke-dashoffset: 314.16; } }
  .pv-ring > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
  .pv-ring b { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; }
  .pv-ring small { font-size: .8125rem; color: var(--ink-2); max-width: 90px; line-height: 1.2; }
  .pc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 1rem; color: var(--ink-2); }
  .pc-list li { display: flex; gap: 10px; align-items: flex-start; }
  .pc-list .ico { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 2px; }
  .pc-list .ico.ok { color: var(--ok); }
  .pc-list .ic-d { display: none; }
  .apo-big { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; letter-spacing: -.02em; }
  .apo-big b { color: #C46B07; font-weight: 720; }
  .apo-rule { margin-top: -10px; color: var(--ink-2); }
  .apo-bar { height: 14px; border-radius: 99px; background: var(--paper-3); overflow: hidden; }
  .apo-bar i { display: block; height: 100%; width: 78%; border-radius: inherit; background: var(--sun); animation: barIn 1.4s var(--ease) both; }
  @keyframes barIn { from { width: 0; } }
  .apo-reqs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .apo-reqs li { display: flex; justify-content: space-between; gap: 10px; font-size: 1rem; }
  .apo-reqs span { color: var(--ink-2); }
  .req-list, .av-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  .req-list li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--paper-2); }
  .req-list b, .av-list b { display: block; font-size: 1rem; line-height: 1.25; }
  .req-list small { color: var(--ink-2); font-size: .875rem; }
  .req-list .tag { margin-left: auto; }
  .rq-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
  .rq-ic .ico { width: 20px; height: 20px; }
  .rq-ic .ic-d { display: none; }
  .rq-ic.ok { background: #E3F4EA; color: #0E6B3B; }
  .rq-ic.wait { background: #FFF1DD; color: #8A4B05; }
  .av-list li { display: flex; gap: 14px; align-items: flex-start; font-size: .9688rem; color: var(--ink-2); line-height: 1.4; }
  .av-list li.new b::after { content: "novo"; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: var(--sun); color: var(--sun-ink); font-size: .6875rem; vertical-align: 2px; }
  .av-d { flex: none; display: grid; justify-items: center; width: 48px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1.5px var(--line); }
  .av-d small { display: block; width: 100%; padding: 2px 0; background: var(--brand); color: #fff; font-size: .6875rem; font-weight: 800; text-transform: uppercase; text-align: center; }
  .av-d b { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.35; color: var(--ink); }
  .dados { margin: 0; display: grid; gap: 2px; }
  .dados div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .dados dt { color: var(--ink-2); }
  .dados dd { margin: 0; font-weight: 700; text-align: right; }
  .pn-toast { position: fixed; z-index: 80; left: 50%; bottom: 28px; max-width: min(520px, calc(100vw - 32px)); padding: 14px 20px; border-radius: 18px; background: var(--ink); color: #fff; font-size: 1rem; box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); transform: translateX(-50%); animation: rise .35s var(--ease); }
  .pn-toast[hidden] { display: none; }
  @media (max-width: 1100px) {
    .pn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 720px) {
    .pn { padding-top: calc(var(--a11y-h) + var(--hdr-h) + 20px); }
    .pn-av { width: 62px; height: 62px; font-size: 1.25rem; }
    .pn-hello { gap: 14px; }
    .pn-actions { width: 100%; }
    .pn-actions .btn { flex: 1; }
    .pn-grid { grid-template-columns: minmax(0, 1fr); }
    .pc-pay { grid-column: auto; }
    .pay-body { grid-template-columns: minmax(0, 1fr); }
    .pn-card { padding: 18px; border-radius: 24px; }
    .pn-toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
  }
}
@layer sections { .pn-tabs { padding: 4px 2px 10px; } }

/* =====================================================================
   PORTAL MULTIPÁGINA: menu lateral, cabeçalho de página, cartões e fluxos
   ===================================================================== */
@layer sections {
  .pt [hidden] { display: none !important; }
  .pt { margin-top: calc(var(--a11y-h) * -1); padding: calc(var(--a11y-h) + var(--hdr-h) + 30px) 0 clamp(64px, 8vw, 110px); background: var(--paper-2); color: var(--ink); min-height: 100vh;
    --fg: var(--ink); --fg-2: var(--ink-2); --fg-3: var(--ink-3); }
  .pt-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }

  /* menu lateral */
  .pt-side { position: sticky; top: calc(var(--hdr-h) + 18px); display: grid; gap: 14px; }
  .pt-user { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 22px; background: #0B1E3B; color: #fff; }
  .pt-user .pn-av { width: 52px; height: 52px; font-size: 1.05rem; box-shadow: none; }
  .pt-user .pn-av::before { inset: 12px -9px; }
  .pt-user .pn-av i { width: 12px; height: 12px; right: 0; top: 4px; box-shadow: 0 0 0 3px #0B1E3B; }
  .pt-user b { display: block; font-family: var(--font-display); font-weight: 660; font-size: 1.0625rem; }
  .pt-user small { font-size: .8125rem; color: rgba(255,255,255,.78); }
  .pt-nav { display: grid; gap: 4px; padding: 8px; border-radius: 22px; background: #fff; border: 1.5px solid var(--line); }
  .pt-nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 10px; border-radius: 16px; color: var(--ink); text-decoration: none; transition: background .2s; }
  .pt-nav a:hover { background: var(--paper-2); }
  .pt-nav a[aria-current="page"] { background: #FFF4E5; box-shadow: inset 0 0 0 1.5px #F6C27F; }
  .pt-nav a[aria-current="page"]::before { content: ""; position: absolute; left: -8px; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--sun); }
  .pt-nav .appic { --sz: 42px; }
  .pt-nav a > span:not(.appic) { display: grid; min-width: 0; line-height: 1.2; }
  .pt-nav b { font-size: 1rem; }
  .pt-nav small { font-size: .8125rem; color: var(--ink-3); }
  .pt-badge { margin-left: auto; flex: none; display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; background: var(--brand); color: #fff; font-style: normal; font-weight: 800; font-size: .8125rem; }
  .pt-badge.warn { background: #C62828; }
  .pt-nav .ext { margin-left: auto; width: 18px; height: 18px; color: var(--ink-3); flex: none; }
  .pt-help { display: grid; gap: 10px; padding: 16px; border-radius: 22px; background: #fff; border: 1.5px solid var(--line); font-size: .9375rem; color: var(--ink-2); }
  .pt-help b { color: var(--ink); font-family: var(--font-display); font-weight: 660; font-size: 1.0625rem; }
  .pt-help p { margin: 0; }
  .pt-wa { background: #1FA855; color: #fff; justify-content: center; }
  .pt-wa:hover { background: #178A45; }
  .pt-tel { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); font-weight: 700; text-decoration: none; }
  .pt-tel .ico, .pt-wa .ico { width: 20px; height: 20px; }
  .pt-help .ic-d { display: none; }
  .btn-exit { background: #C62828; color: #fff; justify-content: center; }
  .btn-exit:hover { background: #A61F1F; }
  .btn-exit .ico { transform: scaleX(-1); }

  /* cabeçalho da página */
  .pt-main { display: grid; gap: 22px; min-width: 0; }
  .pt-crumb { display: flex; align-items: center; gap: 6px; font-size: .9375rem; color: var(--ink-3); }
  .pt-crumb a { color: var(--brand); font-weight: 700; }
  .pt-crumb .ico { width: 16px; height: 16px; }
  .pt-head { display: flex; align-items: flex-start; gap: 18px; }
  .pt-head .appic { --sz: 66px; }
  .pt-head h1 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.035em; line-height: 1.05; }
  .pt-lead { margin-top: 8px; max-width: 62ch; color: var(--ink-2); font-size: 1.125rem; line-height: 1.5; }
  .pt .pn-demo { margin: 0; }
  .pt-h2 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); letter-spacing: -.025em; }
  .pt-h3 { display: flex; align-items: center; gap: 10px; font-size: 1.375rem; letter-spacing: -.02em; }
  .pt-h4 { margin-top: 10px; font-size: 1.125rem; }
  .hs-n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1rem; }

  .pt-row.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .pt-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 24px; border-radius: 26px; background: #fff; border: 1.5px solid var(--line); scroll-margin-top: calc(var(--hdr-h) + 24px); }
  .pt-card > p { margin: 0; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.5; }
  .pt-card h2 { font-size: 1.625rem; letter-spacing: -.025em; }
  .pc-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 800; font-size: .9375rem; color: var(--brand); }
  .pc-eyebrow .ico { width: 20px; height: 20px; }
  .pt .ic-d { display: none; }
  .pc-note { margin: 0; font-size: .875rem; color: var(--ink-3); line-height: 1.45; }
  .pt-card .btn { align-self: flex-start; }
  .link-go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--brand); font-weight: 800; text-decoration: none; }
  .link-go .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
  .link-go:hover .ico { transform: translateX(3px); }

  /* próximo pagamento */
  .pay-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; align-items: start; }
  .pay-next > * { grid-column: 1; }
  .pay-next .mini-cal { grid-column: 2; grid-row: 1 / span 4; }
  .pay-date { font-size: clamp(2rem, 3.2vw, 2.6rem) !important; letter-spacing: -.035em; line-height: 1.02; }
  .pay-date small { display: block; margin-bottom: 4px; font-family: var(--font-body); font-weight: 600; font-size: 1rem; letter-spacing: 0; color: var(--ink-2); }
  .pay-count { margin: 0 !important; }
  .pay-count b { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 99px; background: #E3F4EA; color: #0E6B3B; font-size: 1rem; }
  .mini-cal { width: 196px; padding: 12px; border-radius: 18px; background: var(--paper-2); }
  .mc-m { display: block; margin-bottom: 8px; text-align: center; font-size: .875rem; text-transform: capitalize; }
  .mc-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
  .mc-g i { font-style: normal; font-size: .6875rem; font-weight: 800; color: var(--ink-3); }
  .mc-g span { display: grid; place-items: center; height: 22px; border-radius: 6px; font-size: .75rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
  .mc-g .mc-past { color: #A9B3C1; }
  .mc-g .mc-now { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); }
  .mc-g .mc-pay { background: var(--sun); color: var(--sun-ink); font-weight: 800; }

  .st-card.warn { border-color: #F2B8B5; background: #FFF8F7; }
  .st-card.warn .pc-eyebrow { color: #B42318; }
  .due { display: flex; align-items: center; gap: 8px; color: var(--ink) !important; }
  .due .ico { width: 20px; height: 20px; color: #B42318; }

  .pt-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .pt-tile { display: grid; align-content: start; gap: 10px; padding: 18px; border-radius: 22px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .3s var(--ease), box-shadow .3s; }
  .pt-tile:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--sh-ui); }
  .pt-tile b { font-family: var(--font-display); font-weight: 660; font-size: 1.125rem; line-height: 1.2; }
  .pt-tile small { font-size: .9375rem; color: var(--ink-2); line-height: 1.4; }
  .av-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
  .av-mini li { display: flex; gap: 12px; align-items: flex-start; font-size: .9688rem; color: var(--ink-2); line-height: 1.4; }
  .av-mini li b { display: block; color: var(--ink); }

  .how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .how-steps li { display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: 18px; background: var(--paper-2); font-size: .9688rem; color: var(--ink-2); line-height: 1.45; }
  .how-steps b { color: var(--ink); font-size: 1.0625rem; }
  .how-steps.compact { width: 100%; text-align: left; }

  /* caixinha "O que é isso?" */
  .why { border-radius: 16px; background: #EEF5FC; }
  .why summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; cursor: pointer; list-style: none; color: var(--brand-deep); font-weight: 800; font-size: .9688rem; }
  .why summary::-webkit-details-marker { display: none; }
  .why summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; font-weight: 500; }
  .why[open] summary::after { content: "−"; }
  .why summary .ico { width: 20px; height: 20px; }
  .why p { margin: 0; padding: 0 14px 14px; color: var(--ink-2); font-size: .9688rem; line-height: 1.55; }

  /* assistente de atualização */
  .wz { gap: 0; padding: clamp(20px, 2.6vw, 32px); }
  .steps.big { margin-top: 0; }
  .steps.big li { font-size: .875rem; }
  .steps.big i { width: 40px; height: 40px; font-size: 1.0625rem; }
  .wz .auth-form { gap: 20px; }
  .wz .wiz-nav { grid-template-columns: auto minmax(0, 320px); justify-content: end; }
  .grp { display: grid; gap: 14px; margin: 0; padding: 18px; border-radius: 20px; border: 1.5px solid var(--line); min-width: 0; }
  .grp legend { padding: 0 8px; margin-left: -8px; font-family: var(--font-display); font-weight: 680; font-size: 1.125rem; }
  .g2, .g3 { display: grid; gap: 14px; }
  .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inp.sel { padding: 0 6px 0 0; }
  .inp select { flex: 1; width: 100%; height: 100%; padding: 0 16px; border: 0; outline: none; background: transparent; font-size: 1.0625rem; color: var(--ink); appearance: auto; }
  .ups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .up { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--paper-2); min-width: 0; }
  .appic.mini.slate { --sz: 40px; }
  .up-t { display: grid; gap: 2px; min-width: 0; flex: 1; line-height: 1.25; }
  .up-t b { font-size: .9688rem; }
  .up-t small { font-size: .8125rem; color: var(--ink-3); }
  .up-st { display: inline-flex; align-items: center; gap: 4px; font-size: .8125rem; font-weight: 700; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .up-st.ok { color: var(--ok); }
  .up-st .ico { width: 16px; height: 16px; flex: none; }
  .up-btn { position: relative; flex: none; cursor: pointer; --fg: var(--brand); }
  .up-btn input, .cap-btn input, .fix input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
  .up-btn:focus-within, .cap-btn:focus-within, .fix .btn:focus-within { outline: 3px solid var(--sun); outline-offset: 2px; }

  /* consentimento LGPD e captura */
  .lgpd { display: flex; gap: 14px; padding: 18px; border-radius: 20px; background: #F4F0FF; border: 1.5px solid #CDBEF5; }
  .lgpd .appic { --sz: 46px; }
  .lgpd > div { display: grid; gap: 10px; }
  .lgpd b { font-family: var(--font-display); font-weight: 680; font-size: 1.125rem; }
  .lgpd p { margin: 0; color: var(--ink-2); font-size: .9688rem; line-height: 1.55; }
  .lgpd .check { padding: 12px; border-radius: 14px; background: #fff; color: var(--ink); font-weight: 700; }
  .cap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; align-items: center; }
  .cap-frame { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: 24px; overflow: hidden; background: #0B1E3B; color: rgba(255,255,255,.75); }
  .cap-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .cap-oval { position: absolute; left: 18%; right: 18%; top: 12%; bottom: 22%; border-radius: 50%; border: 3px dashed rgba(255,255,255,.7); z-index: 1; }
  .cap-frame.has .cap-oval { border-style: solid; border-color: #3BD27A; }
  .cap-empty { display: grid; justify-items: center; gap: 6px; font-size: .875rem; font-weight: 700; text-align: center; }
  .cap-empty .ico { width: 40px; height: 40px; }
  .cap-frame.has .cap-empty { display: none; }
  .cap-side { display: grid; gap: 14px; justify-items: start; }
  .tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  .tips li { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; }
  .tips .ico { width: 22px; height: 22px; flex: none; color: var(--ok); }
  .cap-btn { position: relative; cursor: pointer; }
  .cap-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: none; }

  /* revisão */
  .rev { display: grid; gap: 12px; }
  .rev-b { padding: 14px 16px; border-radius: 18px; background: var(--paper-2); }
  .rev-b header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
  .rev-b header b { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 680; font-size: 1.125rem; }
  .rev-b header i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-style: normal; font-size: .875rem; }
  .rev-b .btn { --fg: var(--brand); }
  .rev-b dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .rev-b dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; min-width: 0; }
  .rev-b dt { color: var(--ink-3); }
  .rev-b dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }

  /* prova de vida */
  .pv-status { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; }
  .pv-status > * { grid-column: 1; }
  .pv-status .pv-ring { grid-column: 2; grid-row: 1 / span 3; width: 132px; height: 132px; }
  .pv-status .pv-ring .fg { animation: none; stroke: var(--ok); }
  .pv-status .pv-ring b { font-size: 2.2rem; }
  .pv-status h2 { color: var(--ok); }
  .pv-why a { color: var(--brand); font-weight: 700; }
  .pv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .pv-step { display: grid; align-content: start; gap: 14px; padding: 12px 12px 18px; border-radius: 24px; background: #fff; border: 1.5px solid var(--line); }
  .pv-shot { position: relative; margin: 0; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #EAF3FC, #D8E6F5); }
  .pv-shot img { width: 100%; height: 100%; object-fit: cover; }
  .pv-n { position: absolute; left: 10px; top: 10px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; box-shadow: 0 0 0 4px #fff; }
  .pv-step h3 { padding: 0 4px; font-size: 1.1875rem; letter-spacing: -.015em; line-height: 1.2; }
  .pv-step p { margin: 6px 0 0; padding: 0 4px; color: var(--ink-2); font-size: .9688rem; line-height: 1.5; }
  .pv-now .cap-side .btn { width: 100%; max-width: 340px; }
  .pv-result { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 14px; border-radius: 16px; background: #E3F4EA; color: #0E4F2E; font-size: .9688rem; line-height: 1.45; }
  .pv-result .ico { width: 22px; height: 22px; flex: none; color: var(--ok); }
  .faq details { border-bottom: 1px solid var(--line); }
  .faq summary { display: flex; align-items: center; min-height: 56px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.0625rem; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; margin-left: auto; padding-left: 12px; font-size: 1.5rem; font-weight: 500; color: var(--brand); }
  .faq details[open] summary::after { content: "−"; }
  .faq p { margin: 0 0 16px; color: var(--ink-2); line-height: 1.55; }

  /* protocolos */
  .legend { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; padding: 16px; border-radius: 20px; background: #fff; border: 1.5px solid var(--line); font-size: .9688rem; color: var(--ink-2); }
  .legend .tag { justify-self: start; }
  .tag.bad { background: #FDE7E6; color: #A11B13; }
  .tag.sun { background: #FFF1DD; color: #8A4B05; }
  .proto-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
  .proto { display: grid; gap: 16px; padding: 20px; border-radius: 24px; background: #fff; border: 1.5px solid var(--line); scroll-margin-top: calc(var(--hdr-h) + 24px); }
  .proto.open { border-color: #F2B8B5; }
  .proto.flash { animation: flash 2.2s var(--ease); }
  @keyframes flash { 0%, 40% { box-shadow: 0 0 0 6px rgba(243,154,44,.45); } 100% { box-shadow: none; } }
  .pr-head { display: flex; align-items: center; gap: 14px; }
  .pr-t { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
  .pr-t b { font-family: var(--font-display); font-weight: 680; font-size: 1.1875rem; }
  .pr-t small { font-size: .9063rem; color: var(--ink-3); }
  .track { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .track li { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; font-size: .875rem; color: var(--ink-3); }
  .track li::before { content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 3px; background: var(--paper-3); z-index: 0; }
  .track li:first-child::before { display: none; }
  .track i { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px var(--paper-3); }
  .track b { color: var(--ink-2); font-size: .9063rem; }
  .track li.ok::before, .track li.now::before { background: var(--brand); }
  .track li.ok i { background: var(--brand); box-shadow: none; }
  .track li.now i { background: #C62828; box-shadow: 0 0 0 5px rgba(198,40,40,.18); }
  .track li.now b { color: #A11B13; }
  .laudo { display: grid; gap: 12px; padding: 16px; border-radius: 18px; background: #FFF8F7; border: 1.5px solid #F2B8B5; }
  .laudo.ok { background: #F1FAF4; border-color: #B9E3C8; }
  .laudo p { margin: 0; color: var(--ink-2); font-size: .9688rem; line-height: 1.5; }
  .ld-h { display: flex; align-items: center; gap: 8px; color: var(--ink) !important; font-weight: 800; }
  .ld-h .ico { width: 20px; height: 20px; color: #B42318; flex: none; }
  .laudo.ok .ld-h .ico { color: var(--ok); }
  .laudo dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
  .laudo dt { font-size: .8125rem; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
  .laudo dd { margin: 2px 0 0; font-size: 1rem; }
  .fix { display: grid; gap: 12px; padding-top: 12px; border-top: 1px dashed #F2B8B5; }
  .fix .btn { position: relative; justify-self: start; }
  .fix-ok { display: flex; gap: 10px; align-items: flex-start; }
  .fix-ok .ico { width: 22px; height: 22px; flex: none; color: var(--ok); }

  /* agendamento */
  .ag-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
  .ag-step { display: grid; gap: 14px; align-content: start; min-width: 0; }
  .ag-step:first-child, .ag-step:nth-child(4) { grid-column: 1 / -1; }
  .ag-unit { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; border: 1.5px solid var(--sun); background: #FFF8EE; cursor: pointer; }
  .ag-unit input { position: absolute; opacity: 0; }
  .ag-unit .appic { --sz: 46px; }
  .ag-unit b { display: block; font-size: 1.0625rem; }
  .ag-unit small { font-size: .9063rem; color: var(--ink-2); }
  .ag-cal { padding: 14px; border-radius: 20px; background: var(--paper-2); }
  .ag-cal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  .ag-cal-top b { font-family: var(--font-display); font-size: 1.125rem; }
  .ic-round { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
  .ic-round:disabled { opacity: .35; }
  .ic-round .ico { width: 20px; height: 20px; }
  [data-ag-prev] .ico { transform: scaleX(-1); }
  .ag-wd, .ag-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; text-align: center; }
  .ag-wd span { font-size: .75rem; font-weight: 800; color: var(--ink-3); padding-bottom: 4px; }
  .ag-days button { height: 44px; border: 0; border-radius: 12px; font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
  .ag-days .free { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px #9CC9EC; }
  .ag-days .free:hover { background: #EAF3FC; }
  .ag-days .full { background: #FDE7E6; color: #C98A86; text-decoration: line-through; }
  .ag-days .off { background: transparent; color: #B4BDC9; }
  .ag-days .on { background: var(--brand); color: #fff; box-shadow: 0 0 0 3px rgba(10,108,192,.25); }
  .ag-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 12px 0 0; font-size: .8125rem; color: var(--ink-2); }
  .ag-leg i { width: 14px; height: 14px; border-radius: 4px; margin-right: -6px; }
  .ag-leg .free { background: #fff; box-shadow: inset 0 0 0 1.5px #9CC9EC; }
  .ag-leg .full { background: #FDE7E6; }
  .ag-leg .off { background: var(--paper-3); }
  .ag-hint { margin: 0; color: var(--ink-2); }
  .ag-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
  .ag-slots button { height: 48px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font-weight: 800; font-size: 1rem; }
  .ag-slots button:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
  .ag-slots .taken { background: var(--paper-2); color: #A9B3C1; text-decoration: line-through; box-shadow: none; }
  .ag-slots .on { background: var(--brand); color: #fff; box-shadow: none; }
  .aseg.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ag-go { grid-column: 1 / -1; justify-self: end; min-width: 300px; position: relative; }
  .ag-go:disabled { opacity: .45; box-shadow: none; }
  .ag-flow.booked { opacity: .55; }
  .ticket { display: grid; gap: 16px; max-width: 560px; padding: 24px; border-radius: 26px; background: #fff; border: 2px dashed var(--brand); outline: none; }
  .tk-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1.5px solid var(--line); font-weight: 800; color: var(--ink-2); }
  .tk-pass { display: grid; justify-items: center; padding: 16px; border-radius: 20px; background: #0B1E3B; color: #fff; }
  .tk-pass small { font-size: .9375rem; color: rgba(255,255,255,.8); }
  .tk-pass b { font-family: var(--font-display); font-size: 3.4rem; letter-spacing: .02em; line-height: 1.05; color: var(--sun); }
  .tk-dl { margin: 0; display: grid; }
  .tk-dl div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
  .tk-dl dt { color: var(--ink-3); }
  .tk-dl dd { margin: 0; font-weight: 700; text-align: right; }
  .tk-sms, .tk-bring { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: .9688rem; color: var(--ink-2); }
  .tk-sms .ico { width: 20px; height: 20px; flex: none; color: var(--brand); }
  .tk-act { display: flex; flex-wrap: wrap; gap: 10px; }

  /* avisos */
  .av-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
  .av-filter { display: flex; flex-wrap: wrap; gap: 8px; }
  .av-filter button { height: 44px; padding: 0 16px; border: 0; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font-weight: 700; font-size: .9688rem; }
  .av-filter button span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 4px; border-radius: 99px; background: #C62828; color: #fff; font-size: .75rem; }
  .av-filter button.on { background: var(--ink); color: #fff; box-shadow: none; }
  .av-list-full { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  .av-item { border-radius: 20px; background: #fff; border: 1.5px solid var(--line); }
  .av-item.unread { border-color: #9CC9EC; background: #F7FBFF; }
  .av-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; background: none; color: var(--ink); text-align: left; }
  .av-t { display: grid; gap: 4px; flex: 1; min-width: 0; line-height: 1.3; }
  .av-t .tag { justify-self: start; height: 24px; font-size: .75rem; }
  .av-t b { font-size: 1.0625rem; }
  .av-t small { font-size: .9063rem; color: var(--ink-3); }
  .av-item.open .av-t small { display: none; }
  .av-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
  .av-item:not(.unread) .av-dot { visibility: hidden; }
  .av-chev { flex: none; width: 20px; height: 20px; color: var(--ink-3); transform: rotate(90deg); transition: transform .3s var(--ease); }
  .av-item.open .av-chev { transform: rotate(-90deg); }
  .av-body { display: grid; gap: 12px; padding: 0 16px 18px 78px; color: var(--ink-2); font-size: 1rem; line-height: 1.55; overflow: hidden; }
  .av-body p { margin: 0; }
  .av-body .btn { justify-self: start; }
  .av-empty { margin: 0; padding: 20px; text-align: center; color: var(--ink-3); }
  .switch { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 1rem; cursor: pointer; }
  .switch input { position: absolute; opacity: 0; }
  .switch span { position: relative; flex: none; width: 50px; height: 30px; border-radius: 99px; background: var(--paper-3); transition: background .25s; }
  .switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
  .switch input:checked + span { background: var(--ok); }
  .switch input:checked + span::after { transform: translateX(20px); }
  .switch input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }

  /* meus dados */
  .consent { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px; border-radius: 18px; background: var(--paper-2); }
  .consent .appic { --sz: 44px; }
  .consent > span:nth-child(2) { display: grid; flex: 1; min-width: 200px; line-height: 1.3; }
  .consent small { font-size: .875rem; color: var(--ink-3); }
  .revoke-msg { margin: 0; padding: 14px; border-radius: 16px; background: #FFF6EA; color: #6A3F08; font-size: .9688rem; line-height: 1.5; }
  .prot-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .prot-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--paper-2); font-size: .9375rem; color: var(--ink-2); line-height: 1.45; }
  .prot-list .ico { width: 24px; height: 24px; flex: none; color: var(--brand); }
  .prot-list b { display: block; color: var(--ink); }

  .pt .done { padding: 10px 0; }
  .pt .done .btn { align-self: center; }

  @media (max-width: 1180px) {
    .pt-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 20px; }
    .pt-nav small { display: none; }
    .pt-tiles, .pv-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 960px) {
    .pt { padding-top: calc(var(--a11y-h) + var(--hdr-h) + 16px); }
    .pt-grid { grid-template-columns: minmax(0, 1fr); }
    .pt-side { display: contents; }
    .pt-user { display: none; }
    .pt-nav { order: -1; position: sticky; top: calc(var(--hdr-h) + 6px); z-index: 4; display: flex; gap: 6px; overflow-x: auto; padding: 6px; border-radius: 18px; scrollbar-width: none; box-shadow: 0 10px 24px -18px rgba(7,19,39,.5); }
    .pt-nav::-webkit-scrollbar { display: none; }
    .pt-nav a { flex: none; min-height: 48px; padding: 6px 12px 6px 6px; gap: 8px; border-radius: 13px; }
    .pt-nav a[aria-current="page"]::before { display: none; }
    .pt-nav .appic { --sz: 36px; }
    .pt-nav b { font-size: .9375rem; white-space: nowrap; }
    .pt-nav .ext { margin-left: 2px; }
    .pt-help { order: 2; }
    .pt-out { order: 3; }
    .pt-main { order: 1; }
    .pt-row.two, .how-steps, .ag-flow { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 720px) {
    .pt-head { gap: 14px; }
    .pt-head .appic { --sz: 52px; }
    .pt-lead { font-size: 1.0625rem; }
    .pt-card { padding: 18px; border-radius: 22px; }
    .pay-next, .pv-status { grid-template-columns: minmax(0, 1fr); }
    .pay-next .mini-cal { grid-column: 1; grid-row: auto; width: 100%; }
    .pv-status .pv-ring { grid-column: 1; grid-row: auto; justify-self: center; }
    .g2, .g3, .ups, .rev-b dl, .laudo dl, .prot-list { grid-template-columns: minmax(0, 1fr); }
    .grp { padding: 14px; }
    .cap { grid-template-columns: minmax(0, 1fr); }
    .cap-frame { width: min(240px, 70%); justify-self: center; }
    .pt-tiles { grid-template-columns: minmax(0, 1fr); }
    .pv-steps { grid-template-columns: minmax(0, 1fr); }
    .pv-step { grid-template-columns: 112px minmax(0, 1fr); align-items: center; padding: 10px; }
    .pv-step h3 { font-size: 1.0625rem; }
    .pv-step p { font-size: .9375rem; }
    .pv-n { width: 32px; height: 32px; font-size: 1rem; left: 6px; top: 6px; box-shadow: 0 0 0 3px #fff; }
    .wz .wiz-nav { grid-template-columns: auto minmax(0, 1fr); }
    .steps.big i { width: 34px; height: 34px; }
    .track b { font-size: .8125rem; }
    .av-body { padding-left: 16px; }
    .av-btn { gap: 10px; padding: 12px; }
    .ag-go { min-width: 0; width: 100%; }
    .aseg.three { grid-template-columns: minmax(0, 1fr); }
    .legend { grid-template-columns: minmax(0, 1fr); }
    .legend span:not(.tag) { margin: -4px 0 6px; }
    .tk-pass b { font-size: 2.8rem; }
  }
  @media print {
    .a11y, .hdr, .ft, .svc-rel, .pt-side, .pt-crumb, .pt-head, .pn-demo, .ag-flow, .tk-act, .wa, .libras-float, .pn-toast, .topstrip, .govbar { display: none !important; }
    .pt { padding: 0; background: #fff; }
    .ticket { border-color: #000; }
  }
}

/* botão Sair no cabeçalho quando a sessão de demonstração está aberta */
@layer utilities {
  .btn-enter.is-exit { background: #C62828 !important; box-shadow: 0 8px 18px -10px rgba(198,40,40,.9) !important; }
  .btn-enter.is-exit:hover { background: #A61F1F !important; }
  .hdr.on-light .btn-enter.is-exit { background: #C62828 !important; color: #fff; }
}

/* contracheque dentro do portal */
@layer sections {
  .cc-months { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
  .cc-months::-webkit-scrollbar { display: none; }
  .cc-months button { flex: none; display: grid; justify-items: start; min-width: 118px; padding: 10px 16px; border: 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); text-align: left; line-height: 1.2; }
  .cc-months small { font-size: .8125rem; font-weight: 700; color: var(--ink-3); }
  .cc-months b { font-family: var(--font-display); font-weight: 660; font-size: 1.0625rem; }
  .cc-months button.on { background: #0B1E3B; color: #fff; box-shadow: none; }
  .cc-months button.on small { color: rgba(255,255,255,.75); }
  .cc-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .cc-side { display: grid; gap: 18px; }
  .cc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 14px; padding-bottom: 16px; border-bottom: 1.5px solid var(--line); }
  .cc-paid { margin: 6px 0 0; color: var(--ink-2); font-size: 1rem; }
  .cc-net { display: grid; justify-items: end; padding: 12px 18px; border-radius: 18px; background: #E3F4EA; }
  .cc-net small { font-size: .875rem; font-weight: 700; color: #0E6B3B; }
  .cc-net b { font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.1rem); letter-spacing: -.03em; color: #0B4F2C; font-variant-numeric: tabular-nums; }
  .cc-id { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
  .cc-id dt { font-size: .8125rem; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
  .cc-id dd { margin: 2px 0 0; font-weight: 700; }
  .cc-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .cc-tables section { padding: 14px; border-radius: 18px; background: var(--paper-2); }
  .cc-tables h3 { margin-bottom: 8px; font-size: 1.0625rem; }
  .cc-lines { list-style: none; margin: 0; padding: 0; display: grid; }
  .cc-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9688rem; }
  .cc-lines span { color: var(--ink-2); }
  .cc-lines b { font-variant-numeric: tabular-nums; white-space: nowrap; }
  .cc-lines.out b { color: #A11B13; }
  .cc-sum { display: flex; justify-content: space-between; margin: 10px 0 0; font-weight: 700; }
  .cc-sum b { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
  .cc-act { display: flex; flex-wrap: wrap; gap: 10px; }
  .cc-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end; height: 150px; }
  .cc-bars button { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; padding: 0; border: 0; background: none; justify-items: center; cursor: pointer; }
  .cc-bars i { align-self: end; width: 100%; border-radius: 8px 8px 4px 4px; background: #B9CDE4; transition: background .2s; }
  .cc-bars button.on i, .cc-bars button:hover i { background: var(--brand); }
  .cc-bars small { font-size: .75rem; font-weight: 800; color: var(--ink-3); }
  @media (max-width: 1180px) { .cc-grid { grid-template-columns: minmax(0, 1fr); } .cc-side { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 720px) { .cc-tables, .cc-id, .cc-side { grid-template-columns: minmax(0, 1fr); } .cc-net { justify-items: start; width: 100%; } }
  @media print { .cc-months, .cc-side, .cc-act, .pt .why { display: none !important; } .cc-grid { display: block; } }
}
/* celular: nenhum campo empurra a coluna para fora da tela */
.pt-main, .pt-main > *, .proto, .fix, .laudo { min-width: 0; }
.pt input, .pt select, .pt textarea { max-width: 100%; min-width: 0; }
.pt input[type="file"] { width: 100%; }
.pt .laudo dd { color: var(--ink); font-weight: 600; }
