/* enaviya classroom — homepage and app shell tweaks on top of enaviya-theme */

/* Site-wide: light, narrow scrollbars (overrides main_styles dark bar) */
html {
  scrollbar-width: thin;
  scrollbar-color: #d0d7e2 transparent;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
  background: transparent !important;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
  background: transparent !important;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
  background: #d0d7e2 !important;
  border-radius: 999px !important;
  border: none !important;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
  background: #b8c3d4 !important;
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
  background: transparent !important;
}

.en-home .en-wordmark-product,
.en-app .en-wordmark-product {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #0f1b33 !important;
}

/* Homepage search uses en-pro-panel styles from enaviya-home.css */

.en-classroom-chips .en-chip {
  border: 0;
  background: transparent;
  cursor: default;
  padding: 0;
  font-size: inherit;
}

/* Hero title: two rows, contained in the left column (never under the image) */
.en-pro-hero-copy {
  container-type: inline-size;
  overflow: visible;
  padding-right: 16px;
}

.en-pro-hero-copy h1 {
  width: 100%;
  max-width: 100% !important;
  font-size: 2.4rem !important;
}

.en-pro-hero h1 .en-pro-h1-line {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .en-pro-hero-copy h1 {
    font-size: clamp(1.4rem, 6vw, 2.4rem) !important;
  }
}

/* Account / expert shell with left sidenav (legacy pages only — not en-account shell) */
body:not(.en-account) .sidenav {
  width: 14%;
  position: absolute;
  top: 0;
  overflow-x: hidden;
  padding-top: 20px;
  margin-left: 0;
  padding-bottom: 50px;
}

body:not(.en-account) .sidenav a {
  display: block;
  padding: 6px 8px 6px 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

body:not(.en-account) .rightmain:not(.en-expert-content) {
  margin-left: 14%;
  padding: 0 10px;
}

.en-app .super_container {
  padding-top: 48px;
}

.en-login-alert-success {
  background: #e8f5e9;
  color: #1e6b2e;
  border-left: 3px solid #1e8e3e;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.92rem;
  line-height: 1.45;
}

/* SearchLiveClasses page */
.en-live-classes-page .en-live-classes-main {
  padding: 36px 0 56px;
  background: linear-gradient(180deg, #eef5ff 0%, #ffffff 220px);
}

.en-live-classes-head {
  max-width: 40rem;
  margin: 0 0 28px;
}

.en-live-classes-head h1 {
  margin: 0 0 10px !important;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.8rem, 3vw, 2.35rem) !important;
  font-weight: 700 !important;
  color: #15233f !important;
  letter-spacing: -0.02em;
}

.en-live-classes-head p {
  margin: 0 !important;
  color: #4f5f78 !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

.en-live-classes-alert {
  display: block;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff4f4;
  color: #b42318;
  border-left: 3px solid #f04438;
  font-size: 0.92rem;
}

.en-live-class-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.en-live-class-tab,
.en-live-class-tab:hover,
.en-live-class-tab:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid #d5dde8;
  background: #fff;
  color: #15233f !important;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.en-live-class-tab.is-active,
.en-live-class-tab.is-active:hover {
  border-color: #1a73e8;
  background: #1a73e8;
  color: #fff !important;
}

.en-live-classes-page .en-live-classes-filters.en-search-panel .en-search-intro {
  display: block;
  margin-bottom: 16px;
}

.en-live-classes-page .en-field label,
.en-live-classes-page .en-field .ui-outputlabel {
  font-size: 0.9rem;
}

.en-live-classes-page .en-select,
.en-live-classes-page select.en-select {
  min-height: 50px !important;
  padding: 0 14px !important;
  font-size: 0.95rem !important;
}

.en-live-classes-page .en-input,
.en-live-classes-page input.en-input {
  min-height: 50px !important;
  padding: 0 16px !important;
  font-size: 1rem !important;
}

.en-live-classes-page .en-search-grid {
  gap: 18px;
}

.en-live-classes-page .en-search-grid--primary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.en-live-classes-page .en-search-grid--educator-row {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.35fr) minmax(190px, 0.55fr);
  margin-top: 18px;
}

.en-live-classes-page .en-field--educator,
.en-live-classes-page .en-field--email {
  min-width: 0;
}

.en-live-classes-page .en-field--educator .en-input,
.en-live-classes-page .en-field--email .en-input,
.en-live-classes-page .en-field--educator input.en-input,
.en-live-classes-page .en-field--email input.en-input {
  width: 100% !important;
  max-width: none !important;
}

.en-live-classes-page .en-field--search-btn {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.en-live-classes-page .en-field-label-spacer {
  display: block;
  margin: 0 0 6px;
  min-height: 1.35em;
  visibility: hidden;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.en-live-classes-page .en-btn-search-inline,
.en-live-classes-page input.en-btn-search-inline {
  width: 100% !important;
  min-height: 50px !important;
  margin: 0 !important;
}

.en-live-classes-results-head {
  margin: 52px 0 18px;
}

.en-live-classes-results-head h2 {
  margin: 0 0 6px !important;
  font-size: 1.35rem !important;
  font-weight: 650 !important;
  color: #15233f !important;
}

.en-live-classes-results-head p {
  margin: 0 !important;
  color: #667085 !important;
  font-size: 0.95rem !important;
}

.en-live-class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.en-live-class-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e8edf5;
}

.en-live-class-pager-btn,
input.en-live-class-pager-btn {
  min-height: 38px !important;
  padding: 0 16px !important;
  font-size: 0.88rem !important;
}

.en-live-class-pager-meta {
  margin-left: 4px;
  color: #667085;
  font-size: 0.88rem;
  font-weight: 600;
}

.en-live-class-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: 1px solid #d7e3f4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(21, 35, 63, 0.05);
}

.en-live-class-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.en-live-class-badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8f3ff;
  color: #0b57d0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.en-live-class-title {
  margin: 0 0 4px !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #15233f !important;
  line-height: 1.3 !important;
}

.en-live-class-subtitle {
  margin: 0 !important;
  color: #667085 !important;
  font-size: 0.9rem !important;
}

.en-live-class-price {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.en-live-class-price-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a879c;
}

.en-live-class-price-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #15233f;
}

.en-live-class-meta {
  display: grid;
  gap: 14px;
  padding-top: 4px;
  border-top: 1px solid #eef2f8;
}

.en-live-class-meta-label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7a879c;
}

.en-live-class-meta-value {
  color: #24324a;
  font-size: 0.92rem;
  font-weight: 600;
}

