/**
 * Teraschool Theme Overrides – Minimal, light, clean
 * Applied after styles.min.css to theme the whole app.
 * ver 2.24 — Online sidebar virtual list + load more
 */

/* ─────────────────────────────────────────────────────────────────────────────
   CSS Variables - Light minimal palette
   ───────────────────────────────────────────────────────────────────────────── */
:root {
  /* Minimal palette */
  --tera-primary: #334155;
  --tera-primary-hover: #1e293b;
  --tera-accent: #3b82f6;
  --tera-sidebar-bg: #f8fafc;
  --tera-content-bg: #ffffff;
  --tera-card-bg: #ffffff;
  --tera-text-primary: #1e293b;
  --tera-text-secondary: #475569;
  --tera-text-muted: #94a3b8;
  --tera-border: #e2e8f0;
  --tera-border-light: #f1f5f9;

  /* Minimal shadows */
  --tera-shadow: 0 1px 2px rgba(0,0,0,.04);
  --tera-shadow-card: 0 1px 3px rgba(0,0,0,.05);
  --tera-focus-ring: 0 0 0 2px rgba(59,130,246,.25);
}

/* Body font override to Inter */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Avatars & profile photos — reduce stretched/squished faces (img + liquid covers)
   Hexagon profile pics: fixed in xm_plugins.min.js (canvas drawImage “cover” crop).
   ───────────────────────────────────────────────────────────────────────────── */
.user-preview-cover.liquid img,
figure.liquid img,
.user-preview.small .user-preview-cover img,
.user-short-description-avatar img,
.user-status-avatar img,
.user-avatar img,
.post-open .post-author img,
.chat-widget .user-status-avatar img,
.dropdown-navigation .user-status-avatar img {
  object-fit: cover;
  object-position: center center;
}

