/* ============================================================
   Lectern shell — the top bar, the pinned path, Home and a course
   offering's page. Same palette, sizes and start-screen design as the
   three builders (their "Suite" look), so moving between Lectern's own
   pages and a builder doesn't change the frame.
   Every selector here is #lt-… / .lt-…: the builders' styles are scoped
   to their own element and the two never meet.
   ============================================================ */

:root {
  --bg: #e9e8e4; --bar: #ffffff; --ink: #1f2329; --ink-2: #4a4f57; --ink-3: #7a7f87;
  --line: #d4d5d8; --field: #ffffff; --accent: #a67c00; --accent-bg: #fdf3d6;
  --danger: #b42318; --danger-bg: #fdf0ee; --danger-line: #f3cdc7;
  --warn: #9a5b06; --warn-bg: #fdf6e6; --warn-line: #efd9a7;
  --home-bg: #fbfaf7; --home-card: #ffffff; --home-strip: #f6f5f2; --home-line: #e6e5e1; --home-line-2: #cfd0d3;
  --home-ink: #1f2329; --home-ink-2: #4a4f57; --home-ink-3: #80848b; --home-ok: #2f8f5b;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-serif: "EB Garamond", Garamond, Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17191d; --bar: #202328; --ink: #eceef1; --ink-2: #c3c7ce; --ink-3: #8d939c;
    --line: #353941; --field: #2a2e34; --accent: #e2b84a; --accent-bg: #3a3017; --danger: #f08a7e; --danger-bg: #3a1f1c; --danger-line: #5c2d27; --warn: #e9b65c; --warn-bg: #362b16; --warn-line: #5a4622;
    --home-bg: #17191d; --home-card: #1f2226; --home-strip: #25282d; --home-line: #2f3339; --home-line-2: #3d424a; --home-ink: #eceef1; --home-ink-2: #c3c7ce; --home-ink-3: #8d939c; --home-ok: #5cc28a;
  }
  /* The splash stays on paper, as Beamer+'s does. */
  :root:not([data-theme="light"]) body.lt-on-app { color-scheme: dark; }
}

html, body { margin: 0; font-size: 14px; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-ui); }
body.lt-on-splash { background: #f3f4ef; }
[hidden] { display: none !important; }

/* Until the page knows whether there's a session, show nothing rather than the wrong screen. */
html.lt-has-session #splash { display: none; }

/* ── Top bar (same as the builders' .tb) ───────────────────── */
.lt-bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  padding: 10px 16px; background: var(--bar); border-bottom: 1px solid var(--line);
}
.lt-bar button {
  font: inherit; font-size: 14px; height: 36px; border-radius: 7px; border: 1px solid var(--line);
  background: var(--field); color: var(--ink); padding: 0 11px; cursor: pointer;
}
.lt-bar button:hover:not(:disabled) { border-color: var(--ink-3); }
.lt-bar button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.lt-bar button:disabled { opacity: .4; cursor: default; }
/* Home: the Lectern wordmark (as on the admin panel), not a button with a border. */
.lt-bar > button#lt-home { width: auto; padding: 0 6px 0 2px !important; display: inline-flex; align-items: center; border-color: transparent !important; background: none !important;
  font: 500 22px/1 var(--font-serif) !important; letter-spacing: -.01em; color: var(--ink) !important; }
.lt-bar > button#lt-home:hover:not(:disabled) { background: none !important; border-color: transparent !important; color: var(--accent) !important; }
/* Back and Forward, beside Home (in Lectern's bar and in each builder's) */
.lt-nav { display: inline-flex; gap: 2px; }
.lt-nav button { all: unset !important; box-sizing: border-box; display: inline-grid; place-items: center; width: 30px; height: 36px; border-radius: 7px; color: var(--ink-2); cursor: pointer; }
.lt-nav button { display: inline-grid !important; place-items: center !important; width: 30px !important; height: 36px !important; border-radius: 7px !important; color: var(--ink-2) !important; cursor: pointer !important; }
.lt-nav button:hover:not(:disabled) { background: var(--bg) !important; color: var(--ink) !important; }
.lt-nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.lt-nav button:disabled { opacity: .3 !important; cursor: default !important; }
.lt-nav svg { width: 18px; height: 18px; }
.lt-spacer { flex: 1; }
.lt-bar > :not(#lt-path) { flex-shrink: 0; }
.lt-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; min-width: 0; }
.lt-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 7px; border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--ink); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.lt-pill svg { width: 14px; height: 14px; color: var(--warn); flex: none; }
.lt-save { background: var(--ink) !important; color: var(--bar) !important; border-color: var(--ink) !important; font-weight: 600 !important; }
.lt-acct-wrap { position: relative; }
.lt-acct { display: inline-flex; align-items: center; gap: 8px; max-width: 260px; }
.lt-acct img { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.lt-acct svg { width: 16px; height: 16px; flex: none; }
.lt-acct span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-acct svg.lt-chev { width: 14px; height: 14px; margin-left: -2px; opacity: .6; transition: transform .15s; }
.lt-acct[aria-expanded="true"] svg.lt-chev { transform: rotate(180deg); }
.lt-saving { font-weight: 600; color: var(--ink); }
.lt-menu button.lt-menu-save { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; }
.lt-menu button.lt-menu-save:disabled { font-weight: 400; color: var(--ink-3) !important; cursor: default; }
.lt-menu button.lt-menu-save:disabled:hover { background: transparent !important; }
.lt-menu kbd { font: 500 11.5px var(--font-ui); color: var(--ink-3); }
.lt-menu {
  position: absolute; right: 0; top: 42px; min-width: 240px; padding: 6px; z-index: 40;
  background: var(--bar); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgb(0 0 0 / .18);
  display: flex; flex-direction: column;
}
.lt-menu p { margin: 6px 10px 8px; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.lt-menu p b { color: var(--ink); font-weight: 600; }
.lt-menu button { border: 0 !important; background: transparent !important; text-align: left; height: 34px; border-radius: 6px; padding: 0 10px; }
.lt-menu button:hover { background: var(--bg) !important; }
.lt-menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 2px; }

/* ── The path: in the top bar, after Back and Forward. It starts at the repository (Home). ── */
#lt-path {
  flex: 1 1 0; min-width: 60px;
  display: flex; align-items: center; gap: 6px; box-sizing: border-box;
  height: 36px; padding: 0 4px; margin: 0;
  background: transparent; border: 0; box-shadow: none;
  font: 500 15px/1 var(--font-ui); color: var(--ink-3);
  white-space: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
}
#lt-path::-webkit-scrollbar { display: none; }
#lt-path .lt-step {
  all: unset; box-sizing: border-box; flex: 0 1 auto; min-width: 0; max-width: 32ch;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 3px 5px; margin: 0 -1px; border-radius: 5px;
  font: inherit; color: var(--ink-3); cursor: default;
}
#lt-path button.lt-step { cursor: pointer; }
#lt-path button.lt-step:hover { color: var(--ink); background: var(--home-line); text-decoration: underline; text-underline-offset: 3px; }
#lt-path button.lt-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
#lt-path .lt-step.cur { color: var(--ink); font-weight: 600; }
/* A long path doesn't squash: it scrolls sideways (its end showing) */
#lt-path .lt-step, #lt-path .lt-sep { flex-shrink: 0; max-width: none; overflow: visible; }
#lt-path.scrolled { -webkit-mask-image: linear-gradient(to right, transparent, #000 28px); mask-image: linear-gradient(to right, transparent, #000 28px); }
@media (max-width: 1100px) { .lt-pill .lt-pill-x { display: none; } }
#lt-path .lt-sep { flex: none; color: #b4b6ba; font-size: 17px; line-height: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #lt-path .lt-sep { color: var(--ink-3); } }
/* The builders' own in-page paths: the strip shows them now. */
.lt-tool #stage .crumbs, .lt-tool .stage .crumbs { display: none !important; }
.lt-tool #pathbar { display: none !important; }   /* a builder's own path strip: Lectern's replaces it */
/* Inside a builder, Lectern's bar stays on top, the same as everywhere. The builder's own bar
   becomes the strip under it: the path, then the builder's view switch and its tools
   (Copy HTML, Import and Export, zoom). Its Home, Save and status are Lectern's now. */
.lt-tool .tb.lt-tb {
  top: var(--lt-tb, 57px) !important; z-index: 19 !important;
  box-sizing: border-box; padding: 6px 16px !important;
  background: var(--bg) !important;
}
.lt-tool .tb.lt-tb > #home-btn, .lt-tool .tb.lt-tb > #save, .lt-tool .tb.lt-tb > .status,
.lt-tool .tb.lt-tb > .spacer, .lt-tool .tb.lt-tb > .lt-nav, .lt-tool .tb.lt-tb > #copy { display: none !important; }
[data-lt-tool="grades"] .tb.lt-tb > #tb-right { display: none !important; }   /* the gradebook's Import and Export */
.lt-tool .tb.lt-tb > #tb-right { margin-left: auto; }
/* Nothing of the builder's own to show here (the course page, Evaluations, Settings): no strip at all. */
.lt-tool .tb.lt-tb:not(:has(> #tb-view:not(:empty))):not(:has(> #tb-right:not(:empty))),
[data-lt-tool="grades"] .tb.lt-tb:not(:has(> #tb-view:not(:empty))) { display: none !important; }
.lt-fails { margin: 0 0 4px; padding-left: 20px; line-height: 1.5; }

/* ── Builders ── */
.lt-tool { min-height: calc(100vh - 0px); }
.lt-loading { display: grid; place-items: center; min-height: 50vh; color: var(--ink-3); font-size: 14px; }

/* ── Lectern's own pages (Home, a course offering): the builders' start-screen design ── */
.lt-page { min-height: calc(100vh - var(--lt-tb, 57px)); background: var(--home-bg); color: var(--home-ink); }
.lt-in { max-width: 1080px; margin: 0 auto; padding: 40px 24px 72px; box-sizing: border-box; }
.lt-kicker { font: 600 11.5px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--home-ink-3); margin: 0 0 14px; }
.lt-page h1 { font: 500 clamp(36px, 5vw, 52px)/1.04 var(--font-serif); letter-spacing: -0.02em; margin: 0 0 12px; color: var(--home-ink); }
.lt-lede { margin: 0; max-width: 600px; font-size: 15.5px; line-height: 1.6; color: var(--home-ink-2); }
.lt-lede code, .lt-src code, .lt-note code { font: 12.5px var(--font-mono); color: var(--home-ink-2); }

.lt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 9px; border: 1px solid var(--home-line-2); background: var(--home-card); color: var(--home-ink); font: 600 14px var(--font-ui); cursor: pointer; text-decoration: none; white-space: nowrap; box-sizing: border-box; }
.lt-btn:hover:not(:disabled) { border-color: var(--home-ink-3); }
.lt-btn:disabled { opacity: .5; cursor: default; }
.lt-btn.primary { background: var(--home-ink); color: var(--home-bg); border-color: var(--home-ink); }
.lt-btn.primary:hover:not(:disabled) { opacity: .92; }
.lt-btn.add { border: 1.5px dashed #d9b544; background: transparent; color: #7d5c00; }
.lt-btn.add:hover:not(:disabled) { background: #fdf3d6; border-color: #c99a06; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lt-btn.add { border-color: #6a5422; color: var(--accent); } :root:not([data-theme="light"]) .lt-btn.add:hover:not(:disabled) { background: var(--accent-bg); border-color: var(--accent); } }
.lt-btn svg { width: 16px; height: 16px; flex: none; }
.lt-btn:focus-visible, .lt-card:focus-visible, .lt-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lt-link { border: 0; background: none; padding: 0; font: inherit; color: var(--home-ink-2); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.lt-link:hover { color: var(--home-ink); }

.lt-src { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 28px 0 0; padding: 16px 18px; border: 1px solid var(--home-line-2); border-radius: 14px; background: var(--home-card); }
.lt-src > svg { width: 26px; height: 26px; flex: none; color: var(--home-ink-2); }
.lt-src > div { flex: 1; min-width: 220px; }
.lt-src b { display: block; font-size: 15px; font-weight: 600; color: var(--home-ink); }
.lt-src span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--home-ink-3); }

.lt-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 40px 0 16px; }
.lt-sec h2 { margin: 0; font: 600 11.5px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--home-ink-3); }
.lt-sec span { font-size: 12.5px; color: var(--home-ink-3); }
.lt-sec { align-items: center; flex-wrap: wrap; }
.lt-sec h2 { margin-right: auto; }
.lt-filters { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.lt-filter { height: 34px; padding: 0 30px 0 11px; border-radius: 8px; border: 1px solid var(--home-line-2); background: var(--home-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a7f87' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center / 14px; color: var(--home-ink); font: 13.5px var(--font-ui); appearance: none; -webkit-appearance: none; cursor: pointer; }
.lt-filter:hover { border-color: var(--home-ink-3); }
.lt-filter:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.lt-sec .lt-btn.add svg { width: 15px; height: 15px; }
.lt-olist { margin-top: 18px; border: 1px solid var(--home-line-2); border-radius: 12px; background: var(--home-card); overflow: hidden; }
.lt-orow { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--home-line); cursor: pointer; font-size: 14px; color: var(--home-ink-2); }
.lt-orow:first-child { border-top: 0; }
.lt-orow:hover { background: var(--home-strip); }
.lt-orow:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lt-orow-t { width: 44px; font: 500 22px/1 var(--font-serif); color: var(--home-ink-2); }
.lt-orow b { font: 500 17px var(--font-serif); color: var(--home-ink); min-width: 80px; }
.lt-orow-n { color: var(--home-ink-3); font-size: 13px; }
.lt-orow-r { margin-left: auto; }
.lt-orow-r a { color: var(--home-ink-2); font-weight: 600; font-size: 12.5px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.lt-orow-r a:hover { color: var(--home-ink); text-decoration: underline; }
.lt-orow-r a svg { width: 13px; height: 13px; }
.lt-older { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.lt-ochip { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-width: 0; padding: 20px 22px 18px; box-sizing: border-box; border: 1px solid var(--home-line-2); border-radius: 16px; background: var(--home-card); box-shadow: 0 1px 2px rgb(0 0 0 / .04); color: var(--home-ink); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.lt-ochip.go:hover { border-color: var(--home-ink-3); transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgb(0 0 0 / .28); }
.lt-ochip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lt-ochip.ghost { cursor: default; }
/* A course's icon: on its card, and the New Course Offering dialog's. Editable ones open the icon picker. */
.lt-oicon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; margin: -4px 0 0 -4px; padding: 0; box-sizing: border-box; border: 0; border-radius: 14px; background: none; color: var(--home-ink); font: inherit; position: relative; }
.lt-oicon svg { width: 44px; height: 44px; stroke-width: 1.4; }
.lt-oicon.edit { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.lt-oicon.edit::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--home-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2380848b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16z'/%3E%3C/svg%3E") center / 11px no-repeat; box-shadow: 0 0 0 1px var(--home-line-2); opacity: 0; transition: opacity .15s; }
.lt-oicon.edit:hover, .lt-oicon.edit:focus-visible { background: var(--home-strip); }
.lt-oicon.edit:hover::after, .lt-oicon.edit:focus-visible::after { opacity: 1; }
.lt-oicon.edit:focus-visible { outline: none; }
.lt-modal .lt-no-c { display: flex; align-items: flex-start; gap: 14px; }
.lt-modal .lt-no-c > label { flex: 1; }
.lt-modal .lt-no-c .lt-oicon { width: 48px; height: 48px; border-radius: 12px; margin: 18px 0 0; color: var(--ink); }
.lt-modal .lt-no-c .lt-oicon svg { width: 40px; height: 40px; }
/* The icon picker */
.lt-modal.lt-modal-wide { width: min(720px, 100%); }
.lt-ip-q { width: 100%; box-sizing: border-box; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--field); color: var(--ink); font: inherit; font-size: 14px; }
.lt-ip-q:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.lt-ip { max-height: min(56vh, 520px); overflow: auto; margin: 12px -6px 0; padding: 0 6px; }
.lt-ip h3 { margin: 14px 0 8px; font: 600 11px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.lt-ip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.lt-ip-i { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 6px 10px; border: 1px solid transparent; border-radius: 12px; background: none; color: var(--ink-2); font: inherit; cursor: pointer; }
.lt-ip-i svg { width: 30px; height: 30px; }
.lt-ip-i span { font-size: 11.5px; line-height: 1.25; text-align: center; color: var(--ink-3); }
.lt-ip-i:hover, .lt-ip-i:focus-visible { background: var(--accent-bg); color: var(--accent); outline: none; }
.lt-ip-i.on { border-color: var(--accent); background: var(--accent-bg); color: var(--accent); }
.lt-ip-i[hidden], .lt-ip [hidden] { display: none; }
.lt-ip-none { margin: 16px 0 !important; text-align: center; }
.lt-ochip { position: relative; overflow: hidden; isolation: isolate; }
/* The course's icon again, large and faint, running off the card's bottom right. */
.lt-ochip-bg { position: absolute; z-index: -1; right: -34px; bottom: -40px; width: 190px; height: 190px; color: var(--home-ink); opacity: .06; pointer-events: none; transition: opacity .2s, transform .3s; }
.lt-ochip-bg svg { width: 100%; height: 100%; stroke-width: 1.1; }
.lt-ochip.go:hover .lt-ochip-bg { opacity: .1; transform: rotate(-4deg) scale(1.04); }
@media (prefers-reduced-motion: reduce) { .lt-ochip-bg { transition: none; } .lt-ochip.go:hover .lt-ochip-bg { transform: none; } }
.lt-ochip-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lt-ochip-m { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lt-ochip-m b { font: 500 30px/1 var(--font-serif); letter-spacing: -0.01em; }
.lt-ochip-t { font-size: 14.5px; line-height: 1.4; color: var(--home-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lt-ochip-t:empty { display: none; }
.lt-ochip-st { margin-top: auto; padding-top: 2px; align-self: flex-start; max-width: 100%; display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--home-ink-3); white-space: nowrap; }
.lt-ochip-st > span { overflow: hidden; text-overflow: ellipsis; }
.lt-ochip-team { font-size: 12px; color: var(--home-ink-3); text-align: right; margin-top: 2px; }
a.lt-ochip-st { font: 12.5px var(--font-mono); color: var(--home-ink-2); text-decoration: none; }
a.lt-ochip-st:hover > span { color: var(--home-ink); text-decoration: underline; text-underline-offset: 2px; }
a.lt-ochip-st svg { flex: none; width: 12px; height: 12px; opacity: .7; }
.lt-tbox { position: relative; min-height: 250px; }
.lt-page:has(.lt-tbox-bg) { isolation: isolate; }   /* so the term mark sits on the page's paper, under everything */
.lt-tbox-bg { position: fixed; z-index: -1; right: max(16px, 3vw); bottom: 0; transform: translateY(16%); font: 400 clamp(240px, 36vw, 600px)/.8 var(--font-serif); letter-spacing: -0.05em; color: var(--home-line); pointer-events: none; user-select: none; white-space: nowrap; }

.lt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.lt-card { position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--home-line-2); border-radius: 12px; background: var(--home-card); color: inherit; font: inherit; overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.lt-card.go { cursor: pointer; }
.lt-card.go:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgb(0 0 0 / .28); border-color: var(--home-ink-3); }
.lt-strip { display: flex; align-items: center; gap: 8px; padding: 9px 16px; background: var(--home-strip); border-bottom: 1px solid var(--home-line); font: 12px/1.2 var(--font-mono); color: var(--home-ink-3); }
.lt-strip .r { margin-left: auto; font: 600 12px/1.2 var(--font-ui); color: var(--home-ink-2); }
.lt-body { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 18px; flex: 1; }
.lt-body > div { flex: 1; min-width: 0; align-self: flex-start; padding-top: 8px; }
.lt-term { flex: none; font: 400 96px/1 var(--font-serif); letter-spacing: -0.035em; color: var(--home-ink-2); pointer-events: none; user-select: none; }
.lt-card.go:hover .lt-term { color: var(--home-ink); }
.lt-card .lt-body { min-height: 118px; }
.lt-title { font: 500 28px/1.08 var(--font-serif); letter-spacing: -0.01em; margin: 0 0 4px; color: var(--home-ink); }
.lt-sub { margin: 0 0 14px; font-size: 13.5px; line-height: 1.45; color: var(--home-ink-2); }
.lt-parts { display: flex; flex-wrap: wrap; gap: 6px; }
.lt-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--home-strip); border: 1px solid var(--home-line); font: 600 12.5px var(--font-ui); color: var(--home-ink-2); cursor: pointer; text-decoration: none; }
.lt-chip:hover { border-color: var(--home-ink-3); color: var(--home-ink); }
.lt-chip.off { background: transparent; border-style: dashed; color: var(--home-ink-3); font-weight: 500; }
.lt-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--home-ok); }
.lt-chip .dot.warn { background: var(--warn); }
.lt-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 18px; border-top: 1px solid var(--home-line); font-size: 12.5px; color: var(--home-ink-3); min-height: 18px; }
.lt-foot a { color: var(--home-ink-2); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.lt-foot a:hover { color: var(--home-ink); text-decoration: underline; }
.lt-foot a svg { width: 13px; height: 13px; }
.lt-card.new { align-items: center; justify-content: center; min-height: 190px; border-style: dashed; background: transparent; color: var(--home-ink-2); font-weight: 600; gap: 8px; cursor: pointer; }
.lt-card.new:hover { background: var(--home-card); }
.lt-card.new svg { width: 22px; height: 22px; }
.lt-card.new small { font-weight: 400; font-size: 12.5px; color: var(--home-ink-3); }
.lt-card.ghost { min-height: 190px; }
.lt-ghost-bar { height: 12px; border-radius: 6px; background: var(--home-strip); margin: 0 18px 10px; }
@media (prefers-reduced-motion: reduce) { .lt-card { transition: none; } .lt-card.go:hover { transform: none; } }

/* A course offering: its three parts side by side */
.lt-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
@media (max-width: 900px) { .lt-three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.lt-part { display: flex; flex-direction: column; border: 1px solid var(--home-line-2); border-radius: 12px; background: var(--home-card); overflow: hidden; }
.lt-part-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 6px; }
.lt-part-head svg { width: 26px; height: 26px; color: var(--home-ink-2); flex: none; }
.lt-part-head h2 { margin: 0; font: 500 26px/1.1 var(--font-serif); color: var(--home-ink); }
.lt-part-text { margin: 0; padding: 0 18px; font-size: 13.5px; line-height: 1.5; color: var(--home-ink-2); flex: 1; }
.lt-part-text code { font: 12px var(--font-mono); }
.lt-part-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 18px 18px; }
.lt-off-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lt-off-head h1 { margin: 0; }
.lt-off-acts { display: flex; gap: 8px; }
.lt-btn.lt-trash { width: 38px; padding: 0; color: var(--home-ink-2); }
.lt-btn.lt-trash:hover:not(:disabled) { color: var(--danger); border-color: var(--danger-line); background: var(--danger-bg); }
.lt-off-head .lt-btn svg { width: 16px; height: 16px; }
.lt-term-line { margin: 8px 0 0; font: 600 13px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--home-ink-3); }
.lt-loose-h { margin-top: 12px; font-size: 12.5px; color: var(--home-ink-3); flex: none; }
.lt-rows { list-style: none; margin: 12px 0 0; padding: 0 10px; }
.lt-rows li { display: flex; align-items: center; gap: 8px; }
.lt-rows button.row { all: unset; box-sizing: border-box; flex: 1; display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 8px; cursor: pointer; font: 500 14px var(--font-ui); color: var(--home-ink); }
.lt-rows button.row:hover { background: var(--home-strip); }
.lt-rows button.row:focus-visible { outline: 2px solid var(--accent); }
.lt-rows button.row svg { width: 16px; height: 16px; color: var(--home-ink-3); flex: none; }
.lt-rows button.row code { margin-left: auto; font: 12px var(--font-mono); color: var(--home-ink-3); }

/* A course offering's Accommodations part: full width, under the other three */
.lt-part.lt-wide { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
.lt-part.lt-wide .lt-part-head { padding-bottom: 16px; }
.lt-part.lt-wide .lt-part-text { flex: 1 1 280px; padding: 0 18px; }
.lt-part.lt-wide .lt-part-acts { padding: 16px 18px; }
@media (max-width: 900px) { .lt-part.lt-wide { flex-direction: column; align-items: stretch; } .lt-part.lt-wide .lt-part-head { padding-bottom: 6px; } }

/* The Accommodations page: requests, waiting first */
.lt-accom .lt-note { max-width: 760px; }
.lt-seg { display: inline-flex; border: 1px solid var(--home-line-2); border-radius: 9px; overflow: hidden; background: var(--home-card); }
.lt-seg button { border: 0; border-left: 1px solid var(--home-line); background: none; padding: 0 14px; height: 36px; font: 600 13.5px var(--font-ui); color: var(--home-ink-2); cursor: pointer; }
.lt-seg button:first-child { border-left: 0; }
.lt-seg button span { font-weight: 500; color: var(--home-ink-3); margin-left: 2px; }
.lt-seg button[aria-pressed="true"] { background: var(--home-ink); color: var(--home-card); }
.lt-seg button[aria-pressed="true"] span { color: inherit; opacity: .75; }
.lt-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* Accommodations: requests as the other parts' long cards (lx-row) */
.lt-acc-lede { margin: 0 0 18px; }
.lt-acc-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.lt-accom .lt-note { max-width: none; margin: 0 0 10px; }
.lt-req { align-items: flex-start; cursor: default; }
.lt-req:hover { box-shadow: none; }
.lt-req h3 { margin: 0; font: 500 23px/1.2 var(--font-serif); color: var(--home-ink); }
.lt-req .lx-kind { margin: 0 0 1px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--home-ink-3); }
.lt-req .lx-when a { color: inherit; }
.lt-req-body { margin: 10px 0 0 !important; font-size: 14.5px !important; line-height: 1.55; color: var(--home-ink) !important; white-space: pre-wrap; }
blockquote.lt-req-body { padding: 10px 14px; border-radius: 8px; background: var(--home-strip); box-shadow: inset 0 0 0 1px var(--home-line); }
.lt-req-dec { margin: 8px 0 0 !important; font-size: 13.5px !important; color: var(--home-ink-3) !important; }
.lt-req-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.lt-req-st { flex: none; padding: 4px 13px; border-radius: 999px; font: 600 14px/20px var(--font-ui); background: var(--accent-bg); color: #7d5c00; box-shadow: inset 0 0 0 1px #e3c66f; }
.st-approved .lt-req-st { background: #e6f4ec; color: #1f6b43; box-shadow: inset 0 0 0 1px #a8d5ba; }
.st-rejected .lt-req-st { background: var(--home-strip); color: var(--home-ink-2); box-shadow: inset 0 0 0 1px var(--home-line-2); }
.lt-req-acts { display: flex; gap: 8px; }
@media (max-width: 640px) { .lt-req { flex-direction: column; } .lt-req-side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; } }
.lt-form textarea { font: 14px/1.5 var(--font-ui); padding: 8px 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--field); color: var(--ink); box-sizing: border-box; width: 100%; resize: vertical; }
.lt-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(201 154 6 / .14); }

