/* Sepo LMS — flat styles. Colours come from the active theme: named theme
   tokens (the SepoDesk theme's --sd-*) when present, then the page colours
   mode.js reads from the theme, then the block theme's presets, then neutral
   values. Light and dark follow the theme. The accent is set in LMS → Settings. */

/* Inter, bundled with the plugin (SIL Open Font License, assets/fonts/OFL.txt). */
@font-face {
  font-family: "Sepo LMS Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Colour tokens, shared by the page and by the parts that float outside it
   (dialogs, menus, the study panel and the proctoring overlays). */
.slms-wrap,
.slms-modal,
.slms-study,
.slms-slash,
.slms-fmt-bar,
.slms-proctor-bar,
.slms-proctor-toast,
.slms-proctor-cover {
  --slms-accent-c: var(--slms-accent, #1d475a);
  --slms-on-accent: var(--slms-on-accent-light, #fff);
  --slms-surface: var(
    --sd-surface,
    var(--slms-page-bg, var(--wp--preset--color--base, #fff))
  );
  --slms-ink: var(
    --sd-heading,
    var(--slms-page-fg, var(--wp--preset--color--contrast, #1f2937))
  );
  --slms-line: var(--sd-border, rgba(128, 128, 128, 0.22));
  --slms-soft: var(--sd-surface-2, rgba(128, 128, 128, 0.07));
  --slms-accent-bg: color-mix(in srgb, var(--slms-accent-c) 10%, transparent);
  --slms-font: var(
    --sd-font,
    "Sepo LMS Inter",
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif
  );
  --slms-mono: var(--sd-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  --slms-muted: 0.68;
  --slms-ok: #1f7a3a;
  --slms-ok-bg: rgba(46, 160, 67, 0.12);
  --slms-bad: var(--sd-danger, #c0352b);
  --slms-bad-bg: rgba(220, 53, 69, 0.1);
  --slms-wait: #8a5a00;
  --slms-wait-bg: rgba(210, 153, 34, 0.14);
  --slms-radius: var(--sd-radius-sm, 10px);
  box-sizing: border-box;
}

/* Dark mode, with any theme. mode.js reads the page's real background and
   sets slms-dark or slms-light on <html>; until it runs, the markers themes
   commonly use for dark mode apply the same colours. --slms-page-bg and
   --slms-page-fg are the theme's own page colours, passed on by mode.js. */
:is(
    html.slms-dark,
    html:not(.slms-light):is(
        [data-theme="dark"],
        [data-bs-theme="dark"],
        [data-color-scheme="dark"],
        [data-mode="dark"],
        [data-color-mode="dark"],
        .dark,
        .dark-mode,
        .theme-dark,
        .is-dark-theme,
        .wp-dark-mode-active
      ),
    html:not(.slms-light)
      > body:is(.dark, .dark-mode, .theme-dark, .is-dark-theme)
  )
  :is(
    .slms-wrap,
    .slms-modal,
    .slms-study,
    .slms-slash,
    .slms-fmt-bar,
    .slms-proctor-bar,
    .slms-proctor-toast,
    .slms-proctor-cover
  ) {
  --slms-surface: var(--slms-page-bg, #14181c);
  --slms-ink: var(--slms-page-fg, #e8ecef);
  --slms-line: rgba(255, 255, 255, 0.13);
  --slms-soft: rgba(255, 255, 255, 0.05);
  --slms-accent-c: var(
    --slms-accent-dark,
    var(--sd-btn-bg, var(--slms-accent-auto-dark, #8fc1d6))
  );
  --slms-on-accent: var(
    --slms-on-accent-dark,
    var(--sd-btn-fg, var(--slms-on-accent-auto-dark, #0b1215))
  );
  --slms-ok: #4cc79a;
  --slms-ok-bg: rgba(76, 199, 154, 0.14);
  --slms-bad: #f28b82;
  --slms-bad-bg: rgba(242, 139, 130, 0.13);
  --slms-wait: #f2b33d;
  --slms-wait-bg: rgba(242, 179, 61, 0.14);
  --slms-muted: 0.74;
  color-scheme: dark;
  /* Body text in the bright text colour: a theme's dark-mode body grey is
     often too dim for long reading at the sizes used here. */
  color: var(--slms-ink);
}

/* Themes with named tokens for their dark palette (the SepoDesk theme's
   --sd-* set) supply their own surfaces and heading colour. */
html[data-theme="dark"]:not(.slms-light):not(.slms-paint)
  :is(
    .slms-wrap,
    .slms-modal,
    .slms-study,
    .slms-slash,
    .slms-fmt-bar,
    .slms-proctor-bar,
    .slms-proctor-toast,
    .slms-proctor-cover
  ) {
  --slms-surface: var(--sd-surface, var(--slms-page-bg, #14181c));
  --slms-ink: var(--sd-heading, var(--slms-page-fg, #e8ecef));
  --slms-line: var(--sd-border, rgba(255, 255, 255, 0.13));
  --slms-soft: var(--sd-surface-2, rgba(255, 255, 255, 0.05));
}

/* A mode set in LMS → Settings that differs from the theme: the LMS paints
   its own background, with its own palettes that do not borrow the theme's. */
html.slms-dark.slms-paint
  :is(
    .slms-wrap,
    .slms-modal,
    .slms-study,
    .slms-slash,
    .slms-fmt-bar,
    .slms-proctor-bar,
    .slms-proctor-toast,
    .slms-proctor-cover
  ) {
  --slms-surface: #14181c;
  --slms-ink: #e8ecef;
  --slms-line: rgba(255, 255, 255, 0.13);
  --slms-soft: rgba(255, 255, 255, 0.05);
  --slms-accent-c: var(
    --slms-accent-dark,
    var(--slms-accent-auto-dark, #8fc1d6)
  );
  --slms-on-accent: var(
    --slms-on-accent-dark,
    var(--slms-on-accent-auto-dark, #0b1215)
  );
}
html.slms-light.slms-paint
  :is(
    .slms-wrap,
    .slms-modal,
    .slms-study,
    .slms-slash,
    .slms-fmt-bar,
    .slms-proctor-bar,
    .slms-proctor-toast,
    .slms-proctor-cover
  ) {
  --slms-surface: #fff;
  --slms-ink: #1f2937;
  --slms-line: rgba(0, 0, 0, 0.13);
  --slms-soft: rgba(0, 0, 0, 0.04);
  --slms-accent-c: var(--slms-accent, #1d475a);
  --slms-on-accent: var(--slms-on-accent-light, #fff);
  --slms-ok: #1f7a3a;
  --slms-ok-bg: rgba(46, 160, 67, 0.12);
  --slms-bad: #c0352b;
  --slms-bad-bg: rgba(220, 53, 69, 0.1);
  --slms-wait: #8a5a00;
  --slms-wait-bg: rgba(210, 153, 34, 0.14);
  color-scheme: light;
}
html.slms-paint .slms-wrap {
  background: var(--slms-surface);
  color: var(--slms-ink);
  border-radius: var(--slms-radius);
}

/* On dark pages, and when the LMS paints its own background, headings use the
   resolved text colour rather than a heading colour meant for a light page. */
:is(html.slms-dark, html.slms-paint)
  :is(.slms-wrap, .slms-modal, .slms-study)
  :is(h1, h2, h3, h4, h5, h6) {
  color: var(--slms-ink);
}

/* When the LMS paints its own background, labels and table headings take the
   LMS text colour rather than colours the theme sets for its own mode. */
html.slms-paint
  :where(.slms-wrap, .slms-modal, .slms-study)
  :where(label, legend, caption, th, dt) {
  color: inherit;
}
html.slms-paint :where(.slms-wrap, .slms-modal, .slms-study) :where(th) {
  background-color: transparent;
}

.slms-wrap {
  box-sizing: border-box;
  font-family: var(--slms-font);
  max-width: var(--slms-width, 1120px);
  margin: 0 auto;
  padding: 24px 16px 48px;
  color: inherit;
  line-height: 1.55;
}
.slms-wrap *,
.slms-modal * {
  box-sizing: border-box;
}
:where(.slms-wrap, .slms-modal, .slms-study, .slms-slash) :where(button) {
  color: inherit;
}
.slms-wrap [hidden],
.slms-modal [hidden] {
  display: none !important;
}
.slms-wrap a {
  color: inherit;
}
.slms-wrap img {
  max-width: 100%;
  height: auto;
}

.slms-h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin: 0.2em 0 0.35em;
}
.slms-h2 {
  font-size: 1.2rem;
  margin: 1.6em 0 0.7em;
}
.slms-h3 {
  font-size: 1.05rem;
  margin: 0 0 0.2em;
}
.slms-muted {
  opacity: var(--slms-muted);
}
.slms-small {
  font-size: 0.85rem;
}
.slms-lead {
  font-size: 1.05rem;
}
.slms-intro {
  opacity: 0.8;
  max-width: 720px;
}
.slms-empty {
  padding: 28px 16px;
  text-align: center;
  border: 1px dashed var(--slms-line);
  border-radius: var(--slms-radius);
  opacity: 0.75;
}
.slms-note {
  padding: 12px 14px;
  border: 1px solid var(--slms-line);
  border-radius: var(--slms-radius);
  background: var(--slms-soft);
  font-size: 0.92rem;
  margin: 10px 0;
}
.slms-error {
  color: var(--slms-bad);
  font-size: 0.9rem;
  min-height: 1.2em;
  margin: 8px 0 0;
}
.slms-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
}
.slms-row--center {
  justify-content: center;
}
.slms-content > :first-child {
  margin-top: 0;
}

/* buttons */
.slms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.6rem 1.05rem;
  border: 1px solid var(--slms-line, rgba(128, 128, 128, 0.3));
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
}
.slms-btn:hover {
  background: rgba(128, 128, 128, 0.08);
}
.slms-btn:focus-visible,
.slms-tab:focus-visible,
.slms-page:focus-visible {
  outline: 2px solid var(--slms-accent-c);
  outline-offset: 2px;
}
.slms-btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.slms-btn--primary {
  background: var(--slms-accent-c);
  border-color: var(--slms-accent-c);
  color: var(--slms-on-accent) !important;
}
.slms-btn--primary:hover {
  background: var(--slms-accent-c);
  filter: brightness(1.12);
}
.slms-btn--danger {
  background: #c0352b;
  border-color: #c0352b;
  color: #fff !important;
}
.slms-btn--done {
  background: var(--slms-ok-bg);
  border-color: transparent;
  color: var(--slms-ok);
}
.slms-btn--block {
  width: 100%;
}
.slms-btn--outline {
  border-color: var(--slms-accent-c);
  color: var(--slms-accent-c);
}
.slms-btn--outline:hover {
  background: var(--slms-accent-c);
  color: var(--slms-on-accent);
}
.slms-btn--sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
}
.slms-icon-btn {
  border: 0;
  background: none;
  color: var(--slms-bad);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  opacity: 0.6;
}
.slms-icon-btn:hover {
  opacity: 1;
  background: var(--slms-bad-bg);
}
.slms-link-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  margin-top: 10px;
}

/* pills, badges */
.slms-pill,
.slms-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.8;
  line-height: 1.5;
  vertical-align: middle;
}
.slms-badge {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.65rem;
  margin-left: 4px;
}
.slms-score {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
}
.slms-score.is-pass {
  background: var(--slms-ok-bg);
  color: var(--slms-ok);
}
.slms-score.is-fail {
  background: var(--slms-bad-bg);
  color: var(--slms-bad);
}
.slms-status {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
}
.slms-status--paid {
  background: var(--slms-ok-bg);
  color: var(--slms-ok);
}
.slms-status--active {
  background: rgba(29, 78, 216, 0.1);
  color: #1d4ed8;
}
.slms-status--pending {
  background: var(--slms-wait-bg);
  color: var(--slms-wait);
}
.slms-grade {
  display: inline-block;
  font-weight: 700;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.85rem;
}
.slms-grade--pass {
  background: var(--slms-ok-bg);
  color: var(--slms-ok);
}
.slms-grade--mid {
  background: var(--slms-wait-bg);
  color: var(--slms-wait);
}
.slms-grade--fail {
  background: var(--slms-bad-bg);
  color: var(--slms-bad);
}
.slms-was {
  opacity: 0.5;
  font-weight: 400;
  margin-right: 4px;
  white-space: nowrap;
}
.slms-off {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: #c0352b;
  border-radius: 4px;
  padding: 0.05rem 0.45rem;
  margin-left: 4px;
}
.slms-tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  background: var(--slms-soft);
  border: 1px solid var(--slms-line);
  font-size: 0.85rem;
}
.slms-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* toolbar */
.slms-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
}
.slms-search {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--slms-line);
  border-radius: 8px;
  padding: 0 10px;
}
.slms-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0.55rem 0;
  outline: none;
  min-width: 0;
}
.slms-search:focus-within {
  border-color: var(--slms-accent-c);
}
.slms-select select,
.slms-input {
  width: 100%;
  border: 1px solid var(--slms-line);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  background-color: var(--slms-surface);
  color: inherit;
  font: inherit;
  box-shadow: none;
}
.slms-select select {
  width: auto;
}
.slms-input:focus,
.slms-select select:focus {
  outline: none;
  border-color: var(--slms-accent-c);
}
.slms-view {
  display: inline-flex;
  border: 1px solid var(--slms-line);
  border-radius: 8px;
  overflow: hidden;
}
.slms-view button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  opacity: 0.6;
  display: flex;
}
.slms-view button.is-on {
  opacity: 1;
  background: var(--slms-soft);
}

/* cards */
.slms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.slms-grid--people {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.slms-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--slms-line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: transparent;
  transition: border-color 0.15s;
  box-shadow: none;
}
.slms-card:hover {
  border-color: var(--slms-accent-c);
}
.slms-card[hidden] {
  display: none;
}
.slms-card-img {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--slms-soft) center / cover no-repeat;
}
.slms-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
  flex: 1;
  align-items: flex-start;
}
.slms-card-title {
  font-weight: 700;
  line-height: 1.3;
}
.slms-card-meta {
  font-size: 0.82rem;
  opacity: var(--slms-muted);
}
.slms-card-text {
  font-size: 0.88rem;
  opacity: 0.8;
}
.slms-card-price {
  margin-top: auto;
  font-weight: 700;
  color: var(--slms-accent-c);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
}
.slms-card-price .slms-off {
  margin-left: 0;
}
.slms-now {
  white-space: nowrap;
}
.slms-card-cover {
  position: relative;
  display: block;
  height: 96px;
  background: var(--slms-soft) center / cover no-repeat;
}
.slms-card-cover.is-empty {
  background: var(--slms-accent-c);
  opacity: 0.85;
}
.slms-card-logo {
  position: absolute;
  left: 12px;
  bottom: -20px;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--slms-surface);
  border: 2px solid var(--slms-surface);
}
.slms-card--school .slms-card-body {
  padding-top: 28px;
}
.slms-card--person {
  align-items: center;
  text-align: center;
  padding-top: 18px;
}
.slms-card--person .slms-card-body {
  align-items: center;
}
.slms-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--slms-soft);
  flex-shrink: 0;
}
.slms-avatar--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

.slms-grid.is-list {
  grid-template-columns: 1fr;
  gap: 10px;
}
.slms-grid.is-list .slms-card {
  flex-direction: row;
  align-items: stretch;
}
.slms-grid.is-list .slms-card-img,
.slms-grid.is-list .slms-card-cover {
  width: 160px;
  aspect-ratio: auto;
  height: auto;
  min-height: 92px;
  flex-shrink: 0;
}
.slms-grid.is-list .slms-card-logo {
  left: auto;
  right: 8px;
  bottom: 8px;
  width: 36px;
  height: 36px;
}
.slms-grid.is-list .slms-card--school .slms-card-body {
  padding-top: 12px;
}
.slms-grid.is-list .slms-card--person {
  flex-direction: row;
  text-align: left;
  padding: 10px 14px;
  gap: 12px;
}
.slms-grid.is-list .slms-card--person .slms-card-body {
  align-items: flex-start;
  padding: 0;
  justify-content: center;
}
.slms-grid.is-list .slms-card--person .slms-avatar {
  width: 48px;
  height: 48px;
}

/* pager */
.slms-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}
.slms-pager:empty {
  display: none;
}
.slms-pager-info {
  font-size: 0.85rem;
  opacity: var(--slms-muted);
}
.slms-pager-btns {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.slms-page {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--slms-line);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.slms-page.is-on {
  background: var(--slms-accent-c);
  border-color: var(--slms-accent-c);
  color: var(--slms-on-accent);
}
.slms-page:disabled {
  opacity: 0.4;
  cursor: default;
}
.slms-page-gap {
  padding: 0 4px;
  align-self: center;
  opacity: 0.6;
}

/* course */
.slms-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.slms-main {
  flex: 1;
  min-width: 0;
}
.slms-side {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
}
.slms-kicker,
.slms-crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  opacity: 0.75;
  text-decoration: none;
}
.slms-kicker:hover,
.slms-crumb:hover {
  opacity: 1;
}
.slms-rating {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.slms-stars {
  color: #b7791f;
  letter-spacing: 1px;
}
.slms-pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin: 6px 0 14px;
}
.slms-price-now {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--slms-accent-c);
}
.slms-tax {
  width: 100%;
  font-size: 0.82rem;
  opacity: var(--slms-muted);
}
.slms-hero {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  background: var(--slms-soft);
  margin: 4px 0 18px;
}

.slms-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  border-bottom: 1px solid var(--slms-line);
  margin: 8px 0 18px;
}
.slms-tab {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  opacity: 0.6;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.slms-tab.is-on {
  opacity: 1;
  color: var(--slms-accent-c);
  border-bottom-color: var(--slms-accent-c);
}
.slms-tab:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}
.slms-count {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.45em;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--slms-soft);
  border: 1px solid var(--slms-line);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
  color: inherit;
}
.slms-tab.is-on .slms-count {
  border-color: currentColor;
}
.slms-mine .slms-tabs {
  margin-top: 4px;
}
.slms-mine .slms-toolbar {
  margin-top: 0;
}

/* quiz results grouped by course */
.slms-groups {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.slms-group {
  border: 1px solid var(--slms-line);
  border-radius: 12px;
  overflow: hidden;
}
.slms-group[hidden] {
  display: none;
}
.slms-group.is-open {
  border-color: var(--slms-accent-c);
}
.slms-group-h {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  line-height: inherit;
}
.slms-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.slms-group-head:hover {
  background: var(--slms-soft);
}
.slms-group-head:focus {
  outline: none;
  box-shadow: none;
}
.slms-group-head:focus-visible {
  outline: 2px solid var(--slms-accent-c);
  outline-offset: -2px;
}
.slms-chev {
  display: inline-flex;
  flex-shrink: 0;
  transition: transform 0.15s;
  opacity: 0.7;
}
.slms-group.is-open .slms-chev {
  transform: rotate(90deg);
}
.slms-group-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-wrap: anywhere;
}
.slms-group-grade {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  text-align: right;
}
.slms-group-body {
  border-top: 1px solid var(--slms-line);
}
.slms-table--inner,
.slms-table--inner thead,
.slms-table--inner tbody,
.slms-table--inner tr {
  border: 0;
}
.slms-table--inner th,
.slms-table--inner td {
  padding: 9px 14px;
  border-left: 0;
  border-right: 0;
}
.slms-table--inner thead th {
  border-top: 0;
  border-bottom: 1px solid var(--slms-line);
}
.slms-table--inner thead th {
  background: transparent;
}
.slms-table--inner td .slms-btn {
  margin-left: 8px;
}
.slms-group-foot {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--slms-line);
  font-size: 0.9rem;
}
.slms-group-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 0.88rem;
}
.slms-link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--slms-accent-c);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
@media (prefers-reduced-motion: reduce) {
  .slms-chev {
    transition: none;
  }
}

