/* The selected A palette, adapted to a dark-first study workspace. */
:root {
  color-scheme: dark;
  --bg: #111a17;
  --sidebar: #101814;
  --surface: #18221d;
  --surface-raised: #1e2a23;
  --surface-hover: #223028;
  --text: #eeeede;
  --muted: #a4afa5;
  --quiet: #89988d;
  --line: #2c382f;
  --accent: #bed9a6;
  --accent-text: #1c3324;
  --accent-soft: #293c2d;
  --hero: #1d3025;
  --hero-line: #445f43;
  --gold: #ddc58e;
  --danger: #efaaa0;
  --shadow: 0 24px 80px #0006;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f3ed;
  --sidebar: #ebece4;
  --surface: #fdfdf8;
  --surface-raised: #f0f2e9;
  --surface-hover: #e8eddf;
  --text: #243d2f;
  --muted: #536454;
  --quiet: #5c6d5e;
  --line: #d9dfd1;
  --accent: #285b42;
  --accent-text: #fff;
  --accent-soft: #e1ead7;
  --hero: #e4ebd8;
  --hero-line: #9eaf8f;
  --gold: #77531a;
  --danger: #a43d2c;
  --shadow: 0 24px 80px #243d2f20;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
button { border: 0; background: none; }
button:disabled { opacity: .55; cursor: wait; }
button:active:not(:disabled), .button:active { transform: translateY(1px); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { line-height: 1.65; text-wrap: pretty; }
button, input, textarea, select { min-width: 0; }
svg { flex-shrink: 0; }
.icon { width: 20px; height: 20px; vertical-align: middle; flex-shrink: 0; }
.sr-only { width: 1px; height: 1px; position: absolute; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; background: var(--accent); color: var(--accent-text); padding: 14px 22px; border-radius: 6px; }
.skip-link:not(:focus) { clip-path: inset(50%); }
.skip-link:focus { top: 12px; }
#app { display: flex; min-height: 100vh; }
.sidebar { width: 234px; flex-shrink: 0; position: fixed; inset: 0 auto 0 0; background: var(--sidebar); padding: 38px 23px 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); z-index: 20; }
.brand { display: flex; gap: 12px; align-items: center; width: fit-content; }
.brand img { border-radius: 10px; width: 38px; height: 38px; }
.brand > span { font-family: Georgia, serif; font-size: 22px; font-weight: 400; line-height: 1.1; letter-spacing: -.6px; }
.brand-second { display: block; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; margin-top: 5px; }
.sidebar nav { margin-top: 48px; }
.nav-item { display: flex; align-items: center; gap: 13px; padding: 14px 14px; border-radius: 7px; color: var(--muted); font-size: 13px; margin-bottom: 5px; transition: background .18s, color .18s; }
.nav-item .icon { width: 18px; height: 18px; }
.nav-item:hover { color: var(--text); background: var(--surface); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 550; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 46px; border-radius: 7px; padding: 12px 20px; font-weight: 600; font-size: 12px; line-height: 1.5; border: 1px solid transparent; transition: background .18s, transform .18s, border-color .18s; }
.button .icon { width: 17px; height: 17px; }
.primary { background: var(--accent); color: var(--accent-text); }
.primary:hover { background: color-mix(in srgb, var(--accent), white 12%); }
.secondary { border-color: var(--line); background: var(--surface-raised); color: var(--text); }
.secondary:hover { background: var(--surface-hover); border-color: var(--quiet); }
.sidebar-bottom { margin-top: auto; }
.profile { display: flex; gap: 11px; align-items: center; border-top: 1px solid var(--line); margin-top: 16px; padding: 24px 6px; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #c9b69b; color: #263328; font-size: 12px; font-weight: 700; }
.profile strong { display: block; font-size: 12px; font-weight: 550; }
.profile small { display: block; color: var(--quiet); font-size: 12px; margin-top: 4px; }
.workspace { margin-left: 234px; min-width: 0; flex: 1; }
.topbar { height: 84px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 42px; }
.breadcrumbs { display: flex; align-items: center; gap: 13px; font-size: 12px; color: var(--quiet); }
.breadcrumbs .icon { width: 12px; height: 12px; }
.breadcrumbs strong { color: var(--muted); font-weight: 450; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.role-switch { display: flex; border: 1px solid var(--line); border-radius: 6px; padding: 3px; gap: 3px; }
.role-switch a { min-height: 30px; display: grid; place-items: center; padding: 5px 13px; font-size: 12px; border-radius: 3px; color: var(--muted); }
.role-switch a:hover { background: var(--surface-hover); }
.role-switch a[aria-current] { background: var(--surface-raised); color: var(--text); }
.icon-button { min-width: 36px; min-height: 36px; display: inline-grid; place-items: center; border-radius: 6px; color: var(--muted); }
.icon-button:hover { background: var(--surface-hover); color: var(--text); }
.icon-button .icon { width: 17px; height: 17px; }
main { max-width: 1450px; padding: 38px 42px 48px; margin: 0 auto; outline: none; }
.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: 1.6px; line-height: 1.6; color: var(--quiet); }
.greeting { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.greeting h1 { font-size: 26px; font-weight: 450; letter-spacing: -.85px; }
.soft { color: var(--accent); }
.stats-strip { display: flex; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); gap: 28px; margin-bottom: 32px; }
.stat { display: flex; gap: 9px; align-items: center; position: relative; }
.stat + .stat { padding-left: 26px; border-left: 1px solid var(--line); }
.stat > .icon { width: 15px; height: 15px; color: var(--quiet); margin-right: 2px; }
.stat > strong { font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat > span { color: var(--muted); font-size: 12px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 28px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading h2 { font-size: 17px; font-weight: 500; letter-spacing: -.3px; }
.section-heading p { font-size: 12px; color: var(--quiet); margin-top: 7px; }
.subtle-count { display: inline-grid; place-items: center; font-size: 12px; color: var(--muted); width: 21px; height: 19px; border: 1px solid var(--line); border-radius: 5px; vertical-align: middle; margin-left: 8px; }
.text-link, .text-button { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 12px; font-weight: 500; min-height: 36px; padding: 4px 0; }
.text-link:hover, .text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link .icon, .text-button .icon { width: 13px; height: 13px; }
.lecture-list { margin-top: 15px; }
.lecture-row { width: calc(100% + 24px); margin-inline: -12px; text-align: left; display: flex; align-items: center; gap: 15px; padding: 19px 12px; border-bottom: 1px solid var(--line); border-radius: 6px; transition: background .18s; }
.lecture-row:hover, .lecture-row:focus-visible { background: var(--surface-hover); box-shadow: inset 0 0 0 1px var(--line); }
.course-art { display: grid; place-items: center; width: 46px; height: 53px; border-radius: 8px; background: #2c3e2c; color: #b9c99c; position: relative; overflow: hidden; flex-shrink: 0; }
.course-art::after { content: ''; position: absolute; width: 47px; height: 47px; border: 1px solid currentColor; border-radius: 50%; opacity: .15; right: -22px; top: -14px; }
.course-art .icon { width: 20px; height: 20px; }
.course-art.lavender { background: #343339; color: #beb4d1; }
.course-art.ochre { background: #3c3529; color: #d7bd89; }
[data-theme="light"] .course-art { background: #e2ead9; color: #47663a; }
[data-theme="light"] .course-art.lavender { background: #e9e4f0; color: #69567d; }
[data-theme="light"] .course-art.ochre { background: #f0e7d5; color: #80602e; }
.lecture-title { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 6px; }
.course-code { color: var(--quiet); font-size: 12px; letter-spacing: .7px; }
.course-code > span { margin: 0 7px; }
.lecture-title strong { font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.lecture-meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--quiet); font-size: 12px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 5px; color: var(--muted); font-size: 12px; white-space: nowrap; line-height: 1.6; }
.badge .icon { width: 10px; height: 10px; }
.badge.ready { color: #b6d59f; background: #293b29; }
.badge.progress { color: #decc9c; background: #393323; }
.badge.received { color: #acbeb7; background: #25342d; }
.badge.attention { color: #e0ba9c; background: #3d3028; }
[data-theme="light"] .badge.ready { color: #355a2a; background: #e1ebd6; }
[data-theme="light"] .badge.progress { color: #6f5517; background: #f1e8cc; }
[data-theme="light"] .badge.received { color: #395c4f; background: #e3ece7; }
[data-theme="light"] .badge.attention { color: #7a4a25; background: #f3e4d5; }
.row-arrow { width: 13px; height: 13px; color: var(--quiet); margin-left: 2px; }
.right-rail { padding-top: 1px; }
.ready-callout { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 22px; position: relative; overflow: hidden; }
.callout-icon { width: 31px; height: 31px; background: var(--accent-soft); color: var(--accent); border-radius: 7px; display: grid; place-items: center; margin-bottom: 20px; }
.callout-icon .icon { width: 17px; height: 17px; }
.ready-callout h3 { font-family: Georgia, serif; font-size: 24px; font-weight: 400; letter-spacing: -.5px; line-height: 1.2; margin: 10px 0 12px; }
.ready-callout p { font-size: 12px; color: var(--muted); }
.ready-callout .text-link { margin-top: 7px; }
.help-card { display: flex; gap: 11px; align-items: center; padding: 20px 2px 0; }
.help-card > .icon { width: 17px; height: 17px; color: var(--quiet); }
.help-card > .icon:last-child { width: 12px; height: 12px; margin-left: auto; }
.help-card strong { font-size: 12px; font-weight: 500; display: block; }
.help-card span { color: var(--quiet); font-size: 12px; display: block; margin-top: 5px; }
.help-card:hover strong { color: var(--accent); }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 35px; }
.page-heading h1 { font-family: Georgia, serif; font-size: clamp(28px, 3.1vw, 43px); font-weight: 400; letter-spacing: -1px; margin: 0; line-height: 1.15; }
.page-description { margin-top: 12px; color: var(--muted); font-size: 12px; max-width: 570px; }
.page-heading > .button { flex-shrink: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.queue-panel { padding: 8px 24px 20px; }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.filter-tabs { display: flex; gap: 22px; overflow-x: auto; }
.filter-tabs a { padding: 18px 0; color: var(--quiet); font-size: 12px; flex-shrink: 0; border-bottom: 2px solid transparent; }
.filter-tabs a:hover { color: var(--text); }
.filter-tabs a[aria-current] { color: var(--accent); border-color: var(--accent); }
.search-field { display: flex; align-items: center; gap: 8px; flex-shrink: 1; min-width: 135px; max-width: 200px; }
.search-field .icon { width: 15px; height: 15px; color: var(--quiet); }
.search-field input { width: 100%; border: 0; background: none; padding: 10px 0; font-size: 12px; }
input, textarea, select { color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 12px 13px; max-width: 100%; }
input::placeholder, textarea::placeholder { color: var(--quiet); opacity: 1; }
.list-context { display: flex; justify-content: space-between; gap: 12px; color: var(--quiet); font-size: 12px; margin-top: 22px; }
.queue-panel .lecture-list { margin-top: 5px; }
.queue-panel .lecture-row { padding: 22px 12px; }
.queue-panel .lecture-row:last-child { border-bottom: 0; }
.queue-panel .lecture-title strong { font-size: 14px; }
.queue-panel .badge { font-size: 12px; }
.queue-panel .lecture-meta { font-size: 12px; }
.queue-panel .course-code { font-size: 12px; }
.inline-note { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; margin-top: 22px; line-height: 1.7; }
.inline-note .icon { width: 15px; height: 15px; }
.empty-state { text-align: center; padding: 65px 20px; }
.empty-state > .icon { width: 34px; height: 34px; color: var(--quiet); margin-bottom: 20px; }
.empty-state h3, .empty-state h2 { font-family: Georgia, serif; font-size: 25px; font-weight: 400; margin-bottom: 12px; }
.empty-state p { color: var(--muted); font-size: 12px; margin-bottom: 20px; }
.quiet-text { color: var(--muted); font-size: 12px; line-height: 1.7; }
.full-width { width: 100%; justify-content: space-between; }
.submission-layout { display: grid; grid-template-columns: minmax(0, 1fr) 265px; gap: 30px; align-items: start; }
.form-stepper { display: flex; align-items: center; gap: 15px; color: var(--quiet); padding: 0 1px 24px; }
.form-stepper > span { display: flex; gap: 8px; align-items: center; font-size: 12px; white-space: nowrap; }
.form-stepper b { border: 1px solid var(--line); width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 500; }
.form-stepper .current { color: var(--accent); }
.form-stepper .current b { border-color: var(--accent); background: var(--accent-soft); }
.form-stepper i { width: 30px; height: 1px; background: var(--line); }
.lecture-form { padding: 24px; margin-bottom: 18px; }
.form-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; gap: 10px; }
.form-card-header > div { display: flex; align-items: center; gap: 12px; }
.number-tag { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--line); border-radius: 5px; padding: 7px; font-size: 12px; font-variant-numeric: tabular-nums; }
.form-card-header h2 { font-size: 15px; font-weight: 500; }
.form-fields { display: grid; grid-template-columns: 1fr 2fr; gap: 18px; }
.field label, .field-label, form > label { display: flex; flex-wrap: wrap; gap: 7px; align-items: baseline; font-size: 12px; margin-bottom: 10px; }
.field label > span, .field-label > span { color: var(--quiet); font-size: 12px; margin-left: auto; }
.field input, .field select { width: 100%; }
.field input { font-size: 12px; }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.upload-field { min-width: 0; }
.drop-zone { border: 1px dashed var(--hero-line); background: var(--bg); border-radius: 7px; padding: 24px 12px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; min-height: 182px; gap: 9px; }
.drop-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; }
.drop-zone:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.drop-zone:hover, .drop-zone.dragging { background: var(--accent-soft); border-color: var(--accent); }
.drop-zone > strong { font-size: 12px; font-weight: 500; max-width: 100%; overflow-wrap: anywhere; pointer-events: none; }
.drop-zone > span:not(.upload-icon) { font-size: 12px; color: var(--quiet); pointer-events: none; }
.drop-zone > small { font-size: 12px; color: var(--quiet); pointer-events: none; }
.upload-icon { display: grid; place-items: center; width: 32px; height: 32px; color: var(--accent); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 3px; }
.upload-icon .icon { width: 17px; height: 17px; }
.drop-zone.has-file { border-style: solid; border-color: var(--hero-line); }
.drop-zone.invalid, [aria-invalid="true"] { border-color: var(--danger); }
.remove-file { color: var(--muted); font-size: 12px; }
.field-error { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; line-height: 1.6; color: var(--danger); margin-top: 8px; }
.field-error .icon { width: 14px; height: 14px; margin-top: 1px; }
.note-details { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.note-details summary { cursor: pointer; font-size: 12px; color: var(--muted); display: flex; gap: 7px; align-items: center; min-height: 30px; list-style: none; }
.note-details summary::-webkit-details-marker { display: none; }
.note-details summary .icon { width: 14px; height: 14px; }
.note-details summary > span { font-size: 12px; margin-left: auto; color: var(--quiet); }
.note-details textarea { width: 100%; margin-top: 12px; font-size: 12px; }
textarea { resize: vertical; line-height: 1.7; }
.add-lecture { display: flex; align-items: center; gap: 9px; justify-content: center; width: 100%; padding: 18px; border: 1px dashed var(--hero-line); border-radius: 7px; font-size: 12px; color: var(--accent); }
.add-lecture:hover { background: var(--accent-soft); }
.add-lecture .icon { width: 16px; height: 16px; }
.add-lecture span { color: var(--quiet); font-size: 12px; margin-left: 9px; }
.form-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 26px; }
.form-bottom > span { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--quiet); max-width: 220px; line-height: 1.6; }
.form-bottom > span .icon { width: 13px; height: 13px; }
.summary-card { padding: 25px; margin-top: 47px; }
.summary-card h2 { font-size: 19px; font-weight: 500; }
.summary-total { margin: 25px 0; padding-bottom: 22px; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; }
.summary-total strong { font-family: Georgia, serif; font-size: 47px; font-weight: 400; letter-spacing: -2px; color: var(--accent); }
.summary-total > span { color: var(--muted); font-size: 12px; }
.summary-line { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 18px; }
.summary-line .icon { width: 15px; height: 15px; color: var(--quiet); }
hr { border: 0; border-top: 1px solid var(--line); margin: 25px 0; }
.summary-card h3 { font-family: Georgia, serif; font-size: 23px; font-weight: 400; line-height: 1.3; margin-bottom: 13px; }
.summary-card p { font-size: 12px; color: var(--muted); }
.privacy-note { display: flex; gap: 12px; margin: 24px 10px; }
.privacy-note .icon { width: 16px; height: 16px; color: var(--quiet); margin-top: 3px; }
.privacy-note p { font-size: 12px; color: var(--quiet); }
.privacy-note strong { color: var(--muted); font-weight: 500; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.how-card { padding: 28px; }
.how-icon { width: 42px; height: 42px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border-radius: 9px; }
.how-number { color: var(--quiet); font-family: Georgia, serif; font-size: 24px; }
.how-card h2 { font-family: Georgia, serif; font-size: 27px; font-weight: 400; margin: 32px 0 18px; line-height: 1.2; }
.how-card p { color: var(--muted); font-size: 12px; }
.help-bottom { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 30px; margin-top: 30px; }
.help-bottom h2 { font-family: Georgia, serif; font-size: 27px; font-weight: 400; margin: 10px 0 15px; }
.help-bottom p:not(.eyebrow) { color: var(--muted); font-size: 12px; max-width: 630px; }
.help-bottom .button { flex-shrink: 0; }
dialog { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; box-shadow: var(--shadow); overscroll-behavior: contain; }
dialog::backdrop { background: #030b08b8; backdrop-filter: blur(6px); }
dialog[open] { animation: modal-in .2s ease-out; }
.modal-close { position: sticky; top: 0; display: flex; justify-content: flex-end; background: var(--surface); padding: 12px 12px 0; z-index: 2; }
.dialog-body { padding: 4px 34px 34px; }
.dialog-body h2 { font-family: Georgia, serif; font-size: 36px; line-height: 1.16; font-weight: 400; letter-spacing: -1px; margin: 12px 0 16px; overflow-wrap: anywhere; }
.dialog-body > p:not(.eyebrow) { color: var(--muted); font-size: 12px; }
.dialog-intro { margin-bottom: 25px; }
.dialog-symbol { color: var(--accent); display: block; margin: 0 0 20px; }
.dialog-symbol > .icon { width: 36px; height: 36px; }
.plain-list { list-style: none; margin: 20px 0; padding: 0; }
.plain-list li { display: flex; gap: 10px; margin: 15px 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.plain-list .icon { width: 15px; height: 15px; color: var(--accent); }
.dialog-body > .button { margin-top: 23px; }
.job-subheading { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; }
.job-subheading .badge { font-size: 12px; }
.job-subheading > span:last-child { color: var(--quiet); font-size: 12px; }
.detail-label { font-size: 12px; color: var(--muted); letter-spacing: .3px; font-weight: 500; margin: 25px 0 13px; }
.detail-label > span { color: var(--quiet); font-size: 12px; margin-left: 8px; }
.asset { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 14px; margin-top: 8px; }
.asset > .icon { color: var(--accent); width: 19px; height: 19px; }
.asset > span { min-width: 0; }
.asset strong { display: block; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.asset small { color: var(--quiet); display: block; font-size: 12px; margin-top: 5px; }
.student-note { font-size: 12px; background: var(--surface-raised); border-radius: 7px; padding: 15px; margin-top: 16px; }
.student-note strong { font-size: 12px; font-weight: 500; }
.student-note p { color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 7px; }
.delivery-box { background: var(--accent-soft); border: 1px solid var(--hero-line); border-radius: 8px; padding: 18px; margin: 25px 0; }
.delivery-box h3 { font-size: 13px; font-weight: 500; }
.delivery-box .section-heading > span { color: var(--muted); font-size: 12px; }
.delivery-box > p { font-size: 12px; color: var(--muted); margin: 14px 0; }
.delivery-box > .button { margin: 5px 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; position: relative; gap: 14px; padding: 8px 0 18px; }
.timeline li::before { content: ''; height: 100%; width: 1px; background: var(--line); position: absolute; top: 16px; left: 4px; }
.timeline li:last-child::before { display: none; }
.timeline li > span { width: 9px; height: 9px; border: 1px solid var(--accent); border-radius: 50%; margin-top: 2px; z-index: 1; background: var(--surface); }
.timeline strong { display: block; font-size: 12px; font-weight: 450; }
.timeline small { display: block; font-size: 12px; color: var(--quiet); margin-top: 7px; }
.dialog-footer-note { display: flex; gap: 9px; align-items: center; font-size: 12px; color: var(--quiet); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 15px; line-height: 1.6; }
.dialog-footer-note .icon { width: 14px; height: 14px; }
.clarification { display: flex; gap: 12px; padding: 17px; background: var(--accent-soft); color: var(--accent); border-radius: 7px; margin: 22px 0; }
.clarification strong { font-size: 12px; font-weight: 500; }
.clarification p { font-size: 12px; margin-top: 7px; color: var(--muted); }
#request-information-form label, #clarification-form label { font-size: 12px; margin: 20px 0 8px; display: block; }
#request-information-form textarea, #clarification-form textarea { width: 100%; font-size: 12px; }
#request-information-form .button, #clarification-form .button { margin-top: 12px; }
.admin-controls form input[type="file"] { width: 100%; font-size: 12px; }
input[type="file"]::file-selector-button { padding: 8px 12px; border: 0; border-radius: 4px; color: var(--text); background: var(--surface-raised); margin-right: 12px; cursor: pointer; }
.admin-controls > h3:not(.detail-label) { font-size: 15px; font-weight: 500; margin-bottom: 9px; }
.review-lecture { padding: 18px; border: 1px solid var(--line); border-radius: 8px; margin: 16px 0; }
.review-lecture h3 { font-size: 17px; font-weight: 500; margin: 8px 0 15px; overflow-wrap: anywhere; }
.review-lecture > p { font-size: 12px; color: var(--muted); }
.modal-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 27px; }
.toast { position: fixed; bottom: 25px; left: calc(50% + 117px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 12px; background: var(--text); color: var(--bg); padding: 11px 12px 11px 18px; border-radius: 9px; box-shadow: var(--shadow); max-width: min(600px, calc(100vw - 40px)); width: max-content; z-index: 80; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast > .icon { width: 16px; height: 16px; }
.toast > span { font-size: 12px; line-height: 1.6; }
.toast button { color: inherit; font-size: 12px; }
.toast button[data-action="undo"] { text-decoration: underline; padding: 8px; }
.toast .icon-button:hover { background: #85937b30; }
@keyframes modal-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1600px) { main { padding-top: 48px; }       }
@media (max-width: 1200px) {
  .sidebar { width: 205px; padding-left: 16px; padding-right: 16px; }
  .workspace { margin-left: 205px; }
  .topbar { padding: 0 28px; }
  main { padding: 30px 28px 40px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 225px; gap: 22px; }
  .stats-strip { gap: 20px; }
  .stat + .stat { padding-left: 20px; }
  .header-actions { gap: 12px; }
  .lecture-row { gap: 11px; }
  .lecture-row .badge { font-size: 12px; padding: 5px; }
  .ready-callout { padding-left: 18px; padding-right: 18px; }
  .submission-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; }
  .lecture-form { padding: 20px; }
  .form-fields, .upload-grid { gap: 12px; }
  .add-lecture span { display: none; }
  .summary-card { padding: 20px; }
  .form-bottom { flex-wrap: wrap; }
  .form-bottom > span { max-width: none; }
  .form-bottom > .button { margin-left: auto; }
  .how-card { padding: 22px; }
  .how-card h2 { font-size: 24px; }
  .toast { left: calc(50% + 102px); }
}
@media (max-width: 1000px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .right-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
  .right-rail .help-card { padding-top: 10px; }
  .submission-layout { grid-template-columns: minmax(0, 1fr); }
  .submission-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .summary-card { margin-top: 0; }
  .submission-aside .summary-card { display: none; }
  .privacy-note { grid-column: 1 / -1; }
  .list-toolbar { flex-wrap: wrap; padding-bottom: 10px; gap: 0; }
  .search-field { flex-basis: 100%; max-width: 100%; margin-top: 5px; }
  .how-grid { grid-template-columns: 1fr; }
  .how-card h2 { margin-top: 22px; }
  .help-bottom { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .sidebar { position: relative; width: 100%; padding: 20px 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-bottom { display: none; }
  #app { display: block; }
  .brand img { width: 32px; height: 32px; }
  .brand > span { font-size: 22px; }
  .brand-second { display: inline; margin-left: 8px; }
  .sidebar nav { display: flex; margin-top: 21px; gap: 5px; justify-content: space-between; overflow-x: auto; padding-bottom: 10px; }
  .nav-item { padding: 10px 12px; font-size: 12px; flex-shrink: 0; margin-bottom: 0; gap: 7px; }
  .nav-item .icon { width: 15px; height: 15px; }
  .workspace { margin: 0; }
  .topbar { height: 65px; padding: 0 22px; }
  .header-actions { gap: 9px; }
  .role-switch a { font-size: 12px; min-height: 31px; padding-left: 12px; padding-right: 12px; }
  .breadcrumbs { font-size: 12px; gap: 6px; }
  main { padding: 28px 22px 35px; }
  .greeting h1 { font-size: 24px; }
  .greeting { margin-bottom: 25px; }
  .stats-strip { justify-content: space-between; gap: 12px; padding: 22px 0; }
  .stat { gap: 7px; }
  .stat > span { font-size: 12px; }
  .stat + .stat { padding-left: 14px; }
  .stat strong { font-size: 17px; }
  .stat .icon { width: 15px; height: 15px; }
  .dashboard-grid { gap: 28px; }
  .lecture-row { padding-top: 18px; padding-bottom: 18px; }
  .lecture-row .badge { font-size: 12px; padding: 6px 7px; }
  .lecture-title strong { font-size: 13px; }
  .course-code { font-size: 12px; }
  .lecture-meta { font-size: 12px; }
  .right-rail { grid-template-columns: 1fr 1fr; }
  .toast { left: 50%; }
  .page-heading { gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 27px; }
  .page-heading h1 { font-size: 36px; }
  .page-description { font-size: 12px; }
  .page-heading > .button { min-height: 43px; }
  .form-bottom > span { order: 2; }
  .form-bottom .button { width: 100%; }
  .form-bottom { justify-content: center; }
  .privacy-note { margin-top: 4px; }
  .form-fields { gap: 18px; }
  .upload-grid { gap: 16px; }
  .queue-panel { padding: 5px 18px 15px; }
  .filter-tabs { gap: 20px; max-width: 100%; }
  .list-toolbar { min-width: 0; }
  .list-context { font-size: 12px; }
  .queue-panel .lecture-row .badge { font-size: 12px; }
  .queue-panel .lecture-title strong { font-size: 12px; }
  .how-card h2 { font-size: 29px; }
}
@media (max-width: 520px) {
  .sidebar { padding-left: 16px; padding-right: 16px; }
  .sidebar nav { gap: 0; }
  .nav-item { padding: 10px 9px; font-size: 12px; }
  .nav-item .icon { width: 14px; height: 14px; }
  .nav-item:last-child .icon { display: none; }
  .topbar { padding: 0 18px; }
  .breadcrumbs { gap: 5px; }
  .header-actions { gap: 5px; }
  .role-switch a { padding: 4px 9px; }
  main { padding: 26px 18px 32px; }
  .eyebrow { font-size: 12px; letter-spacing: 1.4px; }
  .greeting h1 { font-size: 23px; }
  .stats-strip { gap: 8px; padding: 22px 0; margin-bottom: 28px; }
  .stat { flex-wrap: wrap; justify-content: center; gap: 6px; flex: 1; }
  .stat + .stat { padding-left: 8px; }
  .stat > span { width: 100%; text-align: center; font-size: 12px; }
  .stat strong { font-size: 19px; }
  .stat > .icon { margin: 0; }
  .section-heading h2 { font-size: 18px; }
  .section-heading p { font-size: 12px; }
  .text-link { font-size: 12px; }
  .lecture-row { display: grid; grid-template-columns: 41px minmax(0, 1fr) 12px; gap: 8px 12px; }
  .course-art { width: 41px; height: 49px; grid-row: span 2; }
  .lecture-title { gap: 6px; }
  .lecture-title strong { font-size: 13px; }
  .lecture-meta { font-size: 12px; }
  .lecture-row .badge { grid-column: 2; grid-row: 2; justify-self: start; padding: 3px 7px; font-size: 12px; }
  .lecture-row .row-arrow { grid-column: 3; grid-row: 1 / 3; }
  .right-rail { grid-template-columns: 1fr; gap: 12px; }
  .ready-callout { padding-left: 25px; padding-right: 25px; }
  .ready-callout h3 { font-size: 28px; }
  .ready-callout p { font-size: 12px; }
  .right-rail .help-card { padding-top: 12px; }
  .help-card strong { font-size: 12px; }
  .help-card span { font-size: 12px; }
  .page-heading h1 { font-size: 34px; }
  .form-fields, .upload-grid { grid-template-columns: 1fr; }
  .lecture-form { padding: 20px; }
  .form-card-header { margin-bottom: 24px; }
  .field label, .field-label { font-size: 12px; }
  .field label > span, .field-label > span { font-size: 12px; }
  .field input { min-height: 46px; }
  .drop-zone { min-height: 170px; }
  .drop-zone > strong { font-size: 12px; }
  .drop-zone > span:not(.upload-icon) { font-size: 12px; }
  .drop-zone > small { font-size: 12px; }
  .note-details summary { font-size: 12px; min-height: 40px; }
  .form-stepper { justify-content: space-between; gap: 8px; }
  .form-stepper > span { font-size: 12px; gap: 6px; }
  .form-stepper > i { width: 14px; }
  .form-stepper > span b { width: 22px; height: 22px; }
  .list-context { flex-wrap: wrap; }
  .queue-panel .lecture-title strong { font-size: 13px; }
  .queue-panel .lecture-meta { font-size: 12px; }
  .how-card { padding: 25px; }
  .help-bottom { padding: 25px; }
  dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 12px; }
  .dialog-body { padding: 4px 23px 26px; }
  .dialog-body h2 { font-size: 32px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .button { width: 100%; }
  .job-subheading { gap: 10px; flex-wrap: wrap; }
  .asset { padding: 12px; }
  .asset small { font-size: 12px; }
  .asset strong { font-size: 12px; }
  .review-lecture { padding: 14px; }
  .toast { bottom: 16px; gap: 8px; padding-left: 13px; }
  .toast > span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) { dialog::backdrop { backdrop-filter: none; background: #030b08ed; } }
@media (prefers-contrast: more) { :root { --quiet: var(--muted); --line: #6e8774; } [data-theme="light"] { --line: #78917b; } }
@media print { .sidebar, .topbar, #notice { display: none; } .workspace { margin: 0; } main { padding: 0; } }

.demo-details { max-width: 630px; }
.demo-details summary { cursor: pointer; font-size: 13px; color: var(--muted); padding: 10px 0; }
.demo-details p { margin-top: 8px; }

/* Product presentation and account capacity share the same restrained surfaces. */
.profile { width: 100%; text-align: left; border-radius: 6px; }
.profile:hover { background: var(--surface-hover); }
.profile > .icon { margin-left: auto; width: 15px; height: 15px; }
.mobile-profile { display: none; }
.credit-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; border: 1px solid var(--hero-line); border-radius: 6px; padding: 8px 12px; color: var(--accent); font-size: 12px; white-space: nowrap; }
.credit-chip:hover { background: var(--accent-soft); }
.credit-chip .icon { width: 16px; height: 16px; }
.credit-chip strong { font-weight: 650; font-variant-numeric: tabular-nums; }
.greeting { align-items: center; }
.product-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; border: 1px solid var(--line); background: var(--hero); padding: 28px 30px; border-radius: 10px; }
.product-intro-plain { grid-template-columns: 1fr; }
.product-intro h2 { font-family: Georgia, serif; font-size: clamp(26px, 2.6vw, 37px); font-weight: 400; line-height: 1.18; letter-spacing: -1px; }
.product-intro h2 em { color: var(--accent); font-style: normal; }
.product-intro p { margin-top: 14px; font-size: 13px; color: var(--muted); }
.product-intro .text-link { margin-top: 12px; font-size: 13px; }
.example-teaser { position: relative; padding: 24px; border-left: 1px solid var(--hero-line); }
.example-teaser .eyebrow { font-size: 12px; letter-spacing: .6px; }
.example-teaser p { color: var(--text); font-family: Georgia, serif; font-size: 22px; line-height: 1.35; max-width: 340px; padding-right: 18px; }
.example-open { position: absolute; right: 0; bottom: 0; min-width: 36px; min-height: 36px; border-radius: 50%; color: var(--accent); }
.example-open:hover { background: var(--accent-soft); }
.lecture-title strong { font-size: 14px; }
.lecture-meta { line-height: 1.6; }
.lecture-row .badge { font-size: 12px; }
.queue-panel .lecture-title strong { font-size: 14px; }
.queue-panel .lecture-meta, .queue-panel .badge { font-size: 12px; }
.list-toolbar { flex-wrap: wrap; gap: 0 16px; }
.filter-tabs { flex-wrap: wrap; gap: 0 22px; }
.search-field { margin: 7px 0; }
.delivery-list { padding: 5px 24px; }
.delivery-row { display: flex; align-items: center; gap: 18px; width: 100%; text-align: left; padding: 22px 0; border-bottom: 1px solid var(--line); }
.delivery-row:last-child { border-bottom: 0; }
.delivery-row:hover { background: var(--surface-hover); }
.delivery-row > span:nth-child(2) { flex: 1; min-width: 0; }
.delivery-row strong { display: block; font-size: 15px; font-weight: 550; overflow-wrap: anywhere; }
.delivery-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 8px; }
.delivery-state { color: var(--accent); font-size: 12px; }
.balance-panel { padding: 30px 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--hero); }
.balance-label { color: var(--muted); font-size: 13px; }
.balance-panel p { margin: 10px 0; color: var(--text); font-size: 17px; }
.balance-panel p strong { font-family: Georgia, serif; font-size: 64px; font-weight: 400; line-height: 1; margin-right: 12px; font-variant-numeric: tabular-nums; }
.balance-panel span { font-size: 13px; color: var(--muted); }
.balance-description { max-width: 240px; display: flex; align-items: center; gap: 14px; }
.balance-description > .icon { color: var(--accent); width: 34px; height: 34px; stroke-width: 1; }
.package-section, .activity-section { margin-top: 34px; }
.package-section > .section-heading { margin-bottom: 20px; flex-wrap: wrap; }
.package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.package-card { padding: 25px; }
.package-card h3 { font-size: 16px; font-weight: 500; }
.package-quantity { font-family: Georgia, serif; font-size: 46px; margin: 27px 0 18px; line-height: 1; color: var(--accent); }
.package-quantity span { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 13px; margin-left: 9px; color: var(--muted); }
.package-card p { color: var(--muted); font-size: 13px; min-height: 43px; margin-bottom: 22px; }
.local-note { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 16px; }
.activity-section > .section-heading { margin-bottom: 18px; }
.credit-activity { list-style: none; padding: 0 24px; }
.credit-activity li { display: flex; align-items: center; gap: 16px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.credit-activity li:last-child { border-bottom: 0; }
.activity-icon { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); width: 36px; height: 36px; border-radius: 7px; flex-shrink: 0; }
.credit-activity li > div { flex: 1; min-width: 0; }
.credit-activity strong { display: block; font-size: 14px; font-weight: 500; }
.credit-activity small, .credit-activity li a { display: block; font-size: 12px; color: var(--muted); margin-top: 7px; line-height: 1.6; overflow-wrap: anywhere; }
.credit-activity li a { color: var(--accent); }
.credit-activity li a:hover { text-decoration: underline; }
.credit-activity li a .icon { width: 13px; height: 13px; }
.credit-activity time { color: var(--quiet); font-size: 12px; }
.activity-amount { font-size: 17px; font-variant-numeric: tabular-nums; min-width: 32px; text-align: right; }
.activity-amount.positive { color: var(--accent); }
.credit-review { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 18px; margin: 22px 0; }
.credit-review > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 13px; padding: 10px 0; }
.credit-review > div + div { border-top: 1px solid var(--line); }
.credit-review span { color: var(--muted); }
.credit-review strong { font-weight: 550; text-align: right; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.account-card { padding: 28px; }
.account-heading { display: flex; gap: 16px; align-items: center; margin-bottom: 28px; }
.account-heading .avatar { width: 48px; height: 48px; font-size: 14px; }
.account-card h2 { font-size: 20px; font-weight: 500; }
.account-card p { color: var(--muted); font-size: 13px; margin-top: 9px; }
.account-details { margin: 0; }
.account-details > div { border-top: 1px solid var(--line); padding: 18px 0; }
.account-details dt { font-size: 12px; color: var(--quiet); margin-bottom: 8px; }
.account-details dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.appearance-options { display: flex; gap: 12px; margin: 24px 0; }
.appearance-options button { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border: 1px solid var(--line); border-radius: 7px; flex: 1; font-size: 13px; }
.appearance-options button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--hero-line); }
.appearance-options button:hover { border-color: var(--accent); }
.account-credits { display: flex; align-items: center; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.account-credits > span { flex: 1; }
.account-credits strong { display: block; font-size: 13px; font-weight: 500; }
.account-credits small { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.account-credits:hover { color: var(--accent); }
.guide-example { margin-top: 24px; }
.example-modal { width: min(960px, calc(100% - 32px)); }
.example-introduction { font-size: 13px; color: var(--muted); margin-top: 12px; }
.example-courses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.example-courses button { border: 1px solid var(--line); border-radius: 6px; padding: 10px 15px; min-height: 42px; font-size: 12px; font-weight: 550; }
.example-courses button[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); border-color: var(--hero-line); }
.example-courses button:hover { border-color: var(--accent); }
.example-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 20px; align-items: start; }
.example-card { background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 24px; display: flex; align-items: flex-start; flex-direction: column; }
.example-type { color: var(--accent); font-size: 12px; }
.example-card > .section-heading { width: 100%; }
.example-card h3 { font-family: Georgia, serif; font-size: 26px; line-height: 1.25; font-weight: 400; margin-top: 28px; }
.example-answer { margin: 24px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.example-answer strong { font-size: 17px; font-weight: 500; color: var(--accent); line-height: 1.5; }
.example-answer p { font-size: 13px; color: var(--muted); margin-top: 12px; }
.answer-space { min-height: 28px; }
.example-card .source-link { margin-top: auto; padding-top: 22px; font-size: 12px; color: var(--accent); line-height: 1.7; }
.source-link .icon { width: 13px; height: 13px; }
.source-link:hover { text-decoration: underline; }
.example-provenance { padding: 24px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 9px; }
.example-provenance h3 { font-size: 15px; font-weight: 500; }
.example-provenance dl { margin: 20px 0 0; }
.example-provenance dl > div + div { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.example-provenance dt { font-size: 12px; color: var(--quiet); margin-bottom: 7px; }
.example-provenance dd { margin: 0; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.example-provenance p { font-size: 12px; color: var(--muted); margin-top: 24px; }
.example-provenance:focus { outline: 2px solid var(--accent); outline-offset: 4px; }
.example-pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 24px; }
.example-pagination > span { font-size: 12px; color: var(--quiet); }
@media (max-width: 1150px) {
  .header-actions { gap: 8px; }
  .topbar { padding-left: 26px; padding-right: 26px; }
  .package-grid { gap: 14px; }
  .package-card { padding: 20px; }
  .stats-strip { gap: 12px; }
  .stat + .stat { padding-left: 14px; }
  .stat { flex-wrap: wrap; }
  .stat > span { font-size: 12px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 950px) {
  .breadcrumbs > span, .breadcrumbs > .icon { display: none; }
  .product-intro { grid-template-columns: 1fr; gap: 20px; padding: 26px; }
  .example-teaser { border-left: 0; border-top: 1px solid var(--hero-line); padding: 20px 0 0; }
  .example-teaser p { max-width: none; padding-right: 30px; }
  .package-grid { grid-template-columns: 1fr; }
  .package-card { display: grid; grid-template-columns: 1fr auto; gap: 0 20px; }
  .package-quantity { grid-column: 2; grid-row: 1 / 3; margin: 0; align-self: center; }
  .package-card p { min-height: 0; margin: 10px 0 20px; }
  .package-card .button { grid-column: 1 / -1; }
  .account-grid { grid-template-columns: 1fr; }
  .balance-description { display: none; }
}
@media (max-width: 760px) {
  .mobile-profile { display: inline-grid; min-width: 34px; min-height: 34px; }
  .sidebar nav { gap: 0; flex-wrap: wrap; overflow: visible; }
  .nav-item { flex: 1 0 auto; font-size: 12px; justify-content: center; }
  .topbar { height: auto; min-height: 72px; padding: 14px 20px; }
  .role-switch a { font-size: 12px; }
  .greeting { flex-wrap: wrap; gap: 18px; }
  .product-intro h2 { font-size: 32px; }
  .lecture-row { gap: 12px; }
  .example-layout { grid-template-columns: 1fr; }
  .balance-panel { padding: 28px; }
  .filter-tabs { gap: 0 18px; }
}
@media (max-width: 600px) {
  .topbar { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .breadcrumbs > span, .breadcrumbs > .icon { display: block; }
  .header-actions { width: 100%; justify-content: space-between; gap: 8px; }
  .role-switch { margin-right: auto; }
  .role-switch a { padding-left: 9px; padding-right: 9px; }
  .credit-chip { padding: 7px 9px; gap: 5px; }
  .credit-chip > .icon { display: none; }
  .nav-item { padding-left: 8px; padding-right: 8px; }
  .nav-item > .icon { display: none; }
  .product-intro h2 { font-size: 29px; }
  .product-intro { padding: 24px; }
  .example-teaser { display: none; }
  .example-teaser p { font-size: 23px; }
  .right-rail { grid-template-columns: 1fr; }
  .credit-activity { padding: 0 18px; }
  .credit-activity li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px 12px; }
  .credit-activity li > time { grid-column: 2; font-size: 12px; }
  .activity-amount { grid-column: 3; grid-row: 1 / 3; }
  .activity-icon { width: 32px; height: 32px; }
  .balance-panel p { font-size: 14px; }
  .balance-panel p strong { font-size: 54px; }
  .balance-panel { padding: 25px; }
  .delivery-row { gap: 12px; flex-wrap: wrap; }
  .delivery-row .delivery-state { margin-left: 58px; }
  .delivery-row > .icon { margin-left: auto; }
  .example-card { padding: 20px; }
  .example-card h3 { font-size: 24px; }
  .example-pagination { flex-wrap: wrap; }
  .example-pagination .button { padding: 10px 14px; }
  .credit-review > div { font-size: 12px; }
}

/* The preparation workspace keeps each source download and return on one job. */
.notification-trigger { position: relative; }
.notification-count { position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 10px; background: var(--accent); color: var(--bg); font-size: 12px; line-height: 16px; font-weight: 650; }
.queue-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.queue-summary a { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.queue-summary a:hover { border-color: var(--accent); }
.queue-summary strong { font: 32px/1 Georgia, serif; color: var(--accent); }
.queue-summary span { font-size: 13px; flex: 1; }
.queue-summary .icon { width: 15px; }
.operator-list { margin-top: 12px; }
.operator-job { position: relative; isolation: isolate; width: calc(100% + 24px); margin-inline: -12px; padding: 18px 12px; border-bottom: 1px solid var(--line); border-radius: 6px; transition: background .18s; }
.operator-job:hover, .operator-job:has(:focus-visible) { background: var(--surface-hover); box-shadow: inset 0 0 0 1px var(--line); }
/* Stretch the native job button across the row; keep separate actions above it. */
.operator-job-title::after { content: ''; position: absolute; inset: 0; border-radius: 6px; }
.operator-job-title:active:not(:disabled) { transform: none; }
.operator-job-title:focus-visible { outline: none; }
.operator-job-title:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.operator-job-bottom :is(.button, .pilot-delete-button) { position: relative; z-index: 1; }
.operator-job:last-child { border-bottom: 0; }
.operator-job-heading, .operator-job-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.operator-job-title { text-align: left; min-width: 0; }
.operator-job-title:hover strong { color: var(--accent); }
.operator-job-title strong { display: block; margin-top: 10px; font-size: 18px; font-weight: 500; overflow-wrap: anywhere; }
.operator-source-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); margin: 18px 0; overflow-wrap: anywhere; }
.operator-source-summary .icon { width: 15px; height: 15px; flex-shrink: 0; }
.operator-job-bottom > span { font-size: 12px; color: var(--quiet); }
.job-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.job-actions .button { font-size: 12px; padding: 10px 14px; min-height: 42px; }
.job-modal { width: min(860px, calc(100% - 32px)); }
.back-queue { margin-bottom: 25px; }
.workflow-step { padding: 24px; border: 1px solid var(--line); border-radius: 9px; margin: 22px 0; }
.workflow-step-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.workflow-step-heading > span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--hero-line); border-radius: 50%; color: var(--accent); font-size: 13px; flex-shrink: 0; }
.workflow-step h3 { font-size: 19px; font-weight: 500; }
.workflow-step-heading p { font-size: 12px; color: var(--muted); margin-top: 8px; }
.workflow-download, .delivery-download { margin-top: 16px; }
#stage-form > label { display: block; font-size: 13px; margin: 20px 0 10px; }
#stage-form input[type="file"] { display: block; width: 100%; font-size: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
#stage-form > .button { margin-top: 18px; }
#return-deck { scroll-margin-top: 22px; }
.job-details { border-top: 1px solid var(--line); padding: 18px 0; }
.job-details > summary { font-size: 13px; cursor: pointer; padding: 8px 0; color: var(--muted); }
.job-details[open] > summary { margin-bottom: 18px; }
.job-progress { list-style: none; padding: 0; margin: 28px 0 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.job-progress li { border-top: 2px solid var(--line); padding-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--quiet); }
.job-progress .icon { width: 16px; height: 16px; flex-shrink: 0; }
.job-progress .done, .job-progress .current { border-color: var(--accent); color: var(--accent); }
.job-status-note { font-size: 13px; color: var(--muted); margin: 20px 0 28px; }
.update-list { margin-top: 24px; }
.update-item { display: flex; align-items: center; gap: 16px; width: 100%; padding: 22px 12px; border-top: 1px solid var(--line); text-align: left; }
.update-item:hover { background: var(--surface-hover); }
.update-item > .icon:first-child { color: var(--accent); }
.update-item > span { flex: 1; min-width: 0; }
.update-item strong { display: block; font-size: 15px; font-weight: 500; }
.update-item span > span { display: block; font-size: 13px; margin-top: 8px; overflow-wrap: anywhere; }
.update-item small { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }
.update-item.unread { background: var(--accent-soft); }
@media (max-width: 950px) {
  .queue-summary { gap: 10px; }
  .queue-summary a { padding: 18px 14px; flex-wrap: wrap; gap: 10px; }
  .queue-summary span { flex-basis: 65%; }
  .queue-summary .icon { display: none; }
  .operator-job-bottom { align-items: flex-start; flex-direction: column; gap: 16px; }
}
@media (max-width: 600px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px; }
  .breadcrumbs { grid-column: 1 / 3; grid-row: 1; }
  .header-actions { display: contents; }
  .role-switch { grid-column: 3 / 5; grid-row: 1; margin: 0; justify-self: end; }
  .credit-chip { grid-column: 1; grid-row: 2; justify-self: start; }
  .notification-trigger { grid-column: 2; grid-row: 2; }
  .theme-toggle { grid-column: 3; grid-row: 2; }
  .mobile-profile { grid-column: 4; grid-row: 2; }
  .queue-summary { grid-template-columns: 1fr; gap: 8px; margin-bottom: 24px; }
  .queue-summary a { padding: 14px 18px; flex-wrap: nowrap; }
  .queue-summary strong { font-size: 26px; }
  .queue-summary span { flex-basis: auto; }
  .operator-job-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .operator-job-title strong { font-size: 17px; }
  .job-actions { width: 100%; }
  .job-actions .button { flex: 1 1 130px; }
  .workflow-step { padding: 18px; }
  .workflow-step h3 { font-size: 17px; }
  .job-progress { gap: 8px; }
  .job-progress li { flex-direction: column; align-items: flex-start; line-height: 1.5; }
  .job-modal { width: calc(100% - 24px); }
}

/* Editable account details and a focused source-to-deck workspace. */
#account-form > .field + .field { margin-top: 22px; }
.account-form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.account-form-actions .button { font-size: 13px; }
.field-help { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.source-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 18px; }
.source-actions .workflow-download { margin-top: 0; }
.admin-job-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; margin: 24px 0; }
.admin-job-flow > .workflow-step { margin: 0; min-width: 0; padding: 22px; }
.job-modal { width: min(960px, calc(100% - 32px)); }
.admin-job-flow .delivery-box { padding: 18px; }
.admin-job-flow .button { font-size: 13px; }
#request-information-form textarea { width: 100%; }
@media (max-width: 850px) { .admin-job-flow { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .account-form-actions { flex-direction: column; }
  .account-form-actions .button { width: 100%; }
  .admin-job-flow > .workflow-step { padding: 18px; }
  .job-modal { width: calc(100% - 24px); }
}
.profile > span:nth-child(2), .account-heading > div { min-width: 0; }
.profile strong, .account-heading h2, .operator-job-title .course-code, .job-workspace > h2, .job-workspace > .eyebrow { overflow-wrap: anywhere; }

.progress-editor { margin: -2px 0 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.progress-editor h3 { font-family: inherit; font-size: 13px; font-weight: 550; color: var(--muted); margin-bottom: 12px; }
.progress-editor input[type="range"] { appearance: none; -webkit-appearance: none; width: 100%; height: 32px; margin: 0; padding: 0 1px; border: 0; background: transparent; cursor: grab; touch-action: pan-y; }
.progress-editor input[type="range"]:active { cursor: grabbing; }
.progress-editor input::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--progress), var(--line) var(--progress)); }
.progress-editor input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7.5px; border: 3px solid var(--accent); border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 4px var(--surface); }
.progress-editor input::-moz-range-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--progress), var(--line) var(--progress)); }
.progress-editor input::-moz-range-thumb { width: 13px; height: 13px; border: 3px solid var(--accent); border-radius: 50%; background: var(--surface); }
.progress-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.progress-steps button { font-size: 12px; line-height: 1.5; min-height: 32px; padding: 6px 2px; color: var(--quiet); }
.progress-steps button:first-child { text-align: left; }
.progress-steps button:last-child { text-align: right; }
.progress-steps button[aria-current="step"], .progress-steps button:hover { color: var(--accent); }
.progress-editor p { font-size: 12px; color: var(--quiet); margin-top: 6px; }

/* Job identity and progress share the header, leaving the two work panels aligned. */
.job-header { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 18px; margin-bottom: 24px; }
.job-identity { min-width: 0; }
.job-identity h2, .job-identity .eyebrow { overflow-wrap: anywhere; }
.job-header .job-subheading { margin-bottom: 0; flex-wrap: wrap; }
.job-header > .progress-editor { min-width: 0; margin: 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: 9px; }
@media (max-width: 850px) { .job-header { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 520px) { .job-header > .progress-editor { padding: 16px 18px; } }
/* Private workspace layout and controls for the authenticated workflow. */
.pilot-page [hidden] { display: none !important; }
#pilot-app { display: flex; min-height: 100vh; }
#pilot-workspace { flex: 1; min-width: 0; }
.pilot-page main:focus { outline: none; }
#pilot-mobile-profile:not([hidden]) { display: contents; }
#pilot-sign-out { min-height: 36px; padding: 7px 12px; }
.pilot-login { max-width: 450px; margin: 24px auto; }
.pilot-login > a { margin-top: 16px; }
.pilot-login .pilot-panel { display: grid; gap: 20px; padding: clamp(18px, 3vw, 26px); }
.pilot-login .pilot-panel button { justify-self: start; }
.pilot-link-help { margin-top: 16px; }
.pilot-password-field { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 8px; }
.pilot-password-toggle.icon-button { width: 44px; min-height: 44px; border: 1px solid var(--line); }
.pilot-account-step { max-width: 580px; }
.pilot-account-step-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pilot-narrow { max-width: 760px; }
.pilot-title-row { flex-wrap: wrap; }
.pilot-title-row h1, .job-identity h1 { overflow-wrap: anywhere; }
.pilot-deliveries .list-toolbar { margin-bottom: 18px; }
.pilot-example-close { display: flex; justify-content: flex-end; padding: 16px 20px 0; }
.pilot-row:last-child { border-bottom-color: transparent; }
.pilot-resume { margin-bottom: 16px; }
#pilot-sidebar .profile .avatar { flex-shrink: 0; }
.pilot-back { margin-bottom: 12px; }
.pilot-submission-summary { margin-top: 0; }
.pilot-notes { margin-top: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pilot-asset > span { flex: 1; }
.pilot-asset > .pilot-download-control > .button { min-height: 36px; padding: 8px 12px; }
.pilot-page .job-identity .page-heading { margin: 6px 0 14px; }
.pilot-page .job-subheading { gap: 8px 14px; }
.pilot-page .workflow-step-heading { align-items: center; }
.pilot-page .workflow-step-heading h2 { font-size: 19px; font-weight: 500; }
.pilot-page .workflow-step > form { display: grid; gap: 14px; margin-top: 20px; }
.pilot-page .workflow-step > form > .button { justify-self: start; }
.pilot-page .workflow-step .drop-zone { min-height: 148px; }
.pilot-job-emails { margin-top: 22px; padding: clamp(18px, 3vw, 26px); }
.pilot-job-emails h2 { font-size: 19px; font-weight: 500; }
.pilot-job-emails ul { list-style: none; padding: 0; margin: 14px 0 0; }
.pilot-job-emails li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 12px 0; border-top: 1px solid var(--line); }
.pilot-job-emails li p { margin: 4px 0 0; }
.pilot-page .delivery-box h2 { font-size: 16px; font-weight: 550; }
.pilot-page .delivery-box > .field-help { margin-bottom: 0; }
.pilot-progress-card h2 { font-size: 13px; font-weight: 550; color: var(--muted); }
.pilot-progress-track { position: relative; margin: 23px 9px 16px; height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--progress), var(--line) var(--progress)); }
.pilot-progress-track > span { position: absolute; top: 50%; left: var(--progress); transform: translate(-50%, -50%); width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--surface); }
.pilot-progress-card .progress-steps { list-style: none; margin: 0; padding: 0; color: var(--quiet); font-size: 12px; }
.pilot-progress-card .progress-steps > :nth-child(2) { text-align: center; }
.pilot-progress-card .progress-steps > :last-child { text-align: right; }
.pilot-progress-card [aria-current="step"] { color: var(--accent); }
.pilot-notice {
  position: fixed;
  inset: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) auto auto;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  width: min(25rem, calc(100% - 2rem));
  padding: .65rem .65rem .85rem 1rem;
  overflow: hidden;
  border: 1px solid var(--hero-line);
  border-radius: 12px;
  background: var(--hero);
  color: var(--text);
  box-shadow: 0 8px 28px #0004;
}
.pilot-notice[hidden], .pilot-notice[data-error="true"] .pilot-notice-time { display: none; }
.pilot-notice p { font-weight: 550; overflow-wrap: anywhere; }
.pilot-notice[data-error="true"] { border-color: var(--danger); }
.pilot-notice-time { position: absolute; inset: auto 0 0; height: 4px; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .pilot-notice { animation: pilot-notice-enter 160ms ease-out both; }
  .pilot-notice-time { transform-origin: left; animation: pilot-notice-countdown 5s linear both; }
}
@keyframes pilot-notice-enter {
  from { opacity: 0; transform: translateX(.75rem); }
}
@keyframes pilot-notice-countdown {
  to { transform: scaleX(0); }
}
.pilot-transfer { margin-block: 12px 4px; color: var(--muted); }
[data-transfer-slot]:empty { display: none; }
.pilot-transfer progress { display: block; appearance: none; width: 100%; height: 8px; margin: 0 0 8px; border: 0; border-radius: 8px; overflow: hidden; accent-color: var(--accent); background: var(--line); }
.pilot-transfer progress::-webkit-progress-bar { background: var(--line); border-radius: 8px; }
.pilot-transfer progress::-webkit-progress-value { background: var(--accent); border-radius: 8px; }
.pilot-transfer progress::-moz-progress-bar { background: var(--accent); border-radius: 8px; }
.pilot-transfer progress:indeterminate { animation: none; }
.pilot-transfer progress:indeterminate::-webkit-progress-bar { background: var(--line); }
.pilot-transfer progress:indeterminate::-moz-progress-bar { background: transparent; }
.pilot-transfer-status { margin: 0; font-size: 13px; color: inherit; overflow-wrap: anywhere; }
.pilot-transfer[data-state="error"] { color: var(--danger); }
.pilot-transfer [hidden] { display: none; }
#pilot-transfer-home > .pilot-transfer { max-width: 26rem; padding: 10px 12px; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 10px; }
.pilot-download-control { min-width: 0; }
.pilot-page .button[aria-disabled="true"] { cursor: wait; opacity: .8; }
@media (max-width: 760px) {
  #pilot-app { display: block; }
  .pilot-page .pilot-header { display: flex; flex-wrap: wrap; gap: 10px; min-height: 60px; padding-block: 8px; }
  .pilot-page .pilot-header-actions { display: flex; width: auto; justify-content: flex-end; }
}
@media (max-width: 600px) {
  .pilot-entry { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
  .pilot-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
  .pilot-row > .badge { grid-column: 2; justify-self: start; }
  .pilot-row > .row-arrow { grid-column: 3; grid-row: 1 / 3; }
  .pilot-row .course-art { grid-row: 1 / 3; }
  .pilot-asset { flex-wrap: wrap; }
}

#pilot-student-tools:not([hidden]) { display: contents; }
.pilot-credit-cost { padding: 18px; margin-bottom: 16px; }
.lecture-form > .pilot-credit-cost { margin: 22px 0 0; }
.pilot-credit-cost > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 5px 12px; font-size: 13px; }
.pilot-credit-cost > div + div { margin-top: 10px; }
.pilot-credit-cost strong { font-weight: 550; }
.pilot-credit-cost span { color: var(--muted); }
.pilot-credit-cost .text-link { margin-top: 6px; }
.pilot-mobile-cost { display: none; }
#pilot-grant-form { display: grid; gap: 20px; }
#pilot-grant-form > .button { justify-self: start; }
.pilot-grant-dialog { padding-top: 26px; }
.pilot-account-more { margin-top: 16px; }
#pilot-content .balance-panel [data-credit-unit] { color: inherit; font: inherit; }
#pilot-update-list .update-item > span { text-align: left; }
@media (max-width: 1000px) {
  .pilot-desktop-cost { display: none; }
  .pilot-mobile-cost { display: block; margin-top: 18px; }
}
@media (max-width: 600px) {
  .pilot-page .pilot-header-actions:has(#pilot-student-tools:not([hidden])) { flex: 0 0 100%; gap: 5px; }
  #pilot-student-tools .credit-chip { margin-right: auto; }
  #pilot-sign-out { padding-inline: 8px; }
}

.pilot-batch { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.pilot-batch > button { justify-self: start; }
.pilot-batch-review { display: grid; gap: .75rem; padding: 1.25rem; }
.pilot-batch-review :is(h2, p), .pilot-correction :is(h3, p) { margin: 0; }
.pilot-check { display: flex; gap: .625rem; align-items: baseline; text-align: left; }
.pilot-check input { accent-color: var(--accent); flex: none; }
.pilot-account-layout { display: grid; gap: 1.5rem; }
.pilot-invite { border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
.pilot-invite form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: .75rem; margin-top: .875rem; }
.pilot-invite .field { margin: 0; }
.pilot-grant-dialog .modal-actions { margin-top: 1rem; }
.pilot-account-directory { display: grid; grid-template-columns: minmax(0, 1fr) minmax(7rem, .4fr) auto; column-gap: 1.25rem; list-style: none; padding: 0; margin: .75rem 0 0; }
.pilot-account-directory li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; row-gap: .75rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.pilot-account-directory small { display: block; margin-top: .25rem; overflow-wrap: anywhere; }
.pilot-account-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.pilot-account-name { padding: .2rem 0; text-align: left; font-weight: 700; overflow-wrap: anywhere; }
.pilot-account-name:hover { color: var(--accent); text-decoration: underline; }
.pilot-account-group { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .875rem; }
.pilot-account-group summary { color: var(--muted); cursor: pointer; padding: .25rem 0; font-weight: 600; }
.pilot-profile-edit { display: grid; gap: .75rem; margin-bottom: 1.25rem; }
.pilot-profile-edit .field { margin: 0; }
.pilot-profile-edit .button { justify-self: start; }
#pilot-student-activity { width: min(710px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; }
#pilot-activity-heading { overflow-wrap: anywhere; }
.pilot-activity-details { margin: 1rem 0 0; }
.pilot-activity-details dd { overflow-wrap: anywhere; }
.pilot-activity-section { margin-top: 1.5rem; }
.pilot-activity-section h3 { margin: 0 0 .625rem; }
.pilot-activity-rows { list-style: none; margin: 0; padding: 0; }
.pilot-activity-rows li { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .75rem 0; }
.pilot-activity-rows li > div { overflow-wrap: anywhere; min-width: 0; }
.pilot-activity-rows small { display: block; color: var(--muted); margin-top: .25rem; }
.pilot-activity-pagination { display: flex; gap: .5rem; margin-top: .75rem; }
.pilot-loading-title { width: min(22rem, 75%); height: 2.75rem; margin-bottom: 1.5rem; }
.pilot-loading-lines { display: grid; gap: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pilot-loading-lines span { display: block; height: 1.1rem; width: 70%; }
.pilot-loading-lines span:nth-child(2) { width: 88%; }
.pilot-loading-lines span:nth-child(3) { width: 52%; }
.pilot-loading-title, .pilot-loading-lines span { border-radius: 6px; background: var(--surface-hover); }
@media (prefers-reduced-motion: no-preference) {
  .pilot-loading-title, .pilot-loading-lines span { animation: pilot-loading-pulse 1.25s ease-in-out infinite alternate; }
  @keyframes pilot-loading-pulse { from { opacity: .65; } to { opacity: 1; } }
}
.pilot-source-cleanup { margin-top: 1.25rem; }
.pilot-source-cleanup form { margin-top: .75rem; }
.pilot-source-cleanup button { margin-top: .5rem; }
.pilot-correction { display: grid; gap: .75rem; border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 1.25rem; }
.pilot-correction > a { justify-self: start; }
.pilot-correction [data-pilot-action="stage"] { display: grid; gap: .75rem; }
.pilot-correction [data-pilot-action="stage"] button { justify-self: start; }
@media (max-width: 710px) {
  .pilot-account-directory { grid-template-columns: minmax(0, 1fr) auto; column-gap: .75rem; }
  .pilot-account-actions { grid-column: 1 / -1; }
  .pilot-invite form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pilot-invite form > button { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .pilot-invite form { grid-template-columns: 1fr; }
  .pilot-account-actions > * { flex: 1 1 auto; }
  .pilot-account-actions form button { width: 100%; }
}

.pilot-anki-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}
.delivery-box .pilot-anki-actions > .asset { flex: 1 1 17rem; }
.pilot-anki-steps { padding-inline-start: 1.25rem; }
.pilot-anki-steps li + li { margin-block-start: .45rem; }
.pilot-update-entry > .button, .pilot-update-entry > .field-help { margin: .25rem .75rem .75rem; }
.pilot-update-entry .update-item { width: 100%; }
.pilot-anki-actions [role="switch"][aria-checked="true"] { border-color: var(--accent); }

.pilot-lecture-entry + .pilot-lecture-entry { border-top: 1px solid var(--line); }
.pilot-lecture-entry > .lecture-row { border-bottom: 0; }
.pilot-lecture-anki {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin: -.25rem 0 .6rem 3.5rem;
  color: var(--muted);
  font-size: 12px;
}
.pilot-lecture-anki:empty { display: none; }
.pilot-anki-delivery-status .button { margin-top: .25rem; }
.pilot-anki-actions [role="switch"] span { margin-inline-start: .4rem; font-size: .75rem; }

.pilot-anki-toast {
  position: fixed;
  inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) auto;
  z-index: 10;
  margin: 0;
  box-sizing: border-box;
  max-width: min(23rem, calc(100% - 2rem));
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: .875rem;
  box-shadow: 0 8px 24px #0003;
  pointer-events: none;
}

.pilot-account-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas: "profile appearance" "anki .";
  max-width: 66rem;
}
.pilot-account-primary { grid-area: profile; }
.pilot-account-appearance { grid-area: appearance; }
#pilot-anki-settings { grid-area: anki; }
.pilot-account-appearance .appearance-options { margin-top: 1rem; }
.pilot-account-identity, .pilot-account-reset, .pilot-account-phone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
.pilot-account-identity .account-heading { margin: 0; min-width: 0; }
.pilot-account-identity .avatar { flex: 0 0 auto; }
.pilot-account-identity .account-heading p { margin-top: .25rem; overflow-wrap: anywhere; }
.pilot-account-primary .button { min-height: 42px; padding: .55rem .8rem; }
.pilot-account-primary .pilot-profile-edit { margin: 1rem 0 0; }
.pilot-account-actions { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.pilot-account-security, .pilot-account-phone { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1rem; }
.pilot-account-primary h3 { margin: 0; font-size: .9rem; font-weight: 600; }
.pilot-account-security .field-help { overflow-wrap: anywhere; }
.pilot-account-security .field-help:empty { margin: 0; }
.pilot-account-security .field-error { color: var(--danger); }
.pilot-account-phone p { margin-top: .25rem; }
.pilot-account-manage { margin-top: .7rem; }

@media (max-width: 760px) {
  .pilot-account-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "profile" "appearance" "anki";
  }
  .pilot-account-grid .account-card { padding: 1.25rem; }
}

.pilot-generation {
  margin: 1rem 0;
  padding: clamp(1.05rem, 2.4vw, 2rem);
}
.pilot-generation ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(.75rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0;
}
.pilot-generation li {
  position: relative;
  display: grid;
  align-content: start;
  gap: .75rem;
  color: var(--muted);
  line-height: 1.45;
  font-size: .88rem;
}
.pilot-generation li.complete,
.pilot-generation li[aria-current="step"] {
  color: var(--text);
}
.pilot-generation li[aria-current="step"] {
  font-weight: 650;
}
.pilot-step-dot { width: 1.65rem; height: 1.65rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.pilot-step-dot svg { width: .95rem; height: .95rem; }
.pilot-generation li.complete .pilot-step-dot { color: var(--accent); border-color: var(--accent); }
.pilot-generation li[aria-current="step"]:not(.complete) .pilot-step-dot {
  border: 2px solid var(--line); border-top-color: var(--accent); border-right-color: var(--accent);
  animation: pilot-progress-turn 1.05s linear infinite;
}
.pilot-generation li:not(:last-child)::after {
  position: absolute; content: ''; top: .8rem; left: 2.2rem; width: calc(100% - 1.65rem); height: 1px; background: var(--line);
}
@keyframes pilot-progress-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pilot-generation li[aria-current="step"] .pilot-step-dot { animation: none; } }
.pilot-generation p {
  margin: 1.05rem 0 0;
}
.pilot-refresh { flex: none; }
.pilot-refresh:disabled .icon { animation: pilot-progress-turn 1.05s linear infinite; }
@media (prefers-reduced-motion: reduce) { .pilot-refresh:disabled .icon { animation: none; } }
.pilot-batch[data-reserved] > :not(.pilot-batch-review) { display: none; }
.pilot-batch[data-reserved] .pilot-batch-review > :not([data-transfer-slot]) { display: none; }
.pilot-manual-files { margin: 1rem 0; padding: 1.15rem; }
.pilot-manual-files > summary { cursor: pointer; font-weight: 650; }
.pilot-manual-files .admin-job-flow { grid-template-columns: minmax(0, 1fr); margin-top: 1rem; }
.pilot-admin-assets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .75rem; margin-top: .85rem; }
.pilot-admin-assets .asset { min-width: 0; flex-wrap: wrap; }
.pilot-worker-log { margin: 1rem 0; padding: clamp(1rem, 2vw, 1.5rem); }
.pilot-worker-log ol { margin: .9rem 0 0; padding: 0; list-style: none; max-height: 19rem; overflow: auto; font: .84rem/1.65 ui-monospace, monospace; }
.pilot-worker-log li { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: .75rem; padding: .35rem .15rem; border-top: 1px solid var(--line); }
.pilot-worker-log time { color: var(--muted); }
.pilot-nz-phone {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.pilot-nz-phone input {
  flex: 1;
  min-width: 0;
}
.pilot-session-prompt {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 24rem;
  overflow: auto;
}
@media (max-width: 720px) {
  .pilot-generation ol {
    grid-template-columns: minmax(0, 1fr);
    gap: .9rem;
  }
  .pilot-generation li { grid-template-columns: 1.65rem minmax(0, 1fr); align-items: center; }
  .pilot-generation li:not(:last-child)::after { top: 1.65rem; left: .8rem; width: 1px; height: .9rem; }
}

.pilot-delete-button {
  color: var(--danger);
}
.pilot-lecture-anki:has(.pilot-delete-button) {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}