.lt-note { display: block; margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; line-height: 1.5; color: var(--ink); background: var(--warn-bg); border: 1px solid var(--warn-line); }
.lt-note.err { background: var(--danger-bg); border-color: var(--danger-line); }
.lt-part .lt-note { margin: 12px 18px 0; }
.lt-note b { font-weight: 600; }
.lt-pick { max-width: 460px; margin-top: 26px; }
.lt-pick small a { color: var(--home-ink-2); }
.lt-ok { margin-top: 16px; }
.lt-twin { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--warn-line); border-radius: 14px; background: var(--home-card); }
.lt-twin-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 14.5px; color: var(--home-ink); }
.lt-twin-h svg { width: 20px; height: 20px; color: var(--warn); flex: none; }
.lt-twin-h code, .lt-twin code { font: 13px var(--font-mono); }
.lt-twin-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .lt-twin-opts { grid-template-columns: 1fr; } }
.lt-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border: 1px solid var(--home-line); border-radius: 10px; background: var(--home-strip); }
.lt-opt b { font-size: 14px; color: var(--home-ink); }
.lt-opt span { font-size: 13px; line-height: 1.45; color: var(--home-ink-3); flex: 1; }
.lt-opt .lt-btn { margin-top: 6px; }
.lt-seen { margin: 10px 0 0; font-size: 13px; color: var(--home-ink-3); line-height: 1.6; }
.lt-seen code { font: 12px var(--font-mono); color: var(--home-ink-2); }
.lt-danger { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--home-line); }
.lt-link.lt-del { color: var(--danger); font-size: 13.5px; }
.lt-btn.lt-btn-danger, .lt-modal .lt-btn.lt-btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.lt-btn.lt-btn-danger:disabled { opacity: .45; }
.lt-btn.lt-btn-danger:hover:not(:disabled) { filter: brightness(.92); }
.lt-hint { margin: 0; padding: 28px; border: 1px dashed var(--home-line-2); border-radius: 12px; text-align: center; color: var(--home-ink-3); font-size: 14px; line-height: 1.5; }

/* Choosing the repositories */
.lt-repos { display: grid; gap: 8px; margin: 18px 0 0; }
.lt-repo { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--home-line-2); border-radius: 10px; background: var(--home-card); cursor: pointer; font: 500 14px var(--font-ui); color: var(--home-ink); }
.lt-repo:hover { border-color: var(--home-ink-3); }
.lt-repo:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lt-repo svg { width: 16px; height: 16px; color: var(--home-ink-3); flex: none; }
.lt-repo code { font: 13.5px var(--font-mono); }
.lt-repo small { margin-left: auto; font-size: 12.5px; color: var(--home-ink-3); }
.lt-repo[aria-pressed="true"] { border-color: var(--home-ink); box-shadow: 0 0 0 1px var(--home-ink); }

/* Your account, and (admins) everyone's */
.lt-account .lt-sec:first-of-type { margin-top: 32px; }
.lt-panel { padding: 18px 20px; border: 1px solid var(--home-line-2); border-radius: 12px; background: var(--home-card); }
.lt-panel.lt-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lt-row-text { flex: 1 1 320px; margin: 0; font-size: 14px; line-height: 1.55; color: var(--home-ink-2); }
.lt-panel .lt-row-text + .lt-form, .lt-panel .lt-form + .lt-row-text { margin-top: 16px; }
.lt-row-text code { font: 12.5px var(--font-mono); }
.lt-row-text a { color: var(--home-ink); }
.lt-row-acts { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.lt-narrow { max-width: 420px; margin: 0; }
.lt-form input[readonly] { background: transparent; color: var(--ink-2); }
.lt-on, .lt-off, .lt-tag { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 99px; font: 600 11.5px/18px var(--font-ui); letter-spacing: .02em; vertical-align: 1px; }
.lt-on, .lt-tag.ok { background: #e6f4ec; color: #1f6b43; }
.lt-off, .lt-tag.dim { background: var(--home-strip); color: var(--home-ink-3); border: 1px solid var(--home-line); }
.lt-tag { background: var(--accent-bg); color: #7d5c00; box-shadow: inset 0 0 0 1px #e3c66f; }
.lt-tag.bad { background: var(--danger-bg); color: var(--danger); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lt-on, :root:not([data-theme="light"]) .lt-tag.ok { background: #183526; color: #7fd3a4; } :root:not([data-theme="light"]) .lt-tag { color: var(--accent); } }
.lt-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.lt-user { flex-wrap: wrap; cursor: default; }
.lt-user:hover, .lt-sess:hover { background: transparent; }
.lt-sess { cursor: default; flex-wrap: wrap; }
.lt-sess b { font: 600 14px var(--font-ui); min-width: 0; }
.lt-user-who { display: grid; gap: 2px; min-width: 220px; flex: 1; }
.lt-user-who b { font: 600 14px var(--font-ui); color: var(--home-ink); }
.lt-user-who span { font-size: 12.5px; color: var(--home-ink-3); }
.lt-user-who a { color: var(--home-ink-2); }
.lt-check { display: flex !important; grid-template-columns: none; align-items: center; gap: 8px !important; font-weight: 500 !important; cursor: pointer; margin: 14px 0 0; font-size: 13.5px; }
.lt-form .lt-check { margin: 0; }
.lt-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--home-ink); }
.lt-codes { columns: 2; margin: 6px 0 12px; padding: 12px 12px 12px 34px; border: 1px dashed var(--line); border-radius: 9px; background: var(--home-strip); }
.lt-codes li { padding: 2px 0; color: var(--ink-3); font-size: 12px; }
.lt-codes code { font: 600 14px var(--font-mono) !important; color: var(--ink); letter-spacing: .03em; }
.lt-qr { display: grid; place-items: center; margin: 4px 0 10px; }
.lt-qr svg { width: 200px; height: 200px; border-radius: 8px; background: #fff; }
.lt-key { text-align: center; font-size: 12.5px !important; }
.lt-key code { font: 600 13px var(--font-mono) !important; letter-spacing: .04em; user-select: all; }
.lt-linkbox { display: flex; gap: 8px; margin-top: 8px; }
.lt-linkbox input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--field); color: var(--ink); font: 12.5px var(--font-mono); }
.lt-menu-sub { font-size: 12px; color: var(--ink-3); }
.lt-src a { color: inherit; }

/* A course offering's teaching team */
.lt-team-line { margin: 8px 0 0; font-size: 13.5px; color: var(--home-ink-2); }
.lt-part.lt-team { flex-direction: column; align-items: stretch; }
.lt-team .lt-part-head { padding-bottom: 6px; }
.lt-team-body { padding: 0 18px 18px; }
.lt-part.lt-team .lt-team-body > .lt-part-text { padding: 0; flex: none; }
.lt-team-list, .lt-groups, .lt-st-head + .lt-hint { margin-top: 12px; }   /* the list (or its empty box) under a card's text, the same gap in each card */
.lt-team-list .lt-orow-r { display: inline-flex; align-items: center; gap: 12px; }
.lt-team-list .lt-filter { height: 32px; }
.lt-team-add { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.lt-team-add input { flex: 1 1 220px; min-width: 0; height: 38px; padding: 0 11px; border-radius: 9px; border: 1px solid var(--home-line-2); background: var(--home-card); color: var(--home-ink); font: 14px var(--font-ui); box-sizing: border-box; }
.lt-team-add input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(201 154 6 / .14); }
.lt-team-add .lt-seg button { height: 36px; }
.lt-part.lt-team .lt-team-body .lt-note { margin: 12px 0 0; }
.lt-seg.lt-seg-sm button { height: 30px; padding: 0 11px; font-size: 12.5px; }
.lt-seg button:hover:not([aria-pressed="true"]) { background: var(--accent-bg); color: var(--home-ink); }

/* ── Windows and messages ── */
.lt-modal-bg { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgb(20 22 26 / .38); }
.lt-modal { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box; padding: 22px 22px 18px; border-radius: 12px; background: var(--bar); color: var(--ink); box-shadow: 0 20px 60px rgb(0 0 0 / .3); }
.lt-modal h2 { margin: 0 0 8px; font: 500 26px/1.15 var(--font-serif); }
.lt-modal p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.lt-modal code { font: 12.5px var(--font-mono); }
.lt-form { display: grid; gap: 12px; margin: 10px 0 4px; }
.lt-form label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--ink); }
.lt-form label small { font-weight: 400; color: var(--ink-3); line-height: 1.45; }
.lt-form input[type=text], .lt-form input[type=email], .lt-form input[type=password], .lt-form select { font: 14px var(--font-ui); height: 36px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--field); color: var(--ink); box-sizing: border-box; width: 100%; }
.lt-form input:focus, .lt-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(201 154 6 / .14); }
.lt-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lt-modal .lt-err { margin: 10px 0 0; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; background: var(--danger-bg); border: 1px solid var(--danger-line); color: var(--ink); }
.lt-modal .lt-err:empty { display: none; }
.lt-modal-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.lt-modal .lt-btn { background: var(--field); border-color: var(--line); color: var(--ink); }
.lt-modal .lt-btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bar); }

.lt-toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 130; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.lt-toast { padding: 10px 16px; border-radius: 9px; background: var(--ink); color: var(--bar); font-size: 13.5px; box-shadow: 0 8px 24px rgb(0 0 0 / .2); max-width: min(560px, calc(100vw - 32px)); animation: lt-toast-in .2s ease-out; }
@keyframes lt-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .lt-in { padding: 28px 16px 56px; }
  #lt-path { order: 10; flex-basis: 100%; padding: 0 4px; font-size: 14px; overflow-x: auto; scrollbar-width: none; }
  #lt-path::-webkit-scrollbar { display: none; }
  #lt-path .lt-step, #lt-path .lt-sep { flex-shrink: 0; }
  .lt-acct span { display: none; }
  .lt-form .two { grid-template-columns: 1fr; }
}

/* ── Buttons: three kinds (as in the builders) ── Primary: black. Secondary: white, light yellow on hover. Add: dashed yellow. */
.lt-btn:not(.primary):not(.add):not(.lt-btn-danger), .lt-bar > button:not(.lt-save), .lt-acct-wrap > button, .lt-filter { background: var(--home-card) !important; border: 1px solid var(--home-line-2) !important; color: var(--home-ink) !important; transition: background .12s, border-color .12s, color .12s; }
.lt-btn:not(.primary):not(.add):not(.lt-btn-danger):hover:not(:disabled), .lt-bar > button:not(.lt-save):hover:not(:disabled), .lt-acct-wrap > button:hover, .lt-filter:hover { background: var(--accent-bg) !important; border-color: var(--accent) !important; color: var(--home-ink) !important; }
.lt-btn.primary, .lt-save, .lt-modal .lt-btn.primary { background: var(--home-ink) !important; border-color: var(--home-ink) !important; color: var(--home-card) !important; }
.lt-btn.primary:hover:not(:disabled), .lt-save:hover:not(:disabled) { opacity: .88; }
.lt-btn.add { background: transparent !important; border: 1.5px dashed var(--accent) !important; color: var(--accent) !important; }
.lt-btn.add:hover:not(:disabled) { background: var(--accent-bg) !important; border-style: solid !important; }
.lt-btn.lt-trash:hover:not(:disabled) { background: var(--danger-bg) !important; border-color: var(--danger-line) !important; color: var(--danger) !important; }

/* A delete button after its first click: red, asking to be clicked again. */