.en-live-class-schedule {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.en-live-class-schedule li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.en-live-class-day {
  min-width: 34px;
  font-weight: 700;
  color: #15233f;
}

.en-live-class-time {
  color: #4f5f78;
}

.en-live-class-highlights p {
  margin: 0 !important;
  color: #4f5f78 !important;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
}

.en-live-class-teacher {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid #e8f1fc;
}

.en-live-class-teacher-photo {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(21, 35, 63, 0.08);
}

.en-live-class-teacher-name {
  display: block;
  color: #15233f;
  font-size: 0.98rem;
}

.en-live-class-teacher-edu {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 0.88rem;
}

.en-live-class-card-actions {
  margin-top: auto;
  padding-top: 4px;
}

.en-live-class-cta,
.en-live-class-cta:hover {
  width: 100%;
  text-decoration: none !important;
}

.en-live-classes-page .en-live-class-cta.en-pro-btn-primary,
.en-live-classes-page a.en-live-class-cta.en-pro-btn-primary {
  background: #e8f1fc !important;
  border: 1px solid #b7d3f5 !important;
  color: #0b57d0 !important;
  box-shadow: none !important;
}

.en-live-classes-page .en-live-class-cta.en-pro-btn-primary:hover,
.en-live-classes-page a.en-live-class-cta.en-pro-btn-primary:hover {
  background: #d7e8fb !important;
  border-color: #1a73e8 !important;
  color: #0842a0 !important;
}

.en-live-class-empty {
  margin-top: 28px;
  padding: 28px 24px;
  border-radius: 14px;
  border: 1px dashed #c9d9f2;
  background: #f8fbff;
  text-align: center;
  color: #4f5f78;
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .en-live-classes-page .en-live-classes-main {
    padding-top: 24px;
  }

  .en-live-classes-page .en-search-grid--primary,
  .en-live-classes-page .en-search-grid--educator-row {
    grid-template-columns: 1fr;
  }

  .en-live-class-card-top {
    flex-direction: column;
  }

  .en-live-class-price {
    text-align: left;
  }
}

/* Admin shell — match selftest AdminReports scroll, sizing, and report cards */
body.en-admin-shell-page .en-admin-content-wrap,
body.en-admin-shell-page .en-admin-sidenav-form {
  scrollbar-width: thin;
  scrollbar-color: #c5d0e0 transparent;
}

body.en-admin-shell-page .en-admin-content-wrap::-webkit-scrollbar,
body.en-admin-shell-page .en-admin-sidenav-form::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.en-admin-shell-page .en-admin-content-wrap::-webkit-scrollbar-track,
body.en-admin-shell-page .en-admin-sidenav-form::-webkit-scrollbar-track {
  background: transparent;
}

body.en-admin-shell-page .en-admin-content-wrap::-webkit-scrollbar-thumb,
body.en-admin-shell-page .en-admin-sidenav-form::-webkit-scrollbar-thumb {
  background: #c5d0e0;
  border-radius: 999px;
}

body.en-admin-shell-page .en-admin-content-wrap::-webkit-scrollbar-thumb:hover,
body.en-admin-shell-page .en-admin-sidenav-form::-webkit-scrollbar-thumb:hover {
  background: #9fb0c8;
}

/* Account / expert pages — light, narrow scrollbars (match menu; override main_styles dark) */
body.en-account,
body.en-account *,
html:has(body.en-account) {
  scrollbar-width: thin !important;
  scrollbar-color: #d8e0ec transparent !important;
}

html:has(body.en-account)::-webkit-scrollbar,
body.en-account::-webkit-scrollbar,
body.en-account ::-webkit-scrollbar {
  width: 5px !important;
  height: 5px !important;
  background: transparent !important;
}

html:has(body.en-account)::-webkit-scrollbar-track,
body.en-account::-webkit-scrollbar-track,
body.en-account ::-webkit-scrollbar-track {
  background: transparent !important;
}

html:has(body.en-account)::-webkit-scrollbar-thumb,
body.en-account::-webkit-scrollbar-thumb,
body.en-account ::-webkit-scrollbar-thumb {
  background: #d8e0ec !important;
  border-radius: 999px !important;
  border: none !important;
}

html:has(body.en-account)::-webkit-scrollbar-thumb:hover,
body.en-account::-webkit-scrollbar-thumb:hover,
body.en-account ::-webkit-scrollbar-thumb:hover {
  background: #c5d0e0 !important;
}

html:has(body.en-account)::-webkit-scrollbar-corner,
body.en-account::-webkit-scrollbar-corner,
body.en-account ::-webkit-scrollbar-corner {
  background: transparent !important;
}

body.en-admin-report-page .en-etl-shell.en-rpt-shell,
body.en-admin-report-page .en-admin-shell.en-rpt-shell {
  width: min(1180px, 100%) !important;
  padding-top: 12px !important;
  padding-bottom: 28px !important;
}

body.en-admin-report-page .en-etl-hero {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 16px !important;
  padding: 22px 24px !important;
  border: 1px solid #d7e3f4 !important;
  border-radius: 22px !important;
  background:
    radial-gradient(720px 180px at 100% 0%, rgba(26, 115, 232, 0.14), transparent 58%),
    linear-gradient(135deg, #f7fbff 0%, #eef4fb 100%) !important;
  box-shadow: 0 16px 34px rgba(21, 35, 63, 0.06) !important;
}

body.en-admin-report-page .en-etl-hero-main {
  display: flex !important;
  align-items: flex-start !important;
  gap: 16px !important;
  min-width: 0 !important;
}

body.en-admin-report-page .en-etl-mark {
  flex: 0 0 auto !important;
  width: 64px !important;
  height: 64px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 20px !important;
  background: linear-gradient(145deg, #2840a8, #5090d0 55%, #20808d) !important;
  box-shadow: 0 12px 22px rgba(40, 64, 168, 0.26) !important;
}

body.en-admin-report-page .en-etl-kicker {
  margin: 0 0 6px !important;
  color: #1a73e8 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

body.en-admin-report-page .en-etl-title {
  margin: 0 0 8px !important;
  color: #12233d !important;
  font-size: clamp(1.55rem, 2.5vw, 2rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
}

body.en-admin-report-page .en-etl-lead {
  margin: 0 !important;
  max-width: 38rem !important;
  color: #4f617c !important;
  font-size: 0.96rem !important;
  line-height: 1.5 !important;
}

body.en-admin-report-page .en-etl-panel {
  padding: 20px 22px 22px !important;
  background: #fff !important;
  border: 1px solid #e5ecf6 !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 24px rgba(21, 35, 63, 0.04) !important;
}

body.en-admin-report-page .en-etl-panel + .en-etl-panel {
  margin-top: 16px !important;
}

body.en-admin-report-page .en-admin-section-kicker {
  margin: 0 0 4px !important;
  color: #1a73e8 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

body.en-admin-report-page .en-admin-section-title {
  margin: 0 !important;
  color: #12233d !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
}

body.en-admin-report-page .en-rpt-mark-chart,
body.en-admin-report-page span.en-rpt-mark-chart {
  display: block !important;
  width: 18px !important;
  height: 14px !important;
  margin: 10px auto 0 !important;
  background:
    linear-gradient(#fff, #fff) 0 10px / 4px 4px no-repeat,
    linear-gradient(#fff, #fff) 7px 6px / 4px 8px no-repeat,
    linear-gradient(#fff, #fff) 14px 2px / 4px 12px no-repeat !important;
}

/* ---- View Profile page ---- */
body.en-app-body #ViewProfileForm.en-profile-form {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.en-profile-page {
  width: 100%;
  background:
    radial-gradient(1200px 420px at 12% -10%, rgba(26, 115, 232, 0.10), transparent 60%),
    radial-gradient(900px 380px at 100% 0%, rgba(30, 142, 62, 0.06), transparent 55%),
    #f7f9fc;
  padding: 28px 20px 48px;
  box-sizing: border-box;
}

.en-profile-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.en-profile-alerts {
  margin-bottom: 14px;
}

.en-profile-alert {
  display: block;
  background: #e8f4fd;
  color: #0d5cab;
  border-left: 3px solid #1a73e8;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 600;
}

.en-profile-alert:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.en-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr);
  gap: 20px;
  align-items: start;
}

.en-profile-main {
  background: #fff;
  border: 1px solid #e2e8f2;
  border-radius: 18px;
  padding: 28px 28px 32px;
  box-shadow: 0 10px 28px rgba(21, 35, 63, 0.06);
}

.en-profile-kicker {
  margin: 0 0 6px;
  color: #1a73e8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.en-profile-title {
  margin: 0 0 8px;
  color: #15233f;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.en-profile-lead {
  margin: 0 0 22px;
  color: #4f5f78;
  font-size: 0.96rem;
  line-height: 1.55;
  max-width: 38rem;
}

.en-profile-section {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #e8edf5;
}

.en-profile-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.en-profile-section-last {
  margin-bottom: 4px;
}

.en-profile-section-title {
  margin: 0 0 14px;
  color: #24324a;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.en-profile-field {
  margin-bottom: 12px;
}

.en-profile-field:last-child {
  margin-bottom: 0;
}

.en-profile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  align-items: start;
}

.en-profile-row > .en-profile-field {
  margin-bottom: 0;
}

.en-profile-label {
  display: block;
  margin: 0 0 6px;
  color: #24324a;
  font-size: 0.84rem;
  font-weight: 600;
}

.en-profile-hint {
  margin: 6px 0 0;
  color: #7a879c;
  font-size: 0.8rem;
  line-height: 1.4;
}

.en-req {
  color: #d93025;
  font-weight: 700;
}

.en-opt {
  color: #7a879c;
  font-weight: 500;
  font-size: 0.82em;
}

body.en-app-body #ViewProfileForm .en-profile-input,
body.en-app-body #ViewProfileForm input.en-profile-input,
body.en-app-body #ViewProfileForm select.en-profile-input {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #c9d5ea;
  border-radius: 10px;
  background: #fff;
  color: #15233f;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: none;
  outline: none;
  box-sizing: border-box;
}

body.en-app-body #ViewProfileForm .en-profile-input-readonly,
body.en-app-body #ViewProfileForm input.en-profile-input-readonly {
  background: #f5f8fc;
  color: #5a6b84;
  cursor: not-allowed;
}

body.en-app-body #ViewProfileForm .en-profile-input:focus,
body.en-app-body #ViewProfileForm select.en-profile-input:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.14);
}

.en-profile-field-error {
  display: block;
  min-height: 0;
  margin: 4px 0 0;
  color: #d93025;
  font-size: 0.8rem;
  line-height: 1.3;
  font-weight: 600;
}

.en-profile-field-error:empty {
  display: none;
  margin: 0;
}

.en-profile-mobile {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: center;
}

body.en-app-body #ViewProfileForm .en-profile-code {
  min-width: 0;
}

.en-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #e8edf5;
}