.slms-outline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.slms-ol-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--slms-line);
}
.slms-ol-n {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--slms-soft);
  border: 1px solid var(--slms-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}
.slms-ol-item.is-done .slms-ol-n {
  background: var(--slms-ok-bg);
  border-color: transparent;
  color: var(--slms-ok);
}
.slms-ol-main {
  flex: 1;
  min-width: 0;
}
.slms-ol-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.slms-ol-link {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
a.slms-ol-link strong,
button.slms-ol-link strong {
  color: var(--slms-accent-c);
}
a.slms-ol-link:hover strong,
button.slms-ol-link:hover strong {
  text-decoration: underline;
}
.slms-ol-item.is-locked .slms-ol-link {
  opacity: 0.55;
  cursor: default;
}
.slms-ol-item.is-done .slms-ol-row strong {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.slms-ol-note {
  font-size: 0.86rem;
  opacity: var(--slms-muted);
  margin-top: 2px;
}
.slms-lock {
  display: inline-flex;
  opacity: 0.8;
}
.slms-ck {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--slms-ok);
  cursor: pointer;
}
.slms-checks {
  list-style: none;
  margin: 0;
  padding: 0;
}
.slms-checks li {
  display: flex;
  gap: 10px;
  padding: 6px 0;
}
.slms-checks .slms-i {
  color: var(--slms-ok);
  flex-shrink: 0;
  margin-top: 3px;
}
.slms-person {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.slms-reviews {
  list-style: none;
  margin: 0;
  padding: 0;
}
.slms-review {
  padding: 14px 0;
  border-bottom: 1px solid var(--slms-line);
}
.slms-review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.slms-review-head strong {
  margin-right: 6px;
}
.slms-review-body {
  margin: 4px 0;
}
.slms-review-form {
  margin-top: 18px;
  border: 1px solid var(--slms-line);
  border-radius: var(--slms-radius);
  padding: 14px;
}
.slms-review-form textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--slms-line);
  border-radius: 8px;
  padding: 0.6rem;
  background: transparent;
  color: inherit;
  font: inherit;
  resize: vertical;
}
.slms-review-form .slms-row {
  justify-content: space-between;
}
.slms-rate {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 2px;
  border: 0;
  padding: 0;
  margin: 6px 0 0 8px;
  vertical-align: middle;
  font-size: 1.4rem;
}
.slms-rate input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.slms-rate label {
  cursor: pointer;
  color: rgba(128, 128, 128, 0.4);
  line-height: 1;
}
.slms-rate input:checked ~ label,
.slms-rate label:hover,
.slms-rate label:hover ~ label {
  color: #b7791f;
}
.slms-rate input:focus-visible + label {
  outline: 2px solid var(--slms-accent-c);
}

.slms-box {
  border: 1px solid var(--slms-line);
  border-radius: 14px;
  padding: 18px;
}
.slms-box-price {
  font-size: 1.6rem;
  font-weight: 800;
}
.slms-box-price .slms-was {
  display: block;
  font-size: 0.95rem;
  margin-top: 2px;
}
.slms-facts {
  list-style: none;
  margin: 14px 0;
  padding: 0;
  font-size: 0.92rem;
}
.slms-facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--slms-line);
}
.slms-facts li > span:first-child {
  opacity: var(--slms-muted);
}
.slms-progress {
  margin: 14px 0;
}
.slms-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 6px;
}
.slms-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--slms-soft);
  border: 1px solid var(--slms-line);
  overflow: hidden;
}
.slms-bar span {
  display: block;
  height: 100%;
  background: var(--slms-ok);
  transition: width 0.25s;
}
.slms-bar--sm {
  height: 6px;
  width: 120px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}
.slms-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  margin-top: 4px;
}
.slms-state--ok {
  background: var(--slms-ok-bg);
  color: var(--slms-ok);
}
.slms-state--wait {
  background: var(--slms-wait-bg);
  color: var(--slms-wait);
  margin-bottom: 8px;
}
.slms-related {
  margin-top: 40px;
}

.slms-banner {
  padding: 12px 16px;
  border-radius: var(--slms-radius);
  margin-bottom: 18px;
  font-weight: 600;
  border: 1px solid transparent;
}
.slms-banner--ok {
  background: var(--slms-ok-bg);
  color: var(--slms-ok);
}
.slms-banner--wait {
  background: var(--slms-wait-bg);
  color: var(--slms-wait);
}
.slms-banner--warn {
  background: var(--slms-bad-bg);
  color: var(--slms-bad);
}

/* lesson */
.slms-lesson {
  max-width: 820px;
  --slms-display:
    "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Times New Roman", serif;
}
.slms-wrap .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Lesson heading: a large number in the margin, a large serif title, then
   the teacher and the course on a ruled line. */
.slms-lhead {
  position: relative;
  margin: 8px 0 36px;
}
.slms-lhead__mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--slms-display);
}
.slms-lhead__num {
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 400;
  color: color-mix(in srgb, var(--slms-ink) 28%, transparent);
  font-variant-numeric: lining-nums;
}
.slms-lhead__rule {
  width: 32px;
  height: 1px;
  background: color-mix(in srgb, var(--slms-ink) 35%, transparent);
}
.slms-lhead__kicker {
  font: 600 0.74rem/1.2 var(--slms-font);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slms-accent-c);
}
.slms-wrap .slms-lhead__title {
  margin: 0;
  padding: 0 0 0.5em;
  border: 0;
  font-family: var(--slms-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(2.1rem, 5.6vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: 0;
  word-spacing: normal;
  text-transform: none;
  color: var(--slms-ink);
  overflow-wrap: break-word;
  hyphens: manual;
}
.slms-lhead__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  border-top: 1px solid var(--slms-line);
}
.slms-lhead__meta > * {
  padding: 18px 0;
}
.slms-lhead__by {
  padding-right: 24px;
  font-family: var(--slms-display);
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--slms-accent-c);
}
.slms-lhead__tags {
  padding-left: 24px;
  border-left: 1px solid var(--slms-line);
  font: 500 0.74rem/1.9 var(--slms-font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 2px;
}
.slms-lhead__tags a {
  color: inherit;
  text-decoration: none;
}
.slms-lhead__tags a:hover {
  color: var(--slms-accent-c);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.slms-lhead__meta > :only-child {
  grid-column: 1 / -1;
  padding-left: 0;
  border-left: 0;
}
@media (min-width: 1180px) {
  .slms-lhead__mark {
    position: absolute;
    top: 0.3em;
    right: calc(100% + 44px);
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin: 0;
  }
  .slms-lhead__num {
    font-size: 5.6rem;
    line-height: 0.85;
  }
  .slms-lhead__rule {
    width: 52px;
  }
}
@media (max-width: 600px) {
  .slms-lhead__meta {
    grid-template-columns: 1fr;
  }
  .slms-lhead__meta > * {
    padding: 12px 0;
  }
  .slms-lhead__tags {
    padding: 0 0 12px;
    border-left: 0;
  }
}
/* A drop cap on the lesson's first paragraph. The paragraph holds the
   letter's height, so a short first paragraph does not push what follows. */
.slms-lesson .slms-content > p:first-child,
.slms-lesson .slms-cardpage[data-card="1"] > p:first-child {
  display: flow-root;
}
.slms-lesson .slms-content > p:first-child::first-letter,
.slms-lesson .slms-cardpage[data-card="1"] > p:first-child::first-letter {
  float: left;
  margin: 0.06em 0.1em 0 0;
  padding: 0;
  font-family: var(--slms-display);
  font-size: 4.1em;
  line-height: 0.82;
  font-weight: 400;
  color: var(--slms-accent-c);
}
.slms-complete {
  margin-top: 32px;
}
.slms-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--slms-line);
}
.slms-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--slms-line);
  border-radius: 8px;
  text-decoration: none;
  max-width: 48%;
}
.slms-nav-btn:hover {
  border-color: var(--slms-accent-c);
}
.slms-nav-btn.is-locked {
  opacity: 0.5;
}
.slms-locked {
  text-align: center;
  max-width: 560px;
  margin: 24px auto;
  padding: 40px 20px;
  border: 1px dashed var(--slms-line);
  border-radius: 14px;
}
.slms-locked-icon {
  opacity: 0.6;
  margin-bottom: 6px;
}

/* quiz */
.slms-quiz {
  max-width: 820px;
}
.slms-quiz-head {
  padding: 18px 20px;
  border: 1px solid var(--slms-line);
  border-radius: 12px;
  background: var(--slms-soft);
  margin: 8px 0 20px;
}
.slms-quiz-head .slms-h1 {
  margin-top: 0;
}
.slms-quiz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.88rem;
  opacity: 0.75;
}
.slms-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--slms-line);
  border-radius: 8px;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.slms-timer.is-low {
  color: var(--slms-bad);
  border-color: currentColor;
}
.slms-q {
  border: 1px solid var(--slms-line);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 16px;
  min-width: 0;
}
.slms-q.is-missing {
  border-color: var(--slms-bad);
}
.slms-q.is-correct {
  border-color: var(--slms-ok);
  border-width: 2px;
}
.slms-q.is-wrong {
  border-color: var(--slms-bad);
  border-width: 2px;
}
.slms-q-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 8px;
  font-size: 0.82rem;
  padding: 0;
  margin-bottom: 6px;
  float: left;
}
.slms-q-head + * {
  clear: both;
}
.slms-q-n {
  font-weight: 700;
  opacity: 0.55;
}
.slms-q-text {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 10px;
  clear: both;
}
.slms-q-img {
  display: block;
  max-height: 260px;
  border-radius: 8px;
  margin: 6px 0 10px;
  clear: both;
}
.slms-req {
  color: var(--slms-bad);
}
.slms-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.slms-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--slms-line);
  border-radius: 8px;
  cursor: pointer;
}
.slms-option:hover {
  background: var(--slms-soft);
}
.slms-option:has(input:checked) {
  border-color: var(--slms-accent-c);
  background: var(--slms-soft);
}
.slms-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--slms-accent-c);
  flex-shrink: 0;
}
.slms-field {
  display: block;
  margin: 0 0 12px;
  font-size: 0.9rem;
}
.slms-field > span:first-child {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}
.slms-quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.slms-quiz-nav [data-slms-page-info] {
  flex: 1;
  text-align: center;
}
.slms-results {
  margin-top: 24px;
}
.slms-result-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 22px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.slms-result-score strong {
  font-size: 2.6rem;
  line-height: 1;
}
.slms-result-score.is-pass {
  background: var(--slms-ok-bg);
  color: var(--slms-ok);
}
.slms-result-score.is-fail {
  background: var(--slms-bad-bg);
  color: var(--slms-bad);
}
.slms-taken {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 18px;
}
.slms-taken.is-pass {
  background: var(--slms-ok-bg);
}
.slms-taken.is-fail {
  background: var(--slms-bad-bg);
}
.slms-taken-score {
  font-size: 2rem;
  font-weight: 800;
}
.slms-taken.is-pass .slms-taken-score {
  color: var(--slms-ok);
}
.slms-taken.is-fail .slms-taken-score {
  color: var(--slms-bad);
}
.slms-review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.slms-rq {
  border: 1px solid var(--slms-line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.92rem;
}
.slms-rq.is-correct {
  background: var(--slms-ok-bg);
  border-color: transparent;
}
.slms-rq.is-wrong {
  background: var(--slms-bad-bg);
  border-color: transparent;
}
.slms-rq.is-open {
  background: var(--slms-soft);
}
.slms-rq-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 4px;
}
.slms-rq-exp {
  margin-top: 6px;
  padding: 6px 10px;
  background: var(--slms-soft);
  border-radius: 6px;
  font-style: italic;
}