/* A switch (two-factor sign-in on the account page): a track with a knob, and the word for where it is. */
.lt-switch { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 4px 2px; border: 0; background: none; cursor: pointer; font: 600 13px var(--font-ui); color: var(--ink-2); }
.lt-switch-k { position: relative; width: 40px; height: 24px; border-radius: 99px; background: var(--home-line-2); transition: background .15s; flex: none; }
.lt-switch-k::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: transform .15s; }
.lt-switch[aria-checked="true"] .lt-switch-k { background: var(--home-ok); }
.lt-switch[aria-checked="true"] .lt-switch-k::after { transform: translateX(16px); }
.lt-switch[aria-checked="true"] { color: var(--home-ok); }
.lt-switch:hover .lt-switch-k { filter: brightness(.95); }
.lt-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.lt-row-acts .lt-switch { margin-left: 8px; }
@media (prefers-reduced-motion: reduce) { .lt-switch-k, .lt-switch-k::after { transition: none; } }

/* Text boxes in Lectern's forms */
.lt-form textarea { font: 14px/1.5 var(--font-ui); padding: 8px 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--field); color: var(--ink); box-sizing: border-box; width: 100%; resize: vertical; }
.lt-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(201 154 6 / .14); }

/* ── Lectures (lectures.js): weeks like Evaluations' groups, a page for each week and lecture ── */
.lt-lw .lt-off-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lw-status { font-size: 13px; color: var(--home-ink-3); min-width: 60px; text-align: right; }
.lw-status.bad { color: var(--danger); font-weight: 600; }
.lw-adds { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 6px; }
.lt-btn.lw-ic { width: 34px; height: 34px; padding: 0; }
.lw-page { max-width: 880px; }
.lw-card { background: var(--home-card); border: 1px solid var(--home-line-2); border-radius: 12px; padding: 18px 20px; margin: 22px 0 0; }
.lw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lw-h2 { font: 600 11.5px var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--home-ink-3); margin: 30px 0 0; }
.lw-help { padding: 0 0 10px !important; }
.lt-form input[type=date], .lt-form input[type=time], .lt-form input[type=url] { font: 14px var(--font-ui); height: 36px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--field); color: var(--ink); box-sizing: border-box; width: 100%; }
@media (max-width: 640px) { .lw-two, .lt-three { grid-template-columns: 1fr; } }

/* ── A teaching team member's page (team.js) ── */
.lt-user-open { all: unset; cursor: pointer; display: flex; flex-direction: column; border-radius: 6px; flex: 1; min-width: 0; }
.lt-user-open:hover b { text-decoration: underline; text-underline-offset: 2px; }
.lt-user-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tm-show { display: flex !important; align-items: center; gap: 8px; font-weight: 600; }
.tm-times { display: grid; gap: 8px; overflow-x: auto; }
.tm-row { display: grid; grid-template-columns: 130px minmax(90px, 1fr) 120px 112px 112px minmax(100px, 1fr) 34px; gap: 8px; align-items: center; min-width: 760px; }
.tm-row.tm-head { font: 600 11.5px var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--home-ink-3); }
.tm-row input, .tm-row select { font: 14px var(--font-ui); height: 36px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line); background: var(--field); color: var(--ink); box-sizing: border-box; width: 100%; }
.tm-row input:focus, .tm-row select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(201 154 6 / .14); }

/* ── Announcements (announcements.js) ── */
.an-body { font-size: 15px; line-height: 1.55; color: var(--home-ink); }
.an-body p { margin: 0 0 8px; } .an-body > div > :last-child { margin-bottom: 0; }
.lt-form textarea#an-body { min-height: 180px; }

/* ── The offering's title and description, under its code (aboutPart) ── */
.lt-about { position: relative; max-width: 760px; margin: 18px 0 0; }
.lt-about-title { display: block; margin: 0; font: 500 24px/1.25 var(--font-serif); color: var(--home-ink); }
.lt-about-desc { display: block; margin: 6px 0 0; font: 15px/1.55 var(--font-ui); color: var(--home-ink-2); }
.lt-about-desc p { margin: 0 0 8px; }
.lt-about-in { width: 100%; box-sizing: border-box; padding: 4px 8px; margin-left: -9px; border: 1px solid transparent; border-radius: 8px; background: transparent; resize: none; overflow: hidden; }
.lt-about-in:hover { border-color: var(--home-line-2); }
.lt-about-in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(201 154 6 / .14); background: var(--home-card); }
.lt-about-in::placeholder { color: var(--home-ink-3); font-style: italic; }
.lt-about-st { position: absolute; right: 0; bottom: -20px; font-size: 12px; color: var(--home-ink-3); }
.lt-about-st.bad { color: var(--danger); }
/* The four parts: two by two */
.lt-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ── Students: the class list (students.js) ── */
.lt-st-note { margin: 12px 0 0 !important; }
.lt-st-fields { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--home-line-2); border-radius: 10px; background: var(--home-strip); }
.lt-st-h { margin: 0 0 10px; font: 600 14px var(--font-ui); color: var(--home-ink); }
.lt-st-h span { display: block; margin-top: 2px; font-weight: 400; font-size: 12.5px; color: var(--home-ink-3); }
.lt-st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lt-st-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.lt-st-chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--home-line-2); background: var(--home-card); font: 600 12.5px var(--font-ui); color: var(--home-ink); }
.lt-st-chip.fixed { color: var(--home-ink-3); font-weight: 500; }
.lt-st-chip button { all: unset; cursor: pointer; padding: 0 2px; font-size: 15px; line-height: 1; color: var(--home-ink-3); }
.lt-st-chip button:hover { color: var(--danger); }
.lt-st-newf { display: inline-flex; gap: 6px; }
.lt-st-newf input { height: 30px; width: 200px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--home-line-2); background: var(--home-card); color: var(--home-ink); font: 13px var(--font-ui); box-sizing: border-box; }
.lt-st-newf input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(201 154 6 / .14); }
.lt-st-newf .lt-btn { height: 30px; }
.lt-st-fixed { margin-top: 12px !important; font-size: 13px !important; color: var(--home-ink-3) !important; }
.lt-st-fixed b { color: var(--home-ink-2); font-weight: 600; }
.lt-st-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.lt-st-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.lt-st-bar .lt-st-count { flex: 1; margin: 0 !important; }
.lt-st-find { height: 34px; width: 240px; max-width: 100%; padding: 0 11px; border-radius: 9px; border: 1px solid var(--home-line-2); background: var(--home-card); color: var(--home-ink); font: 13.5px var(--font-ui); box-sizing: border-box; }
.lt-st-find:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(201 154 6 / .14); }
.lt-st-list { max-height: 460px; overflow: auto; margin-top: 10px; }
.lt-st-list .lt-orow-r { display: inline-flex; align-items: center; gap: 12px; }
.lt-st-list .lt-user-who em { font-style: normal; }
.lt-st-dropped .lt-user-who b { color: var(--home-ink-3); text-decoration: line-through; }
.lt-st-drop { display: grid; place-items: center; gap: 4px; padding: 26px; border: 1.5px dashed var(--line); border-radius: 10px; cursor: pointer; text-align: center; color: var(--ink-2); font-size: 13.5px; margin: 6px 0 0; }
.lt-st-drop:hover { border-color: var(--accent); }
.lt-st-file { margin: 6px 0 12px; font-size: 13.5px; }
.lt-st-map { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.lt-st-sum { padding: 0 !important; margin-top: 12px !important; }
@media (max-width: 640px) { .lt-st-grid, .lt-st-map, .lt-four { grid-template-columns: 1fr; } }
#lt-students .lt-part-text code { font: 12.5px var(--font-mono); }
.lt-st-bar .lt-st-count { padding: 0 !important; }

/* ── Pages made like the Gradebook's Evaluations (lectures.js, announcements.js) ──
   A list of long cards (a week is a group, with its lectures as sub-cards; drag to move), and each one's
   page: one card, its name with a dot, then its fields and sections. */
:root { --lx-line: #b4b6ba; --lx-sub-line: #dfe0e2; --lx-seg: #e9e8e4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lx-line: var(--home-line-2); --lx-sub-line: var(--home-line); --lx-seg: #17191d; } }
:root[data-theme="dark"] { --lx-line: var(--home-line-2); --lx-sub-line: var(--home-line); --lx-seg: #17191d; }
.lx { max-width: 1100px; margin: 0 auto; font-family: var(--font-ui); color: var(--home-ink); }
.lx.ed { max-width: 860px; }
.lx-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lx-head h1 { margin: 6px 0 4px; font: 500 40px/1.15 var(--font-serif); letter-spacing: -.01em; }
.lx-head .spacer { flex: 1; }
.lx-status { font-size: 13px; color: var(--home-ink-3); }
.lx-status.bad { color: var(--danger); font-weight: 600; }
.lx-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 7px; border: 1px solid var(--lx-line); background: var(--home-card); color: var(--home-ink); font: 600 13.5px var(--font-ui); cursor: pointer; white-space: nowrap; text-decoration: none; box-sizing: border-box; }
.lx-btn:hover:not(:disabled) { border-color: var(--home-ink-3); }
.lx-btn:disabled { opacity: .55; cursor: default; }
.lx-btn svg { width: 16px; height: 16px; }
.lx-btn.main { background: var(--home-ink); border-color: var(--home-ink); color: var(--home-card); }
.lx-btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.lx-btn.sm svg { width: 14px; height: 14px; }
.lx-ic { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--lx-line); border-radius: 9px; background: var(--home-card); color: var(--home-ink-3); cursor: pointer; flex: none; }
.lx-ic svg { width: 17px; height: 17px; }
.lx-ic:hover { border-color: var(--danger); background: var(--danger-bg); color: var(--danger); }
.lx-ic.quiet { border-color: transparent; background: transparent; }
.lx-add { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px dashed var(--lx-line); border-radius: 8px; background: transparent; color: var(--home-ink-2); font: 600 13px var(--font-ui); cursor: pointer; }
.lx-add:hover { border-color: var(--home-ink-3); color: var(--home-ink); }
.lx-add svg { width: 14px; height: 14px; }
.lx-note { margin: 14px 0 0; }
.lx-empty { padding: 30px; text-align: center; border: 1.5px dashed var(--lx-line); border-radius: 12px; color: var(--home-ink-3); margin-top: 22px; }

/* The list */
.lx-list { display: grid; gap: 12px; margin-top: 22px; }
.lx-row { position: relative; display: flex; align-items: center; gap: 20px; padding: 16px 20px; background: var(--home-card); border: 1px solid var(--lx-line); border-radius: 10px; cursor: pointer; transition: box-shadow .15s; }
.lx-row:hover { box-shadow: 0 4px 16px rgb(0 0 0 / .07); }
.lx-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lx-main { flex: 1; min-width: 0; }
.lx-top { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.lx-dot { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, #c99a06); }
.lx-top h3 { margin: 0; font: 500 23px/1.2 var(--font-serif); color: var(--home-ink); overflow: hidden; text-overflow: ellipsis; }
.lx-row p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--home-ink-2); }
.lx-row p.lx-when { font-weight: 500; }
.lx-row p.lx-clip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--home-ink-3); }
.lx-side { flex: none; display: flex; align-items: center; gap: 10px; }
.lx-group { border: 1px solid color-mix(in srgb, var(--c) 45%, var(--lx-line)); border-radius: 12px; background: color-mix(in srgb, var(--c) 5%, var(--home-bg)); overflow: hidden; }
.lx-group > .lx-row.grp { border: 0; border-radius: 0; background: color-mix(in srgb, var(--c) 9%, var(--home-card)); }
.lx-group > .lx-row.grp:hover { box-shadow: none; background: color-mix(in srgb, var(--c) 13%, var(--home-card)); }
.lx-subs { display: grid; gap: 8px; padding: 12px 14px 4px; min-height: 12px; }
.lx-subs .lx-none { margin: 0; padding: 12px; border: 1.5px dashed var(--lx-sub-line); border-radius: 10px; text-align: center; font-size: 13.5px; color: var(--home-ink-3); }
.lx-subs:has([data-lec]) .lx-none { display: none; }
.lx-row.sub { padding: 11px 16px; border-color: var(--lx-sub-line); }
.lx-row.sub .lx-top h3 { font-size: 19px; }
.lx-row.sub .lx-top { margin-bottom: 2px; }
.lx-foot { padding: 6px 14px 14px; }
.lx-break { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1.5px dashed var(--lx-line); border-radius: 10px; background: transparent; }
.lx-break b { flex: 1; text-align: center; font: 600 14px var(--font-ui); color: var(--home-ink-2); }
.lx-break input { flex: 1; font: 600 14px var(--font-ui); text-align: center; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--home-ink-2); height: 34px; }
.lx-break input:hover { border-color: var(--lx-line); }
.lx-break input:focus { outline: none; border-color: var(--accent); background: var(--home-card); }
.lx-list [draggable="true"]:hover, .lx-subs [draggable="true"]:hover { cursor: grab; }
.lx-list [draggable="true"]:active, .lx-subs [draggable="true"]:active { cursor: grabbing; }
.lx .dragging { background: transparent !important; border: 2px dashed #c4c6ca !important; box-shadow: none !important; }
.lx .dragging > * { visibility: hidden; }

/* One's page */
.lx-crumbs { display: none; }
.lx-editor { margin-top: 6px; padding: 26px 28px 22px; background: var(--home-card); border: 1px solid var(--lx-line); border-radius: 10px; }
.lx-ed-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.lx-ed-head .lx-dot { width: 12px; height: 12px; }
.lx-ed-head h2 { margin: 0; flex: 1; min-width: 0; font: 500 30px/1.15 var(--font-serif); overflow-wrap: anywhere; }
.lx-acts { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lx-grid { display: grid; grid-template-columns: auto 1fr 1.8fr; gap: 10px; align-items: end; }
.lx-grid.two { grid-template-columns: 1fr 1fr; }
.lx-grid.ann { grid-template-columns: 1.5fr 1fr; }
.lx-grid.week { grid-template-columns: 1fr 1fr 1fr; }
.lx-f { display: grid; gap: 4px; font: 600 12.5px var(--font-ui); color: var(--home-ink-2); min-width: 0; }
.lx-f input, .lx-f select, .lx-f textarea, .lx-frow input { width: 100%; box-sizing: border-box; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--lx-line); background: var(--home-card); color: var(--home-ink); font: 14.5px var(--font-ui); }
.lx-f textarea { height: auto; min-height: 84px; padding: 8px 10px; line-height: 1.5; resize: vertical; }
.lx-f textarea.tall { min-height: 200px; }
.lx-f input:focus, .lx-f select:focus, .lx-f textarea:focus, .lx-frow input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(201 154 6 / .14); }
.lx-f input:disabled, .lx-f select:disabled, .lx-f textarea:disabled, .lx-frow input:disabled { background: transparent; color: var(--home-ink-2); }
.lx-f small { font-weight: 400; color: var(--home-ink-3); }
.lx-seg { display: inline-flex; flex-wrap: wrap; padding: 2px; border-radius: 8px; background: var(--lx-seg); width: fit-content; }
.lx-seg button { border: 0; height: 32px; background: transparent; color: var(--home-ink-2); font: 600 13.5px var(--font-ui); border-radius: 6px; padding: 0 12px; cursor: pointer; }
.lx-seg button[aria-pressed="true"] { background: var(--home-card); color: var(--home-ink); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.lx-seg button:disabled { cursor: default; }
.lx-help { margin: 8px 0 0; font-size: 13.5px; color: var(--home-ink-3); line-height: 1.5; }
.lx-help b { color: var(--home-ink-2); }
.lx-sec { margin: 22px 0 4px; padding-top: 16px; border-top: 1px solid var(--home-line); font: 600 11.5px var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--home-ink-3); }
.lx-sec + .lx-help { margin: 0 0 10px; }
.gr-run { margin-top: 16px; }
.gr-run .lx-help { margin: 0; font-weight: 400; }
.lx-frow { display: grid; grid-template-columns: 200px 1fr 36px; gap: 8px; align-items: center; margin: 0 0 8px; }
.lx-fbtns { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 4px; }
.lx-editor .lx-subs { padding: 4px 0 0; }
.lx-editor .lx-adds { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 10px; }
.lx-preview { cursor: default; margin-top: 8px; }
.lx-preview:hover { box-shadow: none; }
.lx-preview .an-body { margin-top: 6px; }
.lx-grid.one { grid-template-columns: 1fr; margin-top: 12px; }
.lx-grid.when { grid-template-columns: 1fr 1fr; margin-top: 14px; }
@media (max-width: 760px) {
  .lx-row { flex-direction: column; align-items: stretch; } .lx-side { justify-content: flex-start; }
  .lx-grid, .lx-grid.two, .lx-grid.when, .lx-grid.ann, .lx-grid.week, .lx-grid.one, .lx-frow { grid-template-columns: 1fr; }
  .lx-editor { padding: 20px 16px; }
}

/* ── A rich text box (richtext.js): bold, italic, links and lists, kept as Markdown. It grows with what's
   in it, and has no handle to drag it bigger. ── */
