/* Exomaly LIMS: one stylesheet for /app/ and /demo/. Every class starts with exo- (CLAUDE.md rule 7). No remote fonts (rule 10). */
:root {
  --exo-accent: #10b981;
  --exo-accent-ink: #022c22;
  --exo-bg: #f6f6f4;
  --exo-surface: #ffffff;
  --exo-ink: #1c1b18;
  --exo-muted: #4d4a42;
  --exo-line: #dedcd4;
  --exo-line-strong: #a9a698;
  --exo-brand: #065f46;
  --exo-on-brand: #ffffff;
  --exo-brand-soft: #d6ebe2;
  --exo-brand-soft-ink: #064e3b;
  --exo-stripe: #e6e4da;
  --exo-ok: #1f7a4d;
  --exo-soon: #a15c00;
  --exo-bad: #b3261e;
  --exo-radius: 8px;
  --exo-stage-1: #8a8f98; --exo-stage-2: #2f7d5b; --exo-stage-3: #d98e04; --exo-stage-4: #c2571a; --exo-stage-5: #a32e2e;
  --exo-col-w: 272px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --exo-bg: #151412;
  --exo-surface: #1f1e1b;
  --exo-ink: #f0eee8;
  --exo-muted: #c4c1b6;
  --exo-line: #34322d;
  --exo-line-strong: #6b685f;
  --exo-brand: #065f46;
  --exo-on-brand: #ffffff;
  --exo-brand-soft: #17382f;
  --exo-brand-soft-ink: #b7f0d8;
  --exo-stripe: #2e2d29;
  --exo-ok: #5ec48f;
  --exo-soon: #f3b04a;
  --exo-bad: #ff8a80;
  --exo-stage-1: #9aa0a9; --exo-stage-2: #5ec48f; --exo-stage-3: #f3b04a; --exo-stage-4: #f08a4b; --exo-stage-5: #ff8a80;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--exo-bg); color: var(--exo-ink); font-size: 15px; line-height: 1.45; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--exo-accent); outline-offset: 2px; }

.exo-header { display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: var(--exo-surface); border-bottom: 3px solid var(--exo-accent); }
.exo-brand { margin: 0; font-size: 18px; font-weight: 700; }
.exo-nav { flex: 1; display: flex; gap: 12px; }
.exo-nav-item { padding: 4px 10px; border-radius: var(--exo-radius); background: var(--exo-bg); font-weight: 600; }
.exo-who { padding: 5px 14px; border: 1.5px solid currentColor; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: var(--exo-on-brand); font-size: 14px; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.exo-who { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.15; max-width: 210px; }
.exo-who > span { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exo-who.exo-who-full { padding: 3px 12px; border-radius: 12px; }
.exo-who-full .exo-who-name { font-size: 13px; font-weight: 800; }
.exo-who-full .exo-who-roles { font-size: 11px; font-weight: 600; }
.exo-who-full .exo-who-email { font-size: 11px; font-weight: 500; opacity: 0.85; }
.exo-who:empty { display: none; }
.exo-theme-switch { position: relative; flex: none; width: 46px; height: 26px; padding: 0; border: 1px solid var(--exo-line); border-radius: 13px; background: var(--exo-bg); cursor: pointer; }
.exo-theme-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #f3b04a; transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease; }
.exo-theme-switch[aria-checked="true"] { background: var(--exo-accent-ink); border-color: var(--exo-accent-ink); }
.exo-theme-switch[aria-checked="true"] .exo-theme-knob { transform: translateX(20px); background: transparent; box-shadow: inset -5px -3px 0 0 #d1fae5; }
@media (prefers-reduced-motion: reduce) { .exo-theme-knob { transition: none; } }
.exo-lang { display: inline-flex; border: 1px solid var(--exo-line); border-radius: var(--exo-radius); overflow: hidden; }
.exo-lang-btn { padding: 4px 12px; border: 0; background: transparent; cursor: pointer; }
.exo-lang-btn[aria-pressed="true"] { background: var(--exo-accent); color: var(--exo-accent-ink); font-weight: 700; }

.exo-demo-note { margin: 0; padding: 6px 16px; background: #fff4d6; color: #5a3b00; font-size: 14px; }
:root[data-theme="dark"] .exo-demo-note { background: #3a2c08; color: #ffd98a; }

.exo-main { padding: 12px 16px 24px; }
.exo-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.exo-input { flex: 1 1 260px; max-width: 420px; padding: 7px 10px; border: 1px solid var(--exo-line); border-radius: var(--exo-radius); background: var(--exo-surface); font: inherit; }
.exo-btn { padding: 7px 14px; border: 1px solid var(--exo-brand); border-radius: var(--exo-radius); background: var(--exo-brand-soft); color: var(--exo-brand-soft-ink); font-weight: 600; cursor: pointer; }
.exo-btn:hover:not(:disabled) { border-color: var(--exo-accent); }
.exo-btn:disabled { opacity: 0.6; cursor: progress; }
a.exo-btn { display: inline-block; color: inherit; text-decoration: none; }
.exo-count { color: var(--exo-muted); font-size: 14px; }
.exo-error { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--exo-bad); border-radius: var(--exo-radius); color: var(--exo-bad); }
.exo-note { margin: 0 0 12px; color: var(--exo-muted); }

.exo-board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.exo-col { flex: 0 0 var(--exo-col-w); background: var(--exo-bg); border: 1px solid var(--exo-line); border-radius: var(--exo-radius); }
.exo-col-side { opacity: 0.9; }
.exo-col-head { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 10px 12px; font-size: 14px; border-bottom: 1px solid var(--exo-line); }
.exo-col-count { min-width: 24px; padding: 0 8px; border-radius: 12px; background: var(--exo-surface); border: 1px solid var(--exo-line); text-align: center; font-weight: 600; }
.exo-col-list { display: flex; flex-direction: column; gap: 14px; padding: 12px; max-height: calc(100vh - 230px); overflow-y: auto; }
.exo-col-empty { margin: 8px 4px; color: var(--exo-muted); font-size: 14px; }

.exo-card { display: block; width: 100%; padding: 14px 14px 14px 16px; text-align: left; background: var(--exo-surface); border: 2px solid var(--exo-line-strong); border-left: 8px solid var(--exo-line-strong); border-radius: var(--exo-radius); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16); cursor: pointer; }
.exo-card:hover { border-color: var(--exo-accent); }
.exo-card-express { border-left-color: var(--exo-soon); }
.exo-card-urgent { border-left-color: var(--exo-bad); }
.exo-card-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.exo-card-no { font-weight: 800; font-size: 16px; }
.exo-card-customer { margin-top: 6px; font-size: 15px; }
.exo-card-meta { color: var(--exo-muted); font-size: 14px; }
.exo-card-due { margin-top: 6px; font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.exo-due-overdue { color: var(--exo-bad); font-weight: 600; }
.exo-due-soon { color: var(--exo-soon); font-weight: 600; }
.exo-card-progress { display: flex; gap: 8px; align-items: center; margin-top: 6px; font-size: 13px; }
.exo-progress { flex: 1; height: 8px; accent-color: var(--exo-ok); }
.exo-card-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }

.exo-badge { display: inline-block; padding: 1px 7px; border-radius: 10px; border: 1px solid currentColor; font-size: 12px; font-weight: 600; white-space: nowrap; }
.exo-badge-urgent, .exo-badge-overdue { color: var(--exo-bad); }
.exo-badge-express, .exo-badge-soon { color: var(--exo-soon); }
.exo-badge-split, .exo-badge-wait { color: var(--exo-muted); }

.exo-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--exo-surface); border-left: 1px solid var(--exo-line); box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18); display: flex; flex-direction: column; z-index: 10; }
.exo-drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 3px solid var(--exo-accent); }
.exo-drawer-title { margin: 0; font-size: 17px; }
.exo-drawer-body { padding: 12px 16px; overflow-y: auto; }
.exo-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; }
.exo-dl dt { color: var(--exo-muted); }
.exo-dl dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .exo-header { flex-wrap: wrap; gap: 8px; }
  .exo-nav { order: 3; flex-basis: 100%; }
  .exo-col-list { max-height: none; }
}
.exo-landing { max-width: 560px; margin: 0 auto; padding-top: 32px; }
.exo-link-btn { display: inline-block; text-decoration: none; }
.exo-col-more { width: 100%; }
.exo-actas { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--exo-muted); }
.exo-select { flex: none; max-width: 260px; }
.exo-drawer-sub { margin: 16px 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--exo-muted); }
.exo-block { margin-top: 4px; }
.exo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0; }
.exo-row-main { flex: 1 1 auto; }
.exo-test { padding: 8px 10px; margin: 6px 0; border: 1px solid var(--exo-line); border-radius: var(--exo-radius); }
.exo-test-result { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-weight: 600; }
.exo-verdict-pass { color: var(--exo-ok); }
.exo-verdict-fail { color: var(--exo-bad); }
.exo-form { display: grid; gap: 8px; margin-top: 8px; padding: 10px; background: var(--exo-bg); border-radius: var(--exo-radius); }
.exo-field { display: grid; gap: 2px; font-size: 14px; }
.exo-field-label { color: var(--exo-muted); }
.exo-form .exo-input { max-width: none; width: 100%; }
.exo-btn-primary { background: var(--exo-accent); border-color: var(--exo-accent); color: var(--exo-accent-ink); font-weight: 700; }
.exo-btn-danger { border-color: var(--exo-bad); background: var(--exo-surface); color: var(--exo-bad); font-weight: 700; }
button.exo-nav-item { border: 0; cursor: pointer; background: transparent; }
button.exo-nav-item[aria-pressed="true"] { background: var(--exo-bg); }
.exo-grid { border: 1px solid var(--exo-line); border-radius: var(--exo-radius); overflow: hidden; }
.exo-grid.tabulator { background: var(--exo-surface); color: var(--exo-ink); }
.exo-grid .tabulator-header, .exo-grid .tabulator-header .tabulator-col, .exo-grid .tabulator-header .tabulator-col input { background: var(--exo-surface); color: var(--exo-ink); }
.exo-grid .tabulator-row { background: var(--exo-surface); color: var(--exo-ink); cursor: pointer; }
.exo-grid .tabulator-row.tabulator-row-even { background: var(--exo-stripe); }
.exo-grid .tabulator-row { border-bottom: 1px solid var(--exo-line-strong); }
.exo-grid .tabulator-header { border-bottom: 2px solid var(--exo-line-strong); }
.exo-grid .tabulator-header .tabulator-col .tabulator-col-title { font-size: 15px; font-weight: 800; }
.exo-grid .tabulator-row:hover { outline: 2px solid var(--exo-accent); outline-offset: -2px; }
.exo-checks { display: grid; gap: 4px; max-height: 220px; overflow-y: auto; padding: 6px; border: 1px solid var(--exo-line); border-radius: var(--exo-radius); background: var(--exo-surface); }
.exo-check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.exo-fieldset { border: 1px solid var(--exo-line); border-radius: var(--exo-radius); display: grid; gap: 8px; }
.exo-ok { color: var(--exo-ok); font-weight: 600; }
.exo-staff-list { display: grid; gap: 6px; margin-top: 8px; }
.exo-staff-item { display: grid; gap: 2px; text-align: left; padding: 8px 10px; background: var(--exo-surface); color: var(--exo-ink); border: 1px solid var(--exo-line); border-radius: var(--exo-radius); cursor: pointer; font: inherit; }
.exo-staff-item:hover { outline: 2px solid var(--exo-accent); outline-offset: -2px; }
.exo-staff-name { font-weight: 600; }
.exo-staff-off { opacity: 0.65; }

