@font-face {
  font-family: Runs;
  src: url(/assets/runs-regular.ttf) format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Runs;
  src: url(/assets/runs-medium.ttf) format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Runs;
  src: url(/assets/runs.ttf) format("truetype");
  font-display: swap;
  font-weight: 600 900;
}
:root {
  color-scheme: light;
  --ink: #142b48;
  --muted: #596981;
  --line: #dbe2ed;
  --line-soft: #e7edf5;
  --paper: #fff;
  --page: #f4f6fa;
  --accent: #173eac;
  --accent-dark: #0d245f;
  --tint: #eaf0fb;
  --good: #206146;
  --warn: #855116;
  --bad: #922c32;
  font: 15px/1.5 Runs, Verdana, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  vertical-align: middle;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.5em 0.86em;
  background: white;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.42;
}
button:hover:not(:disabled),
.btn:hover {
  background: #f0f4fc;
  border-color: #9db4e0;
  text-decoration: none;
}
button.primary,
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
button.primary:hover:not(:disabled),
.btn.primary:hover {
  background: var(--accent-dark);
}
button.link {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
button.quiet {
  background: transparent;
}
.danger {
  color: var(--bad);
}
:focus-visible {
  outline: 3px solid #2462bc;
  outline-offset: 3px;
}
.skip {
  position: fixed;
  top: -6rem;
  left: 1rem;
  z-index: 100;
  background: white;
  padding: 1rem;
}
.skip:focus {
  top: 0.5rem;
}
.shell {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  --header-height: 72px;
  min-height: 100vh;
}
.workspace {
  min-width: 0;
}
#sidebar {
  position: sticky;
  top: var(--header-height);
  align-self: start;
  height: calc(100dvh - var(--header-height));
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: auto;
}
/* Branding and workspace proportions follow the university's AI course portal. */
.identity {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: #1c3555;
  font: 650 14px/1.2 Runs, Verdana, sans-serif;
  text-decoration: none;
}
.identity:hover {
  text-decoration: none;
}
.identity img {
  width: 105px;
  height: 50px;
  object-fit: contain;
}
.identity > span {
  padding-left: 15px;
  border-left: 1px solid #cbd4e1;
}
.identity small {
  display: block;
  color: var(--muted);
  font: 600 10px/1.4 Verdana, sans-serif;
  letter-spacing: 0.09em;
  margin-top: 4px;
}
#navigation {
  display: grid;
  gap: 4px;
  padding: 24px 15px 16px;
}
#navigation a {
  display: flex;
  align-items: center;
  gap: 0.66rem;
  border-radius: 8px;
  text-decoration: none;
  color: #425774;
  padding: 0.65rem 0.78rem;
  font-size: 0.93rem;
  font-weight: 550;
}
#navigation a:hover {
  background: var(--page);
}
#navigation a[aria-current="page"] {
  background: var(--tint);
  color: var(--accent);
  font-weight: 700;
}
.nav-icon {
  display: inline-flex;
  align-items: center;
  width: 19px;
  flex: none;
}
.nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.nav-title {
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 17px 0.78rem 2px;
  font-weight: 600;
}
#sidebar-user {
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
  padding: 16px 19px;
  overflow-wrap: anywhere;
}
#sidebar-user small {
  display: block;
  color: var(--muted);
}
.top {
  position: sticky;
  top: 0;
  z-index: 6;
  grid-column: 1 / -1;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 9px clamp(18px, 2.1vw, 32px);
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
#crumb {
  margin-right: auto;
  padding-left: clamp(0px, 2vw, 32px);
  color: var(--muted);
}
#top-user {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.mobile {
  display: none;
}
#content {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(22px, 3.4vw, 56px) clamp(22px, 3.4vw, 56px) 5rem;
  outline: none;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: Runs, Verdana, sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  hyphens: auto;
}
h1 {
  font-size: clamp(2rem, 3.2vw, 3.45rem);
  line-height: 1.11;
  margin-bottom: 0.55rem;
}
h2 {
  font-size: clamp(1.18rem, 2.2vw, 1.65rem);
  line-height: 1.25;
  margin-bottom: 0.8rem;
}
h3 {
  font-size: 1.16rem;
  margin: 1.15rem 0 0.5rem;
}
.heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}
.heading p,
.subtle,
small {
  color: var(--muted);
}
.heading p {
  max-width: 72ch;
  margin-bottom: 0;
}
.heading .actions {
  flex-shrink: 0;
}
.heading > div {
  min-width: 0;
}
.actions,
.tabs,
.taglist,
.filters {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.actions {
  margin: 0.6rem 0;
}
.actions.end {
  justify-content: flex-end;
}
.tabs {
  margin: 0 0 1.2rem;
  border-bottom: 1px solid var(--line);
  gap: 4px;
}
.tabs a,
.tabs button {
  color: var(--muted);
  border: 0;
  text-decoration: none;
  background: transparent;
  padding: 0.78em 0.8em;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  font-weight: 600;
}
.tabs a[aria-current="page"],
.tabs button[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 650;
  background: #eaf0fc;
  color: #21488a;
}
.tag.good {
  color: var(--good);
  background: #e3f1e8;
}
.tag.warn {
  color: #785019;
  background: #fbf0d9;
}
.tag.bad {
  color: #882932;
  background: #fbe9eb;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: clamp(1rem, 2.4vw, 23px);
  margin: 1rem 0;
  min-width: 0;
}
.panel > h2:first-child,
.panel > h3:first-child {
  margin-top: 0;
}
.panel > p:last-child,
.panel > ol:last-child,
.panel > ul:last-child {
  margin-bottom: 0;
}
.settings-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
}
.settings-links li {
  display: flex;
}
.settings-links a {
  flex: 1;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8fc;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.settings-links a:hover {
  background: var(--tint);
  border-color: #9db4e0;
  text-decoration: underline;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0.85rem 1.15rem;
}
.grid.small {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
}
.grid label,
.field,
form > label {
  display: grid;
  align-content: start;
  gap: 5px;
  font-size: 0.91rem;
  font-weight: 600;
  min-width: 0;
}
.field small,
label small {
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 400;
}
.check {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  border: 1px solid #8291a6;
  border-radius: 6px;
  padding: 0.53em 0.64em;
  background: #fff;
  min-height: 37px;
  max-width: 100%;
  width: 100%;
}
input:read-only:not([type="checkbox"]),
textarea:read-only,
select:disabled {
  background: #f3f6fb;
  color: #4c5d74;
}
input[type="number"] {
  font-variant-numeric: tabular-nums;
}
textarea {
  resize: vertical;
  min-height: 5em;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 1rem 0;
  padding: 0.8rem 1rem;
}
legend {
  font-weight: 650;
  padding: 0 0.35rem;
}
details {
  margin: 0.7rem 0;
}
summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
}
hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 1rem 0;
}
.alert,
.empty {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin: 0.8rem 0;
}
.alert {
  background: #edf4ff;
  border-left: 3px solid #80a6db;
}
.alert.warn {
  background: #fff6e5;
  border-color: #a97720;
}
.alert.bad {
  background: #fff0f0;
  border-color: var(--bad);
}
.alert.good {
  background: #e9f5ef;
  border-color: var(--good);
}
.empty {
  border: 1px dashed #a9b9d1;
  color: var(--muted);
  text-align: center;
  padding: 1.7rem 1rem;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.table-scroll table {
  min-width: 100%;
  width: max-content;
  max-width: none;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
  line-height: 1.32;
}
th,
td {
  text-align: left;
  padding: 0.65rem 0.77rem;
  border-bottom: 1px solid var(--line-soft);
  max-width: 32em;
  vertical-align: top;
  overflow-wrap: anywhere;
}
th {
  font-size: 0.82rem;
  color: #536981;
  background: #f3f6fb;
  font-weight: 650;
}
tr:last-child td {
  border-bottom: 0;
}
td small {
  display: block;
  margin-top: 0.2rem;
}
.table-scroll input:not([type="checkbox"]),
.table-scroll select {
  min-width: 6em;
}
.table-scroll .name-input {
  min-width: 21em;
}
.num {
  text-align: right;
  white-space: nowrap;
}
.num button {
  font-variant-numeric: tabular-nums;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 0.7rem;
  margin: 1rem 0;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 1rem;
}
.metric small {
  display: block;
}
.metric strong {
  display: block;
  font-family: Runs, Verdana, sans-serif;
  color: var(--accent);
  font-size: clamp(1.15rem, 2.3vw, 1.65rem);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.metric.accent {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}
.metric.accent strong {
  color: white;
}
.metric.accent small {
  color: #dceafe;
}
.list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list > li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.list > li:last-child {
  border: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.checklist {
  max-height: 20rem;
  overflow: auto;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  padding: 0.6rem;
  border-radius: 6px;
}
.steps {
  display: flex;
  overflow: auto;
  gap: 5px;
  margin: 1rem 0;
  align-items: stretch;
  scrollbar-width: thin;
}
.steps button {
  flex-shrink: 0;
  font-size: 0.85rem;
}
.steps button[aria-current="step"] {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}
.steps .step-state {
  display: block;
  font-size: 0.72rem;
  opacity: 0.85;
}
.savebar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 0.64rem 0.85rem;
  box-shadow: 0 -5px 20px #17264b0c;
  margin-top: 1.1rem;
}
.savebar small {
  font-size: 0.85rem;
}
dialog {
  width: min(690px, calc(100vw - 2rem));
  max-height: 88dvh;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1rem, 3vw, 1.6rem);
  color: var(--ink);
  box-shadow: 0 20px 90px #17264b38;
}
dialog.wide {
  width: min(1200px, calc(100vw - 2rem));
}
dialog::backdrop {
  background: #142b4888;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.dialog-head button {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  padding: 0.1rem 0.4rem;
}
.dialog-head h2 {
  margin-top: 0.1rem;
}
dialog form {
  margin-top: 0.8rem;
}
.help-body {
  max-width: 950px;
}
.help-body li {
  margin: 0.45rem 0;
}
.help-body a {
  word-break: break-word;
}
.guest {
  display: block;
  min-height: 100svh;
  background: #f5f6f9;
}
.guest #sidebar,
.guest .top {
  display: none;
}
.guest #content {
  max-width: 1400px;
  padding: clamp(18px, 4.3vw, 72px);
}
.login {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(285px, 0.87fr);
  align-items: center;
  gap: clamp(30px, 5.8vw, 88px);
  min-height: min(74svh, 800px);
}
.login .identity {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  align-self: stretch;
  min-height: 440px;
  padding: clamp(28px, 4vw, 62px);
  color: white;
  background: radial-gradient(ellipse at 84% 75%, #2452a9, transparent 58%),
    linear-gradient(120deg, #112f73, #163e96 60%, #102c78);
  border-radius: 18px;
}
.login .identity::before,
.login .identity::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.login .identity::before {
  background-image: linear-gradient(#9abefa22 1px, transparent 1px),
    linear-gradient(90deg, #9abefa22 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(145deg, transparent 5%, black 90%);
}
.login .identity::after {
  background: repeating-radial-gradient(ellipse at 105% 125%, transparent 0 24px, #9ec2ff38 25px, transparent 26px);
  mask-image: linear-gradient(145deg, transparent 34%, black);
}
.login .identity img {
  width: 115px;
  height: auto;
  filter: brightness(0) invert(1);
}
.login .identity > span {
  padding: 0;
  border: 0;
  max-width: 10em;
  font-size: clamp(36px, 4.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}
.login .identity small {
  color: #dceafe;
  margin-top: 18px;
  letter-spacing: 0.1em;
}
.login .panel {
  width: 100%;
  max-width: 400px;
  justify-self: center;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}
.login .panel h2 {
  font-size: clamp(28px, 2.7vw, 42px);
  line-height: 1.15;
  margin-bottom: 1.4rem;
}
.login .field {
  margin: 0.95rem 0;
}
.login button.primary {
  margin-top: 0.45rem;
  width: 100%;
  padding: 0.75rem 1rem;
}
.filters input,
.filters select {
  max-width: 19rem;
}
.filters label {
  font-size: 0.85rem;
  min-width: 110px;
}
.filters label.grow {
  flex: 1;
  min-width: 190px;
}
.filters label.grow input {
  max-width: none;
}
.filters {
  align-items: flex-end;
}
.btn-sm {
  font-size: 0.82rem;
  padding: 0.36rem 0.6rem;
}
.trace-value {
  font-weight: 550;
  color: var(--accent);
  border: 0;
  border-bottom: 1px dotted #748fc5;
  padding: 0;
  border-radius: 0;
  background: transparent;
  line-height: 1.25;
  white-space: nowrap;
}
.trace-value:hover {
  background: var(--tint) !important;
}
.positive {
  color: var(--good);
}
.negative {
  color: var(--bad);
}
.nowrap {
  white-space: nowrap;
}
.break {
  overflow-wrap: anywhere;
}
#notifications {
  position: fixed;
  z-index: 12;
  bottom: 1rem;
  right: 1rem;
  max-width: min(560px, calc(100vw - 2rem));
  pointer-events: none;
}
#notifications:not(:empty) {
  padding: 0.7rem 1rem;
  background: #142b48;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 22px #142b4840;
}
.row-card {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.row-card:first-child {
  padding-top: 0;
}
.row-card:last-child {
  border-bottom: 0;
}
.scroll-options option {
  white-space: normal;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.loading {
  color: var(--muted);
  padding: 1rem;
}
.two {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(230px, 1fr);
  gap: 1rem;
}
.trace-list {
  padding-left: 1.3rem;
}
@media (max-width: 940px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .two {
    display: block;
  }
  .heading {
    display: block;
  }
  .heading .actions {
    margin-top: 1rem;
  }
  #content {
    padding: 1.3rem 1.2rem 4rem;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
    --header-height: 58px;
  }
  #sidebar {
    position: fixed;
    z-index: 7;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    visibility: hidden;
    transform: translateX(-102%);
    width: min(265px, 82vw);
    box-shadow: 7px 0 26px #17264b22;
  }
  #sidebar.open {
    visibility: visible;
    transform: translateX(0);
  }
  .mobile {
    display: inline-flex;
    font-size: 1.15rem;
    padding: 0.2rem 0.55rem;
  }
  .top {
    justify-content: flex-start;
    min-height: var(--header-height);
    padding: 0.6rem 1rem;
  }
  .top .identity img {
    width: 70px;
    height: 36px;
  }
  .top .identity > span, #crumb {
    display: none;
  }
  .top #top-user {
    margin-left: auto;
    font-size: 0.76rem;
    text-align: right;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #content {
    padding: 1.2rem 0.8rem 4rem;
  }
  .panel {
    padding: 1rem 0.85rem;
  }
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
  }
  .metric {
    padding: 0.7rem;
  }
  .guest #sidebar {
    display: none;
  }
  .tabs {
    gap: 0;
  }
  .tabs a,
  .tabs button {
    font-size: 0.85rem;
  }
  .guest #content {
    padding: 14px;
  }
  .login {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    min-height: auto;
  }
  .login .identity {
    min-height: 162px;
    gap: 18px;
    padding: 20px;
    border-radius: 13px;
  }
  .login .identity img {
    width: 76px;
  }
  .login .identity > span {
    font-size: 31px;
  }
  .login .identity small {
    margin-top: 7px;
  }
  .login .panel {
    padding: 0 7px 24px;
  }
  .steps {
    margin-left: 0;
  }
  .table-scroll table {
    font-size: 0.9rem;
  }
  .heading h1 {
    line-height: 1.16;
  }
}
@media print {
  #sidebar,
  .top,
  .steps,
  .savebar,
  .actions,
  .skip,
  #notifications {
    display: none;
  }
  .shell {
    display: block;
  }
  #content {
    padding: 0;
  }
  .panel {
    box-shadow: none;
    break-inside: auto;
  }
  .table-scroll {
    overflow: visible;
    border: 0;
  }
  .table-scroll table {
    min-width: 0;
    width: 100%;
    font-size: 9pt;
  }
  .metrics {
    display: flex;
  }
  .trace-value {
    color: inherit;
    border: 0;
  }
  .panel {
    margin: 0.5rem 0;
  }
}
#content[data-view="program"] .heading h1 {
  font-size: clamp(1.45rem, 2.3vw, 2.22rem);
  line-height: 1.18;
  max-width: 38ch;
}
#content[data-view="program"] .heading {
  align-items: flex-start;
  margin-bottom: 0.9rem;
}
#content[data-view="program"] .heading .actions {
  margin-top: 0;
}
.model-picker {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0.7rem 0;
}
.model-picker .field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-weight: 500;
}
.model-picker input {
  width: 5.5rem !important;
  text-align: right;
}
@media (max-width: 700px) {
  #content[data-view="program"] .heading h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  #content[data-view="program"] .heading .actions {
    margin-top: 0.7rem;
  }
  .model-picker {
    justify-content: flex-start;
  }
  .steps button {
    font-size: 0.78rem;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric strong {
    font-size: 1.12rem;
  }
}
.table-scroll th small {
  display: block;
  font-weight: 400;
  white-space: nowrap;
  margin-top: 0.2rem;
}