body.en-app-body #ViewProfileForm .en-profile-btn,
body.en-app-body #ViewProfileForm input.en-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  text-decoration: none;
  border: 1px solid transparent;
}

body.en-app-body #ViewProfileForm .en-profile-btn-primary {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #fff;
}

body.en-app-body #ViewProfileForm .en-profile-btn-primary:hover {
  background: #1557b0;
  border-color: #1557b0;
}

body.en-app-body #ViewProfileForm .en-profile-btn-secondary {
  background: #fff;
  border-color: #c9d5ea;
  color: #24324a;
}

body.en-app-body #ViewProfileForm .en-profile-btn-secondary:hover {
  border-color: #1a73e8;
  color: #1a73e8;
}

.en-profile-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 72px;
}

.en-profile-card {
  background: #fff;
  border: 1px solid #e2e8f2;
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 8px 22px rgba(21, 35, 63, 0.05);
}

.en-profile-card-muted {
  background: linear-gradient(165deg, #f8fbff 0%, #f2f7ff 100%);
}

.en-profile-card-tip {
  background: #fffaf0;
  border-color: #f3e2b8;
}

.en-profile-avatar {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 16px;
  background: linear-gradient(145deg, #1a73e8, #4c9aff);
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 8px 18px rgba(26, 115, 232, 0.22);
}

.en-profile-aside-name {
  margin: 0 0 4px;
  color: #15233f;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}

.en-profile-aside-email {
  margin: 0;
  color: #5a6b84;
  font-size: 0.86rem;
  line-height: 1.4;
  word-break: break-word;
}

.en-profile-aside-title {
  margin: 0 0 10px;
  color: #24324a;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.en-profile-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.en-profile-links li + li {
  margin-top: 8px;
}

.en-profile-links a {
  color: #1a73e8 !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.en-profile-links a:hover {
  text-decoration: underline;
}

.en-profile-tip {
  margin: 0;
  color: #6b5a2e;
  font-size: 0.86rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .en-profile-grid {
    grid-template-columns: 1fr;
  }

  .en-profile-aside {
    position: static;
  }

  .en-profile-row {
    grid-template-columns: 1fr;
  }

  .en-profile-page {
    padding: 20px 14px 36px;
  }

  .en-profile-main {
    padding: 22px 18px 26px;
  }
}

/* ---- Expert account pages (sidebar via enaviya-account.css) ---- */
body.en-account .rightmain.en-expert-page {
  background: transparent !important;
}

body.en-account .en-expert-page .en-expert-page-inner {
  width: min(100%, 980px);
  margin: 0 auto;
}

/* Account sidebar collapse — keep expand control and icons visible */
body.en-account.is-account-sidebar-collapsed .sidenav {
  flex: 0 0 72px !important;
  width: 72px !important;
  min-width: 72px !important;
  overflow-x: visible !important;
}

body.en-account.is-account-sidebar-collapsed .en-account-sidebar-top {
  flex-direction: column !important;
  align-items: center !important;
  gap: 0 !important;
  margin: 0 0 10px !important;
  padding: 0 4px !important;
}

body.en-account.is-account-sidebar-collapsed .en-account-sidebar-toggle {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 26px !important;
  min-width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 !important;
  margin: 0 auto 6px !important;
  justify-content: center !important;
  align-items: center !important;
  border: 1px solid #d7e0ee !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(21, 35, 63, 0.08) !important;
  flex-shrink: 0 !important;
}

body.en-account .en-account-toggle-collapse,
body.en-account .en-account-toggle-expand {
  display: inline-block !important;
  width: 12px !important;
  text-align: center !important;
  font-size: 0.65rem !important;
  color: #334155 !important;
  line-height: 1 !important;
}

body.en-account .en-account-toggle-expand {
  display: none !important;
}

body.en-account.is-account-sidebar-collapsed .en-account-toggle-collapse {
  display: none !important;
}

body.en-account.is-account-sidebar-collapsed .en-account-toggle-expand {
  display: inline-block !important;
  color: #1a73e8 !important;
}

body.en-account.is-account-sidebar-collapsed .en-account-sidebar-toggle-icon {
  display: none !important;
}

.en-expert-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 20px;
  margin-bottom: 18px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #e2e8f2;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(21, 35, 63, 0.05);
}

.en-expert-kicker {
  margin: 0 0 6px;
  color: #1a73e8;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.en-expert-title {
  margin: 0 0 8px;
  color: #15233f;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.en-expert-lead {
  margin: 0;
  max-width: 36rem;
  color: #4f5f78;
  font-size: 0.94rem;
  line-height: 1.55;
}

.en-expert-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.en-expert-meta-chip {
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f5f8fc;
  border: 1px solid #e2e8f2;
}

.en-expert-meta-chip span {
  display: block;
  margin-bottom: 2px;
  color: #7a879c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.en-expert-meta-chip strong {
  color: #15233f;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.en-expert-card {
  background: #fff;
  border: 1px solid #e2e8f2;
  border-radius: 16px;
  padding: 22px 22px 24px;
  box-shadow: 0 8px 22px rgba(21, 35, 63, 0.04);
}

.en-expert-card + .en-expert-card,
.en-expert-grid + .en-expert-card,
.en-expert-card + .en-expert-actions {
  margin-top: 16px;
}

.en-expert-grid {
  display: grid;
  gap: 16px;
}

.en-expert-grid-dashboard {
  grid-template-columns: 1fr 1fr;
}

.en-expert-card-title {
  margin: 0 0 6px;
  color: #15233f;
  font-size: 1.02rem;
  font-weight: 800;
}

.en-expert-card-lead {
  margin: 0 0 16px;
  color: #5a6b84;
  font-size: 0.88rem;
  line-height: 1.45;
}

.en-expert-section-title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8edf5;
  color: #24324a;
  font-size: 0.95rem;
  font-weight: 800;
}

.en-expert-subjects {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.en-expert-subject-row.is-hidden {
  display: none !important;
}

.en-expert-subject-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.en-expert-subject-controls .en-expert-select-wrap {
  flex: 1;
  min-width: 0;
}

.en-expert-subject-remove {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid #f5c2c0;
  border-radius: 10px;
  background: #fff;
  color: #c5221f;
  cursor: pointer;
  box-sizing: border-box;
}

.en-expert-subject-remove:hover {
  background: #fce8e6;
  border-color: #c5221f;
}

.en-expert-subject-add-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 2px;
}

.en-expert-subject-add {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px dashed #1a73e8;
  border-radius: 999px;
  background: #eef5ff;
  color: #1a73e8;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.en-expert-subject-add:hover:not(:disabled) {
  background: #e0ecff;
}

.en-expert-subject-add:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.en-expert-subject-hint {
  color: #7a879c;
  font-size: 0.82rem;
  font-weight: 600;
}

.en-expert-class-catalog-manage {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e8edf5;
}

.en-expert-field-with-add {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.en-expert-page .en-epqe-add-wrap {
  margin-top: 8px;
}

.en-expert-page .en-epqe-manage-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.en-expert-page .en-epqe-add-link,
.en-expert-page .en-epqe-edit-link,
.en-expert-page .en-epqe-delete-link,
.en-expert-page a.en-epqe-add-link,
.en-expert-page a.en-epqe-edit-link,
.en-expert-page a.en-epqe-delete-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid #d7e5f7;
  border-radius: 999px;
  background: #f7fbff;
  color: #1a73e8;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.en-expert-page .en-epqe-edit-link,
.en-expert-page a.en-epqe-edit-link {
  border-color: #d5e0ef;
  background: #ffffff;
  color: #334155;
}

.en-expert-page .en-epqe-delete-link,
.en-expert-page a.en-epqe-delete-link {
  border-color: #f0c9c9;
  background: #fff7f7;
  color: #b42318;
}

.en-expert-page .en-epqe-add-link:hover,
.en-expert-page a.en-epqe-add-link:hover {
  border-color: #8fbfef;
  background: #eef6ff;
  text-decoration: none;
}

.en-expert-page .en-epqe-edit-link:hover,
.en-expert-page a.en-epqe-edit-link:hover {
  border-color: #94a3b8;
  color: #0f172a;
  text-decoration: none;
}

.en-expert-page .en-epqe-delete-link:hover,
.en-expert-page a.en-epqe-delete-link:hover {
  border-color: #e8a0a0;
  background: #ffefef;
  text-decoration: none;
}

.en-expert-page .en-epqe-add-plus {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  font-size: 0.72rem;
  line-height: 1;
}

.en-expert-page .en-epqe-create-row {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #d7e5f7;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7fd 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.en-expert-page .en-epqe-inline-label {
  display: block;
  margin: 0 0 8px;
}

.en-expert-page .en-epqe-create-row .en-expert-input {
  width: 100%;
  max-width: none;
  margin-bottom: 0;
}

.en-expert-page .en-epqe-create-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.en-expert-taxonomy-grid {
  margin-bottom: 4px;
}

.en-expert-add-toggle,
input.en-expert-add-toggle {
  align-self: flex-start;
  margin-top: 2px;
  padding: 7px 16px;
  border: 1px solid #c5d9f5;
  border-radius: 999px;
  background: #eef5fd;
  color: #1a73e8 !important;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
}

.en-expert-add-toggle:hover:not(:disabled),
.en-expert-add-toggle:focus:not(:disabled),
input.en-expert-add-toggle:hover:not(:disabled),
input.en-expert-add-toggle:focus:not(:disabled) {
  background: #e3effc;
  border-color: #a8c9f0;
  color: #1558b0 !important;
}

.en-expert-add-toggle:disabled,
input.en-expert-add-toggle:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.en-expert-inline-add {
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f3f8ff;
  border: 1px solid #d8e6f8;
}

.en-expert-inline-add-label {
  display: block;
  margin: 0 0 8px;
  color: #24324a;
  font-size: 0.88rem;
  font-weight: 700;
}

.en-expert-inline-add .en-expert-input {
  width: 100%;
  max-width: none;
  margin-bottom: 12px;
}

.en-expert-inline-add-hint {
  margin: 0 0 10px;
  color: #5a6b84;
  font-size: 0.82rem;
  line-height: 1.4;
}

.en-expert-inline-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.en-expert-class-catalog-block {
  margin-bottom: 20px;
}

.en-expert-class-catalog-block:last-child {
  margin-bottom: 0;
}

.en-expert-my-subjects {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e8edf5;
}

.en-expert-my-subjects-title {
  margin: 0 0 6px;
  color: #24324a;
  font-size: 0.95rem;
  font-weight: 800;
}

.en-expert-my-subjects-lead {
  margin: 0 0 12px;
  color: #5a6b84;
  font-size: 0.86rem;
  line-height: 1.45;
}

.en-expert-my-subjects-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.en-expert-my-subjects-form .en-expert-input {
  flex: 1 1 220px;
  max-width: 360px;
  width: auto;
}

.en-expert-my-subjects-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.en-expert-my-subjects-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 10px 12px;
  border: 1px solid #e2e8f2;
  border-radius: 10px;
  background: #f8fafc;
}

.en-expert-my-subjects-name {
  color: #15233f;
  font-size: 0.9rem;
  font-weight: 600;
}

.en-expert-my-subjects-actions {
  display: inline-flex;
  gap: 12px;
}

.en-expert-my-subjects-edit,
.en-expert-my-subjects-delete,
a.en-expert-my-subjects-edit,
a.en-expert-my-subjects-delete {
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
}

.en-expert-my-subjects-edit,
a.en-expert-my-subjects-edit {
  color: #1a73e8 !important;
}

.en-expert-my-subjects-delete,
a.en-expert-my-subjects-delete {
  color: #c5221f !important;
}

.en-expert-my-subjects-empty {
  margin: 0;
  color: #7a879c;
  font-size: 0.86rem;
}

.en-expert-my-subjects-view {
  margin-top: 18px;
}

.en-expert-my-subjects-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef5ff;
  border: 1px solid #c9d9f5;
  color: #1a73e8;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}

.en-expert-alerts {
  margin-bottom: 14px;
}

.en-expert-alert {
  display: block;
  background: #e8f4fd;
  color: #0d5cab;
  border-left: 3px solid #1a73e8;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 600;
}

.en-expert-alert.en-expert-alert-single,
.en-expert-alerts .en-expert-alert {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin: 0;
  list-style: none;
}

.en-expert-alerts ul,
.en-expert-alerts li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.en-expert-alert:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.en-expert-field {
  margin-bottom: 14px;
}

.en-expert-field:last-child {
  margin-bottom: 0;
}

.en-expert-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.en-expert-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.en-expert-row-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 12px;
}

