/* LCB Classroom. Uses the theme's tokens (style.css) so it reads as part of the site. */

/* 0.4.4 (J.R., 2026-11-01 call: a lighter admin look): the class dashboard and My Lessons stay on a cream page with
   off-white cards even when the computer is in dark mode. Same fonts. Every dark-mode rule in this file is skipped
   under .lcb-light; other pages still follow the computer's setting. */
body.lcb-light {
  color-scheme: light;
  --bg: #f7f3e8; --surface: #fffdf8; --text: #1d2321; --muted: #4a5552; --rule: #ddd5c2;
  --teal: #0e4c5a; --teal-ink: #ffffff; --gold: #c9a227; --gold-soft: #f6ecc8; --link: #0e5a6b; --focus: #0e4c5a;
  --pending-bg: #f1efe8; --pending-edge: #8a8676;
  --border: 2px solid var(--rule);
}
.lcb-light .lcb-card { box-shadow: 0 1px 2px rgba(60, 50, 20, 0.06); }
.lcb-classroom .narrow { max-width: 34rem; margin: 0 auto; }
/* 0.4.42 layout rule (Kit 2026-11-16). Every class page sits in one container: main.lcb-classroom > .wrap, the theme's
   --page width and side padding, the same edges as the header. Inside it, a page is one of two kinds:
   - a single form (sign in, start, join, buy, quote, a message): one centred column, .lcb-panel.narrow;
   - a page of cards (My Lessons, Welcome, the class dashboard, My account): the cards fill the full content width, or
     share it in a grid. A card never sits in a narrow column against the left edge with empty space beside it. */
