:root {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #132842;
  background: #f4f2ec;
  color-scheme: light;
  --navy: #132842;
  --muted: #4c5d69;
  --line: #d8dedc;
  --teal: #195d56;
  --paper: #fff;
  --soft: #e8f2ee;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, textarea, input, select { font: inherit; }
button { cursor: pointer; min-height: 44px; border: 1px solid transparent; border-radius: 10px; font-weight: 650; padding: 9px 14px; }
button:disabled { opacity: .58; cursor: default; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid #2a796d; outline-offset: 3px; }
.top { background: var(--navy); color: white; }
.top-inner { max-width: 950px; margin: auto; padding: 10px 16px; min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { background: transparent; color: white; text-align: left; padding: 0 3px; display: flex; align-items: center; gap: 7px; font-size: .94rem; line-height: 1.2; }
.brand img { border-radius: 9px; }
.brand span span { display: block; font-size: .78rem; color: #c8dedb; font-weight: 500; }
.connection { color: #e4f4f0; border: 1px solid #6c898f; border-radius: 999px; padding: 5px 9px; font-size: .76rem; white-space: nowrap; }
.system { display: flex; flex-wrap: wrap; align-items: center; gap: 0 9px; margin: auto; max-width: 780px; padding: 2px 16px; color: var(--muted); font-size: .82rem; min-height: 48px; }
#offline-status { margin-right: auto; }
.compact { padding: 4px 7px; font-size: .82rem; }
main { max-width: 780px; margin: auto; padding: 5px 16px 28px; overflow-wrap: anywhere; }
.panel { background: var(--paper); padding: clamp(16px, 4vw, 30px); border: 1px solid var(--line); border-radius: 19px; }
.hero { background: #17344d; color: #fff; border-radius: 19px; padding: clamp(20px, 5vw, 35px); margin-bottom: 18px; }
.hero p { color: #d7e9e6; }
.hero .primary { background: #e5c993; color: var(--navy); }
h1, h2, h3, p { margin: 0 0 12px; }
h1 { font-size: clamp(1.46rem, 4.6vw, 2.2rem); line-height: 1.17; letter-spacing: -.025em; }
h2 { font-size: 1.26rem; line-height: 1.25; }
h3 { font-size: 1rem; }
p { line-height: 1.55; }
.eyebrow { font-size: .73rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--teal); }
.hero .eyebrow { color: #e5c993; }
.muted, .help { color: var(--muted); font-size: .88rem; }
.progress { display: grid; gap: 7px; margin-bottom: 15px; }
.progress p { margin: 0; }
progress { height: 7px; width: 100%; border: 0; border-radius: 99px; overflow: hidden; appearance: none; background: #dce4e1; color: var(--teal); }
progress::-webkit-progress-bar { background: #dce4e1; }
progress::-webkit-progress-value { background: var(--teal); }
progress::-moz-progress-bar { background: var(--teal); }
fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.options { display: grid; gap: 8px; margin: 12px 0; }
.option-row { display: grid; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.option-row:has(input:checked) { border-color: #3d7e73; background: var(--soft); }
.choice { min-height: 49px; display: flex; gap: 11px; align-items: center; padding: 9px 11px; line-height: 1.38; cursor: pointer; }
.choice input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--teal); }
.option-row .quiet, .priority { justify-self: start; margin: 0 0 2px 40px; font-size: .85rem; }
.priority { color: var(--teal); font-weight: 720; padding: 0 0 9px; }
.coach { background: #faf3e5; border: 1px solid #e8dbc0; border-left: 4px solid #b68842; padding: 12px; border-radius: 9px; margin: 12px 0; }
.coach p:last-child { margin-bottom: 0; }
.field { display: grid; gap: 5px; margin: 10px 0; font-weight: 650; }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 44px; padding: 9px 10px; border: 1px solid #889a9a; border-radius: 8px; color: var(--navy); background: #fff; font-size: 1rem; font-weight: 400; }
textarea { min-height: 100px; resize: vertical; }
details { margin: 8px 0; border-top: 1px solid var(--line); }
summary { min-height: 44px; padding: 10px 3px; font-weight: 650; cursor: pointer; }
.nav { position: sticky; bottom: 0; z-index: 1; background: #f4f2ec; border-top: 1px solid var(--line); margin-top: 10px; padding: 6px 0 max(5px, env(safe-area-inset-bottom)); }
.nav-main { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
.nav-extra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.nav-extra button { font-size: .85rem; padding-inline: 7px; }
.status { min-height: 1.3rem; margin: 0; font-size: .76rem; color: var(--muted); }
.status[data-state="error"], .status[data-state="conflict"], .error { color: #8b2820; }
.primary { color: #fff; background: var(--teal); }
.secondary { color: var(--navy); background: #fff; border-color: #98a5a8; }
.quiet { color: var(--teal); background: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 10px 0; border-top: 1px solid var(--line); }
.list .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 7px; }
.list p { margin: 0; }
.badge { display: inline-block; background: var(--soft); color: var(--teal); padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
dialog { padding: 0; color: var(--navy); border: 1px solid var(--line); border-radius: 15px; width: min(520px, calc(100% - 30px)); max-height: 90dvh; }
dialog::backdrop { background: #0b1a2ab5; }
.dialog-body { padding: 18px; overflow-wrap: anywhere; }
@media (max-height: 480px) { .nav { position: static; } }
.danger { color: #fff; background: #8b2820; }
.danger-text { color: #8b2820; }
.record-choice { padding-inline: 0; }
.record-actions { margin-left: auto; }
.trash-button { display: grid; place-items: center; width: 44px; padding: 0; }
.trash-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.report { display: grid; gap: 12px; }
.report .hero { margin-bottom: 0; }
.report-hero { display: flex; gap: 15px; justify-content: space-between; align-items: flex-start; }
.report-hero img { max-width: min(28%, 105px); max-height: 74px; border-radius: 8px; object-fit: contain; }
.report-block { margin-bottom: 10px; }
.report .report-block { margin: 0; }
.report-phase { border-left: 4px solid var(--teal); }
.report-line + .report-line { margin-top: 10px; }
.report-line h3 { margin-bottom: 3px; font-size: .84rem; color: var(--teal); }
.report-line p, .report-block > p:last-child { margin-bottom: 0; }
.report-reflection { margin: 14px 0; }
.report-agenda { padding-left: 23px; line-height: 1.48; }
.report-agenda li { margin-bottom: 5px; }
.report-cta { background: var(--navy); }
.cta-link, .report-link { display: inline-flex; min-height: 44px; align-items: center; padding: 7px 10px; font-weight: 700; }
.cta-link { background: #e5c993; color: var(--navy); border-radius: 9px; }
.report-link { color: #d7e9e6; }
.report-limit { padding: 0 3px; }
.audit-list { padding-left: 22px; line-height: 1.45; }
.audit-list li { margin-bottom: 8px; }
.original-note { white-space: pre-wrap; }
.report-opening ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 12px; }
.report-opening li { display: grid; gap: 3px; padding-left: 13px; border-left: 3px solid var(--teal); line-height: 1.45; }
.report-opening strong { color: var(--teal); font-size: .8rem; }
.report-phase-overview > h2, .report-insights > h2 { margin: 8px 0 14px; }
.report-phase-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.report-phase-grid .panel { padding: 16px; }
.report-phase-grid h3 { line-height: 1.35; }
.report-phase-grid .report-line { margin-top: 12px; }
.report-phase-grid .report-line h3 { font-size: .74rem; }
.report-phase-grid .report-line p { font-size: .87rem; line-height: 1.45; }
.report-insight { border: 1px solid var(--line); border-left: 4px solid var(--teal); margin-bottom: 12px !important; }
.report-insight summary { padding: 3px 0 10px; font-size: 1.1rem; color: var(--navy); }
.report-insight p { margin-top: 10px; }
@media(max-width: 620px) { .report-phase-grid { grid-template-columns: 1fr; } }

/* Padrão editorial aprovado: escuro, duas camadas e leitura móvel. */
.report{--report-bg:#132842;--report-box:#1d384b;--report-gold:#d1b989;background:var(--report-bg);color:#f3f5f7;border-radius:18px;padding:clamp(14px,3vw,28px);overflow-wrap:anywhere}
.report .panel,.report .hero{background:var(--report-box);color:#f3f5f7;border-color:#496171;box-shadow:none}
.report h1,.report h2,.report h3,.report summary{color:#f3f5f7}
.report h2{font-size:clamp(1.15rem,3vw,1.5rem)}
.report p,.report li{line-height:1.6;font-size:1rem}
.report .eyebrow,.report-priority{color:var(--report-gold)}
.report .muted,.report .help{color:#bdcdd5}
.report-hero{padding:0 0 18px;background:transparent!important;border-bottom:1px solid #496171;border-radius:0}
.report-phase-grid{display:grid;grid-template-columns:1fr;gap:8px}
.report-phase{padding:14px 18px;border-left:3px solid var(--report-gold)}
.report-phase h3{font-size:1.05rem;margin:0}
.report-phase p{margin:5px 0}
.report-insight h3{display:flex;align-items:flex-start;gap:10px;line-height:1.45;font-size:1.15rem}
.report-number{display:inline-grid;place-items:center;flex:0 0 29px;height:29px;border-radius:50%;background:var(--report-gold);color:var(--report-bg)}
.report-quick{background:#2a4251;border-left:3px solid var(--report-gold);border-radius:6px;padding:12px 16px;margin:12px 0}
.report-quick .eyebrow{margin:0}
.report-quick ul{margin:8px 0 0;padding-left:20px}
.report-insight details{background:transparent;border:0;padding:0}
.report-insight summary{font-size:1rem;text-decoration:underline;text-underline-offset:4px}
.report .report-reflection{background:#2a4251;color:var(--report-gold);border-color:var(--report-gold)}
.report .report-reflection p{font-size:1.05rem}
.report-cta{border-top:3px solid var(--report-gold)}
.report a,.report .report-link{color:var(--report-gold)}
.report .cta-link{background:var(--report-gold);color:#132842}
.report-opening li{padding-bottom:8px}
@media(max-width:480px){.report{padding:14px;border-radius:10px}.report .panel,.report .hero{padding:14px}.report .report-hero{padding:0 0 16px}.report-quick{padding:10px 12px}.report .actions{align-items:stretch;gap:12px}.report .cta-link{white-space:normal}}
.report-opening li{border-left-color:var(--report-gold)}
.report-opening strong,.report .report-line h3{color:var(--report-gold)}

/* Ajustes pontuais de leitura e hierarquia do relatório, sem alterar as telas do questionário. */
.report .report-hero p{margin:0 0 14px}
.report .report-hero h1{line-height:1.2;margin:8px 0 18px}
.report .report-hero .report-priority{margin:18px 0 14px}
.report .report-hero p:last-child{margin-bottom:0}
.report-cta .actions{gap:10px 16px;align-items:center}
.report-cta .cta-link{justify-content:center;min-height:48px;padding:12px 20px;text-decoration:none;box-shadow:0 2px 0 #071929;font-size:1rem}
.report-cta .cta-link:focus-visible{outline:3px solid #fff;outline-offset:4px}
.report-cta .report-link{font-size:.9rem;font-weight:600}
@media(max-width:480px){.report-cta .cta-link{width:100%}.report-cta .actions{justify-content:flex-start}}

/* B2-03: dois filtros exclusivos, com alvos de toque já usados no app. */
.record-filters { margin-bottom: 12px; }
.record-filters button { flex: 1; min-width: 0; }

/* B2-04: acesso local e organização dos formulários existentes. */
.settings-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.settings-button svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.settings-page { display: grid; gap: 14px; }
.settings-page > * { min-width: 0; }
