#diag {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --soft: #efe9df;
  --ink: #082747;
  --muted: #566574;
  --line: #ddd5c8;
  --primary: #082747;
  --on-primary: #ffffff;
  --orange: #d6632d;
  --cta: #c2531c;
  --on-cta: #ffffff;
  --ring: #c9d3dc;
  --c1: #b3261e; --c1bg: #fbe6e3;
  --c2: #a9511a; --c2bg: #fbe9dc;
  --c3: #7a6200; --c3bg: #f6efcf;
  --c4: #1b6b8a; --c4bg: #dff0f6;
  --c5: #1d7a4a; --c5bg: #dcf1e5;
  --font-title: "Vidaloka", Georgia, serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
#diag * { box-sizing: border-box; }
#diag { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
#diag .wrap { max-width: 720px; margin: 0 auto; padding-block: 20px 56px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
#diag .brand { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
#diag h1, #diag h2, #diag h3 { font-family: var(--font-title); font-weight: 400; line-height: 1.2; text-wrap: balance; margin: 0; }
#diag h1 { font-size: 30px; margin-bottom: 10px; }
#diag h2 { font-size: 24px; }
#diag h3 { font-size: 19px; }
#diag p { margin: 0; }
#diag .lead { color: var(--muted); max-width: 60ch; margin-bottom: 20px; }
#diag .intro-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
#diag .intro-head h1 { margin: 0; font-size: clamp(25px, 6.2vw, 32px); }
#diag .avatar { flex: none; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid var(--orange); background: var(--soft); }
#diag .sig { display: block; width: 150px; height: auto; margin: -6px 0 0; }
@media (max-width: 480px) {
#diag .avatar { width: 84px; height: 84px; border-width: 3px; }
#diag .intro-head { gap: 14px; }
}
#diag .card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
#diag .stack { display: grid; gap: 16px; }
#diag .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#diag .fields .full { grid-column: 1 / -1; }
@media (max-width: 520px) {
#diag .fields { grid-template-columns: 1fr; }
}
#diag .field { min-width: 0; }
#diag .field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
#diag input[type=text], #diag input[type=tel], #diag select { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--orange);
  border-radius: 8px; padding: 10px 12px; min-height: 44px; }
#diag .err { color: var(--c1); font-size: 13px; min-height: 1.2em; margin-top: 2px; }
#diag .how { background: var(--soft); border-radius: 10px; padding: 14px 16px; font-size: 14.5px; }
#diag .how b { font-weight: 700; }
#diag .how p + p { margin-top: 6px; }
#diag .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
#diag .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
#diag .consent input { flex: none; margin-top: 3px; width: 18px; height: 18px; accent-color: var(--cta); }
#diag .consent a { color: var(--ink); }
#diag button { font: inherit; font-weight: 600; border-radius: 8px; padding: 12px 22px; min-height: 46px; cursor: pointer;
  border: 1px solid var(--cta); background: var(--cta); color: var(--on-cta); }
#diag button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
#diag button.cta { background: var(--cta); border-color: var(--cta); color: var(--on-cta); }
#diag button:disabled { opacity: .45; cursor: not-allowed; }
#diag button:focus-visible, #diag input:focus-visible, #diag select:focus-visible, #diag .opt:focus-within { outline: 3px solid var(--primary); outline-offset: 2px; }
#diag a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; border-radius: 8px;
  padding: 13px 24px; min-height: 48px; background: var(--cta); color: var(--on-cta); text-align: center; }
#diag a.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
#diag a.btn.alt { background: transparent; color: var(--cta); border: 1px solid var(--cta); }
#diag details { margin-top: 10px; font-size: 14px; }
#diag summary { cursor: pointer; color: var(--muted); }
#diag .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
#diag .row.between { justify-content: space-between; }
#diag .demo { background: none; border: none; color: var(--muted); text-decoration: underline; padding: 6px 0; min-height: 0; font-weight: 400; font-size: 13px; }
#diag .sticky { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); padding: 10px 0 12px; margin-bottom: 10px; }
#diag .steptitle { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
#diag .steptitle .k { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
#diag .bar { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; }
#diag .bar > i { display: block; height: 100%; background: var(--orange); border-radius: 99px; }
#diag fieldset.q { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 14px 14px 12px; margin: 0 0 12px; min-width: 0; }
#diag fieldset.q.done { border-color: var(--primary); }
#diag fieldset.q legend { padding: 0; float: left; width: 100%; font-weight: 600; margin-bottom: 10px; }
#diag fieldset.q legend span.n { font-family: var(--font-title); color: var(--muted); margin-right: 6px; font-weight: 400; }
#diag .scale { clear: both; display: grid; grid-template-columns: repeat(5, 1fr) 1.25fr; gap: 6px; }
#diag .opt { position: relative; display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid var(--orange);
  border-radius: 8px; cursor: pointer; font-weight: 700; background: var(--bg); user-select: none; }
