/* Perfil no computador (>= 1024px). No celular o bloco .pf-only fica escondido e a página de sempre continua. */
.pf-only { display: none; }
@media (min-width: 0px) {
  .pf-only { display: block; }
  .student-header, .safe-bottom { display: none !important; }
  .pf-desk { display: flex; flex-direction: column; gap: 16px; max-width: 1400px; margin: 0 auto; padding: 14px 24px 48px; }
  .pf-card { min-width: 0; background: var(--bg-card); border: 1px solid rgba(80,110,230,.28); border-radius: 20px; padding: 20px 22px; }
  .pf-tit { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; color: var(--text-strong); margin-bottom: 14px; } .pf-tit .ic { font-size: 20px; }
  .pf-tit small, .pf-tit a { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--text-dim); text-decoration: none; }
  .pf-l3 { display: grid; grid-template-columns: 1fr 1.7fr 1.1fr; gap: 16px; } .pf-l3b { display: grid; grid-template-columns: 1.1fr 1.1fr 1fr; gap: 16px; } .pf-l3c { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; align-items: stretch; } .pf-l3c > div { display: flex; flex-direction: column; min-width: 0; } .pf-l3c > div > .pf-card { flex: 1; } .pf-l3c > .pf-card { display: flex; flex-direction: column; } .pf-l3c .pf-badges { flex: 1; align-content: space-around; }

  /* topo: banner igual ao mockup (tudo medido em % da largura do banner: 1890 = 100cqw) */
  .pf-topo { container-type: inline-size; position: relative; overflow: hidden; aspect-ratio: 1890 / 364; border-radius: 2.1cqw; border: .12cqw solid #1d5fe0; box-shadow: 0 0 2cqw rgba(30,100,255,.4), inset 0 -.12cqw .5cqw rgba(60,150,255,.55);
    background: radial-gradient(ellipse at 88% 10%, #0b2a86, transparent 55%), linear-gradient(100deg, #021043, #02091f 70%); }
  .pf-topo > * { position: absolute; margin: 0; }
  .pf-arte { z-index: 0; left: 41.96cqw; top: .3cqw; width: 26.24cqw; height: 17cqw; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); } .pf-arte img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .pf-pan { z-index: 1; left: .5cqw; top: .5cqw; right: 0; bottom: 1cqw; clip-path: polygon(0 0, 41.5cqw 0, 58.9cqw 100%, 0 100%); border-radius: 1.6cqw 0 0 1.6cqw; background: linear-gradient(100deg, #0a3aa6 0%, #003080 9%, #011a5c 20%, #011245 32%, #031543 48%, #04204f 60%); }
  .pf-foto { z-index: 2; left: 2.65cqw; top: 2.65cqw; width: 13.76cqw; height: 13.76cqw; box-sizing: border-box; border-radius: 50%; cursor: pointer; border: .34cqw solid #f5b800; box-shadow: 0 0 1.4cqw rgba(245,184,0,.6); background: linear-gradient(135deg, #8b5cf6, #3b82f6) center / cover; display: grid; place-items: center; font-size: 5cqw; font-weight: 900; color: #fff; }
  .pf-lapis { z-index: 3; left: 12.15cqw; top: 12.6cqw; width: 3.8cqw; height: 3.8cqw; padding: .85cqw; box-sizing: border-box; border-radius: 50%; cursor: pointer; background: #050d3a; border: .12cqw solid #2c6bff; } .pf-lapis svg { width: 100%; height: 100%; display: block; }
  .pf-nome { z-index: 2; left: 18cqw; top: 3.3cqw; display: flex; align-items: center; gap: 1.3cqw; font-size: 2.95cqw; line-height: 1.15; font-weight: 800; color: #fff; letter-spacing: -.01em; white-space: nowrap; }
  .pf-ver { display: grid; place-items: center; width: 2.2cqw; height: 2.2cqw; padding: .4cqw; box-sizing: border-box; border-radius: 50%; background: #1f7bff; } .pf-ver svg { width: 100%; height: 100%; }
  .pf-form { z-index: 2; left: 18cqw; top: 7.4cqw; font-size: 1.62cqw; line-height: 1.2; color: #eef2ff; white-space: nowrap; }
  .pf-nivel { z-index: 2; left: 18cqw; top: 10.5cqw; display: flex; align-items: center; justify-content: center; gap: .9cqw; box-sizing: border-box; width: 19.5cqw; height: 3.55cqw; border-radius: 999px; font-size: 1.5cqw; font-weight: 800; color: #fff; background: linear-gradient(180deg, #e3a21a, #a96d06); border: .1cqw solid #f0b43a; box-shadow: 0 0 1cqw rgba(240,180,58,.3); white-space: nowrap; } .pf-nivel i { display: block; width: 1.9cqw; height: 1.9cqw; } .pf-nivel svg { width: 100%; height: 100%; display: block; }
  .pf-desde { z-index: 2; left: 18cqw; top: 15.2cqw; display: flex; align-items: center; gap: 1.1cqw; font-size: 1.4cqw; color: #cdd7f6; white-space: nowrap; } .pf-desde i { display: block; width: 1.7cqw; height: 1.7cqw; } .pf-desde svg { width: 100%; height: 100%; display: block; }
  .pf-edit-top { z-index: 3; left: 85.6cqw; top: .95cqw; width: 13.5cqw; height: 3.7cqw; display: flex; align-items: center; justify-content: center; gap: .9cqw; box-sizing: border-box; font: inherit; font-size: 1.32cqw; font-weight: 700; border-radius: 1.1cqw; cursor: pointer; color: #fff; background: rgba(6,18,76,.9); border: .12cqw solid #2a68e0; } .pf-edit-top i { display: block; width: 1.6cqw; height: 1.6cqw; } .pf-edit-top svg { width: 100%; height: 100%; display: block; }
  .pf-kpi { z-index: 3; top: 6.03cqw; height: 11.32cqw; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55cqw; text-align: center; border-radius: 1.3cqw; background: rgba(4,20,72,.92); border: .12cqw solid #1350a7; }
  .pf-kpi.k1 { left: 68.2cqw; width: 10.7cqw; } .pf-kpi.k2 { left: 79.7cqw; width: 9.15cqw; } .pf-kpi.k3 { left: 89.9cqw; width: 9.15cqw; }
  .pf-kpi i { display: block; width: 2.3cqw; height: 2.3cqw; } .pf-kpi i svg { width: 100%; height: 100%; display: block; } .pf-kpi b { font-size: 2.65cqw; line-height: 1; font-weight: 800; } .pf-kpi small { font-size: 1.1cqw; color: #e3ebff; white-space: nowrap; }
  .pf-xp { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; } .pf-xp b { font-size: 14px; color: var(--text-strong); white-space: nowrap; } .pf-xp .tr { flex: 1; height: 8px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; } .pf-xp .tr i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #f5a800, #fbbf24); }
  .pf-b { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 700; padding: 12px 18px; border-radius: 12px; cursor: pointer; color: #fff; background: rgba(15,24,70,.7); border: 1px solid rgba(120,140,230,.5); } .pf-b.o { border-color: #f5a800; box-shadow: 0 0 16px rgba(245,168,0,.2); }

  /* score */
  .pf-score { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
  .pf-anel { position: relative; width: 150px; height: 150px; } .pf-anel svg { width: 100%; height: 100%; } .pf-anel circle { fill: none; stroke-width: 11; } .pf-anel .t { stroke: var(--surface-2); } .pf-anel .a { stroke-linecap: round; }
  .pf-anel div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; } .pf-anel b { font-size: 38px; font-weight: 900; color: var(--text-strong); line-height: 1; } .pf-anel small { font-size: 10px; letter-spacing: .12em; color: #7fa6ff; }
  .pf-cat { font-size: 20px; font-weight: 800; margin-top: 6px; } .pf-sub { font-size: 13px; color: var(--text-soft); }
  .pf-chips { display: flex; gap: 10px; margin-top: 6px; } .pf-chip { font-size: 13px; font-weight: 800; padding: 9px 16px; border-radius: 999px; } .pf-chip.t { color: #7fa6ff; border: 1.5px solid #3b6eff; background: rgba(59,110,255,.12); } .pf-chip.c { color: #fbbf24; border: 1.5px solid #f5a800; background: rgba(245,168,0,.1); }

  /* habilidades */
  .pf-hab { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; } .pf-hab svg { width: 100%; max-height: 270px; }
  .pf-barras { display: flex; flex-direction: column; gap: 11px; } .pf-barra-t { display: flex; justify-content: space-between; font-size: 13px; color: var(--text); margin-bottom: 4px; } .pf-barra-t b { color: #f5a800; font-weight: 800; }
  .pf-barra .tr { height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; } .pf-barra .tr i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #f5a800, #fbbf24); }

  /* metodologia */
  .pf-met { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: center; } .pf-met .pf-anel { width: 130px; height: 130px; margin: 0 auto 10px; } .pf-met b.n { font-size: 30px; } .pf-met h4 { margin: 0 0 6px; font-size: 15px; font-weight: 800; color: var(--text-strong); } .pf-met p { margin: 0; font-size: 12px; line-height: 1.45; color: var(--text-dim); }

  /* disc */
  .pf-disc { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 14px; border: 1px solid; }
  .pf-disc-t { display: flex; align-items: center; gap: 16px; } .pf-disc-t .l { font-size: 64px; line-height: 1; font-weight: 900; } .pf-disc-t b { display: block; font-size: 20px; font-weight: 800; } .pf-disc-t p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-soft); }
  .pf-sec { align-self: flex-start; font-size: 13px; color: var(--text-soft); padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--surface-3); } .pf-sec b { color: #fbbf24; }
  .pf-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 800; color: #fbbf24; text-decoration: none; border-bottom: 2px solid #f5a800; }
  .pf-vazio { padding: 16px; font-size: 13px; color: var(--text-dim); text-align: center; }

  /* objetivo */
  .pf-obj-txt { margin: 0 0 14px; font-size: 18px; line-height: 1.45; color: var(--text-strong); } .pf-obj-txt.vazio { color: var(--text-dim); font-size: 15px; }
  .pf-obj-ed { width: 100%; font: inherit; font-size: 15px; padding: 12px; border-radius: 12px; color: var(--text); background: var(--bg-elevated); border: 1.5px solid #f5a800; resize: none; margin-bottom: 10px; }
  .pf-edit { margin-left: auto; font: inherit; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 10px; cursor: pointer; color: var(--text); background: var(--bg-elevated); border: 1px solid var(--surface-3); }
  .pf-info { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-elevated); border: 1px solid var(--surface-2); font-size: 13px; color: var(--text-soft); }

  /* posicionamento */
  .pf-pos { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-bottom: 1px solid var(--surface-2); text-decoration: none; color: var(--text); font-size: 14px; } .pf-pos:last-child { border: 0; } .pf-pos .n { flex: 1; } .pf-pos .ic { font-size: 18px; color: var(--text-dim); } .pf-pos > i { font-style: normal; color: var(--text-dim); font-size: 18px; }
  .pf-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; } .pf-st.ok { color: #34d399; background: rgba(16,185,129,.14); } .pf-st.and { color: #7fa6ff; background: rgba(59,110,255,.16); } .pf-st.pen { color: #f87171; background: rgba(239,68,68,.14); }

  /* conquistas */
  .pf-badges { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px 8px; } .pf-badge { text-align: center; } .pf-badge .i { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 6px; border-radius: 50%; font-size: 26px; background: rgba(110,80,230,.28); border: 2px solid rgba(139,92,246,.6); } .pf-badge.off .i { opacity: .35; filter: grayscale(1); border-color: var(--surface-3); background: var(--surface-2); } .pf-badge small { display: block; font-size: 11px; line-height: 1.2; color: var(--text-soft); }
  .pf-mais { display: block; margin: 12px auto 0; font: inherit; font-size: 13px; font-weight: 700; color: #7fa6ff; background: none; border: 0; cursor: pointer; }

  /* trilha, aparência, evolução */
  .pf-trilha { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; padding: 18px 20px; margin-bottom: 14px; border-radius: 18px; border: 1px solid rgba(245,168,0,.45); background: linear-gradient(135deg, rgba(245,168,0,.14), rgba(245,168,0,.04)); }
  .pf-trilha .ic { font-size: 34px; } .pf-trilha div { flex: 1; } .pf-trilha b { display: block; font-size: 16px; color: var(--text-strong); } .pf-trilha small { font-size: 13px; color: var(--text-soft); } .pf-trilha .pr { display: flex; align-items: center; gap: 12px; margin-top: 10px; } .pf-trilha .pr .tr { flex: 1; height: 8px; border-radius: 5px; background: rgba(255,255,255,.12); overflow: hidden; } .pf-trilha .pr i { display: block; height: 100%; background: linear-gradient(90deg, #f5a800, #fbbf24); } .pf-trilha .pr span { font-weight: 800; color: var(--text-strong); } .pf-trilha > i { font-style: normal; font-size: 24px; color: #fbbf24; }
  .pf-tema { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .pf-tema button { font: inherit; font-size: 14px; font-weight: 700; padding: 13px 8px; border-radius: 12px; cursor: pointer; color: var(--text); background: var(--bg-elevated); border: 1px solid var(--surface-3); } .pf-tema button.on { border-color: #f5a800; color: #fbbf24; box-shadow: 0 0 14px rgba(245,168,0,.25); }
  .pf-sair { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; font: inherit; font-size: 14px; font-weight: 700; padding: 13px; border-radius: 12px; cursor: pointer; color: var(--text); background: var(--bg-elevated); border: 1px solid var(--surface-3); }
  .pf-ev { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 8px; border-radius: 10px; background: var(--bg-elevated); border: 1px solid var(--surface-2); } .pf-ev .d { width: 52px; font-size: 12px; line-height: 1.2; color: var(--text-dim); } .pf-ev b { flex: 1; font-size: 14px; color: var(--text-strong); } .pf-ev em { font-style: normal; font-size: 18px; font-weight: 900; }
  .pf-modal { position: fixed; inset: 0; z-index: 9000; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(4,8,24,.82); } .pf-modal.on { display: flex; } .pf-modal-in { width: min(520px, 100%); } .pf-modal-in label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 700; color: var(--text-soft); }
  .pf-toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 9500; padding: 10px 18px; border-radius: 10px; font-size: 13px; font-weight: 700; color: #1a1205; background: #fbbf24; display: none; } .pf-toast.on { display: block; }
}
@media (max-width: 1279px) { .pf-l3, .pf-l3b, .pf-l3c { grid-template-columns: minmax(0, 1fr); } }

/* ===== celular ===== */
@media (max-width: 767px) {
  .pf-desk { padding: 12px 12px calc(92px + env(safe-area-inset-bottom)); gap: 12px; }
  .pf-card { padding: 16px; border-radius: 18px; }
  /* banner: empilhado, sem as medidas em % da largura */
  .pf-topo { container-type: normal; aspect-ratio: auto; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; align-items: center; padding: 18px 16px 16px; border-radius: 22px; }
  .pf-topo > * { position: static; }
  .pf-arte { display: none; } .pf-pan { display: block; position: absolute; left: 0; top: 0; right: 0; bottom: 0; clip-path: none; border-radius: 22px; z-index: 0; background: linear-gradient(135deg, #0a3aa6 0%, #031650 55%, #02091f 100%); opacity: .9; }
  .pf-topo > *:not(.pf-pan):not(.pf-lapis) { position: relative; z-index: 2; }
  .pf-foto { grid-row: 1 / span 3; grid-column: 1; width: 92px; height: 92px; font-size: 34px; border-width: 3px; }
  .pf-lapis { position: absolute; z-index: 3; left: 78px; top: 82px; width: 30px; height: 30px; padding: 6px; }
  .pf-nome { grid-column: 2; left: auto; top: auto; font-size: 21px; gap: 8px; white-space: normal; } .pf-ver { width: 20px; height: 20px; padding: 3px; }
  .pf-form { grid-column: 2; left: auto; top: auto; font-size: 13px; white-space: normal; }
  .pf-nivel { grid-column: 2; left: auto; top: auto; width: auto; height: auto; padding: 6px 14px; font-size: 13px; justify-self: start; } .pf-nivel i { width: 16px; height: 16px; }
  .pf-desde { grid-column: 1 / -1; left: auto; top: auto; margin-top: 8px; font-size: 13px; } .pf-desde i { width: 16px; height: 16px; }
  .pf-edit-top { grid-column: 1 / -1; left: auto; top: auto; width: 100%; height: 42px; margin-top: 6px; font-size: 14px; border-radius: 12px; } .pf-edit-top i { width: 16px; height: 16px; }
  .pf-kpi { grid-column: auto; left: auto; top: auto; width: auto; height: auto; padding: 12px 6px; border-radius: 14px; }
  .pf-topo .pf-kpi { display: flex; } .pf-kpi i { width: 22px; height: 22px; } .pf-kpi b { font-size: 24px; } .pf-kpi small { font-size: 11px; white-space: normal; }
  .pf-hab { grid-template-columns: minmax(0, 1fr); } .pf-hab svg { max-height: 240px; }
  .pf-badges { grid-template-columns: repeat(4, 1fr); }
  .pf-disc-t .l { font-size: 48px; }
  .pf-anel { width: 130px; height: 130px; }
}
@media (max-width: 767px) { .pf-topo .pf-kpi.k1, .pf-topo .pf-kpi.k2, .pf-topo .pf-kpi.k3 { left: auto; width: auto; } .pf-nome, .pf-form, .pf-nivel { grid-column: 2 / -1; } }
