/* Live Campus page components, built only from tokens.css so they follow the school colour and
   dark mode. The signed-in pages take their layout from Croma Campus (welcome card, tiles, rings,
   attendance calendar, batch cards, recordings, support counters) in Civadelia's visual language. */

/* ---- generic ------------------------------------------------------------------------------- */
.lc-grid { display: grid; gap: 16px; }
.lc-grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lc-grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lc-grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lc-dash { display: grid; gap: 16px; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
@media (max-width: 1100px) { .lc-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lc-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 959px) { .lc-dash { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .lc-grid-2, .lc-grid-3 { grid-template-columns: 1fr; } .lc-grid-4 { grid-template-columns: 1fr 1fr; } }

.lc-panel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.lc-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border-subtle); }
.lc-panel-head h2, .lc-panel-head h3 { font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.lc-panel-head h2 .lc-icon, .lc-panel-head h3 .lc-icon { color: var(--brand-text); }
.lc-panel-body { padding: 16px; }
.lc-panel-foot { padding: 12px 16px; border-top: 1px solid var(--border-subtle); }
.lc-muted { color: var(--text-muted); }
.lc-small { font-size: var(--fs-sm); }
.lc-section-title { font-size: 17px; font-weight: 700; margin: 8px 0 12px; }
.lc-h1 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 750; letter-spacing: -.02em; }
.lc-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lc-spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lc-stack-sm > * + * { margin-top: 8px; }
.lc-list-plain { list-style: none; margin: 0; padding: 0; }

/* Status pills */
.lc-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.lc-pill-ok { background: var(--success-soft); color: var(--success); border-color: var(--success-border); }
.lc-pill-bad { background: var(--danger-soft); color: var(--danger-text); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.lc-pill-warn { background: var(--warning-soft); color: var(--warning-text); border-color: var(--warning-border); }
.lc-pill-info { background: var(--info-soft); color: var(--info-text); }
.lc-pill-brand { background: var(--brand-soft); color: var(--brand-text); }
.lc-pill-muted { background: var(--surface-2); color: var(--text-muted); }

/* Notice banner (the "recordings are deleted" note) */
.lc-banner { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--warning-border); border-radius: var(--radius-md); background: var(--warning-soft); color: var(--warning-text); font-size: 13.5px; }
.lc-banner .lc-icon { flex: none; }
.lc-banner-info { border-color: color-mix(in srgb, var(--info-text) 30%, transparent); background: var(--info-soft); color: var(--info-text); }

/* ---- student dashboard ----------------------------------------------------------------------- */
.lc-welcome {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; border-radius: var(--radius-lg); color: var(--on-brand);
  background: linear-gradient(120deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 70%, var(--lc-accent-1, #0E86C3)) 100%);
}
.lc-welcome::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.lc-welcome h2 { font-size: 22px; font-weight: 750; }
.lc-welcome p { margin: 2px 0 12px; opacity: .9; }
.lc-welcome ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.lc-welcome li { display: flex; align-items: center; gap: 8px; }
.lc-welcome .lc-avatar { width: 88px; height: 88px; font-size: 34px; background: rgba(255, 255, 255, .18); color: inherit; border: 3px solid rgba(255, 255, 255, .55); position: relative; z-index: 1; }
@media (max-width: 639px) { .lc-welcome .lc-avatar { display: none; } }

.lc-help { display: flex; flex-direction: column; justify-content: center; gap: 8px; text-align: center; }
.lc-help h3 { font-size: 16px; }

.lc-tile { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-top: 3px solid var(--lc-tile, var(--brand)); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); text-decoration: none; }
.lc-tile:hover { border-color: var(--border-strong); border-top-color: var(--lc-tile, var(--brand)); }
.lc-tile-letter { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 9px; background: var(--lc-tile, var(--brand)); color: #fff; font-weight: 800; font-size: 18px; }
.lc-tile strong { display: block; font-size: 14px; }
.lc-tile small { display: block; color: var(--text-muted); font-size: 12px; }
.lc-tile .lc-tile-go { margin-left: auto; font-size: 12px; color: var(--brand-text); font-weight: 600; }

/* Rings: attendance % and completion % (conic gradient, value in --p) */
.lc-ring { --p: 0; --c: var(--brand); position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--border-subtle) 0); }
.lc-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface); }
.lc-ring b { position: relative; font-size: 14px; font-variant-numeric: tabular-nums; }
.lc-ring-sm { width: 58px; height: 58px; }
.lc-ring-sm::before { inset: 6px; }
.lc-ring-sm b { font-size: 12px; }
.lc-ring-attend { --c: #e5484d; }
.lc-ring-done { --c: var(--lc-accent-1, #0E86C3); }
.lc-ring-box { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 12px; color: var(--text-muted); }

/* Attendance calendar */
.lc-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.lc-cal-head strong { font-size: 15px; }
.lc-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 12.5px; }
.lc-cal .dow { color: var(--text-faint); font-size: 11px; padding: 4px 0; }
.lc-cal .day { padding: 7px 0; border-radius: 8px; font-variant-numeric: tabular-nums; }
.lc-cal .day.out { color: var(--text-faint); opacity: .5; }
.lc-cal .day.today { outline: 2px solid var(--brand-text); outline-offset: -2px; font-weight: 700; }
.lc-cal .day.present { background: var(--success-soft); color: var(--success); font-weight: 700; }
.lc-cal .day.absent { background: var(--danger-soft); color: var(--danger-text); font-weight: 700; }
.lc-cal .day.class { background: var(--brand-soft); color: var(--brand-text); }
.lc-cal-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--text-muted); }
.lc-cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

