/* Omniversity Admin — content components for the pages inside the admin shell: grid, card, metric
   card, chart bars, buttons, form fields, segmented control, badges, tabs, data table, modal, toasts
   and skeleton frames. Ported from the design system's components/bundle.css and loaded with
   /admin-shell.css by src/components/lms/admin-shell.tsx; the React side lives in
   src/components/lms/admin/.

   Every rule sits under .oa-shell. That keeps the sheet inert outside the admin pages (React keeps it
   in the document after navigating away), and the extra class is what lets these controls win over
   /lms.css's bare element rules (`label{}`, `input,select,textarea{}`) without !important.
   Tokens are /lms.css's; the spacing, radius, overlay and scrim tokens are defined in
   /admin-shell.css. Light theme is html[data-lms-theme="light"]. */

/* ── Grid (12 columns) ──────────────────────────────────────── */
.oa-shell .oa-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--space-16)}
/* Vertical rhythm between the blocks a page stacks in the main area. */
.oa-shell :is(.oa-main-inner,.hack-page) > :is(.oa-grid,.oa-section,.oa-card,.oa-stack,.oa-table-card) + :is(.oa-grid,.oa-section,.oa-card,.oa-stack,.oa-table-card){margin-top:var(--space-16)}
.oa-shell .oa-col-3{grid-column:span 3}.oa-shell .oa-col-4{grid-column:span 4}.oa-shell .oa-col-5{grid-column:span 5}.oa-shell .oa-col-6{grid-column:span 6}
.oa-shell .oa-col-7{grid-column:span 7}.oa-shell .oa-col-8{grid-column:span 8}.oa-shell .oa-col-12{grid-column:1/-1}
@media (max-width:1100px){
  .oa-shell .oa-col-3{grid-column:span 6}
  .oa-shell .oa-col-4,.oa-shell .oa-col-5,.oa-shell .oa-col-6,.oa-shell .oa-col-7,.oa-shell .oa-col-8{grid-column:span 12}
}
@media (max-width:640px){.oa-shell .oa-grid > *{grid-column:1/-1}}