.rt { position: relative; border: 1px solid var(--lx-line, #b4b6ba); border-radius: 8px; background: var(--home-card); }
.rt:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(201 154 6 / .14); }
.rt-bar { display: flex; gap: 2px; padding: 4px; border-bottom: 1px solid var(--home-line); }
.rt-bar button { display: inline-grid; place-items: center; width: 30px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--home-ink-2); cursor: pointer; }
.rt-bar button:hover { background: var(--home-strip); color: var(--home-ink); }
.rt-bar button[aria-pressed="true"] { background: var(--home-strip); color: var(--home-ink); box-shadow: inset 0 0 0 1px var(--home-line-2); }
.rt-bar svg { width: 16px; height: 16px; }
.rt-link { display: flex; gap: 6px; padding: 6px; border-bottom: 1px solid var(--home-line); }
.rt-link[hidden] { display: none; }
.rt-link input { flex: 1; min-width: 0; height: 30px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--lx-line, #b4b6ba); background: var(--home-card); color: var(--home-ink); font: 13.5px var(--font-ui); }
.rt-link input:focus { outline: none; border-color: var(--accent); }
.rt-link button { height: 30px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--lx-line, #b4b6ba); background: var(--home-card); color: var(--home-ink); font: 600 12.5px var(--font-ui); cursor: pointer; }
.rt-link button[data-rt-ok] { background: var(--home-ink); border-color: var(--home-ink); color: var(--home-card); }
.rt-ed { min-height: 72px; padding: 8px 10px; font: 14.5px/1.55 var(--font-ui); color: var(--home-ink); outline: none; overflow-wrap: anywhere; cursor: text; }
.rt-ed p { margin: 0 0 8px; } .rt-ed ul, .rt-ed ol { margin: 0 0 8px; padding-left: 22px; } .rt-ed > :last-child { margin-bottom: 0; }
.rt-ed a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rt-ed.empty::before { content: attr(data-ph); color: var(--home-ink-3); pointer-events: none; position: absolute; }
.rt.off { background: transparent; }
.rt.off .rt-ed { cursor: default; color: var(--home-ink-2); }
/* Quiet: looks like the page's own text; the toolbar shows above it while it's being typed in. */
.rt.quiet { border-color: transparent; background: transparent; margin-left: -11px; }
.rt.quiet:hover { border-color: var(--home-line-2); }
.rt.quiet:focus-within { border-color: var(--accent); background: var(--home-card); }
.rt.quiet .rt-bar { position: absolute; right: -1px; bottom: calc(100% + 6px); z-index: 5; border: 1px solid var(--home-line-2); border-radius: 8px; background: var(--home-card); box-shadow: 0 4px 14px rgb(0 0 0 / .08); }
.rt.quiet:not(:focus-within) .rt-bar, .rt.quiet:not(:focus-within) .rt-link { display: none; }
.rt.quiet .rt-link { position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); z-index: 5; border: 1px solid var(--home-line-2); border-radius: 8px; background: var(--home-card); }
.rt.quiet .rt-ed { min-height: 0; padding: 4px 10px; font-size: 15px; color: var(--home-ink-2); }
.rt.quiet .rt-ed.empty::before { font-style: italic; }

/* ── A date (and time) field: one button, and a calendar under it (when.js), as in Evaluations ── */
.lxw { min-width: 0; }
.lxw-btn { display: flex; align-items: center; gap: 9px; width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--lx-line, #b4b6ba); border-radius: 8px; background: var(--home-card); color: var(--home-ink); font: 500 14px var(--font-ui); cursor: pointer; text-align: left; box-sizing: border-box; }
.lxw-btn:hover:not(:disabled) { border-color: var(--home-ink-3); }
.lxw-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.lxw-btn:disabled { background: transparent; color: var(--home-ink-2); cursor: default; }
.lxw-btn svg { width: 17px; height: 17px; color: var(--home-ink-3); flex: none; }
.lxw-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lxw-btn.empty { color: var(--home-ink-3); }
.lxw-pop { position: absolute; z-index: 200; width: 300px; padding: 12px; border-radius: 12px; background: var(--home-card); border: 1px solid var(--home-line-2); box-shadow: 0 14px 40px rgb(0 0 0 / .16), 0 2px 6px rgb(0 0 0 / .08); font: 14px var(--font-ui); color: var(--home-ink); display: grid; gap: 10px; box-sizing: border-box; }
.lxw-head { display: flex; align-items: center; justify-content: space-between; }
.lxw-head b { font: 600 14.5px var(--font-ui); }
.lxw-pop button { font: inherit; border: 0; background: none; color: var(--home-ink); cursor: pointer; border-radius: 7px; }
.lxw-head button { width: 30px; height: 30px; display: grid; place-items: center; color: var(--home-ink-2); }
.lxw-head button:hover, .lxw-days button:hover { background: var(--home-strip); }
.lxw-head svg { width: 16px; height: 16px; }
.lxw-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.lxw-days i { font: 600 11px var(--font-ui); font-style: normal; color: var(--home-ink-3); padding: 2px 0 4px; }
.lxw-days button { height: 34px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.lxw-days button.out { color: var(--home-ink-3); opacity: .55; }
.lxw-days button.today { box-shadow: inset 0 0 0 1px var(--home-line-2); font-weight: 600; }
.lxw-days button.on { background: var(--home-ink); color: var(--home-card); font-weight: 600; }
.lxw-time { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--home-line); }
.lxw-time label { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font: 600 12.5px var(--font-ui); color: var(--home-ink-2); }
.lxw-time .grow { flex: 1; }
.lxw-time input { flex: 1; width: 0; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid var(--lx-line, #b4b6ba); border-radius: 7px; background: var(--home-card); color: var(--home-ink); font: 14px var(--font-ui); }
.lxw-time input:focus { outline: none; border-color: var(--accent); }
.lxw-time input.bad { border-color: #c4554d; }
.lxw-pop .lxw-clear { flex: none; height: 32px; padding: 0 12px; border: 1px solid var(--lx-line, #b4b6ba); border-radius: 7px; background: var(--home-card); font: 600 12.5px var(--font-ui); }
.lxw-pop .lxw-clear:hover { border-color: var(--accent); }
.lt-btn.lt-st-send { height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }
.lt-btn.lt-st-send svg { width: 15px; height: 15px; }

/* The offering's heading: its code, then its title, typed right there (aboutPart) */
.lt-off-h1 .lt-h1-colon { margin-left: .02em; }
.lt-h1-in { display: inline; padding: 0 6px; margin-left: -6px; border-radius: 8px; outline: none; cursor: text; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lt-h1-in:hover { box-shadow: 0 0 0 1px var(--home-line-2); }
.lt-h1-in:focus { box-shadow: 0 0 0 2px var(--accent); background: var(--home-card); }
.lt-h1-in.empty::before { content: attr(data-ph); color: var(--home-ink-3); font-style: italic; }
.lt-off-id { min-width: 0; flex: 1; }
/* One line: a title too long for it ends in "…" (while it's being typed in, it shows in full) */
.lt-off-h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-off-h1:focus-within { white-space: normal; overflow: visible; }
.lt-field-l { display: block; margin: 0 0 5px; font-size: 13px; font-weight: 600; color: var(--ink); }
.lt-role-help { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lt-tag { box-shadow: inset 0 0 0 1px #5a4a1e; } }
.lt-tag.dim, .lt-tag.ok, .lt-tag.bad { box-shadow: none; }

/* A lecture in its week (Lectures): its label small above its title, then when and how many files */
.lx-row.sub.lx-lec { padding: 12px 16px; align-items: center; }
.lx-kind { margin: 0 0 1px !important; font-size: 11px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--home-ink-3) !important; }
.lx-lec h3 { margin: 0; font: 500 19px/1.25 var(--font-serif); color: var(--home-ink); }
.lx-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0 2px; margin: 3px 0 0 !important; font-size: 13px !important; color: var(--home-ink-3) !important; }
.lx-sep { margin: 0 6px; }
.lx-files { display: inline-flex; align-items: center; gap: 3px; }
.lx-files svg { width: 13px; height: 13px; }
.lx-btn.lx-quiet { border-color: transparent; background: transparent; color: var(--home-ink-3); }
.lx-row:hover .lx-btn.lx-quiet, .lx-btn.lx-quiet:focus-visible { border-color: var(--lx-line); background: var(--home-card); color: var(--home-ink); }

/* The number circle beside each week (Lectures) */
.lx-row.grp { gap: 16px; }
.lx-wnum { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--home-card); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, var(--lx-line)); font: 500 20px/1 var(--font-serif); color: var(--home-ink); font-variant-numeric: lining-nums; }

/* Each activity's type, as an icon on its left (Activities) */
.lx-kicon { flex: none; display: grid; place-items: center; width: 26px; height: 36px; color: var(--home-ink-2); }
.lx-kicon svg { width: 22px; height: 22px; }
.lx-kicon.big { width: 28px; height: 40px; }
.lx-kicon.big svg { width: 24px; height: 24px; }
.lx-row.sub.lx-lec { gap: 14px; }
.lx-lec .lx-when { margin: 2px 0 0 !important; }
.lx-lec .lx-clip { margin: 3px 0 0 !important; }

/* Add buttons: dashed yellow outline. Main buttons: white with a black outline (not solid black). */
.lx-btn.add { background: transparent !important; border: 1.5px dashed var(--accent) !important; color: var(--accent) !important; }
.lx-btn.add:hover:not(:disabled) { background: var(--accent-bg) !important; border-style: solid !important; }
.lt-btn.primary, .lt-save, .lt-modal .lt-btn.primary, .lx-btn.main, .rt-link button[data-rt-ok] {
  background: var(--home-card) !important; border: 1.5px solid var(--home-ink) !important; color: var(--home-ink) !important; opacity: 1 !important; }
.lt-btn.primary:hover:not(:disabled), .lt-save:hover:not(:disabled), .lt-modal .lt-btn.primary:hover:not(:disabled), .lx-btn.main:hover:not(:disabled), .rt-link button[data-rt-ok]:hover {
  background: var(--accent-bg) !important; border-color: var(--home-ink) !important; color: var(--home-ink) !important; }
/* The Owner pill on the Teaching Team: the same text size as the buttons. */
.lt-tag.lt-owner { margin-right: 0; }

/* No scroll bars shown anywhere: things still scroll (wheel, touch, keys), just without the bar. */
* { scrollbar-width: none !important; }
::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
/* A field that cannot be changed (e.g. the Label of a type that is named by its type). */
.lx-f input:disabled, .lx-f select:disabled { background: var(--home-strip) !important; color: var(--home-ink-3) !important; cursor: default; }

/* Teaching Team and Students: the buttons beside the card's text; people's names and details at the text size of the rest. */
.lt-st-head { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.lt-st-head > .lt-part-text { flex: 1 1 360px; padding: 0 !important; }
.lt-st-head > .lt-st-acts { flex: none; margin-top: 0; }
.lt-user-who b { font-size: 14px; }
.lt-user-who span { font-size: 14px; }

/* The offering page: Announcements as a long card, then Activities, Evaluations and Gradebook side by side. */
.lt-off-parts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .lt-off-parts { grid-template-columns: 1fr; } }
/* One text size on the offering page: cards' text, the description, and people's names and details are all 14px. */
.lt-part-text, .lt-part.lt-wide .lt-part-text { font-size: 14px; }
.rt.quiet .rt-ed { font-size: 14px; }

/* A week's evaluations (from the gradebook), under its activities: they open in the Evaluations. */
.lx-evs { display: grid; gap: 8px; padding: 0 14px; margin-top: 8px; }
.lx-editor .lx-evs { padding: 0; }
.lx-evs.lx-conts.before { margin-top: 0; margin-bottom: 8px; }
.lx-row.lx-ev { border-style: dashed; }

/* An activity's dates: one field each, a remove button beside it when there are several, then Add a Date. */
.lx-whens { display: grid; gap: 8px; justify-items: start; }
.lx-when-row { display: flex; align-items: center; gap: 6px; width: 100%; }
.lx-when-row > div { flex: 1; min-width: 0; }
.lx-whens .lx-btn.add.sm { margin-top: 2px; }
.lx-grid.when { align-items: start; }
/* Phones and narrow windows: a long card (Announcements, Accommodations) stacks with no gap under its text,
   and the offering's name gets the whole line, its buttons under it. */
@media (max-width: 900px) {
  .lt-part.lt-wide > .lt-part-text { flex: none; }
  .lt-part.lt-wide > .lt-part-acts { padding-top: 12px; }
}
@media (max-width: 640px) {
  .lt-off-head > :first-child { flex: 1 1 100%; min-width: 0; }
}
@media (max-width: 640px) {
  .lt-st-head > .lt-part-text { flex: 1 1 100%; min-width: 0; }
  .lt-team-body { min-width: 0; }
  #lt-students .lt-part-text code { word-break: break-all; }
}

/* Office hours (a person's page): day, start, end, where. */
.tm-row.tm-oh { grid-template-columns: 150px 120px 120px minmax(120px, 1fr) 34px; min-width: 0; }
@media (max-width: 640px) { .tm-row.tm-oh { grid-template-columns: 1fr 1fr; } .tm-row.tm-oh.tm-head { display: none; } }

/* Activity groups: the card's list, and a group's page (groups.js). */
.lt-group-n { font-size: 13.5px; color: var(--home-ink-3); white-space: nowrap; }
.lt-part-head > svg { width: 22px; height: 22px; }
.gr-items { display: grid; gap: 10px; margin-top: 8px; }
.gr-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--lx-sub-line); border-radius: 10px; background: var(--home-card); }
.gr-item > .lx-kicon { margin-top: 18px; }
.gr-item > .lx-ic { margin-top: 18px; }
.gr-item-b { flex: 1; min-width: 0; display: grid; gap: 10px; }
.gr-grid { display: grid; grid-template-columns: 140px 140px 110px 110px minmax(120px, 1fr); gap: 10px; }
.gr-grid input, .gr-grid select { width: 100%; box-sizing: border-box; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--lx-line); background: var(--home-card); color: var(--home-ink); font: 14.5px var(--font-ui); }
.gr-grid input.bad { border-color: var(--danger, #c0392b); }
.gr-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gr-who-l { font: 600 12.5px var(--font-ui); color: var(--home-ink-2); margin-right: 4px; }
.gr-chip { height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--lx-line); background: var(--home-card); color: var(--home-ink-2); font: 500 13px var(--font-ui); cursor: pointer; }
.gr-chip:hover:not(:disabled) { border-color: var(--home-ink-3); color: var(--home-ink); }
.gr-chip[aria-pressed="true"] { background: var(--accent-bg); border-color: var(--accent); color: var(--home-ink); font-weight: 600; }
.gr-chip:disabled { cursor: default; }
.gr-none { padding: 14px; border: 1.5px dashed var(--lx-sub-line); border-radius: 10px; text-align: center; color: var(--home-ink-3); }
@media (max-width: 760px) { .gr-grid { grid-template-columns: 1fr 1fr; } .gr-grid label:last-child { grid-column: 1 / -1; } }
/* Students: their groups, in the Add a Student window */
.lt-st-groups { display: flex; flex-wrap: wrap; gap: 6px; }
.lx-editor .lx-help + .lx-grid { margin-top: 14px; }

/* Who runs a group's activity: a dropdown of the teaching team, with ticks. */
.gr-who .lx-f { width: min(360px, 100%); }
.gr-dd { position: relative; display: block; }
.gr-dd-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--lx-line); background: var(--home-card); color: var(--home-ink); font: 14.5px var(--font-ui); cursor: pointer; text-align: left; }
.gr-dd-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-dd-btn svg { flex: none; width: 15px; height: 15px; color: var(--home-ink-3); }
.gr-dd-btn:hover:not(:disabled) { border-color: var(--home-ink-3); }
.gr-dd-btn[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(201 154 6 / .14); }
.gr-dd-btn:disabled { cursor: default; background: var(--home-strip); color: var(--home-ink-2); }
.gr-dd-pop { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; max-height: 260px; overflow: auto; padding: 4px; border: 1px solid var(--lx-line); border-radius: 10px; background: var(--home-card); box-shadow: 0 10px 30px rgb(0 0 0 / .14); }
.gr-dd-opt { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 6px; font: 14px var(--font-ui); color: var(--home-ink); cursor: pointer; }
.gr-dd-opt:hover { background: var(--home-strip); }
.gr-dd-opt input { flex: none; width: 16px !important; height: 16px !important; margin: 0; padding: 0; accent-color: var(--home-ink); }
.gr-dd-opt span { flex: 1; text-align: left; font: 400 14px var(--font-ui); }

.lxw-days button:disabled { color: var(--home-ink-3); opacity: .3; cursor: default; background: none !important; }
.lx-whens .lx-btn.add.sm { justify-self: end; }   /* Add a Date: on the right */

/* A dropdown of tick boxes (pick.js): e.g. an activity's or announcement's activity groups. */
.pk { position: relative; display: block; min-width: 0; }
.pk-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--lx-line); background: var(--home-card); color: var(--home-ink); font: 400 14.5px var(--font-ui); cursor: pointer; text-align: left; box-sizing: border-box; }
.pk-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-btn svg { flex: none; width: 15px; height: 15px; color: var(--home-ink-3); }
.pk-btn:hover:not(:disabled) { border-color: var(--home-ink-3); }
.pk-btn[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(201 154 6 / .14); }
.pk-btn:disabled { cursor: default; background: var(--home-strip); color: var(--home-ink-2); }
.pk-pop { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; max-height: 280px; overflow: auto; padding: 4px; border: 1px solid var(--lx-line); border-radius: 10px; background: var(--home-card); box-shadow: 0 10px 30px rgb(0 0 0 / .14); }
.pk-opt { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 6px; color: var(--home-ink); cursor: pointer; }
.pk-opt:hover { background: var(--home-strip); }
.pk-opt input { flex: none; width: 16px !important; height: 16px !important; margin: 0; padding: 0; accent-color: var(--home-ink); }
.pk-opt span { flex: 1; text-align: left; font: 400 14px var(--font-ui); }
.pk-none { margin: 0; padding: 8px 10px; font: 400 13.5px var(--font-ui); color: var(--home-ink-3); }