#diag .opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
#diag .opt.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
#diag .opt.na { font-size: 13px; font-weight: 600; color: var(--muted); }
#diag .opt.na.on { color: var(--on-primary); }
#diag .ends { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 6px; padding-right: 22%; }
#diag .nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
#diag .chip { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 99px; white-space: nowrap; }
#diag .k1 { color: var(--c1); background: var(--c1bg); }
#diag .k2 { color: var(--c2); background: var(--c2bg); }
#diag .k3 { color: var(--c3); background: var(--c3bg); }
#diag .k4 { color: var(--c4); background: var(--c4bg); }
#diag .k5 { color: var(--c5); background: var(--c5bg); }
#diag .k0 { color: var(--muted); background: var(--soft); }
#diag .hero { text-align: center; padding: 24px 16px; }
#diag .big { font-family: var(--font-title); font-size: 64px; line-height: 1; font-variant-numeric: tabular-nums; }
#diag .big small { font-size: 24px; color: var(--muted); font-family: var(--font-body); }
#diag .hero .chip { font-size: 15px; padding: 4px 14px; margin: 10px 0; }
#diag .meta { color: var(--muted); font-size: 14px; }
#diag svg.radar { width: 100%; height: auto; max-width: 460px; display: block; margin: 0 auto; }
#diag .radar .grid { fill: none; stroke: var(--ring); stroke-width: 1; }
#diag .radar .axis { stroke: var(--ring); stroke-width: 1; }
#diag .radar .area { fill: var(--primary); fill-opacity: .2; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; }
#diag .radar .dot { fill: var(--primary); }
#diag .radar text { fill: var(--ink); font-family: var(--font-body); font-size: 13px; font-weight: 600; }
#diag .radar text.r { fill: var(--muted); font-size: 10.5px; font-weight: 400; }
#diag .sec { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
#diag .sec:first-child { border-top: 0; }
#diag .sec .nm { font-weight: 700; }
#diag .sec .sc { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; font-size: 18px; }
#diag .sec .nm .chip { margin: 2px 0 0 6px; font-size: 12px; }
#diag .sec .track { grid-column: 1 / -1; height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; }
#diag .sec .track i { display: block; height: 100%; border-radius: 99px; background: var(--primary); }
#diag .sec .read { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
#diag .focus { display: grid; gap: 12px; margin-top: 12px; }
#diag .focus .it { border-left: 4px solid var(--cta); padding: 2px 0 2px 12px; }
#diag .focus .it b { display: block; }
#diag .msg { background: var(--soft); border-radius: 8px; padding: 12px 14px; font-size: 14px; white-space: pre-line; margin: 12px 0 16px; overflow-wrap: anywhere; }
#diag .foot { margin-top: 28px; font-size: 13px; color: var(--muted); }
#diag #live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#diag [hidden] { display: none !important; }
#diag .sticky { top: 64px; }
@media (min-width: 768px) { #diag .sticky { top: 72px; } }
#diag .wrap { padding-bottom: 110px; }
#diag .consent a { text-decoration: underline; }
#diag h1, #diag h2, #diag h3 { color: var(--ink); }
#diag a.btn { color: var(--on-cta); }
#diag a.btn.alt { color: var(--cta); }

/* Duas caixas de consentimento no topo do cadastro (25-10-2026) */
#diag .consents { display: grid; gap: 14px; padding-bottom: 6px; border-bottom: 1px solid var(--line, rgba(0,0,0,.12)); margin-bottom: 4px; }
