/* =============================================================================
   tokens.css — LearnX design system. Mobile-first, card-based, light/dark aware.
   Modern, accessible, no framework; pairs with utility classes on the pages.
   ============================================================================= */

/* ---- Design tokens ------------------------------------------------------ */
:root {
  color-scheme: light dark;

  /* Brand */
  --lx-primary: #4f46e5;
  --lx-primary-600: #4338ca;
  --lx-primary-700: #3730a3;
  --lx-accent: #7c3aed;
  --lx-grad: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  --lx-primary-tint: #eef2ff;

  /* Surfaces & text (light) */
  --lx-bg: #f6f7fb;
  --lx-bg-2: #eef0f7;
  --lx-surface: #ffffff;
  --lx-surface-2: #f6f8fc;
  --lx-border: #e6e8ef;
  --lx-border-strong: #d6d9e4;
  --lx-text: #10131c;
  --lx-text-2: #3c4356;
  --lx-muted: #6b7280;

  /* Status */
  --lx-ok: #16a34a;
  --lx-ok-bg: #dcfce7; --lx-ok-fg: #14532d;
  --lx-warn: #d97706;
  --lx-warn-bg: #fef3c7; --lx-warn-fg: #92400e;
  --lx-err: #e11d48;
  --lx-err-bg: #ffe4e6; --lx-err-fg: #9f1239;

  /* Shape & depth */
  --lx-radius: 18px;
  --lx-radius-sm: 12px;
  --lx-radius-lg: 24px;
  --lx-shadow-sm: 0 1px 2px rgba(16,19,28,.06), 0 1px 3px rgba(16,19,28,.05);
  --lx-shadow: 0 2px 6px rgba(16,19,28,.06), 0 12px 28px -8px rgba(16,19,28,.14);
  --lx-shadow-lg: 0 24px 60px -12px rgba(16,19,28,.28);
  --lx-ring: 0 0 0 3px color-mix(in srgb, var(--lx-primary) 35%, transparent);

  --lx-ease: cubic-bezier(.2,.7,.3,1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --lx-primary: #8b93ff;
    --lx-primary-600: #7c84f8;
    --lx-primary-700: #6b74f0;
    --lx-accent: #a78bfa;
    --lx-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --lx-primary-tint: #1e2547;

    --lx-bg: #090c17;
    --lx-bg-2: #0d1120;
    --lx-surface: #141a2c;
    --lx-surface-2: #10152440;
    --lx-border: #253049;
    --lx-border-strong: #33405e;
    --lx-text: #eef1f8;
    --lx-text-2: #c3cbdd;
    --lx-muted: #8b97b2;

    --lx-ok-bg: #0c2c1b; --lx-ok-fg: #86efac;
    --lx-warn-bg: #3a2a0a; --lx-warn-fg: #fcd34d;
    --lx-err-bg: #3a1220; --lx-err-fg: #fda4af;

    --lx-shadow-sm: 0 1px 2px rgba(0,0,0,.5);
    --lx-shadow: 0 2px 8px rgba(0,0,0,.45), 0 16px 40px -12px rgba(0,0,0,.6);
    --lx-shadow-lg: 0 30px 70px -12px rgba(0,0,0,.7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1200px 600px at 100% -10%, color-mix(in srgb, var(--lx-primary) 8%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, color-mix(in srgb, var(--lx-accent) 7%, transparent), transparent 55%),
    var(--lx-bg);
  background-attachment: fixed;
  color: var(--lx-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  line-height: 1.5;
}
::selection { background: color-mix(in srgb, var(--lx-primary) 25%, transparent); }
:where(a) { color: var(--lx-primary-600); }
:where(button, a, input, select, textarea):focus-visible { outline: none; box-shadow: var(--lx-ring); border-radius: 10px; }

/* ---- Layout ------------------------------------------------------------- */
.lx-wrap { max-width: 1120px; margin: 0 auto; padding: 20px 16px 40px; }
.lx-wrap--narrow { max-width: 480px; }

.lx-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--lx-surface) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--lx-border) 70%, transparent);
}
.lx-brand { font-weight: 800; letter-spacing: -.03em; font-size: 19px; display: flex; align-items: center; gap: 8px; }
.lx-brand .lx-x {
  background: var(--lx-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lx-header__spacer { flex: 1; }

/* ---- Cards -------------------------------------------------------------- */
.lx-card {
  background: var(--lx-surface);
  border: 1px solid var(--lx-border);
  border-radius: var(--lx-radius);
  box-shadow: var(--lx-shadow-sm);
  padding: 20px;
}
.lx-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.lx-grid > .lx-card { animation: lx-in .32s var(--lx-ease) both; }
.lx-card--tap { cursor: pointer; transition: transform .16s var(--lx-ease), box-shadow .16s var(--lx-ease), border-color .16s var(--lx-ease); }
.lx-card--tap:hover { transform: translateY(-3px); box-shadow: var(--lx-shadow); border-color: color-mix(in srgb, var(--lx-primary) 45%, var(--lx-border)); }

.lx-title { font-size: clamp(22px, 4vw, 26px); font-weight: 800; letter-spacing: -.03em; margin: 4px 0 2px; }
.lx-sub { color: var(--lx-muted); font-size: 14px; }
.lx-muted { color: var(--lx-muted); }

@keyframes lx-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* ---- Buttons ------------------------------------------------------------ */
.lx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1;
  padding: 12px 18px; border-radius: var(--lx-radius-sm); border: 1px solid var(--lx-border-strong);
  cursor: pointer; background: var(--lx-surface); color: var(--lx-text);
  transition: transform .08s var(--lx-ease), box-shadow .16s var(--lx-ease), background .16s, border-color .16s, filter .16s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.lx-btn:hover { border-color: var(--lx-border-strong); box-shadow: var(--lx-shadow-sm); }
.lx-btn:active { transform: translateY(1px) scale(.99); }
.lx-btn--primary { background: var(--lx-grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--lx-primary) 70%, transparent); }
.lx-btn--primary:hover { filter: brightness(1.06); box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--lx-primary) 75%, transparent); }
.lx-btn--block { width: 100%; }
.lx-btn--sm { padding: 8px 13px; font-size: 13px; border-radius: 10px; }
.lx-btn--google { background: var(--lx-surface); color: var(--lx-text); border: 1px solid var(--lx-border-strong); font-weight: 600; }
.lx-btn--ok { background: var(--lx-ok); color: #fff; border-color: transparent; }
.lx-btn--danger { background: var(--lx-err); color: #fff; border-color: transparent; }
.lx-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* ---- Chips / badges ----------------------------------------------------- */
.lx-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px;
  background: var(--lx-primary-tint); color: var(--lx-primary-600);
  border: 1px solid color-mix(in srgb, var(--lx-primary) 18%, transparent);
}
.lx-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: capitalize; letter-spacing: .01em; }
.lx-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.lx-badge--pending { background: var(--lx-warn-bg); color: var(--lx-warn-fg); }
.lx-badge--active { background: var(--lx-ok-bg); color: var(--lx-ok-fg); }
.lx-badge--disabled { background: var(--lx-err-bg); color: var(--lx-err-fg); }
.lx-badge--admin { background: var(--lx-primary-tint); color: var(--lx-primary-600); }
.lx-badge--teacher { background: color-mix(in srgb, #0d9488 16%, var(--lx-surface)); color: #0d9488; }

/* ---- Course colour coding ----------------------------------------------- */
/* Elements set --lx-cc inline to a course's accent hex (see LX_UI.courseHex).
   Colour is carried by a left stripe + a chip dot so text stays high-contrast
   in both themes. */
.lx-cc-card, .lx-cc-row { position: relative; overflow: hidden; }
/* Full-card / full-row colour wash + a bold left bar so courses read as clearly
   different at a glance. The solid course PILL below is the primary identifier. */
.lx-cc-card { background: color-mix(in srgb, var(--lx-cc, var(--lx-primary)) 14%, var(--lx-surface)); border-color: color-mix(in srgb, var(--lx-cc, var(--lx-primary)) 40%, var(--lx-border)); }
.lx-cc-row { background: color-mix(in srgb, var(--lx-cc, var(--lx-primary)) 10%, var(--lx-surface)); }
.lx-cc-card::before, .lx-cc-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px;
  background: var(--lx-cc, var(--lx-primary));
}
/* Solid, high-contrast course pill — white text on the course colour, like the
   meeting-platform badges. Unmistakable per-course identity. */
.lx-cc-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; line-height: 1.4; max-width: 100%;
  background: var(--lx-cc, var(--lx-primary));
  color: #fff; border: none;
  text-shadow: 0 1px 1px rgba(0,0,0,.28);
}
.lx-cc-chip__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-cc-chip::before { content: none; }
/* Attendance rate bar (reports) */
.lx-bar { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--lx-muted) 22%, transparent); overflow: hidden; margin-top: 6px; max-width: 260px; }
.lx-bar__fill { height: 100%; border-radius: 999px; transition: width .3s var(--lx-ease); }
.lx-bar__fill--ok { background: var(--lx-ok); }
.lx-bar__fill--warn { background: var(--lx-warn); }
.lx-bar__fill--low { background: var(--lx-err); }
.lx-mut { color: var(--lx-muted); }
.lx-ok { color: var(--lx-ok); }
.lx-low { color: var(--lx-err); }