.en-expert-row-name-demo {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px 28px;
}

.en-expert-field-demo-inline {
  min-width: 150px;
  padding-top: 0;
  margin-left: 4px;
}

.en-expert-field-demo-inline .en-expert-check {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.en-expert-field-demo-inline .en-expert-check input[type="checkbox"],
.en-expert-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: #1a73e8;
  cursor: pointer;
  flex-shrink: 0;
}

.en-expert-row > .en-expert-field,
.en-expert-schedule-grid > .en-expert-field {
  margin-bottom: 0;
}

.en-expert-label {
  display: block;
  margin: 0 0 6px;
  color: #24324a;
  font-size: 0.84rem;
  font-weight: 600;
}

.en-expert-hint {
  margin: 0 0 12px;
  color: #7a879c;
  font-size: 0.82rem;
  line-height: 1.45;
}

.en-expert-opt {
  color: #7a879c;
  font-size: 0.82rem;
  font-weight: 500;
}

.en-expert-chapter-lead {
  margin-top: -8px;
  margin-bottom: 14px;
}

.en-expert-chapter-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.en-expert-chapter-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.en-expert-chapter-btn-add,
input.en-expert-chapter-btn-add {
  height: 42px;
  padding: 0 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f766e 0%, #1a73e8 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(26, 115, 232, 0.2);
  white-space: nowrap;
}

