/* Khaemenes Academy Student Profile v2 — learner presentation layer */
#profileStudio{margin-top:28px}
.profile-v2-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:15px}
.profile-v2-card{grid-column:span 12;padding:24px;border:1px solid var(--line);border-radius:7px;background:var(--panel);box-shadow:var(--shadow)}
.profile-v2-col6{grid-column:span 6}.profile-v2-col4{grid-column:span 4}.profile-v2-col8{grid-column:span 8}
.profile-v2-card h3{margin:0;color:var(--forest);font:500 1.5rem/1.25 var(--formal)}
.profile-v2-card h4{margin:16px 0 6px;color:var(--forest);font:500 1rem/1.35 var(--formal)}
.profile-v2-card p{color:var(--muted)}
.profile-v2-eyebrow{margin:0 0 6px;color:var(--burgundy);font:500 10px/1.4 var(--formal);letter-spacing:.14em;text-transform:uppercase}
.profile-v2-field{display:grid;gap:6px;margin-top:12px}
.profile-v2-field label{color:var(--forest);font-size:11px;font-weight:500;letter-spacing:.05em;text-transform:uppercase}
.profile-v2-field input,.profile-v2-field textarea,.profile-v2-field select{width:100%;padding:10px 11px;border:1px solid var(--line);border-radius:7px;color:var(--ink);background:#fff;font:inherit}
.profile-v2-field textarea{min-height:90px;resize:vertical}
.profile-v2-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.profile-v2-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.profile-v2-btn{min-height:42px;display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border:1px solid var(--forest);border-radius:7px;color:#fff;background:var(--forest);font-size:10px;font-weight:500;letter-spacing:.05em;text-transform:uppercase;cursor:pointer}
.profile-v2-btn.secondary{color:var(--forest);background:#fff;border-color:var(--line)}
.profile-v2-note{margin-top:12px;padding:11px 13px;border-left:3px solid var(--gold);border-radius:7px;background:#fbf4df;color:#66502b;font-size:13px}
.profile-v2-status{min-height:1.4em;margin-top:10px;color:var(--forest);font-size:12px}
.profile-v2-lane{display:grid;gap:8px;margin-top:12px}
.profile-v2-step{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:7px;background:var(--paper2)}
.profile-v2-step strong{display:block;color:var(--forest);font-weight:500}.profile-v2-step small{display:block;margin-top:3px;color:var(--muted)}
.profile-v2-tag{display:inline-flex;margin-top:5px;padding:3px 7px;border:1px solid var(--line);border-radius:999px;color:var(--burgundy);background:#fff;font-size:9px;letter-spacing:.05em;text-transform:uppercase}
.profile-v2-evidence{display:grid;gap:9px;margin-top:14px}
.profile-v2-evidence-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:13px;border:1px solid var(--line);border-radius:7px;background:var(--paper2)}
.profile-v2-evidence-row strong{display:block;color:var(--forest);font-weight:500}.profile-v2-evidence-row small{display:block;margin-top:3px;color:var(--muted)}
.profile-v2-badges{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.profile-v2-badge{padding:3px 6px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--forest);font-size:9px;text-transform:uppercase;letter-spacing:.04em}
.profile-v2-empty{padding:15px;border:1px dashed var(--line);border-radius:7px;color:var(--muted);text-align:center}
.profile-v2-check{display:flex;align-items:flex-start;gap:9px;margin-top:10px;color:var(--ink);font-size:13px}.profile-v2-check input{margin-top:4px}
.profile-v2-privacy{display:grid;gap:6px;margin-top:12px}.profile-v2-privacy div{padding:9px 11px;border:1px solid var(--line);border-radius:7px;background:var(--paper2);font-size:12px}
body[data-student-profile-theme="forest"]{--paper:#e9efea;--paper2:#f3f7f3;--panel:#fbfdf9;--ink:#14251f;--muted:#52635b}
body[data-student-profile-theme="midnight"]{--paper:#10161a;--paper2:#182126;--panel:#151d22;--ink:#edf3ef;--muted:#bac7c0;--forest:#dfeae4;--line:rgba(238,244,240,.16);background:#10161a;color:var(--ink)}
body[data-student-profile-theme="midnight"] .profile-v2-card,body[data-student-profile-theme="midnight"] .card{background:var(--panel);color:var(--ink)}
body[data-student-profile-theme="midnight"] :is(.profile-v2-field input,.profile-v2-field textarea,.profile-v2-field select,.profile-v2-step,.profile-v2-evidence-row,.profile-v2-privacy div){background:var(--paper2);color:var(--ink)}
body[data-student-profile-theme="ocean"]{--paper:#eef5f7;--paper2:#f7fbfc;--panel:#fff;--forest:#245165;--gold:#719aa8}
body[data-student-profile-theme="plum"]{--paper:#f3eef5;--paper2:#faf7fb;--panel:#fff;--forest:#563f61;--gold:#8a6c94}
body[data-student-profile-contrast="high"]{--ink:#000;--muted:#272727;--line:rgba(0,0,0,.42)}
body[data-student-profile-density="compact"] .profile-v2-card{padding:17px}.profile-v2-card[data-compact="true"]{padding:17px}
body[data-student-profile-reading-width="narrow"] #profileStudio{max-width:780px;margin-inline:auto}
body[data-student-profile-reading-width="wide"] .shell:has(#profileStudio){max-width:1240px}
body[data-student-profile-line-spacing="standard"] #profileStudio{line-height:1.45}
body[data-student-profile-line-spacing="wide"] #profileStudio{line-height:1.9}
body[data-student-profile-text-size="small"] #profileStudio{font-size:14px}
body[data-student-profile-text-size="large"] #profileStudio{font-size:18px}
body[data-student-profile-text-size="extra-large"] #profileStudio{font-size:20px}
body[data-student-profile-reduced-motion="true"] *,@media(prefers-reduced-motion:reduce){#profileStudio *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(max-width:820px){.profile-v2-col6,.profile-v2-col4,.profile-v2-col8{grid-column:span 12}}
@media(max-width:560px){.profile-v2-two{grid-template-columns:1fr}.profile-v2-step,.profile-v2-evidence-row{grid-template-columns:1fr}.profile-v2-btn{width:100%}}
@media print{#profileStudio .profile-v2-actions,#profileStudio button{display:none!important}.profile-v2-card{box-shadow:none;break-inside:avoid}}


.profile-v2-stage-note{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin:12px 0 0}
.profile-v2-stage-note span{display:inline-flex;align-items:center;min-height:28px;padding:4px 9px;border:1px solid var(--line);border-radius:999px;background:var(--paper2);color:var(--forest);font:500 10px/1.2 var(--formal);letter-spacing:.05em;text-transform:uppercase}

#profileStudio[data-profile-mode="early"] .profile-v2-grid{gap:18px}
#profileStudio[data-profile-mode="early"] .profile-v2-card{padding:26px;border-color:rgba(143,112,61,.28);background:linear-gradient(180deg,#fffdf7,#fbf7ec)}
#profileStudio[data-profile-mode="early"] .profile-v2-card h3{font-size:1.62rem}
#profileStudio[data-profile-mode="early"] .profile-v2-field label{font-size:12px;letter-spacing:.035em;text-transform:none}
#profileStudio[data-profile-mode="early"] :is(.profile-v2-field input,.profile-v2-field textarea,.profile-v2-field select){min-height:48px;font-size:1rem}
#profileStudio[data-profile-mode="early"] .profile-v2-btn{min-height:48px;font-size:11px}
#profileStudio[data-profile-mode="early"] [data-profile-detail="advanced"]{display:none}
#profileStudio[data-profile-mode="early"] .profile-v2-stage-note span:first-child{background:#fff4cf}
#profileStudio[data-profile-mode="early"] .profile-v2-stage-note span:last-child{background:#eef7ed}

#profileStudio[data-profile-mode="elementary"] .profile-v2-card{padding:22px}
#profileStudio[data-profile-mode="elementary"] [data-profile-detail="advanced"]{display:none}
#profileStudio[data-profile-mode="elementary"] .profile-v2-card h3{font-size:1.48rem}
#profileStudio[data-profile-mode="elementary"] .profile-v2-btn{min-height:45px}

#profileStudio[data-profile-mode="middle"] .profile-v2-card{padding:22px}
#profileStudio[data-profile-mode="middle"] .profile-v2-stage-note span:first-child{background:#f5f0df}

#profileStudio[data-profile-mode="high"] .profile-v2-stage-note span:first-child{background:#f3eee4}
#profileStudio[data-profile-mode="high"] .profile-v2-stage-note span:last-child{background:#eef2ee}

#profileStudio[data-profile-mode="scholar"] .profile-v2-card{padding:22px}
#profileStudio[data-profile-mode="scholar"] .profile-v2-card h3{font-size:1.42rem;letter-spacing:.01em}
#profileStudio[data-profile-mode="scholar"] .profile-v2-eyebrow{letter-spacing:.16em}
#profileStudio[data-profile-mode="scholar"] .profile-v2-stage-note span:first-child{background:#edf1f4}
#profileStudio[data-profile-mode="scholar"] .profile-v2-stage-note span:last-child{background:#f4f0e6}

@media(max-width:560px){
  #profileStudio[data-profile-mode="early"] .profile-v2-card{padding:20px}
  #profileStudio[data-profile-mode="early"] .profile-v2-card h3{font-size:1.42rem}
}
