/* Student card only. Original rewards, frames, icons and action handlers are reused. */
.studentProfileHeroDashboard.studentHeaderCompact{display:block;min-height:0!important;padding:13px 12px 11px;border-radius:16px;overflow:visible;background:linear-gradient(120deg,#fff9f6,#fff5fa);box-shadow:0 4px 16px #76234b08}
.studentHeaderCompact:before{display:none}.studentHeaderCompact .studentHeaderTop{display:grid;grid-template-columns:116px minmax(0,1fr);gap:10px;align-items:center}
.studentHeaderCompact .studentProfileHeroText{min-width:0;padding:0!important}.studentHeaderCompact .homeworkPublicTitle{padding-right:21px;overflow:visible;white-space:normal;text-overflow:clip;font-size:17px;line-height:1.18;margin:0;font-weight:700;text-shadow:none}
.studentHeaderCompact .studentProfileNameWithStatus{display:inline;white-space:normal;overflow-wrap:anywhere;word-break:normal}.studentHeaderCompact .studentProfileStatusDot{width:7px;height:7px;margin-left:5px;vertical-align:middle}
.studentHeaderCompact .studentProfileHeaderMeta{white-space:normal!important;overflow:visible;text-overflow:clip;font-size:11.5px;line-height:1.4;font-weight:400;color:#25304a;margin-top:4px}
.studentHeaderId{margin-bottom:4px}.studentHeaderSchedule{display:flex;gap:6px;align-items:flex-start;min-width:0}.studentHeaderSchedule>svg{width:13px;height:13px;flex:none;margin-top:2px;color:#a53a6d}.studentHeaderSchedule .studentProfileTimingText{white-space:normal;overflow:visible;overflow-wrap:anywhere;font-size:12px;line-height:1.4;min-width:0}
.studentHeaderAcademic[hidden],.studentHeaderMenu[hidden]{display:none!important}.studentHeaderAcademic{display:flex;align-items:center;gap:6px;margin-top:5px;min-width:0;width:100%;color:#824361;line-height:1.4}
.studentHeaderAcademic>svg{width:14px;height:14px;flex:none}.studentHeaderAcademicText{display:block;min-width:0;white-space:nowrap;line-height:1.4;font-family:Arial,Helvetica,sans-serif}.studentHeaderAcademicText strong{font-weight:600}.studentHeaderAcademicText small{font-size:.91em;font-weight:400;color:#78546b}
.studentHeaderCompact .studentProfileHeroAvatarColumn{display:block;align-self:center;min-width:0}.studentHeaderCompact .studentProfileHeroAvatarStage{min-height:125px!important;transform:none!important;width:116px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.studentHeaderCompact #studentProfileAvatarBtn{position:relative;width:116px!important;height:116px;display:flex;align-items:center;justify-content:center;padding:0;border:0;background:none;box-shadow:none;flex:none;isolation:isolate}
.studentHeaderCompact .studentProfileAvatarFrame{width:var(--student-header-photo-size,86px)!important;height:var(--student-header-photo-size,86px)!important;min-width:0;flex:none;transform:none!important;margin:0!important;box-sizing:border-box}
.studentHeaderCompact .studentProfileAvatarHint,.studentHeaderCompact .studentProfileAvatarOverlay{display:none!important}.studentHeaderCompact .studentProfileAvatarPlaceholder{font-size:11px;padding:0}
.studentHeaderCamera{position:absolute;right:9px;bottom:14px;width:24px;height:24px;border:1px solid #e4aac7;border-radius:50%;background:#fffafb;color:#9b2f68;display:grid;place-items:center;z-index:6;pointer-events:none;box-shadow:0 2px 5px #793b5420}.studentHeaderCamera svg{width:14px;height:14px}
.studentHeaderToolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr) auto;gap:7px;align-items:center;width:100%;min-width:0;margin-top:9px}
.studentHeaderToolbar .studentProfileHeaderPoints{width:100%;min-width:0;height:34px;margin:0;padding:4px 7px;font-size:14px;line-height:1;font-weight:900;white-space:nowrap;gap:5px;flex-wrap:nowrap!important}
.studentHeaderToolbar .studentProfileHeroBadgeStage{min-width:0;display:flex;align-items:center;justify-content:center}.studentHeaderToolbar .studentAchievementBadgeProfile{min-width:0;width:100%;height:34px;min-height:34px;padding:4px 7px;gap:4px;font-size:12px;white-space:nowrap;line-height:1}
.studentHeaderToolbar .studentAchievementBadgeIcon{width:22px;height:22px;flex:none}.studentHeaderToolbar .achievementBadgeIconImg{width:22px;height:22px;object-fit:contain}.studentHeaderToolbar .studentAchievementBadgeText{font-size:12px}
.studentHeaderToolbar .studentProfileRewardActions{width:auto;display:flex;gap:7px;flex-wrap:nowrap;margin:0;border:0;background:none;padding:0;box-shadow:none}
.studentHeaderToolbar .studentProfileRewardActions>button{flex:0 0 36px!important;width:36px!important;min-width:36px!important;height:34px!important;min-height:34px!important;max-height:34px;margin:0;padding:0;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;font-size:23px;line-height:1;box-shadow:0 3px 8px #ba4f7e16,0 0 0 1px #ffffffa8 inset}
.studentHeaderToolbar #studentPointsRulesBtn{font-size:0}.studentHeaderToolbar #studentPointsRulesBtn .studentProfileActionIcon{font-size:23px}.studentHeaderToolbar #studentProfileTestUndoPaymentBtn{flex-basis:auto!important;width:auto!important;max-width:65px;font-size:9px}
.studentHeaderCompact .studentProfileMetaLine{display:none}.studentHeaderCompact .studentHeaderMore{position:absolute;right:6px;top:7px;width:30px;height:32px;border:0;border-radius:8px;padding:5px;background:none;color:#332635;display:grid;place-items:center;box-shadow:none;cursor:pointer;z-index:6}
.studentHeaderMore>svg{width:19px;height:19px;fill:currentColor}.studentHeaderMore[aria-expanded=true],.studentHeaderMore:hover{background:#f8e4ee}.studentHeaderMoreDot{position:absolute;top:3px;right:4px;width:5px;height:5px;border-radius:50%;background:#d7418b}
.studentHeaderCompact .studentHeaderMenu{position:absolute;z-index:8;top:43px;right:8px;width:200px;max-width:calc(100% - 16px);padding:5px;border:1px solid #ecc8da;border-radius:13px;background:#fffcfd;box-shadow:0 8px 27px #69234825}
.studentHeaderMenu .studentHeaderMenuItem{width:100%;height:auto;min-width:0;min-height:40px;margin:0;display:flex;align-items:center;justify-content:flex-start;gap:9px;text-align:left;padding:8px 10px;background:none;border:0;border-radius:8px;box-shadow:none;font-size:12px;color:#403448;font-weight:500;line-height:1.3}
.studentHeaderMenu .studentHeaderMenuItem:hover{background:#faeaf1}.studentHeaderMenuIcon{width:21px;min-width:21px;display:flex;align-items:center;justify-content:center;font-size:18px}.studentHeaderMenuIcon svg{width:18px;height:18px}.studentHeaderMenuIcon .studentProfileWebIcon{font-size:18px}
.studentHeaderMenu #homeworkQuestLogoutBtn{color:#a42a59;border-top:1px solid #ecdce4;border-radius:0 0 8px 8px;position:static}.studentHeaderMenu #studentToastHistoryBtn:after{display:none}.studentHeaderNoticeCount{margin-left:auto;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#c93481;color:#fff;display:grid;place-items:center;font-size:10px;font-weight:700}
@media(max-width:350px){.studentProfileHeroDashboard.studentHeaderCompact{padding:11px 10px}.studentHeaderCompact .studentHeaderTop{grid-template-columns:96px minmax(0,1fr);gap:8px}.studentHeaderCompact .studentProfileHeroAvatarStage{width:96px;min-height:110px!important}.studentHeaderCompact #studentProfileAvatarBtn{width:96px!important;height:106px}.studentHeaderCompact .homeworkPublicTitle{font-size:16px}.studentHeaderCamera{right:7px;bottom:14px}.studentHeaderToolbar{gap:5px}.studentHeaderToolbar .studentProfileRewardActions{gap:5px}.studentHeaderToolbar .studentProfileHeaderPoints{font-size:12px;gap:3px}.studentHeaderToolbar .studentAchievementBadgeProfile{padding:3px 5px}}
@media(prefers-reduced-motion:reduce){.studentHeaderCompact *,.studentHeaderCompact *:before,.studentHeaderCompact *:after{animation:none!important}}
.studentHeaderCompact #studentProfileAvatarBtn{min-width:0!important}.studentHeaderTestActions{margin-top:6px}
.studentHeaderSlot{display:block}.studentHeaderId .studentProfileStatusDot{vertical-align:middle;margin-left:6px}
.studentHeaderCompact .studentHeaderToolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.studentHeaderCompact .studentHeaderToolbar .studentProfileHeaderPoints,.studentHeaderCompact .studentHeaderToolbar .studentAchievementBadgeProfile{height:36px!important;min-height:36px!important;max-height:36px!important;box-sizing:border-box}.studentHeaderCompact .studentHeaderToolbar .studentProfileRewardActions>button{height:36px!important;min-height:36px!important;max-height:36px!important;box-sizing:border-box}
.homeworkPublicCard.studentHeaderHost{overflow:visible}

.studentHeaderCompact .studentHeaderToolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:5px;margin-top:7px}
.studentHeaderCompact .studentHeaderToolbar .studentProfileHeaderPoints,.studentHeaderCompact .studentHeaderToolbar .studentAchievementBadgeProfile{height:28px!important;min-height:28px!important;max-height:28px!important;box-sizing:border-box;padding:3px 5px;font-size:12px;box-shadow:0 3px 8px #ba4f7e12,inset 0 0 0 1px #ffffffb8}
.studentHeaderCompact .studentHeaderToolbar .studentProfileRewardActions{gap:5px}.studentHeaderCompact .studentHeaderToolbar .studentProfileRewardActions>button{position:relative;flex:0 0 28px!important;width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;max-height:28px!important;font-size:18px;border-radius:11px;box-sizing:border-box;box-shadow:0 3px 8px #ba4f7e12,inset 0 0 0 1px #ffffffb8}
.studentHeaderCompact .studentHeaderToolbar #studentPointsRulesBtn{font-size:0}.studentHeaderCompact .studentHeaderToolbar #studentPointsRulesBtn .studentProfileActionIcon{font-size:18px}.studentHeaderCompact .studentHeaderToolbar .studentProfileWebIcon{font-size:18px}.studentHeaderCompact .studentHeaderToolbar .studentAchievementBadgeIcon,.studentHeaderCompact .studentHeaderToolbar .achievementBadgeIconImg{height:18px;width:18px}.studentHeaderCompact .studentHeaderToolbar .studentAchievementBadgeText{font-size:11px}.studentHeaderCompact .studentHeaderToolbar .studentProfileHeaderPoints .diamond{font-size:13px}.studentHeaderInlineCount{position:absolute;right:-2px;top:-4px;min-width:12px;height:12px;padding:0 2px;border:1px solid white;border-radius:8px;background:#c93481;color:white;font-size:8px;line-height:10px;font-weight:700;z-index:4}.studentHeaderToolbar #studentToastHistoryBtn:after{display:none}.studentHeaderSchedule{margin-top:3px}.studentHeaderCompact .studentHeaderMenu{width:143px}.studentHeaderCompact .studentHeaderMenu .studentHeaderMenuItem{min-height:36px}.studentHeaderCompact .studentHeaderMenu #homeworkQuestLogoutBtn{border-top:0}.studentHeaderCompact .studentHeaderId .studentProfileStatusDot{display:none}
.studentHeaderCompact .studentProfileAvatarFrame.achievementFrameAsset{border:0}.studentHeaderCompact .studentProfileAvatarFrame:not(.achievementFrameAsset){border:1px solid #e8bbcf}
@media(max-width:350px){.studentHeaderCompact .studentHeaderToolbar{gap:3px}.studentHeaderCompact .studentHeaderToolbar .studentProfileRewardActions{gap:3px}.studentHeaderCompact .studentHeaderToolbar .studentProfileRewardActions>button{flex-basis:26px!important;width:26px!important;min-width:26px!important;height:26px!important;min-height:26px!important;max-height:26px!important;font-size:17px}.studentHeaderCompact .studentHeaderToolbar .studentProfileHeaderPoints,.studentHeaderCompact .studentHeaderToolbar .studentAchievementBadgeProfile{height:26px!important;min-height:26px!important;max-height:26px!important;padding:2px 3px;font-size:11px;gap:2px}.studentHeaderCompact .studentHeaderToolbar .studentAchievementBadgeIcon,.studentHeaderCompact .studentHeaderToolbar .achievementBadgeIconImg{width:16px;height:16px}}
@media(max-width:300px){.studentHeaderCompact .studentHeaderToolbar .studentProfileRewardActions>button{flex-basis:24px!important;width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important;max-height:24px!important}.studentHeaderCompact .studentHeaderToolbar .studentProfileHeaderPoints,.studentHeaderCompact .studentHeaderToolbar .studentAchievementBadgeProfile{height:24px!important;min-height:24px!important;max-height:24px!important;font-size:10px}.studentHeaderCompact .studentHeaderToolbar .studentAchievementBadgeIcon,.studentHeaderCompact .studentHeaderToolbar .achievementBadgeIconImg{width:13px;height:13px}}
.studentHeaderCamera{display:none!important}.studentHeaderSchedule .studentProfileTimingText{font-weight:600}.studentHeaderAcademic{font-weight:400;color:#7e6379}.studentHeaderAcademicText strong{font-weight:500}.studentHeaderAcademicText small{font-weight:400}.studentHeaderCompact .studentHeaderToolbar .studentProfileHeaderPoints,.studentHeaderCompact .studentHeaderToolbar .studentAchievementBadgeProfile,.studentHeaderCompact .studentHeaderToolbar .studentProfileRewardActions>button{height:30px!important;min-height:30px!important;max-height:30px!important}.studentHeaderCompact .studentHeaderToolbar .studentProfileRewardActions>button{flex-basis:28px!important;width:28px!important;min-width:28px!important}.studentHeaderCompact .studentHeaderToolbar{gap:4px}.studentHeaderCompact .studentHeaderToolbar .studentProfileRewardActions{gap:4px}@media(max-width:350px){.studentHeaderCompact .studentHeaderToolbar{gap:3px}.studentHeaderCompact .studentHeaderToolbar .studentProfileRewardActions{gap:3px}.studentHeaderCompact .studentHeaderToolbar .studentProfileHeaderPoints,.studentHeaderCompact .studentHeaderToolbar .studentAchievementBadgeProfile,.studentHeaderCompact .studentHeaderToolbar .studentProfileRewardActions>button{height:28px!important;min-height:28px!important;max-height:28px!important}.studentHeaderCompact .studentHeaderToolbar .studentProfileRewardActions>button{flex-basis:26px!important;width:26px!important;min-width:26px!important}}@media(max-width:300px){.studentHeaderCompact .studentHeaderToolbar .studentProfileHeaderPoints,.studentHeaderCompact .studentHeaderToolbar .studentAchievementBadgeProfile,.studentHeaderCompact .studentHeaderToolbar .studentProfileRewardActions>button{height:26px!important;min-height:26px!important;max-height:26px!important}.studentHeaderCompact .studentHeaderToolbar .studentProfileRewardActions>button{flex-basis:24px!important;width:24px!important;min-width:24px!important}}
.studentHeaderNameFirst,.studentHeaderNameRest{display:block;overflow-wrap:anywhere}.studentHeaderNameRest{text-wrap:balance}.studentHeaderCompact .studentHeaderToolbar .studentProfileHeaderPoints{overflow:visible;cursor:pointer}.studentHeaderDiamondPopover[hidden]{display:none!important}.studentHeaderDiamondPopover{position:absolute;left:0;bottom:calc(100% + 7px);z-index:9;padding:6px 9px;border:1px solid #e5b9cc;border-radius:8px;background:#fff7fb;box-shadow:0 4px 12px #77254b22;color:#78264e;font-size:11px;font-weight:600;white-space:nowrap;text-shadow:none}.studentHeaderCompact .studentHeaderToolbar .studentProfileHeaderPoints:after{inset:0;border-radius:inherit;width:auto;transform:none;background:linear-gradient(110deg,transparent 20%,rgba(255,255,255,.5) 48%,transparent 75%);background-size:220% 100%;animation:compactDiamondShine 3s ease-in-out infinite}@keyframes compactDiamondShine{0%,100%{background-position:120% 0}60%{background-position:-120% 0}}@media(prefers-reduced-motion:reduce){.studentHeaderCompact .studentHeaderToolbar .studentProfileHeaderPoints:after{animation:none}}
.studentHeaderCompact .studentHeaderToolbar #studentPointsRulesBtn .studentProfileActionIcon{position:relative;top:-2px}

/* Preview-only rose marble. Content, layout and original achievement art stay intact. */
.studentProfileHeroDashboard.studentHeaderCompact{
  border:1px solid #ebcadb;
  background:
    radial-gradient(ellipse at 8% 3%,rgba(255,255,255,.98),transparent 75%),
    linear-gradient(135deg,#fffdfb 0%,#fffafc 57%,#fcf4f8 100%);
  box-shadow:0 5px 15px rgba(108,49,78,.065),inset 0 2px 0 rgba(255,255,255,.98),inset 2px 0 0 rgba(255,255,255,.8),inset -1px -2px 0 rgba(225,200,214,.18);
}
.studentProfileHeroDashboard.studentHeaderCompact::before{
  content:"";display:block;position:absolute;inset:0;border-radius:inherit;z-index:0;pointer-events:none;transform:none;
  background:linear-gradient(112deg,transparent 37%,rgba(255,255,255,.03) 44%,rgba(255,255,255,.25) 50%,rgba(255,255,255,.03) 56%,transparent 63%);
  background-size:260% 100%;animation:studentRoseMarbleSheen 11s ease-in-out infinite;
}
.studentHeaderCompact .homeworkPublicTitle{font-family:"Segoe UI Variable Text","Segoe UI",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;font-weight:600;color:#482331;text-shadow:0 1px 0 rgba(255,255,255,.85);font-size:15.5px;letter-spacing:-.15px}
.studentHeaderCompact .studentProfileNameWithStatus{font-family:inherit;font-weight:600;color:#482331;line-height:1.23}
.studentHeaderCompact .studentHeaderNameFirst,.studentHeaderCompact .studentHeaderNameRest{line-height:1.23}
.studentHeaderCompact .studentProfileNameWithStatus{background:none;text-shadow:0 1px 0 rgba(255,255,255,.9)}
.studentHeaderCompact .studentHeaderId{color:#6b4c62}
.studentHeaderCompact .studentProfileTimingText{color:#4d3348}
.studentHeaderCompact .studentHeaderMore{color:#88305a}
.studentHeaderCompact .studentHeaderMenu{background:linear-gradient(140deg,#fffdfd,#fff3f8);border-color:#e5b5cd;box-shadow:0 7px 22px rgba(107,37,72,.15)}
@media(max-width:350px){.studentHeaderCompact .homeworkPublicTitle{font-size:14.5px}}
@keyframes studentRoseMarbleSheen{0%,18%{background-position:125% 0;opacity:.2}52%,66%{background-position:-60% 0;opacity:.62}100%{background-position:-60% 0;opacity:.2}}
@media(prefers-reduced-motion:reduce){.studentProfileHeroDashboard.studentHeaderCompact::before{animation:none;opacity:.16}}

/* One champagne finish; the original colorful artwork distinguishes each action. */
.studentHeaderCompact .studentHeaderToolbar{--control-top:#fffdf4;--control-bottom:#ffedbc;--control-border:#e5c477;--control-ink:#77304d;--control-size:clamp(26px,8.5vw,36px);--control-icon-width:clamp(24px,8.2vw,36px)}
.studentHeaderCompact .studentHeaderToolbar .studentProfileHeaderPoints,
.studentHeaderCompact .studentHeaderToolbar .studentAchievementBadgeProfile,
.studentHeaderCompact .studentHeaderToolbar .studentProfileRewardActions>button{
  background:linear-gradient(155deg,var(--control-top),var(--control-bottom))!important;
  border:1px solid var(--control-border)!important;
  color:var(--control-ink)!important;
  box-shadow:inset 0 1px 0 #fff,0 2px 4px rgba(69,36,54,.08);
  height:var(--control-size)!important;min-height:var(--control-size)!important;max-height:var(--control-size)!important;
}
.studentHeaderCompact .studentHeaderToolbar .studentProfileRewardActions>button{width:var(--control-icon-width)!important;min-width:var(--control-icon-width)!important;flex-basis:var(--control-icon-width)!important;font-size:clamp(17px,5.5vw,22px)}
.studentHeaderCompact .studentHeaderToolbar #studentPointsRulesBtn{font-size:0}
.studentHeaderCompact .studentHeaderToolbar #studentPointsRulesBtn .studentProfileActionIcon,
.studentHeaderCompact .studentHeaderToolbar .studentProfileWebIcon{font-size:clamp(17px,5.5vw,22px)}
.studentHeaderCompact .studentHeaderToolbar .studentAchievementBadgeIcon,
.studentHeaderCompact .studentHeaderToolbar .achievementBadgeIconImg{width:clamp(14px,5vw,22px);height:clamp(14px,5vw,22px)}
.studentHeaderCompact .studentHeaderToolbar .studentProfileHeaderPoints .diamond{font-size:clamp(13px,4.6vw,18px)}
.studentHeaderCompact .studentHeaderToolbar .studentProfileRewardActions>button:hover{filter:brightness(1.035)}
.studentHeaderCompact .studentHeaderToolbar .studentProfileRewardActions>button:focus-visible,
.studentHeaderCompact .studentHeaderToolbar .studentProfileHeaderPoints:focus-visible{outline:2px solid #833653;outline-offset:2px}

/* Match the approved card width inside the existing padded profile shell. */
.homeworkPublicCard.studentHeaderHost{--student-header-host-padding:16px}
.homeworkPublicCard.studentHeaderHost>.studentHeaderCompact{margin-inline:calc(6px - var(--student-header-host-padding))}
@media(max-width:720px){.homeworkPublicCard.studentHeaderHost{--student-header-host-padding:12px}}

/* Shared white shell and nested cream notice cards, as in the approved reference. */
.homeworkPublicCard.studentHeaderHost{border-color:rgba(255,159,207,.48);background:rgba(255,255,255,.92);box-shadow:0 14px 34px rgba(255,115,181,.16)}
.homeworkPublicCard.studentHeaderHost:before{display:none}
.studentHeaderCompact [data-diamond-compact="false"]{cursor:default!important}
.studentHeaderHost .noticeCarousel{margin-inline:0}
.studentHeaderHost .noticeRail{padding:3px 3px 16px}
.studentHeaderHost .noticeRail>.studentProfileNoticeCard{flex-basis:100%;padding:10px;border:1.5px solid #ead9b0;background:linear-gradient(135deg,#fffdf8,#fff8ec 62%,#f6e7bf);box-shadow:0 9px 13px -4px rgba(110,80,23,.28)}
.studentHeaderHost .noticeRail .studentProfileNoticePosterInner{box-sizing:border-box;padding:12px;border:1px solid rgba(191,145,44,.28);border-radius:15px;background:rgba(255,255,255,.74)}
.studentHeaderHost .noticeRail .studentProfileNoticeBodyArea{min-height:0;height:auto;max-height:none;overflow:visible}
.studentHeaderHost .noticeRail .studentProfileNoticeFooter{box-sizing:border-box;white-space:normal;text-overflow:clip;overflow:visible;overflow-wrap:anywhere;max-width:100%}
