/* Compact platform branding. All styles remain isolated to staging. */
@layer brochure-preview {
html[data-platform-design="gold"] body .portal[data-brochure-header="trial"] .portal-header {
  height:auto !important;min-height:130px !important;padding-block:8px !important;
}
html[data-platform-design="gold"] body .portal[data-brochure-header="trial"] .portal-brand {
  flex:1 1 380px !important;min-width:0 !important;width:auto !important;max-width:560px !important;
  height:auto !important;min-height:0 !important;overflow:visible !important;
}
html[data-platform-design="gold"] body .portal[data-brochure-header="trial"] .portal-brand>.hub-logo {
  display:none !important;
}
html[data-platform-design="gold"] body .portal[data-brochure-header="trial"] .brochure-header-lockup {
  display:flex !important;align-items:center !important;justify-content:center !important;
  box-sizing:border-box !important;width:min(100%,320px) !important;min-width:0 !important;
  padding:8px 14px !important;border:1px solid #35dfff !important;border-top:3px solid #ffd052 !important;
  border-radius:18px !important;background:linear-gradient(130deg,#031943,#073980) !important;
  box-shadow:inset 0 1px 0 #80edff33,0 6px 0 #02132b,0 12px 24px #010e2c55 !important;
  overflow:hidden !important;
}
html[data-platform-design="gold"] body .portal[data-brochure-header="trial"] .brochure-header-lockup>img {
  display:block !important;width:auto !important;max-width:auto !important;height:90px !important;max-height:90px !important;
  object-fit:contain !important;object-position:center !important;padding:0 !important;margin:0 !important;border:0 !important;
  background:transparent !important;border-radius:10px !important;
}
@media(max-width:650px) {
html[data-platform-design="gold"] body .portal[data-brochure-header="trial"] .portal-brand {
  flex-basis:100% !important;max-width:100% !important;
}
html[data-platform-design="gold"] body .portal[data-brochure-header="trial"] .brochure-header-lockup {
  width:min(100%,320px) !important;padding:6px 12px !important;
}
}
html[data-platform-design="gold"] body .brochure-shared-brand {
  display:flex !important;align-items:center !important;justify-content:center !important;
  box-sizing:border-box !important;width:min(100%,320px) !important;min-width:0 !important;
  height:110px !important;max-height:110px !important;padding:8px 14px !important;
  border:1px solid #35dfff !important;border-top:3px solid #ffd052 !important;border-radius:18px !important;
  background:linear-gradient(130deg,#031943,#073980) !important;overflow:hidden !important;
  box-shadow:inset 0 1px 0 #80edff33,0 4px 0 #02132b !important;
}
html[data-platform-design="gold"] body .brochure-shared-brand>img {
  display:block !important;width:auto !important;height:90px !important;max-width:100% !important;max-height:90px !important;
  object-fit:contain !important;object-position:center !important;padding:0 !important;margin:0 !important;
  border:0 !important;border-radius:10px !important;background:transparent !important;
}
html[data-platform-design="gold"] body .brochure-shared-brand+.editable-brand {
  display:none !important;
}
html[data-platform-design="gold"] body :is(.guide-brand,.bank-brand)>.brochure-shared-brand~* {
  display:none !important;
}
html[data-platform-design="gold"] body :is(.student-platform-brand,.learning-platform-brand,.portal .hub-logo,.login-intro .brand-lockup) {
  background:transparent !important;border:0 !important;box-shadow:none !important;
}
html[data-platform-design="gold"] body :is(.student-platform-brand,.learning-platform-brand) {
  height:auto !important;max-height:none !important;overflow:visible !important;
}
html[data-platform-design="gold"] body :is(.guide-topbar,.bank-top) {
  min-height:130px !important;box-sizing:border-box !important;padding-block:8px !important;
}
html[data-platform-design="gold"] body .portal[data-brochure-header="trial"] .brochure-header-lockup,
html[data-platform-design="gold"] body .brochure-shared-brand {
  position:relative !important;border:1px solid #fff3cd !important;border-top:3px solid #ffd052 !important;
  background:linear-gradient(135deg,#ffd052 0 30px,transparent 30px),linear-gradient(315deg,#fff5d0 0 26px,transparent 26px),linear-gradient(130deg,#031943,#073980) !important;
  padding-inline:20px !important;box-shadow:inset 0 0 0 2px #ffd05255,0 4px 0 #02132b !important;
}
}

@layer brochure-preview {
html[data-platform-design="gold"] body .brochure-main-header {display:grid !important;grid-template-columns:368px minmax(0,1fr) auto !important;align-items:center !important;gap:28px !important;min-height:130px !important;padding:8px clamp(14px,3vw,42px) !important;box-sizing:border-box !important;background:linear-gradient(115deg,#092d66,#11528d 62%,#086887) !important;border-bottom:3px solid #ffd052 !important;border-radius:0 0 22px 22px !important;box-shadow:0 4px 0 #02132b !important;color:white !important;}
html[data-platform-design="gold"] body .brochure-main-logo {display:flex !important;align-items:center !important;justify-content:center !important;min-width:0 !important;height:110px !important;box-sizing:border-box !important;padding:8px !important;border:0 !important;border-radius:12px !important;background:#ffffff !important;box-shadow:0 4px 0 #02132b !important;}
html[data-platform-design="gold"] body .brochure-main-logo>img {display:block !important;width:calc(100% / 1.15) !important;max-width:100% !important;height:100% !important;max-height:94px !important;object-fit:contain !important;transform:scaleX(1.15) !important;;border:0 !important;border-radius:6px !important;padding:0 !important;margin:0 !important;background:#07316b !important;}
html[data-platform-design="gold"] body .brochure-main-message {text-align:center !important;min-width:0 !important;}
html[data-platform-design="gold"] body .brochure-main-message strong {display:flex !important;justify-content:center !important;align-items:center !important;gap:14px !important;flex-wrap:wrap !important;font-size:clamp(16px,1.6vw,23px) !important;font-weight:800 !important;color:#fff !important;line-height:1.5 !important;}
html[data-platform-design="gold"] body .brochure-main-message i {font-style:normal !important;color:#22ddff !important;}
html[data-platform-design="gold"] body .brochure-main-message i+ i {color:#ffd052 !important;}
html[data-platform-design="gold"] body .brochure-main-message i:nth-of-type(2) {color:#ffd052 !important;}
html[data-platform-design="gold"] body .brochure-main-message>div {display:flex !important;justify-content:center !important;gap:44px !important;margin-top:8px !important;}
html[data-platform-design="gold"] body .brochure-main-message svg {width:28px !important;height:28px !important;color:#22ddff !important;}
html[data-platform-design="gold"] body .brochure-main-message svg:nth-child(2) {color:#ffd052 !important;}
html[data-platform-design="gold"] body .brochure-main-return {display:inline-flex !important;align-items:center !important;justify-content:center !important;min-height:44px !important;padding:8px 16px !important;border:2px solid #ffd052 !important;border-radius:12px !important;background:#073164 !important;color:#fff4c9 !important;font-size:16px !important;font-weight:700 !important;text-decoration:none !important;box-shadow:inset 0 0 0 1px #ffe8a433,0 3px 0 #03204c !important;}
html[data-platform-design="gold"] body :is(.portal .portal-brand,.brochure-header-lockup,.brochure-shared-brand,.guide-brand,.bank-brand) {display:none !important;}
html[data-platform-design="gold"] body :is(.portal .portal-header,.portal[data-brochure-header="trial"] .portal-header,.guide-topbar,.bank-top) {min-height:54px !important;height:auto !important;padding-block:6px !important;background:#082957 !important;border-radius:0 !important;border-bottom:1px solid #248cad !important;box-shadow:none !important;justify-content:flex-end !important;}
html[data-platform-design="gold"] body .portal .portal-header:has(.portal-actions>a:only-child) {display:none !important;}
html[data-platform-design="gold"] body .brochure-main-return:focus-visible {outline:3px solid #fff !important;outline-offset:3px !important;}
@media(max-width:900px) {
html[data-platform-design="gold"] body .brochure-main-header {grid-template-columns:minmax(180px,280px) minmax(0,1fr) !important;gap:10px 20px !important;}
html[data-platform-design="gold"] body .brochure-main-return {grid-column:2 !important;justify-self:center !important;}
html[data-platform-design="gold"] body .brochure-main-logo {grid-row:1/3 !important;}
}
@media(max-width:540px) {
html[data-platform-design="gold"] body .brochure-main-header {grid-template-columns:minmax(0,1fr) !important;gap:12px !important;padding-block:12px !important;}
html[data-platform-design="gold"] body .brochure-main-logo {grid-row:auto !important;width:min(100%,320px) !important;justify-self:center !important;}
html[data-platform-design="gold"] body .brochure-main-return {grid-column:1 !important;}
}
@media print {
html[data-platform-design="gold"] body .brochure-main-header {display:none !important;}
}
}

@layer brochure-preview {
html[data-platform-design="gold"] body :is(.portal .portal-actions button,.portal .contact-us-trigger,.portal .teacher-guide-entry,.learning-shell .teacher-guide-entry,.guide-topbar>div>a,.guide-topbar>div>button,.bank-top nav>a,.bank-top nav>button,.login-page .lang-button,.student-area .student-language,.student-area [data-design-button="studentExit"]) {display:inline-flex !important;align-items:center !important;justify-content:center !important;min-height:44px !important;padding:8px 16px !important;border:2px solid #ffd052 !important;border-radius:12px !important;background:#073164 !important;color:#fff4c9 !important;font-size:16px !important;font-weight:700 !important;text-decoration:none !important;box-shadow:inset 0 0 0 1px #ffe8a433,0 3px 0 #03204c !important;text-shadow:none !important;}
html[data-platform-design="gold"] body .portal .class-folder.class-folder {border:1px solid #ffd052 !important;}
html[data-platform-design="gold"] body .portal .class-folder .class-folder-meta>span {color:#ffffff !important;border-color:#ffd05266 !important;}
html[data-platform-design="gold"] body .portal .class-folder .class-folder-meta>span * {color:#ffffff !important;}
}

@layer brochure-preview {
html[data-platform-design="gold"] body .message-sound-toggle.message-sound-toggle.message-sound-toggle {display:none !important;}
}

@layer brochure-preview {
/* The shared header is the only platform logo in the trial. */
html[data-platform-design="gold"] body img.editable-brand-lockup {display:none !important;}
html[data-platform-design="gold"] body .login-page :is(.hero-emblem,.card-emblem) {display:none !important;}
}

@layer brochure-preview {
html[data-platform-design="gold"] body .portal .class-folder .class-folder-meta>span {color:#ffffff !important;background:transparent !important;border:0 !important;box-shadow:none !important;text-shadow:none !important;}
html[data-platform-design="gold"] body .portal .class-file-head>div>span,
html[data-platform-design="gold"] body .portal .class-file-head>div>span * {color:#000000 !important;}
}

@layer brochure-preview {
html[data-platform-design="gold"] body .resource-bank.resource-bank .bank-card h3,
html[data-platform-design="gold"] body .learning-shell .module-grid>article>h2 {display:block !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;-webkit-line-clamp:unset !important;min-width:0 !important;max-width:100% !important;}
html[data-platform-design="gold"] body:not(:has(main.portal)) a[href^="/guide"][href^="/guide"][href^="/guide"],
html[data-platform-design="gold"] body .portal.portal:has(.class-file) a[href^="/guide"][href^="/guide"] {display:none !important;}
}

/* Keep admin text readable on light surfaces detected by the existing contrast scan. */
@layer brochure-preview {
html[data-platform-design="gold"] body .portal.role-admin [data-light-text][data-light-text] {color:#000 !important;-webkit-text-fill-color:#000 !important;text-shadow:none !important;}
}

/* Fit the full sign-in and teacher registration controls into a desktop viewport. */
@layer brochure-preview {
@media (min-width:801px) {
html[data-platform-design="gold"] body .login-page.login-page {box-sizing:border-box !important;min-height:calc(100svh - 130px) !important;padding-top:48px !important;padding-bottom:14px !important;gap:clamp(20px,4vw,56px) !important;}
html[data-platform-design="gold"] body .login-page.login-page .login-card {box-sizing:border-box !important;min-height:0 !important;padding:clamp(14px,2.4vh,24px) !important;}
html[data-platform-design="gold"] body .login-page.login-page .login-card h2 {font-size:26px !important;line-height:1.25 !important;margin:6px 0 14px !important;}
html[data-platform-design="gold"] body .login-page.login-page .login-card form {gap:8px !important;}
html[data-platform-design="gold"] body .login-page.login-page .login-card form>label {font-size:14px !important;line-height:1.3 !important;gap:5px !important;}
html[data-platform-design="gold"] body .login-page.login-page .login-card :is(input,select) {height:42px !important;min-height:42px !important;padding:8px 10px !important;}
html[data-platform-design="gold"] body .login-page.login-page .login-card :is(.login-submit,.teacher-create,.student-portal-link) {min-height:40px !important;height:40px !important;padding:6px 10px !important;font-size:15px !important;}
html[data-platform-design="gold"] body .login-page.login-page .login-card .login-forgot {min-height:0 !important;height:auto !important;padding:0 !important;line-height:1.5 !important;font-size:12px !important;}
html[data-platform-design="gold"] body .login-page.login-page .teacher-note {font-size:12px !important;line-height:1.45 !important;margin:10px 0 0 !important;}
html[data-platform-design="gold"] body .login-page.login-page .login-intro {padding:0 !important;}
html[data-platform-design="gold"] body .login-page.login-page .login-intro h1 {font-size:clamp(30px,3.2vw,44px) !important;line-height:1.2 !important;margin:12px 0 !important;}
html[data-platform-design="gold"] body .login-page.login-page .login-intro>p {font-size:16px !important;line-height:1.5 !important;margin:8px 0 !important;}
html[data-platform-design="gold"] body .login-page.login-page .brochure-benefits {gap:10px !important;}
html[data-platform-design="gold"] body .login-page.login-page .brochure-benefits article {min-height:64px !important;padding:10px !important;gap:10px !important;}
html[data-platform-design="gold"] body .login-page.login-page .brochure-benefits strong {font-size:14px !important;}
html[data-platform-design="gold"] body .login-page.login-page .brochure-benefits svg {width:36px !important;height:36px !important;padding:6px !important;}
}
@media (min-width:801px) and (max-height:700px) {
html[data-platform-design="gold"] body:has(.login-page) .brochure-main-header {height:100px !important;min-height:100px !important;}
html[data-platform-design="gold"] body:has(.login-page) .brochure-main-logo {height:80px !important;}
html[data-platform-design="gold"] body:has(.login-page) .brochure-main-message>div {margin-top:2px !important;}
html[data-platform-design="gold"] body .login-page.login-page {min-height:calc(100svh - 100px) !important;padding-top:46px !important;padding-bottom:10px !important;}
html[data-platform-design="gold"] body .login-page.login-page .login-card form {gap:6px !important;}
html[data-platform-design="gold"] body .login-page.login-page .login-card {padding:12px !important;}
}
}

/* Universal readable text on white/light backgrounds, including admin tools. */
@layer brochure-preview {
html body [data-light-text][data-light-text][data-light-text][data-light-text][data-light-text][data-light-text][data-light-text][data-light-text][data-light-text][data-light-text][data-light-text][data-light-text] {
 color:#000 !important;-webkit-text-fill-color:currentColor !important;text-shadow:none !important;
}
html body [data-light-text] :not([data-light-text]) {-webkit-text-fill-color:currentColor !important;}
@media (min-width:801px) {
html[data-platform-design="gold"] body .login-page.login-page .login-card.login-card {
 padding-block:clamp(24px,3.8vh,36px) !important;
}
}
@media (min-width:801px) and (max-height:700px) {
html[data-platform-design="gold"] body .login-page.login-page .login-card.login-card {
 padding-block:20px !important;
}
}
}

/* Compact teacher home with a podium alongside My classes. */
@layer brochure-preview {
html[data-platform-design="gold"] body .portal.role-teacher:not(:has(.class-file)) .portal-content {padding-top:10px !important;}
html[data-platform-design="gold"] body .portal.role-teacher .teacher-contact-row {display:flex !important;justify-content:flex-start !important;align-items:center !important;flex-wrap:wrap !important;gap:8px !important;margin:0 0 10px !important;}
html[data-platform-design="gold"] body .portal.role-teacher:not(:has(.class-file)) .role-heading {padding:12px 18px !important;margin-bottom:12px !important;}
html[data-platform-design="gold"] body .portal.role-teacher:not(:has(.class-file)) .role-heading h1 {font-size:24px !important;margin-block:4px !important;}
html[data-platform-design="gold"] body .portal.role-teacher .teacher-classes-heading {display:grid !important;grid-template-columns:minmax(0,1fr) auto !important;gap:10px !important;margin-bottom:12px !important;align-items:center !important;}
html[data-platform-design="gold"] body .portal.role-teacher .teacher-class-title-row {grid-column:1/-1 !important;display:flex !important;align-items:center !important;justify-content:space-between !important;gap:20px !important;}
html[data-platform-design="gold"] body .portal.role-teacher .teacher-class-title-row>h2 {margin:0 !important;color:#fff !important;white-space:nowrap !important;}
html[data-platform-design="gold"] body .portal.role-teacher .teacher-heading-actions {grid-column:1 !important;margin:0 !important;}
html[data-platform-design="gold"] body .portal.role-teacher .teacher-summary-circles {grid-column:2 !important;margin:0 !important;gap:8px !important;}
.teacher-leaders {width:min(650px,75%) !important;min-width:0 !important;}
.teacher-leaders-label {display:flex;align-items:center;gap:6px;font-weight:800;font-size:13px;color:#ffe29b;}
.teacher-leaders-label small {font-size:11px;opacity:.8;margin-inline-start:auto;}
.teacher-leaders ol {list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:6px 0 0;padding:0;align-items:end;}
.teacher-leaders .leader-place {display:flex;align-items:center;gap:7px;min-width:0;min-height:66px;padding:9px;border-radius:13px;background:linear-gradient(140deg,#144c86,#092c5b);border:1px solid #77cbea;box-shadow:0 4px 0 #020f27;}
.teacher-leaders .leader-place-1 {order:2;min-height:76px;border-color:#ffd052;background:linear-gradient(140deg,#77521b,#302b29);}
.teacher-leaders .leader-place-2 {order:1;border-color:#c9d8e9;}
.teacher-leaders .leader-place-3 {order:3;border-color:#dba16d;}
.teacher-leaders .leader-medal {font-size:25px;flex:none;}
.teacher-leaders .leader-place>div {flex:1;min-width:0;}
.teacher-leaders .leader-place strong {display:block;color:#fff !important;font-size:13px;line-height:1.45;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.teacher-leaders .leader-place small {display:block;color:#e1efff !important;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.teacher-leaders .leader-place>b {color:#ffe29b !important;font-size:22px;line-height:1.1;text-align:center;flex:none;}
.teacher-leaders>p {margin:6px 0;font-size:13px;color:#e1efff !important;}
@media(max-width:1100px) {
html[data-platform-design="gold"] body .portal.role-teacher .teacher-classes-heading {grid-template-columns:minmax(0,1fr) !important;}
html[data-platform-design="gold"] body .portal.role-teacher .teacher-summary-circles {grid-column:1 !important;}
.teacher-leaders {width:78% !important;}
.teacher-leaders .leader-place {gap:4px;padding:7px;}
}
@media(max-width:650px) {
html[data-platform-design="gold"] body .portal.role-teacher .teacher-class-title-row {flex-wrap:wrap !important;gap:10px !important;}
.teacher-leaders {width:100% !important;}
.teacher-leaders .leader-medal {font-size:20px;}
.teacher-leaders .leader-place strong {font-size:11px;}
.teacher-leaders .leader-place>b {font-size:18px;}
}
}

/* Teacher home: header shortcuts, spaced actions and slender wide star cards. */
@layer brochure-preview {
html[data-platform-design="gold"] body .portal.role-teacher .teacher-home-header.teacher-home-header {
 display:grid !important;grid-template-columns:minmax(0,1fr) auto !important;align-items:center !important;gap:16px !important;min-height:64px !important;height:auto !important;padding:10px clamp(14px,3vw,42px) !important;
}
html[data-platform-design="gold"] body .portal.role-teacher .teacher-home-header .teacher-contact-row.teacher-contact-row {
 grid-column:1 !important;grid-row:1 !important;display:flex !important;align-items:center !important;justify-content:flex-start !important;gap:12px !important;margin:0 !important;min-width:0 !important;
}
html[data-platform-design="gold"] body .portal.role-teacher .teacher-home-header .portal-actions.portal-actions {
 grid-column:2 !important;grid-row:1 !important;position:static !important;inset:auto !important;transform:none !important;display:flex !important;align-items:center !important;justify-content:flex-end !important;gap:12px !important;margin:0 !important;width:auto !important;flex-wrap:wrap !important;
}
html[data-platform-design="gold"] body .portal.role-teacher .teacher-home-header :is(.teacher-guide-entry,.contact-us-trigger,.portal-actions>button) {
 position:static !important;inset:auto !important;transform:none !important;translate:none !important;rotate:none !important;scale:none !important;box-sizing:border-box !important;min-height:44px !important;height:auto !important;margin:0 !important;white-space:normal !important;
}
html[data-platform-design="gold"] body .portal.role-teacher .teacher-classes-heading.teacher-classes-heading {
 grid-template-columns:minmax(0,1fr) !important;gap:14px !important;
}
html[data-platform-design="gold"] body .portal.role-teacher .teacher-classes-heading>.teacher-heading-actions.teacher-heading-actions {
 grid-column:1/-1 !important;display:grid !important;grid-template-columns:repeat(5,minmax(0,1fr)) !important;grid-auto-rows:minmax(48px,auto) !important;gap:16px !important;align-items:stretch !important;width:100% !important;margin:0 !important;padding:0 !important;
}
html[data-platform-design="gold"] body .portal.role-teacher .teacher-classes-heading>.teacher-heading-actions.teacher-heading-actions>:is(button,a) {
 position:static !important;inset:auto !important;transform:none !important;translate:none !important;rotate:none !important;scale:none !important;grid-column:auto !important;grid-row:auto !important;order:0 !important;
 display:flex !important;align-items:center !important;justify-content:center !important;box-sizing:border-box !important;width:100% !important;min-width:0 !important;max-width:100% !important;height:auto !important;min-height:48px !important;max-height:none !important;margin:0 !important;padding:10px 12px !important;gap:8px !important;font-size:14px !important;line-height:1.35 !important;white-space:normal !important;overflow-wrap:anywhere !important;
}
html[data-platform-design="gold"] body .portal.role-teacher .teacher-summary-circles.teacher-summary-circles {
 grid-column:1 !important;justify-self:end !important;display:flex !important;flex-wrap:wrap !important;margin:0 !important;
}
html[data-platform-design="gold"] body .portal.role-teacher .teacher-leaders.teacher-leaders {width:min(850px,82%) !important;}
.teacher-leaders.teacher-leaders .leader-place {min-height:54px !important;padding:7px 12px !important;gap:9px !important;}
.teacher-leaders.teacher-leaders .leader-place-1 {min-height:62px !important;}
.teacher-leaders.teacher-leaders .leader-place strong {font-size:14px !important;}
.teacher-leaders.teacher-leaders .leader-place>b {font-size:21px !important;}
@media(max-width:1100px) {
html[data-platform-design="gold"] body .portal.role-teacher .teacher-classes-heading>.teacher-heading-actions.teacher-heading-actions {grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
}
@media(max-width:650px) {
html[data-platform-design="gold"] body .portal.role-teacher .teacher-home-header.teacher-home-header {grid-template-columns:minmax(0,1fr) !important;gap:12px !important;}
html[data-platform-design="gold"] body .portal.role-teacher .teacher-home-header .portal-actions.portal-actions {grid-column:1 !important;grid-row:2 !important;justify-content:flex-start !important;}
html[data-platform-design="gold"] body .portal.role-teacher .teacher-classes-heading>.teacher-heading-actions.teacher-heading-actions {grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:12px !important;}
html[data-platform-design="gold"] body .portal.role-teacher .teacher-leaders.teacher-leaders {width:100% !important;}
.teacher-leaders.teacher-leaders .leader-place {padding:7px !important;gap:4px !important;}
.teacher-leaders.teacher-leaders .leader-place strong {font-size:11px !important;}
}
}

/* Star cards match the class-name cards; rank is prominent and score is compact. */
@layer brochure-preview {
html[data-platform-design="gold"] body .portal.role-teacher .teacher-class-title-row.teacher-class-title-row {flex-wrap:wrap !important;gap:10px !important;}
html[data-platform-design="gold"] body .portal.role-teacher .teacher-leaders.teacher-leaders.teacher-leaders {width:100% !important;flex-basis:100% !important;max-width:none !important;}
.teacher-leaders.teacher-leaders.teacher-leaders ol {grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:10px !important;align-items:stretch !important;}
.teacher-leaders.teacher-leaders.teacher-leaders .leader-place {box-sizing:border-box !important;min-height:58px !important;height:auto !important;padding:8px 12px !important;border-radius:18px !important;gap:8px !important;}
.teacher-leaders.teacher-leaders.teacher-leaders .leader-medal {font-size:32px !important;font-weight:900 !important;line-height:1 !important;min-width:34px !important;text-align:center !important;color:#ffd052 !important;}
.teacher-leaders.teacher-leaders.teacher-leaders .leader-place-2 .leader-medal {color:#dbe5ef !important;}
.teacher-leaders.teacher-leaders.teacher-leaders .leader-place-3 .leader-medal {color:#e8af7d !important;}
.teacher-leaders.teacher-leaders.teacher-leaders .leader-place>b.leader-score {font-size:14px !important;line-height:1.25 !important;font-weight:700 !important;}
@media(max-width:1050px) {
.teacher-leaders.teacher-leaders.teacher-leaders ol {grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media(max-width:650px) {
.teacher-leaders.teacher-leaders.teacher-leaders ol {grid-template-columns:minmax(0,1fr) !important;}
.teacher-leaders.teacher-leaders.teacher-leaders .leader-place {order:initial !important;}
}
}

/* Teacher overview: title, three leaders and statistics share one desktop row. */
@layer brochure-preview {
html[data-platform-design="gold"] body .portal.role-teacher .teacher-class-title-row.teacher-class-title-row.teacher-class-title-row {
 display:grid !important;grid-template-columns:auto minmax(0,1fr) auto !important;align-items:center !important;gap:16px !important;width:100% !important;
}
html[data-platform-design="gold"] body .portal.role-teacher .teacher-class-title-row>.teacher-summary-circles.teacher-summary-circles.teacher-summary-circles {
 grid-column:3 !important;grid-row:1 !important;justify-self:end !important;flex-wrap:nowrap !important;align-self:center !important;
}
html[data-platform-design="gold"] body .portal.role-teacher .teacher-leaders.teacher-leaders.teacher-leaders.teacher-leaders-inline {
 grid-column:2 !important;grid-row:1 !important;width:100% !important;min-width:0 !important;max-width:none !important;
}
.teacher-leaders.teacher-leaders.teacher-leaders.teacher-leaders-inline ol {display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;align-items:stretch !important;gap:10px !important;margin:0 !important;padding:0 !important;overflow:visible !important;}
.teacher-leaders.teacher-leaders.teacher-leaders.teacher-leaders-inline .leader-place {
 display:flex !important;align-items:center !important;order:initial !important;min-width:0 !important;min-height:0 !important;height:auto !important;padding:7px 9px !important;gap:7px !important;background:#ffffff06 !important;border:1px solid #d9b65f80 !important;border-radius:10px !important;box-shadow:none !important;
}
.teacher-leaders.teacher-leaders.teacher-leaders.teacher-leaders-inline .leader-place>div {flex:1 !important;min-width:0 !important;}
.teacher-leaders.teacher-leaders.teacher-leaders.teacher-leaders-inline .leader-place strong {font-size:12px !important;line-height:1.35 !important;white-space:normal !important;overflow:visible !important;text-overflow:clip !important;}
.teacher-leaders.teacher-leaders.teacher-leaders.teacher-leaders-inline .leader-place small {font-size:10px !important;line-height:1.3 !important;}
.teacher-leaders.teacher-leaders.teacher-leaders.teacher-leaders-inline .leader-medal {font-size:24px !important;min-width:22px !important;}
.teacher-leaders.teacher-leaders.teacher-leaders.teacher-leaders-inline .leader-score {font-size:12px !important;}
@media(max-width:700px) {
 html[data-platform-design="gold"] body .portal.role-teacher .teacher-class-title-row.teacher-class-title-row.teacher-class-title-row {grid-template-columns:minmax(0,1fr) auto !important;gap:10px !important;}
 html[data-platform-design="gold"] body .portal.role-teacher .teacher-class-title-row>.teacher-summary-circles.teacher-summary-circles.teacher-summary-circles {grid-column:2 !important;}
 html[data-platform-design="gold"] body .portal.role-teacher .teacher-leaders.teacher-leaders.teacher-leaders.teacher-leaders-inline {grid-column:1/-1 !important;grid-row:2 !important;}
 .teacher-leaders.teacher-leaders.teacher-leaders.teacher-leaders-inline ol {gap:6px !important;}
 .teacher-leaders.teacher-leaders.teacher-leaders.teacher-leaders-inline .leader-place {padding:6px !important;gap:4px !important;flex-wrap:wrap !important;}
}
}

/* The certificate stays physically left of the sound control in both languages. */
@layer brochure-preview {
html body .portal .class-file .class-file-head .class-certificate-voice-pair {
 display:grid !important;grid-template-columns:minmax(0,1fr) !important;gap:12px !important;direction:ltr !important;min-width:0 !important;
}
html body .portal .class-file .class-file-head .class-certificate-voice-pair:has(.class-certificate-button) {grid-template-columns:repeat(2,minmax(0,1fr)) !important;grid-column:span 2 !important;}
html body .portal .class-file .class-file-head .class-certificate-voice-pair>:is(button,a) {
 display:flex !important;align-items:center !important;justify-content:center !important;gap:8px !important;min-width:0 !important;width:100% !important;box-sizing:border-box !important;min-height:52px !important;margin:0 !important;padding:8px 12px !important;border:1px solid #263d70 !important;border-radius:12px !important;background:linear-gradient(135deg,#263d70,#087f8c) !important;color:#fff !important;font-size:14px !important;font-weight:800 !important;line-height:1.25 !important;text-decoration:none !important;text-align:center !important;white-space:normal !important;
}
html body .portal .class-file .class-file-head .class-certificate-voice-pair>a.class-certificate-button {
 background:linear-gradient(135deg,#ffe8a5,#dca83d) !important;border-color:#c3932c !important;color:#3b2808 !important;box-shadow:0 3px 9px #b7832526 !important;
}
html body .portal .class-file .class-file-head .class-certificate-voice-pair>a.class-certificate-button svg {width:25px !important;height:25px !important;flex:0 0 25px !important;stroke-width:2.4 !important;color:#67420a !important;}
html body .portal .class-file .class-file-head .class-certificate-button:focus-visible {outline:3px solid #fff !important;outline-offset:3px !important;}
}

/* Student appreciation and contextual replies */
.student-quick-feedback{padding:12px;border:1px solid #dfc27c80;border-radius:14px;background:#fffcf3;color:#18284e;margin-bottom:10px}
.student-quick-feedback h3{font-size:14px;margin:0 0 10px;overflow-wrap:anywhere}
.quick-praise-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.quick-praise-options button{display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 5px;border:1px solid #dfc27c;background:#fff8e5;color:#5c4211;border-radius:10px;font-size:12px}
.quick-praise-options button span{font-size:21px}
.student-quick-feedback form{display:grid;gap:8px;margin-top:12px}
.student-quick-feedback label{display:grid;gap:5px;font-size:12px}
.student-quick-feedback textarea{width:100%;min-height:68px;resize:vertical;border:1px solid #d9dfeb;border-radius:9px;padding:8px;background:#fff;color:#18284e}
.student-quick-feedback form>button,.student-reply-button{border:1px solid #c7d3ec;border-radius:9px;padding:7px 12px;background:#edf3ff;color:#213c77;font-weight:600}
.student-reply-button{margin-inline-start:12px;font-size:12px}
.message-class-picker{border:1px solid #d9dfeb;border-radius:12px;padding:10px}
.message-class-picker summary{cursor:pointer;font-weight:600}
.teacher-reply-context{padding:10px 12px;background:#edf3ff;color:#213c77;border-inline-start:3px solid #d5ad50;border-radius:10px;margin:8px 0;overflow-wrap:anywhere}
.teacher-reply-context blockquote{margin:8px 0;white-space:pre-wrap}
.student-praise-panel{padding:16px;margin-bottom:16px;border:1px solid #dcc27e80;border-radius:18px;background:linear-gradient(125deg,#fffdf6,#f8faff);color:#243354}
.student-praise-panel header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.student-praise-panel h2{font-size:16px;margin:0}
.student-praise-panel>div{display:flex;gap:10px;flex-wrap:wrap}
.student-praise-badge{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center;padding:10px 14px;border:1px solid #dcc27e;border-radius:14px;background:#fff8e7;box-shadow:0 3px 12px #bd963d10}
.student-praise-badge>span{grid-row:span 2;font-size:28px}
.student-praise-badge strong{font-size:14px;color:#624914}
.student-praise-badge small{font-size:10px;color:#7a6d50}
.quick-praise-options button:focus-visible,.student-reply-button:focus-visible,.message-class-picker summary:focus-visible{outline:2px solid #a27e22;outline-offset:3px}

.visual-tech .action-modal .teacher-reply-context strong,.visual-tech .action-modal .teacher-reply-context blockquote{color:#213c77!important}
.student-quick-feedback button:disabled,.student-reply-button:disabled{opacity:.55;cursor:default}

/* Marks first; compact appreciation buttons underneath. */
.student-mark-name{margin:0 36px 10px;font-size:15px;overflow-wrap:anywhere}
.student-card-feedback-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;padding-top:15px;margin-top:14px;border-top:1px solid #d8c27e55}
.student-card-feedback-actions button{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;padding:0;border-radius:50%;border:1px solid #d9b45b;background:linear-gradient(145deg,#fff9e8,#f5d88d);box-shadow:0 3px 10px #0002;color:#18385f;cursor:pointer}
.student-card-feedback-actions button span{font-size:25px;line-height:1}
.student-card-feedback-actions .student-card-message{background:linear-gradient(145deg,#dff6ff,#91cde9);border-color:#74bddc;margin-inline-start:5px}
.student-card-feedback-actions svg{width:23px;height:23px}
.student-card-feedback-actions button:disabled{opacity:.5;cursor:default}
.student-card-feedback-actions button:focus-visible{outline:2px solid #f7d26c;outline-offset:4px}
.student-message-window{position:fixed;z-index:10050;display:flex;flex-direction:column;width:min(420px,calc(100vw - 24px));height:min(540px,calc(100dvh - 32px));min-width:min(280px,calc(100vw - 24px));min-height:min(280px,calc(100dvh - 32px));max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);resize:both;overflow:hidden;border:1px solid #d4b165;border-radius:18px;background:#f8faff;color:#173257;box-shadow:0 18px 55px #0005;font:14px/1.45 Arial,sans-serif;text-align:start}
.student-message-window header{display:flex;align-items:center;gap:8px;padding:10px;background:linear-gradient(110deg,#153969,#23547f);color:#fff;flex-shrink:0}
.student-message-window .student-chat-drag{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:4px;background:transparent;color:#fff;border:0;text-align:start;cursor:move;touch-action:none;user-select:none}
.student-chat-drag>svg{width:20px;height:20px;flex-shrink:0}
.student-chat-drag span{min-width:0;display:grid;gap:3px}
.student-chat-drag strong{font-size:14px;overflow-wrap:anywhere;color:#fff}
.student-chat-drag small{font-size:10px;color:#dcecff}
.student-chat-close{display:grid;place-items:center;width:32px;height:32px;border:1px solid #ffffff40;border-radius:50%;background:#ffffff18;color:#fff;flex-shrink:0;cursor:pointer}
.student-chat-close svg{width:18px;height:18px}
.student-chat-history{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px;display:flex;flex-direction:column;gap:10px}
.student-chat-message{padding:10px;border:1px solid #dbe4ee;border-radius:12px;background:#fff;overflow-wrap:anywhere}
.student-chat-message p,.student-chat-response p{margin:6px 0;white-space:pre-wrap}
.student-chat-message small{color:#687a92;font-size:10px}
.student-chat-message audio{width:100%;max-width:100%;margin-top:8px}
.student-chat-message blockquote,.student-chat-reply-context blockquote{margin:6px 0;padding-inline-start:9px;border-inline-start:2px solid #d0ab4b;white-space:pre-wrap;overflow-wrap:anywhere}
.student-chat-response{padding:9px;margin-top:8px;border-radius:9px;background:#edf5fc;color:#183d67}
.student-chat-response strong{font-size:12px}
.student-chat-response button{margin-inline-start:10px;border:1px solid #c7d8e9;border-radius:7px;background:#fff;color:#214d78;font-size:11px;padding:4px 9px}
.student-message-window>form{display:grid;gap:7px;padding:10px 12px;border-top:1px solid #dbe4ee;background:#fff;flex-shrink:0;max-height:55%;overflow:auto}
.student-message-window label{display:grid;gap:4px;font-size:11px;color:#526b86}
.student-message-window textarea{box-sizing:border-box;width:100%;min-height:64px;max-height:160px;resize:vertical;padding:8px;border:1px solid #c9d9e8;border-radius:10px;background:#f8fbff;color:#173257;font:14px/1.4 Arial,sans-serif}
.student-chat-send-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.student-chat-send-row>button{display:flex;align-items:center;gap:7px;padding:7px 14px;border:0;border-radius:9px;background:#176c79;color:#fff;font-weight:700;cursor:pointer}
.student-chat-send-row svg{width:16px;height:16px}
.student-chat-send-row p{margin:0;font-size:11px;color:#405f7b}
.student-message-window button:disabled{opacity:.55;cursor:default}
.student-message-window button:focus-visible{outline:2px solid #d3ad51;outline-offset:2px}
.student-chat-reply-context{padding:7px;border-radius:8px;background:#edf5fc;font-size:11px}
.student-chat-reply-context blockquote{max-height:56px;overflow:auto}
.student-chat-reply-context button,.student-chat-retry{border:0;background:transparent;color:#23547f;font-size:11px;text-align:start;cursor:pointer}

.visual-tech .technology-mark-modal .student-card-feedback-actions button,.student-message-window .student-chat-close{border-radius:50%!important}

.brochure-main-actions{display:contents}
#self-learning-language-host:empty{display:none}
@layer brochure-preview {
html[data-platform-design="gold"] body .brochure-main-actions:has(.sl-header-language){display:flex !important;align-items:center !important;justify-content:center !important;flex-wrap:wrap !important;gap:10px !important;min-width:0 !important;}
html[data-platform-design="gold"] body .sl-header-language{display:flex !important;align-items:center !important;gap:7px !important;color:#fff4c9 !important;font-size:14px !important;font-weight:700 !important;}
html[data-platform-design="gold"] body .sl-header-language select{box-sizing:border-box !important;width:160px !important;max-width:100% !important;min-height:44px !important;padding:8px 10px !important;border:2px solid #ffd052 !important;border-radius:12px !important;background:#073164 !important;color:#fff4c9 !important;font:700 14px/1.4 MajdHub,Arial,sans-serif !important;box-shadow:inset 0 0 0 1px #ffe8a433,0 3px 0 #03204c !important;cursor:pointer !important;}
html[data-platform-design="gold"] body .sl-header-language option{background:#073164 !important;color:#fff4c9 !important;}
html[data-platform-design="gold"] body .sl-header-language select:focus-visible{outline:3px solid #fff !important;outline-offset:3px !important;}
@media(max-width:900px){html[data-platform-design="gold"] body .brochure-main-actions:has(.sl-header-language){grid-column:2 !important;}}
@media(max-width:540px){html[data-platform-design="gold"] body .brochure-main-actions:has(.sl-header-language){grid-column:1 !important;}}
}

@layer brochure-preview {
html[data-platform-design="gold"] body .sl-header-language select,
html[data-platform-design="gold"] body .sl-header-language select:disabled,
html[data-platform-design="gold"] body .sl-header-language option{color:#ffd052 !important;-webkit-text-fill-color:#ffd052 !important;opacity:1 !important;}
}

/* Home uses the same gold as the learning language choice. */
@layer brochure-preview {
html[data-platform-design="gold"] body:has(.sl-page) .brochure-main-return{color:#ffd052 !important;-webkit-text-fill-color:#ffd052 !important;}
}


/* Consistent classroom actions in Arabic and English. */
@layer brochure-preview {
html body .portal.portal .class-file.class-file .class-hub-tabs,
html body .portal.portal .class-file.class-file .class-file-head>div:last-of-type {
 display:grid!important;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;grid-auto-rows:minmax(64px,auto)!important;gap:12px!important;align-items:stretch!important;width:100%!important;box-sizing:border-box!important;
}
html body .portal.portal .class-file.class-file .class-file-head .class-certificate-voice-pair.class-certificate-voice-pair {
 display:contents!important;grid-column:auto!important;
}
html body .portal.portal .class-file.class-file :is(.class-hub-tabs>button,.class-hub-tabs>a,.class-file-head>button,.class-file-head>div:last-of-type>button,.class-certificate-voice-pair>button,.class-certificate-voice-pair>a,.batch-toolbar>button):not([data-owner-design="true"]) {
 display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;box-sizing:border-box!important;min-width:0!important;min-height:64px!important;height:64px!important;max-height:64px!important;margin:0!important;padding:8px 12px!important;border:1px solid var(--admin-primary,#263d70)!important;border-radius:12px!important;background:linear-gradient(135deg,var(--admin-primary,#263d70),var(--admin-secondary,#087f8c))!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-family:Cairo,Arial,sans-serif!important;font-size:18px!important;font-weight:800!important;line-height:1.25!important;white-space:normal!important;overflow-wrap:break-word!important;text-align:center!important;text-decoration:none!important;text-shadow:none!important;box-shadow:0 3px 9px #17365a18!important;
}
html body .portal.portal .class-file.class-file [data-design-button="classCertificate"][data-design-button]:not([data-owner-design="true"]),
html body .portal.portal .teacher-contact-row.teacher-contact-row [data-design-button="teacherCertificate"][data-design-button]:not([data-owner-design="true"]) {
 background:linear-gradient(135deg,#ffe8a5,#dca83d)!important;border:1px solid #c3932c!important;color:#3b2808!important;-webkit-text-fill-color:#3b2808!important;
}
html body .portal.portal .class-file.class-file [data-design-button="classSelfLearning"][data-design-button]:not([data-owner-design="true"]) {
 background:linear-gradient(135deg,#166534,#15803d)!important;border-color:#166534!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
}
html body .portal.portal .class-file.class-file :is(.class-hub-tabs,.class-file-head,.batch-toolbar) :is(button,a):not([data-owner-design="true"])>svg {
 width:20px!important;height:20px!important;flex:0 0 20px!important;color:inherit!important;
}
html body .portal.portal .class-file.class-file .batch-toolbar {display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:12px!important;}
html body .portal.portal .class-file.class-file .batch-toolbar>button {flex:1 1 150px!important;}
html body .portal.portal .class-file.class-file :is(.class-hub-tabs,.class-file-head,.batch-toolbar) button:disabled:not([data-owner-design="true"]) {opacity:.55!important;cursor:default!important;}
@media(max-width:600px){
 html body .portal.portal .class-file.class-file .class-hub-tabs,
 html body .portal.portal .class-file.class-file .class-file-head>div:last-of-type {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
}
}



/* Teacher buttons mean action controls, never student cards. */
@layer brochure-preview {
:root:root:root:root:root:root:root body .portal.role-teacher :is(.class-hub-tabs,.class-file-head>div:last-of-type,.teacher-heading-actions,.portal-tools,.teacher-contact-row,.batch-toolbar) {display:flex!important;flex-wrap:wrap!important;gap:10px!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;box-sizing:border-box!important;}
:root:root:root:root:root:root:root body .portal.role-teacher .class-certificate-voice-pair {display:contents!important;}
:root:root:root:root:root:root:root body .portal.role-teacher :is(.class-hub-tabs>button,.class-hub-tabs>a,.class-file-head>button,.class-file-head>div:last-of-type>button,.class-file-head>div:last-of-type>a,.class-certificate-voice-pair>button,.class-certificate-voice-pair>a,.teacher-heading-actions>button,.teacher-heading-actions>a,.portal-tools>button,.portal-tools>a,.teacher-contact-row>button,.teacher-contact-row>a,.batch-toolbar>button) {
 display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:.4em!important;flex:0 1 auto!important;width:auto!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:none!important;box-sizing:border-box!important;margin:0!important;padding:8px 14px!important;line-height:1.35!important;transform:none!important;position:relative!important;inset:auto!important;overflow-wrap:anywhere!important;white-space:normal!important;border:1px solid #fff!important;transition:box-shadow .18s ease!important;
}
:root:root:root:root:root:root:root body .portal.role-teacher :is(.class-hub-tabs>button,.class-hub-tabs>a,.class-file-head>button,.class-file-head>div:last-of-type>button,.class-file-head>div:last-of-type>a,.class-certificate-voice-pair>button,.class-certificate-voice-pair>a,.teacher-heading-actions>button,.teacher-heading-actions>a,.portal-tools>button,.portal-tools>a,.teacher-contact-row>button,.teacher-contact-row>a,.batch-toolbar>button)>svg {width:1em!important;height:1em!important;flex:0 0 1em!important;}
:root:root:root:root:root:root:root body .portal.role-teacher :is([data-design-button="classCertificate"],[data-design-button="teacherCertificate"]) {background:linear-gradient(135deg,#ffe8a5,#dca83d)!important;color:#3b2808!important;-webkit-text-fill-color:#3b2808!important;}
:root:root:root:root:root:root:root body .portal.role-teacher :is([data-design-button="classCertificate"],[data-design-button="teacherCertificate"]) :is(span,strong,b,small,svg) {color:#3b2808!important;-webkit-text-fill-color:#3b2808!important;}
:root:root:root:root:root:root:root body .portal.role-teacher :is([data-design-button="classSelfLearning"],[data-design-button="teacherSelfLearning"]) {background:linear-gradient(135deg,#166534,#15803d)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;}
:root:root:root:root:root:root:root body .portal.role-teacher :is([data-design-button="classSelfLearning"],[data-design-button="teacherSelfLearning"]) :is(span,strong,b,small,svg) {color:#fff!important;-webkit-text-fill-color:#fff!important;}
:root:root:root:root:root:root:root body .portal.role-teacher :is(.class-hub-tabs>button,.class-hub-tabs>a,.class-file-head>button,.class-file-head>div:last-of-type>button,.class-file-head>div:last-of-type>a,.class-certificate-voice-pair>button,.class-certificate-voice-pair>a,.teacher-heading-actions>button,.teacher-heading-actions>a,.portal-tools>button,.portal-tools>a,.teacher-contact-row>button,.teacher-contact-row>a,.batch-toolbar>button):focus-visible {outline:2px solid #fff!important;outline-offset:3px!important;box-shadow:0 0 0 5px #ffffff55!important;}
@media(hover:hover) and (pointer:fine) {
 :root:root:root:root:root:root:root body .portal.role-teacher :is(.class-hub-tabs>button,.class-hub-tabs>a,.class-file-head>button,.class-file-head>div:last-of-type>button,.class-file-head>div:last-of-type>a,.class-certificate-voice-pair>button,.class-certificate-voice-pair>a,.teacher-heading-actions>button,.teacher-heading-actions>a,.portal-tools>button,.portal-tools>a,.teacher-contact-row>button,.teacher-contact-row>a,.batch-toolbar>button):not(:disabled):hover {box-shadow:0 0 0 3px #ffffff85,0 8px 24px #0005!important;}
 :root:root:root:root:root:root:root body .portal.role-teacher :is(.class-hub-tabs>button,.class-hub-tabs>a,.class-file-head>button,.class-file-head>div:last-of-type>button,.class-file-head>div:last-of-type>a,.class-certificate-voice-pair>button,.class-certificate-voice-pair>a,.teacher-heading-actions>button,.teacher-heading-actions>a,.portal-tools>button,.portal-tools>a,.teacher-contact-row>button,.teacher-contact-row>a,.batch-toolbar>button):not(:disabled):hover::after {content:"";position:absolute;inset:-2px;border-radius:inherit;pointer-events:none;animation:teacher-action-pulse .85s ease-in-out infinite;}
}
@keyframes teacher-action-pulse {0%,100% {box-shadow:0 0 0 2px #ffffff70;opacity:.65;}50% {box-shadow:0 0 0 7px #ffffff45;opacity:1;}}
@media(max-width:600px) {:root:root:root:root:root:root:root body .portal.role-teacher :is(.class-hub-tabs,.class-file-head>div:last-of-type,.teacher-heading-actions,.portal-tools,.teacher-contact-row,.batch-toolbar) {gap:8px!important;} :root:root:root:root:root:root:root body .portal.role-teacher :is(.class-hub-tabs>button,.class-hub-tabs>a,.class-file-head>button,.class-file-head>div:last-of-type>button,.class-file-head>div:last-of-type>a,.class-certificate-voice-pair>button,.class-certificate-voice-pair>a,.teacher-heading-actions>button,.teacher-heading-actions>a,.portal-tools>button,.portal-tools>a,.teacher-contact-row>button,.teacher-contact-row>a,.batch-toolbar>button) {padding:7px 10px!important;}}
@media(prefers-reduced-motion:reduce) {:root:root:root:root:root:root:root body .portal.role-teacher :is(.class-hub-tabs>button,.class-hub-tabs>a,.class-file-head>button,.class-file-head>div:last-of-type>button,.class-file-head>div:last-of-type>a,.class-certificate-voice-pair>button,.class-certificate-voice-pair>a,.teacher-heading-actions>button,.teacher-heading-actions>a,.portal-tools>button,.portal-tools>a,.teacher-contact-row>button,.teacher-contact-row>a,.batch-toolbar>button) {transition:none!important;} :root:root:root:root:root:root:root body .portal.role-teacher :is(.class-hub-tabs>button,.class-hub-tabs>a,.class-file-head>button,.class-file-head>div:last-of-type>button,.class-file-head>div:last-of-type>a,.class-certificate-voice-pair>button,.class-certificate-voice-pair>a,.teacher-heading-actions>button,.teacher-heading-actions>a,.portal-tools>button,.portal-tools>a,.teacher-contact-row>button,.teacher-contact-row>a,.batch-toolbar>button):hover::after {animation:none!important;}}
}

/* Teacher class list: compact top actions and contained branding. */
@layer brochure-preview {
#teacher-header-actions-host:empty {display:none!important;}
:root:root:root:root:root:root:root body:has(.portal.role-teacher) .brochure-main-actions {display:flex!important;align-items:center!important;justify-content:flex-end!important;min-width:0!important;max-width:100%!important;}
:root:root:root:root:root:root:root body .teacher-top-actions .portal-actions {display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:8px!important;position:static!important;inset:auto!important;transform:none!important;width:auto!important;max-width:420px!important;margin:0!important;padding:0!important;}
:root:root:root:root:root:root:root body .teacher-top-actions .portal-actions>button {position:relative!important;inset:auto!important;transform:none!important;translate:none!important;rotate:none!important;scale:none!important;width:auto!important;max-width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:8px 12px!important;display:inline-flex!important;align-items:center!important;gap:6px!important;border:1px solid #fff!important;border-radius:12px!important;background:#073164!important;color:#fff4c9!important;-webkit-text-fill-color:#fff4c9!important;font:700 16px/1.35 Cairo,Arial,sans-serif!important;}
:root:root:root:root:root:root:root body .teacher-top-actions .portal-actions>button:last-child {order:-1!important;}
:root:root:root:root:root:root:root body .teacher-top-actions .portal-actions>button>svg {width:20px!important;height:20px!important;}
:root:root:root:root:root:root:root body .portal.role-teacher .teacher-home-header {display:flex!important;min-height:0!important;height:auto!important;max-height:none!important;padding:0!important;margin:0!important;gap:0!important;border:0!important;}
:root:root:root:root:root:root:root body .portal.role-teacher .teacher-home-header .teacher-contact-row {width:auto!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;transform:none!important;}
:root:root:root:root:root:root:root body .portal.role-teacher:has(.teacher-home-header) .portal-content {padding-top:8px!important;margin-top:0!important;transform:none!important;}
:root:root:root:root:root:root:root body .portal.role-teacher:has(.teacher-home-header) .class-list {margin-top:0!important;transform:none!important;}
:root:root:root:root:root:root:root body:has(.portal.role-teacher) .brochure-main-header {padding-inline:18px!important;box-sizing:border-box!important;max-width:100%!important;overflow:visible!important;}
:root:root:root:root:root:root:root body:has(.portal.role-teacher) .brochure-main-logo {width:100%!important;max-width:490px!important;min-width:0!important;justify-self:center!important;height:auto!important;aspect-ratio:1024/366!important;transform:none!important;translate:none!important;scale:none!important;margin:0!important;}
:root:root:root:root:root:root:root body:has(.portal.role-teacher) .brochure-main-logo>img {width:100%!important;max-width:100%!important;height:auto!important;max-height:100%!important;object-fit:contain!important;transform:none!important;}
@media(max-width:900px) {:root:root:root:root:root:root:root body:has(.portal.role-teacher) .brochure-main-actions {grid-column:2!important;}}
@media(max-width:540px) {:root:root:root:root:root:root:root body:has(.portal.role-teacher) .brochure-main-actions {grid-column:1!important;justify-content:center!important;}}
}

/* Classroom tabs sit directly below the compact shared teacher header. */
@layer brochure-preview {
:root:root:root:root:root:root:root body .portal.role-teacher:has(.class-file) .portal-header {display:flex!important;min-height:0!important;height:auto!important;max-height:none!important;padding:0!important;margin:0!important;gap:0!important;border:0!important;}
:root:root:root:root:root:root:root body .portal.role-teacher:has(.class-file) .portal-header .teacher-contact-row {width:auto!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;transform:none!important;}
:root:root:root:root:root:root:root body .portal.role-teacher:has(.class-file) .portal-content {padding-top:8px!important;margin-top:0!important;transform:none!important;}
:root:root:root:root:root:root:root body .portal.role-teacher:has(.class-file) .class-file {margin-top:0!important;padding-top:0!important;transform:none!important;}
:root:root:root:root:root:root:root body .portal.role-teacher:has(.class-file) .class-hub-tabs {margin-top:0!important;transform:none!important;}
}

/* Solid certificate gold, lighter learning green and closer classroom tabs. */
@layer brochure-preview {
:root:root:root:root:root:root:root body .portal.role-teacher:has(.class-file) .portal-content {padding-top:0!important;}
:root:root:root:root:root:root:root body .portal.role-teacher .class-file .class-hub-tabs {padding-top:4px!important;margin-top:0!important;}
:root:root:root:root:root:root:root body .portal.role-teacher :is([data-design-button="classCertificate"],[data-design-button="teacherCertificate"]) {background:linear-gradient(180deg,#ffeea3 0%,#ffd159 50%,#e8a427 100%)!important;}
:root:root:root:root:root:root:root body .portal.role-teacher :is([data-design-button="classSelfLearning"],[data-design-button="teacherSelfLearning"]) {background:#4caf65!important;background-image:none!important;color:#062c15!important;-webkit-text-fill-color:#062c15!important;}
:root:root:root:root:root:root:root body .portal.role-teacher :is([data-design-button="classSelfLearning"],[data-design-button="teacherSelfLearning"]) :is(span,strong,b,small,svg) {color:#062c15!important;-webkit-text-fill-color:#062c15!important;}
}

/* Teacher header: language beside logout; contact and guide underneath. */
@layer brochure-preview {
:root:root:root:root:root:root:root body .teacher-top-actions .portal-actions {display:grid!important;grid-template-columns:auto auto 38px!important;grid-template-areas:"logout language bell" "contact guide guide"!important;gap:8px!important;align-items:center!important;max-width:100%!important;}
:root:root:root:root:root:root:root body .teacher-top-actions .teacher-logout-control {grid-area:logout!important;}
:root:root:root:root:root:root:root body .teacher-top-actions .teacher-language-control {grid-area:language!important;}
:root:root:root:root:root:root:root body .teacher-top-actions .contact-us-trigger {grid-area:contact!important;justify-self:start!important;}
:root:root:root:root:root:root:root body .teacher-top-actions .message-sound-toggle.message-sound-toggle {grid-area:bell!important;display:inline-flex!important;width:38px!important;height:38px!important;min-height:38px!important;padding:7px!important;}
:root:root:root:root:root:root:root body .teacher-top-actions .message-sound-toggle svg {width:22px!important;height:22px!important;}
:root:root:root:root:root:root:root body .teacher-top-actions .teacher-top-guide {grid-area:guide!important;justify-self:start!important;display:inline-flex!important;align-items:center!important;gap:6px!important;position:relative!important;inset:auto!important;transform:none!important;translate:none!important;scale:none!important;rotate:none!important;margin:0!important;width:auto!important;max-width:100%!important;height:auto!important;min-height:0!important;padding:8px 12px!important;border:1px solid #fff!important;border-radius:12px!important;background:#073164!important;color:#fff4c9!important;-webkit-text-fill-color:#fff4c9!important;font:700 16px/1.35 Cairo,Arial,sans-serif!important;text-decoration:none!important;}
:root:root:root:root:root:root:root body .portal.role-teacher .class-hub-tabs [data-design-button="classGames"] {font-size:16px!important;line-height:1.25!important;padding:7px 12px!important;flex:0 0 auto!important;height:36px!important;min-height:36px!important;max-height:36px!important;width:max-content!important;border-radius:12px!important;box-shadow:0 3px 9px #17365a18!important;}
:root:root:root:root:root:root:root body .portal.role-teacher .class-hub-tabs [data-design-button="classGames"]>span {font-size:1em!important;line-height:1!important;}
@media(max-width:600px){:root:root:root:root:root:root:root body .teacher-top-actions .portal-actions {grid-template-columns:minmax(0,1fr) minmax(0,1fr) 38px!important;width:100%!important;} :root:root:root:root:root:root:root body .teacher-top-actions .portal-actions>button,:root:root:root:root:root:root:root body .teacher-top-actions .teacher-top-guide{font-size:14px!important;}}
}



/* Single shared top navigation for Worksheets and My lessons. */
@layer brochure-preview {
html[data-platform-design="gold"] body .brochure-main-navigation {
  display:inline-flex !important;align-items:center !important;justify-content:flex-end !important;gap:12px !important;flex-wrap:wrap !important;
}
html[data-platform-design="gold"] body .brochure-main-navigation .brochure-main-return {
  grid-column:auto !important;justify-self:auto !important;white-space:nowrap !important;
}
html[data-platform-design="gold"] body .brochure-main-navigation .brochure-main-signout {
  display:inline-flex !important;align-items:center !important;justify-content:center !important;gap:9px !important;
  min-height:48px !important;padding:10px 18px !important;white-space:nowrap !important;
  border:2px solid #860f21 !important;border-radius:13px !important;
  background:linear-gradient(180deg,#ff7d80 0%,#da303e 43%,#a80f24 52%,#ca2236 100%) !important;
  color:#fff !important;font:800 16px Arial,sans-serif !important;cursor:pointer !important;
  text-shadow:0 1px 1px #640517 !important;
  box-shadow:inset 0 2px 1px #ffc8cb99,inset 0 -2px 1px #70051988,0 3px 0 #720b1b,0 6px 9px #45091540 !important;
}
html[data-platform-design="gold"] body .brochure-main-navigation .brochure-main-signout:hover {
  background:linear-gradient(180deg,#ff7d80 0%,#da303e 43%,#a80f24 52%,#ca2236 100%) !important;
  filter:brightness(1.14) !important;
}
html[data-platform-design="gold"] body .brochure-main-navigation .brochure-main-signout:focus-visible {
  outline:3px solid #fff !important;outline-offset:3px !important;
}
@media(max-width:540px){
  html[data-platform-design="gold"] body .brochure-main-navigation {justify-content:center !important;gap:8px !important;}
  html[data-platform-design="gold"] body .brochure-main-navigation .brochure-main-signout {min-height:42px !important;padding:8px 12px !important;font-size:14px !important;}
}
}


/* Match the original teacher/class glossy controls in the shared header.
   Scoped to the two teacher pages that display Sign out; other Home links stay unchanged. */
@layer brochure-preview {
html[data-platform-design="gold"] body .brochure-main-navigation:has(.brochure-main-signout) .brochure-main-signout {
  box-sizing:border-box !important;
  min-height:44px !important;
  padding:8px 13px !important;
  gap:7px !important;
  font-size:15px !important;
  line-height:1.3 !important;
  border-radius:12px !important;
}
html[data-platform-design="gold"] body .brochure-main-navigation:has(.brochure-main-signout) .brochure-main-signout svg {
  width:18px !important;height:18px !important;flex:0 0 18px !important;
}
html[data-platform-design="gold"] body .brochure-main-navigation:has(.brochure-main-signout) .brochure-main-return {
  display:inline-flex !important;align-items:center !important;justify-content:center !important;
  box-sizing:border-box !important;gap:8px !important;
  min-height:44px !important;padding:8px 14px !important;
  border:1px solid #153d65 !important;border-radius:12px !important;
  background:linear-gradient(180deg,#4277ab 0%,#2a5b91 44%,#194473 52%,#276487 100%) !important;
  color:#fff !important;font:800 15px Arial,sans-serif !important;
  text-shadow:0 1px 1px #0a2445 !important;
  box-shadow:inset 0 2px 1px #d0e8ff88,inset 0 -2px 1px #0e2c4b66,0 3px 0 #112f52,0 6px 9px #061c3530 !important;
}
html[data-platform-design="gold"] body .brochure-main-navigation:has(.brochure-main-signout) .brochure-main-return:hover {
  filter:brightness(1.14) !important;
}
@media(max-width:540px) {
  html[data-platform-design="gold"] body .brochure-main-navigation:has(.brochure-main-signout) :is(.brochure-main-signout,.brochure-main-return) {
    min-height:40px !important;padding:7px 11px !important;font-size:13px !important;
  }
}
}


/* My lessons: keep the original Sign out / Home Page pair on top,
   and put Back to class directly beneath it without modifying other routes. */
@layer brochure-preview {
html[data-platform-design="gold"] body .brochure-main-navigation:has(.brochure-main-signout) {
  display:flex !important;flex-direction:column !important;
  align-items:flex-start !important;justify-content:center !important;
  gap:10px !important;
}
html[data-platform-design="gold"] body .brochure-main-navigation .brochure-main-navigation-pair {
  display:flex !important;align-items:center !important;justify-content:flex-start !important;
  gap:12px !important;flex-wrap:wrap !important;
}
html[data-platform-design="gold"] body .brochure-main-navigation .brochure-main-back-class {
  display:inline-flex !important;align-items:center !important;justify-content:center !important;
  gap:8px !important;min-height:39px !important;padding:7px 14px !important;
  border:1px solid #3ec9df !important;border-radius:11px !important;
  background:linear-gradient(180deg,#4277ab 0%,#2a5b91 44%,#194473 52%,#276487 100%) !important;
  color:#fff !important;font:800 14px Arial,sans-serif !important;text-decoration:none !important;
  box-shadow:inset 0 2px 1px #d0e8ff88,inset 0 -2px 1px #0e2c4b66,0 3px 0 #112f52,0 6px 9px #061c3530 !important;
  white-space:nowrap !important;
}
html[data-platform-design="gold"] body .brochure-main-navigation .brochure-main-back-class:hover {
  filter:brightness(1.13) !important;
}
html[data-platform-design="gold"] body .brochure-main-navigation .brochure-main-back-class:focus-visible {
  outline:3px solid #fff !important;outline-offset:3px !important;
}
html[data-platform-design="gold"] body .brochure-main-navigation .brochure-main-back-class svg {
  width:17px !important;height:17px !important;flex-shrink:0 !important;
}
@media(max-width:540px){
  html[data-platform-design="gold"] body .brochure-main-navigation:has(.brochure-main-signout){align-items:center !important;gap:8px !important;}
  html[data-platform-design="gold"] body .brochure-main-navigation .brochure-main-navigation-pair{justify-content:center !important;gap:8px !important;}
}
}


/* Worksheets only: Back to class sits directly under Sign out.
   Home Page remains in the original first row, and My lessons is unaffected. */
@layer brochure-preview {
 html[data-platform-design="gold"] body .brochure-main-navigation:has(.brochure-main-back-class) {
  display:flex!important;flex-direction:column!important;
  align-items:flex-start!important;justify-content:center!important;
  direction:ltr!important;gap:9px!important;
 }
 html[data-platform-design="gold"] body .brochure-main-navigation:has(.brochure-main-back-class) .brochure-main-navigation-pair {
  display:flex!important;justify-content:flex-start!important;direction:ltr!important;gap:12px!important;
 }
 html[data-platform-design="gold"] body .brochure-main-navigation:has(.brochure-main-back-class) .brochure-main-back-class {
  align-self:flex-start!important;direction:ltr!important;
  min-height:39px!important;
 }
 @media(max-width:540px){
  html[data-platform-design="gold"] body .brochure-main-navigation:has(.brochure-main-back-class){
   align-items:flex-start!important;
  }
 }
}

@layer brochure-preview {
 html[data-platform-design="gold"] body .brochure-main-header--practice .brochure-main-navigation {
  align-items:flex-start!important;
  direction:ltr!important;
  gap:8px!important;
 }
 .brochure-main-header--practice .brochure-main-navigation-pair,
 .brochure-learning-links {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
 }
 html[data-platform-design="gold"] body .brochure-main-header--practice .brochure-main-navigation .brochure-main-navigation-pair > #self-learning-language-host.brochure-main-return {
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  min-height:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
 }
 html[data-platform-design="gold"] body .brochure-main-header--practice :is(#self-learning-language-host,#alp-sections-host):empty {
  display:none!important;
 }
 html[data-platform-design="gold"] body .brochure-main-header--practice #self-learning-language-host .sl-language-cycle {
  position:static!important;
  inset:auto!important;
  display:inline-flex!important;
  margin:0!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  min-height:44px!important;
  height:44px!important;
  width:auto!important;
  padding:6px 9px!important;
  border:1px solid #153d65!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,#4277ab 0%,#2a5b91 44%,#194473 52%,#276487 100%)!important;
  box-shadow:inset 0 2px 1px #d0e8ff88,inset 0 -2px 1px #0e2c4b66,0 3px 0 #112f52,0 6px 9px #061c3530!important;
  font:800 13px/1.25 Arial,sans-serif!important;
  white-space:nowrap;
  cursor:pointer;
 }
 html[data-platform-design="gold"] body .brochure-main-header--practice :is(.brochure-main-return,.sl-language-cycle,.sl-language-cycle span,.sl-language-cycle svg) {
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
 }
 html[data-platform-design="gold"] body .brochure-main-header--practice #self-learning-language-host .sl-language-cycle svg {
  width:16px!important;
  height:16px!important;
  flex-shrink:0;
 }
 .brochure-main-header--practice .sl-language-cycle:hover {filter:brightness(1.14)}
 .brochure-main-header--practice .sl-language-cycle:focus-visible {outline:3px solid #fff;outline-offset:3px}

 @media (min-width:901px) {
  html[data-platform-design="gold"] body .brochure-main-header--practice {
   grid-template-columns:clamp(260px,29vw,490px) minmax(0,1fr) auto!important;
   gap:clamp(12px,2vw,28px)!important;
  }
 }
}

@layer majdhub-mobile {
 @media (max-width:900px), (max-height:680px) {
  html[data-platform-design="gold"] body .brochure-main-header--practice {
   gap:8px!important;
   min-height:0!important;
   padding:6px 12px!important;
  }
  html[data-platform-design="gold"] body .brochure-main-header--practice .brochure-main-logo {
   width:min(100%,200px)!important;
   justify-self:center!important;
  }
  html[data-platform-design="gold"] body .brochure-main-header--practice .brochure-main-message strong {
   font-size:clamp(14px,3.2vw,19px)!important;
   line-height:1.2!important;
  }
  html[data-platform-design="gold"] body .brochure-main-header--practice .brochure-main-message>div {
   gap:20px!important;
   margin-top:4px!important;
  }
  html[data-platform-design="gold"] body .brochure-main-header--practice .brochure-main-message svg {
   width:19px!important;
   height:19px!important;
  }
 }
 @media (max-width:900px) {
  html[data-platform-design="gold"] body .brochure-main-header--practice {
   display:grid!important;
   grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  }
  html[data-platform-design="gold"] body .brochure-main-header--practice .brochure-main-actions {
   display:flex!important;
   grid-column:1/-1!important;
   justify-content:center!important;
  }
  html[data-platform-design="gold"] body .brochure-main-header--practice .brochure-main-navigation {
   align-items:center!important;
  }
  html[data-platform-design="gold"] body .brochure-main-header--practice :is(#teacher-header-actions-host,#self-learning-language-host,#alp-sections-host):empty {
   display:none!important;
  }
  html[data-platform-design="gold"] body .brochure-main-header--practice .brochure-main-logo {
   width:min(100%,150px)!important;
  }
  html[data-platform-design="gold"] body .brochure-main-header--practice .brochure-main-navigation-pair > .brochure-main-signout {
   width:clamp(122px,34vw,142px)!important;
   padding:7px 10px!important;
   white-space:nowrap!important;
   font-size:14px!important;
  }
  html[data-platform-design="gold"] body .brochure-main-header--practice #self-learning-language-host {
   flex:0 1 auto!important;
  }
  html[data-platform-design="gold"] body .brochure-main-header--practice #self-learning-language-host .sl-language-cycle {
   padding:6px 9px!important;
   font-size:13px!important;
   line-height:1.25!important;
   white-space:nowrap!important;
  }
  .brochure-learning-links {justify-content:center}
 }
}