/* stats strip */
.slms-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.slms-stats > div {
  text-align: center;
  padding: 12px 8px;
  border: 1px solid var(--slms-line);
  border-radius: 10px;
}
.slms-stats strong {
  display: block;
  font-size: 1.35rem;
  color: var(--slms-accent-c);
}
.slms-stats span {
  font-size: 0.78rem;
  opacity: var(--slms-muted);
}

/* profiles */
.slms-profile {
  border: 1px solid var(--slms-line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}
.slms-profile-cover {
  height: 170px;
  background: var(--slms-soft) center / cover no-repeat;
}
.slms-profile-cover.is-empty {
  background: var(--slms-accent-c);
}
.slms-profile-id {
  display: flex;
  gap: 20px;
  padding: 0 22px 20px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.slms-profile-id.no-cover {
  padding-top: 22px;
  align-items: center;
}
.slms-profile-logo,
.slms-profile-avatar {
  width: 104px;
  height: 104px;
  object-fit: cover;
  margin-top: -44px;
  border: 4px solid var(--slms-surface);
  background: var(--slms-surface);
  flex-shrink: 0;
}
.slms-profile-logo {
  border-radius: 16px;
}
.slms-profile-avatar {
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.slms-profile-id.no-cover .slms-profile-avatar {
  margin-top: 0;
  border-color: var(--slms-line);
}
.slms-profile-meta {
  flex: 1;
  min-width: 220px;
  padding-top: 12px;
}
.slms-profile-meta .slms-h1 {
  margin: 0 0 4px;
}
.slms-kv {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.88rem;
  margin: 4px 0;
}
.slms-kv code {
  background: var(--slms-soft);
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
}
.slms-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.slms-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--slms-line);
  border-radius: 999px;
  font-size: 0.84rem;
  text-decoration: none;
}
a.slms-chip:hover {
  border-color: var(--slms-accent-c);
}
.slms-section {
  margin: 28px 0;
}

/* my courses */
.slms-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--slms-line);
  border-radius: 12px;
}
.slms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0;
}
.slms-table th,
.slms-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--slms-line);
  vertical-align: middle;
}
.slms-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
  background: var(--slms-soft);
}
.slms-table tbody tr:last-child td {
  border-bottom: 0;
}
.slms-table tr[hidden] {
  display: none;
}
.slms-actions {
  white-space: nowrap;
  text-align: right !important;
}
.slms-actions .slms-btn + .slms-btn {
  margin-left: 6px;
}
.slms-table-wrap .slms-empty {
  border: 0;
}

/* modal */
.slms-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.55);
}
.slms-modal-open {
  overflow: hidden;
}
.slms-modal-card {
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow: auto;
  padding: 22px;
  background: var(--slms-surface);
  color: var(--slms-ink);
  border: 1px solid var(--slms-line);
  border-radius: 14px;
  box-shadow: none;
  outline: none;
  font: 15px/1.5 var(--slms-font);
}
.slms-modal-card--wide {
  max-width: 680px;
}
.slms-modal-title {
  margin: 0 0 12px;
  font-size: 1.2rem;
}
.slms-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.slms-modal-head .slms-modal-title {
  margin: 0;
}
.slms-modal-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.85rem;
  opacity: 0.8;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(128, 128, 128, 0.25);
}
.slms-modal-total {
  font-size: 1.3rem;
  font-weight: 800;
  margin: -4px 0 14px;
  color: var(--slms-accent-c);
}
.slms-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.slms-modal .slms-field {
  display: block;
  margin: 0 0 12px;
  font-size: 0.9rem;
}
.slms-modal .slms-field > span {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}
.slms-modal .slms-input {
  width: 100%;
  border: 1px solid var(--slms-line);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  background: var(--slms-surface);
  color: inherit;
  font: inherit;
  box-shadow: none;
}
.slms-modal .slms-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1.05rem;
  border: 1px solid var(--slms-line);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.slms-modal .slms-btn--primary {
  background: var(--slms-accent-c);
  border-color: var(--slms-accent-c);
  color: var(--slms-on-accent);
}
.slms-modal .slms-btn--danger {
  background: #c0352b;
  border-color: #c0352b;
  color: #fff;
}
.slms-modal .slms-error {
  color: var(--slms-bad);
  font-size: 0.88rem;
  min-height: 1.2em;
  margin: 4px 0 0;
}
.slms-modal .slms-note {
  padding: 12px;
  border: 1px solid rgba(128, 128, 128, 0.25);
  border-radius: 10px;
  background: rgba(128, 128, 128, 0.07);
}
.slms-modal .slms-rq {
  border: 1px solid var(--slms-line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.92rem;
}
.slms-modal .slms-rq.is-correct {
  background: var(--slms-ok-bg);
  border-color: transparent;
}
.slms-modal .slms-rq.is-wrong {
  background: var(--slms-bad-bg);
  border-color: transparent;
}
.slms-modal .slms-review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.slms-modal .slms-rq-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.slms-modal .slms-rq-exp {
  margin-top: 6px;
  padding: 6px 10px;
  background: rgba(128, 128, 128, 0.07);
  border-radius: 6px;
  font-style: italic;
}
.slms-modal .slms-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.8;
  white-space: nowrap;
}
.slms-modal .slms-score {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}
.slms-modal .slms-score.is-pass {
  background: rgba(46, 160, 67, 0.12);
  color: #1f7a3a;
}
.slms-modal .slms-score.is-fail {
  background: rgba(220, 53, 69, 0.1);
  color: #c0352b;
}
.slms-modal .slms-muted {
  opacity: 0.68;
}
.slms-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(128, 128, 128, 0.25);
  border-top-color: var(--slms-accent-c);
  border-radius: 50%;
  animation: slms-spin 1s linear infinite;
  margin: 10px auto;
}
@keyframes slms-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .slms-spinner {
    animation-duration: 3s;
  }
  .slms-bar span {
    transition: none;
  }
}

@media (max-width: 900px) {
  .slms-layout {
    flex-direction: column;
  }
  .slms-side {
    width: 100%;
    position: static;
  }
}
@media (max-width: 640px) {
  .slms-grid.is-list .slms-card-img,
  .slms-grid.is-list .slms-card-cover {
    width: 110px;
  }
  .slms-profile-id {
    padding: 0 16px 16px;
  }
  .slms-table thead {
    display: none;
  }
  .slms-table,
  .slms-table tbody,
  .slms-table tr,
  .slms-table td {
    display: block;
    width: 100%;
  }
  .slms-table tr {
    border-bottom: 1px solid var(--slms-line);
    padding: 8px 0;
  }
  .slms-table td {
    border: 0;
    padding: 4px 12px;
  }
  .slms-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    opacity: 0.6;
  }
  .slms-actions {
    text-align: left !important;
  }
  .slms-nav {
    flex-direction: column;
  }
  .slms-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .slms-stats > div {
    padding: 8px 4px;
  }
  .slms-stats strong {
    font-size: 1.1rem;
  }
  .slms-stats span {
    font-size: 0.7rem;
  }
  .slms-toolbar .slms-search {
    flex-basis: 100%;
  }
  .slms-toolbar .slms-select {
    flex: 1 1 45%;
  }
  .slms-toolbar .slms-select select {
    width: 100%;
  }
  .slms-tab {
    padding: 0.55rem 0.7rem;
  }
  .slms-group-head {
    padding: 10px 12px;
    gap: 8px;
  }
  .slms-group-tools {
    margin-left: 0;
  }
  .slms-table--inner tr {
    padding: 6px 0;
  }
  .slms-table--inner td {
    padding: 3px 12px;
  }
  .slms-nav-btn {
    max-width: 100%;
  }
}

/* ===================================================================== classroom
   Assignments, proctoring, forums, chat, attendance, certificates and the study
   tools. Floating parts (menus, toasts, the study panel) sit outside .slms-wrap,
   so they carry their own colour tokens. */

.slms-study *,
.slms-slash *,
.slms-fmt-bar * {
  box-sizing: border-box;
}
.slms-bad {
  color: var(--slms-bad);
}
.slms-row--start {
  justify-content: flex-start;
}
.slms-note--bad {
  border-color: var(--slms-bad);
  background: var(--slms-bad-bg);
  color: var(--slms-bad);
}
.slms-note--ok {
  border-color: var(--slms-ok);
  background: var(--slms-ok-bg);
  color: var(--slms-ok);
}
.slms-pill--warn {
  border-color: var(--slms-wait, #8a5a00);
  color: var(--slms-wait, #8a5a00);
  background: var(--slms-wait-bg, rgba(210, 153, 34, 0.14));
}
.slms-badge--task {
  border-color: var(--slms-accent-c);
  color: var(--slms-accent-c);
}
.slms-badge--staff {
  border-color: var(--slms-ok);
  color: var(--slms-ok);
}
.slms-status--failed {
  background: var(--slms-bad-bg);
  color: var(--slms-bad);
}
.slms-count--alert {
  background: var(--slms-bad);
  border-color: var(--slms-bad);
  color: var(--slms-surface);
}
.slms-chip {
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.slms-chip.is-on {
  border-color: var(--slms-accent-c);
  background: var(--slms-accent-c);
  color: var(--slms-on-accent);
}
.slms-chips--sm {
  margin: 0;
  gap: 6px;
}
.slms-chips--sm .slms-chip {
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
}
.slms-search--full {
  flex: none;
  width: 100%;
  margin: 10px 0 14px;
}
.slms-tabs--compact {
  margin: 0;
  border-bottom: 0;
}
.slms-tabs--compact .slms-tab {
  padding: 0.45rem 0.7rem;
}
.slms-check-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0;
  cursor: pointer;
}
.slms-check-row input {
  margin-top: 0.3em;
  flex-shrink: 0;
}
.slms-card-box {
  border: 1px solid var(--slms-line);
  border-radius: var(--slms-radius);
  padding: 16px 18px;
  margin: 18px 0;
}
.slms-card-box > :last-child {
  margin-bottom: 0;
}
.slms-crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  text-decoration: none;
  opacity: 0.75;
}
.slms-crumb:hover {
  opacity: 1;
}

/* assignments */
.slms-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 14px;
  font-size: 0.9rem;
}
.slms-due {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}
.slms-due.is-soon {
  color: var(--slms-wait);
}
.slms-due.is-over {
  color: var(--slms-bad);
}
.slms-sub-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.slms-sub-grade {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
.slms-sub-grade .slms-score {
  font-size: 1.1rem;
  padding: 0.15rem 0.7rem;
}
.slms-feedback {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--slms-accent-bg);
  border-radius: 8px;
}
.slms-feedback p {
  margin: 0.4em 0 0;
}
.slms-answer {
  margin-top: 10px;
}
.slms-answer summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}
.slms-handin,
.slms-desk-handin {
  border: 1px solid var(--slms-line);
  border-radius: var(--slms-radius);
  padding: 18px;
  margin: 18px 0;
}
.slms-handin textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
}
.slms-handin .slms-field > span:last-child {
  display: block;
  margin-top: 4px;
  font-weight: 400;
}
.slms-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 26px 16px;
  text-align: center;
  border: 2px dashed var(--slms-line);
  border-radius: var(--slms-radius);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.slms-drop:hover,
.slms-drop:focus-visible,
.slms-drop.is-over {
  border-color: var(--slms-accent-c);
  background: var(--slms-soft);
  outline: none;
}
.slms-drop.is-full {
  opacity: 0.5;
  pointer-events: none;
}
.slms-filelist {
  list-style: none;
  margin: 10px 0;
  padding: 0;
}
.slms-filelist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--slms-line);
  border-radius: 8px;
  margin-bottom: 6px;
}
.slms-filelist li > a:not(.slms-btn),
.slms-file-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slms-confirm {
  border: 1px solid var(--slms-line);
  border-radius: var(--slms-radius);
  padding: 10px 14px;
  margin: 14px 0;
}
.slms-confirm legend {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0 4px;
}
.slms-upload-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--slms-soft);
  overflow: hidden;
  margin-top: 12px;
}
.slms-upload-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--slms-accent-c);
  transition: width 0.2s;
}

/* proctoring */
.slms-proctor-gate {
  background: var(--slms-wait-bg);
  border-radius: var(--slms-radius);
  padding: 18px;
  margin: 0 0 18px;
}
.slms-proctor-rules {
  margin: 10px 0 14px;
  padding-left: 1.2em;
}
.slms-proctor-rules li {
  margin: 4px 0;
}
.slms-proctor-locked > :not(.slms-proctor-gate):not(.slms-proctor-cover) {
  display: none !important;
}
.slms-proctor-cover {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.82);
}
.slms-proctor-cover-card {
  max-width: 440px;
  width: 100%;
  padding: 24px;
  text-align: center;
  border-radius: 14px;
  background: var(--slms-surface);
  color: var(--slms-ink);
  border: 1px solid var(--slms-line);
}
.slms-proctor-cover-card .slms-btn {
  margin-top: 8px;
}
.slms-proctor-bar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font: 600 13px/1.3 var(--slms-font);
}
.slms-proctor-bar.is-warn .slms-proctor-leaves {
  color: #fca5a5;
}
.slms-proctor-bar.is-done .slms-rec-dot {
  background: #4ade80;
  animation: none;
}
.slms-proctor-leaves {
  opacity: 0.85;
  font-weight: 400;
}
.slms-rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  animation: slms-blink 1.4s ease-in-out infinite;
}
@keyframes slms-blink {
  50% {
    opacity: 0.3;
  }
}
.slms-proctor-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100002;
  max-width: min(520px, calc(100vw - 32px));
  padding: 10px 16px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font: 14px/1.45 var(--slms-font);
}
.slms-proctor-toast.is-bad {
  background: var(--slms-bad);
}