/* Payment summary */
.lc-money { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lc-money div { padding: 12px; border-radius: var(--radius-md); background: var(--surface-2); text-align: center; }
.lc-money small { display: block; color: var(--text-muted); font-size: 12px; }
.lc-money strong { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }

/* Ongoing course card with the big Join button */
.lc-course-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.lc-course-card h3 { font-size: 15px; }
.lc-batch-name { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); word-break: break-all; }
.lc-rings { display: flex; gap: 14px; }
.lc-join { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--radius-md);
  background: var(--success); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; }
html[data-civa-theme="dark"] .lc-join { color: #06281a; }
.lc-join:hover { filter: brightness(1.05); }
.lc-join .lc-live-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: lc-pulse 1.4s infinite; }
@keyframes lc-pulse { 50% { opacity: .35; } }
@media (max-width: 639px) { .lc-course-card { grid-template-columns: 1fr; } .lc-join { width: 100%; } }

/* Batch card: Croma "Batch Name / Course / Timing / Start date / Mentor" with rings on the right */
.lc-batch { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.lc-batch-main { padding: 16px; display: grid; gap: 10px; }
.lc-batch-side { padding: 16px; border-left: 1px solid var(--border-subtle); display: grid; gap: 8px; align-content: start; }
.lc-batch-side h4 { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.lc-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 13px; }
.lc-facts div { display: flex; align-items: center; gap: 8px; }
.lc-facts .lc-icon { color: var(--brand-text); }
.lc-facts b { font-weight: 600; }
@media (max-width: 759px) { .lc-batch { grid-template-columns: 1fr; } .lc-batch-side { border-left: 0; border-top: 1px solid var(--border-subtle); } .lc-facts { grid-template-columns: 1fr; } }

/* Accordion (modules, study material per course) */
.lc-accordion { display: grid; gap: 8px; }
.lc-acc { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.lc-acc > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; font-weight: 600; font-size: 14px; }
.lc-acc > summary::-webkit-details-marker { display: none; }
.lc-acc > summary:focus-visible { outline: 2px solid var(--brand-text); outline-offset: -2px; border-radius: var(--radius-md); }
.lc-acc > summary .lc-plus { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 16px; line-height: 1; }
.lc-acc[open] > summary .lc-plus::before { content: "−"; }
.lc-acc:not([open]) > summary .lc-plus::before { content: "+"; }
.lc-acc > summary small { color: var(--text-muted); font-weight: 500; }
.lc-acc-body { padding: 0 14px 14px; }
.lc-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lc-topics li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; font-size: 13.5px; }
.lc-topics li:nth-child(odd) { background: var(--surface-2); }
.lc-topics .lc-tick { width: 18px; height: 18px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 11px; }
.lc-topics .done .lc-tick { background: var(--success); color: #fff; }
.lc-topics .todo .lc-tick { border: 2px solid var(--border-strong); }

/* Progress bar: completed and pending topics */
.lc-progress { height: 14px; border-radius: 7px; background: var(--danger-soft); overflow: hidden; }
.lc-progress span { display: block; height: 100%; background: var(--success); border-radius: 7px; min-width: 2px; }
.lc-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; margin-top: 8px; }
.lc-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }
.lc-totals { display: grid; gap: 0; font-size: 13.5px; }
.lc-totals div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--border-subtle); }
.lc-totals div:last-child { border-bottom: 0; }

