:root {
  --brand: #ff5c00;
  --brand-dark: #e04e00;
  --bg: #fff8f3;
  --surface: #ffffff;
  --surface-soft: #fff1e7;
  --line: #ead8ca;
  --text: #111111;
  --muted: #5d5d5d;
  --success: #168a45;
  --warning: #c76a00;
  --danger: #b42318;
  --shadow: 0 18px 36px rgba(17, 17, 17, 0.08);
  --radius-lg: 22px;
  --radius-md: 14px;
  --sidebar-width: 270px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }
label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
input, select, textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}
textarea { min-height: 110px; resize: vertical; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small-text { font-size: 0.86rem; }
.password-input {
  position: relative;
}
.password-input input {
  padding-right: 64px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.password-toggle:hover {
  color: var(--text);
}
.password-toggle:focus-visible {
  outline: 2px solid rgba(255, 92, 0, 0.28);
  outline-offset: 4px;
  border-radius: 6px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: none;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}
.button--primary {
  background: var(--brand-dark);
  color: #fff;
}
.button--secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(255, 92, 0, 0.28);
}
.button--soft {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid rgba(255, 92, 0, 0.16);
}
.button:hover { opacity: 0.94; }

.landing-body,
.auth-body {
  min-height: 100vh;
  background: linear-gradient(180deg, #fff7f0 0%, #fff 100%);
}
.landing-shell,
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.landing-hero,
.auth-card {
  width: min(100%, 720px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 34px;
}
.brand-logo {
  display: block;
  width: min(220px, 58%);
  height: auto;
  margin: 0 0 22px;
}
.brand-logo--hero {
  width: min(280px, 70%);
  margin-inline: auto;
}
.site-brand__img {
  width: 56px;
  height: 56px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.landing-hero {
  text-align: center;
  padding: 44px 40px;
}
.landing-hero .landing-copy {
  max-width: 560px;
  margin: 14px auto 0;
}
.landing-actions {
  justify-content: center;
  margin-top: 26px;
}
.auth-card {
  padding: 36px 28px 32px;
  text-align: center;
}
.auth-card .brand-logo {
  width: 88px;
  margin: 0 auto 18px;
}
.auth-card h1 {
  margin-top: 0;
}
.landing-kicker {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.landing-hero h1,
.auth-card h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.04;
}
.landing-copy,
.auth-copy,
.auth-note,
.auth-linkline {
  color: var(--muted);
  font-size: 1rem;
}
.landing-actions,
.auth-tabs,
.portal-toolbar,
.inline-actions,
.class-meta,
.metrics-grid,
.cards-grid,
.form-grid,
.filter-row,
.detail-grid,
.notice-list,
.portal-grid,
.split-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.auth-tabs {
  margin: 22px 0 24px;
  justify-content: center;
}
.auth-tab {
  border: 1px solid rgba(255, 92, 0, 0.18);
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
}
.auth-tab.is-active {
  background: var(--surface-soft);
  color: var(--text);
  border-color: rgba(255, 92, 0, 0.24);
}
.auth-form {
  display: grid;
  gap: 14px;
  text-align: left;
}
.auth-form__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--muted);
}
.checkbox-row input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.auth-reset {
  border: none;
  background: transparent;
  color: var(--brand-dark);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.field-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.message {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(22, 138, 69, 0.12);
  color: var(--success);
  font-weight: 700;
}
.auth-note { margin-top: 16px; }
.auth-linkline { margin-top: 12px; }

.site-topbar {`r`n  position: sticky;`r`n  top: 0;`r`n  z-index: 20;`r`n  display: grid;`r`n  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);`r`n  gap: 18px;`r`n  align-items: center;`r`n  padding: 14px 24px;`r`n  background: #262626;`r`n  color: #fff;`r`n  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.16);`r`n}
.site-brand {`r`n  display: flex;`r`n  align-items: center;`r`n  gap: 14px;`r`n  background: var(--brand);`r`n  color: #fff;`r`n  border-radius: 18px;`r`n  padding: 12px 16px;`r`n  min-height: 76px;`r`n}
.site-brand strong,
.site-brand span {
  display: block;
}
.site-brand strong {
  font-size: 1.05rem;
  line-height: 1.1;
}
.site-brand span {
  color: rgba(255,255,255,0.84);
  font-size: 0.84rem;
}
.portal-toolbar {`r`n  display: flex;`r`n  flex-wrap: nowrap;`r`n  align-items: center;`r`n  justify-content: flex-end;`r`n  gap: 12px;`r`n}`r`n`r`n.portal-toolbar select {`r`n  min-width: 280px;`r`n  max-width: 340px;`r`n  width: 100%;`r`n  margin-right: 4px;`r`n}`r`n`r`n.portal-toolbar .button {`r`n  white-space: nowrap;`r`n}`r`n`r`n.site-brand strong {`r`n  color: #fff;`r`n}`r`n`r`n.site-brand span {`r`n  color: rgba(255,255,255,0.84);`r`n}
.portal-shell {
  padding: 20px;
}
.portal-grid {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 20px;
  align-items: start;
}
.sidebar,
.panel,
.metric-card,
.class-card,
.course-card,
.request-card,
.notification-card,
.announcement-card,
.program-card,
.sidebar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.sidebar {
  position: sticky;
  top: 86px;
  padding: 18px;
}
.sidebar-welcome {
  background: var(--surface-soft);
  border: 1px solid rgba(255, 92, 0, 0.16);
  border-radius: 18px;
  padding: 16px;
}
.sidebar-section { margin-top: 18px; }
.sidebar-title {
  margin: 0 0 10px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.nav-list,
.sidebar-list,
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nav-item {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
}
.nav-item:hover { background: rgba(255, 92, 0, 0.08); }
.nav-item.is-active {
  background: rgba(255, 92, 0, 0.14);
  border-color: rgba(255, 92, 0, 0.22);
}
.sidebar-card { padding: 12px 14px; background: var(--surface-soft); }
.portal-main { min-width: 0; }
.portal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.portal-header h1 {
  margin: 0;
  font-size: 2rem;
}
.portal-banner {
  background: var(--brand);
  color: #111;
  border-radius: 24px;
  padding: 24px;
}
.portal-banner h2 { margin: 0 0 8px; }
.portal-banner p { margin: 0; max-width: 760px; color: #111; }
.pill,
.filter-chip,
.status-chip,
.request-chip,
.count-chip,
.role-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 700;
}
.role-chip,
.count-chip { background: var(--surface-soft); color: var(--text); }
.filter-chip {
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
  cursor: pointer;
}
.filter-chip.is-active {
  background: var(--surface-soft);
  color: var(--text);
  border-color: rgba(255, 92, 0, 0.22);
}
.status-chip--live { background: rgba(22,138,69,0.12); color: var(--success); }
.status-chip--upcoming { background: rgba(199,106,0,0.12); color: var(--warning); }
.status-chip--completed { background: rgba(93,93,93,0.12); color: var(--muted); }
.request-chip--pending { background: rgba(199,106,0,0.12); color: var(--warning); }
.request-chip--approved { background: rgba(22,138,69,0.12); color: var(--success); }
.request-chip--rejected { background: rgba(180,35,24,0.12); color: var(--danger); }
.metrics-grid { margin-top: 18px; }
.metric-card,
.class-card,
.course-card,
.request-card,
.notification-card,
.announcement-card,
.program-card { flex: 1 1 280px; padding: 18px; }
.metric-card strong { display: block; margin-top: 8px; font-size: 1.95rem; }
.panel { padding: 20px; }
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-header h3,
.card-title { margin: 0; }
.form-grid > div,
.detail-grid > div,
.split-grid > section,
.split-grid > article { flex: 1 1 240px; }
.form-grid .full { flex-basis: 100%; }
.embed-frame {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 16px;
  background: #fff;
}
.notice-strip {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid rgba(255, 92, 0, 0.16);
}

@media (max-width: 1100px) {
  .portal-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 760px) {`r`n  .site-topbar,`r`n  .portal-header,`r`n  .panel-header { flex-direction: column; align-items: stretch; }`r`n  .site-topbar {`r`n    display: flex;`r`n  }`r`n  .portal-toolbar {`r`n    flex-wrap: wrap;`r`n    justify-content: stretch;`r`n  }`r`n  .portal-toolbar select {`r`n    min-width: 100%;`r`n    max-width: 100%;`r`n    margin-right: 0;`r`n  }`r`n  .portal-shell,`r`n  .landing-shell,`r`n  .auth-shell { padding: 14px; }`r`n  .landing-hero,`r`n  .auth-card,`r`n  .panel,`r`n  .sidebar { padding: 18px; }`r`n  .brand-logo--hero,`r`n  .auth-card .brand-logo {`r`n    margin-left: auto;`r`n    margin-right: auto;`r`n  }`r`n  .auth-form__meta {`r`n    flex-direction: column;`r`n    align-items: flex-start;`r`n  }`r`n  .site-brand__img {`r`n    width: 48px;`r`n    height: 48px;`r`n  }`r`n  .site-toolbar,`r`n  .portal-toolbar,`r`n  .button { width: 100%; }`r`n}




/* Portal header polish override */
.site-topbar {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: center !important;
  padding: 14px 24px !important;
  background: #1f1f1f !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.18) !important;
}
.site-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  background: linear-gradient(135deg, #ff5c00 0%, #ff6f12 100%) !important;
  color: #fff !important;
  border-radius: 18px !important;
  padding: 12px 18px !important;
  min-height: 76px !important;
  width: auto !important;
  box-shadow: 0 10px 24px rgba(255, 92, 0, 0.24) !important;
}
.site-brand strong {
  color: #fff !important;
}
.site-brand span {
  color: rgba(255, 255, 255, 0.84) !important;
}
.portal-toolbar {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: max-content !important;
  justify-content: end !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
}
.portal-toolbar select {
  min-width: 300px !important;
  width: min(360px, 34vw) !important;
  max-width: none !important;
  margin-right: 0 !important;
  background: #fff !important;
}
.portal-toolbar .button {
  width: auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}
.portal-banner {
  background: linear-gradient(135deg, #1f1f1f 0%, #313131 100%) !important;
  color: #fff !important;
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.12) !important;
}
.portal-banner h2 {
  color: #fff !important;
}
.portal-banner p {
  color: rgba(255, 255, 255, 0.82) !important;
}
@media (max-width: 1100px) {
  .site-topbar {
    grid-template-columns: 1fr !important;
  }
  .portal-toolbar {
    grid-auto-flow: row !important;
    grid-auto-columns: 1fr !important;
    justify-content: stretch !important;
  }
  .portal-toolbar select,
  .portal-toolbar .button {
    width: 100% !important;
    min-width: 100% !important;
  }
}
@media (max-width: 760px) {
  .site-topbar,
  .portal-header,
  .panel-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .site-brand {
    width: 100% !important;
  }
}

/* Bambinos-inspired account and header override */
.site-topbar {
  background: linear-gradient(90deg, #111111 0%, #1d1d1d 100%) !important;
  border-radius: 0 0 24px 24px;
}
.site-brand {
  min-width: 248px !important;
  border-radius: 20px !important;
}
.portal-toolbar {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
}
.portal-toolbar select {
  flex: 0 1 360px !important;
}
.portal-toolbar .button {
  border-radius: 14px !important;
}
.profile-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.profile-trigger {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.avatar-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2c2c2c 0%, #4a4a4a 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 26px rgba(17, 17, 17, 0.24);
}
.profile-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(17, 17, 17, 0.16);
  padding: 14px;
  z-index: 30;
}
.profile-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 18px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-left: 1px solid rgba(17, 17, 17, 0.08);
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  transform: rotate(45deg);
}
.profile-dropdown__head {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}
.profile-dropdown__head strong {
  font-size: 1.05rem;
}
.profile-dropdown__head span {
  color: #6f6f6f;
  font-size: 0.9rem;
}
.profile-action {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  color: #1f1f1f;
  font-weight: 600;
}
.profile-action:hover {
  background: #f5f5f5;
}
.portal-banner {
  background: linear-gradient(135deg, #111111 0%, #262626 100%) !important;
}
.portal-main .count-chip {
  background: #f4ede8;
  color: #111;
}
.nav-item.is-active {
  background: linear-gradient(135deg, #111111 0%, #2a2a2a 100%) !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(17, 17, 17, 0.14);
}
.account-shell {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 22px;
}
.account-card {
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 36px rgba(17, 17, 17, 0.08);
}
.account-card--profile {
  align-self: start;
  background: linear-gradient(180deg, #ffffff 0%, #fbf4ef 100%);
}
.account-hero {
  display: grid;
  gap: 18px;
}
.account-avatar {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  background: #f3f3f3;
  box-shadow: 0 18px 34px rgba(17, 17, 17, 0.12);
}
.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.account-admin-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f3f4f6;
  color: #4a4a4a;
  font-size: 0.94rem;
  line-height: 1.5;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}
.account-field {
  display: grid;
  gap: 8px;
}
.account-field--full {
  grid-column: 1 / -1;
}
.account-field label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #333;
}
.readonly-control {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid #d8dadd;
  background: #f0f2f5;
  color: #4d5562;
  padding: 13px 14px;
  display: flex;
  align-items: center;
}
.readonly-control--multiline {
  min-height: 128px;
  align-items: flex-start;
  white-space: pre-wrap;
  line-height: 1.6;
}
.password-helper {
  margin-top: -4px;
  color: #6d6d6d;
}
@media (max-width: 1040px) {
  .account-shell {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .profile-dropdown {
    right: auto;
    left: 0;
  }
  .account-grid {
    grid-template-columns: 1fr;
  }
}

/* Portal refresh v3: warmer brand balance and editable account forms */
.site-topbar {
  background: linear-gradient(90deg, #fff6ef 0%, #ffe7d6 55%, #2a2726 55%, #191919 100%) !important;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 14px 34px rgba(62, 32, 4, 0.12) !important;
}
.site-brand {
  min-width: 228px !important;
  background: linear-gradient(135deg, #ff6d0a 0%, #ff8a1d 100%) !important;
  color: #fff !important;
  border-radius: 18px !important;
  padding: 12px 18px !important;
  min-height: 64px !important;
  box-shadow: 0 14px 28px rgba(255, 104, 0, 0.22) !important;
}
.site-brand__img {
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px !important;
  background: #fff !important;
  padding: 8px !important;
  box-shadow: none !important;
}
.site-brand strong,
.site-brand span {
  color: #fff !important;
}
.portal-toolbar {
  gap: 10px !important;
}
.portal-toolbar select {
  background: #fffaf7 !important;
  border: 1px solid rgba(255, 123, 0, 0.28) !important;
  color: #1f1f1f !important;
}
.portal-toolbar .button,
.profile-action {
  border-radius: 12px !important;
}
.avatar-badge {
  background: linear-gradient(135deg, #252322 0%, #4a433f 100%) !important;
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.18) !important;
}
.portal-banner {
  background: linear-gradient(135deg, #ff6d0a 0%, #ff8c22 100%) !important;
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(255, 102, 0, 0.22) !important;
}
.portal-banner h2,
.portal-banner p {
  color: #fff !important;
}
.nav-item.is-active {
  background: linear-gradient(135deg, #ff6d0a 0%, #ff8c22 100%) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(255, 102, 0, 0.18) !important;
}
.nav-item:hover {
  background: #fff4ec !important;
}
.account-shell {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 22px;
}
.account-card {
  background: #fff;
  border: 1px solid rgba(255, 134, 44, 0.18);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 38px rgba(68, 40, 9, 0.08);
}
.account-card--profile {
  background: linear-gradient(180deg, #fffaf7 0%, #fff2e8 100%);
}
.account-admin-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff7f1;
  border: 1px solid rgba(255, 134, 44, 0.18);
  color: #70411d;
  font-size: 0.94rem;
  line-height: 1.5;
}
.account-locked-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}
.account-field {
  display: grid;
  gap: 8px;
}
.account-field--full {
  grid-column: 1 / -1;
}
.account-field label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #2d2118;
}
.account-field input,
.account-field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #efd0bb;
  background: #fffdfa;
  color: #1c1c1c;
  padding: 13px 14px;
  font: inherit;
}
.account-field textarea {
  resize: vertical;
  min-height: 120px;
}
.account-hint {
  margin: -2px 0 0;
  font-size: 0.82rem;
  color: #8b6b53;
}
.readonly-control {
  min-height: 48px;
  border-radius: 14px;
  border: 1px dashed #e3c4ae;
  background: #f7efe8;
  color: #65564a;
  padding: 13px 14px;
  display: flex;
  align-items: center;
}
.readonly-control--multiline {
  min-height: 88px;
  align-items: flex-start;
  white-space: pre-wrap;
  line-height: 1.6;
}
.account-form-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
#profileMessage {
  margin-top: 16px;
}
@media (max-width: 1100px) {
  .site-topbar {
    background: linear-gradient(180deg, #fff6ef 0%, #ffe9da 40%, #1f1f1f 40%, #1f1f1f 100%) !important;
  }
}
@media (max-width: 1040px) {
  .account-shell {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .site-brand {
    min-width: 0 !important;
    width: 100% !important;
  }
  .account-grid {
    grid-template-columns: 1fr;
  }
}
/* Portal profile polish v4 */
.site-topbar {
  background: linear-gradient(90deg, #fff6ef 0%, #fff3ea 58%, #2a2726 58%, #1f1d1c 100%) !important;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 14px 34px rgba(62, 32, 4, 0.1) !important;
}
.site-brand {
  min-width: 236px !important;
  background: linear-gradient(135deg, #ff6d0a 0%, #ff8c1f 100%) !important;
  color: #fff !important;
  border-radius: 20px !important;
  padding: 10px 16px !important;
  min-height: 62px !important;
  box-shadow: 0 16px 28px rgba(255, 104, 0, 0.18) !important;
}
.site-brand__img {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  padding: 6px !important;
}
.site-brand strong,
.site-brand span {
  color: #fff !important;
}
.portal-toolbar {
  gap: 12px !important;
}
.portal-toolbar select {
  min-width: 230px;
  background: #fffaf7 !important;
  border: 1px solid rgba(255, 123, 0, 0.25) !important;
  color: #241f1b !important;
}
.avatar-badge {
  background: linear-gradient(135deg, #2b2928 0%, #4c4641 100%) !important;
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.16) !important;
}
.portal-banner {
  background: linear-gradient(135deg, #ff6f0c 0%, #ff8f22 100%) !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(255, 108, 0, 0.18) !important;
}
.portal-banner h2,
.portal-banner p {
  color: #fff !important;
}
.nav-item.is-active {
  background: linear-gradient(135deg, #1f1f1f 0%, #2e2c2b 100%) !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(17, 17, 17, 0.14) !important;
}
.nav-item:hover {
  background: #fff4ec !important;
}
.account-card {
  background: #fff !important;
  border: 1px solid rgba(255, 134, 44, 0.16) !important;
  border-radius: 24px !important;
  box-shadow: 0 16px 34px rgba(68, 40, 9, 0.08) !important;
}
.account-card--profile {
  background: linear-gradient(180deg, #fffaf7 0%, #fff3ea 100%) !important;
}
.account-admin-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff7f1;
  border: 1px solid rgba(255, 134, 44, 0.16);
  color: #70411d;
  font-size: 0.94rem;
  line-height: 1.5;
}
.account-section-title {
  grid-column: 1 / -1;
  padding: 6px 0 2px;
  border-top: 1px solid #f1e2d6;
  margin-top: 4px;
}
.account-section-title:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.account-section-title h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #241a12;
}
.account-section-title p {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: #846650;
  line-height: 1.5;
}
.account-field label {
  color: #2d2118 !important;
}
.account-field input,
.account-field textarea {
  border: 1px solid #edd0bc !important;
  background: #fffdfa !important;
  color: #1c1c1c !important;
}
.account-field input:focus,
.account-field textarea:focus {
  border-color: #ff8a1d !important;
  box-shadow: 0 0 0 3px rgba(255, 138, 29, 0.12) !important;
  outline: none;
}
.readonly-control {
  border: 1px dashed #e8d4c3 !important;
  background: #f8f1eb !important;
  color: #6a5c51 !important;
}
@media (max-width: 1100px) {
  .site-topbar {
    background: linear-gradient(180deg, #fff7f0 0%, #fff1e6 42%, #262423 42%, #1f1d1c 100%) !important;
  }
}

/* Portal profile fix v4e */
.site-topbar {
  background: linear-gradient(135deg, #ff6d0a 0%, #ff8c1f 100%) !important;
  border-radius: 0 0 24px 24px;
}
.site-brand {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: none !important;
}
.site-brand strong,
.site-brand span,
.portal-toolbar,
.portal-toolbar__label {
  color: #fff !important;
}
.portal-toolbar {
  gap: 14px !important;
}
.portal-toolbar__label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.portal-toolbar select,
.portal-toolbar .button {
  box-shadow: none !important;
}
.profile-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.avatar-badge {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2) !important;
  border: 2px solid rgba(255, 255, 255, 0.34);
}
.avatar-badge img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.profile-dropdown {
  display: none;
}
.profile-menu.is-open .profile-dropdown {
  display: block;
}
.profile-action:hover {
  background: #fff4ec;
}

/* Portal profile fix v4f */
.site-brand {
  min-width: auto !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.site-brand__img {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  padding: 6px !important;
}
.site-brand strong {
  font-size: 1.1rem !important;
}
.site-brand span {
  font-size: 0.92rem !important;
  opacity: 0.92;
}
.portal-toolbar {
  min-height: 52px;
}
.portal-banner {
  background: linear-gradient(135deg, #151515 0%, #262626 100%) !important;
  color: #fff !important;
}
.portal-banner h2,
.portal-banner p {
  color: #fff !important;
}
.nav-item:hover {
  background: linear-gradient(135deg, #ff7a12 0%, #ff9830 100%) !important;
  color: #111 !important;
}
.nav-item.is-active {
  background: linear-gradient(135deg, #ff6d0a 0%, #ff8c1f 100%) !important;
  color: #111 !important;
  box-shadow: 0 12px 24px rgba(255, 109, 10, 0.24) !important;
}
.profile-menu {
  z-index: 60;
}
.profile-trigger {
  position: relative;
  z-index: 61;
}
.profile-dropdown {
  right: 0;
  top: calc(100% + 10px);
  z-index: 62;
}
.profile-dropdown::before {
  right: 16px;
}
.portal-header {
  align-items: flex-end;
}
.portal-header > div:last-child {
  display: none !important;
}

/* Portal profile fix v4h */
.site-brand {
  gap: 12px !important;
}
.site-brand__img {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: #fff !important;
  border: 3px solid rgba(255, 255, 255, 0.92) !important;
  padding: 8px !important;
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.14) !important;
}
/* Portal profile fix v4i */
.site-brand__img {
  padding: 0 !important;
  object-fit: cover !important;
  display: block !important;
}
/* Session workspace scaling for large libraries */
.session-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}
.session-library-panel {
  min-width: 0;
}
.session-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  align-items: stretch;
  max-height: calc(100vh - 220px);
  overflow: auto;
  padding-right: 4px;
}
.session-card {
  display: flex;
  flex-direction: column;
  min-height: 196px;
}
.session-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.session-card__identity {
  min-width: 0;
  flex: 1 1 auto;
}
.session-card__title {
  line-height: 1.25;
}
.session-card__meta {
  margin-top: 6px;
}
.session-card__badge {
  min-width: 84px;
  padding: 9px 12px;
  flex: 0 0 auto;
  align-self: flex-start;
  text-align: center;
}
.session-card__summary {
  margin: 14px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.9em;
}
.session-card__summary--empty {
  color: var(--muted);
  opacity: 0.8;
}
.session-card__actions {
  margin-top: auto;
  align-items: stretch;
}
.session-card__actions .button {
  flex: 1 1 132px;
}
.session-workspace__preview {
  min-width: 0;
}
.session-preview-panel {
  position: sticky;
  top: 96px;
}
.session-preview-panel .embed-frame {
  margin-top: 0;
  min-height: min(72vh, 820px);
  background: #111;
}
.session-preview-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  border: 1px dashed rgba(255, 92, 0, 0.2);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fbf4ef 100%);
  color: var(--muted);
}
@media (max-width: 1180px) {
  .session-workspace {
    grid-template-columns: 1fr;
  }
  .session-library-grid {
    max-height: none;
    overflow: visible;
  }
  .session-preview-panel {
    position: static;
  }
}
@media (max-width: 760px) {
  .session-library-grid {
    grid-template-columns: 1fr;
  }
  .session-card__head {
    flex-direction: column;
  }
  .session-card__badge {
    min-width: 0;
  }
}

/* Preview teaching controls */
.session-preview-panel__toolbar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.session-preview-panel:fullscreen {
  background: #111;
  padding: 20px;
  border-radius: 0;
}
.session-preview-panel:fullscreen .panel-header {
  color: #fff;
}
.session-preview-panel:fullscreen .muted {
  color: rgba(255, 255, 255, 0.78);
}
.session-preview-panel:fullscreen .embed-frame {
  min-height: calc(100vh - 120px);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Session library filtering */
.session-library-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.session-library-controls > div {
  min-width: 0;
}
.session-library-controls label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
@media (max-width: 760px) {
  .session-library-controls {
    grid-template-columns: 1fr;
  }
}
