/* Estilos base: copiados do PediPRO (mesmo visual RespirePRO). Gerado por extract.py */
:root {
  --page: #E9E7F0;
  --bg: #F7F7F7;
  --surface: #FFFFFF;
  --ink: #221D35;
  --muted: #625D7C;
  --line: #E3E0EC;
  --brand: #443A69;
  --brand-2: #616194;
  --brand-soft: #ECEAF5;
  --gold: #FFCF70;
  --gold-ink: #4A3600;
  --gold-soft: #FFF3D9;
  --on-brand: #FFFFFF;
  --good: #23704F;
  --good-soft: #E1F2EA;
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0E0C15; --bg: #15121F; --surface: #201B2E; --ink: #EEEAF6; --muted: #A9A3C2;
    --line: #342D48; --brand: #2C2445; --brand-2: #9C98D6; --brand-soft: #2B2540;
    --gold: #FFCF70; --gold-ink: #2A1F00; --gold-soft: #3A3020; --on-brand: #FFFFFF;
    --good: #7BD4A7; --good-soft: #1D3329; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #0E0C15; --bg: #15121F; --surface: #201B2E; --ink: #EEEAF6; --muted: #A9A3C2;
  --line: #342D48; --brand: #2C2445; --brand-2: #9C98D6; --brand-soft: #2B2540;
  --gold: #FFCF70; --gold-ink: #2A1F00; --gold-soft: #3A3020; --on-brand: #FFFFFF;
  --good: #7BD4A7; --good-soft: #1D3329; color-scheme: dark;
}
html, body { height: 100%; }
body { background: var(--page); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--brand); }
* { box-sizing: border-box; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.app { max-width: 440px; height: 100%; margin: 0 auto; display: flex; flex-direction: column; background: var(--bg); box-shadow: 0 0 0 1px var(--line); position: relative; }
.proto-bar { background: var(--gold); color: var(--gold-ink); font-size: 12px; font-weight: 600; padding-block: 6px; text-align: center; letter-spacing: .02em; }
header.top { background: var(--brand); color: var(--on-brand); padding-block: 14px 16px; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.brand b { color: var(--gold); font-weight: 700; }
.top h1 { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.2; margin: 10px 0 2px; text-wrap: balance; }
.top p { margin: 0; opacity: .85; font-size: 14px; }
.back { background: none; border: 0; color: var(--on-brand); padding: 4px 0; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-2); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--on-brand); flex: none; }

main { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-block: 18px 24px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.section-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin: 0; }
.eyebrow { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.needs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.need { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; min-height: 104px; }
.need .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand-2); }
.need strong { font-size: 14.5px; line-height: 1.25; }
.need span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }

.install { background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 14px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; }
.install p { margin: 0; font-size: 13.5px; }
.install button { background: none; border: 0; color: var(--muted); font-size: 13px; padding: 0; margin-left: auto; flex: none; }