/* Swatch picker (course dialog) */
.lx-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.lx-swatch { width: 30px; height: 30px; border-radius: 9px; border: 2px solid transparent; cursor: pointer; padding: 0; box-shadow: var(--lx-shadow-sm); transition: transform .12s var(--lx-ease); }
.lx-swatch:hover { transform: translateY(-2px); }
.lx-swatch--on { outline: 2px solid var(--lx-text); outline-offset: 2px; }
.lx-swatch--auto { background: conic-gradient(from 210deg, #6366f1, #14b8a6, #22c55e, #f59e0b, #f43f5e, #6366f1); position: relative; }
.lx-swatch--auto::after { content: "A"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); }

/* ---- Forms -------------------------------------------------------------- */
.lx-field { margin-bottom: 15px; }
.lx-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--lx-text-2); }
.lx-input, .lx-select, .lx-textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--lx-radius-sm); font: inherit; font-size: 15px;
  border: 1px solid var(--lx-border-strong); background: var(--lx-surface); color: var(--lx-text);
  transition: border-color .16s, box-shadow .16s;
}
.lx-input::placeholder, .lx-textarea::placeholder { color: color-mix(in srgb, var(--lx-muted) 85%, transparent); }
.lx-input:focus, .lx-select:focus, .lx-textarea:focus { border-color: var(--lx-primary); box-shadow: var(--lx-ring); outline: none; }
.lx-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--lx-muted) 50%), linear-gradient(135deg, var(--lx-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }

/* ---- Rich text editor (e.g. course description) -------------------------- */
.lx-richtext { border: 1px solid var(--lx-border-strong); border-radius: var(--lx-radius-sm); overflow: hidden; background: var(--lx-surface); transition: border-color .16s, box-shadow .16s; }
.lx-richtext:focus-within { border-color: var(--lx-primary); box-shadow: var(--lx-ring); }
.lx-richtext__bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--lx-border); background: var(--lx-surface-2); }
.lx-richtext__btn { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--lx-text-2); font: inherit; font-size: 13px; cursor: pointer; }
.lx-richtext__btn:hover { background: var(--lx-surface); border-color: var(--lx-border-strong); color: var(--lx-text); }
.lx-richtext__edit { min-height: 110px; max-height: 320px; overflow-y: auto; padding: 12px 14px; font-size: 15px; line-height: 1.5; color: var(--lx-text); outline: none; }
.lx-richtext__edit:empty::before { content: attr(data-placeholder); color: color-mix(in srgb, var(--lx-muted) 85%, transparent); }
.lx-richtext__edit p { margin: 0 0 .6em; }
.lx-richtext__edit p:last-child { margin-bottom: 0; }
.lx-richtext__edit ul, .lx-richtext__edit ol { margin: 0 0 .6em; padding-left: 1.4em; }
.lx-richtext__edit a { color: var(--lx-primary-600); }

