/* Google Sans, the typeface of opalclinical.com, served from this platform (fonts/google_sans_license.txt). */
@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/google_sans_latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/google_sans_latin_ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* The look of opalclinical.com: white, near black type, gray for what is secondary and black pills. */
:root {
  --ink: #0a0a0a;
  --ink2: #2f3033;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #ebebee;
  --soft: #f5f5f7;
  --bg: #ffffff;
  --green: #12804a;
  --green-bg: #e9f7ef;
  --red: #c0291d;
  --red-bg: #fdf0ee;
  --orange: #a95409;
  --orange-bg: #fdf4e8;
  --blue: #2455f5;
  --blue-bg: #eef2fe;
  --radius: 22px;
  color-scheme: light;
  font-family: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.45; cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* The top bar, the row of pages under it and the engineer view strip are in shell.css, which the Workflow Builder
   shares. */

/* the status page: what needs the person, then one line for each part */
.status { max-width: 860px; margin: 0 auto; }
.status-head { padding: 40px 0 28px; }
.status-time { margin: 12px 0 0; font-size: 14px; color: var(--faint); }
.status-group { margin-top: 40px; }
.status-group h2 { font-size: 20px; margin: 0 0 12px 4px; }
.status-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.status-list li + li { border-top: 1px solid var(--line); }
.status-list a { display: grid; grid-template-columns: 8px 170px minmax(0, 1fr) 12px; align-items: center; gap: 16px; padding: 18px 22px; color: var(--ink); }
.status-list a:hover { background: var(--soft); }
.status-list .status-area { font-size: 15px; font-weight: 500; }
.status-list .status-text { font-size: 15px; color: var(--ink2); min-width: 0; }
.status-list .status-go { font-size: 20px; line-height: 1; color: var(--faint); text-align: right; }
.status-list.needs { border-color: var(--soft); background: var(--soft); }
.status-list.needs li + li { border-top-color: #e8e8ec; }
.status-list.needs a:hover { background: #ededf0; }

.main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 24px max(24px, env(safe-area-inset-right, 0px)) 120px max(24px, env(safe-area-inset-left, 0px));
}
.loading { color: var(--faint); font-size: 14px; }

/* headings, set the way the website sets them: light, large and tight */
.eyebrow { font-size: 13px; font-weight: 500; color: var(--muted); margin: 0 0 8px; }
h1 { font-size: 56px; line-height: 1.03; letter-spacing: -0.032em; font-weight: 400; margin: 0; text-wrap: balance; }
h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 400; margin: 0; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 500; margin: 0; }
.lede { color: var(--muted); font-size: 20px; line-height: 1.45; letter-spacing: -0.005em; margin: 16px 0 0; max-width: 700px; text-wrap: pretty; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 40px 0 44px; flex-wrap: wrap; }
.section { margin-top: 72px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head .sub { margin: 6px 0 0; font-size: 15px; color: var(--muted); line-height: 1.5; max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
.footnote { margin: 72px 0 0; font-size: 13px; line-height: 1.6; color: var(--faint); max-width: 700px; }

/* buttons: black pills, and white pills with a black edge */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover:not(:disabled) { background: #2a2a2a; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover:not(:disabled) { background: var(--soft); }
.btn.quiet { background: none; border-color: transparent; color: var(--muted); padding: 0 6px; }
.btn.quiet:hover:not(:disabled) { color: var(--ink); background: none; }
.btn.danger { background: #fff; color: var(--red); border-color: #efc6c0; }
.btn.danger:hover:not(:disabled) { background: var(--red-bg); }
.btn.small { min-height: 36px; padding: 0 16px; font-size: 13px; }
.link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c7c9ce; }
.back { display: inline-flex; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.back:hover { color: var(--ink); }

/* chips and dots */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px;
  font-size: 12px; font-weight: 500; background: var(--soft); color: var(--ink2); white-space: nowrap;
}
.chip.outline { background: #fff; border: 1px solid var(--line); }
.chip.green { background: var(--green-bg); color: var(--green); }
.chip.red { background: var(--red-bg); color: var(--red); }
.chip.orange { background: var(--orange-bg); color: var(--orange); }
.chip.blue, .chip.sim { background: var(--blue-bg); color: var(--blue); }
.chip.gray { background: var(--soft); color: var(--muted); }
.chip.ink { background: var(--ink); color: #fff; }
.chip.big { height: 32px; padding: 0 14px; font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: inline-block; flex: none; }
.dot.green { background: var(--green); }
.dot.red { background: var(--red); }
.dot.orange { background: #d97706; }
.dot.blue, .dot.sim { background: var(--blue); }
.dot.gray { background: #c9ccd1; }
.dot.ink { background: var(--ink); }
.dot.live { background: var(--ink); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* cards */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 28px; }
.card.soft { background: var(--soft); border-color: transparent; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* banner for the run going now */
.banner {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 22px; border-radius: 999px;
  background: var(--ink); color: #fff; margin-bottom: 32px; flex-wrap: wrap;
}
.banner .dot.live, .chip.ink .dot.live { background: #fff; }
.banner .grow { flex: 1; min-width: 200px; font-size: 14px; }
.banner .btn { background: #fff; color: var(--ink); border-color: #fff; }

/* workflow cards */
.wf { display: flex; flex-direction: column; gap: 16px; }
.wf-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wf h3 { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; }
.wf-sum { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }
.wf-last { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.wf-last a:hover { color: var(--ink); }
.wf-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 6px; }
.wf-more { font-size: 13px; color: var(--muted); }
.wf-more > summary { cursor: pointer; width: max-content; list-style: none; }
.wf-more > summary::-webkit-details-marker { display: none; }
.wf-more > summary::after { content: " ›"; }
.wf-more[open] > summary::after { content: " ⌄"; }
.wf-more > summary:hover { color: var(--ink); }
.wf-more .wf-options { display: grid; gap: 12px; margin-top: 14px; }

/* the workflows that run as script checks only, one short row each */
.checks { display: grid; }
.check-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 20px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.check-row:last-child { border-bottom: 1px solid var(--line); }
.check-row h3 { font-size: 16px; }
.check-row p { margin: 4px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.check-row .last { font-size: 13px; color: var(--muted); white-space: nowrap; }
.check-row .last a:hover { color: var(--ink); }

.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.select, .input, .textarea {
  min-height: 44px; border: 1px solid #d9dadf; border-radius: 12px; background: #fff; padding: 0 14px; font-size: 15px;
}
.select:focus, .input:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08); }
.select { padding-right: 30px; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.textarea { padding: 10px 12px; min-height: 76px; width: 100%; resize: vertical; line-height: 1.5; }
.input { width: 100%; }
.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; border-radius: 999px; background: var(--soft); gap: 2px; }
.seg button { border: 0; background: none; height: 34px; padding: 0 15px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #4b5563; }
.seg button:hover:not(:disabled):not(.on) { color: var(--ink); }
.seg button.on { background: var(--ink); color: #fff; }
.hint { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }

/* run list */
.filters { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 999px; background: var(--soft); }
.filters button { border: 0; background: none; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #4b5563; }
.filters button.on { background: var(--ink); color: #fff; }
.filters button { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.filters .count { font-size: 12px; color: var(--faint); }
.filters button.on .count { color: rgba(255, 255, 255, 0.7); }
/* a page split into areas: the pills, then the one area shown */
.area { margin-top: 28px; }
.area > .sub { margin: 0 0 20px; font-size: 15px; color: var(--muted); line-height: 1.5; }
/* the rest of a long list */
.more { display: flex; justify-content: center; margin-top: 20px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 0 14px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr.row { cursor: pointer; }
.table tr.row:hover td { background: var(--soft); }
.table .num { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.empty { padding: 28px 0; color: var(--muted); font-size: 14px; }

/* run page */
.run-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.run-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--muted); margin-top: 14px; }
.run-meta b { color: var(--ink2); font-weight: 560; }
/* A run's outcome is said in type, the same way a build's state is: no tinted box around it. */
.broke { margin-top: 30px; display: grid; gap: 6px; max-width: 780px; }
.broke .eyebrow { color: var(--red); margin: 0; }
.broke h2 { color: var(--red); font-size: 30px; }
.broke p { margin: 0; color: var(--ink2); font-size: 16px; line-height: 1.55; }
.ended { margin-top: 30px; max-width: 780px; font-size: 17px; color: var(--ink2); line-height: 1.5; }
.ended.pass { color: var(--ink2); }
.run-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; margin-top: 32px; align-items: start; }

.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step .mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 1px; }
.mark.done { background: var(--green); color: #fff; }
.mark.failed { background: var(--red); color: #fff; }
.mark.waiting { border: 2px solid #c9ccd1; }
.mark.waiting.live { border-color: var(--ink); border-right-color: transparent; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mark.not_reached { border: 2px dashed #d3d5da; }
.mark.not_here { border: 2px dotted #d3d5da; }
.step-label { font-size: 15px; font-weight: 560; letter-spacing: -0.1px; }
.step.not_here .step-label, .step.not_reached .step-label { color: var(--faint); font-weight: 500; }
.step-detail { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 4px; overflow-wrap: anywhere; }
.step.failed .step-detail { color: var(--red); }
.step-explain { font-size: 12px; color: var(--faint); line-height: 1.5; margin-top: 4px; }
.step-side { text-align: right; display: grid; gap: 4px; justify-items: end; }
.actor { font-size: 11px; color: var(--faint); white-space: nowrap; }
.when { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.timeline { list-style: none; margin: 0; padding: 0; }
.tl { display: grid; grid-template-columns: 64px 118px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid #f1f2f4; font-size: 13px; line-height: 1.5; }
.tl time { color: var(--faint); font-variant-numeric: tabular-nums; }
.tl .tl-who { color: var(--muted); font-size: 12px; }
.tl .tl-text { color: var(--ink2); overflow-wrap: anywhere; }
.tl.platform .tl-text { color: var(--muted); }
.tl.check .tl-text { font-weight: 560; color: var(--green); }
.tl.check.fail .tl-text { color: var(--red); }
.tl.cleanup .tl-text, .tl.refused .tl-text { color: var(--orange); }
.tl-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }

.note { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink2); margin: 0; }
.act { display: grid; gap: 18px; }
.act-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.recipient { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.recipient:last-child { border-bottom: 0; }

/* systems */
.sys { display: grid; gap: 10px; align-content: start; }
.sys-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sys-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.sys .for { margin: -4px 0 0; font-size: 13px; color: var(--muted); }
.sys p { margin: 0; font-size: 15px; line-height: 1.55; }
.sys .what { color: var(--ink2); }
.sys .detail { color: var(--muted); font-size: 14px; }
.sys-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; min-height: 36px; }
.panel { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 10px; font-size: 13px; }
.panel-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.kv { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 12px; }
.kv b { color: var(--ink); font-weight: 600; }
.elsewhere { display: grid; grid-template-columns: 220px minmax(0, 1fr) 220px; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.elsewhere:last-child { border-bottom: 0; }

/* agent runs */
.turn { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.turn:last-child { border-bottom: 0; }
.heard { font-size: 18px; letter-spacing: -0.3px; }
.calls { display: grid; gap: 6px; }
.call { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; font-size: 13px; padding: 8px 12px; border-radius: 10px; background: var(--soft); }
.reply { font-size: 14px; color: var(--ink2); line-height: 1.55; }

/* agents: the tree view */
.ag-list { display: grid; gap: 10px; }
.ag-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; flex-wrap: wrap; }
.ag-row:hover { border-color: #cfd2d7; background: #fcfcfd; }
.ag-row-main { display: grid; gap: 8px; min-width: 0; }
.ag-row-title { font-size: 15px; }
.ag-row-sub { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ag-row-side { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.ag-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.ag-h1 { font-size: 28px; letter-spacing: -0.8px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 500; overflow-wrap: anywhere; }

.ag-panel { background: #fff; border: 1px solid #e7e8ee; border-radius: 16px; padding: 18px 20px 0; box-shadow: 0 1px 2px rgba(17, 20, 28, 0.04), 0 12px 36px rgba(17, 20, 28, 0.06); }
.ag-phead { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ag-spark { width: 17px; height: 17px; color: #676d76; display: inline-grid; }
.ag-spark svg, .ag-glyph svg { width: 100%; height: 100%; }
.ag-lbl { font-weight: 600; font-size: 14.5px; color: #676d76; }
.ag-run { font-size: 13px; color: #9aa0a9; }
.ag-run b { color: #17181c; font-weight: 600; }
.ag-right { margin-left: auto; display: flex; gap: 14px; font-size: 13px; color: #9aa0a9; font-variant-numeric: tabular-nums; }
.ag-gwrap { display: flex; gap: 7px; padding: 8px 0 0; flex-wrap: wrap; }
.ag-gbar { display: inline-flex; gap: 7px; flex-wrap: wrap; }
.ag-gchip { font-size: 11px; border-radius: 999px; padding: 3px 9px; font-weight: 600; white-space: nowrap; }
.ag-gchip.ok { color: #15935c; background: #e9f8f0; }
.ag-gchip.warn { color: #b5791a; background: #f8efdd; }
.ag-gchip.bad { color: #c3463f; background: #fae9e8; }
.ag-gchip.neutral { color: #5b6472; background: #eef1f5; }

.ag-scroll { overflow: hidden; padding: 10px 2px 2px; }
.ag-scroll.ag-wide { overflow-x: auto; }
.ag-scroll.ag-wide .ag-tree { margin: 0; }
.ag-fit { width: 100%; position: relative; }
.ag-tree { width: max-content; margin: 0 auto; transform-origin: top left; }
.ag-tree ul { display: flex; justify-content: center; padding: 22px 0 0; position: relative; margin: 0; list-style: none; }
.ag-tree li { display: flex; flex-direction: column; align-items: center; list-style: none; position: relative; padding: 20px 7px 0; }
.ag-tree li::before, .ag-tree li::after { content: ""; position: absolute; top: 0; right: 50%; border-top: 1.5px solid #e0e2e8; width: 50%; height: 22px; }
.ag-tree li::after { right: auto; left: 50%; border-left: 1.5px solid #e0e2e8; }
.ag-tree li:only-child::after, .ag-tree li:only-child::before { display: none; }
.ag-tree li:only-child { padding-top: 0; }
.ag-tree li:first-child::before, .ag-tree li:last-child::after { border: 0 none; }
.ag-tree li:last-child::before { border-right: 1.5px solid #e0e2e8; border-radius: 0 7px 0 0; }
.ag-tree li:first-child::after { border-radius: 7px 0 0 0; }
.ag-tree ul ul::before { content: ""; position: absolute; top: 0; left: 50%; border-left: 1.5px solid #e0e2e8; width: 0; height: 22px; }
.ag-tree > ul { padding-top: 0; }

.ag-card { width: 224px; background: #fff; border: 1px solid #e8eaef; border-radius: 12px; box-shadow: 0 1px 2px rgba(17, 20, 28, 0.05); padding: 10px 11px 9px; text-align: left; transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.25s ease; }
.ag-card.lead { width: 240px; }
.ag-card.ag-hide { opacity: 0.12; transform: translateY(4px); }
.ag-card.ag-hot { box-shadow: 0 0 0 2px #2a6ef0, 0 6px 18px rgba(42, 110, 240, 0.18); }
.ag-r1 { display: flex; align-items: center; gap: 7px; }
.ag-ic { width: 24px; height: 24px; border-radius: 6px; flex: none; display: grid; place-items: center; }
.ag-ic svg { width: 15px; height: 15px; }
.ag-ic.opal { background: #eef2fd; color: #2f66f0; }
.ag-ic.opal svg { width: 19px; height: 19px; }
.ag-ic.model { background: #f6ebe4; color: #c15f3c; }
.ag-ic.epic { background: #fbe9ea; color: #b23b43; }
.ag-ic.verifier { background: #e9f8f0; color: #15935c; }
.ag-ic.timer, .ag-ic.page, .ag-ic.note, .ag-ic.tool { background: #eef1f5; color: #5b6472; }
.ag-nm { min-width: 0; flex: 1; }
.ag-nm b { display: block; font-weight: 600; font-size: 12.5px; color: #17181c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-nm em { display: block; font-style: normal; font-size: 11px; color: #8b909a; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-st { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; border-radius: 999px; padding: 2px 7px 2px 5px; white-space: nowrap; }
.ag-st-i { width: 10px; height: 10px; display: inline-grid; }
.ag-st-i svg { width: 10px; height: 10px; }
.ag-st.ok { color: #15935c; background: #e9f8f0; }
.ag-st.warn { color: #b5791a; background: #f8efdd; }
.ag-st.bad { color: #c3463f; background: #fae9e8; }
.ag-st.neutral { color: #5b6472; background: #eef1f5; }
.ag-r2 { margin-top: 8px; font-size: 12px; color: #3c4049; line-height: 1.3; }
.ag-r3 { display: flex; align-items: center; margin-top: 8px; font-size: 11px; color: #9aa0a9; font-variant-numeric: tabular-nums; gap: 8px; }
.ag-cnt { margin-left: auto; }

.ag-foot { display: flex; align-items: center; gap: 12px; height: 52px; margin: 8px -20px 0; padding: 0 16px; border-top: 1px solid #e7e8ee; }
.ag-time { background: #1b1e26; color: #f3f4f7; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; border-radius: 8px; padding: 4px 9px; }
.ag-replay { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: #1b1e26; color: #f3f4f7; border: 0; display: grid; place-items: center; padding: 8px; }
.ag-replay:hover:not(:disabled) { filter: brightness(1.18); }
.ag-glyph { display: inline-grid; width: 16px; height: 16px; }
.ag-caps { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.ag-caps span { font-size: 11px; color: #9aa0a9; background: #fff; border: 1px solid #e7e8ee; border-radius: 999px; padding: 3px 9px; }
@media (prefers-reduced-motion: reduce) { .ag-card { transition: none; } }

/* behaviors: each behavior of the agent scored over a suite of runs against its bar. The verdict is said in type, as a
   build's state is, and each behavior's mark is the one strong colour in its row. */
.bh-progress { display: grid; gap: 10px; }
.bh-progress-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 15px; }
.bh-progress-top b { font-weight: 560; }
.bh-progress .bar { height: 8px; }
.bh-card { margin-top: 44px; }
.bh-verdict { margin: 0; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; }
.bh-verdict.clear { color: var(--green); }
.bh-verdict.blocked { color: var(--red); }
.bh-verdict.none { color: var(--muted); }
.bh-line { margin: 10px 0 0; max-width: 780px; font-size: 17px; line-height: 1.5; color: var(--ink2); }
.bh-facts { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.bh-card > .hint { margin-top: 8px; }
.bh-table { margin-top: 24px; }
.bh-table th, .bh-table td { padding-left: 10px; padding-right: 10px; }
.bh-table th:first-child, .bh-table td:first-child { padding-left: 0; }
.bh-table th:last-child, .bh-table td:last-child { padding-right: 0; }
.bh-table .bh-col-bar, .bh-table .bh-col-passed, .bh-table .bh-col-rate { width: 1%; white-space: nowrap; text-align: right; }
.bh-table .bh-col-mark { width: 1%; text-align: right; }
.bh-group td { padding: 30px 0 10px; border-bottom: 1px solid var(--line); }
.bh-group b { font-size: 15px; font-weight: 560; margin-right: 10px; }
.bh-group span { font-size: 13px; color: var(--muted); }
.bh-row { cursor: pointer; }
.bh-row:hover td, .bh-row.open td { background: var(--soft); }
.bh-row:focus-visible { outline-offset: -2px; }
.bh-sentence { font-size: 15px; line-height: 1.4; }
.bh-sub { display: none; margin-top: 4px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bh-unseen { display: block; margin-top: 2px; font-size: 12px; color: var(--faint); }
.bh-mark { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; vertical-align: middle; }
.bh-mark.ok { background: var(--green); color: #fff; }
.bh-mark.bad { background: var(--red); color: #fff; }
.bh-mark.none { border: 2px dashed #d3d5da; color: var(--faint); }
.bh-mark-i { width: 12px; height: 12px; display: inline-grid; }
.bh-mark-i svg { width: 12px; height: 12px; }
.bh-detail td { padding: 4px 0 22px; background: var(--soft); }
.bh-more { display: grid; gap: 8px; padding: 0 16px; max-width: 760px; }
.bh-more p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink2); }
.bh-more .bh-from, .bh-more .bh-unseen-why { color: var(--muted); }
.bh-more .text-link { margin-top: 0; justify-self: start; font-size: 13px; }
.bh-fails { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.bh-fails li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; font-size: 13px; line-height: 1.5; }
.bh-fails a { color: var(--red); font-weight: 500; white-space: nowrap; }
.bh-fails a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bh-suites { margin-top: 48px; }
.bh-suites h3 { font-size: 17px; }
.bh-suite-list { display: grid; gap: 8px; margin-top: 14px; }
.bh-suite { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: left; font-size: 14px; }
.bh-suite:hover { border-color: #cfd2d7; background: #fcfcfd; }
.bh-suite.on { border-color: var(--ink); }
.bh-suite-what { flex: 1; min-width: 180px; color: var(--ink2); }
@media (max-width: 720px) {
  .bh-card { margin-top: 36px; }
  .bh-verdict { font-size: 26px; }
  .bh-line { font-size: 16px; }
  .bh-sub { display: block; }
  .bh-more { padding: 0 12px; }
  /* The platform stacks a table's cells on a phone. The scorecard stays a table there, with the bar and the runs passed
     folded under each behavior, so its rate and mark keep their own column. */
  .table.bh-table { display: table; }
  .table.bh-table thead { display: table-header-group; }
  .table.bh-table tbody { display: table-row-group; }
  .table.bh-table tr { display: table-row; }
  .table.bh-table th, .table.bh-table td { display: table-cell; width: auto; padding: 14px 6px; border-bottom: 1px solid var(--line); }
  .table.bh-table th { padding: 0 6px 10px; }
  .table.bh-table th:first-child, .table.bh-table td:first-child { padding-left: 0; }
  .table.bh-table th:last-child, .table.bh-table td:last-child { padding-right: 0; }
  .table.bh-table .bh-col-rate, .table.bh-table .bh-col-mark { width: 1%; }
  .table.bh-table .bh-col-bar, .table.bh-table .bh-col-passed { display: none; }
  .table.bh-table .bh-group td { padding: 26px 0 10px; }
  .table.bh-table .bh-group span { display: block; margin-top: 2px; }
  .table.bh-table .bh-detail td { padding: 4px 0 18px; }
}

/* real phones for the paging app */
.phones-form { display: grid; gap: 10px; }
.phones-form .field { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }

/* Opal's computer beside a run */
.vc-card .vc-live { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--soft); }
.vc-card .vc-live img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.vc-card .vc-empty { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; padding: 16px;
  text-align: center; font-size: 13px; color: var(--muted); }
.vc-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.vc-steps li { display: flex; gap: 8px; align-items: baseline; color: var(--muted); }
.vc-steps li.done, .vc-steps li.active { color: var(--ink); }
.vc-steps li.active { font-weight: 560; }
.vc-steps .mark { width: 14px; flex: none; color: var(--green); }
.vc-steps li.active .mark { color: var(--blue); }
.vc-links { display: grid; gap: 6px; margin-top: 14px; font-size: 13px; }
.vc-links a { color: var(--blue); }
.vc-links a:hover { text-decoration: underline; }

/* tracker */
.counts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.counts button { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 12px 16px; display: grid; gap: 2px; text-align: left; min-width: 112px; }
.counts button.on { border-color: var(--ink); }
.counts .n { font-size: 24px; font-weight: 400; letter-spacing: -0.02em; }
.counts .l { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
/* each layer folds to one row, opened to its parts */
.layer { border-bottom: 1px solid var(--line); }
.layer:first-child { margin-top: 28px; border-top: 1px solid var(--line); }
.layer-head { display: flex; align-items: baseline; gap: 12px; padding: 18px 0; cursor: pointer; list-style: none; }
.layer-head::-webkit-details-marker { display: none; }
.layer-head h3 { flex: 1; min-width: 0; font-size: 17px; }
.layer-head::after { content: "›"; color: var(--faint); font-size: 18px; transition: transform 0.15s ease; }
.layer[open] > .layer-head::after { transform: rotate(90deg); }
.layer-head:hover h3 { color: var(--ink2); }
.layer-id { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; min-width: 34px; }
.layer-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.layer > .item:last-child { margin-bottom: 12px; }
.item { border-bottom: 1px solid var(--line); }
.item summary { list-style: none; display: grid; grid-template-columns: 14px minmax(0, 1fr) 160px 150px; gap: 12px; align-items: center; padding: 12px 0; cursor: pointer; font-size: 14px; }
.item summary::-webkit-details-marker { display: none; }
.item summary:hover .item-title { text-decoration: underline; text-underline-offset: 3px; }
.item-owner, .item-label { font-size: 12px; color: var(--muted); }
.item-body { display: grid; gap: 8px; padding: 0 0 16px 26px; font-size: 13px; line-height: 1.55; color: var(--ink2); }
.item-body b { font-weight: 600; color: var(--ink); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }

/* sign in */
.signin { max-width: 380px; margin: 14vh auto 0; display: grid; gap: 14px; }
.signin .mark { width: 40px; height: 40px; color: var(--ink); }
.signin h1 { font-size: 44px; margin-top: 18px; }
.signin .muted { margin: 8px 0 14px; font-size: 17px; }
.error { background: var(--red-bg); color: var(--red); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; z-index: 20; max-width: calc(100% - 40px); }

@media (max-width: 980px) {
  .run-body { grid-template-columns: minmax(0, 1fr); }
  .grid3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .elsewhere { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .item summary { grid-template-columns: 14px minmax(0, 1fr) 120px; }
  .item summary .item-owner { display: none; }
}
@media (max-width: 720px) {
  .status-head { padding: 28px 0 20px; }
  .status-list a { grid-template-columns: 8px minmax(0, 1fr) 12px; row-gap: 2px; padding: 16px 18px; }
  .status-list .status-area { grid-column: 2; }
  .status-list .status-text { grid-column: 2; grid-row: 2; font-size: 14px; color: var(--muted); }
  .status-list .status-go { grid-column: 3; grid-row: 1 / span 2; }
  .main { padding: 8px max(16px, env(safe-area-inset-right, 0px)) 96px max(16px, env(safe-area-inset-left, 0px)); }
  .page-head { padding: 28px 0 32px; }
  h1 { font-size: 40px; letter-spacing: -0.03em; }
  .lede { font-size: 17px; }
  .section { margin-top: 56px; }
  .card { padding: 22px; }
  .filters { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .check-row { grid-template-columns: minmax(0, 1fr) auto; }
  .check-row .last { grid-column: 1; grid-row: 2; }
  .banner { border-radius: 22px; }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr.row { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .table td { border: 0; padding: 2px 0; }
  .tl { grid-template-columns: 56px minmax(0, 1fr); }
  .tl .tl-who { grid-column: 2; }
  .tl .tl-text { grid-column: 2; }
  .call { grid-template-columns: minmax(0, 1fr) auto; }
  .item summary { grid-template-columns: 14px minmax(0, 1fr); }
  .item summary .item-label { display: none; }
}

/* Agent runs recorded here: each turn's verdict and what did not go as expected. */
.turn-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.problems { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--red); font-size: 13px; line-height: 1.5; }

/* Opal's virtual computer: recordings of what it saw and the evidence pictures. */
.vc-video { display: block; width: 100%; max-width: 860px; aspect-ratio: 16 / 10; background: #0a0a0a; border-radius: 12px; margin-top: 4px; }
.vc-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.vc-shots img { display: block; width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.vc-log { max-height: 420px; overflow: auto; margin: 12px 0 0; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }
details.card > summary { cursor: pointer; font-weight: 560; }
.vc-rec > summary { cursor: pointer; font-size: 13px; color: var(--ink2); width: max-content; }
.differences { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Screen memory on the Computer page: how far a workflow is toward its certificate */
.meter { height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; margin: 14px 0 6px; }
.meter span { display: block; height: 100%; background: var(--ink); border-radius: 999px; transition: width 400ms ease; }
.meter-text { margin: 0 0 12px; font-size: 14px; color: var(--ink2); }
.cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.events { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }

/* Intelligence */
.intel-stats .stat { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 12px 16px; display: grid; gap: 2px; min-width: 120px; }
.intel-stats .n, .counts .stat .n { font-size: 24px; letter-spacing: -0.02em; }
.counts .stat { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 12px 16px; display: grid; gap: 2px; min-width: 120px; }
.counts .stat .l { font-size: 12px; color: var(--muted); }
.intel-record { margin: 24px 0; display: grid; gap: 8px; }
.intel-body { margin-top: 28px; display: grid; gap: 16px; }
.intel-gap { margin-top: 36px; }
.signal { display: grid; gap: 10px; }
.signal h3 { margin: 4px 0 0; }
.signal .result { background: var(--soft); border-radius: 16px; padding: 14px 16px; }
.before-after { display: flex; gap: 32px; flex-wrap: wrap; }
.before-after div { display: grid; gap: 2px; }
.before-after .l { font-size: 12px; color: var(--muted); }
.before-after .n { font-size: 22px; letter-spacing: -0.02em; }
.assign { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.assign .input { max-width: 220px; }
.evidence-ids { display: flex; flex-wrap: wrap; gap: 2px; }
.evidence { margin-top: 10px; display: grid; gap: 8px; }
.evidence-task { border-top: 1px solid var(--line); padding-top: 8px; }
.steps-mini { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.steps-mini li { display: flex; justify-content: space-between; gap: 16px; }
.defs { display: grid; gap: 6px; margin-top: 18px; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 60px; gap: 12px; align-items: center; font-size: 14px; }
.bar { height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.chart-box { margin-top: 8px; }
.chart { width: 100%; height: auto; display: block; }
.chart .limit { fill: none; stroke: var(--faint); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .centre { stroke: var(--muted); stroke-width: 1; }
.chart .value { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.chart .dot { fill: var(--ink); }
.chart .hit { fill: var(--orange); stroke: #fff; stroke-width: 1.5; }
.chart .tick { font-size: 11px; fill: var(--muted); text-anchor: middle; }
@media (max-width: 720px) { .bar-row { grid-template-columns: 110px 1fr 50px; } }

/* corrections */
.report, .form-card { display: grid; gap: 14px; }
.report h3, .form-card h3 { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.form-grid label, label.wide { display: grid; gap: 6px; }
.form-grid .l, label.wide .l { font-size: 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.finding-said { margin: 0; font-size: 15px; line-height: 1.5; }
.finding-said .l { color: var(--muted); font-size: 13px; }
.finding-detail { display: grid; gap: 12px; }
.finding-detail > p { margin: 0; }
.case-box { background: var(--soft); border-radius: 16px; padding: 14px 16px; display: grid; gap: 6px; }
.case-box p { margin: 0; }
.action-box { display: grid; gap: 12px; }
.history summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.history .steps-mini li, .steps-mini li { display: flex; justify-content: space-between; gap: 12px; }
.gate { display: grid; gap: 6px; }
.gate .bar { height: 6px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.gate .bar span { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.route-results { display: grid; gap: 10px; }
.route-result { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 6px; }
.route-result p { margin: 0; }
.blockers { margin: 0; padding-left: 18px; color: var(--orange); font-size: 13px; line-height: 1.6; }
.picks { display: grid; gap: 6px; font-size: 14px; }
.pick { display: flex; align-items: center; gap: 6px; }
.chip.tiny { height: 20px; padding: 0 8px; font-size: 11px; margin-left: 8px; }
.textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; min-height: 260px; }
.hint.fail { color: var(--red); }

.steps-mini .num { white-space: nowrap; }

/* Workflows from the builder. Type carries each build's state: one line in green, red, ink or gray. The one bold
   element is the strip of 300 runs on a build's page, a mark for each run. */
.build-row { grid-template-columns: minmax(0, 1fr) auto; }
.build-row:hover h3 { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c7c9ce; }
.build-state { display: grid; gap: 3px; justify-items: end; text-align: right; }
.state-word { font-size: 15px; font-weight: 500; white-space: nowrap; }
.state-word.is-live { color: var(--green); }
.state-word.is-broke { color: var(--red); }
.state-word.is-waiting { color: var(--muted); }
.state-detail { font-size: 13px; color: var(--muted); }

.bp-head { max-width: 780px; padding: 6px 0 56px; }
.bp-made { margin: 18px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.bp-state { margin: 40px 0 0; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; }
.bp-state.is-live { color: var(--green); }
.bp-state.is-broke { color: var(--red); }
.bp-state.is-waiting { color: var(--muted); }
.bp-why { margin: 10px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink2); }
.bp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.bp-actions .hint { align-self: center; }
.btn.ghost.bp-off { color: var(--red); }
.bp-sec { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px 56px; padding: 48px 0; border-top: 1px solid var(--line); }
.bp-sec > h2 { font-size: 24px; }
.bp-body { min-width: 0; max-width: 760px; }
.bp-note { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.bp-stale { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--red); }

.runs-total { margin: 0 0 12px; font-size: 48px; line-height: 1; letter-spacing: -0.035em; }
.strips { display: grid; gap: 30px; margin-top: 36px; }
.strip-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.strip-label { font-size: 15px; font-weight: 500; }
.strip-n { font-size: 14px; color: var(--ink2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.strip-n.bad { color: var(--red); }
.strip { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 12px; }
.tick { width: 4px; height: 24px; border-radius: 2px; background: var(--ink); }
.tick.bad { background: var(--red); }
.strip-about { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

.fails { margin-top: 44px; }
.fails h3 { font-size: 17px; }
.fail-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 20px; }
.fail-list p { margin: 0; }
.fail-head { font-size: 13px; font-weight: 500; color: var(--red); }
.fail-change { margin-top: 4px !important; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.fail-why { margin-top: 2px !important; font-size: 13px; line-height: 1.5; color: var(--muted); }
.text-link { margin-top: 18px; padding: 0; border: 0; background: none; font-size: 14px; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c7c9ce; }
.text-link:hover { text-decoration-color: var(--ink); }
.every { margin-top: 40px; font-size: 14px; color: var(--muted); }
.every > summary { cursor: pointer; width: max-content; list-style: none; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: #c7c9ce; color: var(--ink); }
.every > summary::-webkit-details-marker { display: none; }
.every > summary:hover { text-decoration-color: var(--ink); }
.every-cat { margin-top: 22px; }
.every-cat h3 { font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.every-cat ol { margin: 0; padding-left: 36px; display: grid; gap: 4px; color: var(--ink2); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.every-cat li.bad { color: var(--red); }
.every-cat li::marker { color: var(--faint); font-variant-numeric: tabular-nums; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.check-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: baseline; }
.check-label { margin: 0; font-size: 15px; font-weight: 500; }
.check-detail { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.check-word { font-size: 14px; font-weight: 500; white-space: nowrap; }
.check-word.ok { color: var(--green); }
.check-word.bad { color: var(--red); }
.check-word.wait { color: var(--muted); }

.does { margin: 0; padding-left: 24px; display: grid; gap: 18px; }
.does li::marker { color: var(--faint); font-variant-numeric: tabular-nums; }
.does-label { margin: 0; font-size: 15px; font-weight: 500; }
.quote { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.keeps { margin-top: 40px; }
.keeps h3 { font-size: 15px; font-weight: 500; }
.keeps ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--muted); }

.versions { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.version { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.version p { margin: 0; }
.version-n { font-size: 15px; font-weight: 500; }
.version.on .version-n { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c7c9ce; }
.version:hover .version-n { text-decoration: underline; text-underline-offset: 3px; }
.version-sub { margin-top: 2px !important; font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
  .bp-sec { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 40px 0; }
}
@media (max-width: 720px) {
  .build-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .build-state { justify-items: start; text-align: left; }
  .bp-state { font-size: 26px; margin-top: 32px; }
  .runs-total { font-size: 40px; }
}

/* The Numbers page: each live run added up, one card a workflow. Each number is a button that opens its runs. */
.nb-controls { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 14px; }
.nb-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 180px)); gap: 12px; }
.nb-note { margin: 0 0 24px; }
.nb-card { padding-bottom: 12px; }
.nb-card h3 { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 10px; }
.nb-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; width: 100%; padding: 14px 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; }
.nb-row:disabled { opacity: 1; }
.nb-row:hover:not(:disabled) .nb-num, .nb-row[aria-expanded="true"] .nb-num { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #c7c9ce; }
.nb-row.sub { border-top: 0; padding: 6px 0 6px 16px; }
.nb-label { min-width: 0; font-size: 15px; line-height: 1.4; }
.nb-label small, .nb-value small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
.nb-value { flex: none; font-size: 22px; line-height: 1.2; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.nb-row.sub .nb-label { font-size: 14px; color: var(--ink2); }
.nb-row.sub .nb-value { font-size: 16px; }
.nb-group { padding: 16px 0 4px; border-top: 1px solid var(--line); font-size: 15px; }
.nb-group small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.nb-runs { margin: 4px 0 12px; padding: 6px 0; border-radius: 16px; background: var(--soft); }
.nb-run { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 9px 14px; font-size: 14px; }
.nb-run:hover { background: #ececf0; }
.nb-run-id { font-variant-numeric: tabular-nums; font-weight: 500; }
.nb-run-time { margin-left: auto; font-variant-numeric: tabular-nums; }
.nb-runs .more { margin: 6px 0 4px; }
@media (max-width: 720px) {
  .nb-controls { align-items: stretch; }
  .nb-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .nb-value { font-size: 20px; }
}

/* The Team page: an admin adds a person with a role, and each person's row changes their role, what they review,
   their code or removes them. A new code shows once, on a soft card above the form. */
.team-code { background: var(--soft); border-color: transparent; margin-bottom: 24px; }
.team-code .eyebrow { margin-bottom: 4px; }
.team-code-value { font-size: 22px; letter-spacing: 0.01em; margin: 0 0 12px; overflow-wrap: anywhere; user-select: all; }
.team-code-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.team-card { margin-bottom: 44px; }
.team-card h2 { font-size: 22px; margin-bottom: 18px; }
.team-add { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; align-items: end; }
.team-add-go { display: flex; padding-bottom: 4px; }
.team-what { margin-top: 14px; }
.team-local { margin: -20px 0 28px; }
.team-table .select { min-height: 36px; font-size: 14px; border-radius: 10px; background-position: calc(100% - 18px) 15px, calc(100% - 13px) 15px; }
.team-name { font-weight: 500; }
.team-you { margin-left: 10px; height: 22px; padding: 0 9px; }
.team-of { margin-top: 6px; }
.team-act { text-align: right; white-space: nowrap; }
.team-actions { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.team-ask { font-size: 13px; color: var(--ink2); margin-right: 4px; }
.team-inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.team-inline-form .btn.quiet, .team-actions .btn.quiet { padding: 0 6px; }
.team-inline { max-width: 116px; min-height: 36px; font-size: 14px; border-radius: 10px; }
/* The columns keep their widths while a row asks for a hospital team, and a team's name is typed, with earlier ones
   suggested as it is typed instead of behind an arrow. */
.team-table th:nth-child(1) { width: 27%; }
.team-table th:nth-child(2) { width: 16%; }
.team-table th:nth-child(3) { width: 18%; }
.team-table th:nth-child(4) { width: 12%; }
.team-inline::-webkit-calendar-picker-indicator, .team-add input[list]::-webkit-calendar-picker-indicator { display: none !important; }
@media (max-width: 860px) {
  .team-add, .team-profile { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .team-add-go { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .team-add, .team-profile { grid-template-columns: minmax(0, 1fr); }
}
/* The invite just made: who it goes to and the email as it will read, with its link shown this once. */
.team-invite-to { margin: 0 0 12px; font-size: 15px; }
.team-invite-mail { margin: 0 0 14px; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  font: 14px/1.6 "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; white-space: pre-wrap;
  overflow-wrap: anywhere; color: var(--ink2); max-width: 760px; }
/* A person's row: their full name, then the name they sign in with and their work email. */
.team-who { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.team-who .team-you { margin-left: 2px; }
.team-edit.btn.quiet { min-height: 28px; padding: 0 6px; font-size: 12px; }
.team-edit-row td { background: var(--soft); }
.team-profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; padding: 6px 0; }
.team-profile .team-add-go { gap: 8px; align-items: center; }