/* forums */
.slms-forum > .slms-chips {
  margin: 0 0 14px;
}
.slms-forum-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 6px;
}
.slms-forum-head .slms-h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.slms-topics {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--slms-line);
  border-radius: var(--slms-radius);
}
.slms-topic {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--slms-line);
}
.slms-topic:last-child {
  border-bottom: 0;
}
.slms-topic.is-pinned {
  background: var(--slms-soft);
}
.slms-topic-link {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.slms-topic-link:hover .slms-topic-title {
  color: var(--slms-accent-c);
}
.slms-topic-title {
  font-weight: 600;
}
.slms-topic-excerpt {
  font-size: 0.88rem;
  opacity: 0.8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slms-topic-meta {
  font-size: 0.78rem;
  opacity: var(--slms-muted);
}
.slms-topic-count {
  margin-right: 14px;
  min-width: 2em;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--slms-line);
  border-radius: 999px;
}
.slms-post {
  border: 1px solid var(--slms-line);
  border-radius: var(--slms-radius);
  padding: 14px 16px;
  margin: 0 0 10px;
}
.slms-post--topic {
  background: var(--slms-accent-bg);
  border-color: transparent;
}
.slms-post--topic .slms-h2 {
  margin: 0 0 8px;
}
.slms-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.slms-post-body {
  overflow-wrap: anywhere;
}
.slms-post-body > :first-child {
  margin-top: 0;
}
.slms-post-body > :last-child {
  margin-bottom: 0;
}
.slms-post-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.85rem;
}
.slms-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.slms-author img {
  border-radius: 50%;
}
.slms-author .slms-badge {
  margin-left: 0;
}
.slms-avatar-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--slms-soft);
  border: 1px solid var(--slms-line);
}
.slms-replies-h {
  margin: 18px 0 10px;
}
.slms-reply-form {
  margin-top: 14px;
}
.slms-reply-form textarea {
  width: 100%;
  resize: vertical;
}
.slms-pin {
  font-size: 0.85em;
}

/* chat */
.slms-chat {
  display: grid;
  grid-template-columns: 220px 1fr;
  border: 1px solid var(--slms-line);
  border-radius: var(--slms-radius);
  min-height: 460px;
  overflow: hidden;
}
.slms-chat-rooms {
  border-right: 1px solid var(--slms-line);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.slms-room-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.slms-room {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}
.slms-room:hover {
  background: var(--slms-soft);
}
.slms-room.is-on {
  background: var(--slms-accent-c);
  color: var(--slms-on-accent);
}
.slms-room.is-on .slms-badge {
  color: var(--slms-on-accent);
  border-color: var(--slms-on-accent);
}
.slms-chat-new {
  margin: auto 0 0;
}
.slms-chat-new select {
  width: 100%;
}
.slms-chat-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.slms-chat-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--slms-line);
}
.slms-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  max-height: 420px;
}
.slms-chat-log ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.slms-chat-more {
  display: block;
  margin: 0 auto 10px;
  font-size: 0.85rem;
}
.slms-msg {
  max-width: 78%;
  margin: 0 0 10px;
}
.slms-msg.is-mine {
  margin-left: auto;
}
.slms-msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  opacity: 0.75;
  margin-bottom: 2px;
}
.slms-msg.is-mine .slms-msg-meta {
  justify-content: flex-end;
}
.slms-msg-meta .slms-badge {
  margin-left: 0;
}
.slms-msg-body {
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--slms-soft);
  border: 1px solid var(--slms-line);
  overflow-wrap: anywhere;
}
.slms-msg-body p {
  margin: 0;
}
.slms-msg.is-mine .slms-msg-body {
  background: var(--slms-accent-c);
  border-color: var(--slms-accent-c);
  color: var(--slms-on-accent);
}
.slms-msg.is-mine .slms-msg-body a {
  color: var(--slms-on-accent);
}
.slms-msg.is-deleted .slms-msg-body {
  background: none;
  color: inherit;
  font-style: italic;
  opacity: 0.6;
}
.slms-msg-del {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 0 2px;
  opacity: 0.6;
}
.slms-msg-del:hover {
  opacity: 1;
  color: var(--slms-bad);
}
.slms-chat-compose {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--slms-line);
}
.slms-chat-compose textarea {
  flex: 1;
  resize: none;
  min-height: 42px;
}
.slms-chat-main > .slms-error {
  padding: 0 14px 8px;
  margin: 0;
  min-height: 0;
}

/* attendance */
.slms-sessions {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--slms-line);
  border-radius: var(--slms-radius);
}
.slms-session {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-bottom: 1px solid var(--slms-line);
}
.slms-session:last-child {
  border-bottom: 0;
}
.slms-session.is-open {
  background: var(--slms-ok-bg);
}
.slms-checkin {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.slms-checkin .slms-error {
  margin: 0;
  min-height: 0;
  flex-basis: 100%;
  text-align: right;
}
.slms-input--code {
  width: 9em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--slms-mono);
}
.slms-att {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
}
.slms-att--present {
  background: var(--slms-ok-bg);
  color: var(--slms-ok);
}
.slms-att--late {
  background: var(--slms-wait-bg);
  color: var(--slms-wait);
}
.slms-att--absent {
  background: var(--slms-bad-bg);
  color: var(--slms-bad);
}
.slms-att--excused {
  background: var(--slms-soft);
}

/* certificates */
.slms-cert {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--slms-line);
}
.slms-cert-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.slms-cert-todo {
  margin: 6px 0;
  padding-left: 1.2em;
  font-size: 0.85rem;
  opacity: 0.85;
}
.slms-cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.slms-cert-card {
  border: 1px solid var(--slms-line);
  border-radius: var(--slms-radius);
  padding: 16px;
}
.slms-cert-card.is-earned {
  background: var(--slms-ok-bg);
  border-color: transparent;
}
.slms-cert-card .slms-bar {
  margin: 10px 0;
}

/* study drawer */
.slms-study-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--slms-accent-c);
  border-radius: 999px;
  background: var(--slms-accent-c);
  color: var(--slms-on-accent);
  font: 600 14px/1.2 var(--slms-font);
  cursor: pointer;
}
.slms-study-fab:hover {
  filter: brightness(1.12);
}
.slms-study-fab:focus-visible {
  outline: 2px solid var(--slms-accent-c);
  outline-offset: 3px;
}
.slms-study.is-open .slms-study-fab {
  display: none;
}
.slms-study-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 9991;
  width: min(420px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--slms-surface);
  color: var(--slms-ink);
  border-left: 1px solid var(--slms-line);
  font: 15px/1.5 var(--slms-font);
}
.slms-study-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--slms-line);
}
.slms-study-close {
  color: inherit;
  font-size: 1rem;
}
.slms-study-close:hover {
  background: var(--slms-soft);
}
.slms-study-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 24px;
}
.slms-study .slms-input {
  border: 1px solid var(--slms-line);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  background: transparent;
  color: inherit;
  font: inherit;
}
.slms-study .slms-input:focus {
  outline: none;
  border-color: var(--slms-accent-c);
}
.slms-study .slms-btn {
  color: inherit;
}
.slms-study .slms-btn--primary {
  color: var(--slms-on-accent);
}

/* checklist */
.slms-todo-add {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.slms-todo-add [data-text] {
  flex: 1 1 180px;
  min-width: 0;
}
.slms-input--date {
  width: 9.5em;
}
.slms-todo-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 12px 0 8px;
}
.slms-todos {
  list-style: none;
  margin: 0;
  padding: 0;
}
.slms-todo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 4px;
  border-bottom: 1px solid var(--slms-line);
}
.slms-todo:last-child {
  border-bottom: 0;
}
.slms-todo.is-done .slms-todo-text {
  text-decoration: line-through;
  opacity: 0.55;
}
.slms-todo input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--slms-accent-c);
}
.slms-todo-handle {
  cursor: grab;
  opacity: 0.3;
  font-size: 0.8rem;
  letter-spacing: -2px;
  user-select: none;
}
.slms-todo:hover .slms-todo-handle {
  opacity: 0.7;
}
.slms-todo-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  cursor: text;
  border-radius: 4px;
  padding: 1px 3px;
}
.slms-todo-text[contenteditable="true"] {
  outline: 1px solid var(--slms-accent-c);
}
.slms-todo-due {
  font-size: 0.75rem;
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--slms-line);
  border-radius: 999px;
  white-space: nowrap;
}
.slms-todo-due.is-over {
  border-color: var(--slms-bad);
  color: var(--slms-bad);
}
.slms-todo .slms-icon-btn {
  opacity: 0;
}
.slms-todo:hover .slms-icon-btn,
.slms-todo .slms-icon-btn:focus-visible {
  opacity: 0.6;
}
.slms-todo-empty {
  padding: 18px 8px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.65;
  list-style: none;
}

/* notes */
.slms-notes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.slms-notes--wide {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border: 1px solid var(--slms-line);
  border-radius: var(--slms-radius);
  min-height: 560px;
}
.slms-notes--wide .slms-notes-side {
  border-right: 1px solid var(--slms-line);
  padding: 12px;
}
.slms-notes--wide .slms-notes-main {
  padding: 18px 28px;
  min-width: 0;
}
.slms-notes-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.slms-notes-tools .slms-search {
  flex: 1 1 100%;
  min-width: 0;
  max-width: 100%;
}
.slms-notes-side {
  min-width: 0;
}
.slms-notes-tools select {
  flex: 1;
  min-width: 0;
}
.slms-notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.slms-note-item {
  width: 100%;
  display: flex;
  gap: 10px;
  padding: 9px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.slms-note-item:hover {
  background: var(--slms-soft);
}
.slms-note-item.is-on {
  background: var(--slms-soft);
  outline: 1px solid var(--slms-line);
}
.slms-note-item.is-here .slms-note-item-icon {
  outline: 2px solid var(--slms-accent-c);
  outline-offset: 1px;
  border-radius: 4px;
}
.slms-note-item-icon {
  font-size: 1.15rem;
  line-height: 1.3;
}
.slms-note-item-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.slms-note-item-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slms-note-excerpt {
  opacity: 0.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slms-notes-all {
  margin-top: 14px;
}

.slms-note-page {
  max-width: 760px;
  margin: 0 auto;
}
.slms-note-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.slms-note-top .slms-icon-btn {
  color: inherit;
}
.slms-note-top .slms-icon-btn:hover {
  color: var(--slms-bad);
}
.slms-note-status {
  margin-left: auto;
}
.slms-note-icon {
  font-size: 2.4rem;
  line-height: 1;
  border: 0;
  background: none;
  padding: 4px;
  border-radius: 8px;
  cursor: pointer;
}
.slms-note-icon:hover {
  background: var(--slms-soft);
}
.slms-note-title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.25;
  outline: none;
  margin: 6px 0 4px;
  overflow-wrap: anywhere;
}
.slms-note-title:empty::before,
.slms-nb-text:empty:focus::before,
.slms-nb:only-child .slms-nb-text:empty::before {
  content: attr(data-placeholder);
  opacity: 0.35;
  pointer-events: none;
}
.slms-note-where {
  margin-bottom: 18px;
}
.slms-note-blocks {
  min-height: 120px;
}
.slms-note-acts {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.slms-note-helpwrap {
  position: relative;
}
.slms-note-top .slms-note-helpbtn:hover {
  color: var(--slms-accent-c);
  background: var(--slms-accent-bg);
}
.slms-note-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  width: 260px;
  padding: 14px 16px;
  border: 1px solid var(--slms-line);
  border-radius: 12px;
  background: var(--slms-surface);
  color: var(--slms-ink);
  font-size: 0.86rem;
  text-align: left;
}
.slms-note-pop p {
  margin: 0 0 6px;
}
.slms-note-tips {
  margin: 0 0 10px;
  padding-left: 18px;
}
.slms-note-tips li {
  margin: 2px 0;
}
.slms-note-keys {
  display: grid;
  gap: 4px;
  margin: 0;
}
.slms-note-keys div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.slms-note-keys dt {
  min-width: 44px;
}
.slms-note-keys dd {
  margin: 0;
}
.slms-note-keys kbd {
  display: inline-block;
  min-width: 26px;
  padding: 1px 6px;
  border: 1px solid var(--slms-line);
  border-radius: 6px;
  background: var(--slms-soft);
  font: 600 0.8rem/1.5 var(--slms-mono);
  text-align: center;
}
.slms-nb {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 2px 0 2px 26px;
  border-radius: 6px;
}
.slms-nb-handle {
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: none;
  box-shadow: none;
  color: inherit;
  opacity: 0;
  cursor: grab;
  font: 400 12px/1 var(--slms-font);
  letter-spacing: -2px;
}
.slms-nb:hover .slms-nb-handle,
.slms-nb-handle:focus-visible {
  opacity: 0.45;
}
.slms-nb-handle:hover {
  opacity: 0.9 !important;
  background: var(--slms-soft);
}
.slms-nb-text {
  flex: 1;
  min-width: 0;
  outline: none;
  overflow-wrap: anywhere;
  padding: 3px 2px;
  min-height: 1.6em;
}
.slms-nb-text a {
  color: var(--slms-accent-c);
  text-decoration: underline;
}
.slms-nb-text code {
  font-family: var(--slms-mono);
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--slms-soft);
  color: var(--slms-bad);
}
.slms-nb-text mark {
  background: rgba(250, 204, 21, 0.45);
  color: inherit;
  padding: 0 0.1em;
}
.slms-nb--h1 .slms-nb-text {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0.6em;
}
.slms-nb--h2 .slms-nb-text {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0.5em;
}
.slms-nb--h3 .slms-nb-text {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0.4em;
}
.slms-nb-bullet,
.slms-nb-num {
  min-width: 1.4em;
  padding-top: 3px;
  text-align: right;
  user-select: none;
}
.slms-nb-check {
  margin-top: 0.45em;
  width: 16px;
  height: 16px;
  accent-color: var(--slms-accent-c);
  flex-shrink: 0;
}
.slms-nb.is-checked .slms-nb-text {
  text-decoration: line-through;
  opacity: 0.5;
}
.slms-nb--quote .slms-nb-text {
  border-left: 3px solid currentColor;
  padding-left: 12px;
  font-size: 1.05rem;
}
.slms-nb--callout {
  margin: 6px 0;
}
.slms-nb--callout .slms-nb-emoji {
  position: absolute;
  left: 38px;
  top: 12px;
}
.slms-nb--callout .slms-nb-text {
  padding: 10px 12px 10px 40px;
  border-radius: 8px;
  background: var(--slms-soft);
  border: 1px solid var(--slms-line);
}
.slms-nb--code .slms-nb-text {
  white-space: pre-wrap;
  font-family: var(--slms-mono);
  font-size: 0.86rem;
  line-height: 1.55;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--slms-soft);
  border: 1px solid var(--slms-line);
  tab-size: 2;
}
.slms-nb--divider {
  padding-top: 10px;
  padding-bottom: 10px;
}
.slms-nb-hr {
  flex: 1;
  border: 0;
  border-top: 1px solid var(--slms-line);
  margin: 0;
  outline: none;
}
.slms-nb-hr:focus {
  border-top-color: var(--slms-accent-c);
}