.user-preview-cover.liquid img,
figure.liquid img {
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Layout - Sidebar & Content
   ───────────────────────────────────────────────────────────────────────────── */
.navigation-widget.sidebar,
.navigation-widget-desktop.sidebar,
.navigation-widget-mobile.sidebar {
  background: var(--tera-sidebar-bg) !important;
}
.content-grid {
  background: var(--tera-content-bg) !important;
  padding: 1.5rem !important;
  margin-top: 7.5rem !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Navigation - Minimal active state (subtle highlight)
   Fix square box: only fill path, not rect (spacer rect causes square)
   ───────────────────────────────────────────────────────────────────────────── */
.navigation-widget .menu-item-link,
.navigation-widget-small .menu-item-link {
  border-radius: 8px;
}
.navigation-widget .menu-item-link.menu-act,
.navigation-widget-small .menu-item-link.menu-act {
  background: rgba(51,65,85,.08) !important;
  color: var(--tera-text-primary) !important;
}
/* Fill only path – rect causes square box when filled */
.navigation-widget .menu-item-link.menu-act .menu-item-link-icon svg path,
.navigation-widget .menu-item-link.menu-act .menu-item-link-icon svg polygon,
.navigation-widget-small .menu-item-link.menu-act .menu-item-link-icon svg path,
.navigation-widget-small .menu-item-link.menu-act .menu-item-link-icon svg polygon {
  fill: var(--tera-text-primary) !important;
}
.navigation-widget .menu-item-link.menu-act .menu-item-link-icon svg rect,
.navigation-widget-small .menu-item-link.menu-act .menu-item-link-icon svg rect {
  fill: none !important;
}
.navigation-widget .menu-item-link:hover,
.navigation-widget-small .menu-item-link:hover .menu-item-link {
  background: rgba(0,0,0,.04);
}
.navigation-widget .menu-item-link.menu-act:hover {
  background: rgba(51,65,85,.1) !important;
}

/* Section titles (MAIN MENU / MANAGEMENT) */
.tera-section-title-wrap,
.navigation-widget-section-title {
  color: var(--tera-text-muted) !important;
  font-weight: 600;
  letter-spacing: .05em;
  font-size: .7rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Header - Tighter spacing (menu, logo, org name, running year)
   ───────────────────────────────────────────────────────────────────────────── */
.header,
.header .header-actions,
.header .header-brand {
  gap: 0;
}
.header .header-brand .logo {
  margin-left: 4px !important;
}
.header .header-brand .header-brand-text {
  margin-left: 10px !important;
}
.header .header-brand-inner {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
}
/* All roles: brand row vertically centered; super/system icon sized like school logos */
.header .header-brand {
  align-items: center;
}
.header .header-brand .logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header .header-brand .logo img {
  max-width: 60px;
  width: auto;
  height: auto;
  border-radius: 5px;
  vertical-align: middle;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Header - Running Year badge (subtle pill)
   ───────────────────────────────────────────────────────────────────────────── */
.header-running-year-wrap {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.header-running-year-label {
  font-size: .7rem;
  color: var(--tera-text-muted);
  font-weight: 500;
}
.header-running-year {
  background: var(--tera-border-light);
  color: var(--tera-text-secondary) !important;
  padding: .2rem .6rem;
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 500;
}

/* Header — mobile / narrow: running year hidden; school name truncates */
@media (max-width: 767.98px) {
  .header-running-year-wrap {
    display: none !important;
  }
  .header .header-brand-inner {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
  }
  .header .header-brand .header-brand-text {
    font-size: 1rem !important;
    margin-left: 8px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(46vw, 14rem);
  }
}

/* Header — ID / messages / notifications: always one horizontal row (no stacked “columns”) */
.header .action-list {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
}
.header .action-list > .action-list-item-wrap {
  position: relative;
  flex: 0 0 auto;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  align-self: stretch;
}
.header .action-list > a.action-list-item {
  flex: 0 0 auto;
  align-self: stretch;
}
.header .action-list .action-list-item,
.header .action-list a.action-list-item {
  flex-shrink: 0;
}

/*
 * Floaty bar: pin to viewport (theme uses fixed, but reinforce — avoids scroll/parent quirks).
 * Shown ≤960px when logged out; ≤680px when logged in.
 */
@media screen and (max-width: 960px) {
  .floaty-bar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    z-index: 10050 !important;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}

/*
 * ≤680px: bottom .floaty-bar has ID, messages, Kiini, academics, account, notifications.
 * Hide the duplicate .action-list in the header; keep settings (.action-item-wrap) only.
 */
@media screen and (max-width: 680px) {
  .header {
    flex-wrap: nowrap;
  }
  .header .header-actions:last-child {
    display: flex !important;
    align-items: stretch;
    flex: 0 0 auto;
    min-width: 0;
  }
  .header .header-actions:last-child > .action-list.dark {
    display: none !important;
  }
  .header .header-actions.search-bar {
    width: auto !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin-right: 0 !important;
  }
  .header .action-item {
    width: 48px !important;
    min-width: 48px;
    height: 60px !important;
  }

  /* Bottom floaty: drop empty first column, evenly space tap targets */
  .floaty-bar {
    justify-content: stretch;
  }
  .floaty-bar > .bar-actions:first-child {
    display: none !important;
  }
  .floaty-bar > .bar-actions:last-child {
    flex: 1 1 auto;
    display: flex !important;
    justify-content: center;
    align-items: stretch;
    min-width: 0;
  }
  .floaty-bar .action-list {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-evenly !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    box-sizing: border-box;
  }
  .floaty-bar .action-list:after,
  .floaty-bar .action-list:before {
    display: none !important;
  }
  .floaty-bar .action-list > .action-list-item,
  .floaty-bar .action-list > .action-list-item-wrap > a.action-list-item,
  .floaty-bar .action-list > a.action-list-item {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
    height: 100%;
    box-sizing: border-box;
  }
}

/* ≤480px theme adds heavy horizontal padding on floaty items — keep even distribution */
@media screen and (max-width: 480px) {
  .floaty-bar .action-list .action-list-item,
  .floaty-bar .action-list a.action-list-item {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
}

/* Floaty: same icon box + shrink behavior so slots line up (profile used .action-item-icon before). */
.floaty-bar .action-list-item .action-list-item-icon {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  overflow: visible;
  box-sizing: content-box;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Primary Buttons - Minimal dark (Post, Submit, etc.)
   ───────────────────────────────────────────────────────────────────────────── */
.button,
a.button,
button.button,
.dropdown-box-button,
input.button,
.btn {
  background-image: none !important;
  box-shadow: none !important;
  border-radius: 10px !important;
  border: 1px solid #d8dee6 !important;
  background-color: #ffffff !important;
  color: #2f3a4a !important;
  font-weight: 600 !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease !important;
}

/* Keep neighboring action buttons visually separated */
.button + .button,
a.button + a.button,
button.button + button.button,
.btn + .btn,
.dropdown-box-button + .dropdown-box-button {
  margin-left: 8px !important;
}

.button:hover,
.button:focus,
a.button:hover,
a.button:focus,
button.button:hover,
button.button:focus,
.dropdown-box-button:hover,
.dropdown-box-button:focus,
.btn:hover,
.btn:focus {
  background-image: none !important;
  background-color: #f7f9fc !important;
  border-color: #c8d1dc !important;
  color: #1f2a37 !important;
  box-shadow: none !important;
}

/* Flat variant colors (no gradients) */
.button.primary,
.dropdown-box-button.primary,
a.button.primary,
button.button.primary,
.btn-primary {
  background: #334155 !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

.button.primary:hover,
.dropdown-box-button.primary:hover,
a.button.primary:hover,
button.button.primary:hover,
.btn-primary:hover {
  background: #1e293b !important;
  border-color: #1e293b !important;
  color: #ffffff !important;
}

.button.twitter,
a.button.twitter,
button.button.twitter,
.btn-info {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

.button.twitter:hover,
a.button.twitter:hover,
button.button.twitter:hover,
.btn-info:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
}

.button.secondary,
a.button.secondary,
button.button.secondary,
.btn-secondary {
  background: #ffffff !important;
  border-color: #d8dee6 !important;
  color: #2f3a4a !important;
}

.button.light,
a.button.light,
button.button.light,
.button.white,
a.button.white,
button.button.white {
  background: #ffffff !important;
  border-color: #e5e9ef !important;
  color: #364152 !important;
}

.button.small,
a.button.small,
button.button.small {
  border-radius: 8px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.button.primary,
.dropdown-box-button.primary,
a.button.primary,
button.button.primary {
  background: var(--tera-primary) !important;
  border-color: var(--tera-primary) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.button.primary:hover,
.dropdown-box-button.primary:hover,
a.button.primary:hover,
button.button.primary:hover {
  background: var(--tera-primary-hover) !important;
  border-color: var(--tera-primary-hover) !important;
  color: #fff !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Form Focus - Subtle ring
   ───────────────────────────────────────────────────────────────────────────── */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus {
  border-color: var(--tera-border) !important;
  box-shadow: var(--tera-focus-ring);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Section Banner - Light minimal
   ───────────────────────────────────────────────────────────────────────────── */
.section-banner {
  background: var(--tera-content-bg) !important;
  border-bottom: 1px solid var(--tera-border) !important;
  box-shadow: none !important;
}
.section-banner .section-banner-title,
.content-grid .section-banner .section-banner-title {
  color: var(--tera-text-primary) !important;
}
.section-banner .section-banner-text,
.content-grid .section-banner .section-banner-text {
  color: var(--tera-text-secondary) !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Dashboard Stat Cards - Light, minimal (no gradients)
   Reference: white/light bg, thin grey separators, dark numbers, light labels
   ───────────────────────────────────────────────────────────────────────────── */
.profile-header .profile-header-info {
  background: var(--tera-content-bg);
}
.profile-header .profile-header-info .user-stats {
  background: var(--tera-content-bg);
  padding: 1.5rem;
  border-radius: 8px;
}
.profile-header .user-stats .user-stat.big {
  background: transparent !important;
  border-radius: 0;
  padding: 0 1.5rem;
}
.profile-header .user-stats .user-stat.big .user-stat-title {
  color: var(--tera-text-primary) !important;
  font-size: 1.25rem;
  font-weight: 700;
}
.profile-header .user-stats .user-stat.big .user-stat-text {
  color: var(--tera-text-muted) !important;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.profile-header .user-stats .user-stat:after {
  background-color: var(--tera-border) !important;
  opacity: .8;
}

/* Panel dashboard metrics: horizontal scroll on narrow viewports */
@media (max-width: 767px) {
  .profile-header .profile-header-info .user-stats.sc-panel-impact-stats {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 0;
    max-width: 100%;
    box-sizing: border-box;
    /* Padding keeps first/last stat off the screen edge when scrolling */
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
  }
  .profile-header .user-stats.sc-panel-impact-stats .user-stat.big {
    flex: 0 0 auto !important;
    min-width: 5.75rem;
    max-width: 42vw;
    padding-left: 0.875rem !important;
    padding-right: 0.875rem !important;
    scroll-snap-align: start;
  }
  .profile-header .user-stats.sc-panel-impact-stats::-webkit-scrollbar {
    height: 6px;
  }
  .profile-header .user-stats.sc-panel-impact-stats::-webkit-scrollbar-thumb {
    background: var(--tera-border);
    border-radius: 3px;
  }
}
.profile-header .profile-header-cover {
  position: relative;
}
.profile-header .profile-header-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.4);
  pointer-events: none;
  border-radius: inherit;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Widget Box - Light card, minimal shadow
   Reference: light grey card, subtle shadow, rounded corners
   ───────────────────────────────────────────────────────────────────────────── */
.widget-box {
  background: var(--tera-content-bg);
  border-radius: 8px;
  box-shadow: var(--tera-shadow-card);
  border: 1px solid var(--tera-border-light);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Table - Light, minimal
   ───────────────────────────────────────────────────────────────────────────── */
.table-wrap,
.section-navigation .table {
  background: var(--tera-content-bg);
  border-radius: 8px;
  box-shadow: var(--tera-shadow);
  border: 1px solid var(--tera-border-light);
}
.table thead th,
.table .table-head th {
  background: var(--tera-sidebar-bg);
  color: var(--tera-text-primary);
  font-weight: 600;
  font-size: .8rem;
}
.table tbody tr:hover,
.table .table-body tr:hover {
  background: rgba(0,0,0,.02);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Post / Create card tabs (News, Polls, Youtube Video)
   Reference: active tab = dark text + underline, light separators
   ───────────────────────────────────────────────────────────────────────────── */
.post-option.active,
.filters .filter.active {
  border-bottom-color: var(--tera-text-primary);
  color: var(--tera-text-primary) !important;
}
.post-option,
.filters .filter {
  color: var(--tera-text-muted);
}

/* ─────────────────────────────────────────────────────────────────────────────
   Feed posts (wall / news) — minimal excerpt + expand
   ───────────────────────────────────────────────────────────────────────────── */
.post-content-wrap {
  margin-top: .25rem;
}
.sc-post.sc-post--wall {
  margin: 0;
  padding: 0;
}
.sc-post__excerpt {
  margin: 0 0 .3rem;
  padding: 0;
  color: var(--tera-text-primary);
  font-size: .9375rem;
  line-height: 1.62;
  font-weight: 400;
  display: block;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.sc-post--expanded .sc-post__excerpt {
  display: none;
}
/* SSR + JS: belt-and-suspenders so theme .post-wysiwyg never “un-hides” the body */
.sc-post.sc-post--collapsed .sc-post__full:not(.sc-post__full--always) {
  display: none !important;
}
.sc-post__toggle {
  appearance: none;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--tera-accent);
  cursor: pointer;
  letter-spacing: 0.01em;
}
.sc-post__toggle:hover,
.sc-post__toggle:focus-visible {
  color: var(--tera-primary-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}
.sc-post__less {
  display: block;
  margin-top: .75rem;
}
.sc-post__full[hidden] {
  display: none !important;
}

/* Hashtags — subtle, minimal */
.post-hashtag {
  display: inline;
  font-weight: 600;
  color: var(--tera-accent);
  text-decoration: none;
}

/* WYSIWYG-rendered content (from CKEditor) – do not set display: block here; it breaks [hidden] on snippets. */
.post-wysiwyg:not([hidden]),
.post-content-continuation.post-wysiwyg:not([hidden]) {
  font-size: .95rem;
  line-height: 1.55;
  color: var(--tera-text-primary);
  word-wrap: break-word;
}

/* Feed body typography inside wall cards */
.widget-box-status-text .sc-post__full.post-wysiwyg > p:first-child:not(:only-of-type) {
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 0.6em;
}
.widget-box-status-text .sc-post__full.post-wysiwyg > p + p {
  margin-top: 0;
}
.widget-box-status-text .sc-post__full.post-wysiwyg ul,
.widget-box-status-text .sc-post__full.post-wysiwyg ol {
  margin: 0.55em 0 0.65em;
  padding-left: 1.25em;
}
.widget-box-status-text .sc-post__full.post-wysiwyg li {
  margin-bottom: 0.4em;
}
.widget-box-status-text .sc-post__full.post-wysiwyg li::marker {
  color: var(--tera-text-muted);
}
.post-wysiwyg p,
.post-content-continuation.post-wysiwyg p {
  margin: 0 0 .6em;
}
.post-wysiwyg p:last-child,
.post-content-continuation.post-wysiwyg p:last-child {
  margin-bottom: 0;
}
.post-wysiwyg ul,
.post-wysiwyg ol,
.post-content-continuation.post-wysiwyg ul,
.post-content-continuation.post-wysiwyg ol {
  margin: 0 0 .6em;
  padding-left: 1.5em;
}
.post-wysiwyg li,
.post-content-continuation.post-wysiwyg li {
  margin-bottom: .25em;
}
.post-wysiwyg strong,
.post-content-continuation.post-wysiwyg strong,
.post-wysiwyg b,
.post-content-continuation.post-wysiwyg b {
  font-weight: 600;
}
.post-wysiwyg em,
.post-content-continuation.post-wysiwyg em,
.post-wysiwyg i,
.post-content-continuation.post-wysiwyg i {
  font-style: italic;
}
.post-wysiwyg u,
.post-content-continuation.post-wysiwyg u {
  text-decoration: underline;
}
.post-wysiwyg a,
.post-content-continuation.post-wysiwyg a {
  color: var(--tera-accent);
  text-decoration: none;
}
.post-wysiwyg a:hover,
.post-content-continuation.post-wysiwyg a:hover {
  text-decoration: underline;
}
.post-wysiwyg img,
.post-content-continuation.post-wysiwyg img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: .5em 0;
}
.post-wysiwyg h1, .post-wysiwyg h2, .post-wysiwyg h3, .post-wysiwyg h4,
.post-content-continuation.post-wysiwyg h1,
.post-content-continuation.post-wysiwyg h2,
.post-content-continuation.post-wysiwyg h3,
.post-content-continuation.post-wysiwyg h4 {
  margin: .75em 0 .4em;
  font-weight: 600;
  color: var(--tera-text-primary);
  line-height: 1.3;
}
.post-wysiwyg h1, .post-content-continuation.post-wysiwyg h1 { font-size: 1.35rem; }
.post-wysiwyg h2, .post-content-continuation.post-wysiwyg h2 { font-size: 1.2rem; }
.post-wysiwyg h3, .post-content-continuation.post-wysiwyg h3 { font-size: 1.08rem; }
.post-wysiwyg h4, .post-content-continuation.post-wysiwyg h4 { font-size: 1rem; }
.post-wysiwyg blockquote,
.post-content-continuation.post-wysiwyg blockquote {
  margin: .6em 0;
  padding: .4em 1em;
  border-left: 4px solid var(--tera-border);
  background: var(--tera-border-light);
  color: var(--tera-text-secondary);
  font-style: italic;
}
.post-wysiwyg table,
.post-content-continuation.post-wysiwyg table {
  width: 100%;
  border-collapse: collapse;
  margin: .6em 0;
  font-size: .9em;
}
.post-wysiwyg th, .post-wysiwyg td,
.post-content-continuation.post-wysiwyg th,
.post-content-continuation.post-wysiwyg td {
  border: 1px solid var(--tera-border);
  padding: .4em .6em;
  text-align: left;
}
.post-wysiwyg th,
.post-content-continuation.post-wysiwyg th {
  background: var(--tera-sidebar-bg);
  font-weight: 600;
}

/* Subject card avatar: fallback when no image – icon only, not imagery-dependent */
.subject-hexagon-icon-fallback {
  width: 84px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #615dfa 0%, #41efff 100%);
  border-radius: 8px;
  flex-shrink: 0;
}
.subject-hexagon-icon-fallback svg {
  width: 40px;
  height: 40px;
}
.subject-hexagon-icon-fallback--124-136 {
  width: 124px;
  height: 136px;
}
.subject-hexagon-icon-fallback--124-136 svg {
  width: 56px;
  height: 56px;
}
.subject-hexagon-icon-fallback--100-110 {
  width: 100px;
  height: 110px;
}
.subject-hexagon-icon-fallback--100-110 svg {
  width: 46px;
  height: 46px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Login / landing: gradient hue overlay + reliable mobile/tablet stacking
   (Theme uses position:static + absolute children at ≤1365px; flex centers the form.)
   ───────────────────────────────────────────────────────────────────────────── */
.landing::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    118deg,
    rgba(15, 23, 42, 0.78) 0%,
    rgba(30, 58, 95, 0.5) 38%,
    rgba(59, 130, 246, 0.2) 65%,
    rgba(15, 23, 42, 0.45) 100%
  );
}
.landing .landing-decoration {
  z-index: 1;
  opacity: 0.26;
}
.landing-info,
.landing-form {
  z-index: 2;
}
@media screen and (max-width: 1365px) {
  /* Login/forgot only: avoid theme .landing padding (80px/100px) + form height:100% clipping */
  html.page-login-landing-root {
    overflow-x: hidden;
  }
  html.page-login-landing-root body.page-login-landing {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .page-login-landing-root .landing {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    height: auto !important;
    padding-top: max(1rem, env(safe-area-inset-top)) !important;
    padding-bottom: calc(1.75rem + env(safe-area-inset-bottom)) !important;
    padding-left: max(16px, env(safe-area-inset-left)) !important;
    padding-right: max(16px, env(safe-area-inset-right)) !important;
  }
  .page-login-landing-root .landing-info,
  .page-login-landing-root .landing-form {
    flex: 0 0 auto !important;
    align-self: center !important;
    width: 100% !important;
    max-width: min(520px, 100%) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    z-index: 2;
    box-sizing: border-box !important;
  }
  .page-login-landing-root .landing-info {
    padding-top: 0 !important;
    text-align: center !important;
  }
  .page-login-landing-root .landing .landing-info-title {
    font-size: clamp(1.5rem, 7vw, 2.75rem) !important;
    top: 0 !important;
    line-height: 1.15 !important;
    word-break: break-word !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .page-login-landing-root .landing-form {
    height: auto !important;
    min-height: 0 !important;
    margin-top: 1rem !important;
  }
  .page-login-landing-root .landing-form .form-box {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    position: relative !important;
  }
  /* Non-login pages using .landing keep previous flex centering */
  .landing {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding-left: max(16px, env(safe-area-inset-left)) !important;
    padding-right: max(16px, env(safe-area-inset-right)) !important;
    padding-bottom: max(24px, env(safe-area-inset-bottom)) !important;
  }
  .landing-info {
    width: 100% !important;
    max-width: 520px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: 1rem !important;
  }
  .landing-form {
    width: 100% !important;
    max-width: 520px !important;
    margin-top: 1.25rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    flex-shrink: 0 !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .landing-form .form-box {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
  .landing-info,
  .landing-form {
    position: relative;
    z-index: 2;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   MOOC / Free Learning Hub — cards, pathway steps, legacy .button.tiny fix
   ───────────────────────────────────────────────────────────────────────────── */
.mooc-hub-card__cover {
  height: 120px;
  border-radius: 8px;
  background: var(--tera-border-light) center/cover no-repeat;
  background-color: #e8eef5;
}
.mooc-hub-card__actions .btn,
.mooc-hub-card__actions form {
  white-space: nowrap;
  margin-right: 0.35rem;
  margin-top: 0.15rem;
}
.mooc-pathway-preview__row .badge {
  margin-left: 0.5rem;
  flex-shrink: 0;
}
.mooc-pathway-preview__row .text-muted {
  flex: 1 1 auto;
  min-width: 0;
}

/* Legacy theme .button.tiny: prevent cramped / vertical text (inline-flex + nowrap) */
a.button.tiny,
button.button.tiny,
.button.tiny {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  min-height: 2rem;
  padding: 0.35rem 0.75rem !important;
  font-size: 0.8125rem !important;
  line-height: 1.25 !important;
  border-radius: 6px !important;
}

.mooc-pathway-card {
  border-radius: 12px;
  box-shadow: var(--tera-shadow-card);
  overflow: hidden;
}
.mooc-pathway-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--tera-text-primary);
  margin-bottom: 0.35rem;
}
.mooc-pathway-steps {
  border-top: 1px solid var(--tera-border);
}
.mooc-pathway-step {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--tera-border-light);
}
.mooc-pathway-step:last-child {
  border-bottom: none;
}
.mooc-pathway-step__num {
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--tera-border-light);
  color: var(--tera-text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mooc-pathway-step__thumb {
  flex: 0 0 4.5rem;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 8px;
  background: #e8eef5 center/cover no-repeat;
}
.mooc-pathway-step__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--tera-text-muted);
  background: linear-gradient(145deg, #e2e8f0, #f1f5f9);
}
.mooc-pathway-step__body {
  flex: 1 1 180px;
  min-width: 0;
}
.mooc-pathway-step__title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--tera-text-primary);
  line-height: 1.35;
}
.mooc-pathway-step__meta {
  font-size: 0.75rem;
  color: var(--tera-text-muted);
  margin-top: 0.15rem;
}
.mooc-pathway-step__action {
  flex: 0 0 auto;
  margin-left: auto;
}
.mooc-pathway-step__action .btn {
  min-width: 4.75rem;
  white-space: nowrap;
}
@media (max-width: 576px) {
  .mooc-pathway-step__action {
    width: 100%;
    margin-left: 0;
    padding-left: calc(1.75rem + 4.5rem + 1rem);
  }
}

/* Shared “MOOC-quality” surfaces — reuse on enrolments, settings strips, etc. */
.mooc-page-shell .mooc-breadcrumb a {
  color: var(--tera-accent);
  text-decoration: none;
}
.mooc-page-shell .mooc-breadcrumb a:hover {
  text-decoration: underline;
}
.tera-surface-card {
  border-radius: 12px;
  box-shadow: var(--tera-shadow-card);
  border: 1px solid var(--tera-border-light);
  background: var(--tera-card-bg);
}
.tera-share-box {
  background: #f8fafc;
  border: 1px solid var(--tera-border);
}
.tera-toolbar-nav .btn-group .btn {
  margin-bottom: 0.25rem;
}
.content-grid .widget-box {
  border-radius: 10px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Modals above fixed chrome (theme .header uses z-index: 10000; BS default is 1050)
   ───────────────────────────────────────────────────────────────────────────── */
.modal {
  z-index: 105100 !important;
}
/* Direct child of body after reparent (see scripts.php) — reinforce above backdrop */
body > .modal.sc-designed-modal {
  z-index: 105100 !important;
}
.modal-backdrop {
  z-index: 105090 !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Subject dashboard — minimal “About” + “Latest general news” + modals
   ───────────────────────────────────────────────────────────────────────────── */
.sc-minimal-widget .sc-preview-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--tera-text-secondary);
  margin-bottom: 0;
}
.sc-minimal-widget .sc-muted {
  color: var(--tera-text-muted);
  font-size: 0.875rem;
}
.sc-widget-open-btn {
  margin-top: 0.75rem;
}
.sc-news-minimal-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sc-news-minimal-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--tera-border-light);
}
.sc-news-minimal-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sc-news-minimal-preview {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--tera-text-primary);
  margin: 0 0 0.25rem;
}
.sc-news-minimal-date {
  font-size: 0.75rem;
  color: var(--tera-text-muted);
  margin: 0 0 0.5rem;
}
.sc-designed-modal .modal-content.sc-modal-sheet {
  border: none;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}
.sc-designed-modal .sc-modal-header {
  border-bottom: 1px solid var(--tera-border-light);
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  padding: 1rem 1.25rem;
}
.sc-designed-modal .sc-modal-header .modal-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tera-text-primary);
  line-height: 1.35;
  padding-right: 0.5rem;
}
.sc-designed-modal .sc-modal-body.sc-modal-body {
  padding: 1.25rem 1.35rem 1.5rem;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--tera-text-primary);
}
/* Readable article text — plain DB copy + admin HTML */
.sc-designed-modal .sc-modal-prose {
  max-width: 65ch;
  margin: 0 auto;
  font-size: 0.9375rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--tera-text-primary);
  word-break: break-word;
  overflow-wrap: anywhere;
}
.sc-designed-modal .sc-modal-prose--plain .sc-modal-prose__p {
  margin: 0 0 1.15em;
}
.sc-designed-modal .sc-modal-prose--plain .sc-modal-prose__p:last-child {
  margin-bottom: 0;
}
.sc-designed-modal .sc-modal-prose--html p {
  margin: 0 0 1em;
}
.sc-designed-modal .sc-modal-prose--html h1,
.sc-designed-modal .sc-modal-prose--html h2,
.sc-designed-modal .sc-modal-prose--html h3,
.sc-designed-modal .sc-modal-prose--html h4 {
  font-weight: 600;
  line-height: 1.3;
  margin: 1.25em 0 0.5em;
  color: var(--tera-text-primary);
}
.sc-designed-modal .sc-modal-prose--html h1:first-child,
.sc-designed-modal .sc-modal-prose--html h2:first-child,
.sc-designed-modal .sc-modal-prose--html h3:first-child {
  margin-top: 0;
}
.sc-designed-modal .sc-modal-prose--html h3 {
  font-size: 1.05rem;
}
.sc-designed-modal .sc-modal-prose--html ul,
.sc-designed-modal .sc-modal-prose--html ol {
  margin: 0 0 1em 1.1rem;
  padding-left: 0.35rem;
}
.sc-designed-modal .sc-modal-prose--html li {
  margin-bottom: 0.4em;
}
.sc-designed-modal .sc-modal-prose--html a {
  color: var(--tera-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sc-designed-modal .sc-modal-prose--html a:hover {
  color: var(--tera-primary-hover);
}
.sc-designed-modal .sc-modal-prose--html strong,
.sc-designed-modal .sc-modal-prose--html b {
  font-weight: 600;
  color: var(--tera-text-primary);
}
.sc-designed-modal .sc-modal-prose--html blockquote {
  margin: 1em 0;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 3px solid var(--tera-border);
  color: var(--tera-text-secondary);
}
.sc-designed-modal .sc-wysiwyg img,
.sc-designed-modal .sc-wysiwyg video {
  max-width: 100%;
  height: auto;
}
.sc-designed-modal .sc-modal-prose--html p:last-child {
  margin-bottom: 0;
}
.sc-designed-modal .sc-wysiwyg p:last-child {
  margin-bottom: 0;
}
.sc-designed-modal .sc-modal-meta {
  font-size: 0.8125rem;
  color: var(--tera-text-muted);
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--tera-border-light);
}
.sc-designed-modal .sc-modal-link-wrap {
  margin: 1rem 0 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Hub pages — HR Enterprise Hub & Enterprise Finance (same rhythm as other admin)
   ───────────────────────────────────────────────────────────────────────────── */
.hr-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.hr-hub-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.hr-hub-metric {
  background: linear-gradient(135deg, rgba(97, 93, 250, 0.08) 0%, rgba(64, 60, 207, 0.04) 100%);
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.hr-hub-metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3e3f5e;
  line-height: 1.2;
  margin: 0 0 4px 0;
}
.hr-hub-metric-label {
  font-size: 0.75rem;
  color: #8f91ac;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1.3;
}

/* Enterprise Finance — card grid only (no one-off “hero”; links match hub cards) */
.enterprise-finance-cards .ef-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
@media (max-width: 1199px) {
  .enterprise-finance-cards .ef-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .enterprise-finance-cards .ef-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .enterprise-finance-cards .ef-grid { grid-template-columns: 1fr; }
}
.enterprise-finance-cards .ef-grid-cell {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.enterprise-finance-cards .stats-decoration.enterprise-finance-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 280px !important;
  height: auto !important;
  max-height: none !important;
  box-sizing: border-box;
  padding: 24px 22px 20px !important;
  text-align: left !important;
  background-color: #fff !important;
  background-image: none !important;
  box-shadow: 0 0 40px 0 rgba(94, 92, 154, 0.06);
  border-radius: 12px;
}
.enterprise-finance-cards .stats-decoration.enterprise-finance-card .stats-decoration-title {
  font-size: 1.05rem !important;
  margin-bottom: 6px;
  line-height: 1.35;
  flex-shrink: 0;
}
.enterprise-finance-cards .stats-decoration.enterprise-finance-card .stats-decoration-links {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  min-height: 0;
}
.enterprise-finance-cards .stats-decoration.enterprise-finance-card .stats-decoration-links::after {
  content: '';
  flex: 1 1 auto;
  min-height: 8px;
}
.enterprise-finance-cards .stats-decoration.enterprise-finance-card .stats-decoration-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
}
.enterprise-finance-cards .stats-decoration.enterprise-finance-card .stats-decoration-links ul li {
  margin-bottom: 4px;
}
.enterprise-finance-cards .stats-decoration.enterprise-finance-card .stats-decoration-links ul li a {
  display: block;
  padding: 5px 0;
  font-size: 0.875rem;
  color: inherit;
  text-decoration: none;
}
.enterprise-finance-cards .stats-decoration.enterprise-finance-card .stats-decoration-links ul li a:hover {
  text-decoration: underline;
}

a.action-list-item.sc-header-id-card-trigger {
  text-decoration: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Page loader — full-viewport frosted glass, smaller mark, readable text
   ───────────────────────────────────────────────────────────────────────────── */
.page-loader {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  /* Light frosted layer + subtle gradient; backdrop blurs the page behind */
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.52) 0%,
    rgba(241, 245, 249, 0.48) 42%,
    rgba(226, 232, 240, 0.55) 100%
  ) !important;
  backdrop-filter: blur(18px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.15) !important;
}

.page-loader .page-loader-decoration {
  width: 52px !important;
  height: 52px !important;
}

.page-loader .page-loader-decoration img {
  max-width: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  display: block;
}

.page-loader .page-loader-info .page-loader-info-title,
.page-loader .page-loader-info .page-loader-info-text {
  color: var(--tera-text-primary) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.page-loader .page-loader-info .page-loader-info-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-weight: 600 !important;
  font-size: 1.125rem !important;
  margin-top: 16px !important;
}

.page-loader .page-loader-info .page-loader-info-text {
  font-weight: 500 !important;
  color: var(--tera-text-secondary) !important;
  text-shadow: none;
}

/* Private messages — server-backed recipient typeahead */
.sc-msg-rec-combo {
  position: relative;
}
.sc-msg-rec-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--tera-border, #e2e8f0);
  border-radius: 8px;
  font: inherit;
  background: var(--tera-card-bg, #fff);
  color: var(--tera-text-primary, #1e293b);
}
.sc-msg-rec-input:focus {
  outline: none;
  box-shadow: var(--tera-focus-ring, 0 0 0 2px rgba(59, 130, 246, 0.25));
}
.sc-msg-rec-list {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin: 4px 0 0;
  padding: 4px 0;
  max-height: 260px;
  overflow-y: auto;
  list-style: none;
  z-index: 50;
  background: var(--tera-card-bg, #fff);
  border: 1px solid var(--tera-border, #e2e8f0);
  border-radius: 8px;
  box-shadow: var(--tera-shadow-card, 0 4px 12px rgba(0, 0, 0, 0.08));
}
.sc-msg-rec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  cursor: pointer;
  border: none;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
}
.sc-msg-rec-item:hover,
.sc-msg-rec-item.sc-msg-rec-active {
  background: var(--tera-sidebar-bg, #f8fafc);
}
.sc-msg-rec-item-group {
  font-size: 0.75rem;
  color: var(--tera-text-muted, #94a3b8);
}
.sc-msg-rec-empty {
  padding: 10px 12px;
  color: var(--tera-text-secondary, #475569);
  font-size: 0.875rem;
}
.sc-msg-rec-selected {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  color: var(--tera-text-secondary, #475569);
}
.sc-msg-rec-error {
  margin-top: 6px;
  color: #b91c1c;
  font-size: 0.875rem;
}

.sc-msg-rec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  min-height: 4px;
}
.sc-msg-rec-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  background: var(--tera-sidebar-bg, #f8fafc);
  border: 1px solid var(--tera-border, #e2e8f0);
  color: var(--tera-text-primary, #1e293b);
}
.sc-msg-rec-chip-label {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sc-msg-rec-chip-remove {
  margin: 0;
  padding: 0 2px;
  border: none;
  background: transparent;
  color: var(--tera-text-muted, #94a3b8);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
}
.sc-msg-rec-chip-remove:hover {
  color: #b91c1c;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Online users sidebar — virtual list (JS: online-users-sidebar.js, ROW_HEIGHT)
   ───────────────────────────────────────────────────────────────────────────── */
.sc-online-messages .sc-ol-root {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sc-online-messages .sc-ol-virtual {
  flex: 1;
  min-height: 0;
}
.sc-online-messages .sc-ol-track {
  box-sizing: border-box;
}
.sc-online-messages .sc-ol-rows .chat-widget-message {
  box-sizing: border-box;
  min-height: 64px;
}
.sc-online-messages .sc-ol-pad-top,
.sc-online-messages .sc-ol-pad-bot {
  flex-shrink: 0;
}
.sc-online-messages .sc-ol-footer {
  flex-shrink: 0;
  padding: 8px 12px 10px;
  border-top: 1px solid var(--tera-border-light, #f1f5f9);
  background: #fff;
}
.sc-online-messages .sc-ol-load-more {
  display: inline-block;
  width: 100%;
  padding: 8px 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--tera-accent, #3b82f6);
  background: var(--tera-sidebar-bg, #f8fafc);
  border: 1px solid var(--tera-border, #e2e8f0);
  border-radius: 8px;
  cursor: pointer;
}
.sc-online-messages .sc-ol-load-more:hover:not(:disabled) {
  background: #f1f5f9;
}
.sc-online-messages .sc-ol-load-more:disabled {
  opacity: 0.65;
  cursor: default;
}
.sc-online-messages .sc-ol-meta {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--tera-text-muted, #94a3b8);
  text-align: center;
}
.sc-online-messages .sc-ol-empty {
  padding: 16px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--tera-text-muted, #94a3b8);
}