.registry-cohorts .cohort-heading td {
  padding: 0;
  max-width: none;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}
.cohort-group {
  display: flex;
  align-items: center;
  gap: .7rem;
  width: 100%;
  padding: .75rem .85rem;
  border: 0;
  border-radius: 0;
  text-align: left;
  background: transparent;
}
.cohort-group:hover, .cohort-group:focus-visible { background: var(--page); }
.cohort-chevron { font-size: 1.3rem; color: var(--accent); }
.cohort-group[aria-expanded="true"] .cohort-chevron { transform: rotate(90deg); }
.cohort-text { display: grid; gap: .2rem; }
.cohort-text > span, .cohort-count { font-size: .81rem; font-weight: 500; color: var(--muted); }
.cohort-count { margin-inline-start: auto; white-space: nowrap; }
.registry-cohorts td .tag + .tag { margin-left: .25rem; }
@media (max-width: 700px) {
  .cohort-group { width: min(100%, calc(100vw - 4rem)); }
  .cohort-count { white-space: normal; }
}

/* Searchable reference values remain readable even when the surrounding form is narrow. */
.combo-group, .combo-control { min-width: 0; max-width: 100%; }
.combo-control { position: relative; }
.combo-control > select {
  position: absolute !important; inset: 0 auto auto 0; width: 1px !important;
  height: 1px !important; min-width: 0 !important; min-height: 0 !important;
  padding: 0 !important; margin: 0; opacity: 0; pointer-events: none;
}
button.combo-field {
  width: 100%; min-height: 2.65rem; justify-content: space-between; text-align: start;
  background: #fff; color: var(--ink); font-weight: 400; border: 1px solid var(--line);
  padding: .48rem .7rem; white-space: normal; overflow-wrap: anywhere; line-height: 1.4;
}
button.combo-field:hover, button.combo-field[aria-expanded="true"] { border-color: var(--accent); }
.combo-field > span:first-child { min-width: 0; }
.combo-arrow { width: .5rem; height: .5rem; flex: none; margin: 0 .1rem .2rem .15rem;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); }
.combo-popup {
  position: fixed; z-index: 250; box-sizing: border-box; display: grid; gap: .25rem;
  padding: .5rem; border: 1px solid var(--line); border-radius: .6rem; background: #fff;
  color: var(--ink); box-shadow: 0 .5rem 1.8rem rgb(18 46 86 / 21%); font-weight: 400;
}
.combo-popup input { width: 100%; min-width: 0; }
.combo-list { overflow: auto; overscroll-behavior: contain; }
.combo-list [role=option], .combo-status:not(:empty) { padding: .5rem .55rem; overflow-wrap: anywhere; }
.combo-list [role=option] { cursor: pointer; border-radius: .25rem; line-height: 1.4; }
.combo-list [aria-selected=true] { font-weight: 600; color: var(--accent-dark); }
.combo-list [aria-selected=true]::before { content: "✓ "; }
.combo-list .highlighted, .combo-list [role=option]:hover { background: var(--tint); }
.combo-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .32rem; }
.combo-chips:empty { display: none; }
button.combo-chip, button.combo-clear { font-size: .78rem; min-height: 1.7rem; line-height: 1.35; }
button.combo-chip { text-align: start; overflow-wrap: anywhere; background: var(--tint); color: var(--accent-dark);
  border-color: transparent; border-radius: .65rem; padding: .2rem .45rem; }