.slms-slash {
  position: absolute;
  z-index: 100003;
  width: 250px;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  background: var(--slms-surface);
  color: var(--slms-ink);
  border: 1px solid rgba(128, 128, 128, 0.35);
  border-radius: 10px;
  font: 14px/1.4 var(--slms-font);
}
.slms-slash-h {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.55;
  padding: 4px 8px;
}
.slms-slash-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.slms-slash-item:hover,
.slms-slash-item.is-on {
  background: var(--slms-soft);
}
.slms-slash-item kbd {
  margin-left: auto;
  font: 0.75rem var(--slms-mono);
  opacity: 0.5;
}
.slms-slash-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slms-line);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}
.slms-slash-sep {
  height: 1px;
  background: var(--slms-line);
  margin: 6px 0;
}
.slms-slash-empty {
  padding: 8px;
  opacity: 0.6;
}
.slms-slash .slms-bad {
  color: var(--slms-bad);
}
.slms-emoji-grid {
  width: auto;
  display: grid;
  grid-template-columns: repeat(8, 34px);
  gap: 2px;
}
.slms-emoji-grid button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: none;
  font-size: 1.2rem;
  cursor: pointer;
}
.slms-emoji-grid button:hover {
  background: var(--slms-soft);
}
.slms-fmt-bar {
  position: absolute;
  z-index: 100003;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font: 14px/1 var(--slms-font);
}
.slms-fmt-bar button {
  min-width: 30px;
  height: 30px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.slms-fmt-bar button:hover {
  background: rgba(255, 255, 255, 0.15);
}
.slms-fmt-bar mark {
  background: rgba(250, 204, 21, 0.7);
  color: #111827;
  padding: 0 3px;
}

@media (max-width: 760px) {
  .slms-chat {
    grid-template-columns: 1fr;
  }
  .slms-chat-rooms {
    border-right: 0;
    border-bottom: 1px solid var(--slms-line);
  }
  .slms-room-list {
    display: flex;
    gap: 4px;
    overflow-x: auto;
  }
  .slms-room {
    white-space: nowrap;
  }
  .slms-msg {
    max-width: 92%;
  }
  .slms-notes--wide {
    grid-template-columns: 1fr;
  }
  .slms-notes--wide .slms-notes-side {
    border-right: 0;
    border-bottom: 1px solid var(--slms-line);
  }
  .slms-notes--wide.is-editing .slms-notes-side {
    display: none;
  }
  .slms-notes--wide .slms-notes-main {
    padding: 14px;
  }
  .slms-note-title {
    font-size: 1.45rem;
  }
  .slms-study-fab span {
    display: none;
  }
  .slms-study-fab {
    padding: 0.7rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .slms-rec-dot {
    animation: none;
  }
}
@media print {
  .slms-study,
  .slms-proctor-bar {
    display: none !important;
  }
}
/* Study tools stay closed while proctored work is in progress. */
body.slms-proctoring .slms-study {
  display: none !important;
}

/* ======================================================== theme form rules
   Themes such as SepoDesk style every input, select, textarea and submit
   button globally (full width, their own padding, borders and focus rings).
   These rules keep the plugin's controls as designed inside its own parts. */

:is(.slms-wrap, .slms-modal) .slms-input,
:is(.slms-wrap, .slms-modal) .slms-select select {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--slms-line);
  border-radius: 8px;
  background-color: var(--slms-surface);
  color: var(--slms-ink);
  font: inherit;
  box-shadow: none;
  min-height: 0;
}
:is(.slms-wrap, .slms-modal) .slms-input:focus,
:is(.slms-wrap, .slms-modal) .slms-select select:focus {
  border-color: var(--slms-accent-c);
  box-shadow: none;
  outline: none;
}
:is(.slms-wrap, .slms-modal) textarea.slms-input {
  min-height: 0;
}
.slms-wrap .slms-handin textarea.slms-input {
  min-height: 160px;
}

/* Native option lists take their colours from the select, so they follow dark mode. */
:is(.slms-wrap, .slms-modal) select,
:is(.slms-wrap, .slms-modal) select option,
:is(.slms-wrap, .slms-modal) select optgroup {
  background-color: var(--slms-surface);
  color: var(--slms-ink);
}

/* Search fields: the box draws the border, the field inside has none. */
.slms-wrap .slms-search input,
.slms-wrap .slms-search input:focus {
  width: auto;
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: inherit;
  font: inherit;
}
.slms-wrap .slms-search {
  background-color: var(--slms-surface);
}

/* Widths that the theme's "width: 100%" would otherwise replace. */
.slms-wrap .slms-select select {
  width: auto;
}
.slms-wrap .slms-input--date {
  width: 9.5em;
  flex: 0 0 9.5em;
}
.slms-wrap .slms-input--code {
  width: 9em;
}
.slms-wrap .slms-todo-add [data-text] {
  width: auto;
  flex: 1 1 160px;
}
.slms-wrap .slms-notes-tools select {
  width: auto;
  flex: 1;
}
.slms-wrap .slms-chat-compose textarea {
  width: auto;
  flex: 1;
  min-height: 42px;
}
.slms-wrap input[type="checkbox"],
.slms-wrap input[type="radio"] {
  width: auto;
  accent-color: var(--slms-accent-c);
}
@media (max-width: 640px) {
  .slms-wrap .slms-toolbar .slms-select select {
    width: 100%;
  }
}

/* Submit buttons: the theme targets button[type="submit"]; these match it. */
.slms-btn[type="submit"] {
  width: auto;
  padding: 0.6rem 1.05rem;
  border: 1px solid var(--slms-line);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
}
.slms-btn[type="submit"]:hover {
  background: rgba(128, 128, 128, 0.08);
}
.slms-btn--primary[type="submit"],
.slms-btn--primary[type="submit"]:hover {
  background: var(--slms-accent-c);
  border-color: var(--slms-accent-c);
  color: var(--slms-on-accent);
}
.slms-btn--primary[type="submit"]:hover {
  filter: brightness(1.12);
}
.slms-btn--sm[type="submit"] {
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
}
.slms-btn--block[type="submit"] {
  width: 100%;
}

/* Labels and list items: the theme's spacing does not apply inside these parts. */
.slms-wrap label.slms-search,
.slms-wrap label.slms-select,
.slms-wrap label.slms-check-row {
  margin-bottom: 0;
  font-weight: inherit;
  color: inherit;
}
.slms-wrap label.slms-check-row {
  margin: 8px 0;
}
.slms-wrap
  :is(
    .slms-todos,
    .slms-notes-list,
    .slms-room-list,
    .slms-topics,
    .slms-sessions,
    .slms-filelist
  )
  > li {
  margin-bottom: 0;
}
.slms-wrap .slms-filelist > li {
  margin-bottom: 6px;
}

/* Headings drawn without heading tags take the theme's heading colour. */
.slms-note-title,
.slms-nb--h1 .slms-nb-text,
.slms-nb--h2 .slms-nb-text,
.slms-nb--h3 .slms-nb-text,
.slms-topic-title,
.slms-chat-head strong,
.slms-note-item-main strong {
  color: var(--slms-ink);
}

/* Toolbars: the search box, dropdowns, view switch and buttons share one height. */
.slms-wrap .slms-toolbar {
  --slms-control-h: 40px;
  align-items: stretch;
}
.slms-wrap .slms-toolbar .slms-search {
  height: var(--slms-control-h);
  padding-block: 0;
}
.slms-wrap .slms-toolbar .slms-search input {
  height: 100%;
  padding-block: 0;
  line-height: normal;
}
.slms-wrap .slms-toolbar .slms-select {
  display: flex;
}
.slms-wrap .slms-toolbar .slms-select select {
  height: var(--slms-control-h);
  padding-block: 0;
  line-height: normal;
}
.slms-wrap .slms-toolbar .slms-view {
  height: var(--slms-control-h);
}
.slms-wrap .slms-toolbar .slms-view button {
  height: 100%;
  align-items: center;
  padding-block: 0;
}
.slms-wrap .slms-toolbar .slms-group-tools {
  align-items: stretch;
  gap: 8px;
}
.slms-wrap .slms-toolbar .slms-group-tools .slms-btn {
  height: var(--slms-control-h);
  padding-block: 0;
  font-size: 0.88rem;
}

/* Viewing handed-in files in the page. */
.slms-filelist li .slms-btn--sm {
  flex-shrink: 0;
}
.slms-viewer {
  margin: 4px 0 14px;
  border: 1px solid var(--slms-line);
  border-radius: var(--slms-radius);
  overflow: hidden;
  background: var(--slms-surface);
}
.slms-viewer-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--slms-line);
  background: var(--slms-soft);
  font-size: 0.88rem;
}
.slms-viewer-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slms-viewer-bar a {
  color: var(--slms-accent-c);
}
.slms-viewer-close {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}
.slms-viewer-close:hover {
  background: var(--slms-line);
}
.slms-viewer-body iframe {
  display: block;
  width: 100%;
  height: min(78vh, 900px);
  border: 0;
  background: #fff;
}
.slms-viewer--text .slms-viewer-body iframe {
  height: min(60vh, 600px);
}
.slms-viewer-body img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: 0 auto;
}
.slms-viewer-body video {
  display: block;
  width: 100%;
  max-height: 78vh;
  background: #000;
}
.slms-viewer-body audio {
  display: block;
  width: 100%;
  padding: 12px;
}

/* Reordering by drag: the original is marked, a line shows where it lands,
   and the moved item flashes once in its new place. */
.slms-note-blocks,
.slms-todos {
  position: relative;
}
.slms-nb.is-dragging,
.slms-todo.is-dragging {
  opacity: 0.45;
  background: var(--slms-accent-bg);
}
.slms-nb.is-dragging .slms-nb-handle {
  opacity: 1;
}
.slms-drop-line {
  position: absolute;
  left: 22px;
  right: 0;
  height: 3px;
  margin-top: -1px;
  border-radius: 2px;
  background: var(--slms-accent-c);
  pointer-events: none;
  z-index: 2;
}
.slms-todos .slms-drop-line {
  left: 0;
}
.slms-drop-line::before {
  content: "";
  position: absolute;
  left: -4px;
  top: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--slms-surface);
  border: 2px solid var(--slms-accent-c);
  box-sizing: border-box;
}
.slms-nb.is-dropped,
.slms-todo.is-dropped {
  animation: slms-dropped 0.7s ease-out;
}
@keyframes slms-dropped {
  from {
    background: color-mix(in srgb, var(--slms-accent-c) 22%, transparent);
  }
  to {
    background: transparent;
  }
}
body.slms-grabbing,
body.slms-grabbing * {
  cursor: grabbing !important;
}
@media (prefers-reduced-motion: reduce) {
  .slms-nb.is-dropped,
  .slms-todo.is-dropped {
    animation: none;
  }
}
/* Forums (announcements and discussions): space between the search box and the topic list or empty message. */
.slms-wrap .slms-search--full + .slms-topics,
.slms-wrap .slms-search--full + .slms-empty {
  margin-top: 14px;
}

/* Proof of payment */
.slms-proofbox {
  margin: 14px 0 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 5%, transparent);
  display: grid;
  gap: 8px;
}
.slms-proofbox__title {
  font-size: 15px;
}
.slms-proofbox label:not(.slms-pick) {
  display: grid;
  gap: 4px;
  font-size: 13.5px;
}
.slms-proofbox input[type="text"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.slms-proofbox__file {
  display: grid;
  gap: 4px;
  font-size: 13.5px;
}
.slms-pick {
  position: relative;
  display: block;
  cursor: pointer;
}
.slms-pick__input {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.slms-pick__empty {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 16px 12px;
  border: 1.5px dashed color-mix(in srgb, currentColor 30%, transparent);
  border-radius: 12px;
  background: var(--slms-surface);
  text-align: center;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}
.slms-pick__empty svg {
  color: var(--slms-accent-c);
  margin-bottom: 2px;
}
.slms-pick__empty strong {
  font-size: 14px;
  color: var(--slms-accent-c);
}
.slms-pick__empty small {
  font-size: 12px;
  opacity: var(--slms-muted);
}
.slms-pick:hover .slms-pick__empty,
.slms-pick.is-over .slms-pick__empty {
  border-color: var(--slms-accent-c);
  background: var(--slms-accent-bg);
}
.slms-pick:focus-within .slms-pick__empty,
.slms-pick:focus-within .slms-pick__chosen {
  outline: 2px solid var(--slms-accent-c);
  outline-offset: 2px;
}
.slms-pick__chosen {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--slms-line);
  border-radius: 12px;
  background: var(--slms-surface);
}
.slms-pick__chosen[hidden],
.slms-pick__empty[hidden] {
  display: none;
}
.slms-pick.is-over .slms-pick__chosen {
  border-color: var(--slms-accent-c);
  background: var(--slms-accent-bg);
}
.slms-pick__thumb {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--slms-accent-bg);
  color: var(--slms-accent-c);
  font: 700 11px/1 var(--slms-font);
}
.slms-pick__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slms-pick__info {
  flex: 1;
  min-width: 0;
  display: grid;
}
.slms-pick__info strong {
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slms-pick__info small {
  font-size: 12px;
  opacity: var(--slms-muted);
}
.slms-pick__change {
  flex: none;
  padding: 5px 10px;
  border: 1px solid var(--slms-line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}
.slms-proofbox__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.slms-proofbox__list:empty {
  display: none;
}
.slms-proofbox__list li {
  margin: 0;
  font-size: 13.5px;
  padding: 6px 8px;
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 4%, transparent);
  overflow-wrap: anywhere;
}
.slms-proofbox__list li small {
  display: block;
  opacity: 0.8;
}
.slms-proofbox__st {
  display: inline-block;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #fcf3dc;
  color: #6b4a00;
}
.is-accepted .slms-proofbox__st {
  background: #e6f4ea;
  color: #1e6b34;
}
.is-declined .slms-proofbox__st {
  background: #fdecec;
  color: #9b1c1c;
}
.slms-small.is-ok {
  color: #1e6b34;
}
.slms-small.is-bad {
  color: #b42318;
}

/* A lesson in cards */
.slms-cardpage {
  padding: 4px 0 8px;
}
.slms-cardpage:focus {
  outline: none;
}
.slms-cardnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0 8px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}
.slms-cardnav[hidden] {
  display: none;
}
.slms-cardnav__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  flex: 1 1 auto;
}
.slms-cardnav__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: transparent;
  opacity: 0.45;
  cursor: pointer;
}
.slms-cardnav__dot.is-seen {
  opacity: 0.75;
}
.slms-cardnav__dot.is-on {
  background: currentColor;
  opacity: 1;
}
.slms-cardnav__dot:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.slms-cardnav__count {
  font-size: 14px;
  font-weight: 600;
  flex-basis: 100%;
  text-align: center;
  order: 3;
}
.slms-cardnav .slms-btn[disabled] {
  opacity: 0.45;
  cursor: default;
}
.slms-cardnav .slms-btn[hidden] {
  display: none;
}
[data-slms-cards-end][hidden] {
  display: none;
}

