.student-profile-page{background:#f2f4f6}
.student-profile-page [hidden]{display:none!important}
.student-profile-page .sp-main{width:min(1120px,calc(100% - 32px));padding-top:30px}
.student-profile-page .sp-hero{padding:12px 0 26px}
.student-profile-page .sp-hero h1{font-size:clamp(2rem,5vw,3rem)}
.student-profile-page.profile-ready .sp-hero{display:none}
.profile-cover{min-height:130px;border-radius:18px 18px 0 0;background:radial-gradient(ellipse at 95% 0,rgba(244,123,32,.32),transparent 47%),linear-gradient(120deg,#0c2744,#174b75);padding:25px 32px;color:#fff;display:flex;justify-content:space-between;align-items:flex-start}
.profile-cover strong{letter-spacing:.12em;font-size:.8rem}
.profile-cover span{color:#d7e6f1;font-size:.8rem}
.profile-card{background:white;border:1px solid #d9e1e8;border-radius:0 0 18px 18px;padding:0 32px 28px;box-shadow:0 8px 25px #0c274409}
.profile-heading{display:flex;align-items:center;gap:24px;margin-top:-46px;position:relative}
.profile-avatar{width:136px;height:136px;flex-shrink:0;border:6px solid white;border-radius:22px;background:#e8edf2;color:#174b75;display:grid;place-items:center;font-size:2.7rem;font-weight:800;overflow:hidden;box-shadow:0 4px 12px #0c274416}
.profile-avatar{position:relative}
.profile-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.profile-identity{padding-top:50px;min-width:0;flex:1}
.profile-identity h1{font-size:clamp(1.6rem,4vw,2.3rem);line-height:1.15;margin:0 0 7px;overflow-wrap:anywhere}
.profile-identity p{margin:3px 0;color:#5b6875;overflow-wrap:anywhere}
.profile-heading>.sp-button{margin-top:56px;flex-shrink:0}
.profile-links{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0 0}
.profile-links button,.profile-links a{font:inherit;font-weight:700;background:#eef3f7;color:#174b75;border:1px solid #dce5ed;border-radius:8px;padding:9px 16px;text-decoration:none}
.profile-links .profile-out{margin-left:auto;background:white;color:#5b6875}
.profile-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.4fr);gap:22px;margin:22px 0}
.profile-grid .sp-panel{margin:0;padding:25px}
.profile-grid h2{font-size:1.3rem;margin:5px 0 14px}
.profile-eyebrow{font-size:.7rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#98601e}
.profile-about{white-space:pre-wrap;overflow-wrap:anywhere}
.profile-tags{display:flex;flex-wrap:wrap;gap:7px}
.profile-tags span{border-radius:6px;padding:5px 9px;color:#174b75;background:#edf3f7;font-size:.85rem}
.profile-credentials{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.profile-credential{border:1px solid #dde5ec;border-radius:12px;text-align:center;padding:18px 12px}
.profile-seal{width:76px;height:76px;margin:0 auto 12px;display:grid;place-content:center;border-radius:50%;border:5px double #d7a957;background:#0c2744;color:#fff;font-size:1.8rem;box-shadow:0 0 0 4px #faf3e7}
.profile-credential h3{font-size:.95rem;margin:9px 0}
.profile-credential p{font-size:.8rem;color:#5b6875}
.profile-credential button{padding:8px 10px;background:#174b75;font-size:.8rem}
.profile-note{color:#5b6875;font-size:.85rem}
.student-profile-page [data-purchased-list]{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px}
.student-profile-page .sp-card{box-shadow:none;border-radius:12px}
.student-profile-page .sp-card .sp-button{margin:5px 7px 0 0}
.profile-editor{margin-top:22px;border-top:1px solid #d9e1e8;padding-top:22px}
.profile-editor h2{font-size:1.25rem}
.profile-editor label{display:block;font-weight:700;font-size:.9rem;margin:12px 0 6px}
.profile-editor input,.profile-editor textarea{font:inherit;width:100%;max-width:none;border:1px solid #ccd7e1;border-radius:7px;padding:10px;background:#fff;color:#16202a}
.profile-editor textarea{resize:vertical;min-height:90px}
.profile-editor .sp-actions{margin-top:18px}
.profile-editor small{display:block;color:#5b6875;margin-top:4px}
.student-profile-page button,.student-profile-page summary{cursor:pointer}
.student-profile-page :focus-visible{outline:3px solid #f47b20;outline-offset:4px}
.profile-status:empty{display:none}
@media(max-width:650px){.profile-heading{display:grid!important;grid-template-columns:100px minmax(0,1fr)}.profile-heading>.sp-button{grid-column:1/-1;justify-self:start}.profile-identity{width:100%}}
@media(max-width:650px){.profile-cover{padding:22px 20px;min-height:115px}.profile-cover span{max-width:115px;text-align:right}.profile-card{padding:0 20px 22px}.profile-heading{gap:13px;flex-wrap:wrap;margin-top:-36px}.profile-avatar{width:100px;height:100px;border-radius:18px;font-size:2rem}.profile-identity{padding-top:40px}.profile-identity h1{font-size:1.5rem}.profile-heading>.sp-button{margin-top:8px}.profile-grid{grid-template-columns:1fr}.profile-links .profile-out{margin-left:0}.student-profile-page .sp-panel{padding:20px}.profile-credentials{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}.student-profile-page .sp-header{gap:10px;padding:16px 20px}}