.list { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.row { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; width: 100%; background: none; border: 0; text-align: left; }
.row + .row { border-top: 1px solid var(--line); }
.row .body { flex: 1; min-width: 0; }
.row .t { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.row .m { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.chev { color: var(--muted); flex: none; margin-top: 2px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-2); }
.tag.new { background: var(--gold); color: var(--gold-ink); }
.tag.ok { background: var(--good-soft); color: var(--good); }
.tag.wait { background: var(--gold-soft); color: var(--muted); }

.progress { height: 6px; border-radius: 3px; background: var(--brand-soft); overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: var(--brand-2); }
.resume { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; }
.play { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: var(--gold); display: grid; place-items: center; flex: none; }

.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.search input { border: 0; background: none; outline: none; flex: 1; min-width: 0; font-size: 15px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.card h2 { font-family: var(--font-display); font-size: 19px; line-height: 1.25; margin: 6px 0 8px; text-wrap: balance; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.block h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 6px; }
.block p { margin: 0; }
.limit { border-left: 3px solid var(--gold); padding-left: 12px; }
.btn { border: 0; border-radius: 12px; padding: 13px 16px; font-weight: 700; font-size: 15px; width: 100%; background: var(--brand); color: var(--on-brand); }
.btn.gold { background: var(--gold); color: var(--gold-ink); }
.btn.ghost { background: transparent; color: var(--brand-2); border: 1px solid var(--line); }
.note { font-size: 12.5px; color: var(--muted); background: var(--brand-soft); border-radius: 10px; padding: 10px 12px; margin: 0; }

label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; }
.f select, .f textarea, .f input { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-weight: 400; font-size: 15px; }
.f textarea { min-height: 96px; resize: vertical; }

.post { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.post-h { display: flex; gap: 10px; align-items: center; }
.post-h .who { font-weight: 700; font-size: 14px; }
.post p { margin: 0; }
.post-a { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.post-a button { background: none; border: 0; color: inherit; padding: 0; display: inline-flex; gap: 5px; align-items: center; font-weight: 600; }
.post-a button[aria-pressed="true"] { color: var(--brand-2); }
.pin { font-size: 11.5px; font-weight: 700; color: var(--gold-ink); background: var(--gold); border-radius: 6px; padding: 1px 7px; }

nav.tabs { border-top: 1px solid var(--line); background: var(--surface); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabs-in { display: grid; grid-template-columns: repeat(6, 1fr); }
.tab { background: none; border: 0; padding: 9px 2px 8px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); }
.tab[aria-current="page"] { color: var(--brand-2); }
.tab[aria-current="page"] svg { stroke: var(--brand-2); }
.tab svg { stroke: var(--muted); }

.toast { pointer-events: none; position: absolute; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); font-size: 13.5px; padding: 10px 14px; border-radius: 10px; width: max-content; max-width: calc(100% - 32px); box-shadow: 0 6px 20px rgba(0,0,0,.18); z-index: 20; }

.login { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding-block: 32px; background: var(--brand); color: var(--on-brand); }
.login .brand { font-size: 30px; }
.login h1 { font-family: var(--font-display); font-size: 26px; line-height: 1.2; margin: 0; text-wrap: balance; }
.login p { margin: 0; opacity: .85; }
.login .f input { color: var(--ink); }
.login .f { color: var(--on-brand); }
.sent { background: rgba(255,255,255,.1); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.photo-img { display: block; width: 100%; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center top; }
.mini-foto { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; object-position: center 15%; vertical-align: middle; margin-right: 6px; }
.calc-cta { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--brand); color: var(--on-brand); border: 0; border-radius: 14px; padding: 14px; }
.calc-cta .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; flex: none; }
.calc-cta strong { display: block; font-size: 15px; }
.calc-cta span { font-size: 12.5px; opacity: .85; }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cgrid .wide { grid-column: 1 / -1; }
.f .hint { font-weight: 400; font-size: 12px; color: var(--muted); }
.mrow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.mrow.three { grid-template-columns: repeat(3, 1fr); }
.mrow input { width: 100%; min-width: 0; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 4px; font-size: 15px; font-variant-numeric: tabular-nums; }
.f input { width: 100%; min-width: 0; }
.res { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.res-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 11px 14px; align-items: baseline; }
.res-row + .res-row { border-top: 1px solid var(--line); }
.res-row.sec { background: var(--brand-soft); padding-block: 7px; }
.res-row.sec .rl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--brand-2); }
.rl { font-size: 13.5px; color: var(--muted); }
.rv { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.rv.ok { color: var(--good); }
.rv.bad { color: #B3261E; }
.rv.warn { color: var(--gold-ink); background: var(--gold-soft); padding: 0 6px; border-radius: 6px; }
.rn { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.res-row.main { background: var(--gold-soft); }
.res-row.main .rl { color: var(--ink); font-weight: 600; }
.res-row.main .rv { font-size: 18px; }
.ck-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.ck-card summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px; font-weight: 700; cursor: pointer; }
.ck-card summary::-webkit-details-marker { display: none; }
.ck-card summary::after { content: "▾"; color: var(--muted); margin-left: 6px; }
.ck-card[open] summary::after { content: "▴"; }
.ck-card summary span:first-child { flex: 1; }
.ck-count { font-size: 12.5px; color: var(--brand-2); background: var(--brand-soft); border-radius: 999px; padding: 2px 9px; font-variant-numeric: tabular-nums; }
.ck { padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.ck-top { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 600; cursor: pointer; }
.ck-top input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand-2); flex: none; }
.ck-box { width: 20px; height: 20px; border-radius: 5px; border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-size: 13px; color: #FFFFFF; }
.ck-box.on { background: var(--brand-2); border-color: var(--brand-2); }
.ck-l { line-height: 1.35; }
.ck-in { margin: 8px 0 0 30px; width: calc(100% - 30px); min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.ck-calc { margin: 8px 0 0 30px; width: calc(100% - 30px); padding: 9px 12px; font-size: 14px; display: flex; gap: 6px; align-items: center; justify-content: center; }
.ck-sec { font-weight: 700; font-size: 13.5px; margin: 10px 0 4px; }
.calc-cta + .calc-cta { margin-top: -6px; }
.f.q { gap: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.f.q .qt { font-weight: 600; line-height: 1.35; }
.f.q select { width: 100%; min-width: 0; }
.f select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.chart .ql { fill: var(--ink); font-size: 13px; font-weight: 700; font-family: var(--font-body); }
.chart .qv { fill: var(--ink); font-size: 13px; font-weight: 700; font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.chart .qv.in { fill: #FFFFFF; }
.ach-t { margin: 8px 0 4px; font-size: 13px; font-weight: 700; }
.ach-t.bad { color: #B3261E; }
.ach-t.ok { color: var(--good); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.imc { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.imc strong { font-variant-numeric: tabular-nums; }
.imc .small { flex-basis: 100%; }
.imc-c { font-size: 13px; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.imc-c.ok { background: var(--good-soft); color: var(--good); }
.imc-c.warn { background: var(--gold-soft); color: var(--gold-ink); }
.imc-c.bad { background: #FBE4E1; color: #B3261E; }
.ck-area { display: block; min-height: 76px; resize: vertical; font-family: inherit; line-height: 1.4; }
.vit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 10px 0 0 30px; }
.vit-f { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.vit-f i { font-style: normal; font-weight: 400; color: var(--muted); }
.vit-f .ck-in { margin: 0; width: 100%; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0 30px; }
.opt { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 13px; font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.opt[aria-pressed="true"] { background: var(--brand-2); border-color: var(--brand-2); color: #FFFFFF; }
.voz { margin: 0 14px 12px; padding: 14px; border-radius: 12px; background: var(--brand-soft); display: flex; flex-direction: column; gap: 10px; }
.voz-t { margin: 0; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--brand-2); }
.voz .btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.voz .btn:disabled { opacity: .45; cursor: not-allowed; }
.voz textarea { min-height: 110px; }
.voz-ok { padding: 0; font-weight: 600; }
.inc-row { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; padding: 8px 0; }
.inc-row input { width: 18px; height: 18px; accent-color: var(--brand-2); flex: none; }
.inc-row + .inc-row { border-top: 1px solid var(--line); }
.borg-grid { display: grid; gap: 14px; }
@media (min-width: 768px) { .borg-grid { grid-template-columns: 1fr 1fr; } }
.borg-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.borg-t td { padding: 6px 4px; border-bottom: 1px solid var(--line); }
.borg-t td:last-child { text-align: right; font-size: 17px; }
.mural-ag { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mural-ag li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14.5px; }
.mural-d { background: var(--gold); color: var(--gold-ink); border-radius: 8px; padding: 4px 8px; font-weight: 800; font-size: 13px; flex: none; }
.mural-av { border-top: 1px solid var(--line); padding-top: 10px; }
.borg-q { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 4px 0 0; text-align: center; text-wrap: balance; }
.borg-list { display: flex; flex-direction: column; gap: 6px; }
.borg-it { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 2px solid transparent; border-radius: 14px; padding: 10px 14px; background: var(--surface); box-shadow: inset 8px 0 0 var(--c); min-height: 56px; }
.borg-it.on { border-color: var(--c); background: var(--brand-soft); }
.borg-n { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--c); min-width: 46px; text-align: center; }
.borg-d { font-size: 17px; font-weight: 600; }
@media (min-width: 768px) { .borg-it { min-height: 64px; } .borg-n { font-size: 32px; } .borg-d { font-size: 19px; } }
.meta-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.smart-row { display: inline-flex; gap: 4px; }
.smart-k { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; border: 1px solid var(--line); color: var(--muted); }
.smart-k.on { background: var(--brand-2); border-color: var(--brand-2); color: #FFFFFF; }
.smart-sec { border-top: 1px solid var(--line); padding-top: 10px; }
.smart-h { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.smart-h b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-2); margin-right: 6px; }
.meta-frase { background: var(--brand-soft); border-radius: 10px; padding: 10px 12px; }
.meta-mid.ok { color: var(--ok, #2e7d4f); } .meta-mid.warn { color: var(--warn, #b26a00); font-weight: 600; } .meta-mid.bad { color: #b3261e; font-weight: 600; }
.ext-link { display: inline-block; margin: 8px 0 0 30px; font-size: 14px; font-weight: 700; color: var(--brand-2); text-decoration: underline; }
.pac-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.pac-it { display: flex; gap: 10px; align-items: flex-start; }
.pac-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; flex: none; }
.pac-dot.ok { background: var(--ok, #2e7d4f); } .pac-dot.bad { background: var(--warn, #c77700); }
.pac-ok { color: var(--ok, #2e7d4f); } .pac-bad { color: var(--warn, #b26a00); font-weight: 600; }
.rel-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.chart { width: 100%; height: auto; display: block; }
.chart .g { stroke: var(--line); stroke-width: 1; }
.chart .tk { fill: var(--muted); font-size: 13px; font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.chart .ref { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart .reft { fill: var(--ink); font-size: 13px; font-weight: 600; font-family: var(--font-body); }
.chart .bl { fill: var(--ink); font-size: 15px; font-weight: 700; font-family: var(--font-body); }
.chart .bar { fill: var(--brand-2); }
.chart .bar.low { fill: #C0392B; }
.chart .lin { stroke: var(--gold); stroke-width: 3.5; }
.chart .bv { fill: var(--ink); font-size: 15px; font-weight: 700; font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.chart .bv.in { fill: #FFFFFF; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .k { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend .k.bar { background: var(--brand-2); }
.legend .k.low { background: #C0392B; }
.legend .k.linl { width: 4px; height: 14px; border-radius: 1px; background: var(--gold); }
details.refs { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 13px; }
details.refs summary { font-weight: 700; cursor: pointer; }
details.refs ol { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.brand-wrap { display: flex; align-items: center; gap: 10px; }
.badge { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.login-logo { align-self: center; width: 168px; height: 168px; max-width: 100%; border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.rp-card { background: #FFFFFF; border-radius: 14px; padding: 10px 14px; display: flex; align-items: center; gap: 14px; }
.rp-card img { height: 58px; width: auto; flex: none; }
.rp-card span { color: #443A69; font-size: 13px; font-weight: 600; line-height: 1.35; }
.profs { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.profs .photo { aspect-ratio: 16 / 9; max-width: 100%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; color: var(--on-brand); font-family: var(--font-display); font-weight: 700; font-size: 22px; text-align: center; padding: 16px; }
.profs .photo small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px; opacity: .8; margin-top: 4px; }
.profs .info { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.profs .info strong { font-size: 14.5px; }
.footer-rp { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 6px; }
.footer-rp img { height: 40px; width: auto; border-radius: 8px; background: #FFFFFF; padding: 3px 6px; }
.footer-rp span { font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .toast { animation: up .2s ease-out; } @keyframes up { from { opacity: 0; transform: translate(-50%, 6px); } } }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--brand-soft); border-radius: 12px; padding: 4px; }
.seg button { border: 0; background: transparent; border-radius: 9px; padding: 9px 6px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.seg button[aria-current="page"] { background: var(--surface); color: var(--brand-2); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.pq { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pq div { background: var(--brand-soft); border-radius: 10px; padding: 8px 10px; }
.pq span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pq strong { display: block; font-size: 13.5px; line-height: 1.3; margin-top: 2px; }
.psec h3 { font-family: var(--font-display); font-size: 16px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.psec h3 i { font-style: normal; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 13px; background: var(--brand-soft); color: var(--brand-2); }
.psec ul, .psec ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.45; }
.psec ol.steps { list-style: none; padding: 0; counter-reset: s; gap: 10px; }
.psec ol.steps li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.psec ol.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.say { display: grid; gap: 6px; }
.say p { margin: 0; background: var(--gold-soft); border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; padding: 8px 10px; font-size: 14px; }
.say p b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stop { --stop-bg: #FBE4E1; --stop-ink: #8E1F18; background: var(--stop-bg); border-radius: 14px; padding: 14px 16px; }
.stop h3, .stop li { color: var(--stop-ink); }
.stop h3 i { background: #B3261E; color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stop { --stop-bg: #3A1F24; --stop-ink: #F4B4AE; } }
:root[data-theme="dark"] .stop { --stop-bg: #3A1F24; --stop-ink: #F4B4AE; }
.psrc { font-size: 12px; color: var(--muted); margin: 0; }
.chart .bar.prev { fill: var(--brand-2); opacity: .35; }
.chart .bv.sm { font-size: 12.5px; }
.legend .k.prevk { background: var(--brand-2); opacity: .35; }
.cmp { display: grid; gap: 0; }
.cmp-r { border-top: 1px solid var(--line); padding: 10px 0; }
.cmp-r:first-child { border-top: 0; padding-top: 2px; }
.cmp-n { font-weight: 700; font-size: 14.5px; }
.cmp-v { font-size: 15px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.cmp-d { color: var(--muted); font-size: 13px; }
.cmp-i { font-size: 13px; color: var(--muted); margin-top: 2px; font-weight: 600; }
.cmp-i span { font-weight: 400; }
.cmp-dm { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cmp-i.ok { color: var(--good); }
.cmp-i.bad { color: #B3261E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cmp-i.bad { color: #F4B4AE; } }
:root[data-theme="dark"] .cmp-i.bad { color: #F4B4AE; }
.hist-r { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.hist-r > div { flex: 1; min-width: 0; }
.hist-r strong { display: block; font-size: 14.5px; }
.hist-r span { font-size: 12.5px; color: var(--muted); }

/* ===== Tablet e computador ===== */
.calc-split { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 768px) {
  .app { max-width: none; display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); box-shadow: none; }
  .proto-bar { grid-column: 1 / -1; }
  #view { grid-column: 2; grid-row: 2; min-width: 0; }
  nav.tabs { grid-column: 1; grid-row: 2; border-top: 0; border-right: 1px solid var(--line); padding: 12px 6px; }
  nav.tabs[hidden] { display: none; }
  .app:has(nav.tabs[hidden]) #view { grid-column: 1 / -1; }
  .tabs-in { grid-template-columns: 1fr; gap: 6px; }
  .tab { padding: 12px 2px; font-size: 11.5px; border-radius: 12px; }
  .tab[aria-current="page"] { background: var(--brand-soft); }
  header.top.gutter, main.gutter { padding-left: max(28px, calc((100% - 1040px) / 2)); padding-right: max(28px, calc((100% - 1040px) / 2)); }
  header.top { padding-block: 20px 22px; }
  .top h1 { font-size: 28px; }
  main { padding-block: 24px 40px; }
  .needs { grid-template-columns: repeat(4, 1fr); }
  .cgrid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .toast { bottom: 28px; }
  .login.gutter { padding-left: max(28px, calc((100% - 520px) / 2)); padding-right: max(28px, calc((100% - 520px) / 2)); }
  .login h1 { font-size: 30px; }
}
@media (min-width: 1100px) {
  .app { grid-template-columns: 230px minmax(0, 1fr); }
  nav.tabs { padding: 18px 12px; }
  .tab { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; font-size: 14.5px; }
  .calc-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 20px; }
  .calc-res { position: sticky; top: 0; }
  .calc-split .cgrid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
.smart-mini{display:inline-flex;gap:3px;margin-right:10px;vertical-align:middle}
.smart-mini b{background:#fff;color:var(--brand);display:inline-grid;place-items:center;width:20px;height:20px;border-radius:5px;font-size:12px;font-weight:700;line-height:1}
.smart-mini b.g{background:var(--gold);color:var(--gold-ink)}
.btn.ghost .smart-mini b{background:var(--brand);color:#fff}.btn.ghost .smart-mini b.g{background:var(--gold);color:var(--gold-ink)}
.btn-smart{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px}
.smart-arte{margin:0;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px 12px 14px}
.smart-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;position:relative}
.smart-col{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;min-width:0}
.smart-col b{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;font-family:"Bricolage Grotesque",sans-serif;font-size:24px;font-weight:700;box-shadow:0 2px 0 rgba(34,29,53,.12)}
.smart-col .sw{font-weight:700;font-size:11px;letter-spacing:-.01em;color:var(--ink);line-height:1.15}
.smart-col .sd{font-size:10.5px;color:var(--muted);line-height:1.2}
.smart-arte figcaption{margin-top:12px;padding:10px 12px;background:var(--gold-soft);border-radius:10px;font-size:13px;line-height:1.4;color:var(--ink)}
.smart-arte .sx{display:inline-block;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--gold-ink);margin-right:4px}
@media (min-width:768px){.smart-col b{width:56px;height:56px;font-size:30px}.smart-col .sw{font-size:14px}.smart-col .sd{font-size:12px}}
#voz-rec.rec-on{background:#B3261E}
.rec-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#fff;margin-right:6px;animation:recp 1s infinite}
@keyframes recp{50%{opacity:.3}}
@media (prefers-reduced-motion:reduce){.rec-dot{animation:none}}
/* semáforo */
.semaforo { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 10px; }
.sem-luzes { background: #2A2340; border-radius: 22px; padding: 8px; display: flex; flex-direction: column; gap: 7px; flex: none; }
.luz { width: 34px; height: 34px; border-radius: 50%; opacity: .22; }
.luz.g { background: #2BB673; } .luz.y { background: #FFC24A; } .luz.r { background: #F0544F; }
.luz.on { opacity: 1; box-shadow: 0 0 14px 3px currentColor; }
.luz.g.on { color: rgba(43,182,115,.7); } .luz.y.on { color: rgba(255,194,74,.8); } .luz.r.on { color: rgba(240,84,79,.75); }
.sem-txt strong { display: block; font-family: var(--font-display); font-size: 22px; }
.sem-txt span { color: var(--muted); }