.en-expert-chapter-btn-add:hover,
input.en-expert-chapter-btn-add:hover {
  filter: brightness(1.05);
}

.en-expert-chapter-list-wrap {
  padding: 14px;
  border: 1px solid #e5ecf6;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.en-expert-chapter-list-label {
  margin: 0 0 10px;
  color: #4f617c;
  font-size: 0.82rem;
  font-weight: 700;
}

.en-expert-chapter-list-count {
  color: #1a73e8;
  font-weight: 750;
}

.en-expert-chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.en-expert-chapter-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.en-expert-chapter-readonly,
input.en-expert-chapter-readonly {
  height: 40px;
  background: #fff;
  color: #15233f;
  font-weight: 600;
}

.en-expert-chapter-btn-remove,
input.en-expert-chapter-btn-remove {
  height: 40px;
  padding: 0 14px;
  border: 1px solid #f0c7c7;
  border-radius: 10px;
  background: #fff7f7;
  color: #b42318;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}

.en-expert-chapter-btn-remove:hover,
input.en-expert-chapter-btn-remove:hover {
  background: #feecec;
}

.en-expert-chapter-empty {
  padding: 14px 16px;
  border: 1px dashed #d5e0ef;
  border-radius: 12px;
  background: #fbfcfe;
  color: #6b7c95;
  font-size: 0.88rem;
  font-weight: 600;
}

.en-expert-schedule-hint {
  margin-top: 22px;
  margin-bottom: 14px;
}

.en-expert-input,
.en-expert-textarea,
input.en-expert-input,
select.en-expert-input,
textarea.en-expert-textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #c9d5ea;
  border-radius: 10px;
  background: #fff;
  color: #15233f;
  font-size: 0.92rem;
  font-weight: 500;
  box-sizing: border-box;
  outline: none;
  box-shadow: none;
}

.en-expert-input,
input.en-expert-input,
select.en-expert-input {
  height: 40px;
}

.en-expert-pay-active-field .en-expert-pay-active-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin: 0;
  white-space: nowrap;
  cursor: pointer;
}

.en-expert-pay-active-field .en-expert-pay-active-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #1a73e8;
  flex-shrink: 0;
}

.en-expert-textarea,
textarea.en-expert-textarea {
  min-height: 110px;
  padding: 10px 12px;
  resize: vertical;
}

.en-expert-input:focus,
.en-expert-textarea:focus,
select.en-expert-input:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.14);
}

.en-expert-page .en-expert-input-readonly,
.en-expert-page input.en-expert-input-readonly[readonly],
.en-expert-page textarea.en-expert-input-readonly[readonly] {
  background: #f5f8fc;
  color: #5a6b84;
  cursor: not-allowed;
  border-color: #d5deea;
}

.en-expert-callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #eef5ff;
  border: 1px solid #c9d9f5;
  color: #3d4f6a;
  font-size: 0.88rem;
  line-height: 1.5;
}

.en-expert-callout i {
  flex-shrink: 0;
  margin-top: 2px;
  color: #1a73e8;
}

.en-expert-callout p {
  margin: 0;
}

.en-expert-page .en-date-wrap {
  position: relative;
}

.en-expert-page input[type="date"].en-date-input,
.en-expert-page input.en-date-input[type="date"] {
  color-scheme: light;
  padding-right: 40px;
  cursor: pointer;
}

.en-expert-page .en-date-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6f89ad;
  font-size: 0.92rem;
  pointer-events: none;
  line-height: 1;
}

.en-expert-page input[type="date"].en-date-input::-webkit-calendar-picker-indicator,
.en-expert-page input.en-date-input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.en-expert-field-error {
  display: block;
  margin: 4px 0 0;
  color: #d93025;
  font-size: 0.8rem;
  line-height: 1.3;
  font-weight: 600;
}

.en-expert-field-error:empty {
  display: none;
  margin: 0;
}

.en-expert-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #24324a;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.en-expert-schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.en-expert-day-schedule {
  margin-bottom: 0;
}

.en-time-range-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.en-time-range-row:last-child {
  margin-bottom: 0;
}

.en-time-range-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5a6b84;
  line-height: 1.2;
}

.en-time-pick {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) minmax(88px, 1fr) minmax(88px, 1fr);
  gap: 8px;
}

.en-time-pick .en-expert-select-wrap {
  min-width: 88px;
}

.en-time-pick .en-expert-input {
  min-width: 0;
}

.en-time-pick .en-expert-select-wrap::after {
  right: 12px;
  width: 7px;
  height: 7px;
}

.en-time-pick .en-expert-select {
  padding-left: 10px;
  padding-right: 30px;
  font-size: 0.9rem;
  text-overflow: clip;
}

/* Expert Join Classes — compact icon/action columns (Rec, Status, Action) */
.en-expert-table .en-expert-table-compact-cell {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
  text-align: center;
}

.en-expert-table .en-expert-table-compact-cell .en-expert-btn,
.en-expert-table .en-expert-table-compact-cell .en-expert-btn-icon,
.en-expert-table .en-expert-table-compact-cell input.en-expert-btn-icon,
.en-expert-table .en-expert-table-compact-cell .en-expert-class-switch,
.en-expert-table .en-expert-table-compact-cell input.en-expert-class-switch {
  margin: 0 auto;
  vertical-align: middle;
}

.en-expert-table .en-expert-table-compact-cell--top {
  vertical-align: top;
}

.en-expert-table .en-expert-table-compact-cell--top .en-expert-btn,
.en-expert-table .en-expert-table-compact-cell--top .en-expert-class-switch,
.en-expert-table .en-expert-table-compact-cell--top input.en-expert-class-switch,
.en-expert-table .en-expert-table-compact-cell--top .en-expert-table-muted,
.en-expert-table .en-expert-table-compact-cell--top .en-expert-btn-icon,
.en-expert-table .en-expert-table-compact-cell--top input.en-expert-btn-icon {
  vertical-align: top;
}

.en-expert-table .en-expert-btn-icon-xs,
.en-expert-table input.en-expert-btn-icon-xs {
  min-height: 24px !important;
  min-width: 24px !important;
  width: 24px !important;
  height: 24px !important;
  padding: 2px !important;
  border-radius: 8px !important;
}

.en-expert-table .en-expert-btn-xs,
.en-expert-table input.en-expert-btn-xs {
  min-height: 24px !important;
  padding: 0 8px !important;
  font-size: 0.72rem !important;
  line-height: 1.1 !important;
}

.en-expert-page .en-expert-class-switch,
.en-expert-page input.en-expert-class-switch {
  --class-switch-green: #7ed992;
  --class-switch-green-deep: #5fc873;
  --class-switch-green-soft: #a6e8b4;
  --class-switch-red: #f28b86;
  --class-switch-red-deep: #e8726c;
  --class-switch-red-soft: #f7b0ac;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0 !important;
  height: 24px !important;
  margin: 0 !important;
  padding: 0 9px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 0.62rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  line-height: 1 !important;
  text-transform: none !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  user-select: none !important;
  white-space: nowrap !important;
  transition: background 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease !important;
}