/* Course resources tab */
.slms-res-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.slms-res-item {
  padding: 14px;
  border: 1px solid var(--slms-line);
  border-radius: var(--slms-radius);
  background: var(--slms-surface);
}
.slms-res-item__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.slms-res-item__head > div {
  flex: 1;
  min-width: 0;
}
.slms-res-item__head strong {
  display: block;
  overflow-wrap: anywhere;
}
.slms-res-item__head small {
  opacity: var(--slms-muted);
}
.slms-res-item__badge {
  flex: none;
  min-width: 56px;
  padding: 6px 8px;
  border-radius: 8px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--slms-accent-bg);
  color: var(--slms-accent-c);
}
.slms-res-item__note {
  margin: 8px 0 0;
  opacity: var(--slms-muted);
}
.slms-res-item__head > .slms-res-item__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: none;
}
.slms-res-item video {
  display: block;
  width: 100%;
  max-height: 420px;
  margin-top: 12px;
  border-radius: 8px;
  background: #000;
}
.slms-res-item--audio {
  padding: 0;
  border: 0;
  background: none;
}
.slms-res-item--audio .slms-res-item__note {
  margin: 8px 4px 0;
}
@media (max-width: 560px) {
  .slms-res-item__head {
    flex-wrap: wrap;
  }
  .slms-res-item__acts {
    width: 100%;
  }
  .slms-res-item__acts .slms-btn {
    flex: 1;
    justify-content: center;
  }
}

/* Audio player */
.slms-ap {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--slms-line);
  border-radius: 14px;
  background: var(--slms-soft);
  color: var(--slms-ink);
  font-family: var(--slms-font);
  line-height: 1.4;
}
.slms-ap__art {
  display: grid;
  place-items: center;
  width: 96px;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--slms-accent-c);
  color: var(--slms-on-accent);
}
.slms-ap__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.slms-ap__head {
  min-width: 0;
}
.slms-ap__title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.slms-ap__sub {
  display: block;
  font-size: 0.85rem;
  opacity: var(--slms-muted);
}
.slms-ap__controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.slms-ap__spacer {
  flex: 1;
}
.slms-ap :is(.slms-ap__btn, .slms-ap__play) {
  box-sizing: border-box;
  margin: 0;
  min-height: 0;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: none;
  text-shadow: none;
  text-decoration: none;
}
.slms-ap .slms-ap__btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  min-width: 38px;
  height: 38px;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: 600 0.8rem/1 var(--slms-font);
}
.slms-ap .slms-ap__btn:hover {
  background: color-mix(in srgb, currentColor 10%, transparent);
}
.slms-ap .slms-ap__rate {
  min-width: 46px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--slms-line);
}
.slms-ap .slms-ap__play {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  padding: 0;
  margin: 0 4px;
  border: 0;
  border-radius: 50%;
  background: var(--slms-accent-c);
  color: var(--slms-on-accent);
  cursor: pointer;
  transition: transform 0.12s ease;
}
.slms-ap .slms-ap__play:active {
  transform: scale(0.96);
}
.slms-ap .slms-ap__play svg {
  grid-area: 1 / 1;
  place-self: center;
}
.slms-ap__i-pause,
.slms-ap.is-playing .slms-ap__i-play {
  display: none;
}
.slms-ap.is-playing .slms-ap__i-pause {
  display: block;
}
.slms-ap__spin {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--slms-accent-c);
  opacity: 0;
  pointer-events: none;
}
.slms-ap.is-loading .slms-ap__spin {
  opacity: 1;
  animation: slms-ap-spin 0.8s linear infinite;
}
@keyframes slms-ap-spin {
  to {
    transform: rotate(360deg);
  }
}
.slms-ap__vol {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.slms-ap__vol input {
  width: 80px;
  accent-color: var(--slms-accent-c);
}
.slms-ap__i-vol,
.slms-ap__i-muted {
  display: inline-grid;
}
.slms-ap__i-muted,
.slms-ap.is-muted .slms-ap__i-vol {
  display: none;
}
.slms-ap.is-muted .slms-ap__i-muted {
  display: inline-grid;
}
.slms-ap__timeline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.slms-ap__time {
  min-width: 42px;
  font: 500 0.78rem/1 var(--slms-mono);
  font-variant-numeric: tabular-nums;
  opacity: var(--slms-muted);
}
.slms-ap__time--left {
  text-align: right;
}
.slms-ap__bar {
  position: relative;
  flex: 1;
  height: 22px;
  cursor: pointer;
  touch-action: none;
  border-radius: 6px;
}
.slms-ap__bar::before,
.slms-ap__buffer,
.slms-ap__fill {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  border-radius: 4px;
}
.slms-ap__bar::before {
  right: 0;
  background: color-mix(in srgb, currentColor 18%, transparent);
}
.slms-ap__buffer {
  width: 0;
  background: color-mix(in srgb, currentColor 28%, transparent);
}
.slms-ap__fill {
  width: 0;
  background: var(--slms-accent-c);
}
.slms-ap__knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--slms-accent-c);
  transform: scale(0);
  transition: transform 0.12s ease;
}
.slms-ap__bar:hover .slms-ap__knob,
.slms-ap__bar:focus-visible .slms-ap__knob,
.slms-ap.is-playing .slms-ap__knob {
  transform: scale(1);
}
.slms-ap :is(button, a, input, [tabindex]):focus-visible {
  outline: 2px solid var(--slms-accent-c);
  outline-offset: 2px;
}
.slms-ap audio {
  grid-column: 1 / -1;
  width: 100%;
}
.slms-ap.is-ready audio {
  display: none;
}
.slms-ap.is-error .slms-ap__play {
  opacity: 0.5;
}
@media (max-width: 560px) {
  .slms-ap {
    grid-template-columns: 1fr;
  }
  .slms-ap__art {
    display: none;
  }
  .slms-ap__vol input {
    display: none;
  }
}

/* File preview */
.slms-pv {
  padding: 0;
  background: rgba(10, 14, 20, 0.82);
}
.slms-pv__card {
  display: flex;
  flex-direction: column;
  width: min(1100px, 100vw);
  height: min(100vh, 100dvh);
  max-height: none;
  padding: 0;
  background: var(--slms-surface);
  color: var(--slms-ink);
  outline: none;
  font: 15px/1.5 var(--slms-font);
}
@media (min-width: 720px) {
  .slms-pv {
    padding: 24px;
  }
  .slms-pv__card {
    height: calc(100vh - 48px);
    border: 1px solid var(--slms-line);
    border-radius: 14px;
    overflow: hidden;
  }
}
.slms-pv__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 18px;
  border-bottom: 1px solid var(--slms-line);
}
.slms-pv__title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.slms-pv__title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slms-pv__title small {
  opacity: var(--slms-muted);
  font-size: 0.8rem;
}
.slms-pv__count {
  font: 600 0.8rem/1 var(--slms-mono);
  opacity: var(--slms-muted);
}
.slms-pv__close {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  cursor: pointer;
}
.slms-pv__close:hover,
.slms-pv__nav:hover {
  background: color-mix(in srgb, currentColor 10%, transparent);
}
.slms-pv__main {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  background: var(--slms-soft);
}
.slms-pv__stage {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.slms-pv__stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.slms-pv__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.slms-pv__stage video {
  max-width: 100%;
  max-height: 100%;
  background: #000;
}
.slms-pv__stage--text {
  align-items: stretch;
  justify-content: stretch;
}
.slms-pv__text {
  flex: 1;
  margin: 0;
  padding: 20px 24px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 0.9rem/1.6 var(--slms-mono);
  background: var(--slms-surface);
  color: var(--slms-ink);
}
.slms-pv__stage--audio {
  padding: 24px;
}
.slms-pv__stage--audio .slms-ap {
  width: min(680px, 100%);
}
.slms-pv__nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 1px solid var(--slms-line);
  border-radius: 50%;
  background: var(--slms-surface);
  color: var(--slms-ink);
  cursor: pointer;
}
.slms-pv__nav.is-prev {
  left: 12px;
}
.slms-pv__nav.is-next {
  right: 12px;
}
.slms-pv__nav[hidden] {
  display: none;
}
.slms-pv :is(button, a):focus-visible {
  outline: 2px solid var(--slms-accent-c);
  outline-offset: 2px;
}
@media (max-width: 560px) {
  .slms-pv__bar .slms-btn:not(.slms-btn--primary) {
    display: none;
  }
}
.slms-pv__nopdf {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 420px;
  padding: 32px 24px;
  text-align: center;
}
.slms-pv__nopdf svg {
  color: var(--slms-accent-c);
}
.slms-pv__nopdf p {
  margin: 0;
}
.slms-pv__nopdf div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.slms-link-sm {
  font-size: 0.85rem;
  color: var(--slms-accent-c);
}

/* ------------------------------------------------------------ lists with filters */
.slms-wrap.slms-browse {
  font-size: 16px;
}
.slms-browse .slms-index-head {
  margin-bottom: 6px;
}
.slms-browse .slms-toolbar {
  margin: 18px 0 16px;
  gap: 10px;
}
.slms-browse .slms-search {
  min-height: 46px;
  border-radius: 12px;
  background: var(--slms-surface);
}
.slms-wrap.slms-browse .slms-search input,
.slms-wrap.slms-browse select,
.slms-wrap.slms-browse .slms-input,
.slms-wrap.slms-browse .slms-btn {
  font-family: inherit;
  font-size: 0.94rem;
  line-height: 1.4;
}
.slms-wrap.slms-browse .slms-sort select {
  font-weight: 600;
}
.slms-ccard .slms-card-img:not([style])::after,
.slms-scard .slms-card-cover.is-empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 85% 20%,
      color-mix(in srgb, var(--slms-accent-c) 22%, transparent) 0 22%,
      transparent 23%
    ),
    radial-gradient(
      circle at 10% 110%,
      color-mix(in srgb, var(--slms-accent-c) 16%, transparent) 0 30%,
      transparent 31%
    );
}
.slms-scard .slms-card-cover {
  position: relative;
  overflow: hidden;
}
.slms-ccard .slms-card-img {
  overflow: hidden;
}
.slms-ccard-badge,
.slms-ccard-level {
  z-index: 1;
}
.slms-browse .slms-view {
  border-radius: 12px;
}
.slms-browse .slms-view button {
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  opacity: 0.65;
}
.slms-browse .slms-view button.is-on {
  opacity: 1;
  background: var(--slms-accent-bg);
  color: var(--slms-accent-c);
}
.slms-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 6px 0 12px;
  border: 1px solid var(--slms-line);
  border-radius: 12px;
  background: var(--slms-surface);
}
.slms-sort > span {
  font-size: 0.82rem;
  opacity: var(--slms-muted);
  white-space: nowrap;
}
.slms-sort select {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5rem 0.3rem;
  min-height: 40px;
  cursor: pointer;
}
.slms-sort select:focus {
  outline: none;
}
.slms-sort:focus-within {
  border-color: var(--slms-accent-c);
}
.slms-sort select option {
  background: var(--slms-surface);
  color: var(--slms-ink);
}
.slms-filters-btn {
  display: none;
  min-height: 46px;
  border-radius: 12px;
  gap: 8px;
}
.slms-filters-btn .slms-count {
  background: var(--slms-accent-c);
  color: var(--slms-on-accent);
  border-color: transparent;
}

.slms-browse-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.slms-filters {
  border: 1px solid var(--slms-line);
  border-radius: 14px;
  padding: 16px 18px 8px;
  background: var(--slms-surface);
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: auto;
}
.slms-filters-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
}
.slms-filters-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.slms-fgroup {
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--slms-line);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.slms-fgroup legend,
.slms-flabel {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
}
.slms-fgroup legend + * {
  clear: both;
}
.slms-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  font-size: 0.92rem;
  cursor: pointer;
  border-radius: 8px;
}
.slms-opt input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
  accent-color: var(--slms-accent-c);
  cursor: pointer;
}
.slms-opt-n {
  margin-left: auto;
  font-size: 0.78rem;
  opacity: var(--slms-muted);
  font-variant-numeric: tabular-nums;
}
.slms-fgroup .slms-input {
  width: 100%;
  min-height: 42px;
}
.slms-filters-done {
  display: none;
  width: 100%;
  margin: 6px 0 12px;
}
.slms-linkbtn {
  border: 0;
  background: none;
  padding: 6px 2px;
  color: var(--slms-accent-c);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.slms-linkbtn:focus-visible {
  outline: 2px solid var(--slms-accent-c);
  outline-offset: 2px;
  border-radius: 4px;
}

.slms-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  min-height: 36px;
}
.slms-total {
  font-size: 0.98rem;
  margin-right: 4px;
}
.slms-active-tags {
  display: contents;
}
.slms-ftag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 4px 0 12px;
  border-radius: 999px;
  background: var(--slms-accent-bg);
  color: var(--slms-accent-c);
  font-size: 0.84rem;
  font-weight: 600;
}
.slms-ftag button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.slms-ftag button:hover {
  background: var(--slms-accent-bg);
}
.slms-ftag button:focus-visible {
  outline: 2px solid var(--slms-accent-c);
}
.slms-none {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px 16px;
  border: 1px dashed var(--slms-line);
  border-radius: 14px;
  text-align: center;
}
.slms-none p {
  margin: 0;
}

.slms-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--slms-line);
  border-radius: 999px;
  background: var(--slms-surface);
  color: inherit;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.slms-chip:hover {
  border-color: var(--slms-accent-c);
}
.slms-chip.is-on,
.slms-chip[aria-pressed="true"] {
  background: var(--slms-accent-c);
  border-color: var(--slms-accent-c);
  color: var(--slms-on-accent);
}
.slms-chip.is-on .slms-opt-n,
.slms-chip[aria-pressed="true"] .slms-opt-n {
  opacity: 0.85;
}
.slms-chip:focus-visible {
  outline: 2px solid var(--slms-accent-c);
  outline-offset: 2px;
}
.slms-quick {
  margin: 0 0 14px;
}