/* ── Card ───────────────────────────────────────────────────── */
.oa-shell .oa-card{background:var(--bg-2);border:1px solid var(--line);border-radius:var(--radius-12);box-shadow:none;min-width:0;display:flex;flex-direction:column;color:var(--text)}
html[data-lms-theme="light"] .oa-shell .oa-card{border-color:var(--line-2);box-shadow:var(--shadow-card)}
.oa-shell a.oa-card{text-decoration:none;transition:border-color .15s ease-out,box-shadow .15s ease-out}
.oa-shell a.oa-card:hover{border-color:var(--btn-hover-border);box-shadow:var(--shadow-card-hover)}
.oa-shell .oa-card-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-10);padding:var(--space-14) var(--space-18) 0;min-height:44px;flex-wrap:wrap}
.oa-shell .oa-card-title{margin:0;font-family:var(--mono);font-size:12px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.oa-shell .oa-card-body{padding:var(--space-14) var(--space-18) var(--space-18);flex:1;min-width:0}
.oa-shell .oa-card-body.is-flush{padding:0}
.oa-shell .oa-card-foot{border-top:1px solid var(--line-2);padding:var(--space-10) var(--space-18);display:flex;align-items:center;justify-content:space-between;gap:var(--space-10);font-size:13px;color:var(--muted);flex-wrap:wrap}
.oa-shell .oa-card-foot a{color:var(--accent);text-decoration:none;font-family:var(--mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.oa-shell .oa-card-foot a:hover{color:var(--accent-light)}
.oa-shell .oa-card-body > p + p{margin-top:var(--space-8)}

/* ── Metric card ────────────────────────────────────────────── */
.oa-shell .oa-metric{padding:var(--space-18);gap:var(--space-8)}
.oa-shell .oa-metric-label{display:flex;align-items:center;justify-content:space-between;gap:var(--space-8);font-family:var(--mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.oa-shell .oa-metric-label .oa-ico{color:var(--muted-2)}
.oa-shell .oa-metric-value{font-size:26px;line-height:1.1;font-weight:700;letter-spacing:-.02em;color:var(--heading);font-variant-numeric:tabular-nums}
.oa-shell .oa-metric-value small{font-size:13px;font-weight:400;color:var(--muted);letter-spacing:0;margin-left:4px}
.oa-shell .oa-metric-foot{display:flex;align-items:center;justify-content:space-between;gap:var(--space-8);font-family:var(--mono);font-size:11px;color:var(--muted);min-height:24px}
.oa-shell .oa-delta{display:inline-flex;align-items:center;gap:3px;font-family:var(--mono);font-size:11px}
.oa-shell .oa-delta.up{color:var(--ok)}.oa-shell .oa-delta.down{color:var(--err)}
html[data-lms-theme="light"] .oa-shell .oa-delta.up,html[data-lms-theme="light"] .oa-shell .oa-delta.down{color:var(--text)}
html[data-lms-theme="light"] .oa-shell .oa-delta.up .oa-ico{color:var(--ok)}
html[data-lms-theme="light"] .oa-shell .oa-delta.down .oa-ico{color:var(--err)}
.oa-shell .oa-spark{width:84px;height:24px;display:block;flex:none}
.oa-shell .oa-spark .line{fill:none;stroke:var(--accent);stroke-width:1.5}
.oa-shell .oa-spark .area{fill:var(--accent);opacity:.12;stroke:none}

/* ── Chart: horizontal bars ─────────────────────────────────── */
.oa-shell .oa-bars{display:flex;flex-direction:column;gap:9px;margin:0;padding:0;list-style:none}
.oa-shell .oa-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px var(--space-8);align-items:center}
.oa-shell .oa-bar .lab{font-family:var(--mono);font-size:12px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.oa-shell .oa-bar .val{font-family:var(--mono);font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.oa-shell .oa-bar .track{grid-column:1/-1;height:6px;background:var(--code-bg);border-radius:3px;overflow:hidden}
.oa-shell .oa-bar .fill{display:block;height:100%;background:var(--accent);border-radius:0 3px 3px 0}
.oa-shell .oa-bar .fill.s2{background:var(--accent-light)}
.oa-shell .oa-bar .fill.s3{background:var(--amber)}
.oa-shell .oa-legend{display:flex;gap:var(--space-16);flex-wrap:wrap;font-family:var(--mono);font-size:11px;color:var(--muted)}
.oa-shell .oa-legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px;vertical-align:-1px;background:var(--accent)}
.oa-shell .oa-legend i.s2{background:var(--accent-light)}.oa-shell .oa-legend i.s3{background:var(--amber)}

/* ── Feed (activity list in a card) ─────────────────────────── */
.oa-shell .oa-feed{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.oa-shell .oa-feed li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px var(--space-10);padding:var(--space-10) 0;border-bottom:1px solid var(--line-2)}
.oa-shell .oa-feed li:last-child{border-bottom:0}
.oa-shell .oa-feed b{font-size:14px;font-weight:600;color:var(--heading);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.oa-shell .oa-feed b a{color:inherit;text-decoration:none}
.oa-shell .oa-feed b a:hover{text-decoration:underline}
.oa-shell .oa-feed time,.oa-shell .oa-feed .when{font-family:var(--mono);font-size:11px;color:var(--muted);white-space:nowrap}
.oa-shell .oa-feed .meta{grid-column:1/-1;font-family:var(--mono);font-size:12px;color:var(--muted);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ── Key/value list ─────────────────────────────────────────── */
.oa-shell .oa-kv{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:var(--space-8) var(--space-16);margin:0}
.oa-shell .oa-kv dt{font-family:var(--mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.oa-shell .oa-kv dd{margin:0;font-size:14px;color:var(--text);min-width:0;overflow-wrap:anywhere}

/* ── Stat pairs (big numbers inside a card) ─────────────────── */
.oa-shell .oa-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:var(--space-16);margin:0}
.oa-shell .oa-stats > div{display:flex;flex-direction:column;gap:4px;padding:var(--space-14);border:1px solid var(--line-2);border-radius:var(--radius-8)}
.oa-shell .oa-stats dt{font-family:var(--mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.oa-shell .oa-stats dd{margin:0;font-size:26px;line-height:1.1;font-weight:700;letter-spacing:-.02em;color:var(--heading);font-variant-numeric:tabular-nums}

/* ── Buttons ────────────────────────────────────────────────── */
.oa-shell .oa-btn,.oa-toaster .oa-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-8);height:36px;margin:0;padding:0 14px;border:1px solid var(--line);border-radius:var(--radius-8);background:transparent;color:var(--text);font-family:var(--mono);font-size:12px;font-weight:400;letter-spacing:.08em;line-height:1;text-transform:uppercase;white-space:nowrap;cursor:pointer;text-decoration:none;transition:background .15s ease-out,border-color .15s ease-out,color .15s ease-out}
.oa-shell .oa-btn:hover,.oa-toaster .oa-btn:hover{background:var(--btn-hover-bg);border-color:var(--btn-hover-border);color:var(--text)}
.oa-shell .oa-btn:active,.oa-toaster .oa-btn:active{transform:scale(.97);transition:transform 100ms ease-out}
.oa-shell .oa-btn:disabled,.oa-shell .oa-btn[aria-disabled="true"],.oa-toaster .oa-btn:disabled,.oa-toaster .oa-btn[aria-disabled="true"]{opacity:.45;pointer-events:none}
.oa-shell .oa-btn.is-primary,.oa-toaster .oa-btn.is-primary{background:var(--btn-solid-bg);border-color:var(--btn-solid-bg);color:var(--btn-solid-fg)}
.oa-shell .oa-btn.is-primary:hover,.oa-toaster .oa-btn.is-primary:hover{background:var(--btn-solid-hover);border-color:var(--btn-solid-hover);color:var(--btn-solid-fg)}
.oa-shell .oa-btn.is-ghost,.oa-toaster .oa-btn.is-ghost{border-color:transparent;color:var(--muted)}
.oa-shell .oa-btn.is-ghost:hover,.oa-toaster .oa-btn.is-ghost:hover{color:var(--text);background:var(--btn-hover-bg);border-color:transparent}
.oa-shell .oa-btn.is-danger,.oa-toaster .oa-btn.is-danger{color:var(--err);border-color:var(--err-line)}
.oa-shell .oa-btn.is-danger:hover,.oa-toaster .oa-btn.is-danger:hover{background:var(--err-bg);border-color:var(--err);color:var(--err)}
.oa-shell .oa-btn.is-sm,.oa-toaster .oa-btn.is-sm{height:30px;padding:0 10px;font-size:11px}
.oa-shell .oa-btn.is-busy,.oa-toaster .oa-btn.is-busy{pointer-events:none;opacity:1}
.oa-shell .oa-btn.is-busy::after,.oa-toaster .oa-btn.is-busy::after{content:"";width:12px;height:12px;border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;animation:oa-spin .7s linear infinite}
.oa-shell .oa-btn .oa-ico,.oa-toaster .oa-btn .oa-ico{width:14px;height:14px}
@keyframes oa-spin{to{transform:rotate(360deg)}}
.oa-shell .oa-link{color:var(--accent);text-decoration:none}
.oa-shell .oa-link:hover{color:var(--accent-light);text-decoration:underline}
.oa-shell .oa-inline-form{display:inline-flex;margin:0}

/* ── Form fields ────────────────────────────────────────────── */
.oa-shell .oa-field{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0;font-family:var(--sans);font-size:14px;letter-spacing:0;text-transform:none;color:var(--text)}
.oa-shell .oa-label{font-family:var(--mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.oa-shell .oa-hint{font-size:12px;color:var(--muted)}
.oa-shell .oa-error{font-size:12px;color:var(--err);display:flex;align-items:center;gap:6px}
.oa-shell .oa-input,.oa-shell .oa-select,.oa-shell .oa-textarea{display:block;width:100%;height:38px;margin:0;padding:0 12px;background:var(--input);color:var(--text);border:1px solid var(--line);border-radius:var(--radius-8);font-family:var(--mono);font-size:14px;color-scheme:inherit;transition:border-color .15s ease-out}
.oa-shell .oa-textarea{height:auto;min-height:92px;padding:10px 12px;line-height:1.5;resize:vertical}
.oa-shell .oa-select{appearance:none;-webkit-appearance:none;padding-right:32px;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 17px) 16px,calc(100% - 12px) 16px;background-size:5px 5px;background-repeat:no-repeat}
.oa-shell .oa-input:hover,.oa-shell .oa-select:hover,.oa-shell .oa-textarea:hover{border-color:var(--btn-hover-border)}
.oa-shell .oa-input:focus,.oa-shell .oa-select:focus,.oa-shell .oa-textarea:focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}
.oa-shell .oa-input::placeholder,.oa-shell .oa-textarea::placeholder{color:var(--muted);opacity:1}
.oa-shell .oa-field.is-invalid .oa-input,.oa-shell .oa-field.is-invalid .oa-select,.oa-shell .oa-field.is-invalid .oa-textarea{border-color:var(--err);background:var(--err-bg)}
.oa-shell .oa-search{position:relative;min-width:0;display:block;margin:0}
.oa-shell .oa-search > .oa-ico{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.oa-shell .oa-search .oa-input{padding-left:34px;height:34px;font-size:13px}
.oa-shell .oa-check{display:inline-flex;align-items:center;gap:var(--space-8);margin:0;font-family:var(--sans);font-size:14px;letter-spacing:0;text-transform:none;color:var(--text);cursor:pointer}
.oa-shell .oa-check input{appearance:none;-webkit-appearance:none;display:inline-grid;place-content:center;width:16px;height:16px;margin:0;padding:0;flex:none;border:1px solid var(--line);border-radius:4px;background:var(--input);cursor:pointer}
.oa-shell .oa-check input:checked,.oa-shell .oa-check input:indeterminate{background:var(--accent);border-color:var(--accent)}
.oa-shell .oa-check input:checked::after{content:"";width:8px;height:4px;border:2px solid #ffffff;border-top:0;border-right:0;transform:rotate(-45deg) translate(1px,-1px)}
.oa-shell .oa-check input:indeterminate::after{content:"";width:8px;height:2px;background:#ffffff}
.oa-shell .oa-switch{display:inline-flex;align-items:center;gap:var(--space-10);margin:0;cursor:pointer;font-family:var(--sans);font-size:14px;letter-spacing:0;text-transform:none;color:var(--text)}
.oa-shell .oa-switch input{appearance:none;-webkit-appearance:none;display:inline-block;width:32px;height:18px;margin:0;padding:0;flex:none;border-radius:var(--radius-pill);background:var(--code-bg);border:1px solid var(--line);position:relative;cursor:pointer;transition:background .15s ease-out}
.oa-shell .oa-switch input::after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:var(--muted);transition:transform .15s ease-out,background .15s ease-out}
.oa-shell .oa-switch input:checked{background:var(--accent);border-color:var(--accent)}
.oa-shell .oa-switch input:checked::after{transform:translateX(14px);background:#ffffff}
.oa-shell .oa-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-14) var(--space-16)}
.oa-shell .oa-form .full{grid-column:1/-1}
.oa-shell .oa-form-actions{display:flex;justify-content:flex-end;gap:var(--space-8);flex-wrap:wrap}
@media (max-width:560px){.oa-shell .oa-form{grid-template-columns:1fr}}
.oa-shell .oa-fieldset{min-width:0;margin:0;padding:0;border:0}
.oa-shell .oa-fieldset > legend{display:block;padding:0;margin:0 0 var(--space-10)}
.oa-shell .oa-hint.is-ok{color:var(--ok)}
.oa-shell .oa-hint.is-err{color:var(--err)}
.oa-shell .oa-level{display:flex;flex-direction:column;gap:6px;padding:var(--space-14);border:1px solid var(--line-2);border-radius:var(--radius-8)}
.oa-shell .oa-level-title{font-weight:600;color:var(--heading)}
.oa-shell .oa-level p{margin:0}
.oa-shell .oa-checklist{margin:0;padding:0;list-style:none;font-family:var(--mono);font-size:12px;color:var(--muted);display:flex;flex-direction:column;gap:4px}
.oa-shell .oa-checklist li.is-met{color:var(--text)}
.oa-shell .oa-range{flex:1;min-width:120px;accent-color:var(--accent)}
.oa-shell .oa-specimen{display:block;width:100%;aspect-ratio:842/595;border:1px solid var(--line-2);border-radius:var(--radius-8);background:#ffffff}
.oa-shell .oa-sentence-block{display:flex;flex-direction:column;gap:var(--space-8)}
.oa-shell .oa-sentence{margin:0;padding:var(--space-14) var(--space-18);border:1px solid var(--line-2);border-radius:var(--radius-8);background:var(--hover);font-size:15px;line-height:1.5;color:var(--text)}
.oa-shell .oa-sentence b{font-weight:600;color:var(--heading)}
.oa-shell .oa-sentence i{color:var(--accent-light)}
.oa-shell .oa-sentence-sub{display:block;margin-top:6px;font-size:13px;color:var(--muted)}

/* ── Segmented control ──────────────────────────────────────── */
.oa-shell .oa-seg{display:inline-flex;border:1px solid var(--line);border-radius:var(--radius-8);overflow:hidden}
.oa-shell .oa-seg > a,.oa-shell .oa-seg > button{display:inline-flex;align-items:center;gap:6px;background:transparent;border:0;border-right:1px solid var(--line);color:var(--muted);font-family:var(--mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;padding:0 12px;height:32px;cursor:pointer;text-decoration:none}
.oa-shell .oa-seg > :last-child{border-right:0}
.oa-shell .oa-seg > :hover{color:var(--text)}
.oa-shell .oa-seg > [aria-pressed="true"],.oa-shell .oa-seg > [aria-current="true"]{background:var(--hover);color:var(--heading);font-weight:600}

/* ── Badges ─────────────────────────────────────────────────── */
.oa-shell .oa-badge{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 8px;border-radius:var(--radius-6);border:1px solid var(--line);color:var(--muted);font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;white-space:nowrap;vertical-align:middle}
.oa-shell .oa-badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.oa-shell .oa-badge.no-dot::before{display:none}
.oa-shell .oa-badge.is-ok{color:var(--ok);background:var(--ok-bg);border-color:var(--ok-line)}
.oa-shell .oa-badge.is-warn{color:var(--warn);background:var(--warn-bg);border-color:var(--warn-line)}
.oa-shell .oa-badge.is-err{color:var(--err);background:var(--err-bg);border-color:var(--err-line)}
.oa-shell .oa-badge.is-accent{color:var(--accent);border-color:var(--line)}
html[data-lms-theme="light"] .oa-shell .oa-badge.is-ok,html[data-lms-theme="light"] .oa-shell .oa-badge.is-warn,html[data-lms-theme="light"] .oa-shell .oa-badge.is-err{color:var(--text)}
html[data-lms-theme="light"] .oa-shell .oa-badge.is-ok::before{background:var(--ok)}
html[data-lms-theme="light"] .oa-shell .oa-badge.is-warn::before{background:var(--warn)}
html[data-lms-theme="light"] .oa-shell .oa-badge.is-err::before{background:var(--err)}
.oa-shell .oa-count{min-width:18px;height:16px;padding:0 5px;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-pill);background:var(--coral);color:#ffffff;font-family:var(--mono);font-size:9px;font-weight:600;letter-spacing:0}

/* ── Tabs ───────────────────────────────────────────────────── */
.oa-shell .oa-tabs{display:flex;gap:var(--space-4);border-bottom:1px solid var(--line-2);overflow-x:auto;scrollbar-width:none;margin:0 0 var(--space-16)}
.oa-shell .oa-tabs::-webkit-scrollbar{display:none}
.oa-shell .oa-tab{position:relative;display:inline-flex;align-items:center;gap:6px;padding:10px 12px;background:none;border:0;color:var(--muted);font-family:var(--mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;white-space:nowrap;cursor:pointer;text-decoration:none}
.oa-shell .oa-tab:hover{color:var(--text)}
.oa-shell .oa-tab[aria-selected="true"],.oa-shell .oa-tab[aria-current="page"]{color:var(--heading);font-weight:600}
.oa-shell .oa-tab[aria-selected="true"]::after,.oa-shell .oa-tab[aria-current="page"]::after{content:"";position:absolute;left:8px;right:8px;bottom:-1px;height:2px;border-radius:2px 2px 0 0;background:var(--accent)}
.oa-shell .oa-tab:focus-visible{outline-offset:-2px}
.oa-shell .oa-tab-count{font-size:10px;font-weight:400;padding:0 6px;border-radius:var(--radius-pill);background:var(--code-bg);color:var(--muted);letter-spacing:0}
.oa-shell .oa-tabpanel:focus{outline:none}

/* ── Data table ─────────────────────────────────────────────── */
.oa-shell .oa-table-card{overflow:hidden}
/* The card is the container, not the viewport: the sidebar rail and the drawer change how much
   room a table has at the same screen width. Secondary columns give way below 960px of card. */
.oa-shell .oa-table-card{container-type:inline-size;container-name:oa-table}
@container oa-table (max-width: 959px){.oa-shell .oa-table :is(th,td).is-secondary{display:none}}
.oa-shell .oa-toolbar{display:flex;align-items:center;gap:var(--space-8);flex-wrap:wrap;padding:var(--space-14);border-bottom:1px solid var(--line-2)}
.oa-shell .oa-toolbar .oa-search{flex:1 1 220px;max-width:320px}
.oa-shell .oa-toolbar .spacer{flex:1}
.oa-shell .oa-chip{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 6px 0 10px;border:1px solid var(--line);border-radius:var(--radius-pill);font-family:var(--mono);font-size:11px;color:var(--text);background:var(--glass-fill)}
.oa-shell .oa-chip button{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;border:0;background:none;color:var(--muted);border-radius:50%;cursor:pointer;padding:0}
.oa-shell .oa-chip button:hover{color:var(--text);background:var(--hover)}
.oa-shell .oa-bulkbar{display:flex;align-items:center;gap:var(--space-8);flex-wrap:wrap;padding:8px var(--space-14);background:var(--hover);border-bottom:1px solid var(--line-2);font-family:var(--mono);font-size:12px;color:var(--text)}
.oa-shell .oa-bulkbar .spacer{flex:1}
.oa-shell .oa-table-scroll{overflow-x:auto}
.oa-shell .oa-table{width:100%;border-collapse:collapse;font-size:14px;margin:0}
.oa-shell .oa-table th{position:sticky;top:0;z-index:1;text-align:left;padding:0 var(--space-14);height:38px;background:var(--panel);backdrop-filter:blur(8px);border-bottom:1px solid var(--line-2);font-family:var(--mono);font-size:10px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);white-space:nowrap}
.oa-shell .oa-table th.num,.oa-shell .oa-table td.num{text-align:right}
.oa-shell .oa-table th a{display:inline-flex;align-items:center;gap:4px;color:inherit;text-decoration:none}
.oa-shell .oa-table th a:hover{color:var(--text)}
.oa-shell .oa-table th a .oa-ico{width:12px;height:12px;opacity:.5}
.oa-shell .oa-table th[aria-sort="ascending"] a,.oa-shell .oa-table th[aria-sort="descending"] a{color:var(--heading)}
.oa-shell .oa-table th[aria-sort="ascending"] a .oa-ico,.oa-shell .oa-table th[aria-sort="descending"] a .oa-ico{opacity:1;color:var(--accent)}
.oa-shell .oa-table td{padding:8px var(--space-14);height:52px;border-bottom:1px solid var(--line-2);vertical-align:middle;color:var(--text)}
.oa-shell .oa-table tbody tr:last-child td{border-bottom:0}
.oa-shell .oa-table tbody tr{transition:background .12s ease-out,opacity .2s ease-out}
.oa-shell .oa-table tbody tr:hover{background:var(--hover)}
.oa-shell .oa-table tbody tr[aria-selected="true"]{background:var(--glass-fill)}
.oa-shell .oa-table tbody tr[aria-selected="true"] td:first-child{box-shadow:inset 2px 0 0 var(--accent)}
.oa-shell .oa-table td.sel,.oa-shell .oa-table th.sel{width:44px;padding-right:0}
.oa-shell .oa-table td.act,.oa-shell .oa-table th.act{width:48px;text-align:right;padding-right:var(--space-8)}
.oa-shell .oa-table td.act .oa-pop-anchor{justify-content:flex-end}
.oa-shell .oa-person{display:flex;align-items:center;gap:var(--space-10);min-width:0}
.oa-shell .oa-person > div{min-width:0}
.oa-shell .oa-person b{display:block;font-weight:600;font-size:14px;color:var(--text)}
.oa-shell .oa-person b a{color:inherit;text-decoration:none}
.oa-shell .oa-person b a:hover{text-decoration:underline}
.oa-shell .oa-person span{display:block;font-family:var(--mono);font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis}
.oa-shell .oa-data{font-family:var(--mono);font-size:12px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.oa-shell .oa-table tr.is-pending,.oa-shell .oa-card.is-pending{opacity:.55}
.oa-shell .oa-table tr.is-restored{animation:oa-restore 1.2s ease-out}
@keyframes oa-restore{0%{background:var(--err-bg)}100%{background:transparent}}
.oa-shell .oa-empty{padding:var(--space-34) var(--space-22);text-align:center;color:var(--muted)}
.oa-shell .oa-empty b{display:block;font-size:18px;font-weight:700;letter-spacing:-.02em;color:var(--heading);margin-bottom:4px}
.oa-shell .oa-empty .oa-btn{margin-top:var(--space-14)}
.oa-shell .oa-pager{display:flex;align-items:center;justify-content:space-between;gap:var(--space-10);padding:var(--space-10) var(--space-14);border-top:1px solid var(--line-2);font-family:var(--mono);font-size:12px;color:var(--muted)}
.oa-shell .oa-pager .pg{display:flex;align-items:center;gap:var(--space-4)}
.oa-shell .oa-pager .oa-icon-btn[aria-disabled="true"]{opacity:.45;pointer-events:none}
.oa-shell .oa-pop-anchor{position:relative;display:inline-flex}

/* ── Modal (native <dialog>) ────────────────────────────────── */
.oa-shell .oa-modal{margin:auto;width:min(520px,calc(100vw - 32px));max-height:calc(100vh - 64px);padding:0;border:1px solid var(--line);border-radius:var(--radius-12);background:var(--panel-solid);color:var(--text);box-shadow:var(--shadow-overlay);overflow:hidden}
.oa-shell .oa-modal[open]{display:flex;flex-direction:column;animation:oa-modal-in .18s ease-out}
.oa-shell .oa-modal.is-wide{width:min(760px,calc(100vw - 32px))}
.oa-shell .oa-modal::backdrop{background:var(--scrim,rgba(0,0,0,.6));backdrop-filter:blur(3px)}
.oa-shell .oa-modal > form{display:flex;flex-direction:column;min-height:0;margin:0}
.oa-shell .oa-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-16);padding:var(--space-18) var(--space-18) 0}
.oa-shell .oa-modal-head h2{margin:0;font-size:18px;line-height:1.3;font-weight:700;letter-spacing:-.02em;text-transform:none;color:var(--heading)}
.oa-shell .oa-modal-head p{font-size:13px;color:var(--soft);margin:4px 0 0}
.oa-shell .oa-modal-body{padding:var(--space-18);overflow-y:auto}
.oa-shell .oa-modal-foot{display:flex;align-items:center;justify-content:flex-end;gap:var(--space-8);flex-wrap:wrap;padding:var(--space-14) var(--space-18);border-top:1px solid var(--line-2)}
.oa-shell .oa-modal-foot .left{margin-right:auto;font-size:12px;color:var(--muted)}
@keyframes oa-modal-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}

/* ── Toasts ─────────────────────────────────────────────────── */
.oa-toaster{position:fixed;z-index:90;right:var(--space-16);bottom:var(--space-16);display:flex;flex-direction:column;gap:var(--space-8);width:min(360px,calc(100vw - 32px));margin:0;padding:0;list-style:none;pointer-events:none}
.oa-toaster .oa-toast{pointer-events:auto;display:grid;grid-template-columns:auto 1fr auto;gap:2px var(--space-10);align-items:start;padding:12px 12px 12px 14px;background:var(--panel-solid);border:1px solid var(--line);border-radius:var(--radius-12);box-shadow:var(--shadow-overlay);animation:oa-toast-in .2s ease-out}
html[data-lms-theme="light"] .oa-toaster .oa-toast{border-color:var(--glass-line)}
.oa-toaster .oa-toast > .oa-ico{margin-top:2px;color:var(--muted)}
.oa-toaster .oa-toast.is-ok > .oa-ico{color:var(--ok)}
.oa-toaster .oa-toast.is-warn > .oa-ico{color:var(--warn)}
.oa-toaster .oa-toast.is-err > .oa-ico{color:var(--err)}
.oa-toaster .oa-toast b{font-size:14px;font-weight:600;color:var(--heading)}
.oa-toaster .oa-toast p{grid-column:2;margin:0;font-size:13px;line-height:1.5;color:var(--soft)}
.oa-toaster .oa-toast .oa-toast-actions{grid-column:2;display:flex;gap:var(--space-8);margin-top:6px}
.oa-toaster .oa-toast .oa-icon-btn{width:24px;height:24px;grid-row:1;grid-column:3}
@keyframes oa-toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ── Skeleton frames (bars are the shared .skel from /lms.css) ── */
.oa-shell .oa-skel-stack{display:flex;flex-direction:column;gap:var(--space-10)}
.oa-shell .oa-skel-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:var(--space-14);align-items:center;height:52px;padding:0 var(--space-14);border-bottom:1px solid var(--line-2)}
.oa-shell .oa-skel-row:last-child{border-bottom:0}

/* ── Utility ────────────────────────────────────────────────── */
.oa-shell .oa-muted{color:var(--muted)}
.oa-shell .oa-mono{font-family:var(--mono)}
.oa-shell .oa-prose{font-size:14px;line-height:1.6;color:var(--soft);max-width:72ch}
.oa-shell .oa-prose a{color:var(--accent)}
.oa-shell .oa-stack{display:flex;flex-direction:column;gap:var(--space-16)}
.oa-shell .oa-row{display:flex;align-items:center;gap:var(--space-8);flex-wrap:wrap}

@media (max-width:640px){
  .oa-shell .oa-toolbar .oa-search{max-width:none}
  .oa-shell .oa-pager{flex-wrap:wrap}
}

/* ── Callout (a note that changes what the page does) ───────── */
.oa-shell .oa-callout{padding:var(--space-14) var(--space-18);gap:4px}
.oa-shell .oa-callout b{font-size:14px;font-weight:600;color:var(--heading)}
.oa-shell .oa-callout p{margin:0;font-size:13px;color:var(--soft)}
.oa-shell .oa-callout.is-warn{border-color:var(--warn-line);background:var(--warn-bg)}
.oa-shell .oa-callout.is-err{border-color:var(--err-line);background:var(--err-bg)}

/* ── Disclosure (a <summary> that folds an in-place form) ───── */
.oa-shell .oa-disclosure{display:inline-flex;align-items:center;gap:6px;padding:4px 0;font-family:var(--mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);cursor:pointer;list-style:none}
.oa-shell .oa-disclosure::-webkit-details-marker{display:none}
.oa-shell .oa-disclosure::before{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .15s ease-out}
.oa-shell details[open] > .oa-disclosure::before{transform:rotate(45deg)}
.oa-shell .oa-disclosure:hover{color:var(--text)}

/* A fold inside a card, below its table: the card's own padding and a hairline above. */
.oa-shell .oa-card-details{padding:var(--space-10) var(--space-18) var(--space-14);border-top:1px solid var(--line-2)}
.oa-shell .oa-card-body:not(.is-flush) > .oa-card-details{padding:var(--space-10) 0 0;margin-top:var(--space-10)}

/* Answer options of a quiz question; the correct one is marked with a word, not a tick alone. */
.oa-shell .oa-options{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.oa-shell .oa-options li{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--line-2);border-radius:var(--radius-8);font-family:var(--mono);font-size:13px;color:var(--text)}
.oa-shell .oa-options li[aria-current="true"]{border-color:var(--ok-line)}

/* Media library toolbar: compact filters whose options name themselves ("All kinds", "Newest first"),
   so their labels are for screen readers only. */
.oa-shell .media-toolbar .media-filter{flex:0 1 auto;min-width:0}
.oa-shell .media-toolbar .media-filter .oa-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.oa-shell .media-toolbar .media-filter .oa-select{height:34px;font-size:12px;max-width:220px}

/* ── Chart (line/area over time) ───────────────────────────── */
.oa-shell .oa-chart{display:block;width:100%;height:auto}
.oa-shell .oa-chart .grid-l{stroke:var(--line-2);stroke-width:1}
.oa-shell .oa-chart text{fill:var(--muted);font-family:var(--mono);font-size:10px}
.oa-shell .oa-chart .area{fill:var(--accent);opacity:.12}
.oa-shell .oa-chart .s1-line{fill:none;stroke:var(--accent);stroke-width:2;stroke-linejoin:round}
.oa-shell .oa-chart .s2-line{fill:none;stroke:var(--accent-light);stroke-width:2;stroke-linejoin:round}

/* ── Section head (a sub-page heading under tabs) ───────────── */
.oa-shell .oa-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--space-16);flex-wrap:wrap;margin:0 0 var(--space-16)}
.oa-shell .oa-section-head .oa-hint{margin:4px 0 0;max-width:80ch}
.oa-shell :is(.oa-card,.oa-grid,.oa-section,.oa-stack,.oa-table-card) + .oa-section{margin-top:var(--space-16)}
.oa-shell .oa-table tr.oa-detail-row td{height:auto;padding-top:0;padding-bottom:8px}
.oa-shell .oa-table tbody tr.oa-detail-row:hover{background:transparent}

/* Long breadcrumbs and titles wrap rather than widening a phone screen. */
.oa-shell .oa-pagehead > div{min-width:0;max-width:100%}
.oa-shell .oa-crumbs{flex-wrap:wrap}
.oa-shell .oa-title,.oa-shell .oa-subtitle{overflow-wrap:anywhere}

/* A cell holding more than one badge: an event's stage plus "Overridden". */
.oa-shell .oa-badges{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}

/* ── Command palette (⌘K) ──────────────────────────────────────
   A modal with one field and a list that follows it. The active option is the one Enter opens,
   marked like the sidebar's current item: hover fill, heading text, accent glyph. */
.oa-shell .oa-palette{display:flex;flex-direction:column;gap:var(--space-10);padding-top:var(--space-10)}
.oa-shell .oa-palette-field .oa-input{height:42px;font-size:14px}
.oa-shell .oa-palette-results{max-height:min(52vh,420px);overflow-y:auto;margin:0 calc(var(--space-8) * -1)}
.oa-shell .oa-palette-group + .oa-palette-group{margin-top:var(--space-8)}
.oa-shell .oa-palette-group-label{padding:6px var(--space-8);font-family:var(--mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.oa-shell .oa-palette-item{display:flex;align-items:center;gap:var(--space-10);padding:8px var(--space-8);border-radius:var(--radius-8);color:var(--text);text-decoration:none}
.oa-shell .oa-palette-item .oa-ico{color:var(--muted-2);flex:none}
.oa-shell .oa-palette-item[aria-selected="true"]{background:var(--hover);color:var(--heading)}
.oa-shell .oa-palette-item[aria-selected="true"] .oa-ico{color:var(--accent)}
.oa-shell .oa-palette-text{flex:1;min-width:0}
.oa-shell .oa-palette-text b{display:block;font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.oa-shell .oa-palette-text span{display:block;font-family:var(--mono);font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.oa-shell .oa-palette-status{margin:0;font-family:var(--mono);font-size:11px;color:var(--muted)}

/* ── Event details form (create modal, console Details tab) ─────
   Fields are written as <label>Name<input/></label>, so they are styled by element, inside this
   form only: a mono uppercase label over an admin control. Previews of what registrants will see
   (.hack-track-help, .hack-brief-body, .hack-reg-summary) keep the participant look on purpose. */
.oa-shell .oa-event-form{display:flex;flex-direction:column;gap:var(--space-16)}
.oa-shell .oa-event-form label:not(.oa-check){display:flex;flex-direction:column;gap:6px;margin:0;font-family:var(--mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.oa-shell .oa-event-form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),select,textarea){display:block;width:100%;height:38px;margin:0;padding:0 12px;background:var(--input);color:var(--text);border:1px solid var(--line);border-radius:var(--radius-8);font-family:var(--mono);font-size:14px;letter-spacing:0;text-transform:none;color-scheme:inherit;transition:border-color .15s ease-out}
.oa-shell .oa-event-form textarea{height:auto;min-height:92px;padding:10px 12px;line-height:1.5;resize:vertical}
.oa-shell .oa-event-form :is(input,select,textarea):hover{border-color:var(--btn-hover-border)}
.oa-shell .oa-event-form :is(input,select,textarea):focus{outline:2px solid var(--accent);outline-offset:-1px;border-color:var(--accent)}
.oa-shell .oa-event-form :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
.oa-shell .oa-event-form .oa-hint{font-family:var(--sans);letter-spacing:0;text-transform:none}
.oa-shell .oa-event-form .oa-hint code{font-size:11px}
.oa-shell .oa-fieldset{display:flex;flex-direction:column;gap:var(--space-14);min-width:0;margin:0;padding:var(--space-16) 0 0;border:0;border-top:1px solid var(--line-2)}
.oa-shell .oa-fieldset > legend{float:left;width:100%;margin:0 0 var(--space-4);padding:0;font-family:var(--mono);font-size:12px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--heading)}
.oa-shell .oa-fieldset > legend + *{clear:both}
.oa-shell .oa-form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-14) var(--space-16)}
@media (max-width:560px){.oa-shell .oa-form-row{grid-template-columns:1fr}}
.oa-shell .oa-choice-group{padding-top:0;border-top:0}
.oa-shell .oa-choice-group > legend{font-size:11px;font-weight:400;letter-spacing:.06em;color:var(--muted)}
.oa-shell .oa-choice{display:flex;flex-wrap:wrap;gap:var(--space-8) var(--space-16)}
.oa-shell .oa-brief-tabs{display:flex;align-items:center;gap:var(--space-8)}
.oa-shell .oa-brief-tabs .oa-hint{margin-left:auto}
.oa-shell .oa-brief-pane[hidden]{display:none}
.oa-shell .oa-brief-preview{min-height:120px;padding:var(--space-14) var(--space-16);border:1px solid var(--line);border-radius:var(--radius-8);background:var(--glass-fill)}
.oa-shell .oa-event-form-foot{display:flex;justify-content:flex-end;padding-top:var(--space-16);border-top:1px solid var(--line-2)}

/* ── Certificate template editor ───────────────────────────────
   The document on the left, what it says on the right. The preview stays in view while the
   fields scroll beside it; below 1100px the two stack, preview first. */
.oa-shell .oa-cert-editor{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:var(--space-16);align-items:start}
@media (max-width:1100px){.oa-shell .oa-cert-editor{grid-template-columns:minmax(0,1fr)}}
.oa-shell .oa-cert-preview{position:sticky;top:var(--space-16)}
@media (max-width:1100px){.oa-shell .oa-cert-preview{position:static}}
.oa-shell .oa-cert-preview .oa-card-head{align-items:flex-start}
.oa-shell .oa-cert-preview .oa-card-head .oa-hint{margin-top:4px}
.oa-shell .oa-cert-preview-actions{display:flex;align-items:center;gap:var(--space-10);flex:none}
.oa-shell .oa-cert-paper{padding:var(--space-14);border:1px solid var(--line-2);border-radius:var(--radius-8);background:var(--glass-fill);transition:opacity .15s ease-out}
.oa-shell .oa-cert-paper[data-stale]{opacity:.6}
.oa-shell .oa-cert-paper .certpage-doc{box-shadow:var(--shadow-card)}
.oa-shell .oa-cert-settings .oa-form{grid-template-columns:minmax(0,1fr)}
.oa-shell .oa-cert-settings .oa-form[hidden]{display:none}
.oa-shell .oa-cert-settings-note{margin:0 0 var(--space-14)}
.oa-shell .oa-cert-settings-foot{position:sticky;bottom:0;background:var(--bg-2);border-radius:0 0 var(--radius-12) var(--radius-12)}
.oa-shell .oa-cert-signers{padding-top:var(--space-14);border-top:1px solid var(--line-2)}
.oa-shell .oa-cert-signers ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px;font-size:14px;color:var(--text)}
.oa-shell .oa-cert-signers p{margin:0;font-size:14px;color:var(--text)}
.oa-shell .oa-cert-signers .oa-link{display:inline-flex;align-items:center;gap:4px}

/* ── Cohorts: seat bar, timeline, pace chart, furthest behind ───────────────────────────────
   Accent while there is room, warn from 85%, and a full cohort says so in a word (and its waitlist)
   rather than by colour alone. Unlimited cohorts show a count and no bar. */
.oa-shell .oa-seat{display:inline-flex;align-items:center;gap:var(--space-8);white-space:nowrap}
.oa-shell .oa-seat-num{font-family:var(--mono);font-size:12px;color:var(--text);min-width:40px}
.oa-shell .oa-seat-cap{font-family:var(--mono);font-size:11px;color:var(--muted)}
.oa-shell .oa-seat-track{width:84px;height:6px;border-radius:3px;background:var(--code-bg);overflow:hidden}
.oa-shell .oa-seat-fill{display:block;height:100%;background:var(--accent);border-radius:0 3px 3px 0}
.oa-shell .oa-seat.is-near .oa-seat-fill,.oa-shell .oa-seat.is-full .oa-seat-fill{background:var(--warn)}
.oa-shell .oa-seat.is-full .oa-seat-fill{border-radius:3px}

/* Name column · lane on a shared axis · seats column. Running bars are solid accent, upcoming ones
   outlined, a full one in warn and labelled. Today is a vertical accent rule through every lane. */
.oa-shell .oa-tl{display:flex;flex-direction:column}
.oa-shell .oa-tl-head,.oa-shell .oa-tl-row{display:grid;grid-template-columns:220px minmax(0,1fr) 210px;gap:var(--space-14);align-items:center}
.oa-shell .oa-tl-head{height:28px;border-bottom:1px solid var(--line-2)}
.oa-shell .oa-tl-axis{position:relative;height:100%;overflow:hidden}
/* Month labels stop at the lane: one that starts near the right edge would otherwise run into the Seats heading. */
.oa-shell .oa-tl-tick{position:absolute;top:7px;padding-left:6px;border-left:1px solid var(--line-2);font-family:var(--mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.oa-shell .oa-tl-today-label{position:absolute;top:4px;transform:translateX(-50%);padding:1px 6px;border-radius:var(--radius-6);background:var(--accent);color:#0a0a0a;font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase}
html[data-lms-theme="light"] .oa-shell .oa-tl-today-label{color:#ffffff}
.oa-shell .oa-tl-seats-h{font-family:var(--mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.oa-shell .oa-tl-row{min-height:52px;border-bottom:1px solid var(--line-2)}
.oa-shell .oa-tl-row:last-child{border-bottom:0}
.oa-shell .oa-tl-name{min-width:0}
.oa-shell .oa-tl-name b{display:block;font-size:14px;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.oa-shell .oa-tl-name span{display:block;font-family:var(--mono);font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.oa-shell .oa-tl-lane{position:relative;height:52px}
.oa-shell .oa-tl-today{position:absolute;top:0;bottom:0;width:0;border-left:2px solid var(--accent);opacity:.7}
.oa-shell .oa-tl-bar{position:absolute;top:14px;height:24px;display:flex;align-items:center;padding:0 8px;border-radius:var(--radius-6);border:1px solid var(--accent);text-decoration:none;overflow:hidden}
.oa-shell .oa-tl-bar.is-running{background:var(--accent)}
.oa-shell .oa-tl-bar.is-running .oa-tl-bar-text{color:#0a0a0a}
html[data-lms-theme="light"] .oa-shell .oa-tl-bar.is-running .oa-tl-bar-text{color:#ffffff}
.oa-shell .oa-tl-bar.is-upcoming{background:var(--glass-fill)}
.oa-shell .oa-tl-bar.is-upcoming .oa-tl-bar-text{color:var(--text)}
.oa-shell .oa-tl-bar.is-full{border-color:var(--warn);box-shadow:inset 0 0 0 1px var(--warn)}
.oa-shell .oa-tl-bar.is-running.is-full{background:var(--warn)}
html[data-lms-theme="light"] .oa-shell .oa-tl-bar.is-running.is-full .oa-tl-bar-text{color:#ffffff}
.oa-shell .oa-tl-bar.is-upcoming.is-full{background:var(--warn-bg)}
.oa-shell .oa-tl-bar.clip-l{border-top-left-radius:0;border-bottom-left-radius:0;border-left-style:dashed}
.oa-shell .oa-tl-bar.clip-r{border-top-right-radius:0;border-bottom-right-radius:0;border-right-style:dashed}
.oa-shell .oa-tl-bar:hover{filter:brightness(1.08)}
.oa-shell .oa-tl-bar:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.oa-shell .oa-tl-bar-text{font-family:var(--mono);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:900px){.oa-shell .oa-tl-head,.oa-shell .oa-tl-row{grid-template-columns:140px minmax(0,1fr)}.oa-shell .oa-tl-seats,.oa-shell .oa-tl-seats-h{display:none}}

/* Every student's cumulative lessons against the dashed even-pace line. On pace is quiet, behind is
   warn, and the four furthest behind are heavier and tagged with initials. */
.oa-shell .oa-pace{height:260px}
.oa-shell .oa-pace-exp{stroke:var(--accent-light);stroke-width:1.5;stroke-dasharray:5 4}
.oa-shell .oa-pace-now{stroke:var(--accent);stroke-width:1.5;opacity:.7}
.oa-shell .oa-chart .oa-pace-now-t{fill:var(--accent)}
.oa-shell .oa-pace-s path{fill:none;stroke-width:1.25}
.oa-shell .oa-pace-s.is-ok path{stroke:var(--muted-2);opacity:.7}
.oa-shell .oa-pace-s.is-behind path{stroke:var(--warn);opacity:.55}
.oa-shell .oa-pace-s.is-worst path{stroke:var(--warn);stroke-width:2.25}
.oa-shell .oa-pace-s.is-worst circle{fill:var(--warn)}
.oa-shell .oa-chart .oa-pace-tag{fill:var(--warn);font-weight:600}
.oa-shell .oa-pace-legend{margin-bottom:var(--space-8);flex-wrap:wrap}
.oa-shell .oa-pace-legend i{height:2px;width:14px;border-radius:1px}
.oa-shell .oa-pace-legend i.exp{background:repeating-linear-gradient(90deg,var(--accent-light) 0 5px,transparent 5px 8px)}
.oa-shell .oa-pace-legend i.ok{background:var(--muted-2)}
.oa-shell .oa-pace-legend i.behind{background:var(--warn);opacity:.55}
.oa-shell .oa-pace-legend i.worst{background:var(--warn);height:3px}

/* Furthest behind: the four names the chart tags, with what they have done against what was due. */
.oa-shell .oa-behind{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.oa-shell .oa-behind li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:var(--space-10);align-items:center;padding:10px 0;border-bottom:1px solid var(--line-2)}
.oa-shell .oa-behind li:last-child{border-bottom:0}
.oa-shell .oa-behind b{display:block;font-size:14px;font-weight:600;color:var(--text)}
.oa-shell .oa-behind div span{display:block;font-family:var(--mono);font-size:11px;color:var(--muted)}
.oa-shell .oa-behind .oa-behind-gap{font-family:var(--mono);font-size:13px;font-weight:600;color:var(--warn)}

/* Instructors in a table cell: up to three initials overlapped, the first name beside them. */
.oa-shell .oa-stack-avatars{display:inline-flex;align-items:center;gap:var(--space-8);white-space:nowrap}
.oa-shell .oa-stack-avatars .faces{display:inline-flex}
.oa-shell .oa-stack-avatars .faces .oa-avatar + .oa-avatar{margin-left:-8px}
.oa-shell .oa-stack-avatars .who{font-size:13px;color:var(--text)}
.oa-shell .oa-stack-avatars .more{font-family:var(--mono);font-size:11px;color:var(--muted)}
.oa-shell .oa-table td.oa-data{white-space:nowrap}

/* Picking several instructors: a checkbox list in a bordered box that scrolls when it is long. */
.oa-shell .oa-multi{display:flex;flex-direction:column;gap:2px;max-height:168px;overflow:auto;padding:6px var(--space-8);border:1px solid var(--line);border-radius:var(--radius-8);background:var(--panel)}
.oa-shell .oa-multi .oa-check{padding:5px 2px;width:100%}
.oa-shell .oa-multi .oa-check small{margin-left:auto;font-family:var(--mono);font-size:11px;color:var(--muted)}
.oa-shell .oa-cohort-form .oa-seats-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--space-14);align-items:end}