.en-expert-page .en-expert-class-switch.is-on,
.en-expert-page input.en-expert-class-switch.is-on {
  background: linear-gradient(180deg, var(--class-switch-green-soft) 0%, var(--class-switch-green) 42%, var(--class-switch-green-deep) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 4px rgba(0, 0, 0, 0.08),
    0 2px 5px rgba(95, 200, 115, 0.24) !important;
}

.en-expert-page .en-expert-class-switch.is-off,
.en-expert-page input.en-expert-class-switch.is-off {
  background: linear-gradient(180deg, var(--class-switch-red-soft) 0%, var(--class-switch-red) 42%, var(--class-switch-red-deep) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.08),
    0 2px 5px rgba(232, 114, 108, 0.24) !important;
}

.en-expert-page .en-expert-class-switch:hover,
.en-expert-page input.en-expert-class-switch:hover {
  filter: brightness(1.04);
}

.en-expert-page .en-expert-class-switch:active,
.en-expert-page input.en-expert-class-switch:active {
  filter: brightness(0.98);
}

.en-expert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 18px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.en-expert-btn,
a.en-expert-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px !important;
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

/* input[type=submit] cannot use flex — Chrome/Edge hide the value text (esp. on hover) */
input.en-expert-btn {
  display: inline-block !important;
  align-items: unset;
  justify-content: unset;
  gap: 0;
  line-height: 40px !important;
  vertical-align: middle;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.en-expert-btn-primary,
input.en-expert-btn-primary,
a.en-expert-btn-primary {
  background: #1a73e8 !important;
  border-color: #1a73e8 !important;
  color: #fff !important;
}

.en-expert-btn-primary:hover,
.en-expert-btn-primary:focus,
.en-expert-btn-primary:active,
input.en-expert-btn-primary:hover,
input.en-expert-btn-primary:focus,
input.en-expert-btn-primary:active,
a.en-expert-btn-primary:hover,
a.en-expert-btn-primary:focus,
a.en-expert-btn-primary:active {
  background: #1557b0 !important;
  border-color: #1557b0 !important;
  color: #fff !important;
}

.en-expert-btn-secondary,
input.en-expert-btn-secondary {
  background: #fff !important;
  border-color: #c9d5ea !important;
  color: #24324a !important;
}

.en-expert-btn-secondary:hover,
.en-expert-btn-secondary:focus,
input.en-expert-btn-secondary:hover,
input.en-expert-btn-secondary:focus {
  border-color: #1a73e8 !important;
  color: #1a73e8 !important;
}

.en-expert-btn-ghost,
input.en-expert-btn-ghost {
  background: #f5f8fc !important;
  border-color: #d5deea !important;
  color: #24324a !important;
}

.en-expert-btn-danger,
input.en-expert-btn-danger {
  background: #fff !important;
  border-color: #f5c2c0 !important;
  color: #c5221f !important;
}

.en-expert-btn-danger:hover,
.en-expert-btn-danger:focus,
input.en-expert-btn-danger:hover,
input.en-expert-btn-danger:focus {
  background: #fce8e6 !important;
  border-color: #c5221f !important;
  color: #a50e0e !important;
}

.en-expert-btn-sm,
input.en-expert-btn-sm {
  min-height: 34px !important;
  padding: 0 14px !important;
  font-size: 0.82rem !important;
}

.en-expert-btn-block {
  width: 100%;
  max-width: 280px;
}

.en-expert-btn-icon,
input.en-expert-btn-icon {
  min-height: 34px !important;
  padding: 4px 8px !important;
  background: #f5f8fc !important;
  border: 1px solid #d5deea !important;
  border-radius: 10px !important;
}

.en-expert-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.en-expert-photo-img {
  width: 70px;
  height: 100px;
  object-fit: fill;
  border-radius: 4px;
  border: 1px solid #e8edf5;
  box-shadow: 0 4px 10px rgba(21, 35, 63, 0.08);
}

.en-expert-upload {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.en-expert-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #eef5ff;
  border: 1px solid #c9d9f5;
  color: #1a73e8;
  font-size: 0.88rem;
  font-weight: 700;
}

.en-expert-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.en-expert-card-actions .en-expert-card-lead {
  margin-bottom: 14px;
}

.en-expert-action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

a.en-expert-action-link,
.en-expert-action-link {
  display: grid;
  grid-template-columns: 42px 1fr 18px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e2e8f2;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

a.en-expert-action-link:hover,
.en-expert-action-link:hover {
  border-color: #b7cdf0;
  box-shadow: 0 8px 18px rgba(26, 115, 232, 0.08);
  transform: translateY(-1px);
}

.en-expert-action-link--primary {
  border-color: #c9d9f5;
  background: linear-gradient(180deg, #f3f8ff 0%, #eaf2ff 100%);
}

.en-expert-action-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eef5ff;
  color: #1a73e8;
  font-size: 1rem;
}

.en-expert-action-link--primary .en-expert-action-icon {
  background: #1a73e8;
  color: #fff;
}

.en-expert-action-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.en-expert-action-title {
  color: #15233f;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
}

.en-expert-action-text {
  color: #5a6b84;
  font-size: 0.82rem;
  line-height: 1.4;
}

.en-expert-action-arrow {
  color: #8a98b0;
  font-size: 0.85rem;
}

.en-expert-steps {
  display: grid;
  gap: 14px;
}

.en-expert-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}

.en-expert-step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #eef5ff;
  color: #1a73e8;
  font-size: 0.9rem;
  font-weight: 800;
}

.en-expert-step h3 {
  margin: 0 0 4px;
  color: #15233f;
  font-size: 0.92rem;
  font-weight: 800;
}

.en-expert-step p {
  margin: 0;
  color: #5a6b84;
  font-size: 0.86rem;
  line-height: 1.5;
}

.en-expert-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.en-expert-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.82rem;
}

.en-expert-table th {
  padding: 12px 10px;
  background: #f5f8fc;
  color: #24324a;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid #e2e8f2;
  white-space: nowrap;
}

.en-expert-table td {
  padding: 12px 10px;
  color: #24324a;
  vertical-align: top;
  border-bottom: 1px solid #edf1f7;
  line-height: 1.45;
}

.en-expert-table tr:hover td {
  background: #fafcff;
}

.en-expert-table-strong {
  font-weight: 700;
  color: #15233f;
}

.en-expert-table-muted {
  color: #7a879c;
  font-size: 0.8rem;
}

.en-expert-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 110px;
}

.en-expert-schedule-list span {
  white-space: nowrap;
}

.en-expert-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 20px;
  color: #7a879c;
  text-align: center;
}

.en-expert-empty i {
  font-size: 2rem;
  color: #c5d0e0;
}

.en-expert-empty p {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
}

.en-expert-join-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 14px;
}

.en-expert-join-search {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(160px, 220px) auto;
  gap: 10px 12px;
  align-items: end;
  flex: 1;
}

.en-expert-join-search .en-expert-field {
  margin: 0;
}

.en-expert-join-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 1px;
}

.en-expert-join-count {
  margin: 0;
  color: #7a879c;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.en-expert-sort-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.en-expert-sort-link:hover {
  color: #1a73e8;
}

.en-expert-sort-mark {
  display: inline-block;
  min-width: 0.7em;
  font-size: 0.7em;
  line-height: 1;
  opacity: 0.35;
}

.en-expert-sort-mark.en-expert-sort-none::after {
  content: "↕";
}

.en-expert-sort-mark.en-expert-sort-asc::after {
  content: "▲";
  opacity: 1;
  color: #1a73e8;
}

.en-expert-sort-mark.en-expert-sort-desc::after {
  content: "▼";
  opacity: 1;
  color: #1a73e8;
}

.en-expert-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e8edf5;
}