/* A request's state, beside it: approved (green ✓), rejected (red ✕), waiting (yellow ?). */
.lt-req { gap: 14px; }
.lt-req-ic { flex: none; display: grid; place-items: center; width: 28px; align-self: center; color: #b58a00; }
.lt-req-ic svg { width: 26px; height: 26px; }
.st-approved .lt-req-ic { color: #2f8f5b; }
.st-rejected .lt-req-ic { color: #c0392b; }
.lt-req-side { align-self: center; }
@media (max-width: 640px) { .lt-req-ic { align-self: flex-start; } .lt-req-side { justify-content: flex-end; } }

/* A request's decision, as a comment under it: who, what and when, and their note. */
.lt-cmt { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; }
.lt-cmt-av { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--home-strip); box-shadow: inset 0 0 0 1px var(--home-line-2); font: 600 11.5px var(--font-ui); color: var(--home-ink-2); }
.lt-cmt-b { flex: 1; min-width: 0; }
.lt-req .lt-cmt-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 5px 0 0 !important; font-size: 13.5px !important; color: var(--home-ink-3) !important; }
.lt-cmt-h b { color: var(--home-ink); font-weight: 600; }
.lt-cmt-v { font-weight: 600; }
.lt-cmt-v.v-approved { color: #2f8f5b; }
.lt-cmt-v.v-rejected { color: #c0392b; }
.lt-req .lt-cmt-n { display: inline-block; max-width: 100%; margin: 6px 0 0 !important; padding: 8px 12px; border-radius: 4px 12px 12px 12px; background: var(--home-card); box-shadow: inset 0 0 0 1px var(--home-line-2); font-size: 14px !important; line-height: 1.5; color: var(--home-ink) !important; white-space: pre-wrap; }


/* pickOne (pick.js): one of many, each with its icon and a small grey line over its name. */
.pk1-btn { height: auto; min-height: 36px; padding: 6px 10px; text-align: left; }
.pk1-cur { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pk1-ic { flex: none; display: grid; place-items: center; width: 22px; height: 22px; color: var(--home-ink-2); }
.pk1-ic svg { width: 20px; height: 20px; }
.pk1-t { display: grid; min-width: 0; line-height: 1.25; }
.pk1-t small { font: 700 10.5px/1.3 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--home-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk1-t b { font: 400 14px var(--font-ui); color: var(--home-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk1-empty b { color: var(--home-ink-2); }
.pk1-empty small { order: 2; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12.5px; }
.pk1-pop { max-height: 340px; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.pk1-q { flex: none; padding: 8px; border-bottom: 1px solid var(--lx-line); }
.pk1-q input { width: 100%; height: 32px; padding: 0 10px; border: 1px solid var(--lx-line); border-radius: 7px; font: 400 14px var(--font-ui); background: var(--home-card); color: var(--home-ink); }
.pk1-q input:focus { outline: none; border-color: var(--accent); }
.pk1-list { overflow: auto; padding: 4px; }
.pk1-h { margin: 8px 9px 3px; font: 700 10.5px/1.3 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--home-ink-3); }
.pk1-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 9px; border: 0; border-radius: 6px; background: transparent; text-align: left; cursor: pointer; }
.pk1-opt:hover, .pk1-opt.on { background: var(--home-strip); }
.pk1-opt > .pk1-t { flex: 1; }
.pk1-opt > svg { flex: none; width: 16px; height: 16px; color: var(--home-ink); }

/* A card whose icon (left) and buttons (right) sit in the middle of its heading (the small grey line, the
   title, the date), not of everything under it: .hd-row, with .hd-main holding .hd (the heading) and the rest. */
.hd-row { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: var(--hd-gap, 20px) !important; row-gap: 0 !important; align-items: center; }
.hd-row > :first-child { grid-column: 1; grid-row: 1; align-self: center !important; margin-top: 0 !important; }
.hd-row > .hd-main { display: contents; }
.hd-row > .hd-main > * { grid-column: 2 / -1; }
.hd-row > .hd-main > .hd { grid-column: 2; grid-row: 1; min-width: 0; }
.hd-row > .hd-side { grid-column: 3; grid-row: 1; align-self: center !important; }
@media (max-width: 640px) { .hd-row > .hd-side { grid-column: 1 / -1; grid-row: auto; justify-self: end; margin-top: 12px; } }

/* select.js: every <select> drawn as the About picker; the select itself stays, hidden, under it. */
.pks { position: relative; display: block; min-width: 0; }
.pks[hidden] { display: none !important; }
.pks-inline { display: inline-block; vertical-align: middle; max-width: 100%; }
.pks-inline .pks-btn { width: auto; max-width: 100%; }
.pks-btn { width: 100%; }
.pks-btn .pk1-cur { flex: 1; }
.pks-native { position: absolute !important; width: 1px !important; height: 1px !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0 !important; pointer-events: none !important; overflow: hidden !important; }
.pks-pop { position: fixed; right: auto; top: 0; left: 0; z-index: 1000; width: max-content; max-width: min(420px, calc(100vw - 16px)); }
.pks-pop .pk1-opt:disabled { opacity: .45; cursor: default; }
.pks-pop .pk1-opt:focus { outline: none; background: var(--home-strip); }
/* The home page's term picker: as tall as the New Course Offering button beside it. */
.lt-sec .pks-btn[data-for="lt-term"] { height: 38px; min-height: 38px; min-width: 190px; padding: 0 11px 0 10px; border-radius: 9px; border-color: var(--home-line-2); }
.lt-sec .pks-btn[data-for="lt-term"] .pk1-ic { color: var(--home-ink-3); }
.lt-sec .pks-btn[data-for="lt-term"] .pk1-ic svg { width: 18px; height: 18px; }
.lt-sec .pks-btn[data-for="lt-term"] .pk1-t b { font: 500 14px var(--font-ui); }

/* A week's number, in its circle, as the Activities list has it (the Week dropdown). */
.pk1-wk { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.3px color-mix(in srgb, #c99a06 55%, var(--lx-line)); font: 500 12px/1 var(--font-serif); color: var(--home-ink); }
/* pickMany's rows: a tick box, the icon, the small grey line over the name; "Everyone" first. */
.pk-chk input { flex: none; width: 16px !important; height: 16px !important; margin: 0; padding: 0; accent-color: var(--home-ink); }
.pk-chk { cursor: pointer; }
.pk-all + .pk1-h { margin-top: 10px; }

/* Accommodations: a request in the list (click it to open it), and its own page. */
.lt-req[data-req] { cursor: pointer; }
.lt-req[data-req]:hover { box-shadow: 0 4px 16px rgb(0 0 0 / .07); }
.lt-req[data-req]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lt-req .lx-clip { margin: 8px 0 0 !important; font-size: 14px !important; }
.lt-req-last { margin: 6px 0 0 !important; font: 600 13px var(--font-ui) !important; color: var(--home-ink-3) !important; }
.lt-req-last.v-approved { color: #2f8f5b !important; }
.lt-req-last.v-rejected { color: #c0392b !important; }
.lt-req-last.v-pending { color: #9a7400 !important; }
.lt-req-go { color: var(--home-ink-3); }
.lt-req-go svg { width: 18px; height: 18px; }
.lt-req-ed .lx-ed-head { align-items: center; gap: 14px; }
.lt-req-ed .lt-req-ic svg { width: 30px; height: 30px; }
.lt-req-tt { flex: 1; min-width: 0; }
.lt-req-tt .lx-kind { margin: 0 0 1px; font: 700 11px/1.3 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--home-ink-3); }
.lt-req-tt h2 { margin: 0; font: 500 30px/1.15 var(--font-serif); color: var(--home-ink); }
.lt-req-pill { flex: none; padding: 4px 13px; border-radius: 999px; font: 600 13.5px/20px var(--font-ui); box-shadow: inset 0 0 0 1px currentColor; }
.lt-req-pill.v-approved { color: #2f8f5b; } .lt-req-pill.v-rejected { color: #c0392b; } .lt-req-pill.v-pending { color: #9a7400; }
.lt-req-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 20px; margin: 4px 0 0; }
.lt-req-facts dt { font: 500 12.5px var(--font-ui); color: var(--home-ink-3); }
.lt-req-facts dd { margin: 2px 0 0; font: 400 14.5px var(--font-ui); color: var(--home-ink); overflow-wrap: anywhere; }
.lt-req-facts a { color: inherit; }
.lt-req-ed .lt-req-body { margin: 6px 0 0 !important; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; }
.lt-req-ed .lt-cmt-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 5px 0 0; font-size: 13.5px; color: var(--home-ink-3); }
.lt-req-ed .lt-cmt-n { display: inline-block; max-width: 100%; margin: 6px 0 0; padding: 8px 12px; border-radius: 4px 12px 12px 12px; background: var(--home-card); box-shadow: inset 0 0 0 1px var(--home-line-2); font-size: 14px; white-space: pre-wrap; }
.lt-req-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* Sections (groups.js): a row with its type's icon, its type small and grey over its name, its times under. */
.lt-sec-row .lt-user-who { display: flex !important; align-items: center; gap: 12px; flex-direction: row !important; }
.lt-sec-ic { flex: none; display: grid; place-items: center; width: 24px; color: var(--home-ink-2); }
.lt-sec-ic svg { width: 20px; height: 20px; }
.lt-sec-t { display: grid; min-width: 0; text-align: left; line-height: 1.3; }
.lt-sec-t small { font: 700 10.5px/1.3 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--home-ink-3); }
.lt-sec-t b { font-weight: 600; color: var(--home-ink); }
.lt-sec-t span { font-size: 13.5px; color: var(--home-ink-3); }
.gr-tt { flex: 1; min-width: 0; }
.gr-tt h2 { margin: 0; font: 500 30px/1.15 var(--font-serif); }
.gr-kind { margin: 0 0 1px; font: 700 11px/1.3 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--home-ink-3); }
.gr-top { grid-template-columns: auto 1fr !important; align-items: end; }
.gr-grid.gr-grid4 { grid-template-columns: 150px 120px 120px minmax(120px, 1fr); }
@media (max-width: 760px) { .gr-grid.gr-grid4 { grid-template-columns: 1fr 1fr; } .gr-top { grid-template-columns: 1fr !important; } }
.lt-st-secs { gap: 10px; }
.lt-st-secs-h { margin-top: -6px; font-size: 12.5px; color: var(--home-ink-3); }
.tm-run-pick { margin-bottom: 12px; }
.pk-pop .pk1-opt.pk-chk { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; margin: 0; font: 400 14px var(--font-ui); color: var(--home-ink); }
.pk-pop .pk1-opt.pk-chk .pk1-t { flex: 1; }
.lt-form .pk-pop .pk1-t small, .lt-form .pk1-cur .pk1-t small { margin: 0; }

/* Where (place.js): a place, found on the map as you type, and a room. */
.plc { display: flex; gap: 8px; min-width: 0; }
.plc-q { position: relative; flex: 1; min-width: 0; display: block; }
.plc-ic { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; color: var(--home-ink-3); pointer-events: none; }
.plc-ic svg { width: 16px; height: 16px; }
.plc.on-map .plc-ic { color: #2f8f5b; }
.plc .plc-in { width: 100%; padding-left: 30px !important; }
.plc .plc-room { flex: none; width: 110px; }
.plc-pop .plc-t small { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12.5px; white-space: normal; }
.plc-pop .plc-t b { white-space: normal; }
.plc-pop { max-width: min(460px, calc(100vw - 16px)); }
.gr-grid.gr-grid4 { grid-template-columns: 140px 100px 100px minmax(260px, 1fr); }
.tm-row.tm-oh { grid-template-columns: 140px 100px 100px minmax(240px, 1fr) 34px; }
/* A section's times: one row for each time and place (the days that share them together), in columns. */
.lt-sec-times { display: grid; grid-template-columns: minmax(104px, max-content) minmax(92px, max-content) minmax(0, 1fr); column-gap: 16px; row-gap: 2px; margin-top: 4px; font-size: 13.5px; line-height: 1.4; }
.lt-sec-time { display: contents; }
.lt-sec-time b { font-weight: 500; color: var(--home-ink-2); }
.lt-sec-time em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--home-ink-2); }
.lt-sec-time i { font-style: normal; color: var(--home-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-sec-none { font-size: 13.5px; color: var(--home-ink-3); }
@media (max-width: 640px) { .lt-sec-times { grid-template-columns: max-content minmax(0, 1fr); } .lt-sec-time i { grid-column: 1 / -1; margin-bottom: 4px; } }
/* Students: what each student has (a row; Change opens its dialog). */
.lt-st-fieldrow { margin-top: 14px; }
.lt-st-fieldrow .lt-user-who { cursor: default; }
.lt-sf-list { margin-top: 6px; }
.lt-sf-row { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px !important; }
.lt-sf-row.fixed span:first-child { font-size: 14px; color: var(--home-ink-2); }
.lt-sf-row input { flex: 1; min-width: 0; }
.lt-sf-add { display: flex; justify-content: flex-end; }
.lt-sf-note { font-size: 13px; color: var(--home-ink-3); }
.lt-sf-row.fixed { justify-content: space-between; }

/* Students: what each student has, edited right in the card (each field a row). */
.lt-st-fieldbox { margin-top: 14px; }
.lt-st-kick { margin: 0 0 8px; font: 700 11px/1.3 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--home-ink-3); }
.lt-st-kick span { display: block; margin-top: 2px; font: 400 13px var(--font-ui); letter-spacing: 0; text-transform: none; }
.lt-sf-row .lt-sf-l, .lt-sf-row .lt-sf-n { flex: none; width: 110px; font: 500 14px var(--font-ui); color: var(--home-ink); }
.lt-sf-row.fixed .lt-sf-n { color: var(--home-ink-2); }
.lt-sf-row input { flex: 1; min-width: 0; height: 34px; }
.lt-sf-row .lt-sf-at { flex: none; color: var(--home-ink-3); margin-right: -4px; }
.lt-sf-row .lt-sf-note { flex: none; margin-left: auto; }
.lt-sf-row.fixed { justify-content: flex-start; }
.lt-sf-add { display: flex; justify-content: flex-end; margin-top: 8px; }
@media (max-width: 640px) { .lt-sf-row .lt-sf-note { display: none; } }
.lt-sf-row input { padding: 0 10px; border: 1px solid var(--lx-line); border-radius: 8px; background: var(--home-card); font: 400 14px var(--font-ui); color: var(--home-ink); }
.lt-sf-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(201 154 6 / .14); }
.lt-sf-row input:disabled { background: var(--home-strip); }
.lx-sec.lx-first { margin-top: 6px; padding-top: 0; border-top: 0; }
.lt-req-facts .lt-link { padding: 0; font: inherit; text-align: left; }
.lx-grid.an-row { margin-top: 14px; }
.lt-form-h { margin: 10px 0 -10px; font: 700 11px/1.3 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--home-ink-3); }

/* A teaching team member's page: one card, like a student's page. */
.tm-head { gap: 14px; }
.tm-av { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #f6e7b0; color: #6e5200; box-shadow: inset 0 0 0 1px rgb(110 82 0 / .12); font: 700 17px var(--font-ui); letter-spacing: .02em; }
.tm-sub { margin: 3px 0 0; font-size: 13.5px; color: var(--home-ink-3); }
.tm-ed .tm-show { margin: 4px 0 12px; }
.tm-ed .tm-two { align-items: start; }
.tm-ed .tm-run-pick { margin: 0; }
.tm-ed #tm-runs-box .tm-runs { margin-top: 10px; }
.lt-req-md { white-space: normal !important; } .lt-req-md .hb-md > :first-child, .lt-req-md > :first-child { margin-top: 0; } .lt-req-md p { margin: 0 0 8px; } .lt-req-md ul, .lt-req-md ol { margin: 0 0 8px; padding-left: 22px; } .lt-req-md .hb-md > :last-child, .lt-req-md p:last-child { margin-bottom: 0; }

/* The decision's note: rich text (richtext.js), and drawn as Markdown in the request's history. */
.lt-f-rt { display: grid; gap: 4px; }
.lt-f-l { font: 600 13px var(--font-ui); color: var(--home-ink-2); }
.lt-f-rt small { font-size: 12.5px; color: var(--home-ink-3); }
.lt-f-rt .rt-ed { min-height: 96px; }
.lt-cmt-md { white-space: normal !important; }
.lt-cmt-md p { margin: 0 0 6px; } .lt-cmt-md ul, .lt-cmt-md ol { margin: 0 0 6px; padding-left: 20px; }
.lt-cmt-md > :last-child, .lt-cmt-md .hb-md > :last-child, .lt-cmt-md .hb-md > :last-child > :last-child { margin-bottom: 0; }
.an-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--home-line); }
.an-foot .spacer { flex: 1; }
.an-foot .lt-check { margin: 0; }
.lt-req-md a, .lt-cmt-md a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lx-ann h3 { margin: 0; font: 500 21px/1.25 var(--font-serif); color: var(--home-ink); }
.lx-ann .lx-when { margin-top: 1px !important; }
.lx-ann .lx-clip { margin-top: 4px !important; }

/* A tick with its name and a line under it (Allow discussion), as the gradebook's accommodation ticks. */
.lx-tick { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; align-items: center; margin: 6px 0 4px; cursor: pointer; font: 14px var(--font-ui); color: var(--home-ink); }
.lx-tick input { grid-row: span 2; align-self: start; margin: 4px 0 0; width: 16px; height: 16px; accent-color: var(--home-ink); }
.lx-tick b { font-weight: 600; }
.lx-tick span { grid-column: 2; font-size: 13px; color: var(--home-ink-3); }

/* An editor's head with a kicker: a small icon (or week circle) beside the kicker, the title under them,
   flush left (as the course page's pages); its status and buttons on the right. */
.lx-ed-head:has(> .gr-tt > .gr-kind) { display: grid; grid-template-columns: auto 1fr auto; gap: 0 6px; align-items: center; }
.lx-ed-head:has(> .gr-tt > .gr-kind) > .gr-tt { display: contents; }
.lx-ed-head:has(> .gr-tt > .gr-kind) .gr-kind { grid-column: 2; grid-row: 1; margin: 0; }
.lx-ed-head:has(> .gr-tt > .gr-kind) h2 { grid-column: 1 / 3; grid-row: 2; margin-top: 1px; line-height: 1.1; }
.lx-ed-head:has(> .gr-tt > .gr-kind) > :not(.gr-tt):not(.lx-acts):first-child { grid-column: 1; grid-row: 1; width: 15px; height: 15px; margin: 0; color: var(--home-ink-3); }
.lx-ed-head:has(> .gr-tt > .gr-kind) > .lx-kicon svg { width: 15px; height: 15px; stroke-width: 2.1; }
.lx-ed-head:has(> .gr-tt > .gr-kind) > .lx-wnum { width: 17px; height: 17px; font: 600 10px/1 var(--font-ui); }
.lx-ed-head:has(> .gr-tt > .gr-kind) > .lx-acts { grid-column: 3; grid-row: 1 / span 2; }

/* The offering's Email card. */
.em-body .lx-sec.lx-first { margin-top: 6px; }
.em-body .lx-span2 { grid-column: 1 / -1; }
.em-body .lx-f textarea { height: auto; min-height: 70px; padding: 8px 10px; font: 14px/1.45 var(--font-ui); resize: vertical; }
.em-kinds { display: grid; gap: 10px; margin-top: 4px; }
.em-body .lt-part-acts, .lt-part.lt-wide .em-body .lt-part-acts { padding: 0; margin-top: 12px; }
.em-acts { justify-content: flex-end; }
.em-body > .lx-sec.lx-first { border-top: 0; padding-top: 0; }
.em-err { margin: 6px 0 0; color: #b42318; font-size: 13.5px; font-weight: 600; } .em-err:empty { display: none; }
.lt-part.lt-team#lt-email > .lt-part-text { flex: none; padding-bottom: 14px; }

/* A request's decisions, as the course page's discussion comments: initials, the name, what and when on one
   line, and the note under it as plain text (no bubble). */
.lt-req-ed .lt-cmt, .lt-req .lt-cmt { gap: 12px; margin-top: 14px; }
.lt-req-ed .lt-cmt-h, .lt-req .lt-cmt-h { align-items: center !important; margin: 4px 0 0 !important; font-size: 13px !important; gap: 4px 8px; }
.lt-req-ed .lt-cmt-h b, .lt-req .lt-cmt-h b { font-size: 14px; }
.lt-req-ed .lt-cmt-v, .lt-req .lt-cmt-v { font: 600 12.5px var(--font-ui); }
.lt-req-ed .lt-cmt-n, .lt-req .lt-cmt-n { display: block !important; margin: 3px 0 0 !important; padding: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; font-size: 15px !important; line-height: 1.55; color: var(--home-ink) !important; }

/* A count on a button's corner (requests waiting for a decision). */
.lt-btn.lt-has-badge { position: relative; overflow: visible; }
.lt-badge { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; display: grid; place-items: center; border-radius: 10px; background: #c0392b; color: #fff; font: 700 11.5px/1 var(--font-ui); box-shadow: 0 0 0 2px var(--home-card); }

/* The offering's Course Page card: a row a part, its name and Public / Signed In / Off. */
.lt-part.lt-team#lt-parts > .lt-part-text { flex: none; padding-bottom: 14px; }
.pp-rows { display: grid; gap: 0; border: 1px solid var(--home-line-2); border-radius: 10px; overflow: hidden; }
.pp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 14.5px; }
.pp-row + .pp-row { border-top: 1px solid var(--home-line); }
.pp-row b { font-weight: 600; color: var(--home-ink); }
.pp-row.off b { color: var(--home-ink-3); }

/* Email card: rows like the Course Page card; each opens in place to edit */
.em-row { padding: 12px 14px; }
.em-row + .em-row { border-top: 1px solid var(--home-line); }
.em-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.em-txt { display: grid; gap: 2px; min-width: 0; font-size: 14.5px; }
.em-txt b { font-weight: 600; color: var(--home-ink); }
.em-val { color: var(--home-ink-2); overflow-wrap: anywhere; }
.em-sig { white-space: pre-line; }
.em-none, .em-via { color: var(--home-ink-3); font-size: 13.5px; }
.em-btns { display: flex; gap: 8px; flex: none; }
.em-form { margin-top: 12px; }
.em-form textarea { width: 100%; box-sizing: border-box; min-height: 76px; padding: 8px 10px; border: 1px solid var(--home-line-2); border-radius: 8px; background: var(--home-card); color: var(--home-ink); font: 14px/1.45 var(--font-ui); resize: vertical; }
.em-foot { margin: 12px 0 0; }
.em-sig .hb-md > * { margin: 0; } .em-sig .hb-md > * + * { margin-top: 6px; } .em-sig .hb-md { margin: 0; }

/* A request's page: kicker + "Last, First / Evaluation", then the student's line (like their gradebook card). */
.lt-req-ed .lx-ed-head > .lt-req-pill { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
.lt-req-of { color: var(--home-ink-3); }
.lt-req-of .lt-link { padding: 0; font: inherit; color: inherit; text-decoration: none; }
.lt-req-of .lt-link:hover { color: var(--home-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.lt-req-meta { margin: -6px 0 4px; font-size: 14.5px; color: var(--home-ink-3); }
.lt-req-meta a, .lt-req-meta .lt-link { padding: 0; font: inherit; color: inherit; text-decoration: none; }
.lt-req-meta a:hover, .lt-req-meta .lt-link:hover { color: var(--home-ink); text-decoration: underline; }
/* Decisions look like the discussion's staff comments: yellow avatar and name, then the time. */
.lt-cmt-staff .lt-cmt-av { width: 30px; height: 30px; background: #fbf0d2; box-shadow: inset 0 0 0 1px #e8cf7c; color: #9a7400; }
.lt-cmt-staff .lt-cmt-h b { color: #9a7400; }
@media (prefers-color-scheme: dark) { .lt-cmt-staff .lt-cmt-av { background: #3a3220; box-shadow: inset 0 0 0 1px #6b5a2a; color: #e3c46a; } .lt-cmt-staff .lt-cmt-h b { color: #e3c46a; } }
.lt-cmt-staff .lt-cmt-v { font-weight: 600; }

/* A request's Reply (like a discussion's): a rich text box with Approve / Reject. */
.lt-req-reply { margin: 10px 0 0 42px; }
.lt-reply-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 2px; border: 0; background: none; font: 600 14px var(--font-ui); color: var(--home-ink-3); cursor: pointer; }
.lt-reply-btn:hover { color: var(--home-ink); }
.lt-reply-btn svg { width: 17px; height: 17px; }
.lt-req-compose { display: grid; gap: 10px; }
.lt-req-cfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lt-req-cnote { flex: 1; min-width: 140px; font-size: 13px; color: var(--home-ink-3); }
.lt-req-cfoot .lx-seg button[data-pick="approved"][aria-pressed="true"] { color: #2f8f5b; }
.lt-req-cfoot .lx-seg button[data-pick="rejected"][aria-pressed="true"] { color: #c0392b; }
.lt-req-compose .lt-err:empty { display: none; }
.lt-req-who { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: none; cursor: pointer; }
.lt-req-who:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.lt-new { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 999px; background: #c0392b; color: #fff; font: 700 10px/16px var(--font-ui); letter-spacing: .06em; vertical-align: 1px; }

/* Attendance (attendance.js): the total and the sessions; scanning with the camera, and who each card is. */
.at-total { color: inherit; }
.at-acts { margin: 18px 0 4px; }

.at-start .lt-btn svg, .at-hand svg, .at-acts .lt-btn svg { width: 16px; height: 16px; }
.at-start { margin: 18px 0 4px; display: grid; gap: 8px; }
.at-start .lx-f input { height: 42px; font-size: 15px; }
.at-start .lt-req-acts { display: flex; justify-content: flex-end; gap: 8px; }
.at-sess { display: grid; border: 1px solid var(--home-line-2); border-radius: 10px; overflow: hidden auto; max-height: 204px; overscroll-behavior: contain; }   /* past three sessions, it scrolls */
.at-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.at-row + .at-row { border-top: 1px solid var(--home-line); }
.at-rb { flex: 1; min-width: 0; }
.at-rb p { margin: 0; font-size: 14.5px; color: var(--home-ink); }
.at-rb b { font-weight: 600; }
.at-note { margin-left: 8px; color: var(--home-ink-2); }
.at-note::before { content: "· "; color: var(--home-ink-3); }
.at-when { font-size: 13px !important; color: var(--home-ink-3) !important; }
.at-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #2f8f5b; vertical-align: 1px; }
.at-n { font-size: 13.5px; color: var(--home-ink-3); white-space: nowrap; } .at-n b { font: 600 20px var(--font-ui); color: var(--home-ink); }
.at-row .lt-cmt-av { width: 30px; height: 30px; }

.at-scan { display: grid; gap: 12px; max-width: 640px; margin: 0 auto; }
.at-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.at-bar-t { min-width: 0; }
.at-bar .gr-kind { margin: 0; font: 700 11px/1.3 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--home-ink-3); }
.at-bar .gr-kind .lt-req-of { color: inherit; }
.at-bar-n { margin: 2px 0 0; font-size: 14.5px; color: var(--home-ink-2); } .at-bar-n b { color: var(--home-ink); font-size: 17px; }
.at-cam { position: relative; overflow: hidden; aspect-ratio: 4 / 3; max-height: 52vh; border-radius: 12px; background: #111; }
.at-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.at-aim { position: absolute; left: 10%; right: 10%; top: 34%; bottom: 34%; border: 2px solid rgba(255,255,255,.85); border-radius: 10px; box-shadow: 0 0 0 999px rgba(0,0,0,.25); pointer-events: none; }
.at-cam-msg { position: absolute; left: 16px; right: 16px; bottom: 12px; margin: 0; color: #fff; font-size: 14px; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.at-cam-msg:empty { display: none; }
.at-cam.off { aspect-ratio: auto; min-height: 120px; display: grid; place-items: center; }
.at-cam.off .at-aim { display: none; } .at-cam.off .at-cam-msg { position: static; padding: 18px; }
.at-res:empty { display: none; }
.at-panel { padding: 16px 18px; border: 1px solid var(--home-line-2); border-radius: 12px; background: var(--home-card); }
.at-panel .gr-kind { margin: 0; font: 700 11px/1.3 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--home-ink-3); }
.at-panel h3 { margin: 2px 0 0; font: 500 26px/1.15 var(--font-serif); color: var(--home-ink); }
.at-meta { margin: 3px 0 0; font-size: 14px; color: var(--home-ink-3); overflow-wrap: anywhere; }
.at-why { margin: 6px 0 0; font-size: 15px; color: var(--home-ink); }
.at-pacts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.at-pacts .lt-btn { height: 46px; padding: 0 20px; font-size: 15px; }
.at-pacts .lt-btn svg { width: 18px; height: 18px; }
.at-panel.ask .at-pacts .lt-btn { flex: 1; }
.at-panel.bad { border-color: #e7b4ad; background: #fdf1ef; } .at-panel.bad .gr-kind { color: #c0392b; }
.at-panel.ok { display: flex; align-items: center; gap: 12px; border-color: #b7dcc5; background: #eef8f1; }
.at-panel.ok h3 { font-size: 22px; margin: 0; }
.at-ok { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #2f8f5b; color: #fff; flex: none; } .at-ok svg { width: 22px; height: 22px; stroke-width: 2.6; }
.at-q { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 0 12px; height: 46px; border: 1px solid var(--home-line-2); border-radius: 10px; background: var(--home-card); color: var(--home-ink-3); }
.at-q svg { width: 18px; height: 18px; flex: none; }
.at-q input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 16px var(--font-ui); color: var(--home-ink); }
.at-hits { display: grid; gap: 6px; margin-top: 8px; }
.at-hit { display: grid; gap: 1px; padding: 10px 12px; border: 1px solid var(--home-line); border-radius: 9px; background: var(--home-strip); text-align: left; font: 14px var(--font-ui); color: var(--home-ink); cursor: pointer; }
.at-hit span { font-size: 13px; color: var(--home-ink-3); } .at-hit em { font-style: normal; font-size: 12px; font-weight: 700; color: #c0392b; }
.at-hit:hover { border-color: var(--home-line-2); }
.at-hand { justify-self: center; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .at-panel.bad { background: #3a2321; border-color: #6b3a35; } :root:not([data-theme="light"]) .at-panel.ok { background: #1f3326; border-color: #2f5a3d; } }
:root[data-theme="dark"] .at-panel.bad { background: #3a2321; border-color: #6b3a35; } :root[data-theme="dark"] .at-panel.ok { background: #1f3326; border-color: #2f5a3d; }
@media (max-width: 640px) { .lt-att.lt-in { padding: 16px 12px 40px; } .at-bar { align-items: flex-start; } .at-panel h3 { font-size: 23px; } }

/* Discussions (discussions.js): the course page's own, with its styles (/css/hub-in-lectern.css, scoped to .hb). */
.lt-dc.hb { background: transparent; font-size: 15px; }
[data-dc-slot] .lt-dc.hb .dc { margin-top: 8px; }
.lt-dc-page .lt-dc.hb { max-width: 1100px; margin: 0 auto; }
.lt-dc-page .lx { margin-bottom: 14px; }
.hb .lt-dc-where { font: 700 11px/1.3 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hb .lt-dc-open { margin-left: 8px; padding: 1px 7px; border-radius: 99px; background: #fdecea; color: #b42318; font: 700 10.5px/16px var(--font-ui); letter-spacing: .04em; text-transform: uppercase; }
.hb .lt-dc-item { height: 36px; max-width: 260px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--card); color: var(--ink); font: 14px var(--font-ui); }

/* A request in the list: the Item Head style (small icon by the kicker, "Last, First / Evaluation", the pill). */
.lt-req-item .lt-rq-head { display: grid; grid-template-columns: auto 1fr auto; gap: 0 6px; align-items: center; }
.lt-req-item .lt-rq-ic { grid-column: 1; grid-row: 1; display: grid; place-items: center; width: 15px; height: 15px; color: var(--home-ink-3); }
.lt-req-item .lt-rq-ic svg { width: 15px; height: 15px; stroke-width: 2.1; }
.lt-req-item .lt-rq-head .lx-kind { grid-column: 2; grid-row: 1; margin: 0; }
.lt-req-item .lt-rq-head h3 { grid-column: 1 / 3; grid-row: 2; margin: 1px 0 0; line-height: 1.12; }
.lt-req-item .lt-rq-head .lx-when { grid-column: 1 / 3; grid-row: 3; margin: 3px 0 0; color: var(--home-ink-3); }
.lt-req-item .lt-rq-head .lt-req-pill { grid-column: 3; grid-row: 1 / span 3; align-self: center; }
.lt-req-item .lt-req-last { color: var(--home-ink-3); font-size: 13.5px; }
.lt-acc-q { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border: 1px solid var(--home-line-2); border-radius: 9px; background: var(--home-card); color: var(--home-ink-3); }
.lt-acc-q svg { width: 16px; height: 16px; flex: none; }
.lt-acc-q input { width: 190px; border: 0; outline: 0; background: none; font: 14px var(--font-ui); color: var(--home-ink); }
.lt-dc.hb .dc-threads, .lt-dc.hb .dc-none, .lt-dc.hb .dc-box { background: var(--card); }
.lt-req-item { align-items: center; } .lt-req-item > .lt-req-go { align-self: center; margin-top: 0; }
.hb .lt-dc-where { display: inline-flex; align-items: center; gap: 6px; }
.hb .lt-dc-where svg { width: 14px; height: 14px; }
.hb .lt-dc-of { color: var(--ink-3); font-weight: inherit; }
/* Requests listed as Discussions are (the same rows): a status icon where a post has its votes. */
.hb .lt-rq-st { flex: none; display: flex; align-items: center; justify-content: center; width: 54px; color: #b58a00; }
.hb .lt-rq-st svg { width: 22px; height: 22px; }
.hb .lt-rq-row.st-approved .lt-rq-st { color: #2f8f5b; } .hb .lt-rq-row.st-rejected .lt-rq-st { color: #c0392b; }
.hb .lt-rq-last.v-approved { color: #2f8f5b; font-weight: 600; } .hb .lt-rq-last.v-rejected { color: #c0392b; font-weight: 600; }
.lt-accom .lt-dc.hb .dc-head { margin-top: 6px; }

/* Attendance: the guide is a card's shape (what's read for its name and number) */
.at-cam .at-aim { left: 8%; right: 8%; top: 50%; bottom: auto; aspect-ratio: 1.586; transform: translateY(-50%); max-height: 94%; }
.at-cam-tip { position: absolute; left: 0; right: 0; top: 10px; margin: 0; color: #fff; font: 600 13px var(--font-ui); text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,.6); pointer-events: none; }
.at-cam.off .at-cam-tip { display: none; }

/* Scanning: in the same card as the overview; the camera as wide as the card. */
.at-card.at-scan { display: grid; gap: 14px; }
.at-card.at-scan .lx-ed-head { margin: 0; }
.at-card.at-scan .lt-req-meta { margin: -10px 0 0; }
.at-card.at-scan .at-cam { width: 100%; aspect-ratio: 16 / 10; max-height: none; }
.at-hand-row { display: flex; justify-content: center; }
.at-cam video::-webkit-media-controls { display: none !important; }
@media (max-width: 640px) { .at-card.at-scan { padding: 16px 14px; } .at-card.at-scan .at-cam { aspect-ratio: 4 / 5; } }
.at-card.at-scan { max-width: none; margin: 6px 0 0; }
.at-card.at-scan .at-cam { aspect-ratio: auto; height: min(58vh, 56vw); }
@media (max-width: 640px) { .at-card.at-scan .at-cam { height: min(62vh, 110vw); } }
/* An Item Head's title on a phone: it wraps in its own column (never under what's on its right), rather than being cut short with …. */
@media (max-width: 640px) {
  .lx-ed-head:has(> .gr-tt > .gr-kind) { grid-template-columns: auto minmax(0, 1fr) auto; }
  .lx-ed-head:has(> .gr-tt > .gr-kind) { align-items: start; }
  .lx-ed-head:has(> .gr-tt > .gr-kind) h2 { min-width: 0; font-size: 26px; }
}

/* Who a card is, over the camera (as a meeting's details cover the calendar). */
.at-cam .at-res { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 16px; overflow: auto; background: rgba(20, 22, 26, .55); }
.at-cam .at-res:empty { display: none; }
.at-cam .at-res > .at-panel { width: min(100%, 520px); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.at-cam.off .at-res { position: static; background: none; padding: 0; }
.at-cam .at-res, .at-cam .at-res > .at-panel { box-sizing: border-box; } .at-cam .at-res > .at-panel { max-width: 100%; } .at-cam:has(.at-res:not(:empty)) .at-aim { display: none; }
.at-row .at-del { flex: none; margin-left: 4px; }
.at-row .at-del svg { width: 17px; height: 17px; }
.at-row .at-del { display: inline-flex; align-items: center; gap: 6px; width: auto; min-width: 32px; padding: 0 8px; }

/* Attendance, as a section of the evaluation's editor (above Grading) */
.at-sec { display: grid; gap: 10px; margin-top: 6px; }
.at-sec .at-sum { margin: 0; }
.at-sec .at-start { margin: 10px 0 0; gap: 6px; }
.at-sec .at-start .pf input { height: 40px; }
.at-sec .at-start .ed-help { margin: 0; }
.at-sec .at-go-row, .at-sec .at-acts { display: flex; justify-content: flex-end; margin: 4px 0 0; }
.at-sec .ed-sub { margin: 8px 0 0; }
.at-sec .at-scan { max-width: 600px; margin: 0; gap: 12px; }
.at-sec .at-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.at-sec .at-bar .at-sum { min-width: 0; }
.at-sec .at-hand-row { display: flex; justify-content: center; }
.at-sec .lt-btn svg { width: 16px; height: 16px; }
.at-best:empty { display: none; }
.at-best { margin-top: 12px; }
.at-best h3 { margin: 0; }
.at-best .at-why { margin-top: 4px; }
.at-bad-t { color: var(--danger, #c0392b) !important; }
.at-sec .at-sum + .ed-sub { margin-top: 2px; }

/* ── Phones (from the mobile audit) ──
   The bar: Home, Back/Forward and the account button on one row (the account button at the right, with the
   Not saved pill before it), the path on its own row underneath. The account menu stays on the screen.
   Titles wrap instead of ending in "…". Dialogs fit the visible screen (dvh: not under the browser's own bars).
   Fields are 16px, so phones don't zoom in on them. */
@media (max-width: 640px) {
  .lt-status { margin-left: auto; }
  .lt-nav button { width: 38px !important; }
  .lt-menu { max-width: calc(100vw - 32px); }
  .lt-menu button { height: 42px; }
  #lt-path .lt-step { padding: 8px 5px; }
  .lt-off-h1 { white-space: normal; overflow: visible; }
  .pp-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pp-row .lx-seg { flex-wrap: nowrap; }
  .lt-modal-bg { padding: 12px; }
  .lt-modal { max-height: calc(100dvh - 24px); padding: 20px 18px 16px; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px !important; }
}

/* Home: a new account's start (New, Import, the demo), and the line offering the demo under your courses. */
.lt-start { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.lt-start .lt-card.new { min-height: 170px; padding: 18px; text-align: center; }
.lt-demo-line { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--home-ink-3); }
.lt-demo-line > svg { flex: none; width: 18px; height: 18px; }
.lt-demo-line .lt-link { color: var(--home-ink); font-weight: 600; }
/* Import: the file, then what's in it. */
.lt-imp-file input[type="file"] { font: inherit; font-weight: 400; font-size: 13.5px; }
.lt-imp-what { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--home-card, #fff); border: 1px solid var(--home-line-2); font-size: 13.5px; line-height: 1.5; }
.lt-imp-what span { color: var(--home-ink-3); }
#im-rest { display: grid; gap: 14px; }
#im-rest[hidden] { display: none; }
.lt-check small { font-weight: 400; color: var(--ink-3); }

/* Print and Scan (static/js/scans.js): an exam's PDFs, its scans, the grader's results, and one booklet's review. */
.sc-ed .lx-ed-head > .lt-req-pill { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
.sc-ed h2 .lt-req-who { padding: 0; font: inherit; color: inherit; text-decoration: none; }
.sc-ed h2 .lt-req-who:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.sc-copy { margin: 12px 0 0; }
.sc-copy + .sc-copy { margin-top: 16px; }
.sc-v { display: block; margin: 0 0 6px; font: 600 13.5px var(--font-ui); color: var(--home-ink-2); }
.sc-docs, .sc-actions, .sc-qa, .sc-nav, .sc-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sc-docs .lt-btn svg, .sc-actions .lt-btn svg, .sc-nav .lt-btn svg { width: 16px; height: 16px; }
.sc-state { margin-top: 6px; }
.sc-warn { color: #9a5b00; }
.sc-actions { margin-top: 12px; }
.sc-actions .sc-dis { opacity: .5; cursor: default; }
.sc-files { display: grid; gap: 6px; margin: 10px 0 0; }
.sc-file { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--home-line-2); border-radius: 9px; background: var(--home-card); font-size: 14px; }
.sc-file > svg { width: 18px; height: 18px; color: var(--home-ink-3); }
.sc-fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sc-fmeta { color: var(--home-ink-3); font-size: 13px; white-space: nowrap; }
.sc-file.err .sc-fmeta { color: #c0392b; white-space: normal; }
.sc-going { grid-template-columns: 18px minmax(0, 1fr) auto 120px; }
.sc-bar { height: 6px; border-radius: 3px; background: var(--home-line); overflow: hidden; }
.sc-bar i { display: block; height: 100%; width: 0; background: var(--home-ink); transition: width .2s; }
.sc-up:empty { display: none; }
.sc-up { display: grid; gap: 6px; margin-top: 6px; }
.sc-del { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--home-ink-3); cursor: pointer; }
.sc-del svg { width: 16px; height: 16px; }
.sc-del:hover:not(:disabled) { color: #c0392b; background: rgb(192 57 43 / .08); }
.sc-job { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font-size: 14px; color: var(--home-ink-2); }
.sc-spin { width: 14px; height: 14px; border: 2px solid var(--home-line-2); border-top-color: var(--home-ink); border-radius: 50%; animation: sc-spin .8s linear infinite; }
@keyframes sc-spin { to { transform: rotate(360deg); } }
.sc-list { margin-top: 10px; border: 1px solid var(--home-line-2); border-radius: 10px; overflow: hidden; background: var(--home-card); }
.sc-list-head { padding: 10px 12px; border-bottom: 1px solid var(--home-line); }
.sc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 128px; align-items: center; gap: 14px; width: 100%; padding: 10px 14px; border: 0; border-top: 1px solid var(--home-line); background: transparent; color: var(--home-ink); text-align: left; font: 14px var(--font-ui); cursor: pointer; }
.sc-list-head + .sc-row { border-top: 0; }
.sc-row:hover { background: var(--lx-seg, rgb(0 0 0 / .03)); }
.sc-who { display: flex; flex-direction: column; min-width: 0; font-weight: 600; }
.sc-who small, .sc-tot small { font-weight: 400; color: var(--home-ink-3); font-size: 12.5px; }
.sc-tot { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.sc-none { padding: 14px; margin: 0; }
.sc-pill { justify-self: end; padding: 2px 10px; border-radius: 999px; font: 600 12.5px/20px var(--font-ui); box-shadow: inset 0 0 0 1px currentColor; white-space: nowrap; }
.sc-pill.v-done, .sc-pill.v-auto { color: #2f8f5b; }
.sc-pill.v-open, .sc-pill.v-check { color: #9a7400; }
.sc-pill.v-who, .sc-pill.v-manual { color: #1d4ed8; }
.sc-foot { margin: 22px 0 0; }
.sc-danger { color: #c0392b; }
.sc-nav { margin: 4px 0 0; }
.sc-sm.lt-btn { height: 32px; padding: 0 12px; font-size: 13.5px; }
.sc-pic { display: block; max-width: 100%; margin: 10px 0 0; border: 1px solid var(--home-line-2); border-radius: 8px; background: #fff; }
.sc-cover { max-height: 260px; }
.sc-pick { margin-top: 10px; }
.sc-pick select { min-width: 280px; }
.sc-qs { display: grid; gap: 12px; margin-top: 10px; }
.sc-q { padding: 14px 16px; border: 1px solid var(--home-line-2); border-radius: 10px; background: var(--home-card); }
.sc-q.st-check, .sc-q.st-manual { border-color: #e8cf7c; } .sc-q.st-missing { border-color: #f0b8b0; }
.sc-qh { display: flex; align-items: center; gap: 10px; }
.sc-qh b { font: 600 15px var(--font-ui); }
.sc-marks { display: inline-flex; align-items: center; gap: 6px; }
.sc-src { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; background: #fbf0d2; color: #9a7400; box-shadow: inset 0 0 0 1px #e8cf7c; }
.sc-src svg { width: 16px; height: 16px; }
.sc-done { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--home-ink-3); color: #fff; }
.sc-done.on { border: 0; background: #2f8f5b; }
.sc-done svg { width: 14px; height: 14px; stroke-width: 2.6; }
.sc-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sc-key .sc-src, .sc-key .sc-done { margin-left: 8px; } .sc-key > :first-child { margin-left: 0; }
.sc-key .sc-src { width: 22px; height: 22px; } .sc-key .sc-src svg { width: 14px; height: 14px; } .sc-key .sc-done { width: 18px; height: 18px; } .sc-key .sc-done svg { width: 12px; height: 12px; }
.sc-undo { margin-left: 4px; font-size: 13px; }
.sc-score { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; color: var(--home-ink-2); font-weight: 600; }
.sc-score input { width: 64px; height: 32px; box-sizing: border-box; padding: 0 8px; border: 1px solid var(--home-line-2); border-radius: 7px; background: var(--home-card); color: var(--home-ink); font: 600 14px var(--font-ui); text-align: right; }
.sc-read { margin: 8px 0 0; font-size: 14px; color: var(--home-ink-2); }
.sc-note { display: flex; align-items: flex-start; gap: 7px; margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: #8a6800; }
.sc-note svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: #b58a00; }
.sc-readv { padding: 0 2px; border: 0; border-bottom: 1px dashed var(--home-ink-3); background: transparent; font: 700 14px var(--font-ui); color: var(--home-ink); cursor: text; }
.sc-readv:hover { border-bottom-color: var(--home-ink); background: var(--accent-bg, #fbf0d2); }
.sc-readin { width: 160px; height: 30px; box-sizing: border-box; margin-left: 4px; padding: 0 8px; border: 1px solid var(--home-ink-3); border-radius: 7px; background: var(--home-card); color: var(--home-ink); font: 600 14px var(--font-ui); }
.sc-readin:focus { outline: 2px solid var(--accent, #c99a06); outline-offset: 1px; }
.sc-qlab { font-size: 13.5px; color: var(--home-ink-2); margin-right: 2px; }
.sc-qa { margin-top: 10px; }
.sc-by { font-size: 13px; color: var(--home-ink-3); margin-left: 4px; }
@media (max-width: 640px) { .sc-row { grid-template-columns: minmax(0, 1fr) auto; } .sc-row .sc-pill { grid-column: 1 / -1; justify-self: start; } .sc-file { grid-template-columns: 18px minmax(0, 1fr) auto; } .sc-file .sc-fmeta { grid-column: 2; } }

/* Print and Scan, in Lectern's own pieces: the list of booklets is the requests' list (its head, search and rows). */
.sc-dc .dc-threads { max-height: none; }
.sc-dc .dc-head { margin-top: 22px; }
.sc-dc .lt-rq-st { width: 46px; }
.sc-dc .sc-done { width: 20px; height: 20px; }
.sc-who-q { color: #c0392b; }
.sc-ed .lx-adds { margin-top: 12px; }
.sc-ed .lx-ed-head .lx-ic:disabled { opacity: .4; cursor: default; }
.sc-ed .lx-ed-head .lx-ic svg { width: 18px; height: 18px; }
.sc-bybar { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--home-line); }
.sc-bybar + .sc-dc .dc-head { margin-top: 12px; padding-top: 0; border-top: 0; }
.sc-qwho { padding: 0; font: inherit; color: inherit; text-decoration: none; }
.sc-qwho:hover { text-decoration: underline; text-underline-offset: 3px; }
.sc-qv { font-size: 12.5px; font-weight: 400; color: var(--home-ink-3); }
.sc-book .sc-dc .dc-head { margin-top: 14px; }
.sc-book .sc-dc + .sc-key { margin-top: 12px; }

/* Print and Scan, in Lectern's type: a booklet's mark as the course page shows one, and each question's card with
   its title in the serif, its state in words (an outlined pill), and what was read beside the answer under gray caps labels. */
.sc-ed .lx-ed-head.sc-hasmk { grid-template-columns: auto 1fr auto auto; }
.sc-ed .lx-ed-head.sc-hasmk > .lx-acts { grid-column: 4; }
/* The percent sits on the title's line (same baseline); its points hang under it, beside the meta line. */
.sc-ed .lx-ed-head.sc-hasmk h2 { align-self: baseline; }
.sc-mk { position: relative; grid-column: 3; grid-row: 2; align-self: baseline; display: grid; justify-items: end; text-align: right; margin-right: 10px; padding-right: 16px; border-right: 1px solid var(--home-line); }
.sc-mk small { position: absolute; top: 100%; right: 16px; margin-top: 6px; }
.sc-mk b { font: 500 36px/1.02 var(--font-serif); letter-spacing: -.01em; color: var(--home-ink); font-variant-numeric: lining-nums tabular-nums; }
.sc-mk small { font-size: 13px; color: var(--home-ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sc-q { padding: 16px 18px 18px; }
.sc-qh { gap: 12px; }
.sc-qt { margin: 0; font: 500 21px/1.2 var(--font-serif); color: var(--home-ink); }
.sc-qt .sc-qwho { font: inherit; }
.sc-qt .sc-qv { margin-left: 8px; font: 400 13px var(--font-ui); }
.sc-qpill { padding: 1px 10px; font-size: 12px; line-height: 20px; }
.sc-score { gap: 4px; color: var(--home-ink-3); font: 500 22px/1 var(--font-serif); font-variant-numeric: lining-nums tabular-nums; }
.sc-score span { white-space: nowrap; }
.sc-q .sc-score input[type="number"] { min-width: 0; width: 1.9em; height: 32px; padding: 0 1px; border: 0; border-bottom: 1px dashed var(--home-ink-3); border-radius: 0; background: transparent; font: 500 26px/1 var(--font-serif); color: var(--home-ink); text-align: right; -moz-appearance: textfield; }
.sc-q .sc-score input::-webkit-inner-spin-button, .sc-q .sc-score input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sc-q .sc-score input:hover:not(:disabled) { border-bottom-color: var(--home-ink); background: var(--accent-bg, #fbf0d2); }
.sc-q .sc-score input:focus { outline: 0; border-bottom: 1.5px solid var(--accent, #c99a06); background: var(--accent-bg, #fbf0d2); }
.sc-q .sc-score input:disabled { border-bottom-color: transparent; }
.sc-q .sc-pic { width: auto; max-height: 220px; }
.sc-facts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 36px; margin-top: 12px; }
.sc-f { display: grid; gap: 3px; min-width: 0; }
.sc-fk { font: 700 11px/1.3 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--home-ink-3); }
.sc-fv, .sc-q .sc-readv, .sc-q .sc-readin { font: 500 22px/1.2 var(--font-serif); color: var(--home-ink); font-variant-numeric: lining-nums; }
.sc-fval { display: inline-flex; align-items: baseline; gap: 8px; }
.sc-fval.off .sc-readv, .sc-fval.off > .sc-fv { color: #c0392b; }
.sc-q .sc-readv { padding: 0 1px; border: 0; border-bottom: 1px dashed var(--home-ink-3); background: transparent; cursor: text; }
.sc-q .sc-readv:hover { border-bottom-color: var(--home-ink); background: var(--accent-bg, #fbf0d2); }
.sc-q .sc-readin { width: 9em; height: 36px; margin: 0; padding: 0 2px; border: 0; border-bottom: 1.5px solid var(--accent, #c99a06); border-radius: 0; background: var(--accent-bg, #fbf0d2); outline: 0; }
.sc-q .sc-readin:focus { outline: 0; }
.sc-q .sc-readin::placeholder { color: var(--home-ink-3); font-style: italic; }
.sc-q .sc-by { margin: 0; font: 400 12.5px var(--font-ui); color: var(--home-ink-3); }
.sc-fa { display: inline-flex; gap: 8px; margin-left: auto; align-self: flex-end; }
.sc-qa.sc-f { display: grid; margin-top: 12px; }
@media (max-width: 640px) { .sc-ed .lx-ed-head.sc-hasmk { grid-template-columns: auto 1fr auto; } .sc-mk { grid-column: 1 / -1; grid-row: 3; justify-items: start; text-align: left; margin: 10px 0 0; padding: 0; border: 0; } .sc-mk small { position: static; margin: 0; } .sc-ed .lx-ed-head.sc-hasmk > .lx-acts { grid-column: 3; } .sc-fa { margin-left: 0; } }
/* A question with several blanks: a row for each, numbered in the serif, with its own picture, reading, answer and score. */
.sc-bls { display: grid; margin-top: 10px; border-top: 1px solid var(--home-line); }
.sc-bl { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--home-line); }
.sc-bl:last-child { border-bottom: 0; padding-bottom: 2px; }
.sc-bn { font: 500 20px/1.1 var(--font-serif); color: var(--home-ink-3); font-variant-numeric: lining-nums; padding-top: 2px; }
.sc-bl.st-check .sc-bn, .sc-bl.st-manual .sc-bn { color: #9a7400; }
.sc-bm { min-width: 0; }
.sc-bm .sc-bpic { margin: 0; max-height: 120px; }
.sc-bm .sc-facts { margin-top: 10px; }
.sc-bm .sc-qa { margin-top: 8px; }
.sc-bl .sc-bscore { margin-left: 0; padding-top: 2px; }
@media (max-width: 640px) { .sc-bl { grid-template-columns: 22px minmax(0, 1fr); } .sc-bl .sc-bscore { grid-column: 2; } }
/* A question's comments for the student, as the marking guide writes them: the marks in a column, the comment beside
   them. Rubric lines tick on and off (a tick, the row in ink); the grader's are marked Grader; adding is a quiet link. */
.sc-cm { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--home-line); }
.sc-cm.sc-cm-min { margin-top: 8px; padding-top: 0; border-top: 0; }
.sc-cm-h { margin: 0 0 6px; }
.sc-cm-h i { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; }
.sc-cm-l { display: grid; margin: 0; padding: 0; list-style: none; }
.sc-cm-r { display: grid; grid-template-columns: 18px 3em minmax(0, 1fr) auto; align-items: baseline; gap: 8px; width: 100%; padding: 6px 8px; margin: 0 -8px; box-sizing: content-box; border: 0; border-radius: 8px; background: transparent; color: var(--home-ink-3); font: 14.5px/1.4 var(--font-ui); text-align: left; }
button.sc-cm-r { cursor: pointer; }
button.sc-cm-r:hover { background: var(--home-strip); color: var(--home-ink-2); }
.sc-cm-r.on { color: var(--home-ink); }
.sc-cm-k { align-self: center; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--home-line-2); color: #fff; }
.sc-cm-r.on .sc-cm-k { background: var(--home-ink); box-shadow: none; }
.sc-cm-k svg { width: 13px; height: 13px; stroke-width: 2.6; }
.sc-cm-auto .sc-cm-k { visibility: hidden; }
.sc-cm-auto { color: var(--home-ink-2); }
.sc-cm-d { font: 600 14px var(--font-ui); font-variant-numeric: tabular-nums; text-align: right; color: var(--home-ink-3); }
.sc-cm-r.on .sc-cm-d.down, .sc-cm-auto .sc-cm-d.down { color: #c0392b; }
.sc-cm-r.on .sc-cm-d.up, .sc-cm-auto .sc-cm-d.up { color: #2f8f5b; }
.sc-cm-by { font-size: 12px; color: var(--home-ink-3); }
.sc-cm-acts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; }
.sc-cm-a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: transparent; color: var(--home-ink-3); font: 600 13.5px var(--font-ui); cursor: pointer; }
.sc-cm-a:hover { color: var(--home-ink); }
.sc-cm-a svg { width: 15px; height: 15px; }
.sc-newc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.sc-newc input { height: 34px; box-sizing: border-box; padding: 0 10px; border: 1px solid var(--home-line-2); border-radius: 8px; background: var(--home-card); color: var(--home-ink); font: 14px var(--font-ui); }
.sc-newc .sc-nd { width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.sc-newc .sc-nt { flex: 1; min-width: 220px; }
.sc-newc input:focus { outline: 2px solid var(--accent, #c99a06); outline-offset: 1px; }
.sc-cm-note { display: grid; gap: 4px; margin: 10px 0 0; }
.sc-cnote-in { width: 100%; height: 32px; box-sizing: border-box; padding: 0 2px; border: 0; border-bottom: 1px dashed var(--home-ink-3); background: transparent; color: var(--home-ink); font: italic 15px var(--font-serif); }
.sc-cnote-in:focus { outline: 0; border-bottom: 1.5px solid var(--accent, #c99a06); }
.sc-cm-note > span:last-child { font: italic 15px var(--font-serif); color: var(--home-ink); }
.sc-cap { margin: 6px 0 0; }
/* What they chose: a red tick (right) or cross (wrong) just left of the bubble, as on the marked PDF; and the key. */
.sc-pk { display: inline-flex; color: #c0392b; }
.sc-pk svg { width: 100%; height: 100%; stroke-width: 3.2; }
.sc-cap .sc-key-i { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; white-space: nowrap; }
.sc-cap .sc-pk { width: 15px; height: 15px; }
.sc-ring-k { display: inline-block; width: 11px; height: 11px; border: 2px solid #2f8f5b; border-radius: 50%; background: rgb(47 143 91 / .24); }
.sc-ring-k.sq { border-radius: 4px; }
.sc-qs.v-marked .sc-only-read { display: none; }
/* The typed copy of what was read, under the scan (scans.js, digiChoice and digiField): drawn as the paper has it.
   Their Answers: filled bubbles in ink, boxes holding what was read, to correct. Marked: a red tick or cross by each
   answer and the right options in green, as the student gets it. */
.dz { margin-top: 12px; }
.dz-choice { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.dz-opt { display: inline-flex; align-items: center; gap: 9px; padding: 5px 10px 5px 4px; border: 0; border-radius: 9px; background: transparent; color: var(--home-ink); font: 16px var(--font-serif); cursor: pointer; text-align: left; }
.dz-opt:hover:not(:disabled) { background: var(--home-strip); }
.dz-opt:disabled { cursor: default; }
.dz-b { flex: none; width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--home-ink-2); background: var(--home-card); }
.dz-choice.sq .dz-b { border-radius: 4px; }
.dz-opt.on .dz-b { background: var(--home-ink); border-color: var(--home-ink); }
.dz-choice.sq .dz-opt.on .dz-b { background: var(--home-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2329' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 16px no-repeat; }
.dz-mk { display: none; width: 18px; height: 18px; margin-right: -4px; }
.dz-mk .sc-pk { width: 18px; height: 18px; }
.dz-one { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.dz-field { display: inline-flex; align-items: center; gap: 4px; }
.dz-field input { box-sizing: border-box; height: 40px; padding: 0 10px; border: 1.5px solid var(--home-ink-2); border-radius: 2px; background: var(--home-card); color: var(--home-ink); font: 20px var(--font-serif); font-variant-numeric: lining-nums; }
.dz-field input:focus { outline: 2px solid var(--accent, #c99a06); outline-offset: 1px; }
.dz-field input::placeholder { font: italic 15px var(--font-serif); color: var(--home-ink-3); }
.dz-field .dz-box { width: 150px; }
.dz-field .dz-box.wide { width: 260px; }
.dz-field .dz-line { width: 220px; border-width: 0 0 1.5px; border-radius: 0; background: transparent; }
.dz-frac { flex-direction: column; gap: 3px; }
.dz-frac .dz-box { width: 90px; height: 36px; text-align: center; }
.dz-frac i { width: 96px; border-top: 1.5px solid var(--home-ink-2); }
.dz-cells { gap: 0; }
.dz-cells .dz-cell { width: 40px; height: 40px; padding: 0; text-align: center; border-radius: 0; margin-left: -1.5px; }
.dz-cells .dz-cell:first-child { margin-left: 0; }
.dz-ans { display: none; font: italic 17px var(--font-serif); color: #2f8f5b; }
.sc-by-line { margin: 6px 0 0; }
.sc-qs.v-marked .dz-mk { display: inline-flex; }
.sc-qs.v-marked .dz-ans { display: inline; }
.sc-qs.v-marked .dz-opt.right .dz-b { box-shadow: 0 0 0 3px var(--home-card), 0 0 0 5px #2f8f5b; }
.sc-qs.v-marked .dz-opt.right { background: rgb(47 143 91 / .1); }
.sc-qs.v-marked .dz-opt, .sc-qs.v-marked .dz-field input { pointer-events: none; }
.sc-qs.v-marked .dz-field input { border-color: var(--home-line-2); }
/* The typed copy on the exam itself (scans.js, paperChoice and paperField): the clean printed copy with what was read
   put back on it, bubbles filled in pencil and words typed into the boxes, which you click or type in to correct. */
.pp { position: relative; display: block; width: fit-content; max-width: 100%; margin-top: 10px; border: 1px solid var(--home-line-2); border-radius: 8px; background: #fff; overflow: visible; }
.pp-img { display: block; max-width: 100%; border-radius: 8px; }
.pp-on { position: absolute; inset: 0; container-type: inline-size; }   /* the layer on the paper: its width sizes the writing */
.pp-opt { position: absolute; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.pp.sq .pp-opt { border-radius: 3px; }
.pp-opt:hover:not(:disabled) { box-shadow: 0 0 0 3px rgb(201 154 6 / .45); }
.pp-opt:disabled { cursor: default; }
.pp-opt.on::after { content: ""; position: absolute; inset: 14%; border-radius: inherit; background: #1f2329; opacity: .88; }
.pp.sq .pp-opt.on::after { inset: 8%; background: center / 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2329' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5 5L20 6'/%3E%3C/svg%3E"); opacity: 1; }
.pp-mk { display: none; position: absolute; right: calc(100% + 4px); top: 50%; width: 1.3em; height: 1.3em; transform: translateY(-50%); font-size: 16px; }
.pp .pp-in { height: auto; position: absolute; box-sizing: border-box; margin: 0; padding: 0 .3em; border: 0; border-radius: 2px; background: transparent; color: #1f2a52; text-align: center;
  font: 500 calc(var(--h) * var(--r) * 100cqw * .62) var(--font-serif); font-variant-numeric: lining-nums; }
.pp .pp-in:hover:not(:disabled) { background: rgb(201 154 6 / .08); }
.pp .pp-in:focus { outline: 2px solid var(--accent, #c99a06); outline-offset: 0; background: rgb(255 255 255 / .6); }
.pp.pp-blank .pp-in { text-align: left; padding-left: .4em; }
.pp-marks { position: absolute; display: none; pointer-events: none; }
.pp-marks .dz-mk { position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); margin: 0; }
.pp-marks .dz-ans { position: absolute; left: 0; top: calc(100% + 4px); white-space: nowrap; }
.sc-qs.v-marked .pp-mk, .sc-qs.v-marked .pp-marks { display: block; }
.sc-qs.v-marked .pp-opt { pointer-events: none; }
.sc-qs.v-marked .pp-opt.right { box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px #2f8f5b; background: rgb(47 143 91 / .18); }
.sc-qs.v-marked .pp .pp-in { height: auto; pointer-events: none; }
/* The scan and its clean copy: one under the other, but a fraction (tall and narrow) side by side. */
.sc-pair.side { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 14px; }
.sc-pair > .sc-pic, .sc-pair > .dz-one > .pp, .sc-pair > .pp, .sc-pair > .dz { margin-top: 10px; }
.sc-pair > .dz-one { margin-top: 0; }
/* Their Answers is for making sure what the computer read is right: no scores there on questions it marks from what it
   read (they show in Marked). A question a person marks keeps its score box in both. */
.sc-q.readq .sc-score { display: none; }   /* the computer marks it from what it read: no score to give */
/* Fix Scans: the button that starts it, in the results; and the way on when a question is done. */
.sc-fixbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--home-line-2); border-radius: 10px; background: var(--home-card); }
.sc-fixbar .lx-help { margin: 0; }
.sc-rr svg { width: 15px; height: 15px; }
.sc-fixnext { margin-top: 16px; font-size: 15px; }
.lx-acts .lt-btn svg { width: 15px; height: 15px; }
.sc-q.readq .sc-qh:has(> .sc-qt:empty) { display: none; }   /* Fix Scans: no title (whose it is doesn't matter), no score */
.sc-q.readq .sc-qh:has(> .sc-qt:empty) + .sc-pair > :first-child, .sc-q.readq .sc-qh:has(> .sc-qt:empty) + .sc-pair > .sc-pic { margin-top: 0; }
/* Fix Scans, one answer at a time: no Read Right (Okay says it), and Okay under the answer. */
.sc-fixing .sc-rr { display: none; }
.sc-okbar { display: flex; justify-content: flex-end; margin-top: 14px; }
.sc-okbar .lt-btn { min-width: 110px; }
.sc-okbar .lx-help { margin: 0; }
.sc-q > .sc-note:first-of-type, .sc-bm > .sc-note { margin: 0 0 8px; }   /* the grader's warning, at the top */
.sc-fixing .sc-q > .sc-note { margin-top: 0; }
.sc-fixing .sc-q { padding: 0; border: 0; background: transparent; }   /* one answer at a time: no box around it */
/* An answer's edit history (who changed what, when), folded under its last change. */
.sc-hist { margin: 8px 0 0; font-size: 13px; color: var(--home-ink-3); }
.sc-hist summary { cursor: pointer; width: fit-content; list-style: none; }
.sc-hist summary::-webkit-details-marker { display: none; }
.sc-hist summary::after { content: " ▾"; font-size: 11px; }
.sc-hist[open] summary::after { content: " ▴"; }
.sc-hist summary:hover { color: var(--home-ink); }
.sc-hist ol { display: grid; gap: 4px; margin: 8px 0 0; padding: 8px 12px; list-style: none; border-left: 2px solid var(--home-line); }
.sc-hist li { display: grid; grid-template-columns: max-content max-content minmax(0, 1fr); gap: 12px; color: var(--home-ink-2); }
.sc-hist-w { white-space: nowrap; }
.sc-hist li b { font-weight: 600; color: var(--home-ink); }
.sc-hist-w { font-variant-numeric: tabular-nums; color: var(--home-ink-3); }
@media (max-width: 640px) { .sc-hist li { grid-template-columns: 1fr; gap: 0; } }

/* Scans, in an evaluation's Scripts (Grades): under the script's PDFs, led by a word, not a heading of its own. */
.sc-embed .sc-lead { margin-top: 18px; }
.sc-embed .sc-lead b { color: var(--ink, inherit); font-weight: 600; }

/* Scans on an evaluation, as Crowdmark: how many booklets are in of how many wrote it, a meter, what needs a look. */
.sc-meter-card { margin: 12px 0 12px; padding: 16px 18px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--field, #fff); }
.sc-mc-top { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; row-gap: 4px; }
.sc-mc-n { font-family: var(--font-serif, Georgia, serif); font-size: 30px; line-height: 1; color: var(--ink-3); }
.sc-mc-n b { font-weight: 400; color: var(--ink); }
.sc-mc-l { grid-column: 1; grid-row: 2; font-size: 13.5px; color: var(--ink-3); }   /* under the count */
.sc-mc-job { grid-column: 2; grid-row: 1 / 3; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.sc-meter { height: 8px; margin: 12px 0 2px; border-radius: 99px; background: var(--line); overflow: hidden; }
.sc-meter > i { display: block; height: 100%; border-radius: inherit; background: var(--home-ok, #2f8f5b); transition: width .4s ease; }
.sc-mc-sub { margin: 0; font-size: 13px; color: var(--ink-3); }
.sc-looks { margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2, var(--ink)); }
.sc-looks li { position: relative; padding-left: 16px; }
.sc-looks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--warn, #c99a06); }
.sc-acts { justify-content: flex-start; }
.sc-filelist { margin-top: 12px; font-size: 13.5px; }
.sc-filelist > summary { cursor: pointer; color: var(--ink-3); width: fit-content; }
.sc-filelist > summary:hover { color: var(--ink); }
.sc-filelist .sc-files { margin-top: 8px; }
.sc-fl-acts { margin-top: 8px; }
.lt-link.danger { color: var(--danger, #b42318); }

/* Grade's questions: a question's parts, (a), (b)…, under it, indented, joined to it by a line. */
.sc-qgroup .sc-qg-h { cursor: default; }
.sc-dc .sc-sub { padding-left: 34px; }
.sc-dc .sc-sub .lt-rq-st { position: relative; }
.sc-dc .sc-sub::before { content: ""; position: absolute; left: 31px; top: 0; bottom: 0; border-left: 2px solid var(--line); }
.sc-dc .sc-r.sc-sub, .sc-dc .sc-qgroup { position: relative; }
.sc-qgroup + .sc-sub, .sc-sub + .sc-sub { border-top-style: dashed; }
.sc-part { font-family: var(--font-serif, Georgia, serif); }

/* An evaluation's Scans: its questions (or booklets) under the buttons, scrolling in their own box; greyed out, and
   not opening, until there are scans. */
.sc-qlist { margin-top: 14px; }
.sc-qlist .sc-bybar { margin: 0 0 8px; }
.sc-qlist .dc-threads { max-height: 340px; overflow-y: auto; overscroll-behavior: contain; }
.sc-qlist.off .dc-t:not(.sc-scan-row) > :not(.sc-graders) { opacity: .55; }   /* Booklets Scanned opens before any scans: it's where they're uploaded */
.sc-qlist.off .dc-t-b { cursor: default; }
.sc-qlist.off .dc-t-b:hover .dc-t-title { text-decoration: none; }
.sc-qlist .hb.lt-dc { border: 0; padding: 0; margin: 0; background: none; box-shadow: none; }
.sc-qlist .sc-dc .dc-head { margin-top: 0; }

/* The Scans steps: rows like the script's row above them (an icon, a bold line, a gray line under it), each with a
   thin bar under its text and its button on the right; the icon goes green once the step is all done. */
.sc-steps { display: grid; gap: 6px; margin: 6px 0 8px; }
.sc-step { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--field); font: 14px var(--font-ui); color: var(--ink); }
.sc-step > svg { flex: none; width: 18px; height: 18px; color: var(--ink-3); }
.sc-step.done > svg { color: var(--home-ok, #2f8f5b); }
.sc-st-t { flex: 1; display: grid; gap: 2px; min-width: 0; }
.sc-st-h b { font-weight: 600; font-variant-numeric: tabular-nums; }
.sc-st-t small { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.sc-st-t small .sc-spin { width: 12px; height: 12px; }
.sc-st-t .sc-meter { height: 4px; margin: 5px 0 1px; max-width: 320px; }
.sc-st-b { display: flex; gap: 8px; flex: none; }
.sc-step .sc-st-b .lt-btn { height: 32px !important; min-height: 32px; padding: 0 12px !important; font-size: 13px !important; }
.sc-steps + .sc-looks { margin: 0 0 8px; padding: 0; border: 0; }

/* Booklet Matching: Skip beside Okay; a student who has a booklet already, greyed out in the list. */
.sc-okbar .lt-link { margin-right: 14px; align-self: center; }
option.sc-taken { color: var(--ink-3); }

/* Scripts and Scans: its two buttons (the script, Upload Scans), on the left; the scanned row first in the list. */
.sc-top, .tf-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; margin: 6px 0 4px; }
.tf-acts .lt-btn svg, .sc-top .lt-btn svg { width: 16px; height: 16px; }
.sc-scan-row .dc-t-meta .sc-spin { width: 11px; height: 11px; display: inline-block; vertical-align: -1px; }

/* Booklet Matching: the student list on the left of Okay's row. */
.sc-mbar { align-items: center; gap: 8px; }
.sc-mbar select { height: 38px; max-width: 60%; padding: 0 10px; border-radius: 9px; border: 1px solid var(--home-line-2, var(--line)); background: var(--field); font: 14px var(--font-ui); color: var(--ink); }
.sc-mbar .spacer { flex: 1; }
.lt-req-meta .sc-spin { width: 11px; height: 11px; display: inline-block; vertical-align: -1px; }
.sc-book .sc-fl-acts { margin-top: 10px; }
.sc-qt:empty { display: none; }
.sc-ubar { align-items: center; gap: 8px; }
.sc-ubar .spacer { flex: 1; }
.sc-ubar .lt-link { margin-right: 0; }
/* Booklet Matching: the note and the cover, on the page (no card around them). */
.sc-mcard { display: grid; gap: 10px; margin-top: 12px; }
.sc-mcard .sc-pic { margin: 0; }
.sc-reading { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2, var(--ink)); }
.sc-reading .sc-spin { width: 11px; height: 11px; }
/* The little pie by an "x / y": how much is done; green and full when it all is. */
.sc-pie { width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; flex: none; color: var(--ink-3); }
.sc-pie .o { fill: none; stroke: currentColor; stroke-width: 1.2; opacity: .55; }
.sc-pie path, .sc-pie circle:not(.o) { fill: currentColor; }
.sc-pie.full { color: var(--home-ok, #2f8f5b); }
.sc-pie.full .o { opacity: 1; }

/* Assign Graders: the list stops scrolling (so the dropdowns aren't cut off), and each question row has Lectern's
   tick-box dropdown of the team on its right. */
.sc-graded { display: flex; align-items: center; }
.sc-graded > .dc-t-b { flex: 1; min-width: 0; }
.sc-gpk.up .pk-pop { top: auto; bottom: calc(100% + 4px); }   /* near the bottom of the list: opens upwards */
.sc-gpk { flex: none; width: 250px; margin: 0 12px 0 8px; }
.sc-qlist .dc-head .sc-assign { margin-left: auto; font-size: 13px; }
.sc-qlist .dc-head { display: flex; align-items: baseline; }
.sc-gpk { align-self: center; }
.sc-gpk.pk { z-index: 1; }
.sc-gpk.pk:has(.pk-pop) { z-index: 40; }
/* The Grading list in the evaluation's Marks section: part of it, so no rule of its own above it. */
.sc-listslot .dc-head { margin-top: 14px; padding-top: 0; border-top: 0; }
.sc-listslot .sc-ahead { justify-content: flex-end; margin: 6px 0 6px; }   /* just Assign Graders, on the right */
.sc-listslot .sc-qlist { margin-top: 10px; }
/* A question the computer marks, a booklet at a time (as Crowdmark): the answer on a soft panel, headed by its booklet
   (number, how it was read, arrows), Okay under it; every booklet's number under that, to go to any of them. */
.sc-gr { display: grid; gap: 22px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--home-line); }
.sc-stage { display: flex; flex-direction: column; min-width: 0; }   /* no box: the booklet, left-aligned on the page */
.sc-stage .sc-qs { flex: 1; display: flex; }
.sc-stage .sc-q { flex: 1; display: flex; flex-direction: column; }
.sc-stage .sc-q > .sc-note { align-self: flex-start; margin: 0 0 16px; }
/* The scan and what it was read as: the same piece of the page at the same size, one over the other, each with
   its caption (the captions are the pair's own ::before and ::after, so nothing moves inside the answers). */
.sc-stage .sc-pair { display: grid; grid-template-columns: auto auto auto; grid-template-rows: auto auto; column-gap: 18px; row-gap: 5px; align-items: center; justify-content: start; width: fit-content; max-width: 100%; margin: 0; }
.sc-stage .sc-pair::before, .sc-stage .sc-pair::after { font-size: 12.5px; color: var(--home-ink-3); align-self: end; }
.sc-stage .sc-pair::before { content: "Their answer"; grid-area: 1 / 1; }
.sc-stage .sc-pair > .sc-pic { grid-area: 2 / 1; }
.sc-stage .sc-pair > .sc-arrow { grid-area: 2 / 2; }
.sc-stage .sc-pair::after { content: "Read as"; grid-area: 1 / 3; }
.sc-stage .sc-pair > :not(.sc-pic):not(.sc-arrow) { grid-area: 2 / 3; margin: 0; }
.sc-stage .sc-pair > .sc-pic, .sc-stage .sc-pair > .dz-one > .pp, .sc-stage .sc-pair > .pp, .sc-stage .sc-pair > .dz { margin-top: 0; }   /* the caption, just over its box */
.sc-arrow { display: grid; place-items: center; color: var(--home-ink-3); }
.sc-arrow svg { width: 44px; height: 22px; }
/* Too wide across: one over the other (no arrow). */
.sc-stage .sc-pair.stack { grid-template-columns: auto; grid-template-rows: none; }
.sc-stage .sc-pair.stack::before { grid-area: auto; }
.sc-stage .sc-pair.stack > * , .sc-stage .sc-pair.stack::after { grid-area: auto !important; }
.sc-stage .sc-pair.stack::before { order: 0; } .sc-stage .sc-pair.stack > .sc-pic { order: 1; } .sc-stage .sc-pair.stack > .sc-arrow { display: none; }
.sc-stage .sc-pair.stack::after { order: 3; margin-top: 14px; } .sc-stage .sc-pair.stack > :not(.sc-pic):not(.sc-arrow) { order: 4; }
.sc-stage .sc-pic { width: 100%; max-height: none; border: 1px solid var(--home-line); border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .06); }
.sc-stage .pp { margin: 0; border-color: var(--home-line); border-radius: 10px; box-shadow: 0 1px 3px rgb(0 0 0 / .06); }
.sc-stage .sc-hist, .sc-stage .sc-qa, .sc-stage .sc-bls { width: min(100%, 600px); }
.sc-gr-how { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin: 0 0 14px; font-size: 13px; color: var(--home-ink-3); }
.sc-gr-how svg { width: 15px; height: 15px; }
.sc-stage.st-done .sc-gr-how svg { color: #2f8f5b; }
.sc-stage.st-check .sc-gr-how { color: #9a5b00; }
.sc-stage.st-missing .sc-gr-how { color: var(--danger); }
.sc-gr-bk { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sc-gr-no h3 { margin: 0; font: 400 24px/1.15 var(--font-serif); color: var(--home-ink); }
.sc-gr-no h3 span { font: 400 14px var(--font-ui); color: var(--home-ink-3); }
.sc-gr-no .sc-gr-how { margin: 4px 0 0; }
.sc-gr-arrows { display: flex; align-items: center; gap: 4px; }
.sc-gr-arrows .lt-btn { margin-right: 2px; }
.sc-gr-arrows .lt-btn + .lx-ic { margin-left: 8px; }   /* the arrows, always in the same place at the right */
.sc-gr-arrows .lt-btn.primary { min-width: 80px; justify-content: center; }
.sc-gr-arrows .lx-ic { width: 32px; height: 32px; border-color: var(--home-line-2); background: var(--home-card); color: var(--home-ink-2); }
.sc-gr-arrows .lx-ic:hover:not(:disabled) { border-color: var(--home-ink-3); background: var(--home-card); color: var(--home-ink); }
.sc-gr-arrows .lx-ic:disabled { opacity: .35; cursor: default; }
.sc-stage .sc-q > .sc-note { display: none; }   /* the grader's warning: under the booklet's number instead */
/* Every booklet, as the gradebook shows a group's evaluations (.grp-viz): small rounded squares, solid when read,
   a dashed outline when it's still to check; its number in each. */
.sc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 3px; margin: 12px -3px 0; }
.sc-chip { width: 28px; height: 28px; padding: 0; border: 2px solid #6fae87; border-radius: 6px; background: #8fc3a2; font: 600 11.5px var(--font-ui); font-variant-numeric: tabular-nums; color: #fff; cursor: pointer; }
.sc-chip.check { background: transparent; border: 2px dashed color-mix(in srgb, #c99a06 60%, #b4b6ba); color: #8a6a00; }
.sc-chip.missing { background: transparent; border: 2px dashed #e3a49a; color: #9b2c1f; }
.sc-chip.on, .sc-chip.on.check, .sc-chip.on.missing { border: 2px solid #c99a06; background: #e8c34f; color: #4d3a00; }   /* the one you're on: filled yellow */
.sc-chip:hover:not(.on) { filter: brightness(.95); }
/* Many booklets (over 40): the group row's small squares, without their numbers (hover one for it). */
.sc-chips.many { gap: 4px; }
.sc-chips.many .sc-chip { width: 16px; height: 16px; border-radius: 4px; font-size: 0; }
.sc-chips.many .sc-chip { border-width: 1.5px; }
.sc-fixing .sc-okbar { display: none; }
.sc-fixing > .lt-req-meta { margin-top: 2px; }
.sc-gr-meta { display: flex; align-items: center; gap: 7px; }
.sc-gr-act { display: flex; margin-top: 18px; }
.sc-gr-act .lt-btn { min-width: 120px; justify-content: center; }
@media (max-width: 760px) { .sc-gr { grid-template-columns: 1fr; } 