.lcb-classroom h1 { margin: 0 0 var(--s2); }
.lcb-classroom h2 { font-size: 1.3rem; margin: 0 0 var(--s2); }
.lcb-lede { color: var(--muted); font-size: 1.05rem; margin-bottom: var(--s4); }
.lcb-eyebrow { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 var(--s1); }
.lcb-small { color: var(--muted); font-size: 0.85rem; }
.lcb-block { display: block; }
.lcb-note { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: var(--s2); border-radius: 6px; }
/* 0.4.6 (J.R., 2026-11-02): notices on dark pages are a muted teal, not the dark gold. */
@media (prefers-color-scheme: dark) { body:not(.lcb-light) .lcb-note { background: #15302f; border-left-color: #5fb0bd; } }
.lcb-full { margin: var(--s2) 0; }
.lcb-full p { margin: 0 0 var(--s1); font-weight: 600; }
.lcb-status { min-height: 1.4em; font-size: 0.95rem; }
.lcb-status.is-error { color: #a12a1f; font-weight: 600; }
@media (prefers-color-scheme: dark) { body:not(.lcb-light) .lcb-status.is-error { color: #ff9d8f; } }
.lcb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Feedback next to each button (0.3.0): what it is doing, then how it went. */
.lcb-form-status { margin: 0; font-size: 0.95rem; min-height: 1.4em; }
.lcb-status.is-busy, .lcb-form-status.is-busy { color: var(--muted); }
.lcb-status.is-busy::before, .lcb-form-status.is-busy::before { content: ""; display: inline-block; width: 0.9em; height: 0.9em; margin-right: 0.45em; vertical-align: -0.1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: lcb-spin 0.8s linear infinite; }
.lcb-status.is-ok, .lcb-form-status.is-ok { color: #1d6b3a; font-weight: 600; }
.lcb-status.is-ok::before, .lcb-form-status.is-ok::before { content: "\2713  "; }
.lcb-form-status.is-error { color: #a12a1f; font-weight: 600; }
@media (prefers-color-scheme: dark) { body:not(.lcb-light) .lcb-status.is-ok, body:not(.lcb-light) .lcb-form-status.is-ok { color: #8fdca8; } body:not(.lcb-light) .lcb-form-status.is-error { color: #ff9d8f; } }
@keyframes lcb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lcb-status.is-busy::before, .lcb-form-status.is-busy::before { animation: none; } }
.lcb-submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); margin-top: var(--s1); }
.lcb-submit .button { margin-top: 0; }
.lcb-field { display: grid; gap: 4px; }
.lcb-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--s2); }
.lcb-fields-3 { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.lcb-field-error { margin: 0; color: #a12a1f; font-size: 0.9rem; font-weight: 600; }
@media (prefers-color-scheme: dark) { body:not(.lcb-light) .lcb-field-error { color: #ff9d8f; } }
.lcb-form [aria-invalid="true"] { border-color: #a12a1f; box-shadow: 0 0 0 1px #a12a1f; }
.lcb-form .button[disabled], .lcb-submit .button[disabled] { opacity: 0.75; }

.lcb-form { display: grid; gap: var(--s1); margin: var(--s3) 0; }
.lcb-classroom [hidden] { display: none !important; }
.lcb-form label { font-weight: 600; }
.lcb-form input[type="email"], .lcb-form input[type="text"], .lcb-form input[type="number"], .lcb-form input[type="tel"], .lcb-form textarea {
  font: inherit; font-size: 1rem; padding: 0.7em 0.8em; border: var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text); width: 100%; box-sizing: border-box;
}
.lcb-form input:focus-visible, .lcb-form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lcb-form .button { justify-self: start; margin-top: var(--s1); border: 0; cursor: pointer; font: inherit; }
.lcb-form fieldset { border: 0; padding: 0; margin: 0 0 var(--s2); display: grid; gap: var(--s1); }
.lcb-form legend { font-weight: 600; margin-bottom: var(--s1); }
.lcb-choice { display: flex; gap: var(--s1); align-items: flex-start; font-weight: 400 !important; padding: var(--s2); border: var(--border); border-radius: 8px; background: var(--surface); cursor: pointer; }
.lcb-choice input { margin-top: 0.35em; }
.lcb-inline { display: flex !important; flex-wrap: wrap; gap: var(--s2) !important; }
.lcb-inline label { font-weight: 400; }
.lcb-total { font-weight: 600; min-height: 1.4em; margin: var(--s1) 0 0; }

.lcb-link { background: none; border: 0; padding: 0; color: var(--link); font: inherit; font-size: 0.95rem; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.lcb-danger { color: #a12a1f; }
@media (prefers-color-scheme: dark) { body:not(.lcb-light) .lcb-danger { color: #ff9d8f; } }

.lcb-or { display: flex; align-items: center; gap: var(--s2); color: var(--muted); margin: var(--s3) 0 0; }
.lcb-or::before, .lcb-or::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.lcb-google { min-height: 44px; }
/* 0.4.7: "Are you 13 or older?" on Start learning free, before the sign-in buttons. */
.lcb-age { margin: var(--s3) 0; }
.lcb-age-q { font-size: 1.2rem; font-weight: 600; margin: 0 0 var(--s2); }
.lcb-age-buttons { display: flex; gap: var(--s2); flex-wrap: wrap; }
.lcb-age-buttons .button { min-height: 48px; min-width: 7rem; border: 0; cursor: pointer; font: inherit; font-size: 1.05rem; }
.lcb-age-no { margin: 0; font-size: 1.05rem; }
/* 0.4.4 (Foreman F4 problem 2): on a phone the privacy choices card covers the lower half of the first view, so the
   sign-in pages sit tighter there and the email box stays above it. */
@media (max-width: 480px) {
  .lcb-signin .lcb-or { margin-top: var(--s2); }
  .lcb-signin .lcb-form { margin: var(--s2) 0; }
  .lcb-panel .lcb-lede { margin-bottom: var(--s3); }
  .page-main.lcb-view-start, .page-main.lcb-view-signin, .page-main.lcb-view-join { padding-top: var(--s4); }
  .lcb-signin .lcb-or { font-size: 0.9rem; }
}

.lcb-dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s2); }
.lcb-head-actions { display: flex; gap: var(--s3); align-items: center; }
.lcb-card { background: var(--surface); border: var(--border); border-radius: 12px; padding: var(--s3); margin-bottom: var(--s3); scroll-margin-top: var(--s3); }
.lcb-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s1) var(--s3); flex-wrap: wrap; }
.lcb-card-links { display: flex; gap: var(--s1) var(--s3); flex-wrap: wrap; margin: 0 0 var(--s2); }
.lcb-sub { font-size: 1.05rem; margin: var(--s3) 0 var(--s1); }

/* 0.4.4: class roster upload. The file input stays focusable; its label is the button. */
.lcb-upload { border-bottom: 1px solid var(--rule); padding-bottom: var(--s3); }
.lcb-upload p { margin: 0 0 var(--s1); }
.lcb-example { border-collapse: collapse; font-size: 0.9rem; margin: var(--s1) 0 var(--s2); }
.lcb-example th, .lcb-example td { border: 1px solid var(--rule); padding: 6px 12px; text-align: left; }
.lcb-example th { font-weight: 700; background: var(--gold-soft); }
.lcb-roster-form { margin: var(--s2) 0 0; }
.lcb-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.lcb-roster-form label.button { justify-self: start; cursor: pointer; font-weight: 600; min-height: 48px; display: inline-flex; align-items: center; }
.lcb-file:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.lcb-roster-result:empty { display: none; }
.lcb-roster-result { border: var(--border); border-radius: 8px; padding: var(--s2); display: grid; gap: var(--s1); }
.lcb-roster-result.is-error { border-color: #a12a1f; }
.lcb-roster-result p, .lcb-roster-result ul { margin: 0; }
.lcb-roster-result ul { padding-left: 1.2em; }
.lcb-roster-result .lcb-submit { margin-top: 0; }
@media (max-width: 480px) { .lcb-example th, .lcb-example td { padding: 4px 6px; } .lcb-example { font-size: 0.8rem; } }

/* Cards stop below the top bar when a link or a #hash opens them. */
.lcb-dash .lcb-card { scroll-margin-top: var(--s2); }
/* Review 2026-11-05: keep anything focused (Tab, Shift+Tab, a status line) clear of the bar and the Save row. */
/* 0.4.17: the sticky top bar is about 60px; on a phone it can take two rows (see the drawer block). */
html:has(.lcb-dash[data-dash="admin"]) { scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 84px); scroll-padding-bottom: 120px; }
.lcb-card h2[tabindex="-1"]:focus { outline: none; }
.lcb-card h2[tabindex="-1"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.button.lcb-button-quiet { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
@media (prefers-color-scheme: dark) { body:not(.lcb-light) .button.lcb-button-quiet { color: var(--link); box-shadow: inset 0 0 0 2px var(--link); } }

/* Setup steps: shown until a learner is invited and a lesson is assigned. */
/* 0.4.14 (Kit, 2026-11-04: "I want the thank you box to be changed as well"): a calm cream card like the others,
   no gold fill or stripe. After payment a teal check leads; the two steps are pills that turn quiet when done. */
.lcb-setup { display: flex; align-items: flex-start; gap: var(--s2); background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: var(--s3); margin-bottom: var(--s3); box-shadow: 0 1px 2px rgba(14, 76, 90, 0.05), 0 10px 24px -18px rgba(14, 76, 90, 0.45); }
.lcb-setup[hidden] { display: none; }
.lcb-setup-mark { flex: none; width: 2rem; height: 2rem; color: var(--teal); }
.lcb-setup-body { min-width: 0; }
.lcb-setup p { margin: 0 0 var(--s2); color: var(--muted); }
.lcb-setup p strong { display: block; margin-bottom: 0.2em; color: var(--text); font-size: 1.15rem; line-height: 1.3; }
.lcb-setup ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); }
.lcb-setup li { display: flex; align-items: center; gap: 0.55em; min-height: 44px; box-sizing: border-box; padding: 0.35em 1em 0.35em 0.6em; border: 1px solid var(--rule); border-radius: var(--radius, 999px); background: var(--bg); }
.lcb-setup li a { font-weight: 600; text-underline-offset: 0.2em; }
.lcb-setup li.is-done { background: transparent; }
.lcb-setup li.is-done a { color: var(--muted); font-weight: 400; }
@media (max-width: 600px) { .lcb-setup { padding: var(--s2); } .lcb-setup-mark { width: 1.75rem; height: 1.75rem; } }

.lcb-attention { background: #fbe9e6; border-left: 4px solid #a12a1f; padding: 0.6em var(--s2); border-radius: 6px; margin: 0 0 var(--s2); }
@media (prefers-color-scheme: dark) { body:not(.lcb-light) .lcb-attention { background: #3a1f1b; border-left-color: #ff9d8f; } }
/* An unanswered invite, kept apart from "needs help" (Kit, 2026-10-28): gold, not red. */
.lcb-invite-due { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 0.6em var(--s2); border-radius: 6px; margin: 0 0 var(--s2); }
.lcb-invite-due .lcb-small { margin-top: 0.15em; }
.lcb-key { margin: var(--s2) 0 0; }

/* Roster tables. Every cell stays a table cell, so rows, dividers and the actions line up. */
.lcb-table-wrap { overflow-x: auto; position: relative; } /* relative: screen-reader-only labels stay inside the scroll box */
.lcb-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.lcb-table th, .lcb-table td { text-align: left; padding: 0.55em 0.75em 0.55em 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.lcb-table th { color: var(--muted); font-weight: 600; font-size: 0.85rem; vertical-align: bottom; }
.lcb-table th:last-child, .lcb-table td:last-child { padding-right: 0; }
.lcb-table .lcb-col-actions { text-align: right; white-space: nowrap; }
.lcb-row-actions { display: inline-flex; gap: var(--s2); align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.lcb-table tr.is-attention td:first-child { box-shadow: inset 4px 0 0 #a12a1f; padding-left: 0.75em; }
.lcb-tag { display: inline-block; font-size: 0.75rem; background: var(--gold-soft); border-radius: 999px; padding: 0.1em 0.6em; margin: 0.3em 0.3em 0 0; }
.lcb-tag.is-warn { background: #fbe9e6; color: #8a2419; font-weight: 700; margin-top: 0; }
.lcb-tag.is-ok { background: #e3f1e7; color: #1d6b3a; font-weight: 700; margin-top: 0; }
.lcb-nowrap { white-space: nowrap; }
/* Learners table (Kit, 2026-10-29): set column widths, long emails wrap inside their own column,
   every row's actions in the same place, dates and short labels never break. */
.lcb-email { overflow-wrap: break-word; }
/* 0.4.3 (Foreman P2): the teachers table shares these, so its Send invite again reads the same. */
.lcb-roster .lcb-tag.is-due { white-space: normal; border-radius: 6px; }
.lcb-roster .lcb-row-actions { white-space: nowrap; flex-wrap: nowrap; }
.lcb-roster td .lcb-link.lcb-block { margin-top: 0.15em; padding: 0; text-align: left; }
@media (min-width: 960px) {
  /* Teachers table (0.4.3): Teacher and Status line up with the learners table above it. */
  .lcb-teachers { table-layout: fixed; }
  .lcb-teachers .lcb-c-learner { width: 26%; }
  .lcb-teachers .lcb-c-status { width: 13%; }
  /* 2026-11-05 (Kit: the desktop table "just cramped"): wider gaps between columns, one short line per cell,
     the actions as before: Report, Move and Remove (Kit, 2026-11-05: "follow what was on the before"). */
  .lcb-learners { table-layout: fixed; }
  .lcb-learners .lcb-c-learner { width: 24%; }
  .lcb-learners .lcb-c-status { width: 12%; }
  .lcb-learners .lcb-c-work { width: 16%; }
  .lcb-learners .lcb-c-score { width: 15%; }
  .lcb-learners .lcb-c-help { width: 17%; }
  .lcb-learners .lcb-c-active { width: 10%; }
  .lcb-learners .lcb-c-actions { width: 6%; }
  /* 2026-11-05 (Kit): no Actions heading; each row ends in one three-dot button with Report, Resend invite, Move
     and Remove in its menu. */
  .lcb-learners-wrap { overflow: visible; }
  .lcb-learners .lcb-col-actions { text-align: right; }
  .lcb-more { position: relative; display: inline-flex; }
  .lcb-more-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -10px 0; padding: 0; border: 0; border-radius: var(--radius, 999px); background: transparent; color: var(--text, inherit); cursor: pointer; }
  .lcb-more-btn svg { fill: currentColor; }
  .lcb-more-btn:hover, .lcb-more.is-open .lcb-more-btn { background: var(--rule); }
  .lcb-more-btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; }
  .lcb-more-list { display: none; position: absolute; right: 0; top: calc(100% + 12px); z-index: 20; min-width: 11rem; flex-direction: column; align-items: stretch; padding: 0.35rem; background: var(--surface, #fffdf6); border: var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(20, 30, 30, 0.16); text-align: left; white-space: nowrap; }
  .lcb-more.is-up .lcb-more-list { top: auto; bottom: calc(100% + 12px); }
  .lcb-more.is-open .lcb-more-list { display: flex; }
  .lcb-more-list .lcb-link { display: block; width: 100%; min-height: 44px; padding: 0 0.85rem; border-radius: 6px; text-align: left; text-decoration: none; line-height: 44px; }
  .lcb-more-list .lcb-link:hover, .lcb-more-list .lcb-link:focus-visible { background: var(--gold-soft); text-decoration: underline; }
  /* Resend lives in the menu on desktop, in the Status cell below 960px. */
  .lcb-learners .lcb-invite-meta [data-resend] { display: none; }
  .lcb-learners th, .lcb-learners td { padding: 0.9rem 1rem 0.9rem 0; }
  .lcb-learners th { padding-top: 0.5rem; padding-bottom: 0.6rem; }
  .lcb-learners tbody tr:hover td { background: var(--gold-soft); }
  .lcb-learners .lcb-email { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lcb-learners .lcb-email wbr { display: none; }
  .lcb-learners .lcb-whole { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lcb-learners .lcb-bar { margin-bottom: 0; }
  .lcb-learners-wrap { overflow: visible; }
}
/* Below desktop the menu's buttons sit inline with Report, as before 2026-11-05. */
@media (max-width: 959px) {
}
/* Laptop widths, 960 to 1279px (the table is 660 to 900px wide beside the sidebar): the Score column folds into
   Assigned work as a small "4 of 7 points" line, so six columns share the room. */
@media (min-width: 960px) and (max-width: 1279px) {
  .lcb-learners col.lcb-c-score, .lcb-learners th:nth-child(4), .lcb-learners td:nth-child(4) { display: none; }
  .lcb-learners .lcb-c-learner { width: 27%; }
  .lcb-learners .lcb-c-status { width: 15%; }
  .lcb-learners .lcb-c-work { width: 21%; }
  .lcb-learners .lcb-c-help { width: 18%; }
  .lcb-learners .lcb-c-active { width: 11%; }
  .lcb-learners .lcb-c-actions { width: 8%; }
  .lcb-learners th, .lcb-learners td { padding-right: 0.75rem; }
  .lcb-learners .lcb-row-actions { flex-direction: column; align-items: flex-end; gap: 0.3em; }
}
@media (min-width: 960px) and (max-width: 1179px) {
  .lcb-teachers .lcb-c-learner { width: 24%; }
  .lcb-teachers .lcb-c-status { width: 14%; }
}
@media (max-width: 959px) {
  .lcb-more-btn, .lcb-more-list .lcb-resend-menu { display: none; }
  .lcb-more, .lcb-more-list { display: contents; }
}
/* Narrow tablets: keep the columns readable and let the table scroll sideways. */
@media (min-width: 721px) and (max-width: 959px) {
  .lcb-learners { min-width: 880px; }
}
.lcb-tag.is-due { white-space: nowrap; background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); color: #5c4400; font-weight: 700; margin-top: 0.15em; }
/* 2026-11-05: invited learners get one chip (grey "Invited", gold "Invite late") and one small line, Sent and Resend. */
.lcb-tag.lcb-status-chip { margin: 0; white-space: nowrap; font-weight: 700; }
.lcb-tag.is-invited { background: var(--pending-bg, #eceae3); color: var(--muted); }
.lcb-invite-meta { margin-top: 0.35em; display: flex; flex-wrap: wrap; column-gap: 0.75em; row-gap: 0.15em; }
.lcb-invite-meta > * { white-space: nowrap; }
.lcb-invite-meta .lcb-link { padding: 0; font-size: inherit; }
@media (max-width: 959px) { .lcb-invite-meta .lcb-link { display: inline-flex; align-items: center; min-height: 44px; } } /* 0.4.19 (review): a finger-sized Resend on phones */
/* The score lines under Assigned work belong to the 960 to 1279px band only, where the Score column folds in. */
.lcb-points { display: none; }
@media (min-width: 960px) and (max-width: 1279px) { .lcb-learners .lcb-points { display: block; margin-top: 0.35em; } }
.lcb-reasons { margin-top: 0.3em; }
@media (prefers-color-scheme: dark) { body:not(.lcb-light) .lcb-tag.is-warn { background: #3a1f1b; color: #ffb4a8; } body:not(.lcb-light) .lcb-tag.is-ok { background: #1c3324; color: #8fdca8; } body:not(.lcb-light) .lcb-tag.is-due { color: #f0d27a; } }
.lcb-bar { display: block; width: 100%; max-width: 9rem; height: 6px; margin: 0.35em 0; background: var(--rule); border-radius: 999px; overflow: hidden; }
.lcb-bar > span { display: block; height: 100%; background: var(--teal); }

@media (max-width: 720px) {
  .lcb-roster thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lcb-roster, .lcb-roster tbody, .lcb-roster tr, .lcb-roster td { display: block; width: 100%; }
  .lcb-roster tr { border-bottom: 1px solid var(--rule); padding: var(--s1) 0; }
  .lcb-roster td { border: 0; padding: 0.3em 0; display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--s1); }
  .lcb-roster td::before { content: attr(data-label); color: var(--muted); font-size: 0.85rem; font-weight: 600; grid-row: 1 / span 4; }
  .lcb-roster td:not(:first-child) > * { grid-column: 2; justify-self: start; }
  .lcb-roster td:not(:first-child) > .lcb-bar { justify-self: stretch; }
  .lcb-roster td:first-child { grid-template-columns: 1fr; }
  .lcb-roster td:first-child::before { content: none; }
  .lcb-roster tr.is-attention td:first-child { box-shadow: none; padding-left: 0; }
  .lcb-roster tr.is-attention { box-shadow: inset 4px 0 0 #a12a1f; padding-left: 0.75em; }
  .lcb-table .lcb-col-actions { text-align: left; white-space: normal; }
  .lcb-roster .lcb-nowrap, .lcb-roster .lcb-keep, .lcb-roster .lcb-tag { white-space: normal; }
  .lcb-roster .lcb-tag.is-due { border-radius: 6px; }
  .lcb-row-actions { justify-content: flex-start; }
}

/* Assign lessons in the site's own look (Kit, 2026-10-28): unit headings like the help page's groups
   (serif, teal rule), chapters as rows with the theme's round +/- opener instead of the browser's
   triangle, and teal ticks instead of the browser's default boxes. */
.lcb-assign input[type="checkbox"] { accent-color: var(--teal); width: 1.2rem; height: 1.2rem; margin: 0.15rem 0.6rem 0 0; flex: none; cursor: pointer; }
.lcb-unit { border: 0; padding: 0; margin: 0 0 var(--s4); min-width: 0; }
.lcb-unit legend { display: block; width: 100%; padding: 0 0 var(--s1); border-bottom: 2px solid var(--teal); font-family: var(--serif); font-weight: 700; font-size: 1.2rem; line-height: 1.3; }
/* A129 (Kit, 2026-11-19): the online add-on units in their own group after the computer units. */
.lcb-addon-units { margin-top: var(--s4); }
.lcb-addons-head { margin: 0; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.lcb-addons-line { margin: 0 0 var(--s2); }
/* Board 2026-11-19 (pick C): the group's heading row carries its own Select box, across both columns. */
.lcb-addon-units .lcb-addons-top { margin: 0 0 var(--s1); column-span: all; } /* beats .lcb-lessons-head's margin */
.lcb-addons-top + .lcb-addons-line { column-span: all; }
.lcb-chapter { border-bottom: 1px solid var(--rule); }
.lcb-chapter summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--s1) var(--s2); min-height: 56px; padding: var(--s1) 0; }
.lcb-chapter summary::-webkit-details-marker { display: none; }
.lcb-chapter summary label { display: inline-flex; align-items: flex-start; font-weight: 700; cursor: pointer; }
.lcb-chapter summary .lcb-small { margin-right: auto; white-space: nowrap; }
.lcb-chapter summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--rule);
  background:
    linear-gradient(var(--teal), var(--teal)) center / 12px 2.5px no-repeat,
    linear-gradient(var(--teal), var(--teal)) center / 2.5px 12px no-repeat;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, border-color 0.2s;
}
.lcb-chapter summary:hover::after { border-color: var(--teal); }
.lcb-chapter[open] summary::after { transform: rotate(45deg); background-color: var(--gold-soft); border-color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .lcb-chapter summary::after { transition: none; } }
.lcb-lessons { list-style: none; padding: 0 0 var(--s2) 1.8rem; margin: 0; display: grid; gap: 0.55em; }
.lcb-lessons label { display: inline-flex; align-items: flex-start; cursor: pointer; }
@media (max-width: 600px) {
  /* On a phone the lesson count goes under the chapter name, so the name keeps the width. */
  .lcb-chapter summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s2); row-gap: 0; }
  .lcb-chapter summary .lcb-small { grid-column: 1; grid-row: 2; margin: 0; padding-left: 1.8rem; }
  .lcb-chapter summary::after { grid-column: 2; grid-row: 1 / span 2; }
  .lcb-lessons { padding-left: 1.2rem; }
}
.lcb-assign .lcb-submit { margin-top: var(--s3); }

.lcb-assigned { list-style: none; padding: 0; margin: 0; }

/* Learner dashboard (0.3.0): the next lesson first, the course link quiet. */
.lcb-stats { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); margin-top: var(--s1); }
.lcb-stat { display: grid; }
.lcb-stat-label { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.lcb-stat-value { font-weight: 700; }
.lcb-next-lead { border-bottom: 1px solid var(--rule); padding-bottom: var(--s2); }
.lcb-next-lead p { margin: 0; }
.lcb-next-title { font-size: 1.5rem; font-weight: 700; line-height: 1.25; margin: 0.15em 0 0.2em !important; }
.lcb-next-go { margin-top: var(--s2) !important; }
.lcb-course-link { margin: 0 0 var(--s3); }
/* The tick is drawn, not typed, so it sits in the centre of its circle (Kit, 2026-10-28). */
.lcb-check { position: relative; display: inline-block; box-sizing: border-box; width: 1.4em; height: 1.4em; border: 2px solid var(--rule); border-radius: 50%; flex: none; vertical-align: middle; }
.is-done > .lcb-check { background: var(--teal); border-color: var(--teal); }
.is-done > .lcb-check::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.3em; height: 0.58em; border: solid var(--teal-ink); border-width: 0 0.13em 0.13em 0; transform: translate(-50%, -62%) rotate(45deg); }


/* Learner list (Kit, 2026-10-28): grouped by unit in course order, compact rows, and the progress
   (count and bar) in one column on the right, so every row lines up and the card has no empty
   right side. Unit heads use the same columns, so their counts line up with the rows. */
.lcb-next { --lcb-progress-w: 13rem; --lcb-count-w: 4rem; }
.lcb-unit-group { margin-top: var(--s2); }
.lcb-unit-head, .lcb-assigned li { display: grid; grid-template-columns: 1.35rem minmax(0, 1fr) var(--lcb-progress-w); align-items: center; column-gap: var(--s2); padding: 0.4rem 0.5rem; margin: 0 -0.5rem; font-size: 0.95rem; }
.lcb-unit-head { border-bottom: 2px solid var(--rule); padding-top: 0.2rem; padding-bottom: 0.3rem; }
/* 0.4.3: a unit's title and, once earned, its Print certificate link. */
.lcb-unit-name { grid-column: 1 / 3; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem var(--s2); min-width: 0; }
.lcb-cert-link { font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.lcb-certs li.is-done a { color: var(--link); }
.lcb-unit-head h3 { grid-column: 1 / 3; margin: 0; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.lcb-assigned li { border-bottom: 1px solid var(--rule); line-height: 1.35; }
.lcb-assigned li:last-child { border-bottom: 0; }
.lcb-assigned li .lcb-check { width: 1.35rem; height: 1.35rem; }
.lcb-assigned-title { min-width: 0; }
.lcb-assigned li.is-done a { color: var(--muted); }
/* 0.4.13 (Kit, 2026-11-04: "the yellow highlight thing on the lesson/chapter bothers me"): no fill; the Next tag and the bold link mark it. */
.lcb-assigned li.is-next { background: none; }
.lcb-assigned li.is-next a { font-weight: 700; }
.lcb-tag.is-next { margin: 0 0 0 0.5em; vertical-align: 0.1em; background: var(--teal); color: var(--teal-ink); font-weight: 700; }
.lcb-progress { display: grid; grid-template-columns: var(--lcb-count-w) minmax(0, 1fr); align-items: center; column-gap: var(--s1); }
.lcb-progress-count { grid-column: 1; text-align: right; white-space: nowrap; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.lcb-unit-head .lcb-progress-count { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.lcb-progress .lcb-bar { grid-column: 2; max-width: none; margin: 0; }
@media (max-width: 600px) {
  .lcb-next { --lcb-progress-w: 7.5rem; --lcb-count-w: 3.3rem; }
  .lcb-unit-head, .lcb-assigned li { column-gap: var(--s1); }
}

/* Quote form (0.2.0) */
.lcb-quote-rows { display: grid; gap: var(--s1); }
.lcb-quote-row { display: grid; grid-template-columns: 1fr 8rem; gap: var(--s1); align-items: end; }
.lcb-quote-row > div { display: grid; gap: 4px; }
.lcb-optional { font-weight: 400; color: var(--muted); }
.lcb-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lcb-quote [data-add-location] { justify-self: start; }

/* Buy more seats (0.4.5) */
.lcb-buy-seats { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s1); justify-items: start; padding-bottom: var(--s3); border-bottom: 1px solid var(--rule); }
.lcb-buy-seats p { margin: 0; }
.lcb-buy-seats [data-buy-done]:empty { display: none; }
.lcb-buy-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); width: 100%; max-width: 32rem; }
.lcb-buy-form .button { white-space: normal; }
.lcb-buy-form input[type="number"] { max-width: 8rem; }
.lcb-buy-form .lcb-submit { margin-top: 0; }

/* 0.4.6 (J.R., 2026-11-02): flat buttons on the class pages, no drop shadow or lift. The quiet button keeps
   its inset outline, which is its border. */
.lcb-classroom .button:not(.lcb-button-quiet),
.lcb-classroom .button:not(.lcb-button-quiet):hover,
.lcb-classroom .button:not(.lcb-button-quiet):active { box-shadow: none; }
.lcb-classroom .button:hover, .lcb-classroom .button:active { transform: none; }
.lcb-classroom .button.lcb-button-quiet { box-shadow: none; border: 2px solid currentColor; }
.lcb-upload > p:last-child { margin-top: var(--s1); }

/* ---- Groups (0.4.8, A66; Kit, 2026-11-03: "proper user flow and experience and enough spacing around text
   and components"). Picks look like the text boxes; every block gets room above and below. ---- */
.lcb-select {
  font: inherit; font-size: 1rem; color: var(--text); background-color: var(--surface);
  border: var(--border); border-radius: 8px; min-height: 44px; padding: 0.55em 2.4em 0.55em 0.8em;
  appearance: none; -webkit-appearance: none; cursor: pointer; max-width: 100%; box-sizing: border-box;
  background-image: linear-gradient(45deg, transparent 50%, var(--teal) 50%), linear-gradient(135deg, var(--teal) 50%, transparent 50%);
  background-position: calc(100% - 1.15em) 52%, calc(100% - 0.8em) 52%;
  background-size: 0.35em 0.35em, 0.35em 0.35em; background-repeat: no-repeat;
}
.lcb-select:hover { border-color: var(--teal); }
.lcb-select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lcb-select:disabled { opacity: 0.6; cursor: wait; }
.lcb-select-sm { font-size: 0.9rem; min-height: 40px; width: 100%; max-width: 11rem; padding-top: 0.4em; padding-bottom: 0.4em; }
.lcb-form .lcb-select { width: 100%; }
.lcb-field-short { max-width: 20rem; }
.lcb-optional { font-weight: 400; color: var(--muted); }

.lcb-card-intro { color: var(--muted); font-size: 0.95rem; max-width: 44rem; line-height: 1.55; margin: 0 0 var(--s3); }

/* Show pick above the Learners table. */
.lcb-show { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); margin: 0 0 var(--s3); padding: var(--s2); background: var(--bg); border-radius: 10px; }
.lcb-show label { font-weight: 600; }
.lcb-show .lcb-select { min-width: 14rem; }

/* Empty states: a dashed box with a short title and one line saying what to do. */
.lcb-empty { border: 2px dashed var(--rule); border-radius: 10px; padding: var(--s3); margin: 0 0 var(--s3); text-align: center; }
.lcb-empty p { margin: 0; color: var(--muted); }
.lcb-empty .lcb-empty-title { color: var(--text); font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }

/* Groups card. */
.lcb-group-list { list-style: none; margin: 0 0 var(--s2); padding: 0; border-top: 1px solid var(--rule); }
.lcb-group-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s1) var(--s4); padding: var(--s2) 0; border-bottom: 1px solid var(--rule); }
.lcb-group-row.is-editing { background: var(--bg); margin: 0 calc(-1 * var(--s2)); padding: var(--s2); border-radius: 8px; }
.lcb-group-main { min-width: 0; }
.lcb-group-name { margin: 0 0 4px; font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.lcb-group-meta { margin: 0; color: var(--muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 0 0.5em; }
.lcb-group-actions { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }
.lcb-group-actions .lcb-link { min-height: 32px; }
.lcb-group-none { margin: 0 0 var(--s3); }
.lcb-group-add, .lcb-group-rename { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s1) var(--s2); margin: var(--s3) 0 0; }
.lcb-group-rename { margin: 0; width: 100%; }
.lcb-group-add .lcb-field, .lcb-group-rename .lcb-field { flex: 1 1 16rem; max-width: 24rem; }
.lcb-group-add .lcb-submit, .lcb-group-rename .lcb-submit { margin-top: calc(1.5em + 4px); }
.lcb-group-add .lcb-submit .button, .lcb-group-rename .lcb-submit .button { min-height: 44px; }
.lcb-group-add input:disabled { opacity: 0.6; }

/* Invite forms: the group pick under the paste box. */
.lcb-bulk .lcb-field-short { margin-top: var(--s1); }

/* Assign lessons: whose lessons, then the list. */
.lcb-assign-for { display: grid; gap: var(--s2); margin: var(--s2) 0 var(--s3); padding: var(--s3); background: var(--bg); border-radius: 10px; }
.lcb-assign-pick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s1) var(--s3); }
.lcb-assign-pick .lcb-field { flex: 0 1 18rem; }
.lcb-assign-pick label { font-weight: 600; }
.lcb-assign-who { margin: 0 0 0.6em; color: var(--muted); font-size: 0.95rem; flex: 1 1 16rem; }
/* 2026-11-11, seen at 375 wide: a long group name made the Lessons for box wider than the card, and the Save button
   cut the name off. The box's one column may shrink, the pick never grows past it, and the button wraps. */
.lcb-assign-for { grid-template-columns: minmax(0, 1fr); }
.lcb-assign-pick .lcb-field { min-width: 0; }
.lcb-assign-pick .lcb-select { max-width: 100%; text-overflow: ellipsis; }
.lcb-assign .lcb-submit .button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.lcb-toggle { display: flex; align-items: center; gap: 0.75em; padding: var(--s2); background: var(--surface); border: var(--border); border-radius: 8px; cursor: pointer; max-width: 36rem; }
.lcb-toggle input { accent-color: var(--teal); width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; flex: none; cursor: pointer; }
.lcb-toggle .lcb-small { margin-top: 2px; }
.lcb-locked-note { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: var(--s2); border-radius: 6px; margin: 0 0 var(--s3); }
[data-fill="catalog"].is-locked .lcb-unit, [data-fill="catalog"].is-locked .lcb-select-all { opacity: 0.6; }

/* Roster check: where the new learners go. */
.lcb-roster-result { gap: var(--s2); padding: var(--s3); }
.lcb-preview-lead { font-weight: 600; }
.lcb-preview { display: grid; gap: var(--s1); padding-top: var(--s2); border-top: 1px solid var(--rule); }
.lcb-preview-title { font-weight: 700; }
.lcb-preview-new { font-size: 0.95rem; background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 0.75em var(--s2); border-radius: 6px; }
.lcb-preview-table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.lcb-preview-table th, .lcb-preview-table td { text-align: left; padding: 0.6em 1em 0.6em 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.lcb-preview-table thead th { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.lcb-preview-table tbody th { font-weight: 600; }
.lcb-preview-table tr.is-none th { font-weight: 400; color: var(--muted); }
.lcb-tag.is-new { background: var(--teal); color: var(--teal-ink); font-weight: 700; margin: 0 0 0 0.5em; vertical-align: 0.1em; }
.lcb-example-wrap { overflow-x: auto; }

/* Learners table (Kit, 2026-11-03: "feels to crowded"): no Group column; the group is a label under the name,
   rows get more room, and with groups Report, Move and Remove stack in the Actions column. */
.lcb-learners td { padding-top: 0.9em; padding-bottom: 0.9em; }
.lcb-tag.is-group { background: #e2eef0; color: var(--teal); font-weight: 600; margin-top: 0.45em; }
.lcb-tag.is-group.is-none { background: var(--pending-bg); color: var(--muted); font-weight: 400; }
@media (min-width: 960px) {
  .lcb-learners.has-groups .lcb-row-actions { flex-direction: column; align-items: flex-end; gap: 0.35em; }
  /* 2026-11-05: name and group label on one line, the email under them, so each row is two lines. When the column
     is too narrow for both, the label drops under the name; the name is never cut. */
  .lcb-learners .lcb-person { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.5em; row-gap: 0.2em; }
  .lcb-learners .lcb-person > strong { order: 0; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .lcb-learners .lcb-person > .lcb-tag { order: 1; margin: 0; white-space: nowrap; }
  .lcb-learners .lcb-person > .lcb-email { order: 2; flex: 0 0 100%; }
  /* 2026-11-11 (Kit, live: words ran into the next column): the group label always sits on its own line under the
     email, and a long group name wraps inside the Learner column instead of running into Status. Every other line in
     the table may wrap at a space too; a word longer than its column breaks rather than spill. */
  .lcb-learners .lcb-person > .lcb-tag.is-group { order: 3; max-width: 100%; margin-top: 0.3em; white-space: normal; overflow-wrap: break-word; border-radius: 6px; line-height: 1.35; padding: 0.15em 0.55em; }
  .lcb-learners td { overflow-wrap: break-word; }
  .lcb-learners .lcb-nowrap { white-space: normal; }
}
.lcb-keep { white-space: nowrap; }
@media (max-width: 959px) { .lcb-roster .lcb-person { display: contents; } } /* 0.4.19 (review): not the invite form, which also carries .lcb-person */

/* Confirmation popup (Kit, 2026-11-03). */
.lcb-dialog { border: 0; border-radius: 14px; padding: 0; width: 100%; max-width: min(30rem, calc(100vw - 2rem)); background: var(--surface); color: var(--text); box-shadow: 0 24px 64px rgba(40, 32, 10, 0.28); }
.lcb-dialog::backdrop { background: rgba(29, 35, 33, 0.45); }
.lcb-dialog-body { display: grid; gap: var(--s2); padding: var(--s4); margin: 0; }
.lcb-dialog h2 { margin: 0; font-size: 1.35rem; line-height: 1.3; }
.lcb-dialog p { margin: 0; color: var(--muted); line-height: 1.55; }
.lcb-dialog .lcb-select { width: 100%; }
.lcb-dialog .lcb-field label { font-weight: 600; }
.lcb-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s2); margin-top: var(--s2); }
.lcb-dialog-actions .button { min-height: 44px; border: 0; cursor: pointer; font: inherit; margin: 0; }
.lcb-dialog-actions .button[disabled] { opacity: 0.45; cursor: not-allowed; }
.lcb-classroom .button.lcb-button-danger, .button.lcb-button-danger { background: #a12a1f; color: #ffffff; }
@media (max-width: 480px) { .lcb-dialog-body { padding: var(--s3); } .lcb-dialog-actions .button { flex: 1 1 8rem; } }
@media (max-width: 720px) {
  .lcb-show { padding: var(--s2); }
  .lcb-show .lcb-select { min-width: 0; flex: 1 1 100%; }
  .lcb-col-group .lcb-select { max-width: none; }
  .lcb-group-row { align-items: flex-start; }
  .lcb-group-actions { gap: var(--s1) var(--s3); }
  .lcb-assign-for { padding: var(--s2); }
  .lcb-assign-pick .lcb-field { flex: 1 1 100%; }
  .lcb-group-add .lcb-submit, .lcb-group-rename .lcb-submit { margin-top: 0; }
  .lcb-preview-table th, .lcb-preview-table td { padding-right: 0.6em; }
}
@media (max-width: 480px) {
  /* The preview table becomes one short block per group on a phone. */
  .lcb-preview-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lcb-preview-table tr { display: block; padding: 0.7em 0; border-bottom: 1px solid var(--rule); }
  .lcb-preview-table th, .lcb-preview-table td { display: block; border: 0; padding: 0.1em 0; }
  .lcb-preview-table td { color: var(--muted); font-size: 0.9rem; }
}

/* 0.4.9 (live review of 0.4.8, findings 1, 6, 7 and 9). */
.lcb-dialog .lcb-dialog-note { margin-top: var(--s1); padding: 0.6em 0.8em; border-radius: 8px; background: #e2eef0; color: var(--teal); font-weight: 600; }
.lcb-dialog .lcb-dialog-note[hidden] { display: none; }
@media (max-width: 720px) {
  /* 1: on a phone the actions use the whole row, so Report, Move and Remove all show. */
  .lcb-roster td.lcb-col-actions { display: block; margin-top: 0.4em; padding-top: 0.8em; border-top: 1px solid var(--rule); }
  .lcb-roster td.lcb-col-actions::before { content: none; }
  .lcb-roster .lcb-row-actions { flex-wrap: wrap; gap: var(--s1) var(--s4); }
  /* 7: the group label (and "You") keeps its own size. */
  .lcb-roster td:first-child > .lcb-tag { justify-self: start; }
  .lcb-roster td:first-child .lcb-person > .lcb-tag { justify-self: start; } /* 2026-11-05: inside the name wrapper */
}
@media (max-width: 480px) {
  /* 6: the example roster fits a phone: headings wrap and emails break after the @. */
  .lcb-example { width: 100%; }
  .lcb-example th, .lcb-example td { padding: 4px 5px; vertical-align: top; }
  .lcb-example .lcb-optional { display: block; font-weight: 400; }
}

/* ---- 0.4.15 (Kit, 2026-11-05): spacing and one type scale on the class dashboard ----
   Sentences that explain a card are .lcb-card-intro (0.95rem); .lcb-small (0.85rem) is for meta lines only. */
.lcb-dash .lcb-main > .lcb-status:empty { min-height: 0; margin: 0; }
.lcb-seats-line:empty { display: none; }
.lcb-seats-line { margin-bottom: var(--s2); }
.lcb-buy-seats [data-buy-why] { font-size: 0.95rem; }
.lcb-dash .lcb-card > .lcb-card-head h2, .lcb-dash .lcb-card > h2 { margin-bottom: var(--s2); }
.lcb-dash .lcb-card-head .lcb-card-links { margin-bottom: var(--s2); }
/* Roster upload: three numbered steps, the example link in step 1. */
.lcb-steps { margin: 0 0 var(--s2); padding-left: 1.4em; display: grid; gap: 6px; color: var(--muted); font-size: 0.95rem; line-height: 1.5; max-width: 44rem; }
.lcb-steps li::marker { color: var(--teal); font-weight: 700; }
.lcb-steps .lcb-link { margin-left: 0.25em; }
.lcb-upload .lcb-example { margin-top: 0; }
/* Setup: the optional step reads lighter than the two required ones. */
.lcb-setup li.is-optional { background: transparent; border-style: dashed; }
.lcb-setup li.is-optional .lcb-check { display: none; }
.lcb-setup li .lcb-optional { font-size: 0.85rem; }
/* Assign lessons: units in two columns when the card is wide, so the list is half as long. */
@media (min-width: 1000px) {
  .lcb-assign .lcb-units { columns: 2; column-gap: var(--s3); }
  .lcb-assign .lcb-unit { break-inside: avoid; display: block; }
}
/* The Save row stays in reach while the list is on screen. */
.lcb-assign .lcb-submit { position: sticky; bottom: 0; z-index: 5; background: var(--surface); margin: var(--s2) calc(-1 * var(--s3)) 0; padding: var(--s2) var(--s3); border-top: 1px solid var(--rule); border-radius: 0 0 10px 10px; }

/* Card-level status lines take no room until they have something to say (they stay in the page for screen readers). */
.lcb-dash [data-fill="group-status"]:empty, .lcb-dash [data-fill="roster-status"]:empty, .lcb-dash [data-fill="teacher-status"]:empty, .lcb-dash [data-gc-status]:empty { min-height: 0; margin: 0; }
.lcb-dash [data-fill="group-status"]:not(:empty), .lcb-dash [data-fill="roster-status"]:not(:empty), .lcb-dash [data-fill="teacher-status"]:not(:empty), .lcb-dash [data-gc-status]:not(:empty) { margin: 0 0 var(--s2); }
.lcb-dash .lcb-card > div > .lcb-empty:last-child, .lcb-dash [data-fill="roster"] > .lcb-empty:last-child { margin-bottom: 0; }
/* One button face on the dashboard: <button> elements had font: inherit (regular weight, body size) while link and
   label buttons kept the theme's bold, so two buttons side by side never matched. Popups included. */
.lcb-dash .button.button, .lcb-dialog .button.button { font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2; }

/* Long emails, course names and popup titles wrap instead of poking out of a phone screen. */
.lcb-dialog h2, .lcb-dash .lcb-gc-account strong, .lcb-dash .lcb-gc-facts strong { overflow-wrap: anywhere; }

/* ---- 0.4.17 (J.R., 2026-11-05: "update the lcb dashboad to be like the video company ui ux but keep our current
   asthetics"; Kit's picks): the Video Company's layout, drawn with the site's own cream, teal, gold, serif headings,
   pill buttons and 12px cards. Sidebar in groups, a sticky top bar, one section at a time, tiles, filter chips, a
   Needs attention page, Compact view and an offered tour. Nothing here is from the Video Company's colours or type. */
/* 0.4.18: buttons, sidebar entries, chips, the search box and the setup steps use the theme's button corners,
   var(--radius), which is 12px from theme 2.5.0. Theme 2.4.4 has no --radius and pill buttons, so the 999px fallback
   keeps them matching whichever theme is live. Counts, tags, the progress bar and the Compact switch stay round. */

/* A wider page for the dashboard, so the sidebar does not squeeze the learner table. The site bar widens with it. */
body:has(.lcb-app) { --page: 1360px; }
.lcb-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lcb-app .lcb-main { min-width: 0; }
.lcb-app.is-views .lcb-pane:not(.is-current) { display: none; }
.lcb-app .lcb-pane { scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 84px); }
.lcb-app h2[tabindex="-1"]:focus { outline: none; }
.lcb-app h2[tabindex="-1"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }

/* Sidebar */
.lcb-side { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: var(--s2) var(--s1); box-shadow: 0 1px 2px rgba(60, 50, 20, 0.06); }
.lcb-side-head { display: none; }
.lcb-side-section { margin: var(--s2) var(--s1) 6px; color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.lcb-side-section:first-child { margin-top: 0; }
.lcb-side-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lcb-side-nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: var(--radius, 999px); color: var(--text); font-size: 0.95rem; font-weight: 600; text-decoration: none; }
.lcb-side-nav a .lcb-icon { color: var(--teal); }
.lcb-side-nav a:hover { background: var(--bg); }
.lcb-side-nav a[aria-current="page"] { background: var(--teal); color: var(--teal-ink); }
.lcb-side-nav a[aria-current="page"] .lcb-icon { color: currentColor; }
.lcb-nav-label { min-width: 0; }
.lcb-nav-count { margin-left: auto; min-width: 1.7em; padding: 0 0.45em; border-radius: 999px; background: #fbe9e6; color: #8a2419; font-size: 0.8rem; font-weight: 700; line-height: 1.7; text-align: center; }
.lcb-side-nav a[aria-current="page"] .lcb-nav-count { background: var(--teal-ink); color: var(--teal); }
.lcb-side-foot { display: grid; gap: 2px; margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--rule); }
.lcb-side-tool { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--radius, 999px); background: none; color: var(--muted); font: inherit; font-size: 0.9rem; text-align: left; text-decoration: none; cursor: pointer; }
.lcb-side-tool:hover { background: var(--bg); color: var(--text); }
/* Compact view is an on/off switch drawn in the site's teal. */
.lcb-side-tool[data-density]::after { content: ""; flex: none; margin-left: auto; width: 32px; height: 18px; border-radius: 999px; background: radial-gradient(circle at 9px 50%, var(--surface) 6px, transparent 6.5px), var(--rule); }
.lcb-side-tool[data-density][aria-pressed="true"] { color: var(--teal); font-weight: 700; }
.lcb-side-tool[data-density][aria-pressed="true"]::after { background: radial-gradient(circle at 23px 50%, var(--surface) 6px, transparent 6.5px), var(--teal); }

/* Top bar: menu (phone), where you are (phone), the group switch, search, when it was read, Refresh. */
.lcb-topbar { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); min-height: 60px; margin: 0 0 var(--s3); padding: var(--s1) 0; background: var(--bg); border-bottom: 1px solid var(--rule); }
.lcb-menu, .lcb-refresh { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 var(--s2); border: 2px solid var(--rule); border-radius: var(--radius, 999px); background: var(--surface); color: var(--teal); font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer; }
.lcb-menu:hover, .lcb-refresh:hover { border-color: var(--teal); }
.lcb-refresh[disabled] { opacity: 0.75; cursor: wait; }
.lcb-menu, .lcb-where { display: none; }
.lcb-where { margin: 0; font-family: var(--serif); font-size: 1.1rem; font-weight: 700; }
.lcb-topbar .lcb-show { flex-wrap: nowrap; gap: var(--s1); margin: 0; padding: 0; background: none; border-radius: 0; }
.lcb-topbar .lcb-show label { font-size: 0.95rem; }
.lcb-topbar .lcb-show .lcb-select { min-width: 12rem; font-size: 0.95rem; }
.lcb-search { flex: 0 1 19rem; margin-left: auto; }
.lcb-search input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 0 0.9em 0 2.4em; border: var(--border); border-radius: var(--radius, 999px); color: var(--text); font: inherit; font-size: 0.95rem;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e4c5a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='m15 15 5 5'/%3E%3C/svg%3E") no-repeat 0.85em 50% / 1.05em; }
.lcb-search input:hover { border-color: var(--teal); }
.lcb-search input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lcb-updated { margin: 0; color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.lcb-updated:empty { display: none; }
/* The group switch only shows where it changes something: Overview, Needs attention, Learners. */
.lcb-app.is-views:not([data-view="lcb-overview"]):not([data-view="lcb-attention"]):not([data-view="lcb-learners"]) .lcb-topbar .lcb-show { display: none !important; }

/* Heading row: the site's serif heading, a little smaller now that the sidebar sits beside it. */
.lcb-app .lcb-dash-head { align-items: center; margin-bottom: var(--s3); }
.lcb-app .lcb-dash-head h1 { font-size: clamp(2rem, 3vw, 2.6rem); margin-bottom: 4px; }
.lcb-app .lcb-head-actions .button { min-height: 48px; padding: 0 var(--s3); }
.lcb-app[data-view="lcb-invite"] [data-head-invite] { display: none; }
.lcb-setup-tour { margin: var(--s2) 0 0 !important; font-size: 0.95rem; }

/* Tiles */
.lcb-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); margin: 0 0 var(--s3); }
.lcb-tiles:empty { display: none; }
.lcb-tile { display: grid; align-content: start; gap: 2px; padding: var(--s2) var(--s3); background: var(--surface); border: var(--border); border-radius: 12px; color: var(--text); text-decoration: none; box-shadow: 0 1px 2px rgba(60, 50, 20, 0.06); transition: border-color 0.15s; }
.lcb-tile:hover { border-color: var(--teal); }
.lcb-tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lcb-tile-label { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.lcb-tile-value { color: var(--teal); font-family: var(--serif); font-size: 2.3rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.lcb-tile-note { color: var(--muted); font-size: 0.85rem; line-height: 1.35; }
.lcb-tile.is-alert { border-color: #e2b4ad; }
.lcb-tile.is-alert .lcb-tile-value { color: #a12a1f; }
@media (prefers-reduced-motion: reduce) { .lcb-tile { transition: none; } }

/* Filter chips over the learner list, shaped like the buttons (0.4.18: the theme's corners). */
.lcb-chips { display: flex; flex-wrap: wrap; gap: var(--s1); margin: 0 0 var(--s3); }
.lcb-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 var(--s2); border: 2px solid var(--rule); border-radius: var(--radius, 999px); background: var(--surface); color: var(--teal); font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.lcb-chip:hover { border-color: var(--teal); }
.lcb-chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lcb-chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); }
.lcb-chip-count { min-width: 1.6em; padding: 0 0.45em; border-radius: 999px; background: var(--bg); color: var(--text); font-size: 0.8rem; font-weight: 700; line-height: 1.6; text-align: center; }
.lcb-chip.is-alert .lcb-chip-count { background: #fbe9e6; color: #8a2419; }
.lcb-chip[aria-pressed="true"] .lcb-chip-count { background: var(--teal-ink); color: var(--teal); }
.lcb-showing { margin: 0 0 var(--s1); }

/* Needs attention: the Overview card and the full page. Red edge = needs help, gold edge = late invite. */
.lcb-attention-sum .lcb-card-title, .lcb-byclass .lcb-card-title { margin: 0 0 var(--s2); font-family: var(--serif); font-size: 1.3rem; }
.lcb-att-mini { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); font-size: 0.95rem; }
.lcb-att-mini li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s2); padding: 0.7em 0 0.7em var(--s2); border-bottom: 1px solid var(--rule); box-shadow: inset 4px 0 0 #a12a1f; }
.lcb-att-mini li.is-late, .lcb-att-row.is-late { box-shadow: inset 4px 0 0 var(--gold); }
.lcb-att-name { font-weight: 700; overflow-wrap: anywhere; }
.lcb-att-why { margin: 0; color: var(--muted); font-size: 0.95rem; }
.lcb-att-more { margin: var(--s1) 0 0; }
.lcb-att-h { margin-top: 0; }
.lcb-att-list + .lcb-att-h { margin-top: var(--s4); }
.lcb-att-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.lcb-att-row { font-size: 0.95rem; display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr) auto; align-items: center; gap: var(--s1) var(--s3); padding: var(--s2) 0 var(--s2) var(--s3); border-bottom: 1px solid var(--rule); box-shadow: inset 4px 0 0 #a12a1f; }
.lcb-att-row .lcb-tag { margin: 0 0.4em 0 0; }
.lcb-att-actions { text-align: right; white-space: nowrap; }
.lcb-empty-small { padding: var(--s2); margin: 0; }
.lcb-att-actions .lcb-link, [data-attention-all], .lcb-setup-tour .lcb-link, .lcb-byclass .lcb-card-links .lcb-link { display: inline-flex; align-items: center; min-height: 44px; }
.lcb-attention-sum .lcb-card-links, .lcb-byclass .lcb-card-links { margin-bottom: 0; }
/* Unsaved lesson choices: a gold dot on Assign lessons. */
.lcb-side-nav a.has-unsaved::after { content: ""; flex: none; margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--surface); }

/* Compact view */
.lcb-app.is-compact .lcb-card { padding: var(--s2); margin-bottom: var(--s2); }
.lcb-app.is-compact .lcb-table th, .lcb-app.is-compact .lcb-table td, .lcb-app.is-compact .lcb-learners td { padding-top: 0.4em; padding-bottom: 0.4em; }
.lcb-app.is-compact .lcb-tile { padding: var(--s1) var(--s2); }
.lcb-app.is-compact .lcb-tile-value { font-size: 1.8rem; }
.lcb-app.is-compact .lcb-group-row { padding: var(--s1) 0; }
.lcb-app.is-compact .lcb-chapter summary { min-height: 44px; padding: 2px 0; }
.lcb-app.is-compact .lcb-att-row, .lcb-app.is-compact .lcb-att-mini li { padding-top: var(--s1); padding-bottom: var(--s1); }
.lcb-app.is-compact .lcb-dash-head, .lcb-app.is-compact .lcb-tiles, .lcb-app.is-compact .lcb-chips, .lcb-app.is-compact .lcb-topbar { margin-bottom: var(--s2); }
.lcb-app.is-compact .lcb-setup { padding: var(--s2); margin-bottom: var(--s2); }

/* Computers and wide tablets: the sidebar sits beside the page and stays in reach. */
@media (min-width: 1024px) {
  .lcb-app { display: grid; grid-template-columns: 228px minmax(0, 1fr); align-items: start; column-gap: var(--s4); }
  .lcb-side { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--s2)); max-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px) - var(--s4)); overflow-y: auto; }
  .lcb-side-backdrop { display: none !important; }
}
@media (min-width: 1024px) and (max-width: 1239px) {
  .lcb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phones and narrow tablets: the sidebar is a drawer behind Menu (Kit, 2026-11-05: "Menu drawer"). */
@media (max-width: 1023px) {
  .lcb-side { position: fixed; z-index: 1001; top: var(--wp-admin--admin-bar--height, 0px); bottom: 0; padding-bottom: 120px !important; left: 0; width: min(300px, 86vw); box-sizing: border-box; overflow-y: auto; border-radius: 0 12px 12px 0; padding: var(--s2); box-shadow: 14px 0 48px rgba(29, 35, 33, 0.22); transform: translateX(-105%); visibility: hidden; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.2s; }
  .lcb-app.is-side-open .lcb-side { transform: none; visibility: visible; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
  .lcb-side-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(29, 35, 33, 0.45); }
  .lcb-side-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 var(--s2) var(--s1); }
  .lcb-side-title { margin: 0; font-family: var(--serif); font-size: 1.2rem; font-weight: 700; }
  .lcb-side-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 2px solid var(--rule); border-radius: 50%; background: var(--surface); color: var(--teal); cursor: pointer; }
  .lcb-side-close:hover { border-color: var(--teal); }
  .lcb-menu { display: inline-flex; }
  .lcb-where { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lcb-updated { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lcb-topbar .lcb-show, .lcb-search { order: 5; flex: 1 1 9rem; min-width: 0; margin-left: 0; }
  .lcb-topbar .lcb-show .lcb-select { min-width: 0; width: 100%; flex: 1 1 auto; }
  /* The search is for the learner list; on a small screen it shows there only, so the bar stays one row elsewhere. */
  .lcb-app.is-views:not([data-view="lcb-learners"]) .lcb-search { display: none; }
  html:has(.lcb-dash[data-dash="admin"]) { scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 128px); }
  .lcb-app .lcb-pane { scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + 128px); }
}
@media (max-width: 720px) {
  .lcb-refresh { padding: 0; width: 44px; justify-content: center; }
  .lcb-refresh span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lcb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s1); }
  .lcb-tile { padding: var(--s2); }
  .lcb-tile-value { font-size: 1.9rem; }
  .lcb-app .lcb-dash-head { align-items: flex-start; }
  /* The menu has Invite learners; on a phone the tiles come up first instead. */
  .lcb-app .lcb-head-actions { display: none; }
  .lcb-att-row { grid-template-columns: minmax(0, 1fr); padding-left: var(--s2); }
  .lcb-att-actions { text-align: left; }
  .lcb-chip { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .lcb-side, .lcb-app.is-side-open .lcb-side { transition: none; } }

/* The tour: a small card next to what it explains, with a gold ring round it. */
.lcb-tour { position: fixed; margin: 0; padding: 0; border: 0; border-radius: 14px; max-width: calc(100vw - 24px); background: var(--surface); color: var(--text); box-shadow: 0 24px 64px rgba(40, 32, 10, 0.28); }
.lcb-tour::backdrop { background: transparent; }
.lcb-tour-body { display: grid; gap: var(--s1); padding: var(--s3); }
.lcb-tour h2 { margin: 0; font-size: 1.3rem; line-height: 1.3; }
.lcb-tour-count { margin: 0; color: var(--muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.lcb-tour-text { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.lcb-tour-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); margin-top: var(--s1); }
.lcb-tour-gap { flex: 1; }
.lcb-tour .button, .lcb-tour .button:hover, .lcb-tour .button:active { min-height: 44px; margin: 0; padding: 0 var(--s3); border: 0; box-shadow: none; transform: none; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
.lcb-tour .button.lcb-button-quiet { border: 2px solid currentColor; background: transparent; color: var(--teal); }
.lcb-tour .button[disabled] { opacity: 0.45; cursor: not-allowed; }
.lcb-tour .button { width: auto; }
@media (max-width: 480px) { .lcb-tour-actions > .lcb-link { flex-basis: 100%; } .lcb-tour-gap { display: none; } .lcb-tour .button { flex: 1 1 0; padding: 0 var(--s2); } }
.lcb-tour-spot { position: fixed; z-index: 2000; border-radius: 12px; box-shadow: 0 0 0 4px var(--gold), 0 0 0 200vmax rgba(29, 35, 33, 0.5); pointer-events: none; transition: left 0.2s, top 0.2s, width 0.2s, height 0.2s; }
@media (prefers-reduced-motion: reduce) { .lcb-tour-spot { transition: none; } }
/* ---- 0.4.19 (Kit, 2026-11-05): "Sign in with Google" is white with Google's G from the start, like the button Google
   draws after it is pressed, with the same height, side padding and corners as "Send me a code" (the theme's .button).
   Google's script still loads only on press (A72). Google's own button then takes its place at the same width. */
.lcb-signin .button.lcb-google-start {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; box-sizing: border-box; max-width: 100%;
  background: #ffffff; color: #1f1f1f; border: 0; box-shadow: inset 0 0 0 1px #747775; font: inherit; font-weight: 500; cursor: pointer;
}
.lcb-signin .button.lcb-google-start::before {
  content: ""; flex: none; width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.lcb-signin .button.lcb-google-start:hover { background: #f8f9fa; color: #1f1f1f; box-shadow: inset 0 0 0 1px #747775; }
.lcb-signin .button.lcb-google-start:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lcb-signin .button.lcb-google-start[disabled] { opacity: 0.75; cursor: progress; }
.lcb-signin .button.lcb-google-start[hidden] { display: none; }
/* Google's button sits where ours was, in a box as tall as ours, so nothing below jumps. */
.lcb-signin .lcb-google-slot:not([hidden]) { display: flex; align-items: center; min-height: 56px; }
.lcb-signin .lcb-google-wait { margin: var(--s1) 0 0; }
.lcb-signin .lcb-google-wait:empty { display: none; }
@media (max-width: 600px) { .lcb-signin .lcb-google-slot:not([hidden]) { min-height: 52px; justify-content: center; } }
/* 0.4.19 (Kit, 2026-11-05): on the sign-in page "Sign in with Google" and "Send me a code" (and the code step's
   "Sign in") are as wide as the email box, words centred. */
.lcb-signin .button.lcb-google-start, .lcb-signin .lcb-form .button { display: flex; align-items: center; justify-content: center; width: 100%; justify-self: stretch; text-align: center; box-sizing: border-box; }
.lcb-signin .lcb-google-slot:not([hidden]) { justify-content: center; }
/* 0.4.19 (Kit, 2026-11-05): "Learning on your own? ..." under the sign-in buttons is centred too. */
.lcb-signin-solo { text-align: center; }
/* ---- 0.4.19 Invite learners (Kit, 2026-11-06: "clear and simple to work with ... use UX principles") -------------
   Seats as a badge beside the heading; three tabs (One learner, Paste a list, Upload a file) so one way shows at a
   time; the file step is a short column list and a drop box. Appended only: no earlier rule is edited. */
.lcb-invite-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1) var(--s2); }
.lcb-invite-head h2 { margin: 0; }
.lcb-seats-badge { display: inline-flex; align-items: center; gap: 0.45em; max-width: 100%; margin: 0; padding: 0.3em 0.85em 0.3em 0.7em; border-radius: 999px; background: #e4eef0; color: var(--teal); font-size: 0.9rem; font-weight: 600; line-height: 1.35; }
.lcb-seats-badge::before { content: ""; flex: none; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e4c5a' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 11V6.5A1.5 1.5 0 0 1 8.5 5h7A1.5 1.5 0 0 1 17 6.5V11'/%3E%3Cpath d='M5 11h14v4H5z'/%3E%3Cpath d='M7 15v4M17 15v4'/%3E%3C/svg%3E") no-repeat center / contain; }
.lcb-seats-badge.is-full { background: #fbe9e6; color: #a12a1f; }
.lcb-seats-badge.is-full::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a12a1f' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 11V6.5A1.5 1.5 0 0 1 8.5 5h7A1.5 1.5 0 0 1 17 6.5V11'/%3E%3Cpath d='M5 11h14v4H5z'/%3E%3Cpath d='M7 15v4M17 15v4'/%3E%3C/svg%3E"); }
.lcb-seats-badge:empty { display: none; }
.lcb-invite .lcb-buy-seats { margin-top: var(--s1); padding-bottom: 0; border-bottom: 0; }
.lcb-invite .lcb-gc-hint { margin: var(--s2) 0 0; }
.lcb-invite-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: var(--s3) 0; padding: 4px; background: var(--bg); border: 1px solid var(--rule); border-radius: 12px; }
.lcb-invite .lcb-gc-hint + .lcb-invite-tabs { margin-top: var(--s2); }
.lcb-classroom .lcb-invite-tab { display: flex; align-items: center; justify-content: center; gap: 0.5em; min-width: 0; min-height: 48px; margin: 0; padding: 0.5em 0.75em; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 0.98rem; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; box-shadow: none; }
.lcb-classroom .lcb-invite-tab:hover { background: rgba(14, 76, 90, 0.07); color: var(--text); }
.lcb-classroom .lcb-invite-tab[aria-selected="true"] { background: var(--surface); color: var(--teal); box-shadow: 0 1px 3px rgba(60, 50, 20, 0.14), 0 0 0 1px var(--rule); }
.lcb-classroom .lcb-invite-tab:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lcb-invite-tab span { min-width: 0; overflow-wrap: anywhere; }
.lcb-invite-panel[hidden] { display: none; }
.lcb-invite .lcb-field label, .lcb-invite [data-bulk-form] > label { font-size: 0.95rem; font-weight: 600; }
.lcb-invite [data-bulk-form] { display: grid; gap: var(--s1); max-width: 44rem; }
.lcb-invite [data-bulk-form] .lcb-field-error:not([hidden]) { margin-top: -4px; }
.lcb-invite .lcb-upload { border-bottom: 0; padding-bottom: 0; }
.lcb-invite .lcb-upload .lcb-upload-cols { margin: 0 0 var(--s1); color: var(--muted); font-size: 0.95rem; }
.lcb-upload-heads { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--s2); padding: 0; list-style: none; }
.lcb-upload-heads li { padding: 0.3em 0.7em; border: 1px solid var(--rule); border-radius: 6px; background: var(--gold-soft); font-size: 0.88rem; font-weight: 600; }
.lcb-upload-heads .lcb-optional { font-weight: 400; color: var(--muted); }
.lcb-upload-example { display: inline-flex; align-items: center; gap: 0.35em; }
.lcb-upload-example .lcb-icon { width: 18px; height: 18px; }
.lcb-drop { position: relative; display: grid; justify-items: center; gap: var(--s1); margin-top: var(--s2); padding: var(--s3) var(--s2); border: 2px dashed var(--rule); border-radius: 12px; background: var(--bg); text-align: center; transition: border-color 0.15s, background-color 0.15s; }
.lcb-drop > .lcb-icon { width: 32px; height: 32px; color: var(--teal); stroke-width: 1.6; }
.lcb-drop .button { margin: 0; }
.lcb-drop.is-over { border-color: var(--teal); background: #e4eef0; }
.lcb-drop p { margin: 0; }
.lcb-drop-or { color: var(--muted); font-size: 0.9rem; }
.lcb-invite .lcb-roster-form > .lcb-field-error:not([hidden]) { margin-top: var(--s1); }
.lcb-invite .lcb-roster-result { margin-top: var(--s2); }
@media (hover: none), (max-width: 600px) { .lcb-drop-or { display: none; } }
@media (prefers-reduced-motion: reduce) { .lcb-drop { transition: none; } }
@media (max-width: 480px) {
  .lcb-classroom .lcb-invite-tab { flex-direction: column; gap: 3px; min-height: 60px; padding: 0.45em 0.25em; font-size: 0.85rem; }
  .lcb-drop { padding: var(--s2); }
  .lcb-drop .button { width: 100%; }
}
.lcb-roster-form .lcb-drop label.button { justify-self: center; }
.lcb-invite .lcb-seats-line { margin: var(--s1) 0 0; }
.lcb-invite .lcb-buy-seats .lcb-small { margin: 0; }
.lcb-invite .lcb-seats-line, .lcb-invite .lcb-buy-seats [data-buy-why] { color: var(--muted); font-size: 0.9rem; }
/* ---- 0.4.19 Teachers (Kit, 2026-11-06: "improve this idk the table column and also maybe the user experience") -------
   Laid out like the learners table: name and You on one line with the email under it, the same Status cell, one
   three-dot button per row in a narrow last column (its menu holds Resend invite and Remove). The invite form is one
   row on wider screens: Name, Email, Send invite. Appended only: no earlier rule is edited. */
.lcb-teachers .lcb-person { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.5em; row-gap: 0.2em; }
.lcb-teachers .lcb-person > strong { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.lcb-teachers .lcb-person > .lcb-tag { order: 1; margin: 0; white-space: nowrap; }
.lcb-teachers .lcb-person > .lcb-email { order: 2; flex: 0 0 100%; }
#lcb-teachers .lcb-teacher-hint { margin: 0 0 var(--s1); color: var(--muted); font-size: 0.95rem; }
#lcb-teachers .lcb-sub + .lcb-teacher-hint { margin-top: calc(-1 * var(--s1) + 4px); }
#lcb-teachers .lcb-form { display: grid; margin-top: var(--s2); } /* the form also carries .lcb-person, which is display: contents below 960px */
#lcb-teachers .lcb-field label { font-size: 0.95rem; font-weight: 600; }
@media (min-width: 960px) {
  .lcb-teachers .lcb-c-learner { width: 66%; }
  .lcb-teachers .lcb-c-status { width: auto; }
  .lcb-teachers .lcb-c-actions { width: 4.5rem; }
  .lcb-teachers-wrap { overflow: visible; }
  .lcb-teachers .lcb-col-actions { text-align: right; }
  .lcb-teachers .lcb-invite-meta [data-resend] { display: none; }
  .lcb-teachers th, .lcb-teachers td { padding: 0.9rem 1.25rem 0.9rem 0; }
  .lcb-teachers th { padding-top: 0.5rem; padding-bottom: 0.6rem; white-space: nowrap; }
  .lcb-teachers th.lcb-col-actions, .lcb-teachers td.lcb-col-actions { padding-right: 0.25rem; }
  .lcb-teachers tbody tr:hover td { background: var(--gold-soft); }
  .lcb-teachers .lcb-email { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lcb-teachers .lcb-email wbr { display: none; }
}
@media (min-width: 721px) {
  #lcb-teachers .lcb-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto; column-gap: var(--s2); row-gap: 4px; align-items: start; }
  #lcb-teachers .lcb-form .lcb-fields, #lcb-teachers .lcb-form .lcb-submit { display: contents; }
  #lcb-teachers .lcb-form .lcb-field { grid-row: 1 / span 3; grid-template-rows: subgrid; gap: 4px; }
  #lcb-teachers .lcb-form .lcb-submit .button { grid-column: 3; grid-row: 2; align-self: stretch; margin: 0; white-space: nowrap; }
  #lcb-teachers .lcb-form .lcb-submit .lcb-form-status { grid-column: 1 / -1; grid-row: 4; margin: 0; }
  #lcb-teachers .lcb-form .lcb-submit .lcb-form-status:empty { display: none; }
}
@media (max-width: 720px) {
  .lcb-roster.lcb-teachers td.lcb-col-actions.is-empty { display: none; }
  .lcb-roster.lcb-teachers td:first-child .lcb-person { display: flex; }
  .lcb-roster.lcb-teachers td::before { grid-row: 1; } /* a teacher cell holds at most two lines, so no empty rows under them */
  /* 2026-11-06 (Kit: "on mobile the remove and resend should be in one row"): Resend invite moves out of the Status
     cell and sits beside Remove in the card's action row. */
  .lcb-roster.lcb-teachers .lcb-invite-meta [data-resend] { display: none; }
  .lcb-roster.lcb-teachers .lcb-more-list .lcb-resend-menu { display: inline-block; }
}

/* 0.4.20 (A86): a free learner's first screen. 2026-11-12 (Kit): laid out like My Lessons, a head then cards, with a
   side column for the computer and the account. One column on a phone or tablet. */
.lcb-free-head { margin-bottom: var(--s3); }
.lcb-free-head h1 { margin-bottom: 0; }
.lcb-free-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem); gap: var(--s3); align-items: start; }
.lcb-free-grid.is-one-col { grid-template-columns: minmax(0, 1fr); } /* 0.4.42: no side cards, so no side column */
.lcb-free-main-col, .lcb-free-side { display: grid; gap: var(--s3); min-width: 0; }
.lcb-free .lcb-card { margin: 0; }
.lcb-free .lcb-card h2 { font-size: 1.15rem; margin: 0 0 var(--s1); }
.lcb-free-next-lede { color: var(--muted); margin: 0 0 var(--s2); }
.lcb-free-side-line { color: var(--muted); font-size: 0.95rem; line-height: 1.45; margin: 0; }
.lcb-free .lcb-card.lcb-free-chapters { padding-top: var(--s2); padding-bottom: var(--s2); }
.lcb-free-chapters summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); list-style: none; }
.lcb-free-chapters summary::-webkit-details-marker { display: none; }
.lcb-free-chapters summary::after { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
.lcb-free-chapters[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.lcb-free-chapters summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.lcb-free-chapter-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--s1) var(--s3); margin-top: var(--s1); }
.lcb-free-chapters h3 { font-size: 1rem; margin: var(--s1) 0 4px; }
.lcb-free-chapters ul { margin: 0; padding-left: 1.1em; }
.lcb-free-chapters li { margin: 6px 0; }
.lcb-free-computer .lcb-free-on { margin: 0 0 var(--s1); }
.lcb-free-account { display: grid; gap: var(--s2); }
.lcb-free-account h2 { margin-bottom: 0; }
.lcb-free-account-row { display: grid; gap: var(--s1); justify-items: start; }
.lcb-free-account-row + .lcb-free-account-row { padding-top: var(--s2); border-top: 1px solid var(--rule); }
.lcb-free-account .button { min-height: 44px; padding: 8px 20px; font-size: 1rem; border: 0; cursor: pointer; font-family: inherit; font-weight: 700; margin: 0; }
.lcb-classroom .button.lcb-button-danger-quiet, .button.lcb-button-danger-quiet { background: transparent; color: #a12a1f; box-shadow: inset 0 0 0 2px #a12a1f; }
.lcb-classroom .button.lcb-button-danger-quiet:hover, .button.lcb-button-danger-quiet:hover { background: #a12a1f; color: #ffffff; }
.lcb-free .button:focus-visible, .lcb-delete-dialog .button:focus-visible, .lcb-delete-dialog input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 900px) { .lcb-free-grid { grid-template-columns: minmax(0, 1fr); } }
/* 0.4.33, popup since 2026-11-12: the red button stays off until DELETE is typed. Hidden until opened, also in a browser with no <dialog>. */
.lcb-delete-dialog:not([open]) { display: none; }
.lcb-delete-dialog .lcb-dialog-actions .button[disabled] { opacity: 0.6; }
.lcb-free-change { display: inline-flex; align-items: center; min-height: 44px; }
.lcb-delete-dialog input { min-height: 44px; font-size: 1rem; padding: 0 0.6rem; width: 100%; max-width: 16rem; text-transform: uppercase; letter-spacing: 0.06em; border: 2px solid var(--rule); border-radius: 8px; background: #ffffff; color: var(--text); box-sizing: border-box; }
.lcb-delete-dialog .lcb-error { margin: 0; color: #a12a1f; font-weight: 600; }
.lcb-delete-dialog .lcb-error[hidden] { display: none; }
.lcb-delete-dialog h2 { color: var(--text); }
.lcb-delete-dialog p#lcb-delete-what { color: var(--text); }
.lcb-delete-dialog p.lcb-delete-class { font-size: 0.95rem; }

/* 2026-11-11 (Kit): one computer per lesson set, chosen once above the lessons. No picker on any chapter or lesson row.
   The options are drawn from the server's list, so a new computer is one more card with no CSS change. */
.lcb-computer { margin: 0 0 var(--s3); padding: var(--s3); background: var(--bg); border-radius: 10px; }
.lcb-computer-h { margin: 0 0 var(--s1); font-weight: 700; font-size: 1.1rem; }
.lcb-computer-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: var(--s1); } /* 0.4.42 (Kit 2026-11-16): the options share the box's full width, like the lesson rows below; was capped at 40rem with an empty third slot */
.lcb-computer-option { display: flex; align-items: center; gap: 0.6em; min-height: 48px; padding: 0.6rem 0.9rem; background: var(--surface); border: var(--border); border-radius: 8px; font-weight: 700; cursor: pointer; }
.lcb-computer-option input { accent-color: var(--teal); width: 1.2rem; height: 1.2rem; margin: 0; flex: none; cursor: pointer; }
.lcb-computer-option:hover { border-color: var(--teal); }
.lcb-computer-option:has(input:checked) { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); background: #eef5f6; }
.lcb-computer-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.lcb-computer.is-locked .lcb-computer-option { cursor: default; opacity: 0.7; }
.lcb-computer.is-locked .lcb-computer-option:hover { border-color: var(--rule); }
.lcb-computer-rule { margin: var(--s1) 0 0; }
.lcb-computer-coming, .lcb-computer-groups { margin: 4px 0 0; color: var(--muted); }
.lcb-computer-note { margin: var(--s2) 0 0; padding: var(--s1) var(--s2); background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 6px; font-size: 0.95rem; }
.lcb-computer-note[hidden] { display: none; }
.lcb-tag.is-os { background: #e6f0f2; color: #0b3a44; font-weight: 600; }
/* Kit, 2026-11-11: a computer badge and the Next tag sit a clear gap away from the lesson or chapter name. */
.lcb-assigned-title { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.6em; row-gap: 0.25em; }
.lcb-assigned-title .lcb-tag { margin: 0; }
/* The certificate link fills its whole column and may wrap, so on a phone it stays inside the card (A101c, 2026-11-11). */
.lcb-certs .lcb-progress { display: block; min-width: 0; text-align: right; }
@media (max-width: 600px) { .lcb-cert-link { white-space: normal; overflow-wrap: anywhere; } }
.lcb-next-lead .lcb-tag.is-os { margin-left: 0.6em; margin-right: 0; vertical-align: 0.1em; }
.lcb-work-on { display: block; }

/* 2026-11-09 (Kit): a free learner picks the computer, then the lesson; a returning learner sees each saved place first. */
.lcb-free-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 12px; }
.lcb-free-card { display: grid; place-items: center; gap: 10px; min-height: 72px; padding: 16px 12px; background: var(--surface); border: var(--border); border-radius: 12px; color: inherit; text-align: center; text-decoration: none; }
.lcb-free-card:hover { box-shadow: inset 0 0 0 2px var(--teal); }
.lcb-free-card:focus-visible { outline: 3px solid #e4ad3a; outline-offset: 2px; }
.lcb-free-card strong { font-size: 1.25rem; }
.lcb-free-card svg { display: block; width: 64px; height: 64px; }
.lcb-free-places { display: grid; gap: 10px; }
.lcb-free-places h2 { margin-bottom: 0; }
.lcb-free-place { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 16px; background: var(--surface); border: var(--border); border-radius: 12px; }
.lcb-free-place-words { display: grid; gap: 2px; margin: 0; }
.lcb-free-place-words span { color: var(--muted); }
.lcb-free-place-words .lcb-free-place-os { color: var(--teal); font-size: 0.875rem; font-weight: 700; }
/* 2026-11-09 (Kit): one main button on each screen, with the lesson it opens named beside it. Continue is bigger than anything else there. */
.lcb-free-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.lcb-free-next-words { flex: 1 1 16rem; min-width: 0; }
.lcb-free-names { display: grid; gap: 4px; margin: 0; }
.lcb-free-names > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 8px; }
.lcb-free-names dt { color: var(--muted); }
.lcb-free-names dd { margin: 0; font-weight: 600; }
.button.lcb-free-main { flex: none; min-height: 56px; padding: 14px 36px; font-size: 1.25rem; }
.lcb-free-cards.is-small { grid-template-columns: minmax(0, 1fr); margin-top: var(--s1); }
.lcb-free-cards.is-small .lcb-free-card { grid-auto-flow: column; justify-content: center; min-height: 48px; padding: 8px 12px; }
.lcb-free-cards.is-small .lcb-free-card svg { width: 28px; height: 28px; }
.lcb-free-cards.is-small .lcb-free-card strong { font-size: 1rem; }
@media (max-width: 480px) { .button.lcb-free-main { width: 100%; text-align: center; } }
/* 0.4.42 (Kit 2026-11-16): the first "Which computer do you use?" is a centred choice of two big cards across the page,
   each showing where that computer's Start button sits. One card per row on a phone. */
.lcb-free-pick { padding: var(--s4) var(--s3); text-align: center; }
.lcb-free .lcb-card.lcb-free-pick h2 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); margin-bottom: var(--s1); }
.lcb-free-pick .lcb-free-next-lede { margin: 0 auto; max-width: 40ch; }
.lcb-free-pick .lcb-free-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--s3); max-width: 46rem; margin: var(--s4) auto 0; }
.lcb-free-pick .lcb-free-card { align-content: start; gap: 12px; min-height: 0; padding: var(--s4) var(--s3) var(--s3); border-radius: 14px; } /* both cards line up when one hint wraps */
.lcb-free-pick .lcb-free-card svg { width: 72px; height: 72px; }
.lcb-free-pick .lcb-free-card strong { font-size: 1.375rem; }
.lcb-free-card-bar { position: relative; display: block; width: min(100%, 11rem); height: 14px; margin-top: 4px; background: #d9e1e3; border-radius: 4px; }
.lcb-free-card-bar i { position: absolute; top: 3px; width: 8px; height: 8px; background: var(--teal); border-radius: 2px; }
.lcb-free-card-bar[data-start="left"] i { left: 4px; }
.lcb-free-card-bar[data-start="middle"] i { left: calc(50% - 4px); }
.lcb-free-card-hint { color: var(--muted); font-size: 0.95rem; line-height: 1.35; }
@media (max-width: 600px) { .lcb-free-pick { padding: var(--s3) var(--s2); } .lcb-free-pick .lcb-free-cards { gap: var(--s2); margin-top: var(--s3); } }
.lcb-free-place .button.lcb-button-quiet { flex: none; width: auto; min-height: 40px; padding: 6px 18px; font-size: 0.95rem; }

/* Unit quizzes (2026-11-09): the teacher's Assign or Skip, and the learner's list. */
.lcb-unit-quiz { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem var(--s3); margin-top: var(--s2); padding: 0.45rem 0.6rem; border-radius: 6px; background: var(--paper-2, #f4f2ec); }
.lcb-unit-quiz-label { font-weight: 700; }
.lcb-quizzes:empty { display: none; }
.lcb-quiz-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.3rem var(--s2); margin: var(--s2) 0 0; padding: 0.5rem 0.6rem; border-radius: 6px; background: var(--paper-2, #f4f2ec); }
.lcb-quiz-name { font-weight: 700; }
.lcb-quiz-done { font-weight: 700; }
.lcb-quiz-wait { color: var(--muted); }

/* ---- 0.4.39 My account (A111) ------------------------------------------------------- */
/* 0.4.40 (Kit 2026-11-16: "the content should still be consistent on the other content like its main width content"):
   the page uses the same full content width as My Lessons and Welcome; on wide screens the cards sit two to a row. */
.lcb-account { max-width: none; }
@media (min-width: 960px) {
  .lcb-account { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s3); align-items: start; }
  .lcb-account > :not(.lcb-account-card) { grid-column: 1 / -1; }
  .lcb-account > .lcb-account-card:last-of-type:nth-of-type(odd) { grid-column: 1 / -1; } /* a teacher's third card fills its row */
}
.lcb-account-card { display: grid; gap: var(--s2); margin-bottom: var(--s3); }
.lcb-account-card h2 { margin-bottom: 0; }
.lcb-account-rows { display: grid; gap: 10px; margin: 0; }
.lcb-account-rows > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 12px; }
.lcb-account-rows dt { color: var(--muted); }
.lcb-account-rows dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.lcb-account-links { margin: 0; }
/* 0.4.44.4 Billing card (Kit 2026-11-19): what Stripe's page does, as three ticked words (not buttons), and one button. */
.lcb-billing-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.lcb-billing-list li { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.lcb-billing-list li::before { content: ""; flex: none; width: 5px; height: 10px; margin: -3px 2px 0 2px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg); }
.lcb-billing-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.lcb-billing-go { position: relative; }
.lcb-billing-go .lcb-form-status { margin: 0; }
.lcb-billing-go .lcb-form-status:empty { position: absolute; } /* takes no room until it has something to say; stays in the page for screen readers */
.lcb-billing .lcb-free-side-line { margin: 0; }
@media (min-width: 960px) {
  /* A teacher's Billing card fills its row: the chips on the left, the button on the right. */
  .lcb-account > .lcb-billing:last-of-type:nth-of-type(odd) { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s4); align-items: center; }
  .lcb-account > .lcb-billing:last-of-type:nth-of-type(odd) > :not(.lcb-billing-go) { grid-column: 1; }
  .lcb-account > .lcb-billing:last-of-type:nth-of-type(odd) > .lcb-billing-go { grid-column: 2; grid-row: 1 / span 3; justify-content: flex-end; }
}
@media (max-width: 520px) {
  .lcb-account-rows > div { grid-template-columns: 1fr; gap: 2px; }
}

/* 0.4.40 (Kit 2026-11-16): a teacher's My account page in the dashboard frame (templates/partials/account-side.php).
   The sidebar shows from 1024 px, like the dashboard's; below that the dashboard's is a drawer, and this one has no
   drawer button, so it stays out of the way. */
@media (max-width: 1023px) { .lcb-side-static { display: none; } }
.lcb-app-account .lcb-account { margin-top: var(--s2); }
.lcb-side-static .lcb-side-tool[aria-current="page"] { background: var(--teal); color: var(--teal-ink); font-weight: 700; } /* this page, as the dashboard marks its own */

/* ---- 0.4.39 the end of the free lessons (A113) --------------------------------------- */
.lcb-free-more { margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid var(--rule); }
.lcb-free-more h3 { margin: 0 0 var(--s1); }
.lcb-free-more ul { margin: 0 0 var(--s2); padding-left: 1.2em; color: var(--muted); }
.lcb-free-place-done { color: var(--muted); font-weight: 600; }

/* 0.4.40 (Kit 2026-11-16): the full course on the free learner's page, only while one person can buy it. */
.lcb-free-full { border-top: 3px solid var(--teal); display: grid; gap: var(--s1); justify-items: start; }
.lcb-free-full h2 { margin-bottom: 0; }
.lcb-free-full-price { margin: 0; font-size: 1.35rem; font-weight: 700; color: var(--teal); }
.lcb-free-full-list { margin: 0; padding-left: 1.1em; color: var(--muted); }
.lcb-free-full-list li { margin: 4px 0; }
.lcb-free .button.lcb-free-full-go { min-height: 44px; padding: 8px 20px; font-size: 1rem; font-weight: 700; margin: var(--s1) 0 0; }
.lcb-full-welcome { border-left: 4px solid var(--gold); }
.lcb-full-welcome h2 { margin-top: 0; }
/* 0.4.40 (Kit 2026-11-16: "too tired to scroll down on everything"): a personal learner's units fold to one row each. */
.lcb-unit-fold { border-top: 1px solid var(--rule); }
.lcb-unit-fold:last-child { border-bottom: 1px solid var(--rule); }
.lcb-unit-sum { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 52px; padding: 10px 0; cursor: pointer; list-style: none; }
.lcb-unit-sum::-webkit-details-marker { display: none; }
.lcb-unit-sum-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.lcb-unit-sum::before { content: ""; width: 0.55rem; height: 0.55rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); flex: none; }
.lcb-unit-fold[open] .lcb-unit-sum::before { transform: rotate(45deg); }
.lcb-unit-sum-name { flex: 1 1 auto; min-width: 0; }
.lcb-unit-sum:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.lcb-unit-sum .lcb-tag { margin: 0; }
.lcb-tag.is-done { background: #dcebe4; }
.lcb-unit-sum .lcb-progress { display: flex; align-items: center; gap: 10px; min-width: 9rem; justify-content: flex-end; }
.lcb-fold-list { margin: 0 0 var(--s2); }
.lcb-fold-quiz, .lcb-fold-certs { margin: 0 0 var(--s2); }
.lcb-unit-sum .lcb-progress-count { min-width: 4.5em; text-align: right; }
@media (max-width: 600px) { .lcb-unit-sum .lcb-bar { display: none; } .lcb-unit-sum .lcb-progress { min-width: 0; } }

/* ---- 0.4.43 learner dashboard (Kit 2026-11-17: "too many all at once ... similar to the teachers dashboard") ----
   My Lessons in the class dashboard's frame (.lcb-app above): sidebar, top bar, one section at a time, tiles. These
   rules only add what the learner's page has and the teacher's has not. */
html:has(.lcb-dash[data-dash="learn"]) { scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 84px); }
/* The top bar holds only Menu and the section name, so on a wide screen (sidebar shown) it is not drawn. */
@media (min-width: 1024px) { .lcb-learn .lcb-topbar { display: none; } }
.lcb-learn .lcb-card-title { margin: 0 0 var(--s2); font-family: var(--serif); font-size: 1.3rem; } /* as the class dashboard's overview cards */
.lcb-learn .lcb-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--s2); }
.lcb-learn .lcb-card-head .lcb-card-title, .lcb-learn .lcb-card-head h2 { margin-bottom: var(--s2); }
.lcb-learn .lcb-overview > .lcb-card { margin-bottom: var(--s3); }
/* The next lesson's card: the button is the one thing to press. A quiz that is ready sits under it. */
.lcb-learn .lcb-next-lead { border-bottom: 0; padding-bottom: 0; }
.lcb-learn .lcb-next-go .button { min-height: 52px; padding: 0 var(--s4); font-size: 1.1rem; }
/* Quiz rows (Kit 2026-11-18: no grey or blue fill): drawn like lesson rows in the same list. The circle is ticked once
   taken; what to finish first sits in a small line under the name; points, the button or Locked on the right. */
.lcb-learn .lcb-quiz-list { margin: 0; }
.lcb-learn .lcb-quiz-item .lcb-quiz-title { row-gap: 2px; }
.lcb-learn .lcb-quiz-item .lcb-quiz-name { font-weight: 600; }
.lcb-learn .lcb-quiz-item.is-ready .lcb-quiz-title > a { font-weight: 700; }
.lcb-learn .lcb-quiz-item .lcb-quiz-wait { flex-basis: 100%; color: var(--muted); font-size: 0.875rem; line-height: 1.35; }
.lcb-learn .lcb-tag.is-quiz { background: transparent; color: var(--muted); font-weight: 600; padding: 0; }
.lcb-learn .lcb-quiz-state { display: flex; justify-content: flex-end; align-items: center; }
.lcb-learn .lcb-quiz-state .lcb-progress-count { text-align: right; font-weight: 700; }
.lcb-learn .lcb-quiz-lock { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.lcb-learn .lcb-quiz-lock::before { content: ""; display: inline-block; width: 0.7em; height: 0.55em; margin-right: 0.4em; border: 2px solid currentColor; border-radius: 2px; box-shadow: 0 -0.35em 0 -0.12em var(--surface), 0 -0.35em 0 0 currentColor; vertical-align: -0.05em; }
.lcb-learn .button.lcb-quiz-go { min-height: 40px; padding: 0 var(--s2); font-size: 0.95rem; white-space: nowrap; }
.lcb-next-quiz { margin-top: var(--s3); padding-top: var(--s1); border-top: 1px solid var(--rule); }
/* Every list on the learner page uses the lesson rows' column widths, the Quizzes card included. */
.lcb-learn { --lcb-progress-w: 13rem; --lcb-count-w: 4rem; }
@media (max-width: 600px) { .lcb-learn { --lcb-progress-w: 7.5rem; --lcb-count-w: 3.3rem; } }
.lcb-learn .lcb-this-unit .lcb-fold-list { margin: 0; }
.lcb-learn .lcb-this-unit .lcb-fold-certs { margin: var(--s2) 0 0; }
.lcb-learn .lcb-unit-sum strong { font-size: 1.05rem; }
.lcb-whole { display: block; margin-top: 4px; color: var(--muted); font-size: 0.9rem; }
.lcb-learn .lcb-empty { margin: 0; color: var(--muted); }
@media (max-width: 600px) {
  .lcb-learn .lcb-next-go .button { width: 100%; justify-content: center; text-align: center; }
  /* On a phone the quiz's points, button or Locked goes under its name. */
  .lcb-learn .lcb-quiz-item { grid-template-columns: 1.35rem minmax(0, 1fr); row-gap: 6px; }
  .lcb-learn .lcb-quiz-item .lcb-quiz-state { grid-column: 2; justify-content: flex-start; }
}
/* A quiz ready to take is good news, so its count in the menu is teal, not the teacher's alert colour. */
.lcb-learn .lcb-side-nav .lcb-nav-count { background: #e6f0f2; color: var(--teal); }
.lcb-learn .lcb-side-nav a[aria-current="page"] .lcb-nav-count { background: var(--teal-ink); color: var(--teal); }

/* 0.4.44.3 (Kit, 2026-11-18: "these 3 buttons i dont like how they look. improve them"): the setup steps are three
   matching tiles in one row. The whole tile is the link; a numbered badge, a small kicker, a bold label and an arrow.
   A done step goes quiet with a teal tick. Optional steps keep a dashed edge. Stacks to one column on narrow screens. */
.lcb-setup-body { flex: 1 1 auto; }
.lcb-setup ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s2); }
.lcb-setup li, .lcb-setup li.is-optional, .lcb-setup li.is-done { display: block; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.lcb-setup a.lcb-setup-step { display: flex; align-items: center; gap: 0.8rem; height: 100%; min-height: 64px; box-sizing: border-box; padding: 0.85rem 1rem; background: var(--bg); border: 1px solid var(--rule); border-radius: 10px; color: var(--text); font-weight: 400; text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background-color 0.15s ease; }
.lcb-setup a.lcb-setup-step:hover { border-color: var(--teal); background: var(--surface); box-shadow: 0 6px 16px -10px rgba(14, 76, 90, 0.55); transform: translateY(-1px); }
.lcb-setup a.lcb-setup-step:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lcb-setup .lcb-setup-step .lcb-check { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border: 0; background: var(--teal); color: var(--teal-ink); font-weight: 700; font-size: 0.95rem; }
.lcb-setup li.is-optional .lcb-setup-step { border-style: dashed; }
.lcb-setup li.is-optional .lcb-check { display: inline-flex; background: var(--gold-soft); color: var(--teal); }
.lcb-setup-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.lcb-setup-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lcb-setup-label { margin-top: 0.15rem; font-weight: 700; font-size: 1rem; color: var(--teal); }
.lcb-setup-go { flex: none; margin-left: auto; width: 0.55rem; height: 0.55rem; border: solid var(--teal); border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform 0.15s ease; }
.lcb-setup a.lcb-setup-step:hover .lcb-setup-go { transform: translateX(3px) rotate(45deg); }
.lcb-setup li.is-done .lcb-setup-step { background: transparent; border-color: var(--rule); }
.lcb-setup li.is-done .lcb-setup-label { color: var(--muted); font-weight: 400; text-decoration: line-through; text-decoration-thickness: 1px; }
.lcb-setup li.is-done .lcb-setup-num { visibility: hidden; }
.lcb-setup li.is-done .lcb-check::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.32rem; height: 0.62rem; border: solid var(--teal-ink); border-width: 0 0.14rem 0.14rem 0; transform: translate(-50%, -62%) rotate(45deg); }
.lcb-setup li.is-done .lcb-setup-go { border-color: var(--muted); }
@media (max-width: 600px) { .lcb-setup ol { grid-template-columns: 1fr; } }

/* ---- 0.4.44.4 Assign lessons, clearer and simpler (Kit 2026-11-18: "make it more clear and simplified and improve some
   parts on the design. no internal copy no long text"). Two numbered steps (computer, then lessons); the computers as
   one row of tiles with any coming one greyed and marked Soon; Select all beside the step; each unit a card that counts
   its ticked lessons; the unit quiz as an Assign | Skip switch; the count beside Save in the bar that stays on screen. */
.lcb-assign-step { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; font-size: 1.1rem; }
.lcb-assign-step-n { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: var(--teal-ink); font-size: 0.9rem; font-weight: 700; }
.lcb-computer { display: grid; gap: var(--s2); margin: 0 0 var(--s4); padding: var(--s3); background: var(--bg); border-radius: 12px; }
.lcb-computer-h { margin: 0; }
.lcb-computer-options { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.lcb-computer-option.is-soon { justify-content: space-between; background: transparent; border-style: dashed; color: var(--muted); font-weight: 600; cursor: default; }
.lcb-computer-option.is-soon:hover { border-color: var(--rule); }
.lcb-soon { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--pending-bg); color: var(--muted); }
.lcb-computer-rule, .lcb-computer-groups, .lcb-computer-note { margin: 0; }
.lcb-computer .lcb-computer-rule { margin-top: -4px; }
.lcb-computer .lcb-computer-groups { margin-top: -10px; }
/* A129 S2: the choices' body keeps the box's spacing; the add-on-only line stands in for it. */
.lcb-computer-body { display: grid; gap: var(--s2); }
.lcb-computer-body[hidden], .lcb-computer-none[hidden] { display: none; }
.lcb-computer-none { margin: 0; color: var(--muted); }
.lcb-lessons-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1) var(--s3); margin: 0 0 var(--s2); }
.lcb-select-all { display: inline-flex; align-items: center; gap: 4px 0.4em; min-height: 44px; padding: 6px 16px 6px 12px; background: var(--surface); border: var(--border); border-radius: 999px; font-weight: 700; cursor: pointer; }
.lcb-select-all:hover { border-color: var(--teal); }
.lcb-select-all:has(input:checked) { border-color: var(--teal); background: #eef5f6; }
.lcb-select-all .lcb-small { font-weight: 400; color: var(--muted); }
.lcb-assign .lcb-select-all input[type="checkbox"] { margin: 0 0.2rem 0 0; }
.lcb-assign .lcb-unit { margin: 0 0 var(--s3); padding: 6px var(--s2) var(--s2); background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; }
.lcb-assign .lcb-unit.has-chosen { border-color: #9fbcc2; }
.lcb-assign .lcb-unit legend { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); float: left; width: 100%; padding: var(--s1) 0; border-bottom: 2px solid var(--teal); font-size: 1.1rem; }
.lcb-assign .lcb-unit legend + * { clear: both; }
.lcb-unit-count { font-family: var(--sans, inherit); font-size: 0.85rem; font-weight: 700; color: var(--teal); white-space: nowrap; }
.lcb-unit-count:empty { display: none; }
.lcb-unit-count.is-all { padding: 2px 10px; border-radius: 999px; background: var(--teal); color: var(--teal-ink); }
.lcb-assign .lcb-chapter:last-of-type { border-bottom: 0; }
.lcb-assign .lcb-chapter summary { min-height: 48px; }
.lcb-assign .lcb-chapter summary::after { width: 28px; height: 28px; }
.lcb-assign .lcb-unit-quiz { justify-content: space-between; gap: var(--s1) var(--s2); margin-top: var(--s1); padding: 6px 6px 6px 12px; border-radius: 10px; background: var(--bg); }
.lcb-unit-quiz-label .lcb-small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.lcb-seg { display: inline-flex; padding: 3px; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; }
.lcb-seg label { position: relative; display: inline-flex; cursor: pointer; }
.lcb-seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.lcb-seg span { display: inline-block; min-width: 4.5rem; padding: 6px 14px; border-radius: 999px; text-align: center; font-weight: 700; font-size: 0.9rem; color: var(--muted); }
.lcb-seg label:hover span { color: var(--teal); }
.lcb-seg input:checked + span { background: var(--teal); color: var(--teal-ink); }
.lcb-seg input[value="skip"]:checked + span { background: var(--pending-bg); color: var(--text); }
.lcb-seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.lcb-seg input:disabled + span { opacity: 0.6; cursor: default; }
.lcb-assign .lcb-submit { align-items: center; gap: var(--s1) var(--s3); }
.lcb-assign-count { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0; }
.lcb-assign .lcb-submit .lcb-form-status:empty { position: absolute; } /* no room until it speaks; still read out */
.lcb-unsaved { font-size: 0.8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); color: #5c4400; }

/* 0.4.44.5 (Kit 2026-11-19: "fix the my account cards some parts not properly aligned"; "just make a standard billing
   card"; "i dont like the dark. cream background on the assign lessons"). */
@media (min-width: 960px) {
  .lcb-account { align-items: stretch; }                       /* cards in one row are the same height */
  .lcb-account > .lcb-account-card { align-content: start; }   /* their contents start at the top */
  .lcb-account > .lcb-billing:last-of-type:nth-of-type(odd) { grid-column: auto; display: grid; grid-template-columns: none; }
  .lcb-account > .lcb-billing:last-of-type:nth-of-type(odd) > :not(.lcb-billing-go),
  .lcb-account > .lcb-billing:last-of-type:nth-of-type(odd) > .lcb-billing-go { grid-column: 1; grid-row: auto; justify-content: flex-start; }
}
.lcb-computer { background: var(--surface); border: 1px solid var(--rule); }
.lcb-assign-for { background: var(--surface); border: 1px solid var(--rule); }
.lcb-assign .lcb-unit-quiz { background: transparent; border-top: 1px solid var(--rule); border-radius: 0; padding: 10px 0 2px; }
.lcb-seg input[value="skip"]:checked + span { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--muted); }
.lcb-billing-desc { margin: 0; color: var(--muted); } /* 0.4.44.6 */

/* ---- 0.4.46 (A126): periods inside a class. "Progress by class" on the Overview, and the "Add learners" popup. ---- */
.lcb-byclass[hidden] { display: none; }
.lcb-byclass-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.lcb-byclass-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem); align-items: center; gap: var(--s1) var(--s4); padding: var(--s2) 0; border-bottom: 1px solid var(--rule); }
.lcb-byclass-main { min-width: 0; }
.lcb-byclass-name { font-weight: 700; font-size: 1.05rem; text-align: left; overflow-wrap: anywhere; min-height: 32px; }
.lcb-byclass-row.is-none .lcb-byclass-name { font-weight: 600; color: var(--muted); }
.lcb-byclass-meta { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25em 0.5em; }
.lcb-byclass-meta .lcb-tag { margin: 0; }
.lcb-byclass-done p { margin: 0 0 6px; font-size: 0.9rem; color: var(--muted); }
.lcb-byclass-done.is-empty { margin: 0; font-size: 0.9rem; color: var(--muted); }
.lcb-byclass-pct { font-size: 1.15rem; margin-right: 0.15em; }
.lcb-byclass-bar { display: block; height: 8px; border-radius: 999px; background: var(--pending-bg, #eceae3); overflow: hidden; }
.lcb-byclass-fill { display: block; height: 100%; border-radius: 999px; background: var(--teal); min-width: 2px; }
@media (max-width: 640px) {
  .lcb-byclass-row { grid-template-columns: minmax(0, 1fr); }
}
.lcb-add { display: grid; gap: var(--s2); }
.lcb-add-search { font: inherit; font-size: 1rem; padding: 0.7em 0.8em; min-height: 44px; border: var(--border); border-radius: 8px; background: var(--surface); color: var(--text); width: 100%; box-sizing: border-box; }
.lcb-add-search:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lcb-add-all { display: flex; align-items: center; gap: 0.6em; font-weight: 600; min-height: 32px; cursor: pointer; }
.lcb-add-others { font-weight: 400; }
/* Verify finding 2: with a long list the popup's buttons stay in view at the bottom of the popup, on any screen. */
.lcb-dialog:has(.lcb-add) .lcb-dialog-actions { position: sticky; bottom: 0; z-index: 1; margin: var(--s1) calc(-1 * var(--s4)) calc(-1 * var(--s4)); padding: var(--s2) var(--s4) var(--s4); background: var(--surface); box-shadow: 0 -1px 0 var(--rule); }
.lcb-add-list { list-style: none; margin: 0; padding: 0; max-height: min(20rem, 40vh); overflow-y: auto; border: 1px solid var(--rule); border-radius: 8px; }
.lcb-add-list:empty { display: none; }
.lcb-add-row + .lcb-add-row { border-top: 1px solid var(--rule); }
.lcb-add-row label { display: flex; align-items: center; gap: 0.75em; padding: 0.6em 0.8em; min-height: 44px; cursor: pointer; }
.lcb-add-row input, .lcb-add-all input { flex: none; width: 1.15em; height: 1.15em; margin: 0; }
.lcb-add-who { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.lcb-add-name { font-weight: 600; overflow-wrap: anywhere; }
.lcb-add-who .lcb-email { overflow-wrap: anywhere; }
.lcb-add-row .lcb-tag.is-group { margin: 0; flex: none; max-width: 45%; white-space: normal; overflow-wrap: anywhere; border-radius: 6px; }
.lcb-add-none[hidden] { display: none; }
.lcb-add-count { margin: 0; font-weight: 600; }
.lcb-preview-from { margin: 0 0 var(--s1); }
@media (max-width: 480px) {
  /* Review S6 and verify finding 2: on a phone the list stays short, and the popup's buttons stay on screen. */
  .lcb-add-list { max-height: min(12rem, 26vh); }
  .lcb-dialog:has(.lcb-add) .lcb-dialog-actions { margin: var(--s1) calc(-1 * var(--s3)) calc(-1 * var(--s3)); padding: var(--s2) var(--s3) var(--s3); }
}