.en-expert-pager-meta {
  margin-left: 4px;
  color: #7a879c;
  font-size: 0.8rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .en-expert-join-search {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .en-expert-grid-dashboard,
  .en-expert-row-3,
  .en-expert-schedule-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Keep category / exam / subject / language on one row on tablets */
  .en-expert-row-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .en-expert-hero {
    padding: 18px 16px;
  }

  .en-expert-hero-meta {
    width: 100%;
  }

  .en-expert-meta-chip {
    flex: 1 1 calc(50% - 10px);
  }

  .en-expert-row,
  .en-expert-grid-dashboard,
  .en-expert-row-3,
  .en-expert-row-4,
  .en-expert-row-name-demo,
  .en-expert-schedule-grid {
    grid-template-columns: 1fr;
  }

  .en-expert-card {
    padding: 18px 16px 20px;
  }
}

/* Expert read-only detail view (ExpertView.et) */
.en-expert-section-title-inline {
  margin-bottom: 4px;
  padding-bottom: 0;
  border-bottom: 0;
}

.en-expert-card-status {
  padding-top: 20px;
}

.en-expert-status-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 20px;
}

.en-expert-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef5ff 0%, #e8f4fd 100%);
  border: 1px solid #c9d9f5;
  color: #0b57d0;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.en-expert-status-badge i {
  font-size: 0.85rem;
  opacity: 0.9;
}

.en-expert-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.en-expert-detail-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.en-expert-detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.en-expert-detail-item-wide {
  grid-column: 1 / -1;
}

.en-expert-detail-label {
  color: #7a879c;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.en-expert-detail-value {
  color: #15233f;
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.45;
  word-break: break-word;
}

.en-expert-enroll-hero {
  align-items: flex-start;
}

.en-expert-enroll-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 0 auto;
  flex: 0 0 auto;
}

.en-expert-enroll-hero .en-expert-enroll-toolbar .en-expert-btn,
.en-expert-enroll-hero .en-expert-enroll-toolbar button.en-expert-btn,
.en-expert-enroll-hero .en-expert-enroll-toolbar input.en-expert-btn {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #d5deea !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #15233f !important;
  box-shadow: none !important;
  font-weight: 700;
}

.en-expert-enroll-hero .en-expert-enroll-toolbar .en-expert-btn:hover,
.en-expert-enroll-hero .en-expert-enroll-toolbar button.en-expert-btn:hover,
.en-expert-enroll-hero .en-expert-enroll-toolbar input.en-expert-btn:hover {
  background: #f7f9fc !important;
  border-color: #c5d0e0 !important;
}

.en-expert-enroll-toolbar .en-expert-btn,
.en-expert-enroll-toolbar button.en-expert-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 720px) {
  .en-expert-enroll-hero .en-expert-enroll-toolbar {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}

.en-expert-enroll-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
}

.en-expert-enroll-count {
  min-width: 96px;
  padding: 12px 16px;
  border: 1px solid #e4ebf5;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  text-align: center;
}

.en-expert-enroll-count-label {
  display: block;
  color: #7a879c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.en-expert-enroll-count-value {
  display: block;
  margin-top: 4px;
  color: #15233f;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
}

.en-expert-enroll-table-head {
  margin: 0 0 14px;
}

.en-expert-enroll-table-head--actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
}

.en-expert-enroll-bulk {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.en-expert-enroll-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.en-expert-btn-sm,
input.en-expert-btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  line-height: 1.2;
}

.en-join-status {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.en-join-status--active {
  background: #e8f5e9;
  color: #1b5e20;
}

.en-join-status--inactive {
  background: #eceff1;
  color: #546e7a;
}

.en-join-inactive,
input.en-join-inactive,
a.en-join-inactive {
  opacity: 0.45;
  filter: grayscale(0.35);
  cursor: not-allowed;
  pointer-events: auto;
}

.en-join-inactive:hover,
input.en-join-inactive:hover,
a.en-join-inactive:hover {
  opacity: 0.5;
}

.en-expert-section-kicker {
  margin: 0 0 4px;
  color: #1a73e8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  body.en-account .en-app-header,
  body.en-account .sidenav,
  body.en-account .en-account-nav-form,
  body.en-account .en-expert-enroll-toolbar,
  body.en-account .en-expert-hero-meta,
  body.en-account .en-expert-enroll-bulk,
  body.en-account .en-expert-enroll-row-actions,
  body.en-account .en-expert-alerts,
  body.en-account .en-site-footer,
  body.en-account #enConfirmOverlay,
  body.en-account .en-no-print {
    display: none !important;
  }

  html,
  body.en-account,
  body.en-account #main_div {
    background: #fff !important;
    color: #111 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow: visible !important;
  }

  body.en-account .rightmain,
  body.en-account .rightmain.en-expert-page,
  body.en-account .en-expert-page,
  body.en-account .en-expert-page-inner,
  body.en-account .en-expert-form,
  body.en-account .toprint,
  body.en-account .en-enroll-print {
    display: block !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  body.en-account .en-expert-hero,
  body.en-account .en-expert-enroll-hero {
    display: block !important;
    margin: 0 0 10px !important;
    padding: 0 0 8px !important;
    border: 0 !important;
    border-bottom: 1px solid #333 !important;
    background: none !important;
    box-shadow: none !important;
  }

  body.en-account .en-expert-title {
    margin: 0 !important;
    color: #000 !important;
    font-size: 16pt !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }

  body.en-account .en-expert-card {
    break-inside: avoid;
    margin: 0 0 12px !important;
    padding: 0 0 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  body.en-account .en-expert-card + .en-expert-card {
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid #bbb !important;
  }

  body.en-account .en-expert-enroll-head {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 0 8px !important;
  }

  body.en-account .en-expert-section-kicker {
    color: #333 !important;
    font-size: 8pt !important;
  }

  body.en-account .en-expert-section-title {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #000 !important;
    font-size: 12pt !important;
  }

  body.en-account .en-expert-enroll-count {
    text-align: right !important;
    border: 0 !important;
    background: none !important;
    padding: 0 !important;
  }

  body.en-account .en-expert-enroll-count-label {
    color: #333 !important;
    font-size: 8pt !important;
  }

  body.en-account .en-expert-enroll-count-value {
    color: #000 !important;
    font-size: 14pt !important;
  }

  body.en-account .en-expert-detail-grid,
  body.en-account .en-expert-detail-grid--3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px 10px !important;
    margin: 0 !important;
  }

  body.en-account .en-expert-detail-item {
    break-inside: avoid;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
  }

  body.en-account .en-expert-detail-label {
    display: block !important;
    color: #444 !important;
    font-size: 7.5pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
  }

  body.en-account .en-expert-detail-value {
    display: block !important;
    color: #000 !important;
    font-size: 9.5pt !important;
    line-height: 1.35 !important;
  }

  body.en-account .en-expert-enroll-table-head {
    margin: 0 0 6px !important;
  }

  body.en-account .en-expert-table-wrap {
    overflow: visible !important;
    width: 100% !important;
  }

  body.en-account .en-expert-table,
  body.en-account .en-enroll-print-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    font-size: 9pt !important;
  }

  body.en-account .en-expert-table th,
  body.en-account .en-expert-table td {
    padding: 5px 6px !important;
    border: 1px solid #777 !important;
    background: #fff !important;
    color: #000 !important;
    vertical-align: top !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: anywhere !important;
    line-height: 1.3 !important;
  }

  body.en-account .en-expert-table thead th,
  body.en-account .en-expert-table th {
    background: #eee !important;
    font-size: 8pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
  }

  body.en-account .en-enroll-print-table th:nth-child(1),
  body.en-account .en-enroll-print-table td:nth-child(1) {
    width: 6% !important;
    text-align: center !important;
  }

  body.en-account .en-enroll-print-table th:nth-child(2),
  body.en-account .en-enroll-print-table td:nth-child(2) {
    width: 30% !important;
  }

  body.en-account .en-enroll-print-table th:nth-child(3),
  body.en-account .en-enroll-print-table td:nth-child(3),
  body.en-account .en-enroll-print-table th:nth-child(4),
  body.en-account .en-enroll-print-table td:nth-child(4),
  body.en-account .en-enroll-print-table th:nth-child(5),
  body.en-account .en-enroll-print-table td:nth-child(5) {
    width: 16% !important;
  }

  /* Join status is 7th column (Last login=6 and Action=8 are print-hidden) */
  body.en-account .en-enroll-print-table th:nth-child(7),
  body.en-account .en-enroll-print-table td:nth-child(7) {
    width: 16% !important;
  }

  body.en-account .en-join-status,
  body.en-account .en-join-status--active,
  body.en-account .en-join-status--inactive {
    display: inline !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    color: #000 !important;
    font-size: 9pt !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  body.en-account .en-expert-table-strong,
  body.en-account .en-expert-table-muted {
    color: #000 !important;
  }

  body.en-account .toprint,
  body.en-account .toprint * {
    visibility: visible !important;
  }

  body.en-account .en-expert-table tr {
    page-break-inside: avoid;
  }
}

.en-expert-detail-value-strong {
  font-weight: 700;
  color: #1a73e8;
}

.en-expert-detail-block {
  padding: 16px 18px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e8edf5;
  color: #24324a;
  font-size: 0.94rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

/* Class details redesign */
.en-expert-card-details {
  padding: 0;
  overflow: hidden;
}

.en-expert-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 22px 22px 18px;
  background:
    linear-gradient(135deg, rgba(26, 115, 232, 0.06) 0%, rgba(255, 255, 255, 0) 55%),
    #fff;
  border-bottom: 1px solid #e8edf5;
}

.en-expert-section-kicker {
  margin: 0 0 4px;
  color: #1a73e8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.en-expert-section-title-plain {
  margin: 0;
  padding: 0;
  border: 0;
}

.en-expert-section-lead {
  margin: 6px 0 0;
  max-width: 36rem;
  color: #5a6b84;
  font-size: 0.86rem;
  line-height: 1.45;
}

.en-expert-demo-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  min-width: 220px;
  padding: 12px 14px;
  border: 1px solid #d7e3f4;
  border-radius: 14px;
  background: #f7faff;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.en-expert-demo-toggle:hover {
  border-color: #b7cceb;
  background: #f2f7ff;
  box-shadow: 0 6px 16px rgba(26, 115, 232, 0.08);
}