.exo-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 8px; }
.exo-tile { padding: 12px 14px; background: var(--exo-surface); border: 1px solid var(--exo-line); border-left: 4px solid var(--exo-line); border-radius: var(--exo-radius); }
.exo-tile-bad { border-left-color: var(--exo-bad); }
.exo-tile-warn { border-left-color: var(--exo-soon); }
.exo-tile-value { font-size: 28px; font-weight: 700; line-height: 1.1; }
.exo-tile-bad .exo-tile-value { color: var(--exo-bad); }
.exo-tile-warn .exo-tile-value { color: var(--exo-soon); }
.exo-tile-label { color: var(--exo-muted); font-size: 13px; margin-top: 2px; }
.exo-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.exo-chart-card { padding: 4px 12px 12px; background: var(--exo-surface); border: 1px solid var(--exo-line); border-radius: var(--exo-radius); }
.exo-chart-box { position: relative; height: 260px; }

.exo-chart-wide { grid-column: 1 / -1; margin-top: 12px; }
.exo-control { display: grid; gap: 8px; }
.exo-control .exo-select { max-width: 460px; width: 100%; }
.exo-control-info { margin-top: 4px; }
.exo-control-list { margin: 4px 0 0; padding-left: 18px; font-size: 14px; }
.exo-note-strong { color: var(--exo-ink); font-weight: 600; }
.exo-stage-note { margin-top: 6px; }
.exo-risk-scroll, .exo-queue-scroll, .exo-flag-scroll, .exo-rework-scroll, .exo-forecast-scroll { overflow-x: auto; }
.exo-forecast { margin-top: 10px; }
.exo-forecast-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.exo-forecast-table th, .exo-forecast-table td { padding: 4px 10px; text-align: left; border-bottom: 1px solid var(--exo-line); white-space: nowrap; }
.exo-forecast-table th { color: var(--exo-muted); font-weight: 600; white-space: normal; }
.exo-risk-table, .exo-queue-table, .exo-flag-table, .exo-rework-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.exo-risk-table th, .exo-risk-table td, .exo-queue-table th, .exo-queue-table td, .exo-flag-table th, .exo-flag-table td, .exo-rework-table th, .exo-rework-table td { padding: 6px 10px; text-align: left; border-bottom: 1px solid var(--exo-line); white-space: nowrap; }
.exo-risk-table th, .exo-queue-table th, .exo-flag-table th, .exo-rework-table th { color: var(--exo-muted); font-weight: 600; }
.exo-risk-open, .exo-queue-open, .exo-flag-open, .exo-qc-open { padding: 0; border: 0; background: none; color: var(--exo-ink); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.exo-risk-over { color: var(--exo-bad); font-weight: 600; }
.exo-queue-list { display: grid; gap: 4px; }
.exo-queue-table .exo-queue-mine td, .exo-flag-table .exo-flag-mine td, .exo-rework-table .exo-rework-above td { background: var(--exo-bg); }
.exo-flag-why { white-space: normal; min-width: 260px; max-width: 420px; }
.exo-flag-why .exo-note { margin: 2px 0 6px; }
.exo-flag-help, .exo-rework-help { margin: 4px 0 10px; }
.exo-flag-help summary, .exo-rework-help summary { cursor: pointer; font-weight: 600; }
.exo-flag-bar { position: relative; height: 10px; margin: 6px 0 2px; border-radius: 5px; background: var(--exo-line); }
.exo-flag-normal { position: absolute; left: 25%; width: 50%; top: 0; bottom: 0; background: var(--exo-ok); opacity: 0.35; border-radius: 5px; }
.exo-flag-mark { position: absolute; top: -3px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: var(--exo-ink); }
.exo-flag-mark-out { background: var(--exo-bad); }
.exo-import-errors { margin: 0 0 12px; padding-left: 20px; color: var(--exo-bad); }
.exo-import-errors li { margin: 2px 0; }
.exo-import-change { margin: 4px 0; padding: 6px 10px; border: 1px solid var(--exo-line); border-radius: var(--exo-radius); }
.exo-import-change summary { cursor: pointer; }
.exo-import-change ul { margin: 6px 0 0; padding-left: 20px; }
.exo-import-summary { margin-bottom: 12px; }
/* Quality control card (qc.js): the state of a control, a voided value, the drift chart */
.exo-qc-fail, .exo-qc-out { color: var(--exo-bad); }
.exo-qc-warning { color: var(--exo-soon); }
.exo-qc-ok { color: var(--exo-ok); }
.exo-qc-none { color: var(--exo-muted); }
.exo-qc-detail { margin-top: 12px; }
.exo-qc-voided td { color: var(--exo-muted); text-decoration: line-through; }
.exo-qc-voided td:last-child { text-decoration: none; }
.exo-qc-drift { height: 160px; }
.exo-equipment-out_of_service, .exo-equipment-not_fit, .exo-equipment-expired { color: var(--exo-bad); }
.exo-equipment-missing, .exo-equipment-due_soon { color: var(--exo-soon); }
.exo-equipment-ok { color: var(--exo-ok); }
/* Analysis batches (batch.js, batch_picker.js): the conclusion of a batch */
.exo-batch-bad { color: var(--exo-bad); }
.exo-batch-soon { color: var(--exo-soon); }
.exo-batch-ok { color: var(--exo-ok); }
.exo-batch-idle { color: var(--exo-muted); }
.exo-equipment-not_required, .exo-equipment-stopped { color: var(--exo-muted); }
.exo-equipment-summary { margin: 8px 0; }
/* Quality register card (quality.js): the kind of an entry, its status, a withhold; long texts keep their line breaks */
.exo-quality-nonconformity, .exo-quality-withhold { color: var(--exo-bad); }
.exo-quality-complaint { color: var(--exo-soon); }
.exo-quality-incident, .exo-quality-closed { color: var(--exo-muted); }
.exo-quality-open { color: var(--exo-ok); }
.exo-quality-summary { margin: 8px 0; }
.exo-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
/* Proficiency testing card (pt.js): the state of a round or a test, a verdict, a signal; an item of a round in the drawer */
.exo-pt-late, .exo-pt-followup, .exo-pt-action, .exo-pt-unsatisfactory { color: var(--exo-bad); }
.exo-pt-open, .exo-pt-warning, .exo-pt-trend, .exo-pt-questionable { color: var(--exo-soon); }
.exo-pt-evaluated, .exo-pt-ok, .exo-pt-satisfactory { color: var(--exo-ok); }
.exo-pt-submitted, .exo-pt-none { color: var(--exo-muted); }
.exo-pt-detail { margin-top: 12px; }
.exo-pt-item { border-top: 1px solid var(--exo-line); padding-top: 8px; }
.exo-pt-item .exo-qc-voided { color: var(--exo-muted); text-decoration: line-through; }
.exo-pt-item-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 8px; }
/* Measurement uncertainty card (mu.js): the state of an estimate, where the registered U lies (ds_mu_monitor), a bias source not used */
.exo-mu-ok { color: var(--exo-ok); }
.exo-mu-insufficient, .exo-mu-monitor-above { color: var(--exo-soon); }
.exo-mu-not_applicable, .exo-mu-monitor-within { color: var(--exo-muted); }
.exo-mu-monitor-below { color: var(--exo-bad); }
.exo-mu-detail { margin-top: 12px; }
.exo-mu-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-bottom: 8px; }
.exo-mu-unused td { color: var(--exo-muted); }
/* Brand green, deep (the green planet of Exomaly Home, darkened): header, card titles, column headers, drawer titles. White text on it in
   both themes. Kanban column heads are the deep green, card heads the soft tint of it. */