/* Read-mode rendering of SAVED (server-sanitized) rich text — course cards,
   enrol dialog, etc. Content is trusted (sanitized at write time) so callers
   render it via innerHTML, styled by this class. */
.lx-richtext-view p { margin: 0 0 .5em; }
.lx-richtext-view p:last-child { margin-bottom: 0; }
.lx-richtext-view ul, .lx-richtext-view ol { margin: 0 0 .5em; padding-left: 1.3em; }
.lx-richtext-view a { color: var(--lx-primary-600); text-decoration: underline; }
.lx-richtext-view blockquote { margin: .5em 0; padding-left: .8em; border-left: 3px solid var(--lx-border-strong); color: var(--lx-text-2); }
.lx-richtext-view code { background: var(--lx-surface-2); padding: 1px 5px; border-radius: 5px; font-size: .92em; }
.lx-richtext-view pre { background: var(--lx-surface-2); padding: 8px 10px; border-radius: 8px; overflow-x: auto; }

/* ---- Toast + busy overlay ---------------------------------------------- */
.lx-toast-host { position: fixed; left: 0; right: 0; bottom: max(20px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 80; pointer-events: none; padding: 0 12px; }
.lx-toast { pointer-events: auto; max-width: 92vw; padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 500; color: #fff; box-shadow: var(--lx-shadow-lg); opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .22s var(--lx-ease), transform .22s var(--lx-ease); background: #1f2433; }
.lx-toast--in { opacity: 1; transform: none; }
.lx-toast--ok { background: linear-gradient(135deg, #16a34a, #15803d); }
.lx-toast--err { background: linear-gradient(135deg, #e11d48, #be123c); }
.lx-toast--info { background: linear-gradient(135deg, #334155, #1f2937); }

.lx-busy { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; background: color-mix(in srgb, #0b1020 55%, transparent); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.lx-busy--on { display: flex; animation: lx-in .2s var(--lx-ease); }
.lx-busy__box { background: var(--lx-surface); border: 1px solid var(--lx-border); border-radius: 20px; padding: 26px 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; box-shadow: var(--lx-shadow-lg); }
.lx-busy__label { font-size: 14px; color: var(--lx-muted); }
.lx-spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--lx-primary) 22%, transparent); border-top-color: var(--lx-primary); animation: lx-spin .8s linear infinite; }
@keyframes lx-spin { to { transform: rotate(360deg); } }

/* ---- Footer ------------------------------------------------------------- */
.lx-footer { max-width: 1120px; margin: 36px auto 0; padding: 20px 16px calc(28px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; color: var(--lx-muted); font-size: 12px; border-top: 1px solid var(--lx-border); }
.lx-footer__brand { font-weight: 700; color: var(--lx-text-2); }
.lx-footer__actions { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
.lx-linkbtn { background: none; border: none; color: var(--lx-primary-600); font: inherit; font-size: 13px; cursor: pointer; padding: 0; }
.lx-linkbtn:hover { text-decoration: underline; }
.lx-footer__legal { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 12px; margin-top: 4px; border-top: 1px solid color-mix(in srgb, var(--lx-border) 60%, transparent); }
.lx-footer__legal a { color: var(--lx-muted); }
.lx-footer__legal a:hover { color: var(--lx-primary-600); }
.lx-footer__dev a { color: var(--lx-text-2); font-weight: 600; }

/* ---- State screens ------------------------------------------------------ */
.lx-center { min-height: 72dvh; display: flex; align-items: center; justify-content: center; }
.lx-stack > * + * { margin-top: 12px; }
.lx-rsvp { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.lx-plat { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; line-height: 1.4; }
[hidden] { display: none !important; }

/* Accessibility utilities */
.lx-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lx-skip { position: absolute; left: 12px; top: -56px; z-index: 100; background: var(--lx-surface); color: var(--lx-primary-600); border: 1px solid var(--lx-border-strong); border-radius: 10px; padding: 10px 14px; font-weight: 600; text-decoration: none; transition: top .15s var(--lx-ease); }
.lx-skip:focus-visible { top: 12px; box-shadow: var(--lx-ring); }
/* Reset default heading margins when our display classes are used on real headings */
h1.lx-title, h2.lx-title, h1.lx-hero__title { margin-top: 4px; }
h2.lx-section-h { margin: 0; }

/* Section heading used on the student dashboard */
.lx-section-h { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; color: var(--lx-muted); display: flex; align-items: center; gap: 7px; }
.lx-section-h--live { color: var(--lx-ok); }

/* ---- Sign-in hero ------------------------------------------------------- */
.lx-hero { text-align: center; width: 100%; }
.lx-hero__logo { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 18px; display: grid; place-items: center; background: var(--lx-grad); color: #fff; font-weight: 800; font-size: 30px; letter-spacing: -.04em; box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--lx-primary) 70%, transparent); }
.lx-hero__title { font-size: 27px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 6px; }
.lx-hero__feats { list-style: none; padding: 0; margin: 18px 0 20px; display: grid; gap: 10px; text-align: left; }
.lx-hero__feats li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--lx-text-2); }
.lx-hero__feats li::before { content: "✓"; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--lx-primary-tint); color: var(--lx-primary-600); display: grid; place-items: center; font-size: 12px; font-weight: 800; }

/* ---- Legal prose -------------------------------------------------------- */
.lx-prose { max-width: 760px; }
.lx-prose h2 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin: 26px 0 8px; }
.lx-prose h3 { font-size: 15px; font-weight: 700; margin: 18px 0 6px; }
.lx-prose p, .lx-prose li { color: var(--lx-text-2); font-size: 14.5px; line-height: 1.65; }
.lx-prose ul { padding-left: 20px; margin: 8px 0; }
.lx-prose li { margin: 4px 0; }
.lx-prose a { color: var(--lx-primary-600); }
.lx-prose strong { color: var(--lx-text); }
.lx-prose .lx-updated { color: var(--lx-muted); font-size: 13px; }
.lx-note { background: var(--lx-surface-2); border: 1px solid var(--lx-border); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: var(--lx-text-2); }
.lx-note--warn { background: var(--lx-warn-bg); border-color: color-mix(in srgb, var(--lx-warn) 40%, transparent); color: var(--lx-warn-fg); }
.lx-note--ok { background: var(--lx-ok-bg); border-color: color-mix(in srgb, var(--lx-ok) 40%, transparent); color: var(--lx-ok-fg); }
.lx-note--sm { padding: 9px 12px; font-size: 13px; border-radius: 10px; }
/* Enrolment window has passed: stated plainly, in place of the Enrol button. */
.lx-note--closed { text-align: center; font-weight: 600; color: var(--lx-text-2); }
.lx-note--closed .lx-sub { font-weight: 400; margin-top: 2px; }
/* A card that is still worth reading but can no longer be acted on. */
.lx-scard--muted { opacity: .78; }
.lx-scard--muted:hover { opacity: 1; }

/* Session rows — a class can run as several back-to-back meeting rooms. */
.lx-sess { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--lx-border); border-radius: 10px; background: var(--lx-surface-2); font-size: 13px; }
.lx-sess + .lx-sess { margin-top: 6px; }
.lx-sess__name { font-weight: 650; color: var(--lx-text); }
.lx-sess__when { color: var(--lx-muted); }
.lx-sess__spacer { flex: 1; }
.lx-sess--locked { opacity: .72; }
.lx-lock { font-size: 12px; color: var(--lx-muted); display: inline-flex; align-items: center; gap: 4px; }
.lx-mat { display: flex; align-items: center; gap: 8px; }
/* Expanded "Course details" panel on a student's course card. */
.lx-coursebody { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--lx-border); animation: lx-in .18s var(--lx-ease); }
.lx-coursebody .lx-section-h { margin: 14px 0 6px; font-size: 13px; }
.lx-coursebody .lx-section-h:first-child { margin-top: 0; }
.lx-mat__tag { font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--lx-surface-2); border: 1px solid var(--lx-border); color: var(--lx-muted); white-space: nowrap; }

@media (max-width: 560px) {
  .lx-wrap { padding: 16px 14px 36px; }
  .lx-grid { grid-template-columns: 1fr; gap: 12px; }
}