.en-expert-demo-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.en-expert-demo-toggle-title {
  color: #15233f;
  font-size: 0.88rem;
  font-weight: 700;
}

.en-expert-demo-toggle-hint {
  color: #7a879c;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.3;
}

.en-expert-demo-toggle-control {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}

.en-expert-demo-toggle-control input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #1a73e8;
  cursor: pointer;
}

.en-expert-details-panel {
  padding: 20px 22px 22px;
}

.en-expert-field-hero {
  margin-bottom: 18px;
}

.en-expert-input-lg,
input.en-expert-input-lg {
  height: 46px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
}

.en-expert-details-subhead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 14px;
}

.en-expert-details-subhead-label {
  color: #7a879c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.en-expert-details-subhead-line {
  display: block;
  flex: 1;
  height: 1px;
  background: #e8edf5;
}

.en-expert-row-2-narrow {
  grid-template-columns: minmax(0, 280px) 1fr;
  margin-top: 14px;
}

.en-expert-select-wrap {
  position: relative;
}

.en-expert-select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #6f89ad;
  border-bottom: 2px solid #6f89ad;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.en-expert-select-wrap .en-expert-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 36px;
}

@media (max-width: 720px) {
  .en-expert-detail-grid,
  .en-expert-detail-grid--3 {
    grid-template-columns: 1fr;
  }

  .en-expert-status-head {
    flex-direction: column;
    align-items: stretch;
  }

  .en-expert-status-badge {
    align-self: flex-start;
  }

  .en-expert-section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .en-expert-demo-toggle {
    min-width: 0;
    width: 100%;
  }

  .en-expert-row-2-narrow {
    grid-template-columns: 1fr;
  }
}

/* Compact Add Classroom form */
.en-expert-page-compact .en-expert-page-inner {
  max-width: 1100px;
}

.en-expert-compact-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #e2e8f2;
  border-radius: 12px;
  background:
    linear-gradient(120deg, rgba(26, 115, 232, 0.07), rgba(255, 255, 255, 0) 48%),
    #fff;
}

.en-expert-compact-title {
  margin: 0;
  color: #15233f;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.en-expert-compact-lead {
  margin: 3px 0 0;
  color: #61728c;
  font-size: 0.8rem;
  line-height: 1.35;
}

.en-expert-compact-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 7px 10px;
  border: 1px solid #d5e2f4;
  border-radius: 999px;
  background: #f7faff;
  color: #24324a;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.en-expert-compact-demo input {
  margin: 0;
  width: 15px;
  height: 15px;
  accent-color: #1a73e8;
  cursor: pointer;
}

.en-expert-compact-card {
  padding: 14px;
  border: 1px solid #e2e8f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(21, 35, 63, 0.04);
}

.en-expert-page-compact .en-expert-alerts {
  margin-bottom: 10px;
}

.en-expert-page-compact .en-expert-alert {
  padding: 8px 10px;
  font-size: 0.82rem;
  border-radius: 8px;
}

.en-expert-compact-grid {
  display: grid;
  gap: 10px 12px;
}

.en-expert-compact-grid + .en-expert-compact-grid,
.en-expert-compact-divider + .en-expert-compact-grid,
.en-expert-compact-grid + .en-expert-compact-divider {
  margin-top: 10px;
}

.en-expert-compact-grid-name {
  grid-template-columns: minmax(0, 1.6fr) minmax(140px, 0.7fr);
}

.en-expert-compact-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.en-expert-compact-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.en-expert-compact-grid-7 {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.en-expert-compact-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.en-expert-page-compact .en-expert-field {
  margin: 0;
  min-width: 0;
}

.en-expert-page-compact .en-expert-label {
  margin: 0 0 4px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #3d4d66;
}

.en-expert-page-compact .en-expert-input,
.en-expert-page-compact input.en-expert-input,
.en-expert-page-compact select.en-expert-input {
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.84rem;
}

.en-expert-page-compact .en-expert-select-wrap::after {
  right: 11px;
  width: 6px;
  height: 6px;
}

.en-expert-page-compact .en-expert-select-wrap .en-expert-select {
  padding-right: 28px;
}

.en-expert-page-compact .en-date-icon {
  right: 10px;
  font-size: 0.8rem;
}

.en-expert-page-compact .en-expert-field-error {
  margin-top: 3px;
  font-size: 0.72rem;
}

.en-expert-compact-divider {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid #e8edf5;
  color: #24324a;
  font-size: 0.78rem;
  font-weight: 800;
}

.en-expert-compact-hint {
  color: #7a879c;
  font-size: 0.72rem;
  font-weight: 500;
}

.en-expert-page-compact .en-expert-textarea-sm,
.en-expert-page-compact textarea.en-expert-textarea-sm {
  min-height: 72px;
  height: 72px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.84rem;
  resize: vertical;
}

.en-expert-actions-compact {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e8edf5;
}

.en-expert-page-compact .en-expert-btn {
  min-height: 36px !important;
  padding: 0 16px !important;
  font-size: 0.86rem !important;
  border-radius: 8px !important;
}

@media (max-width: 980px) {
  .en-expert-compact-grid-3,
  .en-expert-compact-grid-4,
  .en-expert-compact-grid-7 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .en-expert-compact-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .en-expert-compact-grid-name,
  .en-expert-compact-grid-2,
  .en-expert-compact-grid-3,
  .en-expert-compact-grid-4,
  .en-expert-compact-grid-7 {
    grid-template-columns: 1fr;
  }

  .en-expert-chapter-add-row,
  .en-expert-chapter-item {
    grid-template-columns: 1fr;
  }
}