/* Tables in Croma style use the shared ui-table; the header gets the brand colour */
.lc-table-brand thead th { background: var(--brand); color: var(--on-brand) !important; border-color: var(--brand) !important; }
html[data-civa-theme="dark"] .lc-table-brand thead th { background: color-mix(in srgb, var(--brand) 55%, var(--surface)); color: #fff !important; }
.lc-cell-topics { max-width: 420px; font-size: 12.5px; color: var(--text-muted); }

/* Recordings list */
.lc-rec { display: grid; grid-template-columns: 34px 110px 96px minmax(0, 1fr) 80px 48px minmax(150px, auto); align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); font-size: 13px; }
.lc-rec:last-child { border-bottom: 0; }
.lc-rec .lc-num { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 50%; font-size: 12px; }
.lc-play { display: grid; place-items: center; width: 88px; height: 50px; border-radius: 8px; background: linear-gradient(135deg, #2b313b, #11151b); color: #fff; text-decoration: none; }
.lc-play:hover { filter: brightness(1.2); }
.lc-play .lc-icon { width: 26px; height: 26px; fill: #fff; stroke: none; }
.lc-expiry { color: var(--danger-text); font-weight: 600; font-size: 12.5px; }
.lc-expired { color: var(--text-faint); }
@media (max-width: 959px) {
  .lc-rec { grid-template-columns: 30px 88px minmax(0, 1fr) 44px; }
  .lc-rec .lc-rec-date { grid-column: 3; grid-row: 1; font-weight: 600; }
  .lc-rec .lc-rec-topics { grid-column: 2 / -1; }
  .lc-rec .lc-rec-len { grid-column: 3; grid-row: 2; }
  .lc-rec .lc-rec-expiry { grid-column: 2 / -1; }
  .lc-rec .lc-play { grid-row: span 2; }
}

/* Support counters (New / In progress / Reopened / Solved) */
.lc-counter { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-top: 3px solid var(--lc-tile, var(--brand)); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); text-decoration: none; }
.lc-counter b { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 8px; background: var(--lc-tile, var(--brand)); color: #fff; font-size: 17px; }
.lc-counter.is-active { box-shadow: 0 0 0 2px var(--lc-tile, var(--brand)); }
.lc-c-new { --lc-tile: #b42318; }
.lc-c-progress { --lc-tile: #dc6803; }
.lc-c-reopen { --lc-tile: #1570ef; }
.lc-c-solved { --lc-tile: #079455; }

/* Message thread */
.lc-thread { display: grid; gap: 10px; }
.lc-msg { max-width: 760px; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--surface-2); }
.lc-msg.staff { background: var(--brand-soft); margin-left: auto; }
.lc-msg header { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }

/* Civadelia save bar (general setup .gs-savebar) */
.lc-savebar { position: sticky; bottom: 12px; z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 11px; background: color-mix(in srgb, var(--surface) 96%, transparent); box-shadow: 0 10px 30px rgba(28, 48, 41, .10); backdrop-filter: blur(8px); }
.lc-savebar span { color: var(--text-muted); font-size: var(--fs-xs); }
.lc-savebar-actions { display: flex; gap: 8px; }
@media (max-width: 639px) { .lc-savebar { flex-direction: column; align-items: stretch; } .lc-savebar-actions > * { flex: 1; } }

/* KPI tiles in the workspace */
.lc-kpi { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.lc-kpi small { display: block; color: var(--text-muted); font-size: 12px; }
.lc-kpi strong { display: block; font-size: 24px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lc-kpi span { font-size: 12px; color: var(--text-muted); }

/* Forms: a narrow column for simple forms */
.lc-form { max-width: 760px; }
.lc-form .ui-field { margin-bottom: 14px; }
.lc-days { display: flex; gap: 6px; flex-wrap: wrap; }
.lc-days label { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-full); font-size: 13px; cursor: pointer; }
.lc-days input:checked + span { color: var(--brand-text); font-weight: 700; }

/* Table that turns into cards on phones */
@media (max-width: 759px) {
  .lc-cards-sm thead { display: none; }
  .lc-cards-sm, .lc-cards-sm tbody, .lc-cards-sm tr, .lc-cards-sm td { display: block; width: 100%; }
  .lc-cards-sm tr { margin-bottom: 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); padding: 6px 0; }
  .lc-cards-sm td { display: flex; justify-content: space-between; gap: 12px; border: 0 !important; padding: 6px 12px !important; text-align: right; }
  .lc-cards-sm td::before { content: attr(data-label); color: var(--text-muted); font-size: 12px; text-align: left; }
}

/* Live room page */
.lc-room { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: auto 1fr auto; background: #0e1116; color: #fff; }
.lc-room-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.lc-room-rec { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 12px; background: rgba(229, 72, 77, .18); color: #ff9592; font-size: 12px; font-weight: 700; }
.lc-room-rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; animation: lc-pulse 1.4s infinite; }
.lc-room-stage { display: grid; gap: 8px; padding: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-content: center; overflow: auto; }
.lc-tile-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #1c2129; }
.lc-tile-video video { width: 100%; height: 100%; object-fit: cover; }
.lc-tile-video span { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .55); font-size: 12px; }
.lc-room-bar { display: flex; justify-content: center; gap: 10px; padding: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.lc-room-bar button { min-width: 48px; height: 44px; padding: 0 14px; border: 0; border-radius: 22px; background: #2b313b; color: #fff; font: inherit; cursor: pointer; }
.lc-room-bar button.off { background: #e5484d; }
.lc-room-bar .lc-leave { background: #e5484d; }
.lc-room-msg { grid-column: 1 / -1; max-width: 560px; margin: auto; text-align: center; display: grid; gap: 12px; justify-items: center; }
.lc-room-msg h1 { font-size: 24px; }
.lc-room-msg p { opacity: .8; margin: 0; }
.lc-room-error { color: #ff9592; min-height: 1em; }
.lc-with-aside { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
@media (max-width: 959px) { .lc-with-aside { grid-template-columns: 1fr; } }
.lc-row > .ui-select, .lc-row > .ui-input { width: auto; min-width: 0; flex: 0 1 220px; }
.lc-image-input { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lc-image-input img { height: 48px; width: auto; max-width: 160px; object-fit: contain; padding: 4px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.lc-tile { min-width: 0; }
.lc-tile strong, .lc-tile small { overflow-wrap: anywhere; }
@media (max-width: 479px) { .lc-grid-4 { grid-template-columns: 1fr; } }
.td-banner-link { margin-left: 8px; color: inherit; font-weight: 700; text-decoration: underline; }

/* Course and batch switcher: square buttons with a solid fill. The chosen one is in the school colour. */
.lc-switcher { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.lc-switch-btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 0;
  background: #e4e7ec; color: #1d2939; font-size: 14px; font-weight: 600; line-height: 1.25; text-decoration: none; cursor: pointer;
}
.lc-switch-btn:hover { background: #d0d5dd; color: #101828; }
.lc-switch-btn:focus-visible { outline: 2px solid var(--brand-text); outline-offset: 2px; }
.lc-switch-btn.is-current, .lc-switch-btn.is-current:hover { background: var(--brand); color: var(--on-brand); }
html[data-civa-theme="dark"] .lc-switch-btn { background: #344054; color: #f2f4f7; }
html[data-civa-theme="dark"] .lc-switch-btn:hover { background: #475467; color: #fff; }
html[data-civa-theme="dark"] .lc-switch-btn.is-current { background: var(--brand); color: var(--on-brand); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }

/* A long list of courses to tick, with a filter (promo codes). */
.lc-course-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.lc-course-pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; max-height: 300px; overflow: auto;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }

/* ---- mentor area -------------------------------------------------------------------------------------------- */
/* Tabs (My batches, one batch): underlined links. */
.lc-tabs { display: flex; gap: 2px; margin: 0 0 16px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: thin; }
.lc-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 3px solid transparent; margin-bottom: -1px;
  color: var(--text-muted); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.lc-tabs a:hover { color: var(--text); background: var(--surface-hover); }
.lc-tabs a.is-active { color: var(--brand-text); border-bottom-color: var(--brand); }
.lc-tabs a:focus-visible { outline: 2px solid var(--brand-text); outline-offset: -2px; }
.lc-tab-count { min-width: 22px; padding: 1px 7px; border-radius: 10px; background: var(--surface-2); color: var(--text-muted); font-size: 12px; text-align: center; }
.lc-tabs a.is-active .lc-tab-count { background: var(--brand); color: var(--on-brand); }
.lc-batch-head { margin: 0 0 12px; }
.lc-batch-head h1 { font-size: 20px; color: var(--text); }
.lc-batch-kicker { margin: 0 0 2px; color: var(--text-muted); font-size: 13px; font-weight: 600; }
/* Next live class: the big card on the dashboard. */
.lc-next { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 0 0 16px; padding: 22px 24px;
  border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000)); color: var(--on-brand); }
.lc-next h2 { font-size: 22px; font-weight: 750; margin: 4px 0 2px; }
.lc-next p { margin: 0; opacity: .92; }
.lc-next .lc-batch-name { color: inherit; opacity: .9; }
.lc-next ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; padding: 0; font-size: 14px; }
.lc-next li { display: inline-flex; align-items: center; gap: 6px; }
.lc-next-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.lc-next-action { display: grid; gap: 8px; justify-items: start; }
.lc-next-action small { max-width: 240px; opacity: .9; }
.lc-next-link { color: inherit; font-size: 13.5px; font-weight: 600; }
.lc-start { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius-md);
  background: var(--success); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
html[data-civa-theme="dark"] .lc-start { color: #06281a; }
.lc-start:hover { filter: brightness(1.08); }
.lc-start:disabled { background: var(--surface-2); color: var(--text-muted); cursor: not-allowed; filter: none; }
.lc-start:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 2px; }
.lc-btn-big { min-height: 56px; padding: 0 28px; font-size: 17px; }
.lc-btn-big .lc-icon { width: 22px; height: 22px; }
.lc-next .lc-start { box-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.lc-next .lc-start:disabled { background: rgba(255, 255, 255, .2); color: inherit; opacity: .85; }
.lc-next .lc-start:focus-visible { outline-color: #fff; }
.lc-day-grid { display: grid; gap: 16px; grid-template-columns: 1.6fr 1fr; }
@media (max-width: 899px) { .lc-day-grid { grid-template-columns: 1fr; } .lc-next { padding: 18px; } .lc-next h2 { font-size: 19px; } }
.lc-line { padding: 10px 0; border-bottom: 1px solid var(--border-subtle); gap: 12px; }
.lc-line:last-child { border-bottom: 0; }
.lc-count-link { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); text-decoration: none; }
.lc-count-link strong { font-size: 30px; color: var(--brand-text); line-height: 1; }
.lc-count-link:hover { border-color: var(--brand-text); background: var(--brand-faint); }
/* Course dropdown with a search box (My batches). */
.lc-combo { position: relative; }
.lc-combo > summary { list-style: none; max-width: 320px; }
.lc-combo > summary::-webkit-details-marker { display: none; }
.lc-combo > summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-combo-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: var(--z-dropdown); width: min(360px, 86vw); padding: 8px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.lc-combo-pop ul { list-style: none; margin: 8px 0 0; padding: 0; max-height: 300px; overflow: auto; }
.lc-combo-pop a { display: block; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-size: 14px; }
.lc-combo-pop a:hover { background: var(--surface-hover); }
.lc-combo-pop a[aria-current] { background: var(--brand-soft); color: var(--brand-text); font-weight: 650; }
@media (max-width: 640px) { .lc-combo-pop { left: 0; right: auto; } }
/* Attendance grid. */
.lc-att th[scope="row"] { text-align: left; white-space: nowrap; font-weight: 600; }
.lc-att th, .lc-att td { white-space: nowrap; }
.lc-att-cell { text-align: center; }
.lc-att-p, .lc-att-a { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.lc-att-p { background: var(--success-soft); color: var(--success); }
.lc-att-a { background: var(--danger-soft); color: var(--danger-text); }
.lc-topics { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 8px 14px 10px; margin: 0 0 12px; display: grid; gap: 4px; }
.lc-topics legend { padding: 0 6px; font-weight: 700; font-size: 14px; }
/* History of changes after scheduling (mentor, moved/cancelled/extra classes). */
.lc-history { list-style: none; margin: 0; padding: 4px 18px 12px; display: grid; gap: 10px; }
.lc-history li { font-size: 14px; border-left: 3px solid var(--border-subtle); padding-left: 10px; }
.lc-history li span { display: block; color: var(--text-muted); font-size: 13px; margin-top: 2px; }
.lc-cal .day.cancelled { color: var(--text-faint); text-decoration: line-through; background: var(--surface-muted, transparent); }
.lc-changed { display: block; font-size: 12px; color: var(--warning-text, var(--text-muted)); margin-top: 2px; }
.lc-disclose > summary { cursor: pointer; list-style: none; }
.lc-disclose > summary::-webkit-details-marker { display: none; }
.lc-disclose > summary::after { content: "Show"; margin-left: 12px; font-size: 13px; color: var(--brand-text); font-weight: 600; }
.lc-disclose[open] > summary::after { content: "Hide"; }
/* "How is it paid?" choices on Add students to batch. */
.lc-choice-group { border: 0; padding: 0; margin: 4px 0 16px; display: grid; gap: 8px; }
.lc-choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); cursor: pointer; }
.lc-choice:has(input:checked) { border-color: var(--brand-text); background: var(--brand-soft); }
.lc-choice input { margin-top: 3px; }
.lc-choice small { display: block; color: var(--text-muted); font-size: 13px; }
[data-for][hidden] { display: none; }