button.combo-clear { border: 0; background: transparent; color: var(--accent); padding: .15rem .3rem; }
.filters .combo-group { min-width: min(12rem,100%); flex: 1 1 12rem; }
.filters:has(.combo-group) { align-items: flex-start; }
.combo-group label { min-width: 0; }

.registry-tools {
  margin: 1.25rem 0; display: flex; flex-wrap: wrap; align-items: end; gap: .75rem 1.1rem;
}
.registry-tools .field { margin: 0; }
.registry-tools #reg-count { margin: 0 0 .65rem auto; }
.registry-modes { display: inline-flex; align-items: center; padding: .2rem; background: var(--tint); border-radius: .6rem; }
.registry-modes button { background: transparent; border-color: transparent; color: var(--accent-dark); }
.registry-modes button[aria-pressed=true] { background: #fff; border-color: #a9bde5; box-shadow: 0 1px 3px #18315c1c; }
.registry-section { margin: 1.5rem 0 .6rem; overflow-wrap: anywhere; }
.registry-section td { background: var(--accent-dark); color: white; }
.registry-cards {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,21rem),1fr));
  gap: 1rem; align-items: start; margin-bottom: 1rem;
}
.program-card {
  --card-bg: #dfe9ff; --card-ink: #203d7b; --card-accent: #466bca;
  min-width: 0; border: 1px solid var(--line); border-top: .35rem solid var(--card-accent);
  background: #fff; border-radius: .85rem; overflow: hidden; overflow-wrap: anywhere;
  box-shadow: 0 .15rem .5rem rgb(17 36 68 / 6%);
}
.program-card:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.card-teal { --card-bg: #d8f2ec; --card-ink: #07564e; --card-accent: #21827b; }
.card-violet { --card-bg: #ebe4fc; --card-ink: #493280; --card-accent: #7852bc; }
.card-rust { --card-bg: #ffe8d4; --card-ink: #713b17; --card-accent: #b75b25; }
.card-band {
  background: var(--card-bg); color: var(--card-ink); display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: baseline; gap: .35rem .7rem; padding: .65rem .9rem;
}
.card-band strong { font-size: 1rem; }
.card-band span,.program-card dt,.intake-info,.intake-leader { font-size: .8rem; }
.card-body { padding: 1rem; }
.program-card .card-direction { font-size: .87rem; color: var(--muted); margin: 0 0 .2rem; }
.program-card h3 { font-size: 1.12rem; margin: 0 0 1rem; line-height: 1.35; }
.program-card dl { display: grid; gap: .5rem; margin: 0 0 .95rem; }
.program-card dt { color: var(--muted); }
.program-card dd { margin: 0; font-size: .87rem; }
button.card-open {
  margin: 0; width: 100%; padding: .65rem 1rem; border: none; border-top: 1px solid var(--line);
  border-radius: 0; background: var(--page); justify-content: space-between; color: var(--card-ink);
}
.card-open:hover { background: var(--card-bg); }
.card-open[aria-expanded=true] > span { transform: rotate(180deg); }
.intake-list { padding: 0; margin: 0; list-style: none; }
.intake-list li { border-top: 1px solid var(--line); padding: .85rem 1rem; }
.intake-title,.intake-action { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem; }
.intake-title > span,.intake-info { color: var(--muted); }
.intake-info,.intake-leader { margin: .3rem 0; }
.intake-title a { font-weight: 600; }
.intake-title > span,.intake-action { font-size: .8rem; }
.intake-action { padding-top: .65rem; }
@media (max-width: 600px) {
  .registry-tools { align-items: stretch; flex-direction: column; }
  .registry-tools #reg-count { margin: 0; }
  .registry-modes { align-self: start; }
}
.passport-wide { grid-column: 1 / -1; max-width: 100%; min-width: 0; }

.passport-term, .passport-parameters {
  min-inline-size: 0;
  margin-block: .7rem;
  padding: .45rem .85rem .7rem;
}
.passport-term-row, .passport-parameter-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  align-items: end;
}
.passport-term-row > .field { flex: 0 1 5.5rem; }
.passport-term-row > .passport-wide { flex: 1 1 min(100%, 15rem); max-width: 32rem; }
.passport-term-row #term-summary {
  margin: 0;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  font-size: .9rem;
}
.passport-parameter-row { align-items: center; column-gap: 1.75rem; }
.passport-parameter-row > .field {
  display: grid;
  grid-template-columns: minmax(0, auto) 9.75rem;
  align-items: center;
  gap: .6rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.passport-term-row button.combo-field, .passport-parameter-row button.combo-field { min-height: 37px; }
@media (max-width: 600px) {
  .passport-term-row > .passport-wide { flex-basis: 100%; max-width: none; }
  .passport-parameter-row > .field { flex-basis: 100%; grid-template-columns: minmax(0,1fr) minmax(6rem,9.75rem); }
}

.program-card .card-readiness { margin: 0 0 .4rem; color: var(--muted); font-size: .81rem; }