/* Course cards */
.slms-grid--courses {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.slms-ccard,
.slms-scard {
  border-radius: 14px;
  background: var(--slms-surface);
}
.slms-ccard .slms-card-img {
  position: relative;
  aspect-ratio: auto;
  height: 150px;
  background-color: var(--slms-accent-bg);
}
.slms-ccard-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}
.slms-ccard-level {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font-size: 0.75rem;
  font-weight: 700;
}
.slms-ccard .slms-card-body {
  gap: 8px;
  padding: 14px 16px 16px;
  align-items: stretch;
}
.slms-ccard-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--slms-accent-c);
}
.slms-wrap .slms-card-title {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.3;
  font-weight: 700;
}
.slms-card-title a {
  text-decoration: none;
}
.slms-card-title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.slms-ccard-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 0.86rem;
}
.slms-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.slms-score .slms-i--star {
  fill: #e0a43a;
  stroke: #b7791f;
}
.slms-dim {
  opacity: var(--slms-muted);
}
.slms-ccard-foot {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--slms-line);
}
.slms-ccard-foot .slms-card-price {
  margin: 0;
  color: inherit;
}
.slms-ccard-foot .slms-now {
  font-size: 1.05rem;
}
.slms-ccard-foot .slms-btn--sm {
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  border-radius: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.slms-grid.is-list .slms-ccard .slms-card-img {
  width: 200px;
  height: auto;
  min-height: 130px;
}
.slms-grid.is-list .slms-ccard-foot {
  border-top: 0;
  padding-top: 4px;
}

/* School cards */
.slms-grid--schools {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}
.slms-scard .slms-card-cover {
  height: 104px;
}
.slms-scard .slms-card-cover.is-empty {
  background: var(--slms-accent-bg);
  opacity: 1;
}
.slms-scard .slms-card-body {
  gap: 10px;
  padding: 0 18px 18px;
  align-items: stretch;
}
.slms-scard-id {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: -28px;
}
.slms-scard-logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--slms-surface);
  border: 1px solid var(--slms-line);
}
.slms-initials {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--slms-accent-c);
  background:
    linear-gradient(var(--slms-accent-bg), var(--slms-accent-bg)),
    var(--slms-surface);
}
.slms-scard .slms-badge {
  margin: 0 0 4px;
}
.slms-badge--ok {
  background: var(--slms-ok-bg);
  color: var(--slms-ok);
  border-color: transparent;
}
.slms-iline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.slms-figs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
  margin: 2px 0 0;
  padding: 10px;
  border-radius: 12px;
  background: var(--slms-soft);
  text-align: center;
}
.slms-figs div {
  display: flex;
  flex-direction: column-reverse;
}
.slms-figs dt {
  font-size: 0.74rem;
  opacity: var(--slms-muted);
}
.slms-figs dd {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.slms-scard .slms-tags {
  gap: 6px;
}
.slms-scard .slms-tag {
  padding: 0.2rem 0.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--slms-accent-bg);
  color: var(--slms-accent-c);
  font-size: 0.76rem;
  font-weight: 600;
}
.slms-scard-go {
  margin-top: auto;
  min-height: 44px;
  border-color: var(--slms-accent-c);
  color: var(--slms-accent-c);
  font-weight: 600;
  justify-content: center;
}
.slms-grid.is-list .slms-scard .slms-card-cover {
  width: 180px;
}
.slms-grid.is-list .slms-scard-id {
  margin-top: 12px;
}
.slms-grid.is-list .slms-scard .slms-card-body {
  padding-top: 0;
}

@media (max-width: 900px) {
  .slms-browse-body {
    grid-template-columns: 1fr;
  }
  .slms-filters-btn,
  .slms-filters-done {
    display: inline-flex;
    justify-content: center;
  }
  .slms-filters {
    display: none;
    position: fixed;
    inset: auto 0 0 0;
    top: auto;
    z-index: 99990;
    max-height: 85vh;
    border-radius: 18px 18px 0 0;
    padding: 18px 18px 6px;
  }
  .slms-filters.is-open {
    display: block;
  }
  .slms-sort {
    flex: 1 1 auto;
  }
  .slms-grid.is-list .slms-ccard .slms-card-img,
  .slms-grid.is-list .slms-scard .slms-card-cover {
    width: 120px;
  }
}
@media (max-width: 560px) {
  .slms-browse .slms-search {
    flex-basis: 100%;
  }
  .slms-grid.is-list .slms-card {
    flex-direction: column;
  }
  .slms-grid.is-list .slms-ccard .slms-card-img,
  .slms-grid.is-list .slms-scard .slms-card-cover {
    width: auto;
    height: 120px;
  }
}

/* ------------------------------------------------------------ panels shared by profiles and dashboards */
.slms-panelcard {
  border: 1px solid var(--slms-line);
  border-radius: 14px;
  background: var(--slms-surface);
  min-width: 0;
  overflow: hidden;
}
.slms-pad {
  padding: 18px 20px;
}
.slms-panelcard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px 10px;
}
.slms-wrap .slms-h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}
.slms-panelcard-head .slms-h3 {
  margin: 0;
}
.slms-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.slms-kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--slms-line);
  border-radius: 14px;
  background: var(--slms-surface);
}
.slms-kpi > span {
  font-size: 0.82rem;
  font-weight: 600;
  opacity: var(--slms-muted);
}
.slms-kpi strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.slms-kpi .slms-i--star {
  fill: #e0a43a;
  stroke: #b7791f;
}
.slms-tablewrap {
  overflow-x: auto;
}
.slms-dtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.slms-dtable th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.76rem;
  font-weight: 600;
  opacity: 0.8;
  border-bottom: 1px solid var(--slms-line);
  background: var(--slms-soft);
  white-space: nowrap;
}
.slms-dtable td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--slms-line);
  vertical-align: middle;
}
.slms-dtable tr:last-child td {
  border-bottom: 0;
}
.slms-cellcourse {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.slms-cellcourse > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.slms-cellcourse a {
  font-weight: 700;
  text-decoration: none;
}
.slms-cellcourse a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.slms-cellcourse small {
  opacity: var(--slms-muted);
  font-size: 0.78rem;
}
.slms-thumb {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--slms-accent-bg) center / cover no-repeat;
}
.slms-meter {
  display: inline-block;
  vertical-align: middle;
  width: 110px;
  height: 8px;
  border-radius: 99px;
  background: var(--slms-soft);
  outline: 1px solid var(--slms-line);
  outline-offset: -1px;
  overflow: hidden;
}
.slms-meter > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--slms-accent-c);
}
.slms-meter-n {
  margin-left: 8px;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
.slms-softtags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.slms-softtags span {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--slms-accent-bg);
  color: var(--slms-accent-c);
  font-size: 0.84rem;
  font-weight: 600;
}
.slms-agenda {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.slms-agenda li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--slms-soft);
}
.slms-agenda li.is-next {
  background: var(--slms-accent-bg);
}
.slms-agenda li > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.slms-agenda small {
  opacity: var(--slms-muted);
  font-size: 0.78rem;
}
.slms-agenda-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 40px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--slms-accent-c);
}
.slms-agenda-date strong {
  font-size: 1.15rem;
  line-height: 1.1;
}
.slms-crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.86rem;
}
.slms-crumbs a {
  color: var(--slms-accent-c);
}
.slms-crumbs span[aria-current] {
  opacity: var(--slms-muted);
}

/* Teacher profile */
.slms-wrap.slms-tprofile {
  font-size: 16px;
}
.slms-tprofile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.slms-tprofile-side,
.slms-tprofile-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.slms-tcard-cover {
  height: 110px;
  background: var(--slms-accent-bg) center / cover no-repeat;
  position: relative;
  overflow: hidden;
}
.slms-tcard-cover.is-empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 85% 10%,
      color-mix(in srgb, var(--slms-accent-c) 24%, transparent) 0 28%,
      transparent 29%
    ),
    radial-gradient(
      circle at 15% 130%,
      color-mix(in srgb, var(--slms-accent-c) 18%, transparent) 0 36%,
      transparent 37%
    );
}
.slms-tcard-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 20px 20px;
}
.slms-tcard-avatar {
  width: 96px;
  height: 96px;
  margin-top: -48px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--slms-surface);
  background: var(--slms-surface);
  position: relative;
  font-size: 1.8rem;
}
.slms-tcard-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.slms-tcard-name .slms-h1 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.2;
}
.slms-tcard-school {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--slms-accent-c);
  text-decoration: none;
}
.slms-tcard-school:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.slms-contact {
  list-style: none;
  margin: 0;
  padding: 4px 14px;
  border-radius: 12px;
  background: var(--slms-soft);
}
.slms-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--slms-line);
}
.slms-contact li:last-child {
  border-bottom: 0;
}
.slms-contact li > svg {
  flex: none;
  opacity: 0.75;
}
.slms-contact li > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.slms-contact small {
  font-size: 0.74rem;
  opacity: var(--slms-muted);
}
.slms-contact a {
  color: var(--slms-accent-c);
  overflow-wrap: anywhere;
}
.slms-tcard-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.slms-tcard-acts .slms-btn--primary {
  margin-left: auto;
  min-height: 44px;
  gap: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.slms-reviewcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.slms-reviewcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.slms-reviewcard p {
  margin: 0;
  line-height: 1.6;
}
.slms-reviewcard small {
  margin-top: auto;
}
.slms-reviewcard-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.slms-reviewcard-head strong {
  flex: 1;
}
.slms-avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.85rem;
}
.slms-tprofile .slms-dtable .slms-btn--sm {
  min-height: 38px;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .slms-tprofile-grid {
    grid-template-columns: 1fr;
  }
}
.slms-wrap:is(.slms-browse, .slms-tprofile, .slms-mine) :is(h1, h2, h3) {
  font-family: var(--slms-font);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.slms-tcard-avatar.slms-initials {
  display: grid;
  place-items: center;
}

/* Learner dashboard */
.slms-wrap.slms-mine {
  font-size: 16px;
}
.slms-mine-head {
  margin-bottom: 18px;
}
.slms-wrap .slms-mine-head h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.25;
}
.slms-mine-head p {
  margin: 4px 0 0;
}
.slms-mine-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.slms-continue {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--slms-accent-c);
  color: var(--slms-on-accent);
  border-color: var(--slms-accent-c);
}
.slms-continue::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--slms-on-accent) 9%, transparent);
  pointer-events: none;
}
.slms-continue-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.slms-wrap .slms-continue h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.25;
  color: inherit;
}
.slms-continue h2 a {
  color: inherit;
  text-decoration: none;
}
.slms-continue h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.slms-continue-prog {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}
.slms-continue .slms-meter {
  background: color-mix(in srgb, var(--slms-on-accent) 22%, transparent);
  outline: 0;
}
.slms-continue .slms-meter > span {
  background: var(--slms-on-accent);
}
.slms-meter--wide {
  flex: 1;
  width: auto;
  max-width: 320px;
  height: 10px;
}
.slms-continue-next {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--slms-on-accent) 12%, transparent);
}
.slms-continue-next > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.slms-continue-next small {
  opacity: 0.85;
  font-size: 0.78rem;
}
.slms-continue .slms-btn--primary {
  background: var(--slms-on-accent);
  border-color: var(--slms-on-accent);
  color: var(--slms-accent-c) !important;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.slms-upnext .slms-agenda li.is-due {
  background: var(--slms-wait-bg);
}
.slms-upnext .slms-agenda li.is-due .slms-agenda-date {
  color: var(--slms-wait);
}
.slms-upnext .slms-agenda a {
  color: inherit;
}
.slms-mine-kpis {
  margin-bottom: 8px;
}
.slms-mine-kpis .slms-kpi small {
  font-size: 0.78rem;
}
.slms-mine .slms-tabs {
  margin-top: 18px;
  gap: 6px;
  border-bottom: 0;
}
.slms-mine .slms-tab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--slms-line);
  border-radius: 999px;
  margin: 0;
  opacity: 1;
}
.slms-mine .slms-tab.is-on {
  background: var(--slms-accent-c);
  border-color: var(--slms-accent-c);
  color: var(--slms-on-accent);
}
.slms-mine .slms-tab.is-on .slms-count {
  background: color-mix(in srgb, var(--slms-on-accent) 20%, transparent);
  border-color: transparent;
  color: inherit;
}
.slms-mine .slms-table-wrap {
  border: 1px solid var(--slms-line);
  border-radius: 14px;
  overflow: auto;
}
.slms-mine .slms-table th {
  background: var(--slms-soft);
}
.slms-mine .slms-search,
.slms-mine .slms-select select {
  min-height: 44px;
  border-radius: 12px;
}
.slms-mine .slms-search input,
.slms-mine select {
  font-size: 0.94rem;
}
.slms-mine .slms-bar span {
  background: var(--slms-accent-c);
}
@media (max-width: 760px) {
  .slms-mine-top {
    grid-template-columns: 1fr;
  }
}
.slms-wrap .slms-continue :is(h2, h2 a) {
  color: var(--slms-on-accent) !important;
}
@media (max-width: 900px) {
  .slms-filters-done {
    position: sticky;
    bottom: 0;
    margin: 8px 0 0;
    min-height: 48px;
  }
  .slms-filters.is-open {
    padding-bottom: 12px;
  }
}
.slms-ccard-foot .slms-card-price {
  min-width: 0;
  row-gap: 0;
}

/* Photos and logos keep a square frame whatever the shape of the upload: round for people, rounded squares for schools. */
.slms-wrap
  img:is(
    .slms-avatar,
    .slms-tcard-avatar,
    .slms-profile-avatar,
    .slms-scard-logo,
    .slms-card-logo,
    .slms-profile-logo
  ) {
  aspect-ratio: 1 / 1;
  height: auto;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.slms-wrap img:is(.slms-avatar, .slms-tcard-avatar, .slms-profile-avatar) {
  border-radius: 50%;
}
.slms-scard-id,
.slms-tcard-avatar {
  position: relative;
  z-index: 1;
}
.slms-scard-logo {
  flex: none;
}
.slms-scard-logo.slms-initials {
  box-sizing: border-box;
}

/* School list filter bar */
.slms-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
}
.slms-filterbar .slms-sort {
  min-height: 44px;
}
.slms-toggle-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--slms-line);
  border-radius: 12px;
  background: var(--slms-surface);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}
.slms-toggle-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--slms-accent-c);
}
.slms-toggle-check:has(input:checked) {
  border-color: var(--slms-accent-c);
  background: var(--slms-accent-bg);
  color: var(--slms-accent-c);
}
.slms-toggle-check:focus-within {
  outline: 2px solid var(--slms-accent-c);
  outline-offset: 2px;
}
/* The select inside a labelled box carries no frame of its own. */
.slms-wrap .slms-sort select,
.slms-wrap .slms-sort select:focus {
  border: 0;
  box-shadow: none;
  outline: 0;
  background-color: transparent;
  padding-left: 0.2rem;
}
.slms-opt.is-empty {
  opacity: 0.55;
  cursor: default;
}
.slms-opt.is-empty input {
  cursor: default;
}

/* Shortcode pages inside a block theme's content column use the LMS page width. */
.is-layout-constrained > .slms-wrap:where(.slms-mine, .slms-trx, .slms-browse) {
  max-width: min(var(--slms-width, 1120px), 100%);
}

/* The "continue learning" card: a soft tint of the accent, so it leads the page without shouting. */
.slms-continue {
  background: var(--slms-accent-bg);
  color: var(--slms-ink);
  border-color: var(--slms-line);
}
.slms-continue::after {
  background: color-mix(in srgb, var(--slms-accent-c) 7%, transparent);
}
.slms-continue-kicker {
  color: var(--slms-accent-c);
  opacity: 1;
}
.slms-wrap .slms-continue :is(h2, h2 a) {
  color: var(--slms-ink) !important;
}
.slms-continue .slms-meter {
  background: color-mix(in srgb, var(--slms-ink) 12%, transparent);
}
.slms-continue .slms-meter > span {
  background: var(--slms-accent-c);
}
.slms-continue-next {
  background: var(--slms-surface);
  border: 1px solid var(--slms-line);
}
.slms-continue-next small {
  opacity: var(--slms-muted);
}
.slms-continue .slms-btn--primary {
  background: var(--slms-accent-c);
  border-color: var(--slms-accent-c);
  color: var(--slms-on-accent) !important;
}

