/* NTMULT Finanças — celular primeiro. Vencimentos como canhotos de boleto; o resto, sóbrio. */
:root {
  /* Identidade NTMULT: verde e branco (claro) / verde e preto (escuro) */
  --bg: #f3f7f3;
  --surface: #ffffff;
  --sunk: #e7f0e7;
  --ink: #0e1a10;
  --muted: #56645a;
  --line: #d5e2d6;
  --accent: #188a2e;
  --accent-ink: #ffffff;
  --glow: rgba(24, 138, 46, .28);
  --danger: #c4323d;
  --warn: #b26b00;
  --ok: #188a2e;
  --radius-sm: 6px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(14, 26, 16, .06), 0 4px 14px rgba(14, 26, 16, .05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #040705; --surface: #0d1410; --sunk: #070c08; --ink: #e8f3e9; --muted: #8ea392; --line: #1d2b20;
    --accent: #5ddc3a; --accent-ink: #031003; --glow: rgba(93, 220, 58, .35);
    --danger: #ff6670; --warn: #f0b44c; --ok: #5ddc3a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5); color-scheme: dark;
  }
  .panel, .figure, .list, .stub { border: 1px solid var(--line); }
  .btn-primary { box-shadow: 0 0 18px var(--glow); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Estrutura ---------- */
.app { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.topbar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 960px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.wm { display: flex; align-items: center; gap: 9px; font-size: 16px; }
.wm b { font-weight: 850; letter-spacing: .02em; }
.wm i { width: 1px; height: 16px; background: var(--line); }
.wm span { color: var(--muted); }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; display: block; transition: transform .2s; }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.topbar .spacer { flex: 1; }
main { width: 100%; max-width: 960px; margin: 0 auto; padding: 20px 16px 110px; }

.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 6; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 2px 8px; font-size: 11.5px; color: var(--muted); text-decoration: none; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.tabbar a[aria-current="page"] svg { color: var(--accent); }
.desk-nav { display: none; }

@media (min-width: 900px) {
  .tabbar { display: none; }
  .desk-nav { display: flex; gap: 4px; }
  .desk-nav a { padding: 7px 11px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 15px; }
  .desk-nav a[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: var(--shadow); }
  main { padding-bottom: 60px; }
}

/* ---------- Tipografia ---------- */
h1 { font-size: 26px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 4px; }
h2 { font-size: 18px; letter-spacing: -.01em; margin: 0; }
.sub { color: var(--muted); margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.neg { color: var(--danger); }
.pos { color: var(--ok); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }

/* ---------- Blocos ---------- */
.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.section-head a, .link { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 15px; background: none; border: 0; padding: 0; cursor: pointer; }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.panel + .panel { margin-top: 12px; }
.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .figures { grid-template-columns: repeat(4, 1fr); } }
.figure { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 13px 14px; text-decoration: none; display: block; }
.figure span { display: block; font-size: 13.5px; color: var(--muted); }
.figure b { display: block; font-size: 20px; letter-spacing: -.02em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.figure em { font-style: normal; font-size: 13px; color: var(--muted); }

/* ---------- Canhotos de boleto (o elemento marcante) ---------- */
.stubs { display: grid; gap: 10px; }
.stub { --edge: var(--line); position: relative; display: grid; grid-template-columns: 74px 1fr; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; }
.stub-date { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 4px; background: var(--sunk); border-right: 2px dashed var(--edge); text-align: center; }
.stub-date::before, .stub-date::after { content: ""; position: absolute; right: -8px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); }
.stub-date::before { top: -7px; } .stub-date::after { bottom: -7px; }
.stub-day { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.stub-month { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.stub-body { padding: 11px 14px; min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.stub-title { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.stub-amount { font-weight: 750; text-align: right; white-space: nowrap; }
.stub-when { font-size: 13.5px; color: var(--muted); }
.stub-actions { display: flex; justify-content: flex-end; }
.stub.is-late { --edge: color-mix(in srgb, var(--danger) 55%, var(--line)); }
.stub.is-late .stub-date { background: color-mix(in srgb, var(--danger) 13%, var(--surface)); color: var(--danger); }
.stub.is-late .stub-when { color: var(--danger); font-weight: 600; }
.stub.is-today .stub-date { background: color-mix(in srgb, var(--warn) 16%, var(--surface)); color: var(--warn); }
.stub.is-today .stub-when { color: var(--warn); font-weight: 600; }
.stub.is-paid { opacity: .62; }
.stub.is-paid .stub-title { text-decoration: line-through; text-decoration-thickness: 1px; }
.stub.is-receive .stub-amount { color: var(--ok); }
.tag { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 99px; background: var(--sunk); color: var(--muted); margin-left: 6px; vertical-align: 1px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }

/* ---------- Listas ---------- */
.list { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: center; width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; cursor: pointer; }
.row:last-child { border-bottom: 0; }
.row-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-wrap .row-title { white-space: normal; }
input[type=file] { width: 100%; font-size: 15px; }
.row-meta { font-size: 13.5px; color: var(--muted); }
.row-value { font-weight: 700; text-align: right; white-space: nowrap; }
.day-label { font-size: 14px; color: var(--muted); margin: 18px 4px 6px; font-weight: 600; }

/* ---------- Barras e índice ---------- */
.bar { height: 8px; background: var(--sunk); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.cat-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin-bottom: 12px; font-size: 15px; }
.cat-row .bar { grid-column: 1 / -1; }
.score { display: flex; align-items: center; gap: 16px; }
.score-ring { --v: 0; --c: var(--accent); width: 92px; height: 92px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--sunk) 0); }
.score-ring b { width: 74px; height: 74px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 28px; letter-spacing: -.03em; }
.score-big .score-ring { width: 140px; height: 140px; } .score-big .score-ring b { width: 114px; height: 114px; font-size: 44px; }
.hist { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end; height: 130px; }
.hist-col { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.hist-bars { display: flex; gap: 3px; align-items: flex-end; height: 100px; }
.hist-bars i { width: 11px; border-radius: 3px 3px 0 0; background: var(--ok); min-height: 2px; }
.hist-bars i + i { background: var(--danger); }
.hist-col span { font-size: 12px; color: var(--muted); }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ---------- Formulários ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.field small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); min-height: 46px; font-size: 16px;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.check { display: flex; align-items: center; gap: 10px; margin: 10px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14.5px; }
.chips input:checked + span { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--sunk); border-radius: 10px; padding: 3px; margin-bottom: 14px; }
.seg button { border: 0; background: none; padding: 9px 6px; border-radius: 8px; cursor: pointer; font-size: 15px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: var(--shadow); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 18px; min-height: 46px; font-weight: 650; cursor: pointer; text-decoration: none; background: var(--sunk); color: var(--ink); font-size: 15.5px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 40%, var(--line)); }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 14px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.fab { position: fixed; right: 18px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 7; box-shadow: 0 6px 18px var(--glow); border-radius: 99px; padding: 13px 20px; }
@media (min-width: 900px) { .fab { position: static; box-shadow: none; border-radius: 10px; } }

.month-nav { display: flex; align-items: center; gap: 4px; background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); padding: 3px; }
.month-nav button { border: 0; background: none; width: 38px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 20px; color: var(--muted); }
.month-nav b { min-width: 128px; text-align: center; font-size: 15px; }

/* ---------- Folha (modal) e avisos ---------- */
.sheet-back { position: fixed; inset: 0; background: rgba(10, 16, 26, .45); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; border-radius: 18px 18px 0 0; padding: 18px 18px calc(20px + env(safe-area-inset-bottom)); animation: up .22s ease-out; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-close { border: 0; background: var(--sunk); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 18px; }
@media (min-width: 700px) { .sheet-back { align-items: center; } .sheet { border-radius: 16px; } }
@keyframes up { from { transform: translateY(24px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
.toast { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 40; background: var(--ink); color: var(--surface); padding: 11px 16px; border-radius: 10px; font-size: 15px; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.toast.err { background: var(--danger); color: #fff; }
.note { border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); padding: 11px 13px; border-radius: 0 9px 9px 0; font-size: 14.5px; margin: 0 0 14px; }
.note.bad { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, var(--surface)); }
.empty { text-align: center; padding: 26px 16px; color: var(--muted); }
.empty p { margin: 0 0 12px; }
.copybox { display: flex; gap: 8px; } .copybox input { font-size: 13.5px; }

/* ---------- Entrada (login): a vitrine do sistema ---------- */
.auth { position: relative; min-height: 100dvh; display: grid; overflow: hidden; isolation: isolate; }
.auth-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.o1 { width: 420px; height: 420px; background: var(--accent); top: -180px; left: 50%; transform: translateX(-50%); opacity: .22; }
.o2 { width: 360px; height: 360px; background: #2fb52a; bottom: -220px; right: -120px; opacity: .14; }
.hexes { position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16zM28 64l28 16v32M28 64 0 80v32' fill='none' stroke='%23188a2e' stroke-opacity='.10' stroke-width='1'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%); }
.auth-side { display: none; }
.auth-main { width: 100%; max-width: 420px; margin: 0 auto; padding: 48px 20px 28px; display: flex; flex-direction: column; justify-content: center; }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 26px; text-align: center; }
.logo-halo { position: relative; display: block; width: 84px; height: 84px; }
.logo-halo::before { content: ""; position: absolute; inset: -14px; border-radius: 30px; background: radial-gradient(circle, var(--glow), transparent 70%); animation: halo 1.2s ease-out both; }
.logo-halo img { position: relative; width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: pop .7s cubic-bezier(.2, .9, .25, 1.15) both; }
.wordmark { display: flex; align-items: baseline; gap: 8px; animation: rise .6s .15s ease-out both; }
.wordmark b { font-size: 26px; font-weight: 850; letter-spacing: .02em; }
.wordmark span { font-size: 22px; font-weight: 400; color: var(--muted); }
.auth-card { background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line)); border-radius: 18px; padding: 26px 22px; box-shadow: 0 24px 60px -24px rgba(8, 40, 14, .35);
  animation: rise .6s .25s ease-out both; }
.auth-card h1 { font-size: 24px; }
.auth-foot { margin: 22px 0 0; text-align: center; font-size: 13px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 7px; animation: rise .6s .35s ease-out both; }
.lock { width: 10px; height: 8px; border-radius: 2px; background: var(--accent); position: relative; top: 2px; }
.lock::before { content: ""; position: absolute; left: 2px; top: -5px; width: 6px; height: 6px; border: 2px solid var(--accent); border-bottom: 0; border-radius: 4px 4px 0 0; box-sizing: border-box; }
.auth.is-leaving .auth-main { transition: opacity .25s, transform .25s; opacity: 0; transform: translateY(-8px) scale(.99); }
.shake { animation: shake .42s ease both !important; }

.pw { position: relative; display: block; }
.pw input { padding-right: 86px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--sunk); color: var(--muted); font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 7px; cursor: pointer; }
.pw-eye:hover { color: var(--ink); }

/* painel da marca (computador) */
@media (min-width: 960px) {
  .auth { grid-template-columns: minmax(420px, 1.1fr) 1fr; }
  .auth-side { display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; color: #e8f3e9;
    background: radial-gradient(ellipse at 30% 20%, #0f3a17 0%, #06150a 45%, #020503 100%); }
  .auth-side::after { content: ""; position: absolute; inset: 0; opacity: .6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16zM28 64l28 16v32M28 64 0 80v32' fill='none' stroke='%235ddc3a' stroke-opacity='.08' stroke-width='1'/%3E%3C/svg%3E");
    -webkit-mask-image: linear-gradient(160deg, #000 10%, transparent 80%); mask-image: linear-gradient(160deg, #000 10%, transparent 80%); }
  .side-in { position: relative; z-index: 1; width: 100%; max-width: 500px; padding: 48px; }
  .auth-main .logo-halo { display: none; }
  .side-logo { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 0 60px rgba(93, 220, 58, .35); transition: transform .3s ease-out; animation: pop .8s cubic-bezier(.2, .9, .25, 1.15) both; }
  .side-claim { font-size: 34px; line-height: 1.12; font-weight: 800; letter-spacing: -.025em; margin: 30px 0 10px; animation: rise .6s .15s ease-out both; }
  .side-text { color: #9fb7a4; margin: 0 0 30px; max-width: 34ch; animation: rise .6s .25s ease-out both; }
  .demo-stubs { display: grid; gap: 10px; }
  .stub.demo { --surface: #0f1a12; --sunk: #08100a; --line: #1f3324; --bg: #06110a; --muted: #9fb7a4; --ink: #e8f3e9; --warn: #f0b44c; --ok: #5ddc3a;
    color: var(--ink); border: 1px solid #1f3324; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); animation: rise .6s both, float 6s ease-in-out infinite; }
  .stub.demo .stub-date::before, .stub.demo .stub-date::after { background: #06150a; }
  .stub.demo.d0 { animation-delay: .35s, 1s; margin-right: 24px; }
  .stub.demo.d1 { animation-delay: .45s, 2s; margin-left: 28px; margin-right: 12px; }
  .stub.demo.d2 { animation-delay: .55s, 3s; margin-right: 36px; }
  .auth-main { max-width: 440px; padding: 48px 40px; }
  .o1 { left: 75%; }
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes halo { from { opacity: 0; transform: scale(.5); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

/* botão com carregamento */
.btn-go { position: relative; overflow: hidden; }
.btn-go.is-loading::after { content: ""; position: absolute; left: -40%; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: sweep 1s linear infinite; }
@keyframes sweep { to { left: 100%; } }

/* ---------- Primeiros passos ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--sunk); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.steps li.done::before { content: "✓"; background: var(--ok); color: #fff; }
.steps li.done span { color: var(--muted); text-decoration: line-through; }

.table-wrap { overflow-x: auto; }
table.imp { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.imp td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.imp tr.dup { opacity: .5; }
table.imp select { min-height: 38px; padding: 6px 8px; font-size: 14px; }
.more-list a { display: flex; justify-content: space-between; align-items: center; padding: 15px 16px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.more-list a:last-child { border-bottom: 0; }
.more-list a span { color: var(--muted); font-weight: 400; font-size: 14px; }

/* utilidades */
.mb { margin-bottom: 16px; } .mt { margin-top: 16px; } .m0 { margin: 0; } .center { text-align: center; }
.span-all { grid-column: 1 / -1; margin-top: 6px; }
.num { white-space: nowrap; text-align: right; }
.imp-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 6px 10px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.imp-row:last-child { border-bottom: 0; }
.imp-row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); }
.imp-desc { min-width: 0; overflow-wrap: anywhere; font-size: 15px; }
.imp-desc small { display: block; color: var(--muted); font-size: 13px; }
.imp-row select { grid-column: 2 / -1; min-height: 40px; padding: 7px 10px; font-size: 14.5px; }
.imp-row.dup { opacity: .5; }

/* acabamentos: resposta ao toque */
.btn { transition: transform .12s, box-shadow .2s, background-color .2s, filter .2s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); box-shadow: 0 6px 20px var(--glow); }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.figure, .row, .stub:not(.demo) { transition: transform .15s, box-shadow .2s; }
.figure:active, .row:active { transform: scale(.985); }
@media (hover: hover) { .figure:hover, .stub:not(.demo):hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(8, 40, 14, .25); } }
.tabbar a { position: relative; transition: color .2s; }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); animation: grow .3s ease-out both; }
@keyframes grow { from { transform: scaleX(0); } }
main > * { animation: rise .35s ease-out both; }
.stub.is-leaving { animation: leave .5s ease-in forwards; }
.stub.is-leaving .stub-date { background: var(--ok); color: #fff; }
.stub.is-leaving .stub-date::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; font-weight: 900; color: #fff; background: var(--ok); border-radius: 0; right: 0; width: auto; height: auto; top: 0; bottom: 0; }
@keyframes leave { 40% { transform: scale(1.02); } 100% { transform: translateX(40px); opacity: 0; max-height: 0; margin: 0; } }
@property --v { syntax: "<number>"; inherits: false; initial-value: 0; }
.score-ring { transition: --v 1s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- cadastro, situação e duas etapas ---------- */
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 4px 0 12px; }
.otp input { text-align: center; font-size: 24px; font-weight: 750; padding: 0; min-height: 56px; border-radius: 11px; }
.tfa-links { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; margin-top: 16px; font-size: 14px; }
.tfa-icon, .status-icon { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); position: relative; animation: pop .5s cubic-bezier(.2, .9, .25, 1.15) both; }
.tfa-icon::before { content: ""; width: 18px; height: 14px; border-radius: 3px; background: var(--accent); position: relative; top: 4px; }
.tfa-icon::after { content: ""; position: absolute; width: 12px; height: 11px; border: 3px solid var(--accent); border-bottom: 0; border-radius: 8px 8px 0 0; top: 12px; }
.status-page { text-align: left; }
.status-icon::before { font-size: 26px; font-weight: 800; color: var(--accent); }
.status-icon.is-mail::before { content: "✉"; }
.status-icon.is-ok::before { content: "✓"; }
.status-icon.is-bad { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); }
.status-icon.is-bad::before { content: "!"; color: var(--danger); }
.status-icon.is-wait::after { content: ""; width: 24px; height: 24px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--accent) 30%, transparent); border-top-color: var(--accent); animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.track { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 12.5px; color: var(--muted); text-align: center; }
.track li { position: relative; padding-top: 18px; }
.track li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 99px; background: var(--sunk); }
.track li.done::before { background: var(--accent); }
.track li.now { color: var(--ink); font-weight: 650; }
.track li.now::before { background: linear-gradient(90deg, var(--accent), var(--sunk)); background-size: 200% 100%; animation: pulse-bar 1.6s ease-in-out infinite alternate; }
@keyframes pulse-bar { to { background-position: 100% 0; } }
.approve { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; border-left: 4px solid var(--warn); }
.approve > div:first-child { display: grid; gap: 2px; min-width: 0; }
.approve .btns { margin: 0; }
.approve.is-leaving { animation: leave .45s ease-in forwards; }
.section.first { margin-top: 0; margin-bottom: 8px; }
.tag-warn { background: color-mix(in srgb, var(--warn) 18%, var(--surface)); color: var(--warn); }
.tag-bad { background: color-mix(in srgb, var(--danger) 15%, var(--surface)); color: var(--danger); }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.codes code { font-size: 16px; padding: 9px; text-align: center; background: var(--sunk); border-radius: 8px; letter-spacing: .04em; user-select: all; }
#sec .check input:disabled + * { opacity: .5; }
