/* Teacher Class Hub shell, teacher-side CW form, recent list, and entry controls only. */
.classHubOverlay{position:fixed;inset:0;z-index:10002;width:100vw;height:100dvh;max-width:100vw;overflow:hidden;overscroll-behavior-x:none;touch-action:pan-y;background:linear-gradient(180deg,#fff3fa 0%,#f4fbff 100%);display:none;color:#10203d}
.classHubOverlay.show{display:flex;flex-direction:column}
.classHubOverlay.immersive .classHubBody{padding:0;overflow:hidden}
.classHubOverlay.immersive .classHubPane.show{height:100%}
.classHubHead{display:grid;grid-template-rows:auto auto;gap:10px;padding:calc(12px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) 12px calc(14px + env(safe-area-inset-left));border-bottom:1px solid #ffd0e5;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);position:sticky;top:0;z-index:3;box-shadow:0 8px 22px rgba(255,115,181,.10)}
.classHubTeacherRow{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center}
.classHubTeacherAvatarBtn{position:relative;width:48px;height:48px;border:1.5px solid #ffc4df;border-radius:16px;background:#fff;padding:0;overflow:hidden;box-shadow:0 10px 20px rgba(255,115,181,.14);cursor:pointer}
.classHubTeacherAvatarBtn img{width:100%;height:100%;object-fit:cover;display:block}
.classHubTeacherAvatarFallback{width:100%;height:100%;display:grid;place-items:center;background:#10203d;color:#fff;font-size:18px;font-weight:950}
.classHubTeacherCameraDot{position:absolute;right:3px;bottom:3px;width:18px;height:18px;border-radius:999px;background:#fff;color:#9d1457;display:grid;place-items:center;font-size:11px;font-weight:950;border:1px solid #ffc4df}
.classHubTeacherText{min-width:0;display:grid;gap:2px}
.classHubTeacherName{font-size:17px;font-weight:950;color:#10203d;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.classHubTeacherSub{font-size:11px;font-weight:900;color:#8a1952;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.classHubTabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;min-width:0}
.classHubTabBtn{position:relative;border:1.5px solid #ffc4df;border-radius:999px;background:#fff;color:#10203d;min-height:38px;padding:8px 6px;font-size:12px;font-weight:950;cursor:pointer;touch-action:manipulation;white-space:nowrap}
.classHubTabBtn.active{background:#10203d;border-color:#10203d;color:#fff;box-shadow:0 10px 20px rgba(16,32,61,.14)}
.classHubTeacherSelect{width:100%;max-width:260px;border:1.5px solid #ffc4df;border-radius:14px;background:#fff;color:#10203d;padding:8px 34px 8px 12px;font-size:16px;font-weight:950;line-height:1.15;outline:none;box-shadow:0 8px 18px rgba(157,20,87,.08)}
.classHubTeacherSelect:focus{border-color:#c2185b;box-shadow:0 0 0 3px rgba(194,24,91,.12)}
.classHubHeadActions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.classHubIconBtn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1.5px solid #ffc4df;border-radius:999px;background:#fff;color:#9d1457;box-shadow:0 8px 18px rgba(255,115,181,.10);cursor:pointer;touch-action:manipulation}
.classHubIconBtn svg{width:18px;height:18px;display:block;stroke:currentColor}
.classHubIconBtn:disabled{opacity:.6;cursor:wait}
.classHubHiddenFile{display:none}
.classHubUploadStatus{margin:0 14px 8px;border:1px solid #ffd0e5;border-radius:999px;background:#fff7fb;color:#8a1952;padding:6px 10px;font-size:11px;font-weight:950;line-height:1.2}
.classHubClose{border:1.5px solid #ffc4df;border-radius:999px;background:#fff7fb;color:#9d1457;width:38px;height:38px;font-size:18px;font-weight:950;cursor:pointer}
.classHubBody{flex:1;min-height:0;min-width:0;max-width:100%;padding:12px;overflow:hidden;overscroll-behavior-x:none}
.classHubPane{display:none;height:100%;min-height:0;min-width:0;max-width:100%;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:none;touch-action:pan-y}
.classHubPane.show{display:block}
.classHubPane.hw{overflow:hidden}
.classHubPane.group{overflow:hidden}
.classHubPane.group.show{margin:0;height:100%}
.classHubPane.chat{overflow:hidden}
.classHubPlaceholder{height:100%;display:grid;place-items:center;border:1px dashed #ffc4df;border-radius:18px;background:#fff7fb;color:#8a1952;font-size:15px;font-weight:900;text-align:center;padding:24px}
.classHubHwShell{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;max-width:min(980px,100%);margin:0 auto;overflow:hidden}
.classHubHwHead{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,360px);align-items:center;gap:10px;border:1px solid #ffd0e5;border-radius:18px;background:rgba(255,255,255,.92);padding:10px;box-shadow:0 10px 22px rgba(255,115,181,.08)}
.classHubHwTitle{font-size:20px;font-weight:950;color:#10203d;line-height:1.1}
.classHubHwSub{margin-top:2px;font-size:11px;font-weight:900;color:#8a1952;line-height:1.25}
.classHubHwTabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;border:1px solid #e4edf7;border-radius:999px;background:#f8fbff;padding:5px}
.classHubHwTabBtn{border:0;border-radius:999px;background:transparent;color:#10203d;min-height:36px;padding:8px 10px;font-size:13px;font-weight:950;cursor:pointer;white-space:nowrap;touch-action:manipulation}
.classHubHwTabBtn.active{background:#10203d;color:#fff;box-shadow:0 9px 18px rgba(16,32,61,.16)}
.classHubHwContent{min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;border:1px solid #dbe5f1;border-radius:18px;background:rgba(255,255,255,.74);padding:10px}
#homeworkPlannerModal.classHubEmbedded.classHubHwSubmittedMode .homeworkModalHead,
#homeworkPlannerModal.classHubEmbedded.classHubHwSubmittedMode .homeworkMetaRow,
#homeworkPlannerModal.classHubEmbedded.classHubHwSubmittedMode #homeworkReminderBanner,
#homeworkPlannerModal.classHubEmbedded.classHubHwSubmittedMode #homeworkPlanTimer,
#homeworkPlannerModal.classHubEmbedded.classHubHwSubmittedMode .homeworkValidityBox,
#homeworkPlannerModal.classHubEmbedded.classHubHwSubmittedMode .homeworkSearchBox,
#homeworkPlannerModal.classHubEmbedded.classHubHwSubmittedMode #homeworkUploadSummary,
#homeworkPlannerModal.classHubEmbedded.classHubHwSubmittedMode #homeworkProgressPanel,
#homeworkPlannerModal.classHubEmbedded.classHubHwSubmittedMode #homeworkPlannerList,
#homeworkPlannerModal.classHubEmbedded.classHubHwSubmittedMode .homeworkPublishBar{display:none!important}
#homeworkPlannerModal.classHubEmbedded.classHubHwSubmittedMode .form{padding:0!important}
#homeworkPlannerModal.classHubEmbedded.classHubHwSubmittedMode .homeworkTeacherPanel{margin:0;min-height:100%;border:0;background:transparent;padding:0}
#homeworkPlannerModal.classHubEmbedded.classHubHwSubmittedMode #homeworkQuestTeacherCloseBtn{display:none!important}
#homeworkPlannerModal.classHubEmbedded.classHubHwScheduleMode #homeworkQuestTeacherPanel{display:none!important}
#homeworkPlannerModal.classHubEmbedded.classHubHwScheduleMode #homeworkQuestTeacherQuickBtn{display:none!important}

.classHubCwWrap{display:grid;gap:10px;width:100%;max-width:min(760px,100%);min-width:0;margin:0 auto;padding-bottom:18px;overflow-x:hidden}
.classHubCwCard{border:1px solid #ffd0e5;border-radius:14px;background:#fff;padding:11px;box-shadow:0 10px 22px rgba(255,115,181,.08);display:grid;gap:8px;min-width:0;max-width:100%;overflow:hidden}
.classHubCwTitleRow{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;max-width:100%;flex-wrap:wrap}
.classHubCwTitle{font-size:18px;font-weight:950;color:#10203d;line-height:1.15}
.classHubCwMeta{font-size:12px;font-weight:950;color:#8a1952;line-height:1.3}
.classHubCwSearchBox{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0;max-width:100%}
.classHubCwSearchBtn{width:34px;height:34px;border:1.5px solid #ffd0e5;border-radius:999px;background:#fff7fb;color:#10203d;font-size:15px;font-weight:950;display:inline-grid;place-items:center;box-shadow:0 4px 10px rgba(157,20,87,.08)}
.classHubCwSearchDate{width:min(126px,38vw);max-width:100%;min-width:0;height:34px;border:1.5px solid #ffd0e5;border-radius:999px;background:#fff;color:#10203d;font-size:12px;font-weight:900;padding:0 7px}
.classHubCwGrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;min-width:0;max-width:100%}
.classHubCwField{display:grid;gap:5px;min-width:0;font-size:12px;font-weight:950;color:#6b5870;text-transform:uppercase}
.classHubCwField.classHubCwFieldWide{grid-column:1/-1}
.classHubCwNoRecording{grid-column:1/-1;min-height:48px;display:flex;align-items:center;gap:10px;border:2px solid #ffc4df;border-radius:14px;background:#fff;padding:10px 12px;box-sizing:border-box;color:#10203d;font-size:15px;font-weight:950;text-transform:none;cursor:pointer}
.classHubCwNoRecording input{width:22px;height:22px;margin:0;flex:0 0 auto;accent-color:#0f8a7d}
.classHubCwInput,.classHubCwSelect{width:100%;min-width:0;max-width:100%;min-height:48px;border:2px solid #ffc4df;border-radius:14px;background:#fff;color:#10203d;padding:10px 12px;font-size:18px;font-weight:950;box-sizing:border-box}
.classHubCwInput{-webkit-appearance:none;appearance:none;overflow:hidden;text-align:center}
.classHubCwActions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:center;min-width:0;max-width:100%}
.classHubCwStatusLine{grid-column:1/-1;font-size:12px;font-weight:950;color:#8a1952;line-height:1.25;min-height:16px}
.classHubCwBtn{border:1.5px solid #ffc4df;border-radius:13px;background:#fff;color:#10203d;min-width:0;max-width:100%;min-height:40px;padding:8px 11px;font-size:14px;font-weight:950;cursor:pointer;transition:transform .08s ease,background-color .08s ease,border-color .08s ease,box-shadow .08s ease;box-shadow:0 3px 8px rgba(16,32,61,.06)}
.classHubCwBtn:active{transform:translateY(1px) scale(.99);box-shadow:0 1px 4px rgba(16,32,61,.08)}
.classHubCwBtn.primary{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#0f8a7d;border-color:#0f8a7d;color:#fff;box-shadow:0 4px 10px rgba(15,138,125,.13)}
.classHubCwBtn.primary:active{background:#0c756b;transform:translateY(1px) scale(.99);box-shadow:0 1px 5px rgba(15,138,125,.18)}
.classHubCwBtn.primary.sending{position:relative;overflow:hidden;background:#0f8a7d;border-color:#0f8a7d;color:#fff}
.classHubCwBtn.primary.sending::after{content:'';position:absolute;inset:-40% auto -40% -45%;width:42%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);transform:skewX(-18deg);animation:classHubCwSendShine 1s linear infinite}
.classHubCwBtn.primary.sent{background:#16a34a;border-color:#16a34a;color:#fff;box-shadow:0 4px 10px rgba(22,163,74,.16)}
@keyframes classHubCwSendShine{0%{left:-45%}100%{left:120%}}
.classHubCwSendIcon{display:inline-flex;align-items:center;justify-content:center;width:auto;height:auto;border-radius:0;background:transparent;font-size:17px;line-height:1}
.classHubCwPickBtn{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;text-align:center;background:#fff;border-color:#ffc4df;color:#10203d;touch-action:manipulation}
.classHubCwPickBtn:active{background:#fff7fb}
.classHubCwHiddenFile{position:fixed;left:-100px;top:-100px;width:1px;height:1px;opacity:.01}
.classHubCwBtn:disabled{opacity:.62;cursor:wait}
.classHubCwEditNote{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #ffd166;border-radius:13px;background:linear-gradient(135deg,#fff8dd,#fff7fb);color:#8a1952;padding:8px 10px;font-size:12px;font-weight:950;line-height:1.25}
.classHubCwCancelEditBtn{border:1px solid #ffd0e5;border-radius:999px;background:#fff;color:#9d1457;padding:6px 9px;font-size:11px;font-weight:950;white-space:nowrap}
.classHubCwSelectedPreview{grid-column:1/-1;display:grid;grid-template-columns:46px minmax(0,1fr) auto auto;gap:7px;align-items:center;border:1px solid #ffe1ee;border-radius:14px;background:linear-gradient(135deg,#fff,#fff7fb);padding:6px}
.classHubCwExistingPreview{grid-column:1/-1;display:grid;grid-template-columns:46px minmax(0,1fr);gap:7px;align-items:center;border:1px solid #d7dde6;border-radius:14px;background:#f7f8fa;padding:6px}
.classHubCwExistingThumb{width:46px;height:46px;border:1.5px solid #d7dde6;border-radius:11px;background:#fff;overflow:hidden;padding:0;display:grid;place-items:center;cursor:pointer}
.classHubCwExistingThumb img{width:100%;height:100%;object-fit:cover;display:block}
.classHubCwExistingName{font-size:11px;font-weight:950;color:#10203d;line-height:1.2}
.classHubCwExistingName span{display:block;color:#6b7280;font-size:10px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.classHubCwPreviewThumb{width:46px;height:46px;border:1.5px solid #ffd0e5;border-radius:11px;background:#fff;overflow:hidden;padding:0;display:grid;place-items:center;cursor:pointer}
.classHubCwPreviewThumb img{width:100%;height:100%;object-fit:cover;display:block}
.classHubCwSelectedName{font-size:11px;font-weight:950;color:#10203d;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.classHubCwSmallBtn,.classHubCwRemoveBtn{border:1.5px solid #ffc4df;border-radius:999px;background:#fff;color:#9d1457;min-height:34px;padding:6px 9px;font-size:12px;font-weight:950;cursor:pointer}
.classHubCwRemoveBtn{width:34px;padding:0;font-size:18px;line-height:1;background:#fff7fb}
.classHubCwCropOverlay{position:fixed;inset:0;z-index:999999;display:grid;place-items:center;background:rgba(16,32,61,.54);padding:14px}
.classHubCwCropSheet{width:min(520px,100%);border:1.5px solid #ffd0e5;border-radius:20px;background:#fff;box-shadow:0 24px 56px rgba(16,32,61,.24);padding:12px;display:grid;gap:10px}
.classHubCwCropHead{display:flex;align-items:center;justify-content:space-between;gap:10px}
.classHubCwCropTitle{font-size:18px;font-weight:950;color:#10203d}
.classHubCwCropStage{position:relative;width:100%;max-height:46vh;aspect-ratio:4/5;border:1.5px dashed #ffd166;border-radius:16px;background:#fff8dd;display:grid;place-items:center;overflow:hidden}
.classHubCwCropStage.square{aspect-ratio:1/1}
.classHubCwCropStage.original{aspect-ratio:4/5}
.classHubCwCropImg{max-width:100%;max-height:100%;object-fit:contain;transform-origin:center;transition:transform .12s ease}
.classHubCwCropControls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.classHubCwCropRange{width:100%}
.classHubCwRecordingStatus{border:1px solid #d7f8eb;border-radius:12px;background:linear-gradient(135deg,#f3fff9,#fff);color:#0f766e;padding:9px 10px;font-size:12px;font-weight:950;line-height:1.25}
.classHubCwRecordingStatus.missing{border-color:#ffd0e5;background:linear-gradient(135deg,#fff7fb,#fff);color:#9d1457}
.classHubCwRecordingStatus.loading{border-color:#d9e5f2;background:#f8fbff;color:#58627a}
.classHubCwList{display:grid;gap:8px;min-width:0;max-width:100%;overflow:hidden}
.classHubCwDayGroup{display:grid;gap:8px;min-width:0;max-width:100%}
.classHubCwDayHead{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #ffe1ee;border-radius:999px;background:linear-gradient(135deg,#fff,#fff8dd 62%,#fff7fb);color:#10203d;padding:7px 10px;font-size:12px;font-weight:950;width:100%;min-width:0;max-width:100%;text-align:left}
.classHubCwDayHead span{color:#8a1952;font-size:11px}
.classHubCwDayHead b{width:22px;height:22px;border-radius:999px;background:#fff;color:#8a1952;display:inline-grid;place-items:center;font-size:15px;line-height:1;box-shadow:0 2px 6px rgba(157,20,87,.08)}
.classHubCwDayName{color:#10203d!important;font-size:12px!important}
.classHubCwGroupRows{display:grid;gap:8px;min-width:0;max-width:100%}
.classHubCwDayGroup.collapsed .classHubCwGroupRows{display:none}
.classHubCwItem{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;align-items:center;border:1px solid #ffd0e5;border-radius:12px;background:#fff7fb;padding:8px;min-width:0;max-width:100%;overflow:hidden}
.classHubCwItem.editing{background:#f3f4f6;border-color:#cbd5e1;box-shadow:0 0 0 2px rgba(203,213,225,.54) inset}
.classHubCwItem.deleting{opacity:.62;filter:saturate(.8)}
.classHubCwThumb{width:72px;height:86px;border-radius:10px;object-fit:cover;background:#fff;border:1px solid #ffe1ee;display:block}
.classHubCwThumbBtn{width:72px;height:86px;border:0;border-radius:10px;background:#fff;padding:0;overflow:hidden;cursor:pointer;box-shadow:0 7px 14px rgba(16,32,61,.08)}
.classHubCwItem>div{min-width:0;max-width:100%}
.classHubCwItem .classHubCwActions{display:flex;align-items:center;justify-content:flex-start;gap:7px;flex-wrap:wrap;min-width:0;max-width:100%}
.classHubCwRecordBtn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:#0f8a7d;border-color:#0f8a7d;color:#fff;min-height:30px;border-radius:999px;padding:6px 11px;font-size:11px;line-height:1;white-space:nowrap;width:max-content;max-width:100%;box-shadow:0 3px 8px rgba(15,118,110,.12)}
.classHubCwRecordBtn:active{background:#0c756b;transform:translateY(1px) scale(.99);box-shadow:0 1px 4px rgba(15,118,110,.16)}
.classHubCwEditBtn{width:32px;height:32px;min-height:32px;border-radius:999px;padding:0;display:inline-grid;place-items:center;background:#fff7fb;color:#9d1457;border-color:#ffd0e5;font-size:14px;line-height:1;box-shadow:0 3px 8px rgba(157,20,87,.08)}
.classHubCwDeleteBtn{width:32px;height:32px;min-height:32px;border-radius:999px;padding:0;display:inline-grid;place-items:center;background:#fff1f2;color:#9f1239;border-color:#fecdd3;font-size:18px;line-height:1;box-shadow:0 3px 8px rgba(159,18,57,.08)}
.classHubCwDeleteBtn.deleting{width:auto;min-width:78px;padding:0 10px;font-size:11px;background:#fff7ed;color:#9a3412;border-color:#fed7aa}
.classHubCwDeletingText{display:inline-block;animation:classHubCwDeletingPulse .9s ease-in-out infinite}
@keyframes classHubCwDeletingPulse{0%,100%{opacity:.55}50%{opacity:1}}
.classHubCwPreviewOverlay{position:fixed;inset:0;z-index:999999;background:rgba(16,32,61,.86);display:flex;align-items:center;justify-content:center;padding:14px}
.classHubCwPreviewOverlay img{display:block;max-width:100%;max-height:100%;object-fit:contain;border-radius:14px;background:#fff;box-shadow:0 18px 42px rgba(0,0,0,.28)}
.classHubCwPreviewClose{position:absolute;right:12px;top:12px;width:44px;height:44px;border:1px solid #ffc4df;border-radius:999px;background:#fff;color:#9d1457;font-size:22px;font-weight:950;box-shadow:0 10px 24px rgba(0,0,0,.22)}
@media(max-width:520px){.classHubCwGrid{grid-template-columns:1fr}.classHubCwInput,.classHubCwSelect{font-size:16px;padding:9px 10px}}

@media(max-width:720px){
.classHubHead{padding:10px;gap:8px}
html.protivaIosNativeShell .classHubHead{padding-top:calc(10px + var(--protiva-safe-top))}
.classHubTeacherAvatarBtn{width:44px;height:44px;border-radius:14px}
.classHubTeacherName{font-size:15px}
.classHubTabs{gap:5px}
.classHubTabBtn{min-height:34px;padding:7px 4px;font-size:10px}
.classHubClose{width:32px;height:32px;font-size:16px}
.classHubBody{padding:8px}
.classHubHwShell{gap:8px}
.classHubHwHead{grid-template-columns:1fr;gap:8px;border-radius:16px;padding:9px}
.classHubHwTitle{font-size:18px}
.classHubHwSub{display:none}
.classHubHwContent{border-radius:16px;padding:8px}
.classHubCwGrid{grid-template-columns:1fr}
.classHubCwActions{gap:6px}
.classHubCwBtn{min-height:38px;font-size:13px;padding:7px 9px}
.classHubPane.group.show{margin:0;height:100%}
}
