/* RD Performance · estilo comum da ficha do aluno e do painel do Robson (vindo da demo aprovada em 2026-12-02). */
:root {
  --bg: #F3F1EE;
  --surface: #FFFFFF;
  --surface-2: #F7F5F2;
  --ink: #121110;
  --muted: #5F5A54;
  --line: #DDD8D1;
  --accent: #121110;
  --accent-soft: #EADFD0;
  --on-accent: #FFFFFF;
  --gold: #8C6A3F;
  --crit: #C8281C; --crit-soft: #FBE3E1;
  --warn: #9A5A00; --warn-soft: #FCEFD7;
  --ok: #10744F; --ok-soft: #DDF3EA;
  --stripe: rgba(17,17,16,.06);
  --display: "Montserrat", "Arial Black", system-ui, sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0A0A0A; --surface: #151413; --surface-2: #1D1C1A; --ink: #F2EFEA; --muted: #A39C93; --line: #2E2B28;
  --accent: #E9CDAA; --accent-soft: #3A3024; --on-accent: #121110; --gold: #E9CDAA;
  --crit: #FF6B5F; --crit-soft: #3B1714; --warn: #F2B24C; --warn-soft: #36280F; --ok: #4CC79A; --ok-soft: #10301F;
  --stripe: rgba(255,255,255,.05); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0A0A0A; --surface: #151413; --surface-2: #1D1C1A; --ink: #F2EFEA; --muted: #A39C93; --line: #2E2B28;
  --accent: #E9CDAA; --accent-soft: #3A3024; --on-accent: #121110; --gold: #E9CDAA;
  --crit: #FF6B5F; --crit-soft: #3B1714; --warn: #F2B24C; --warn-soft: #36280F; --ok: #4CC79A; --ok-soft: #10301F;
  --stripe: rgba(255,255,255,.05); color-scheme: dark; }

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }


.wrap { max-width: 440px; margin: 0 auto; padding-block: 20px 120px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--accent); font-weight: 700; cursor: pointer; padding: 4px 0; margin-bottom: 12px; font-size: 15px; }

.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.logo { width: 64px; height: 44px; border-radius: 10px; background: #0B0B0B; overflow: hidden; flex: none; display: grid; place-items: center; }
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand b { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; display: block; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 14px; }

/* Intro */
.hero { background: var(--surface); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.hero-photo { aspect-ratio: 4/3.4; max-width: 100%; background: #0B0B0B; display: block; width: 100%; object-fit: cover; object-position: 50% 18%; border-bottom: 1px solid var(--line); }
.hero-body { padding: 24px; display: grid; gap: 16px; }
.eyebrow { font-family: var(--display); font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 7.6vw, 42px); line-height: 1.02; margin: 0; text-transform: uppercase; text-wrap: balance; letter-spacing: -.01em; }
.about { border-top: 1px solid var(--line); padding-top: 14px; }
.about summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.about summary::-webkit-details-marker { display: none; }
.about summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--gold); }
.about[open] summary::after { content: "–"; }
.about-body { display: grid; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 15px; }
.about-body p { margin: 0; }
.about-body .who { color: var(--ink); font-weight: 600; }
.pillars { display: grid; gap: 8px; }
.pillar { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.pillar small { display: block; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.pillar span { color: var(--ink); }
.lead { color: var(--muted); margin: 0; max-width: 52ch; }
.facts { display: flex; gap: 8px; flex-wrap: wrap; }
.fact { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 500; }

.btn { border: 0; border-radius: 12px; padding: 14px 22px; font-weight: 700; cursor: pointer; font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-link { background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }

/* Progresso */
.progress { display: grid; gap: 8px; margin-bottom: 18px; }
.progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.progress-top span { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bars i { height: 6px; border-radius: 3px; background: var(--line); }
.bars i.on { background: var(--accent); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 22px; }
h2 { font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; margin: 0; line-height: 1.05; text-wrap: balance; }
.step-hint { color: var(--muted); margin: 6px 0 0; font-size: 15px; }

.field { display: grid; gap: 8px; min-width: 0; }
.field > .lbl { font-weight: 600; font-size: 15px; }
.field .opt { color: var(--muted); font-weight: 400; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-width: 0; }
textarea { min-height: 84px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.suffix { position: relative; }
.suffix input { padding-right: 46px; }
.suffix em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 9px 16px; cursor: pointer; font-weight: 500; font-size: 15px; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.follow { margin-top: 4px; display: grid; gap: 6px; }
.follow[hidden] { display: none; }
.follow span { font-size: 14px; font-weight: 600; color: var(--muted); }
.scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.scale .chip { padding: 10px 0; text-align: center; border-radius: 8px; font-variant-numeric: tabular-nums; }
.scale-legend { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }

.imc { display: flex; gap: 12px; align-items: center; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.imc b { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.imc span { color: var(--muted); }

.consent { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border-radius: 12px; padding: 14px; font-size: 14px; color: var(--muted); }
.consent input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin-top: 2px; }
.err { color: var(--crit); font-size: 14px; font-weight: 600; }

.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--surface); border-top: 1px solid var(--line);
  padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.nav-in { max-width: 408px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 10px; }

/* Fim */
.done { text-align: left; }
.done .check { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }

/* Visão do personal */
.p-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.p-head h1 { font-size: 30px; }
.list { display: grid; gap: 8px; }
.item { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; display: grid; gap: 4px; }
.item[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.item b { font-size: 16px; }
.item small { color: var(--muted); font-size: 13px; }
.item .dots { display: flex; gap: 4px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.new { background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; letter-spacing: .04em; justify-self: start; }

.ficha { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 20px; min-width: 0; }
.f-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: start; }
.f-top h2 { font-size: 26px; }
.f-top p { margin: 4px 0 0; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.kpi { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.kpi small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; display: block; }
.kpi b { font-family: var(--display); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; line-height: 1.1; overflow-wrap: anywhere; }
.flags { display: flex; flex-wrap: wrap; gap: 8px; }
.flag { border-radius: 8px; padding: 6px 10px; font-size: 14px; font-weight: 600; }
.flag.crit { background: var(--crit-soft); color: var(--crit); }
.flag.warn { background: var(--warn-soft); color: var(--warn); }
.flag.ok { background: var(--ok-soft); color: var(--ok); }
.sec h3 { font-family: var(--display); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin: 0 0 8px; }
.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; border-top: 1px solid var(--line); }
.kv > div { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.kv > div:nth-child(odd) { color: var(--muted); padding-right: 12px; }
.f-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.f-actions .btn { padding: 12px 10px; font-size: 15px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); text-align: center; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 40; }
.note { color: var(--muted); font-size: 13px; margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) { .card, .hero, .ficha { animation: rise .25s ease-out; } @keyframes rise { from { transform: translateY(6px); } to { transform: none; } } }

/* Versão real (2026-12-02) */
body { margin: 0; }
.brand small .cref { white-space: nowrap; }
.login { display: grid; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.p-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-danger { background: transparent; border: 1px solid var(--line); color: var(--crit); }
.f-actions-3 { grid-template-columns: 1fr 1fr; }
.f-actions-3 .btn-danger { grid-column: 1 / -1; }
.vazio { background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; padding: 20px; color: var(--muted); }
.salvo { color: var(--muted); font-size: 13px; }
