@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("fonts/NotoNaskhArabic-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("fonts/NotoNaskhArabic-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("fonts/NotoNaskhArabic-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("fonts/NotoNaskhArabic-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

.colorly-education-world,
.colorly-education-world *,
.cew-teacher-dashboard,
.cew-teacher-dashboard *,
.cew-teacher-directory,
.cew-teacher-directory * { box-sizing: border-box; }

.colorly-education-world,
.cew-teacher-dashboard,
.cew-teacher-directory {
  --cew-ink: #4d3b59;
  --cew-muted: #75687e;
  --cew-purple: #76538a;
  --cew-line: #eadff0;
  direction: rtl;
  width: 100%;
  margin: 0;
  color: var(--cew-ink);
  font-family: "Noto Naskh Arabic", serif;
}

.colorly-education-world {
  padding: clamp(1rem, 3vw, 2rem);
  background: radial-gradient(ellipse at 8% 3%, rgba(232,211,250,.62), transparent 34%), radial-gradient(ellipse at 94% 88%, rgba(255,224,224,.56), transparent 32%), linear-gradient(145deg, #fcf7ff 0%, #fff8fb 56%, #fff7f0 100%);
  border: 1px solid #f0e4f4;
  border-radius: clamp(1.2rem, 3vw, 1.8rem);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 14px 36px rgba(110,76,128,.075);
  isolation: isolate;
}
.colorly-education-world .cew-shell { width: min(100%, 1240px); margin-inline: auto; }
.colorly-education-world .cew-heading { margin: 0 auto clamp(1.25rem, 3vw, 2rem); text-align: center; }
.colorly-education-world .cew-eyebrow,
.cew-dashboard-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .8rem;
  color: #77588b;
  background: #f1eaf6;
  border: 1px solid #e8ddef;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 750;
}
.colorly-education-world .cew-heading h1 { margin: .55rem 0 .2rem; color: #76538a; font-size: clamp(1.8rem, 4vw, 2.55rem); font-weight: 850; line-height: 1.35; }
.colorly-education-world .cew-heading p { margin: 0; color: var(--cew-muted); font-size: clamp(1rem, 2.2vw, 1.15rem); line-height: 1.8; }
.colorly-education-world .cew-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(.7rem, 1.6vw, 1.1rem); margin: 0; padding: 0; list-style: none; }
.colorly-education-world .cew-grid-item { min-width: 0; margin: 0; padding: 0; }
.colorly-education-world .cew-card {
  display: flex;
  min-height: 330px;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  color: var(--cew-ink);
  background: linear-gradient(180deg, #fffefd 0%, #fff 100%);
  border: 1px solid #eee1f0;
  border-radius: 1.35rem;
  box-shadow: 0 8px 20px rgba(106,70,125,.085), inset 0 1px 0 rgba(255,255,255,.96);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.colorly-education-world a.cew-card:hover { color: var(--cew-ink); border-color: rgba(112,78,132,.28); box-shadow: 0 15px 30px rgba(101,67,120,.16), inset 0 1px 0 rgba(255,255,255,.96); transform: translateY(-3px); }
.colorly-education-world a.cew-card:focus-visible { outline: 3px solid #a17db6; outline-offset: 4px; }
.colorly-education-world .cew-card--inactive { box-shadow: none; }
.colorly-education-world .cew-card-visual {
  display: grid;
  width: 100%;
  height: clamp(140px, 18vw, 180px);
  flex: 0 0 auto;
  place-items: center;
  padding: .65rem;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.74), transparent 58%), var(--cew-card-bg, #f1e9f6);
}
.colorly-education-world .cew-card-image { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; object-position: center; }
.colorly-education-world .cew-icon-fallback { display: grid; width: min(100%, 8.5rem); height: 100%; place-items: center; color: var(--cew-card-accent, #76538a); background: transparent; border: 0; border-radius: 0; }
.colorly-education-world .cew-icon-3d { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; filter: drop-shadow(0 8px 7px rgba(113,73,130,.16)); }
.colorly-education-world .cew-card-copy { display: grid; gap: .38rem; flex: 1 1 auto; align-content: start; padding: .78rem 1rem .25rem; text-align: center; }
.colorly-education-world .cew-card-title { display: block; color: var(--cew-card-accent, #76538a); font-size: clamp(1rem, 1.4vw, 1.18rem); font-weight: 850; line-height: 1.55; overflow-wrap: anywhere; }
.colorly-education-world .cew-card-description { display: block; color: #6e6078; font-size: .9rem; line-height: 1.75; }
.colorly-education-world .cew-card-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; align-self: center; min-width: 132px; min-height: 42px; margin: .55rem 1rem 1rem; padding: .55rem 1rem; color: #fff; background: var(--cew-card-accent, #76538a); border: 0; border-radius: 999px; box-shadow: 0 4px 10px rgba(70,45,80,.13); font-size: .88rem; font-weight: 850; text-align: center; }
.colorly-education-world .cew-card-button span { font-size: 1.05rem; line-height: 1; }
.colorly-education-world .cew-card-button--inactive { color: #fff; background: var(--cew-card-accent, #76538a); box-shadow: none; opacity: .72; cursor: not-allowed; }
.colorly-education-world .cew-footer-note,.colorly-education-world .cew-empty { margin: 1rem 0 0; color: #82758a; font-size: .84rem; line-height: 1.7; text-align: center; }
@media (min-width: 900px) { .colorly-education-world .cew-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; } .colorly-education-world .cew-card { min-height: 335px; } }
@media (min-width: 600px) and (max-width: 899px) { .colorly-education-world .cew-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 420px) {
  .colorly-education-world { padding: .7rem; border-radius: 1.05rem; }
  .colorly-education-world .cew-grid { gap: .6rem; }
  .colorly-education-world .cew-card { min-height: 292px; border-radius: .95rem; }
  .colorly-education-world .cew-card-visual { height: 120px; padding: .5rem; }
  .colorly-education-world .cew-card-copy { gap: .3rem; padding: .65rem .65rem .15rem; }
  .colorly-education-world .cew-card-title { font-size: .95rem; }
  .colorly-education-world .cew-card-description { font-size: .8rem; line-height: 1.65; }
  .colorly-education-world .cew-card-button { min-width: 112px; min-height: 38px; margin: .45rem .55rem .7rem; padding: .45rem .7rem; font-size: .78rem; }
  .colorly-education-world .cew-icon-fallback { width: min(100%, 6.6rem); height: 100%; }
}
@media (max-width: 340px) { .colorly-education-world .cew-grid { grid-template-columns: 1fr; } .colorly-education-world .cew-card { min-height: 300px; } }

.cew-teacher-dashboard,
.cew-teacher-directory { max-width: 1180px; margin-inline: auto; padding: clamp(1rem,3vw,1.7rem); color: var(--cew-ink); background: #fcf9fe; border: 1px solid #f0e8f4; border-radius: 1.5rem; }
.cew-dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.cew-dashboard-heading h2,.cew-directory-heading h2 { margin: .55rem 0 .2rem; color: #76538a; font-size: clamp(1.45rem,3vw,2rem); line-height: 1.4; }
.cew-dashboard-heading p,.cew-directory-heading p { margin: 0; color: var(--cew-muted); line-height: 1.7; }
.cew-dashboard-mark,.cew-profile-avatar { display: grid; width: 3rem; height: 3rem; flex: 0 0 3rem; place-items: center; color: #76538a; background: #f0e8f7; border: 1px solid #e9ddf0; border-radius: 1rem; font-size: 1.2rem; font-weight: 850; }
.cew-profile-avatar { object-fit: cover; overflow: hidden; }
.cew-teacher-profile header .cew-profile-avatar { width: 4.5rem; height: 4.5rem; flex-basis: 4.5rem; border-radius: 50%; }
.cew-directory-card .cew-profile-avatar { border-radius: 50%; }
.cew-dashboard-distinction { display: grid; gap: .25rem .75rem; margin: 0 0 1rem; padding: .85rem 1rem; color: #685477; background: linear-gradient(110deg,#f4edf8,#fff5f6 62%,#fff5eb); border: 1px solid #eadff0; border-radius: .95rem; line-height: 1.75; }
.cew-dashboard-distinction strong { color: #624676; }
.cew-dashboard-distinction a { width: fit-content; color: #76538a; font-weight: 850; text-decoration: underline; text-underline-offset: .15em; }
.cew-dashboard-home { margin: 0 0 1.1rem; padding: clamp(.85rem,2.5vw,1.2rem); background: linear-gradient(145deg,#faf6fd 0%,#fff8fa 56%,#fff8f1 100%); border: 1px solid #eadff0; border-radius: 1.2rem; }
.cew-dashboard-home-heading { margin: 0 0 .8rem; }
.cew-dashboard-home-heading h3 { margin: .35rem 0 .05rem; color: #654a78; font-size: clamp(1.1rem,2.3vw,1.35rem); }
.cew-dashboard-home-heading p { margin: 0; color: #75687e; font-size: .9rem; line-height: 1.65; }
.cew-dashboard-nav-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .7rem; }
.cew-dashboard-nav-card { display: flex; min-width: 0; min-height: 116px; align-items: center; gap: .85rem; padding: .85rem; color: #554463; background: #fff; border: 1px solid #eee4f1; border-radius: 1rem; text-decoration: none; box-shadow: 0 4px 12px rgba(89,63,103,.045); transition: transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.cew-dashboard-nav-card:hover { color: #554463; border-color: #d7c5e1; box-shadow: 0 9px 18px rgba(89,63,103,.1); transform: translateY(-2px); }
.cew-dashboard-nav-card:focus-visible { outline: 3px solid #a17db6; outline-offset: 3px; }
.cew-dashboard-nav-icon { display: grid; width: 4.65rem; height: 4.65rem; flex: 0 0 4.65rem; place-items: center; overflow: hidden; background: #eee3f5; border: 1px solid #e3d4ed; border-radius: 1.15rem; box-shadow: 0 4px 10px rgba(89,63,103,.1); }
.cew-dashboard-nav-icon .cew-icon-3d { width: 4.35rem; height: 4.35rem; filter: drop-shadow(0 4px 5px rgba(89,63,103,.2)); }
.cew-dashboard-nav-card--materials .cew-dashboard-nav-icon,.cew-dashboard-nav-card--classes .cew-dashboard-nav-icon { background: #fff0e4; }
.cew-dashboard-nav-card--groups .cew-dashboard-nav-icon,.cew-dashboard-nav-card--tools .cew-dashboard-nav-icon { background: #f0e9f6; }
.cew-dashboard-nav-card--messages .cew-dashboard-nav-icon { background: #faeaf0; }
.cew-dashboard-nav-copy { display: grid; min-width: 0; gap: .08rem; }
.cew-dashboard-nav-copy strong { color: #654a78; font-size: 1.02rem; line-height: 1.5; }
.cew-dashboard-nav-copy small { color: #7a6c83; font-size: .79rem; line-height: 1.45; }
.cew-dashboard-nav-arrow { margin-inline-start: auto; color: #9a7baa; font-size: 1.1rem; }
.cew-teacher-dashboard [id^="cew-teacher-"] { scroll-margin-top: 1.25rem; }
.cew-dashboard-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; align-items: start; }
.cew-dashboard-panel { min-width: 0; padding: clamp(.95rem,2.5vw,1.35rem); background: #fff; border: 1px solid #eee5f1; border-radius: 1.15rem; box-shadow: 0 6px 20px rgba(89,63,103,.045); }
.cew-dashboard-panel h3 { margin: 0 0 .35rem; color: #654a78; font-size: 1.2rem; }
.cew-dashboard-panel h4 { margin: 1.3rem 0 .55rem; color: #654a78; font-size: 1.05rem; }
.cew-meet-creator { margin: 1rem 0; padding: .9rem; background: #fcf9fe; border: 1px solid #eee5f1; border-radius: .9rem; }
.cew-meet-creator h4 { margin: 0 0 .35rem; color: #654a78; }
.cew-meet-creator p { margin: .25rem 0 .65rem; }
.cew-meet-creator form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .15rem .75rem; align-items: end; }
.cew-meet-creator form button { grid-column: 1 / -1; justify-self: start; }
.cew-dashboard-help,.cew-dashboard-privacy { color: #75687e; font-size: .9rem; line-height: 1.75; }
.cew-teacher-dashboard form label { display: grid; gap: .4rem; margin: .8rem 0; color: #554463; font-weight: 750; }
.cew-teacher-dashboard input[type="text"],.cew-teacher-dashboard input[type="tel"],.cew-teacher-dashboard input[type="url"],.cew-teacher-dashboard input[type="datetime-local"],.cew-teacher-dashboard input[type="number"],.cew-teacher-dashboard input[type="file"],.cew-teacher-dashboard textarea,.cew-teacher-dashboard select { width: 100%; min-height: 44px; padding: .65rem .75rem; color: #4d3b59; background: #fff; border: 1px solid #e2d7e8; border-radius: .75rem; font: inherit; font-size: .95rem; line-height: 1.65; }
.cew-teacher-dashboard textarea { resize: vertical; }
.cew-dashboard-fields-two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.cew-teacher-dashboard .cew-check-row { display: flex; align-items: flex-start; gap: .6rem; color: #62536e; font-size: .92rem; line-height: 1.6; }
.cew-teacher-dashboard .cew-check-row input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; accent-color: #76538a; }
.cew-teacher-dashboard fieldset { min-width: 0; margin: .9rem 0; padding: .6rem .8rem; border: 1px solid #e2d7e8; border-radius: .8rem; }
.cew-teacher-dashboard fieldset legend { padding: 0 .35rem; color: #654a78; font-weight: 850; }
.cew-teacher-dashboard fieldset .cew-dashboard-fields-two { gap: .15rem .7rem; }
.cew-teacher-photo-preview { margin: .5rem 0; }
.cew-teacher-photo-preview .cew-profile-avatar { width: 5rem; height: 5rem; flex-basis: 5rem; border-radius: 50%; }
.cew-dashboard-button,.cew-directory-link { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .65rem 1rem; color: #fff !important; background: #76538a; border: 0; border-radius: .8rem; font: inherit; font-size: .93rem; font-weight: 800; text-align: center; text-decoration: none; cursor: pointer; }
.cew-dashboard-button:hover,.cew-directory-link:hover { color: #fff !important; background: #684778; }
.cew-dashboard-button--quiet { color: #654a78 !important; background: #f3edf7; }
.cew-dashboard-buttons { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.cew-notice { margin: 0 0 1rem; padding: .75rem 1rem; color: #654a78; background: #f2eaf6; border: 1px solid #e7dced; border-radius: .8rem; }
.cew-material-list,.cew-public-materials { display: grid; gap: .55rem; margin: .6rem 0 0; padding: 0; list-style: none; }
.cew-material-list li { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .7rem; background: #fcf9fe; border: 1px solid #eee5f1; border-radius: .75rem; }
.cew-material-list li strong,.cew-material-list li small { display: block; }
.cew-material-list li strong { color: #4d3b59; font-size: .92rem; }
.cew-material-list li small { margin-top: .18rem; color: #7b6d84; font-size: .82rem; }
.cew-material-actions { display: flex; flex: 0 0 auto; align-items: center; gap: .5rem; }
.cew-material-actions a,.cew-link-delete,.cew-directory-back { color: #76538a; font: inherit; font-size: .86rem; font-weight: 750; text-decoration: none; }
.cew-material-actions form { margin: 0; }
.cew-link-delete { padding: 0; color: #9b5e73; background: none; border: 0; cursor: pointer; }
.cew-dashboard-privacy { margin: 1rem 0 0; }
.cew-directory-heading { margin-bottom: 1.2rem; text-align: center; }
.cew-directory-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .9rem; }
.cew-directory-card { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: .55rem; padding: 1rem; background: #fff; border: 1px solid #eee5f1; border-radius: 1rem; }
.cew-directory-card h3 { margin: 0; color: #4d3b59; font-size: 1.08rem; }
.cew-directory-card p { margin: 0; color: #6e6078; font-size: .9rem; line-height: 1.65; }
.cew-directory-city { color: #84758d !important; }
.cew-offer-badge { display: inline-flex; margin-top: .1rem; padding: .3rem .55rem; color: #715287; background: #f2eaf6; border-radius: 999px; font-size: .8rem; font-weight: 750; }
.cew-directory-link { width: 100%; justify-content: space-between; margin-top: auto; }
.cew-teacher-profile { max-width: 800px; margin: 0 auto; padding: clamp(1rem,3vw,1.5rem); background: #fff; border: 1px solid #eee5f1; border-radius: 1.2rem; }
.cew-teacher-profile header { display: flex; align-items: center; gap: .8rem; margin-bottom: .75rem; }
.cew-teacher-profile h3 { margin: 0 0 .25rem; color: #4d3b59; font-size: 1.35rem; }
.cew-teacher-profile p { color: #6e6078; line-height: 1.8; }
.cew-profile-details { display: grid; gap: .35rem; margin: .75rem 0; color: #6e6078; font-size: .92rem; }
.cew-profile-details b { color: #5e4b6c; }
.cew-profile-offers { padding: .7rem .85rem; background: #fbf6fd; border-radius: .75rem; }
.cew-public-materials li { padding: .75rem; background: #fcf9fe; border: 1px solid #eee5f1; border-radius: .75rem; }
.cew-public-materials li strong,.cew-public-materials li span { display: block; }
.cew-public-materials li span { margin-top: .2rem; color: #76538a; font-size: .84rem; font-weight: 750; }
.cew-public-materials li p { margin: .5rem 0 0; font-size: .92rem; }
.cew-directory-back { display: inline-block; margin-top: .85rem; }
.cew-empty { color: #75687e; line-height: 1.7; }
@media (max-width: 760px) { .cew-dashboard-grid { grid-template-columns: 1fr; } .cew-dashboard-nav-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .cew-dashboard-nav-card { min-height: 150px; flex-direction: column; justify-content: center; gap: .45rem; padding: .75rem .55rem; text-align: center; } .cew-dashboard-nav-copy { justify-items: center; } .cew-dashboard-nav-icon { width: 4.35rem; height: 4.35rem; flex-basis: 4.35rem; } .cew-dashboard-nav-icon .cew-icon-3d { width: 4.05rem; height: 4.05rem; } .cew-dashboard-nav-arrow { display: none; } .cew-directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 440px) {
  .cew-teacher-dashboard,.cew-teacher-directory { padding: .85rem; border-radius: 1.15rem; }
  .cew-dashboard-fields-two { grid-template-columns: 1fr; gap: 0; }
  .cew-dashboard-nav-grid { gap: .5rem; }
  .cew-dashboard-nav-card { min-height: 142px; gap: .35rem; padding: .65rem .4rem; }
  .cew-dashboard-nav-icon { width: 4.1rem; height: 4.1rem; flex-basis: 4.1rem; border-radius: .95rem; }
  .cew-dashboard-nav-icon .cew-icon-3d { width: 3.85rem; height: 3.85rem; }
  .cew-dashboard-nav-copy strong { font-size: .91rem; }
  .cew-dashboard-nav-copy small { font-size: .7rem; }
  .cew-directory-grid { grid-template-columns: 1fr; }
  .cew-material-list li { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .colorly-education-world .cew-card,.colorly-education-world .cew-card-button,.cew-dashboard-nav-card { transition: none; } }


/* Student/teacher accounts, private conversations and external live sessions. */
.cew-account-portal,
.cew-account-portal *,
.cew-student-dashboard,
.cew-student-dashboard *,
.cew-live-classes,
.cew-live-classes *,
.cew-communication-grid,
.cew-communication-grid *,
.cew-conversation-hub,
.cew-conversation-hub *,
.cew-thread,
.cew-thread * { box-sizing: border-box; }
.cew-account-portal,
.cew-student-dashboard { --cew-ink:#4d3b59; --cew-muted:#75687e; direction:rtl; width:100%; max-width:1000px; margin:0 auto; padding:clamp(.9rem,3vw,1.6rem); color:var(--cew-ink); background:#fcf9fe; border:1px solid #f0e8f4; border-radius:1.35rem; font-family:inherit; }
.cew-account-heading { margin-bottom:1.15rem; text-align:center; }
.cew-account-heading h2,.cew-student-dashboard h2 { margin:.6rem 0 .2rem; color:#76538a; font-size:clamp(1.45rem,3vw,2rem); line-height:1.4; }
.cew-account-heading p,.cew-privacy-note { color:#75687e; font-size:.92rem; line-height:1.75; }
.cew-registration-panel,.cew-login-panel,.cew-resend-panel,.cew-guardian-fields { margin:.85rem 0; padding:clamp(.85rem,2.5vw,1.25rem); background:#fff; border:1px solid #eee5f1; border-radius:1rem; }
.cew-registration-panel h3 { margin:0 0 .55rem; color:#654a78; font-size:1.15rem; }
.cew-account-portal label,.cew-student-dashboard form label,.cew-thread form label,.cew-session-form form label { display:grid; gap:.4rem; margin:.7rem 0; color:#554463; font-weight:750; }
.cew-account-portal input:not([type=checkbox]),.cew-student-dashboard input:not([type=checkbox]),.cew-thread input:not([type=hidden]),.cew-thread textarea,.cew-account-portal textarea { width:100%; min-height:44px; padding:.65rem .75rem; color:#4d3b59; background:#fff; border:1px solid #e2d7e8; border-radius:.75rem; font:inherit; font-size:.95rem; line-height:1.65; }
.cew-account-portal input:focus,.cew-student-dashboard input:focus,.cew-thread textarea:focus { outline:3px solid #dfcde9; outline-offset:1px; border-color:#9c7bb0; }
.cew-account-fields-two { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; }
.cew-guardian-fields { min-width:0; }
.cew-guardian-fields legend { padding:0 .35rem; color:#654a78; font-weight:850; }
.cew-account-portal .cew-check-row,.cew-student-dashboard .cew-check-row { display:flex; align-items:flex-start; gap:.55rem; color:#62536e; font-size:.9rem; line-height:1.65; }
.cew-account-portal .cew-check-row input,.cew-student-dashboard .cew-check-row input { width:1.1rem; height:1.1rem; flex:0 0 auto; margin-top:.15rem; accent-color:#76538a; }
.cew-account-portal .login-username,.cew-account-portal .login-password,.cew-account-portal .login-remember { margin:.65rem 0; }
.cew-account-portal .login-username label,.cew-account-portal .login-password label { display:grid; gap:.4rem; }
.cew-account-portal .login-username input,.cew-account-portal .login-password input { min-height:44px; width:100%; padding:.65rem .75rem; border:1px solid #e2d7e8; border-radius:.75rem; font:inherit; }
.cew-account-portal .login-submit input { min-height:44px; padding:.55rem 1rem; color:#fff; background:#76538a; border:0; border-radius:.8rem; font:inherit; font-weight:800; cursor:pointer; }
.cew-login-panel summary,.cew-resend-panel summary,.cew-session-form summary,.cew-group-students summary,.cew-private-contact summary { color:#76538a; font-weight:850; cursor:pointer; }
.cew-student-dashboard .cew-dashboard-grid { margin:1rem 0; }
.cew-communication-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin:1rem 0; }
.cew-personal-tools ul,.cew-conversation-list ul,.cew-pending-list,.cew-open-groups,.cew-group-students ul { display:grid; gap:.5rem; margin:.65rem 0; padding:0; list-style:none; }
.cew-personal-tools li a,.cew-conversation-list li a { display:block; padding:.7rem .8rem; color:#684778; background:#fbf7fd; border:1px solid #eee5f1; border-radius:.7rem; font-weight:750; text-decoration:none; overflow-wrap:anywhere; }
.cew-personal-tools li a:hover,.cew-conversation-list li a:hover { background:#f4edf8; }
.cew-group-card { margin:.8rem 0; padding:.85rem; background:#fcf9fe; border:1px solid #eee5f1; border-radius:.85rem; }
.cew-group-card h4 { margin:.1rem 0 .5rem; color:#654a78; }
.cew-group-card h5,.cew-session-list h5 { color:#654a78; }
.cew-pending-list li,.cew-open-groups li,.cew-group-students li { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.55rem; padding:.6rem; background:#fff; border:1px solid #eee5f1; border-radius:.7rem; }
.cew-pending-list form,.cew-open-groups form { margin:0; }
.cew-conversation-hub { margin-top:1rem; }
.cew-thread { margin-top:1rem; padding:1rem; background:#fff; border:1px solid #e9deef; border-radius:1rem; }
.cew-thread header h4 { margin:0 0 .25rem; color:#654a78; }
.cew-thread header p { margin:0; color:#75687e; font-size:.88rem; }
.cew-message-list { display:grid; gap:.6rem; max-height:560px; overflow:auto; margin:1rem 0; padding:0; list-style:none; }
.cew-message-list li { max-width:88%; padding:.65rem .8rem; background:#f8f3fa; border:1px solid #eee5f1; border-radius:.85rem 0 .85rem .85rem; }
.cew-message-list li.cew-message--mine { justify-self:start; background:#fdf4f8; border-color:#f0e0e8; }
.cew-message-list strong { color:#654a78; font-size:.88rem; }
.cew-message-list p { margin:.25rem 0; line-height:1.7; overflow-wrap:anywhere; }
.cew-message-list time { color:#82758a; font-size:.76rem; }
.cew-message-form textarea { resize:vertical; }
.cew-private-contact { margin:.7rem 0; padding:.65rem; background:#fcf9fe; border:1px solid #eee5f1; border-radius:.7rem; }
.cew-private-contact dl { display:grid; grid-template-columns:max-content 1fr; gap:.3rem .6rem; margin:.7rem 0 0; font-size:.88rem; }
.cew-private-contact dt { color:#654a78; font-weight:800; }
.cew-private-contact dd { margin:0; overflow-wrap:anywhere; }
.cew-private-contact a,.cew-whatsapp-share { color:#76538a; font-weight:800; text-decoration:underline; }
.cew-session-form,.cew-session-list { margin-top:1rem; padding:.8rem; background:#fcf9fe; border:1px solid #eee5f1; border-radius:.8rem; }
.cew-session-list article { display:grid; gap:.45rem; margin:.7rem 0; padding:.75rem; background:#fff; border:1px solid #eee5f1; border-radius:.75rem; }
.cew-session-list h6 { margin:0; color:#654a78; font-size:1rem; }
.cew-session-list p,.cew-session-list small { margin:0; color:#75687e; line-height:1.6; }
.cew-session-list .cew-dashboard-button { justify-self:start; }
.cew-live-classes { max-width:1000px; margin:0 auto; padding:clamp(.9rem,3vw,1.5rem); color:#4d3b59; background:#fcf9fe; border:1px solid #f0e8f4; border-radius:1.25rem; }
.cew-live-classes-heading { display:flex; align-items:center; gap:1rem; margin-bottom:1rem; padding:.75rem; background:#fff; border:1px solid #eee5f1; border-radius:1rem; }
.cew-live-classes-heading img { width:5rem; height:5rem; flex:0 0 5rem; object-fit:contain; }
.cew-live-classes-heading h2 { margin:.2rem 0; color:#76538a; font-size:clamp(1.4rem,3vw,1.9rem); }
.cew-live-classes-heading p { margin:.2rem 0; color:#75687e; line-height:1.7; }
.cew-live-session-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.85rem; }
.cew-live-session-card,.cew-live-empty { display:grid; gap:.45rem; padding:1rem; background:#fff; border:1px solid #eee5f1; border-radius:.9rem; }
.cew-live-session-card h3 { margin:.15rem 0; color:#654a78; font-size:1.1rem; }
.cew-live-session-card p,.cew-live-session-card small,.cew-live-empty p { margin:0; color:#75687e; line-height:1.7; overflow-wrap:anywhere; }
.cew-live-session-card .cew-dashboard-button { justify-self:start; }
.cew-account-heading .cew-page-illustration,.cew-dashboard-heading .cew-page-illustration { display:block; width:4.4rem; height:4.4rem; margin:0 auto .4rem; object-fit:contain; }
.cew-directory-heading .cew-page-illustration { display:block; width:4.5rem; height:4.5rem; margin:0 auto .5rem; object-fit:contain; }
.cew-profile-actions { margin:1rem 0; padding:.85rem; background:#fcf9fe; border:1px solid #eee5f1; border-radius:.8rem; }
.cew-profile-actions h4,.cew-profile-actions h5 { margin:.2rem 0 .6rem; color:#654a78; }
.cew-profile-actions form { display:inline-block; margin:.25rem 0; }
.cew-open-groups { margin-top:.55rem; }
.cew-open-groups li { align-items:flex-start; }
@media (max-width:700px) { .cew-communication-grid,.cew-live-session-grid { grid-template-columns:1fr; } .cew-meet-creator form { grid-template-columns:1fr; } .cew-meet-creator form button { grid-column:auto; } }
@media (max-width:480px) { .cew-account-fields-two { grid-template-columns:1fr; gap:0; } .cew-account-portal,.cew-student-dashboard { padding:.75rem; border-radius:1rem; } .cew-live-classes { padding:.7rem; border-radius:1rem; } .cew-live-classes-heading { align-items:flex-start; gap:.5rem; padding:.6rem; } .cew-live-classes-heading img { width:3.7rem; height:3.7rem; flex-basis:3.7rem; } .cew-live-session-card { padding:.8rem; } .cew-message-list li { max-width:96%; } .cew-pending-list li,.cew-open-groups li,.cew-group-students li { align-items:flex-start; flex-direction:column; } }

.cew-account-portal,.cew-account-portal *,
.cew-student-dashboard,.cew-student-dashboard *,
.cew-live-classes,.cew-live-classes *,
.cew-communication-grid,.cew-communication-grid *,
.cew-conversation-hub,.cew-conversation-hub *,
.cew-thread,.cew-thread *,
.cew-teacher-profile,.cew-teacher-profile * { font-family: "Noto Naskh Arabic", serif; }


/* Independent, publicly shareable teacher profile page. */
.cew-teacher-profile-page,
.cew-teacher-profile-page * { box-sizing: border-box; }
.cew-teacher-profile-page { --cew-ink:#4d3b59; --cew-muted:#75687e; direction:rtl; width:100%; max-width:1040px; margin:0 auto; padding:clamp(1rem,3vw,1.8rem); color:var(--cew-ink); background:radial-gradient(ellipse at 8% 3%,rgba(232,211,250,.42),transparent 34%),linear-gradient(145deg,#fcf9fe 0%,#fff 100%); border:1px solid #f0e8f4; border-radius:1.4rem; font-family:"Noto Naskh Arabic",serif; }
.cew-profile-page-heading { margin:0 auto 1rem; text-align:center; }
.cew-profile-page-heading h2 { margin:.35rem 0 .2rem; color:#76538a; font-size:clamp(1.5rem,3vw,2.1rem); line-height:1.4; }
.cew-profile-page-heading p { margin:0; color:var(--cew-muted); line-height:1.75; }
.cew-profile-page-kicker { display:inline-flex; padding:.35rem .75rem; color:#76538a; background:#f1eaf6; border:1px solid #e8ddef; border-radius:999px; font-size:.88rem; font-weight:800; }
.cew-profile-page-message { max-width:800px; margin:1rem auto; padding:1rem; color:#6e6078; background:#fff; border:1px solid #eee5f1; border-radius:.9rem; text-align:center; line-height:1.8; }
.cew-profile-page-back { max-width:800px; margin:.85rem auto 0; }
.cew-teacher-profile-page .cew-teacher-profile { max-width:800px; }
.cew-teacher-profile-page .cew-profile-avatar { width:5rem; height:5rem; flex-basis:5rem; border-radius:50%; }
.cew-teacher-profile-page .cew-profile-details { gap:.45rem; }
.cew-teacher-profile-page .cew-public-materials { gap:.65rem; }
.cew-teacher-profile-page .cew-profile-actions { margin-top:1.1rem; }
.cew-teacher-profile-page .cew-directory-back { display:inline-flex; align-items:center; min-height:42px; padding:.45rem .8rem; background:#f3edf7; border-radius:.7rem; }
.cew-teacher-profile-page .cew-directory-back:hover { color:#684778; background:#ece2f2; }
.cew-teacher-profile-page,.cew-teacher-profile-page * { font-family:"Noto Naskh Arabic",serif; }
@media (max-width:480px) { .cew-teacher-profile-page { padding:.75rem; border-radius:1rem; } .cew-teacher-profile-page .cew-teacher-profile { padding:.85rem; } .cew-teacher-profile-page .cew-teacher-profile header { align-items:flex-start; } .cew-teacher-profile-page .cew-profile-avatar { width:4rem; height:4rem; flex-basis:4rem; } .cew-teacher-profile-page .cew-profile-actions { padding:.7rem; } .cew-teacher-profile-page .cew-profile-actions .cew-dashboard-button { width:100%; } }

.cew-teacher-profile-page .cew-profile-register-link { color:#76538a; font-weight:800; text-decoration:none; text-underline-offset:.18em; }
.cew-teacher-profile-page .cew-profile-register-link:hover,.cew-teacher-profile-page .cew-profile-register-link:focus-visible { color:#5e3e72; text-decoration:underline; }
.cew-teacher-profile-page .cew-profile-register-link:focus-visible { outline:2px solid #a17db6; outline-offset:2px; border-radius:3px; }
.cew-directory-teacher-signup { margin:.65rem 0 0 !important; }
.cew-directory-teacher-signup .cew-directory-back { min-height:40px; }
