:root {
  --ink: #172c30;
  --muted: #687b7d;
  --line: #dce5e4;
  --teal: #137b74;
  --mint: #e6f3ed;
  --bg: #f5f7f4;
  --white: #fff;
  --amber: #936216;
  --nav: #142d30;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font:
    14px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  padding: 10px 15px;
  font-weight: 600;
  transition: background 0.15s;
}
button:hover {
  filter: brightness(0.95);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: var(--teal);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfdcda;
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #89beb2;
  outline-offset: 1px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 10px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
  margin: 0 0 5px;
}
h3 {
  font-size: 15px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 12px;
}
.brand-mark {
  font:
    700 34px/1 Georgia,
    serif;
  color: #bde4ce;
}
.brand-mark span {
  color: #58b4a0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
  font-size: 20px;
  letter-spacing: -0.5px;
  margin-bottom: 36px;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: var(--nav);
  padding: 32px 20px;
  color: #a7bfbe;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 0 12px;
  color: #839e9d;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
nav button {
  background: none;
  color: #afc6c3;
  text-align: left;
  font-weight: 450;
  padding: 12px;
  display: flex;
  gap: 13px;
}
nav button.active {
  background: #294846;
  color: #d2f0df;
}
nav button:hover {
  background: #203f40;
}
nav .nav-link {
  color: #afc6c3;
  text-decoration: none;
  font-weight: 450;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  gap: 13px;
}
nav .nav-link:hover {
  background: #203f40;
}
nav .nav-link[hidden] {
  display: none;
}
.aside-bottom {
  margin-top: auto;
  font-size: 10px;
  letter-spacing: 0.5px;
  line-height: 2.2;
}
.aside-bottom small {
  color: #87a7a2;
}
.aside-bottom button {
  display: block;
  margin-top: 12px;
  background: none;
  padding: 0;
  font-size: 12px;
  color: #b5c9c6;
}
.status-dot {
  display: inline-block;
  background: #80c7a5;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 5px;
}
main {
  margin-left: 224px;
  padding: 38px 40px 24px;
  min-height: 100vh;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 26px;
}
header p:last-child {
  color: var(--muted);
  max-width: 650px;
  margin: 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
}
.secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}
.pill {
  display: inline-block;
  border-radius: 20px;
  padding: 3px 9px;
  background: #edf1ef;
  color: #536a65;
  font-size: 11px;
  white-space: nowrap;
}
.pill.good {
  color: #286950;
  background: var(--mint);
}
.pill.warn {
  color: var(--amber);
  background: #fff2d9;
}
.pill.bad {
  color: #b44343;
  background: #fbecec;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 13px;
}
.stat-number {
  font-size: 32px;
  font-weight: 550;
  letter-spacing: -1px;
  line-height: 1.2;
}
.stat-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.panel-header p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.grid-two {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}
.banner {
  background: #e9f1ec;
  border: 1px solid #cfdfd5;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.banner h3 {
  margin: 0 0 4px;
}
.banner p {
  margin: 0;
  color: #57736a;
  font-size: 12px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.toolbar input {
  max-width: 420px;
}
.toolbar select {
  max-width: 240px;
}
.toolbar .spacer {
  flex: 1;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 14px 12px;
  border-bottom: 1px solid #edf0ee;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
td .sub {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
}
td .name {
  font-weight: 550;
  overflow-wrap: anywhere;
}
.text-button {
  padding: 4px 0;
  background: none;
  color: var(--teal);
  font-size: 12px;
}
.empty {
  padding: 34px;
  text-align: center;
  color: var(--muted);
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 6px;
}
.bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 65px;
  align-items: center;
  gap: 12px;
  margin: 17px 0;
  font-size: 12px;
}
.bar-row > span:first-child {
  overflow-wrap: anywhere;
}
.bar {
  height: 7px;
  border-radius: 5px;
  background: #eaf0ed;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: #62a58f;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.benchmark-card,
.service-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
}
.benchmark-card h2 {
  margin: 14px 0 8px;
}
.benchmark-card .count {
  font-size: 25px;
  letter-spacing: -0.5px;
  margin: 12px 0;
}
.benchmark-card .count small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.benchmark-card .actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 19px;
}
.fingerprint {
  font:
    10px/1.5 ui-monospace,
    monospace;
  color: var(--muted);
  word-break: break-all;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.error {
  color: #af4040;
}
.notice {
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--mint);
  color: #295b47;
  margin-bottom: 20px;
}
.notice.error {
  background: #f9e7e4;
  color: #963e36;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.asset-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.asset-card img {
  height: 170px;
  width: 100%;
  object-fit: contain;
  background: #e9eeeb;
}
.asset-card .asset-info {
  padding: 12px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.asset-card .asset-info p {
  margin: 6px 0;
}
.pagination {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.service-card h2 {
  margin-bottom: 8px;
}
.service-card p {
  font-size: 12px;
  color: var(--muted);
}
.service-card a {
  font-size: 12px;
  font-weight: 600;
}
.service-status {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 12px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f1f5f2;
  border-radius: 8px;
  padding: 15px;
  font:
    11px/1.7 ui-monospace,
    monospace;
  max-height: 450px;
  overflow: auto;
}
code {
  font:
    11px/1.6 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  width: min(800px, 92vw);
  max-height: 90vh;
  box-shadow: 0 30px 100px #142d3020;
}
dialog::backdrop {
  background: #142d3070;
}
.dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  color: var(--muted);
  font-size: 25px;
  padding: 0 5px;
}
footer {
  display: flex;
  justify-content: space-between;
  color: #8b9a96;
  font-size: 10px;
  margin-top: 32px;
}
#login-screen {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(145deg, #102a2d, #274c46);
}
.login-card {
  width: 420px;
  background: #fcfdf9;
  border-radius: 16px;
  padding: 42px;
}
.login-card .brand-mark {
  color: var(--teal);
  font-size: 52px;
  margin-bottom: 30px;
}
.login-card h1 {
  font-size: 25px;
}
.login-card p {
  color: var(--muted);
}
.login-card form {
  margin: 28px 0;
}
.login-card form button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 15px;
}
.login-card small {
  font-size: 11px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  main {
    padding: 28px 24px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .asset-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 750px) {
  aside {
    width: 68px;
    padding: 25px 10px;
  }
  .brand strong,
  .nav-caption,
  nav span,
  .aside-bottom {
    display: none;
  }
  .brand {
    justify-content: center;
  }
  nav button,
  nav .nav-link {
    justify-content: center;
  }
  main {
    margin-left: 68px;
    padding: 24px 16px;
  }
  header {
    display: block;
  }
  .header-actions {
    padding-top: 12px;
  }
  .cards,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .asset-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .banner {
    display: block;
  }
  .banner button {
    margin-top: 15px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .login-card {
    margin: 18px;
    padding: 28px;
  }
  .stat {
    padding: 17px;
  }
  .stat-number {
    font-size: 25px;
  }
  footer {
    display: block;
  }
}

.sso-button {
  display: block;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 10px;
}
.hero-stat {
  background: var(--nav);
  color: var(--white);
  border-radius: 14px;
  padding: 26px 26px 22px;
}
.hero-stat.labelled {
  background: #155e59;
}
.hero-stat.segmented {
  background: #1f4d63;
}
.hero-stat .stat-label,
.hero-stat .stat-note {
  color: #bcd0cc;
}
.hero-number {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.1;
}
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.type-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}
.type-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: #0f1d1b;
}
.type-thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.type-empty {
  grid-column: 1 / -1;
  padding: 44px 12px;
  color: #bcd0cc;
  font-size: 12px;
  text-align: center;
}
.type-body {
  padding: 14px 16px 16px;
}
.type-body h3 {
  margin: 0 0 4px;
  font-size: 15px;
}
.type-count {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 750px) {
  .type-grid {
    grid-template-columns: 1fr;
  }
}
.hero-caption {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 24px;
}
.hero-stat.labelled,
.hero-stat.segmented {
  cursor: pointer;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.chips span {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #eef3f1;
  color: #3f5b53;
  white-space: nowrap;
}
.class-bars .bar-row {
  grid-template-columns: minmax(120px, 220px) 1fr 80px;
}
.sso-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0;
}
.sso-actions .sso-button {
  text-align: center;
}
.sso-button.outline {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--teal);
}
.notice.pending {
  background: #fdf5e6;
  color: #6b4a12;
}
.notice .toolbar {
  margin-top: 12px;
}
.text-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
}
@media (max-width: 900px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
}
.sso-actions .sso-button:not(.outline),
.notice .sso-button {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}
.notice .sso-button {
  display: inline-block;
}
.explorer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.explorer-tabs button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.explorer-tabs button.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}
.explorer-list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.explorer-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) 2fr 110px minmax(150px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.explorer-row:hover,
.file-type-card:hover {
  border-color: var(--teal);
}
.explorer-num {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.file-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.file-type-card {
  display: grid;
  gap: 7px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.file-type-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.file-type-count {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
@media (max-width: 1100px) {
  .file-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 750px) {
  .file-type-grid,
  .explorer-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.hero-stat.dicom {
  cursor: pointer;
}
.nav-group {
  margin: 16px 0 2px;
}
.hint {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  margin-top: 4px;
}
label.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 450;
  margin: 0;
}
label.check input {
  width: auto;
  margin-top: 3px;
}
textarea.code {
  font:
    12px/1.5 ui-monospace,
    monospace;
}
.row-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.row-actions button:not(.text-button) {
  padding: 6px 14px;
}
.text-button.danger {
  color: #af4040;
}
.copy-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.copy-box pre {
  flex: 1;
  margin: 0;
}
.log-view {
  min-height: 260px;
  max-height: 60vh;
}
.nowrap {
  white-space: nowrap;
}
.sample-group {
  margin-top: 22px;
}
.sample-group h3 {
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--teal);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.sample-source {
  margin-bottom: 16px;
}
.sample-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.sample-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}
.sample-strip figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #e9eeeb;
}
.sample-strip img {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: contain;
  background: #e9eeeb;
}
.sample-strip figcaption {
  font-size: 10px;
  color: var(--muted);
  padding: 4px 6px;
  background: var(--white);
}

/* Planning module: cone-beam series of the collection and clinical roles of accounts. */
.role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.role-chips button {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 10px;
  background: #eef3f1;
  color: #3f5b53;
  border: 1px solid transparent;
}
.role-chips button.granted {
  background: #d9ede3;
  color: #155e59;
  border-color: #9fcbb7;
}
.banner .sso-button {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  white-space: nowrap;
}
.banner .sso-button.disabled {
  opacity: 0.5;
  pointer-events: none;
}
/* Leaderboard: frontier and internal bars validated for colour-vision deficiency (dataviz validator);
   baselines recede in grey. The heat ramp is one teal hue, light to dark. */
.lb-filters {
  flex-wrap: wrap;
  align-items: flex-end;
}
.lb-field {
  margin: 0;
  min-width: 150px;
}
.lb-field select {
  margin-top: 6px;
}
.lb-kinds {
  display: flex;
  gap: 14px;
  border: 0;
  margin: 0;
  padding: 0;
}
.lb-kinds legend {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  padding: 0;
}
.lb-kinds label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 500;
}
.lb-kinds input {
  width: auto;
}
.lb-key {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.lb-frontier {
  background: #00897b;
}
.lb-internal {
  background: #c27c0e;
}
.lb-baseline {
  background: #a9b4b2;
}
.lb-chart {
  display: grid;
  gap: 2px;
}
.lb-row {
  display: grid;
  grid-template-columns: minmax(110px, 300px) 1fr 52px;
  align-items: center;
  gap: 12px;
  min-height: 24px;
  border-radius: 6px;
  padding: 0 4px;
}
.lb-row:not(.lb-axis-row):hover,
.lb-row:focus-visible {
  background: #f1f6f4;
  outline: none;
}
.lb-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
}
.lb-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-track {
  position: relative;
  height: 18px;
  background-image: linear-gradient(to right, #e7ecea 1px, transparent 1px);
  background-size: 25% 100%;
}
.lb-bar {
  position: absolute;
  left: 0;
  top: 2px;
  height: 14px;
  border-radius: 0 4px 4px 0;
}
.lb-chance {
  position: absolute;
  top: -1px;
  bottom: -1px;
  width: 1px;
  background: #5f6f6d;
}
.lb-value,
.lb-num {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.lb-value {
  font-size: 12px;
  font-weight: 600;
}
.lb-axis-row {
  min-height: 30px;
  align-items: end;
}
.lb-axis {
  position: relative;
  height: 30px;
}
.lb-tick,
.lb-chance-label {
  position: absolute;
  bottom: 2px;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.lb-chance-label {
  bottom: 16px;
  color: var(--ink);
  font-weight: 600;
}
.lb-tip {
  position: fixed;
  z-index: 50;
  max-width: 320px;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(20, 45, 48, 0.14);
  font-size: 12px;
  pointer-events: none;
}
.lb-tip[hidden] {
  display: none;
}
.lb-tip strong {
  font-size: 14px;
}
.lb-tip-line {
  color: var(--muted);
}
.lb-table th.lb-num {
  text-align: right;
  white-space: nowrap;
}
.lb-table td {
  padding: 8px 10px;
}
.lb-table td:first-child {
  min-width: 230px;
}
.lb-table .name {
  overflow-wrap: normal;
  white-space: nowrap;
}
.lb-table td.lb-num {
  min-width: 76px;
}
.lb-heat {
  font-weight: 600;
  border: 2px solid var(--white);
  border-radius: 6px;
}
.lb-empty {
  color: var(--muted);
}
.lb-mean {
  font-weight: 700;
}
.lb-note {
  margin: 12px 0 0;
}
.heat-0 { background: #cefbf6; color: var(--ink); }
.heat-1 { background: #a8e8e1; color: var(--ink); }
.heat-2 { background: #83d4cc; color: var(--ink); }
.heat-3 { background: #62c0b7; color: var(--ink); }
.heat-4 { background: #44aaa2; color: var(--ink); }
.heat-5 { background: #3aa097; color: var(--ink); }
.heat-6 { background: #1e7e77; color: #fff; }
.heat-7 { background: #1b6862; color: #fff; }
.heat-8 { background: #1d514d; color: #fff; }
.heat-9 { background: #1e3b39; color: #fff; }
.prompt-intro { padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.prompt-intro h2 { margin: 8px 0; }
.prompt-intro p { max-width: 620px; }
.prompt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.prompt-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.prompt-options input { width: auto; margin-right: 6px; }
.prompt-chart { padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.prompt-chart svg { width: 100%; height: auto; }
.prompt-chart text { fill: currentColor; font-size: 11px; }
.prompt-axis { stroke: #8b9da6; fill: none; }
.prompt-line { stroke: #25867b; fill: none; stroke-width: 2.5; }
.prompt-dot { fill: #25867b; }
#prompt-candidate-table { max-height: 50vh; overflow: auto; }
#prompt-candidate-table code { font-size: 11px; overflow-wrap: anywhere; }
#prompt-form fieldset { margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.prompt-split-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .prompt-split-counts { grid-template-columns: 1fr; } }
#prompt-scores { overflow-x: auto; margin-top: 20px; }
@media (max-width: 750px) { .prompt-intro { flex-direction: column; align-items: stretch; } }
@media (max-width: 750px) {
  .lb-row {
    grid-template-columns: minmax(90px, 40%) 1fr 44px;
    gap: 8px;
  }
}
/* Prompt experiment telemetry. Values are recorded counters, never animated estimates. */
.prompt-monitor { margin: 8px 0 26px; padding: clamp(18px, 3vw, 30px); border: 1px solid #ccdeda; border-radius: 20px; background: #fff; box-shadow: 0 8px 30px #173e3510; }
.prompt-monitor-head, .prompt-phase-heading, .prompt-progress-label, .prompt-experiments-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.prompt-monitor-head { padding-bottom: 20px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.prompt-monitor-head h2 { font-size: clamp(20px, 2.1vw, 28px); line-height: 1.25; overflow-wrap: anywhere; }
.prompt-monitor-head .eyebrow { margin: 0 0 6px; color: var(--teal); }
.prompt-live { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; color: #286a53; background: #edf7f0; border-radius: 20px; padding: 7px 11px; }
.prompt-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #3c9e74; flex-shrink: 0; }
.prompt-live.is-delayed { background: #fff5df; color: #865d13; }
.prompt-live.is-delayed::before { background: #b98925; }
.prompt-phase-heading { margin-bottom: 20px; }
.prompt-phase-tag { font-weight: 650; color: #3e6261; }
.prompt-phase-tag.is-active { color: var(--teal); }
.prompt-stats, .prompt-metric-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.prompt-stat { display: flex; flex-direction: column; min-width: 0; font-variant-numeric: tabular-nums; }
.prompt-stat > span { color: var(--muted); font-size: 12px; }
.prompt-stat strong { font-size: clamp(21px, 2.2vw, 31px); line-height: 1.3; margin: 5px 0; letter-spacing: -.6px; }
.prompt-stat strong > span { font-size: 15px; letter-spacing: 0; color: var(--muted); font-weight: 500; }
.prompt-stat small { color: var(--muted); font-size: 11px; }
.prompt-stats { margin-bottom: 24px; }
.prompt-progress-label { margin: 8px 0; font-variant-numeric: tabular-nums; font-size: 12px; }
.prompt-progress-label.small { color: var(--muted); font-size: 11px; }
.prompt-progress { display: block; width: 100%; height: 10px; border: none; border-radius: 20px; background: #e8efec; color: var(--teal); accent-color: var(--teal); overflow: hidden; }
.prompt-progress::-webkit-progress-bar { background: #e8efec; border-radius: 20px; }
.prompt-progress::-webkit-progress-value { background: linear-gradient(90deg, #106e67, #5fae90); border-radius: 20px; }
.prompt-progress::-moz-progress-bar { background: #25867b; border-radius: 20px; }
.prompt-validation { display: flex; align-items: flex-start; gap: 12px; padding: 16px; margin-top: 20px; border-radius: 12px; background: #f1f6f9; color: #345368; }
.prompt-validation p { margin: 4px 0 0; font-size: 12px; max-width: 750px; }
.prompt-spinner { height: 17px; width: 17px; margin-top: 3px; flex-shrink: 0; border: 2px solid #c4d7de; border-top-color: #407692; border-radius: 50%; animation: prompt-spin 1.2s linear infinite; }
@keyframes prompt-spin { to {transform: rotate(360deg);} }
.prompt-metric-strip { margin: 24px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.prompt-metric-strip strong { font-size: 24px; }
.prompt-cadence { color: var(--muted); font-size: 11px; margin: 16px 0 20px; max-width: 900px; }
.prompt-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.prompt-chart { margin: 0; padding: 18px; background: #fbfdfc; border-color: #e0eae5; min-width: 0; }
.prompt-chart figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.prompt-chart figcaption strong { color: var(--teal); font-variant-numeric: tabular-nums; }
.prompt-chart svg { display: block; }
.prompt-chart text { font-size: 10px; fill: #6f827e; }
.prompt-gridline { stroke: #e2ece7; stroke-dasharray: 3 4; fill: none; }
.prompt-area { fill: #25867b10; }
.prompt-dot { stroke: white; stroke-width: 2; }
.prompt-hit { fill: transparent; }
.prompt-chart g:focus { outline: none; }
.prompt-chart g:focus .prompt-dot, .prompt-chart g:hover .prompt-dot { stroke: #183d39; stroke-width: 3; }
.prompt-chart-caption { min-height: 20px; color: var(--muted); font-size: 11px; text-align: center; font-variant-numeric: tabular-nums; }
.prompt-chart-empty { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 12px; color: var(--muted); }
.prompt-empty-plot { color: #a8c6bb; font-size: 38px; letter-spacing: 5px; }
.prompt-epoch-data { margin-top: 20px; font-size: 12px; }
.prompt-epoch-data summary { cursor: pointer; font-weight: 600; color: var(--teal); padding: 6px 0; }
.prompt-epoch-data > div { max-height: 280px; overflow: auto; }
.prompt-experiments-toolbar { margin: 22px 0 10px; }
.prompt-protocol-cards .panel { box-shadow: none; background: #eff4f0; }
.prompt-benchmark-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.prompt-benchmark-bars figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 15px; }
.prompt-benchmark-bars figcaption { font-weight: 600; margin-bottom: 12px; }
.prompt-benchmark-bars p { display: flex; justify-content: space-between; font-size: 11px; margin: 10px 0 5px; }
.prompt-benchmark-bars .baseline { accent-color: #8a9fa9; }
@media (max-width: 850px) { .prompt-chart-grid {grid-template-columns: 1fr;} .prompt-benchmark-bars {grid-template-columns: 1fr;} }
@media (max-width: 600px) {
  .prompt-monitor { padding: 18px 14px; border-radius: 14px; }
  .prompt-stats, .prompt-metric-strip { grid-template-columns: 1fr; gap: 14px; }
  .prompt-stat { position: relative; padding-right: 0; }
  .prompt-stat strong { font-size: 26px; }
  .prompt-monitor-head { align-items: flex-start; }
  .prompt-live { max-width: 100%; overflow-wrap: anywhere; }
  .prompt-progress-label.small { align-items: flex-start; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .prompt-spinner { animation: none; } }

#detail-dialog:has(.prompt-monitor) { width: min(1120px, 94vw); padding: 34px 22px 22px; }
#detail-dialog .prompt-monitor { margin-top: 0; box-shadow: none; }
@media (max-width: 600px) { #detail-dialog:has(.prompt-monitor) { padding: 34px 10px 10px; } }

/* MedBench specialty picker and cards */
.specialty-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
}
.specialty-picker select {
  margin: 0 12px;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid #2c4b4a;
  background: #0f2a29;
  color: #e7f1f0;
  font: inherit;
}
.specialty-card {
  cursor: pointer;
}
.specialty-card:hover,
.specialty-card:focus {
  outline: 2px solid #3aa59e;
}
.specialty-card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