/* Certificate verification page ([sepo_verify_certificate]). */
.slms-cverify {
  max-width: 640px;
  margin: 0 auto;
}
.slms-cverify-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--slms-line);
  border-radius: 16px;
  background: var(--slms-surface);
  color: var(--slms-ink);
}
.slms-wrap .slms-cverify-title {
  margin: 0;
  font-size: 1.4rem;
  color: var(--slms-ink);
}
.slms-cverify-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.slms-cverify-form > span {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.slms-cverify-form input {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--slms-line);
  border-radius: 10px;
  background: var(--slms-surface);
  color: var(--slms-ink);
  font: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: none;
}
.slms-cverify-form input:focus-visible {
  outline: 2px solid var(--slms-accent-c);
  outline-offset: 1px;
}
.slms-cverify-res {
  margin: 0;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
}
.slms-cverify-res.is-ok {
  background: var(--slms-ok-bg);
  color: var(--slms-ok);
}
.slms-cverify-res.is-bad {
  background: var(--slms-bad-bg);
  color: var(--slms-bad);
}
.slms-cverify-facts {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.slms-cverify-facts > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 10px 0;
  border-top: 1px solid var(--slms-line);
}
.slms-cverify-facts dt {
  opacity: 0.75;
}
.slms-cverify-facts dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}
.slms-desk-handin {
  background: var(--slms-soft);
}

/* ------------------------------------------------------------------ course index: browsing layout */
.slms-cx {
  --slms-cx-r: 16px;
}
.slms-cx-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.slms-cx.is-rail-hidden .slms-cx-layout {
  grid-template-columns: minmax(0, 1fr);
}
.slms-cx.is-rail-hidden .slms-cx-rail {
  display: none;
}
.slms-cx-main {
  min-width: 0;
}
.slms-cx button {
  font: inherit;
}

/* Side menu */
.slms-cx-rail {
  position: sticky;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 16px);
  max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px;
  border-radius: 20px;
  background: var(--slms-soft);
  scrollbar-width: thin;
}
.slms-cx-railhead {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 8px 12px;
}
.slms-cx-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.slms-cx-nav li {
  margin: 0;
}
.slms-cx-navbtn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font-size: 0.93rem;
  text-align: start;
  cursor: pointer;
}
.slms-cx-navbtn span:first-of-type {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slms-cx-navbtn svg {
  flex: none;
  opacity: 0.8;
}
.slms-cx-navbtn:hover {
  background: color-mix(in srgb, currentColor 7%, transparent);
}
.slms-cx-navbtn.is-on {
  background: color-mix(in srgb, var(--slms-accent-c) 14%, transparent);
  font-weight: 650;
}
.slms-cx-navn {
  margin-inline-start: auto;
  font-size: 0.78rem;
  opacity: var(--slms-muted);
  font-variant-numeric: tabular-nums;
}
.slms-cx-railh {
  margin: 16px 12px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: var(--slms-muted);
}
.slms-cx-railfoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 10px 4px 0;
  border-top: 1px solid var(--slms-line);
}
.slms-cx-ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.slms-cx-ico:hover {
  background: color-mix(in srgb, currentColor 8%, transparent);
}
.slms-cx-ico:focus-visible,
.slms-cx-navbtn:focus-visible,
.slms-cx-chip:focus-visible,
.slms-cx-pillbtn:focus-visible,
.slms-cx-density button:focus-visible {
  outline: 2px solid var(--slms-accent-c);
  outline-offset: 2px;
}
.slms-cx .is-sun {
  display: none;
}
html.slms-dark .slms-cx .is-sun {
  display: inline;
}
html.slms-dark .slms-cx .is-moon {
  display: none;
}
html.slms-theme-mode .slms-cx [data-slms-mode-switch] {
  display: none;
}
.slms-cx-shade {
  display: none;
}

/* Search */
.slms-cx-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.slms-wrap .slms-cx-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  margin: 0;
  padding: 0 8px 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--slms-soft);
}
.slms-cx-search:focus-within {
  border-color: var(--slms-accent-c);
  background: var(--slms-surface);
}
.slms-cx-search > svg {
  flex: none;
  opacity: 0.7;
}
.slms-wrap .slms-cx-search input,
.slms-wrap .slms-cx-search input:focus {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: inherit;
  font-size: 1.05rem;
}
.slms-cx-search input::-webkit-search-cancel-button {
  display: none;
}

/* Category chips */
.slms-cx-chipbar {
  position: relative;
  display: flex;
  align-items: center;
  margin: 14px 0 4px;
}
.slms-cx-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 2px;
}
.slms-cx-chips::-webkit-scrollbar {
  display: none;
}
.slms-cx-chip {
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--slms-line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 0.92rem;
  white-space: nowrap;
  cursor: pointer;
}
.slms-cx-chip:hover {
  background: var(--slms-soft);
}
.slms-cx-chip.is-on {
  border-color: transparent;
  background: var(--slms-accent-c);
  color: var(--slms-on-accent);
  font-weight: 600;
}
.slms-cx-chipnav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  background: var(--slms-surface);
  border: 1px solid var(--slms-line);
  border-radius: 999px;
}
.slms-cx-chipnav.is-prev {
  inset-inline-start: 0;
}
.slms-cx-chipnav.is-next {
  inset-inline-end: 0;
}
.slms-cx-chipnav[hidden] {
  display: none;
}

/* Banner */
.slms-cx-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  margin: 18px 0 6px;
  padding: 30px 64px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--slms-accent-c) center / cover no-repeat;
  color: var(--slms-on-accent);
  text-align: center;
}
.slms-cx-banner.has-image {
  color: #fff;
}
.slms-cx-banner.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.38));
}
.slms-cx-banner.is-light {
  color: #111827;
}
.slms-cx-banner[hidden] {
  display: none;
}
.slms-cx-bannerbody {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 720px;
}
.slms-cx-banner p {
  margin: 0;
}
.slms-cx-bannertitle {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.slms-cx-bannertext {
  font-size: 1.02rem;
  line-height: 1.5;
}
.slms-cx-bannerends {
  font-size: 0.86rem;
  opacity: 0.9;
}
.slms-wrap a.slms-cx-bannerbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-weight: 650;
  text-decoration: none;
}
.slms-cx-banner.is-light a.slms-cx-bannerbtn {
  background: #111827;
  color: #fff;
}
.slms-wrap a.slms-cx-bannerbtn:hover {
  text-decoration: underline;
}
.slms-cx-bannerx {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  color: inherit;
}

/* Heading, sort, filter buttons */
.slms-cx .slms-intro {
  margin: 18px 0 0;
}
.slms-cx-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin: 24px 0 12px;
}
.slms-cx-headtext {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  min-width: 0;
}
.slms-wrap .slms-cx-title {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.25;
}
.slms-cx-total {
  font-size: 0.92rem;
  opacity: var(--slms-muted);
}
.slms-wrap .slms-cx-sort {
  margin: 0;
}
.slms-wrap .slms-cx-sort select {
  min-height: 42px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--slms-line);
  border-radius: 12px;
  background-color: var(--slms-surface);
  color: inherit;
  font-size: 0.94rem;
  font-weight: 600;
}
.slms-cx-pills {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
}
.slms-cx-pillrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.slms-cx-pill {
  position: relative;
}
.slms-cx-pillbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 18px;
  border: 1px solid var(--slms-line);
  border-radius: 999px;
  background: var(--slms-surface);
  color: inherit;
  font-size: 0.94rem;
  cursor: pointer;
  white-space: nowrap;
}
.slms-cx-pillbtn:hover {
  background: var(--slms-soft);
}
.slms-cx-pillbtn svg {
  transform: rotate(90deg);
  transition: transform 0.15s ease;
  opacity: 0.75;
}
.slms-cx-pillbtn[aria-expanded="true"] svg {
  transform: rotate(-90deg);
}
.slms-cx-pillbtn.is-on {
  border-color: var(--slms-accent-c);
  background: color-mix(in srgb, var(--slms-accent-c) 10%, var(--slms-surface));
  font-weight: 600;
}
.slms-cx-pilln {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--slms-accent-c);
  color: var(--slms-on-accent);
  font-size: 0.74rem;
  font-weight: 700;
}
.slms-cx-pilln[hidden] {
  display: none;
}
.slms-cx-pop {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  z-index: 40;
  box-sizing: border-box;
  min-width: 240px;
  max-width: min(320px, calc(100vw - 32px));
  max-height: 360px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 10px;
  border: 1px solid var(--slms-line);
  border-radius: 14px;
  background: var(--slms-surface);
  color: var(--slms-ink);
}
.slms-cx-pop.is-left {
  inset-inline-start: auto;
  inset-inline-end: 0;
}
.slms-cx-pop[hidden] {
  display: none;
}
.slms-cx-pop .slms-opt {
  padding: 4px 8px;
  margin: 0;
}
.slms-cx-pop .slms-opt:hover {
  background: var(--slms-soft);
}
.slms-cx-pop .slms-opt.is-empty {
  opacity: 0.5;
}
.slms-cx-density {
  display: flex;
  gap: 4px;
  flex: none;
}
.slms-cx-density button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
}
.slms-cx-density button.is-on {
  opacity: 1;
  background: var(--slms-soft);
  color: var(--slms-accent-c);
}
.slms-cx .slms-active {
  min-height: 0;
  margin: 0 0 14px;
}
.slms-cx .slms-active:not(:has(.slms-ftag)) {
  margin: 0;
}

/* Picture-led cards */
.slms-wrap .slms-cx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 30px 22px;
}
.slms-cx-grid.is-compact {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 22px 14px;
}
.slms-wrap .slms-cx-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.slms-cx-card .slms-card-img {
  position: relative;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: var(--slms-cx-r);
}
.slms-cx-card .slms-card-img::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0);
  transition: background 0.2s ease;
  z-index: 1;
  pointer-events: none;
}
.slms-cx-card:hover .slms-card-img::before {
  background: rgba(0, 0, 0, 0.08);
}
.slms-cx-card:focus-within .slms-card-img {
  outline: 2px solid var(--slms-accent-c);
  outline-offset: 3px;
}
.slms-cx-card .slms-ccard-badge,
.slms-cx-card .slms-ccard-level {
  z-index: 2;
}
.slms-cx-card .slms-ccard-badge {
  top: auto;
  bottom: 10px;
  left: 10px;
}
.slms-wrap .slms-cx-card .slms-card-body {
  gap: 6px;
  padding: 12px 2px 0;
}
.slms-cx-card .slms-card-title {
  font-size: 1.02rem;
  line-height: 1.35;
}
.slms-cx-card .slms-ccard-foot {
  padding-top: 4px;
  border-top: 0;
}
.slms-wrap a.slms-cx-cta {
  flex: none;
  color: var(--slms-accent-c);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.slms-wrap a.slms-cx-cta:hover {
  text-decoration: underline;
}
.slms-cx-grid.is-compact .slms-ccard-cat,
.slms-cx-grid.is-compact .slms-card-meta,
.slms-cx-grid.is-compact .slms-ccard-facts,
.slms-cx-grid.is-compact .slms-cx-cta,
.slms-cx-grid.is-compact .slms-ccard-badge {
  display: none;
}
.slms-cx-grid.is-compact .slms-card-title {
  font-size: 0.92rem;
}
.slms-cx-grid.is-compact .slms-ccard-level {
  top: 8px;
  right: 8px;
  font-size: 0.7rem;
}
.slms-cx-grid.is-compact .slms-now {
  font-size: 0.92rem;
}

/* Show more */
.slms-wrap .slms-cx-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 32px 0 0;
}
.slms-cx-more:empty {
  display: none;
}
.slms-cx-more .slms-pager-info {
  font-size: 0.88rem;
  opacity: var(--slms-muted);
}
.slms-wrap .slms-cx-morebtn {
  min-height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
}

/* Narrow screens: the side menu becomes a drawer */
@media (max-width: 900px) {
  .slms-cx-layout,
  .slms-cx.is-rail-hidden .slms-cx-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .slms-cx .slms-cx-rail,
  .slms-cx.is-rail-hidden .slms-cx-rail {
    display: flex;
    position: fixed;
    top: var(--wp-admin--admin-bar--height, 0px);
    bottom: 0;
    inset-inline-start: 0;
    z-index: 100001;
    width: min(300px, 86vw);
    max-height: none;
    border-radius: 0 20px 20px 0;
    background: var(--slms-surface);
    border-inline-end: 1px solid var(--slms-line);
    transform: translateX(-105%);
    visibility: hidden;
    transition:
      transform 0.22s ease,
      visibility 0.22s;
  }
  [dir="rtl"] .slms-cx .slms-cx-rail {
    transform: translateX(105%);
    border-radius: 20px 0 0 20px;
  }
  .slms-cx.is-rail-open .slms-cx-rail {
    transform: none;
    visibility: visible;
  }
  .slms-cx-railhead {
    display: flex;
  }
  .slms-cx [data-slms-rail-collapse] {
    visibility: hidden;
  }
  .slms-cx-shade:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(10, 12, 14, 0.5);
  }
  .slms-cx-pills {
    flex-wrap: wrap;
  }
  .slms-cx-pillrow {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .slms-cx-pillrow::-webkit-scrollbar {
    display: none;
  }
  .slms-cx-pop {
    position: fixed;
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 12px;
    inset-inline: 12px;
    max-width: none;
    min-width: 0;
    border-radius: 18px;
  }
}
@media (max-width: 600px) {
  .slms-wrap .slms-cx-search {
    min-height: 50px;
    padding-inline-start: 16px;
  }
  .slms-wrap .slms-cx-search input,
  .slms-wrap .slms-cx-search input:focus {
    height: 48px;
    font-size: 1rem;
  }
  .slms-cx-banner {
    min-height: 0;
    padding: 24px 48px 24px 22px;
    text-align: start;
    justify-content: flex-start;
  }
  .slms-cx-bannerbody {
    align-items: flex-start;
  }
  .slms-cx-bannertitle {
    font-size: 1.25rem;
  }
  .slms-wrap .slms-cx-title {
    font-size: 1.2rem;
  }
  .slms-wrap .slms-cx-grid {
    grid-template-columns: 1fr;
  }
  .slms-cx-grid.is-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .slms-cx-density {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .slms-cx-rail,
  .slms-cx-pillbtn svg,
  .slms-cx-card .slms-card-img::before {
    transition: none;
  }
  .slms-cx-chips {
    scroll-behavior: auto;
  }
}
/* The menu and the courses share the usual page width, so the page lines up with the theme's header. */
.slms-wrap.slms-cx {
  max-width: var(--slms-width, 1120px);
}
.is-layout-constrained > .slms-wrap.slms-cx {
  max-width: min(var(--slms-width, 1120px), 100%);
}
@media (min-width: 901px) {
  .slms-cx-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
  }
}
/* My courses table: badges, amounts and progress stay on one line. */
.slms-table td.slms-nowrap,
.slms-table .slms-status {
  white-space: nowrap;
}
.slms-table .slms-status {
  display: inline-flex;
  align-items: center;
  line-height: 1.3;
}
.slms-progcell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}
.slms-progcell .slms-bar {
  flex: 1 1 auto;
  min-width: 80px;
  margin: 0;
}
.slms-progcell > span {
  flex: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.slms-table td.slms-actions {
  white-space: nowrap;
}