.exo-header { background: var(--exo-brand); color: var(--exo-on-brand); border-bottom: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.exo-header .exo-brand, .exo-footer-product { display: flex; align-items: center; gap: 10px; padding: 3px 14px 3px 10px; border: 2px solid var(--exo-on-brand); border-radius: var(--exo-radius); background: #022c22; font-size: 20px; font-weight: 800; color: var(--exo-on-brand); }
.exo-header { flex-wrap: wrap; row-gap: 8px; }
.exo-header .exo-nav { gap: 6px; }
.exo-header .exo-select { max-width: 190px; }
.exo-logo { display: block; width: auto; height: 34px; }
/* The moving planet of the logo (js/orb.js): the still logo stays as the poster; the video of the Exomaly home page's green planet lies
   over it and takes over once it plays. The planet fills 80% of the video's width and the still logo's planet about 91% of its own,
   so the video is drawn 128% as wide, centred; mix-blend-mode screen keeps its black sky from showing, the mask fades its edges. */
.exo-orb { position: relative; display: block; flex: none; }
.exo-orb-video { position: absolute; left: 50%; top: 50%; width: 128%; height: auto; aspect-ratio: 5 / 4; max-width: none; transform: translate(-50%, -50%);
  opacity: 0; pointer-events: none; mix-blend-mode: screen; transition: opacity 0.8s;
  -webkit-mask-image: radial-gradient(ellipse closest-side, #000 86%, transparent 100%); mask-image: radial-gradient(ellipse closest-side, #000 86%, transparent 100%); }
.exo-orb.exo-has-video .exo-orb-video { opacity: 1; }
.exo-orb.exo-has-video > img { opacity: 0; }
.exo-header .exo-nav-item { flex: none; white-space: nowrap; padding: 4px 10px; border: 1.5px solid rgba(255, 255, 255, 0.6); border-radius: var(--exo-radius); color: var(--exo-on-brand); }
.exo-header button.exo-nav-item:hover { background: rgba(255, 255, 255, 0.18); }
.exo-header button.exo-nav-item[aria-pressed="true"] { background: var(--exo-on-brand); border-color: var(--exo-on-brand); color: var(--exo-brand); font-weight: 800; }
.exo-header .exo-who, .exo-header .exo-actas { color: var(--exo-on-brand); }
.exo-header .exo-btn, .exo-header .exo-input { color: var(--exo-ink); }
.exo-header .exo-lang { border: 1.5px solid rgba(255, 255, 255, 0.6); }
.exo-header .exo-lang-btn { color: var(--exo-on-brand); }
.exo-header .exo-lang-btn[aria-pressed="true"] { background: var(--exo-on-brand); color: var(--exo-brand); }
.exo-theme-switch[aria-checked="true"] { background: #022c22; border-color: #022c22; }

/* Overview cards: the title is a deep green band across the top of the card, the column headers are deep green cells */
.exo-chart-card > .exo-drawer-sub:first-child { margin: -4px -12px 12px; padding: 10px 12px; font-size: 18px; font-weight: 800; letter-spacing: 0.03em; color: var(--exo-on-brand); background: var(--exo-brand); border-radius: calc(var(--exo-radius) - 1px) calc(var(--exo-radius) - 1px) 0 0; }
.exo-chart-card > .exo-drawer-sub:not(:first-child) { color: var(--exo-ink); font-weight: 800; }
.exo-chart-card table th { color: var(--exo-brand-soft-ink); background: var(--exo-brand-soft); font-size: 15px; font-weight: 800; border-bottom: 2px solid var(--exo-brand); }

/* Kanban: deep green column heads; each card opens with a soft green band carrying the sample number */
.exo-col-head { background: var(--exo-brand); color: var(--exo-on-brand); font-size: 15px; font-weight: 800; border-radius: calc(var(--exo-radius) - 1px) calc(var(--exo-radius) - 1px) 0 0; border-bottom: 0; }
.exo-col-head .exo-col-count { color: var(--exo-ink); }
.exo-card-head { margin: -14px -14px 8px -16px; padding: 8px 14px 8px 16px; background: var(--exo-brand-soft); color: var(--exo-brand-soft-ink); border-bottom: 2px solid var(--exo-brand); border-radius: 5px 5px 0 0; }
.exo-card-head .exo-badge { background: var(--exo-surface); color: var(--exo-ink); border-color: var(--exo-line-strong); }

/* Grids (Danh sách, Phiếu kết quả): deep green column headers; the sort arrows stay readable on green */
.exo-grid .tabulator-header, .exo-grid .tabulator-header .tabulator-col { background: var(--exo-brand); color: var(--exo-on-brand); }
.exo-grid .tabulator-header { border-bottom: 0; }
.exo-grid .tabulator-header .tabulator-col .tabulator-col-title { font-size: 15px; font-weight: 800; }
.exo-grid .tabulator-header .tabulator-col input { background: var(--exo-surface); color: var(--exo-ink); }
.exo-grid .tabulator-header .tabulator-col.tabulator-sortable[aria-sort] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow { border-bottom-color: var(--exo-on-brand); border-top-color: var(--exo-on-brand); }
.exo-grid .tabulator-header .tabulator-col.tabulator-sortable[aria-sort="none"] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow { opacity: 0.55; }

/* Drawer (sample, report, Danh mục, Cài đặt phòng ...): green title bar, green section headings and legends, bold dark field labels */
.exo-drawer-head { background: var(--exo-brand); color: var(--exo-on-brand); border-bottom: 0; }
.exo-drawer-head .exo-btn { color: var(--exo-ink); }
.exo-drawer-title { font-size: 20px; font-weight: 800; color: var(--exo-on-brand); }
.exo-drawer-body .exo-drawer-sub { margin: 18px 0 8px; padding: 6px 10px; font-size: 15px; font-weight: 800; letter-spacing: 0.03em; color: var(--exo-on-brand); background: var(--exo-brand); border-radius: 6px; }
.exo-fieldset legend { padding: 3px 12px; font-size: 15px; font-weight: 800; color: var(--exo-on-brand); background: var(--exo-brand); border-radius: 6px; }
.exo-field-label { color: var(--exo-ink); font-weight: 700; }
.exo-btn-menu { min-width: 190px; padding: 8px 14px; font-size: 15px; font-weight: 800; color: var(--exo-on-brand); background: var(--exo-brand); border-color: var(--exo-brand); text-align: left; }
.exo-btn-menu:hover { border-color: var(--exo-accent); outline: 2px solid var(--exo-accent); outline-offset: 1px; }
.exo-btn-menu + .exo-note { color: var(--exo-ink); }

/* Footer: a deep green band like the header. Start page and /demo/: who built it and how to reach them (copy buttons for the addresses);
   /app/: one line. */
.exo-footer { margin-top: 20px; padding: 14px 16px 10px; background: color-mix(in srgb, var(--exo-brand) 78%, #000); color: var(--exo-on-brand); }
.exo-footer-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 20px 40px; align-items: center; }
.exo-footer-mark { display: grid; justify-items: center; gap: 6px; justify-self: end; }
.exo-footer-logo { display: block; width: auto; height: 110px; }
.exo-footer-name { font-size: 18px; font-weight: 800; letter-spacing: 0.02em; }
@media (max-width: 760px) { .exo-footer-grid { grid-template-columns: 1fr; } .exo-footer-mark { justify-self: start; justify-items: start; } .exo-footer-logo { height: 80px; } }
.exo-footer-title { margin: 0 0 8px; font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.exo-footer-who { margin: 0; font-size: 20px; font-weight: 800; }
.exo-footer-brand { font-weight: 600; }
.exo-footer-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.exo-footer-list dt { font-weight: 800; }
.exo-footer-list dd { margin: 0; }
.exo-footer a, .exo-footer .exo-mail { color: var(--exo-on-brand); }
.exo-mailrow { display: block; }
.exo-mail { padding: 0; border: 0; background: none; font: inherit; text-align: left; text-decoration: underline; cursor: copy; }
.exo-copied { margin-left: 10px; font-size: 13px; font-weight: 700; }
.exo-footer-copy { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.4); font-size: 13px; text-align: center; }
.exo-footer-slim { padding: 10px 16px; }
.exo-footer-slim .exo-footer-copy { margin: 0; padding: 0; border: 0; }

/* Demo edition switch (Standard / Upgrade) in the header, and the add-on services card */
.exo-plan { display: inline-flex; border: 1.5px solid rgba(255, 255, 255, 0.6); border-radius: var(--exo-radius); overflow: hidden; }
.exo-plan-btn { padding: 4px 12px; border: 0; background: transparent; color: var(--exo-on-brand); font-weight: 700; cursor: pointer; white-space: nowrap; }
.exo-plan-btn[aria-pressed="true"] { background: var(--exo-on-brand); color: var(--exo-brand); }
.exo-addons-slot { margin-bottom: 12px; }
.exo-addons-scroll { overflow-x: auto; }
.exo-addons-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.exo-addons-table th, .exo-addons-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--exo-line); vertical-align: top; }
.exo-addons-name { font-weight: 800; white-space: nowrap; }
.exo-addons .exo-btn-primary { margin: 4px 0 12px; }

/* Demo, Upgrade edition: the parts that belong to a paid add-on service are tinted amber so they stand out. body[data-edition] is set only by
   the demo (addons_mark.js); /app/ never has it, so nothing here can touch the lab page. */
body[data-edition="upgrade"] .exo-addon { background: #fff1c2; box-shadow: inset 0 0 0 2px #e0a100; border-radius: 6px; }
body[data-edition="upgrade"] .exo-risk.exo-addon, body[data-edition="upgrade"] .exo-forecast.exo-addon { padding: 8px; }
body[data-edition="upgrade"] th.exo-addon { background: #b45309; color: #fff; box-shadow: none; border-radius: 0; }
body[data-edition="upgrade"] .exo-risk.exo-addon > .exo-drawer-sub:first-child { background: #b45309; }
body[data-edition="upgrade"] .exo-addon, body[data-edition="upgrade"] .exo-addon td { color: #3a2300; }
:root[data-theme="dark"] body[data-edition="upgrade"] .exo-addon { background: #3b2b05; box-shadow: inset 0 0 0 2px #d99a00; }
:root[data-theme="dark"] body[data-edition="upgrade"] .exo-addon, :root[data-theme="dark"] body[data-edition="upgrade"] .exo-addon td { color: #ffe3a3; }
body[data-edition="upgrade"] td.exo-addon { box-shadow: none; border-radius: 0; border-left: 2px solid #e0a100; border-right: 2px solid #e0a100; }
:root[data-theme="dark"] body[data-edition="upgrade"] td.exo-addon { box-shadow: none; }
:root[data-theme="dark"] body[data-edition="upgrade"] th.exo-addon, body[data-edition="upgrade"] th.exo-addon { background: #b45309; color: #fff; box-shadow: none; }
.exo-footer-brandline { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0 0; font-size: 14px; font-weight: 600; }
/* The Exomaly planet stays a plain dark disc: blend/brightness tricks (screen, contrast) made it too faint at this size (14/10/2026) */
/* The Exomaly name and planet sit in a frame like the LIMS bar, on a purple nebula cut from the Exomaly Home hero (exomaly-space.webp);
   the dark veil keeps the gradient letters readable */
.exo-footer-parent { text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; display: flex; align-items: center; gap: 14px; padding: 4px 18px 4px 6px; border: 2px solid var(--exo-on-brand); border-radius: var(--exo-radius); background: linear-gradient(rgba(6, 3, 14, 0.35), rgba(6, 3, 14, 0.35)), url(/img/exomaly-space.webp?v=1) center / cover #0b0618; }
.exo-footer-exomaly { display: block; width: 52px; height: 52px; border-radius: 50%; }
.exo-addons-jump { padding: 0; border: 0; background: none; color: var(--exo-ink); font: inherit; font-weight: 800; text-align: left; text-decoration: underline; cursor: pointer; }
.exo-addons-jump::after { content: " ↓"; }
.exo-addons-jump:hover { color: var(--exo-brand); }
body[data-edition="upgrade"] .exo-addon-flash { animation: exo-flash 1.8s ease-out; }
@keyframes exo-flash { 0%, 40% { outline: 4px solid #e0a100; outline-offset: 3px; } 100% { outline: 4px solid transparent; outline-offset: 3px; } }
@media (prefers-reduced-motion: reduce) { body[data-edition="upgrade"] .exo-addon-flash { animation: none; outline: 4px solid #e0a100; } }

/* Footer: mỗi khối là một thẻ đóng khung */
.exo-footer-grid { align-items: stretch; gap: 12px; }
.exo-footer-dev, .exo-footer-contact, .exo-footer-mark {
  box-sizing: border-box; padding: 10px 18px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 14px;
  background: rgba(255, 255, 255, 0.12); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: background 0.15s, transform 0.15s;
}
.exo-footer-dev:hover, .exo-footer-contact:hover, .exo-footer-mark:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
.exo-footer-dev, .exo-footer-contact { align-content: center; }
.exo-footer-title { padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.exo-footer-mark { justify-self: stretch; align-content: center; justify-items: center; }
.exo-footer-brandline { flex-wrap: wrap; width: fit-content; max-width: 100%; margin: 12px auto 0; font-size: 17px; }
@media (max-width: 760px) { .exo-footer-mark { justify-items: start; } }
@media (prefers-reduced-motion: reduce) { .exo-footer-dev, .exo-footer-contact, .exo-footer-mark { transition: none; } .exo-footer-dev:hover, .exo-footer-contact:hover, .exo-footer-mark:hover { transform: none; } }
/* The LIMS planet card: a dark teal-black sky with two layers of stars drifting at different speeds, and the planet (bigger than before)
   wandering in a slow loop with its green glow breathing. CSS only; everything stands still when the system asks for less motion */
.exo-footer-mark {
  position: relative; overflow: hidden; isolation: isolate;
  border-color: rgba(16, 185, 129, 0.55);
  background: radial-gradient(ellipse at 50% 38%, #0b4a3d 0%, #04261f 52%, #010c0a 100%);
}
.exo-footer-mark:hover { background: radial-gradient(ellipse at 50% 38%, #0f5c4b 0%, #052f27 52%, #010c0a 100%); }
.exo-footer-mark::before, .exo-footer-mark::after { content: ""; position: absolute; inset: -40px; z-index: -1; pointer-events: none; background-repeat: repeat; }
.exo-footer-mark::before {
  background-size: 130px 130px; opacity: 0.85; animation: exo-stars-a 26s linear infinite, exo-twinkle 5s ease-in-out infinite alternate;
  background-image:
    radial-gradient(1px 1px at 14% 22%, #fff, transparent 60%), radial-gradient(1.4px 1.4px at 61% 12%, #d6fff1, transparent 60%),
    radial-gradient(1px 1px at 82% 58%, #fff, transparent 60%), radial-gradient(1px 1px at 37% 81%, #a7f3d0, transparent 60%),
    radial-gradient(1.2px 1.2px at 8% 64%, #fff, transparent 60%), radial-gradient(1px 1px at 70% 90%, #fff, transparent 60%);
}
.exo-footer-mark::after {
  background-size: 210px 210px; opacity: 0.55; animation: exo-stars-b 42s linear infinite, exo-twinkle 8s -3s ease-in-out infinite alternate;
  background-image:
    radial-gradient(1.6px 1.6px at 27% 37%, #fff, transparent 60%), radial-gradient(1px 1px at 76% 29%, #b8f7e2, transparent 60%),
    radial-gradient(1.2px 1.2px at 52% 74%, #fff, transparent 60%), radial-gradient(1px 1px at 11% 91%, #fff, transparent 60%);
}
@keyframes exo-stars-a { to { background-position: 130px 130px; } }
@keyframes exo-stars-b { to { background-position: -210px 210px; } }
@keyframes exo-twinkle { from { opacity: 0.35; } to { opacity: 0.9; } }
.exo-footer-logo { height: 112px; }
.exo-footer-name { position: relative; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
@media (max-width: 760px) { .exo-footer-logo { height: 92px; } }
@media (prefers-reduced-motion: reduce) { .exo-footer-mark::before, .exo-footer-mark::after { animation: none; } }

/* Trang chủ: nút vào demo / hệ thống màu xanh thương hiệu */
.exo-landing .exo-link-btn { padding: 10px 22px; border-color: var(--exo-brand); border-radius: 999px; background: var(--exo-brand); color: var(--exo-on-brand); font-weight: 800; box-shadow: 0 2px 8px rgba(6, 95, 70, 0.3); transition: transform 0.15s, box-shadow 0.15s; }
.exo-landing .exo-link-btn:hover { border-color: var(--exo-accent); outline: 2px solid var(--exo-accent); outline-offset: 2px; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(6, 95, 70, 0.35); }
@media (prefers-reduced-motion: reduce) { .exo-landing .exo-link-btn { transition: none; } .exo-landing .exo-link-btn:hover { transform: none; } }
.exo-landing-intro { font-weight: 800; }
/* "Exomaly" in the brand line, as on the Exomaly home page (exomaly.com): Unbounded 800, the "Neon sâu" spectrum flowing through the
   letters (Home_Exomaly site/assets/css/home.css .title, --rgb-stops, rgbflow). The font is self-hosted (latin subset only, SIL OFL:
   public/fonts/Unbounded-OFL.txt); a missing font falls back to the system one without breaking the line */
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/unbounded-800-latin.woff2) format('woff2'); }
.exo-footer-home {
  display: inline-block; padding: 0.2em 0.05em; font: 800 20px/1 'Unbounded', system-ui, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  background: linear-gradient(90deg, #c6ff00, #05ffa1, #19e6ff, #3b82ff, #8b5cf6, #b44dff, #8b5cf6, #3b82ff, #19e6ff, #05ffa1, #c6ff00); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35)); animation: exo-rgbflow 5s linear infinite;
}
.exo-footer-parent:hover .exo-footer-home, .exo-footer-parent:focus-visible .exo-footer-home { filter: drop-shadow(0 0 8px rgba(25, 230, 255, 0.6)); }
.exo-footer-parent:hover, .exo-footer-parent:focus-visible { border-color: #19e6ff; box-shadow: 0 0 14px rgba(25, 230, 255, 0.45); }
@keyframes exo-rgbflow { to { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) { .exo-footer-home { animation: none; } }

/* /app: khung mời liên hệ khi cần thêm tính năng */
.exo-more { margin: 20px 0 4px; text-align: center; }
.exo-more[open] { padding: 14px 18px; border: 2px solid var(--exo-brand); border-radius: 14px; background: var(--exo-brand-soft); color: var(--exo-brand-soft-ink); }
.exo-more-title { display: inline-block; padding: 5px 14px; border: 1px solid var(--exo-brand); border-radius: 999px; background: var(--exo-brand-soft); color: var(--exo-brand-soft-ink); font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.exo-more-title::-webkit-details-marker { display: none; }
.exo-more[open] > .exo-more-title { margin-bottom: 10px; background: transparent; border-color: transparent; text-transform: uppercase; letter-spacing: 0.04em; font-size: 15px; font-weight: 800; }
.exo-more-text { margin: 0 0 12px; }
.exo-more-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0; }
.exo-more-btn { padding: 9px 20px; border-radius: 999px; background: var(--exo-brand); color: var(--exo-on-brand); font-weight: 800; text-decoration: none; box-shadow: 0 2px 8px rgba(6, 95, 70, 0.3); }
.exo-more-btn:hover { outline: 2px solid var(--exo-accent); outline-offset: 2px; }
.exo-more-retention { margin: 12px 0 4px; text-align: center; }
.exo-more-links .exo-mailrow { display: inline-flex; align-items: center; }
.exo-more-btn.exo-mail { border: 0; font: inherit; font-weight: 800; text-align: center; text-decoration: none; cursor: copy; }
.exo-more .exo-copied { margin-left: 8px; }

/* Audit trail (public/js/audit.js): one block per row, so it reads in the narrow drawer */
.exo-audit-row { padding: 8px 0; border-bottom: 1px solid var(--exo-line); }
.exo-audit-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.exo-audit-what { margin-top: 2px; overflow-wrap: anywhere; }
.exo-audit-changes { margin-top: 4px; font-size: 13px; }
.exo-audit-changes summary { cursor: pointer; color: var(--exo-muted); overflow-wrap: anywhere; }
.exo-audit-changes table { width: 100%; margin-top: 4px; border-collapse: collapse; }
.exo-audit-changes th, .exo-audit-changes td { padding: 3px 6px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--exo-line); }
.exo-audit-changes th, .exo-audit-changes td:first-child { white-space: nowrap; }
.exo-audit-changes td:nth-child(n+2) { min-width: 6em; overflow-wrap: anywhere; }
.exo-audit-changes th { color: var(--exo-muted); font-weight: 600; }
/* Sample custody: the "Storage" part of the drawer and the custody card of the overview (custody.js) */
.exo-custody { margin-top: 12px; }
.exo-custody-form { display: grid; gap: 6px; margin: 8px 0; padding: 8px; border: 1px solid var(--exo-line); border-radius: 6px; }
.exo-custody-history { margin-top: 8px; }
.exo-custody-list { margin: 10px 0; }
.exo-custody-list-title { margin: 6px 0; font-size: 0.95rem; }
.exo-groups { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.exo-group-btn { font-weight: 600; }
.exo-group-btn[aria-pressed="true"] { background: var(--exo-brand); border-color: var(--exo-brand); color: var(--exo-on-brand); font-weight: 800; }
.exo-group-count { margin-left: 2px; }
.exo-group-panel[hidden] { display: none; }
.exo-export-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 8px 0; }
.exo-export-fields .exo-input { width: 100%; max-width: 100%; box-sizing: border-box; }
.exo-export-saved { margin-top: 12px; }
.exo-export-saved-item { justify-content: space-between; }
