:root {
  color-scheme: light;
  --bg: #f6f7f7;
  --surface: #ffffff;
  --ink: #17201d;
  --muted: #66736f;
  --line: #dfe5e2;
  --teal: #147d73;
  --teal-dark: #0f5d55;
  --green: #14864c;
  --amber: #a96708;
  --red: #b33a2f;
  --code: #f0f4f2;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }

.top-nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { font-weight: 750; letter-spacing: 0; }
.top-nav nav { display: flex; gap: 6px; }
.top-nav nav a, .sidebar a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}
.top-nav nav a.active, .top-nav nav a:hover, .sidebar a.active, .sidebar a:hover {
  background: #edf5f3;
  color: var(--teal-dark);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 650;
  font-size: 14px;
}
.button.primary { background: var(--teal); border-color: var(--teal); color: white; }
.button.secondary { background: white; color: var(--ink); }
.button.full { width: 100%; }
.eyebrow {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-shell {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(360px, .78fr) minmax(520px, 1.22fr);
  gap: 32px;
  align-items: center;
  padding: 48px 40px 64px;
}
.hero-copy { max-width: 640px; padding-left: 16px; }
.hero-copy h1 {
  margin-top: 14px;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: 0;
}
.hero-subtitle {
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.proof-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; color: var(--muted); font-size: 13px; }
.proof-row span { border: 1px solid var(--line); background: white; border-radius: 8px; padding: 8px 10px; }
.hero-visual img, .auth-preview img, .video-frame img {
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(23, 32, 29, .14);
}

.auth-shell {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 42px;
  align-items: center;
  padding: 48px;
}
.auth-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  display: grid;
  gap: 16px;
}
.auth-panel h1 { font-size: 30px; }
.auth-panel button { cursor: pointer; }
.auth-error {
  border: 1px solid #ffaaa9;
  border-radius: 7px;
  background: #fff5f5;
  color: #c51f2e;
  padding: 10px 12px;
  font-size: 13px;
}
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
input {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font-size: 14px;
}
.fine-print { color: var(--muted); font-size: 13px; line-height: 1.5; }
.link-row { display: flex; gap: 18px; color: var(--teal-dark); font-size: 13px; }

.app-frame {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 64px);
}
.sidebar {
  border-right: 1px solid var(--line);
  background: white;
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar strong { padding: 0 10px 18px; }
.workspace { padding: 28px; min-width: 0; }
.workspace-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.workspace-head h1 { margin-top: 6px; font-size: 30px; }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.metric, .panel, .table-shell, .workflow-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.metric { padding: 16px; }
.metric span { color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 700; }
.metric strong { display: block; margin-top: 8px; font-size: 26px; }
.table-shell { overflow: hidden; }
.table-toolbar {
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
code, pre {
  background: var(--code);
  border-radius: 6px;
  padding: 3px 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.status { font-weight: 750; }
.status.pr_opened, .status.success { color: var(--green); }
.status.failed_tests { color: var(--red); }
.status.setup_failed { color: var(--amber); }

.detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 14px;
}
.detail-span { grid-column: 1 / -1; }
.panel { padding: 16px; min-height: 260px; overflow: hidden; }
.panel h2 { font-size: 15px; margin-bottom: 12px; }
.panel pre {
  white-space: pre-wrap;
  max-height: 360px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.45;
}
.timeline-panel div { display: grid; gap: 9px; }
.timeline-item { border-left: 2px solid var(--teal); padding: 6px 0 6px 12px; color: var(--muted); }
.timeline-item strong { display: block; color: var(--ink); }

.demo-shell {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 24px;
  padding: 42px;
}
.video-card { min-width: 0; }
.video-frame { position: relative; }
.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(20,125,115,.92);
  color: white;
  font-size: 26px;
}
.chapter-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}
.chapter-row span { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.workflow-card { padding: 22px; align-self: start; }
.workflow-card h1 { margin-top: 8px; font-size: 32px; line-height: 1.12; }
.workflow-list { padding: 0; margin: 22px 0; display: grid; gap: 12px; list-style: none; }
.workflow-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: var(--muted); }
.workflow-list span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #edf5f3; color: var(--teal-dark); font-weight: 800; }

@media (max-width: 960px) {
  .hero-shell, .auth-shell, .demo-shell, .app-frame { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 40px; }
  .sidebar { display: none; }
  .metrics, .detail-grid { grid-template-columns: 1fr; }
  .detail-span { grid-column: auto; }
  .top-nav { padding: 0 16px; }
  .top-nav nav { gap: 2px; }
  .workspace, .demo-shell, .auth-shell, .hero-shell { padding: 24px 16px; }
}

/* Reference-matched hero and demo pages */
.home-exact,
.demo-exact {
  background: #ffffff;
  color: #0e1422;
}

.browser-page {
  min-height: 100vh;
  background: #fff;
}

.browser-top,
.address-row,
.demo-browser-top {
  display: flex;
  align-items: center;
  color: #5c6471;
}

.browser-top {
  height: 54px;
  padding: 0 18px;
  background: linear-gradient(#f9fafb, #eef1f4);
  border-bottom: 1px solid #d8dde4;
  gap: 16px;
}

.traffic {
  display: flex;
  gap: 8px;
}

.traffic span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: block;
}

.traffic span:nth-child(1) { background: #ff5f57; }
.traffic span:nth-child(2) { background: #febc2e; }
.traffic span:nth-child(3) { background: #28c840; }

.tab {
  width: 270px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: rgba(255,255,255,.78);
  border-radius: 11px 11px 0 0;
  box-shadow: 0 -1px 0 rgba(255,255,255,.8) inset;
  color: #1b2230;
  font-size: 14px;
}

.tab button,
.browser-menu {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #8d95a1;
  font-size: 18px;
}

.new-tab {
  font-size: 24px;
  color: #7a828c;
}

.address-row {
  height: 44px;
  gap: 17px;
  padding: 0 18px;
  background: #f7f8fa;
  border-bottom: 1px solid #e0e4ea;
  font-size: 18px;
}

.address {
  height: 32px;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 18px;
  background: white;
  border: 1px solid #e2e6eb;
  color: #68717f;
  font-size: 15px;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #9ca1a9;
  color: white;
  font-size: 13px;
}

.mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #0b7772, #21b5a7);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.mark.mini {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 15px;
}

.hero-reference {
  min-height: calc(100vh - 98px);
  display: grid;
  grid-template-columns: 35.2% 64.8%;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 38%, rgba(255,255,255,.98), rgba(246,249,250,.92) 60%, rgba(240,246,247,.9)),
    linear-gradient(180deg, #fff, #f6fafb);
}

.hero-left {
  position: relative;
  padding: 66px 52px 54px 82px;
  overflow: hidden;
}

.logo-line {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.logo-line strong {
  font-size: 28px;
}

.hero-headline {
  margin-top: 126px;
  position: relative;
  z-index: 2;
}

.hero-headline h1 {
  font-size: clamp(56px, 4.25vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 780;
}

.hero-headline p {
  margin-top: 28px;
  font-size: 30px;
  color: #5e6470;
}

.hero-actions {
  margin-top: 46px;
  display: flex;
  gap: 24px;
}

.button.dark {
  height: 62px;
  min-width: 190px;
  border-radius: 8px;
  background: linear-gradient(180deg, #141922, #05080d);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  font-size: 20px;
  gap: 12px;
}

.button.outline {
  height: 62px;
  min-width: 210px;
  border-radius: 8px;
  background: rgba(255,255,255,.8);
  border: 1px solid #c8cdd3;
  color: #090d14;
  font-size: 20px;
  gap: 14px;
}

.play-triangle {
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid #09101b;
}

.floor-grid {
  position: absolute;
  left: -80px;
  right: -30px;
  bottom: -110px;
  height: 310px;
  transform: perspective(520px) rotateX(63deg);
  transform-origin: bottom;
  opacity: .75;
  background:
    radial-gradient(circle, rgba(19,150,143,.38) 0 3px, transparent 4px) 0 0 / 82px 48px,
    linear-gradient(90deg, rgba(47,151,150,.2) 1px, transparent 1px) 0 0 / 82px 48px,
    linear-gradient(rgba(47,151,150,.2) 1px, transparent 1px) 0 0 / 82px 48px;
}

.hero-product {
  margin: 10px 14px 18px 0;
  border: 1px solid #cdd5dd;
  border-radius: 7px;
  background: rgba(255,255,255,.94);
  display: grid;
  grid-template-columns: 165px 1fr;
  min-height: calc(100vh - 128px);
  box-shadow: 0 16px 70px rgba(54,67,82,.08);
  overflow: hidden;
}

.product-sidebar {
  border-right: 1px solid #e2e6ea;
  padding: 26px 7px;
  display: flex;
  flex-direction: column;
}

.side-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 10px 26px;
  font-size: 14px;
}

.product-sidebar nav {
  display: grid;
  gap: 8px;
}

.product-sidebar nav a,
.side-footer span {
  font-size: 12px;
  color: #303947;
  padding: 9px 11px;
  border-radius: 7px;
}

.product-sidebar nav a.selected {
  background: #eef1f5;
}

.side-footer {
  margin-top: auto;
  display: grid;
  gap: 4px;
  color: #68717f;
}

.user-dot {
  margin: 10px;
  padding-left: 34px;
  position: relative;
  font-size: 12px;
}

.user-dot:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d3c1ad, #1f2a36);
}

.user-dot small {
  color: #74808e;
}

.run-board {
  padding: 22px 34px 22px 30px;
  min-width: 0;
}

.run-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 42px;
  font-size: 12px;
  color: #5b6573;
}

.run-topbar strong {
  color: #0e1422;
  font-size: 15px;
}

.run-topbar em {
  padding: 4px 8px;
  border-radius: 10px;
  background: #fff2d9;
  color: #a46a05;
  font-style: normal;
}

.run-topbar button {
  margin-left: auto;
  height: 32px;
  border: 1px solid #d7dde5;
  border-radius: 7px;
  background: white;
  padding: 0 12px;
}

.run-topbar button + button {
  margin-left: 0;
  width: 36px;
}

.run-grid {
  display: grid;
  grid-template-columns: 1fr .66fr .74fr;
  gap: 14px;
}

.run-grid article {
  border: 1px solid #e1e6eb;
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  padding: 16px;
  font-size: 12px;
  color: #697382;
}

.span-2 { grid-column: span 1; }
.issue-card { min-height: 160px; }
.repo-line { display: flex; align-items: center; gap: 10px; color: #1d69c8; }
.repo-line em { color: #697382; background: #eef1f3; padding: 3px 7px; border-radius: 9px; font-style: normal; }
.python-dot { color: #3776ab; }
.issue-card h3 { margin: 20px 0 10px; font-size: 14px; color: #111827; }
.issue-card footer { margin-top: 28px; }

.meta-card,
.pr-card {
  display: grid;
  gap: 7px;
}

.meta-card strong {
  color: #263140;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
}

.pr-card a {
  color: #176fd3;
  font-size: 18px;
}

.pr-card button {
  justify-self: end;
  margin-top: -28px;
  border: 0;
  border-radius: 5px;
  background: #d7f1e4;
  color: #147a4a;
  padding: 7px 12px;
}

.pr-card em {
  font-style: normal;
  color: #6a7280;
}

.timeline-card {
  grid-row: span 3;
}

.timeline-card header,
.tests-card header,
.tools-card header,
.pr-status-card header {
  display: flex;
  justify-content: space-between;
  color: #1b2331;
  margin-bottom: 12px;
}

.timeline-card header button {
  background: white;
  border: 1px solid #d8dee5;
  border-radius: 6px;
  padding: 7px 10px;
}

.timeline-row {
  position: relative;
  min-height: 54px;
  padding: 0 0 0 32px;
  color: #68717f;
}

.timeline-row:before {
  content: "";
  position: absolute;
  left: 8px;
  top: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid #b9c1cb;
  background: white;
}

.timeline-row.done:before {
  border-color: #1f8f62;
  background: #1f8f62;
}

.timeline-row.active:before,
.timeline-row.focus:before {
  border-color: #118d8d;
  box-shadow: 0 0 0 5px rgba(17,141,141,.12);
}

.timeline-row.focus {
  margin: 0 -8px 6px;
  padding: 10px 8px 10px 40px;
  border-radius: 8px;
  background: #f1f3f5;
}

.timeline-row strong {
  color: #1b2331;
  display: block;
}

.timeline-row span {
  float: right;
}

.timeline-row small {
  display: block;
  margin-top: 5px;
}

.tests-card,
.tools-card,
.pr-status-card {
  grid-column: span 2;
}

.progress {
  height: 5px;
  background: #edf1f4;
  border-radius: 99px;
  margin-bottom: 14px;
}

.progress i {
  display: block;
  width: 78%;
  height: 100%;
  background: #087b78;
  border-radius: inherit;
}

.tests-card code {
  display: block;
  background: transparent;
  padding: 0 0 10px;
  color: #6f7885;
}

.tests-card p,
.tools-card p,
.pr-status-card p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 9px 0;
  color: #5d6674;
}

.tests-card .pass { color: #23855c; }
.tests-card .warn { color: #b77710; }
.tests-card .idle { color: #98a1ad; }

.tools-card p span {
  margin-left: auto;
}

.tools-card time {
  color: #667180;
  min-width: 44px;
  text-align: right;
}

.pr-status-card b {
  font-weight: 600;
  color: #17804f;
}

.pr-status-card p:first-of-type b {
  color: #a96c07;
  background: #fff0d8;
  border-radius: 4px;
  padding: 4px 7px;
}

.pr-status-card button {
  float: right;
  margin-top: 2px;
  background: white;
  border: 1px solid #d9dfe6;
  border-radius: 7px;
  padding: 9px 14px;
}

.demo-browser {
  background: #fff;
}

.demo-browser-top {
  height: 56px;
  padding: 0 27px;
  gap: 18px;
  border-bottom: 1px solid #e3e6ea;
  background: #fbfbfc;
}

.nav-arrow {
  font-size: 22px;
  color: #4d5663;
}

.demo-address {
  height: 34px;
  width: 62%;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  border: 1px solid #dce2e8;
  background: white;
  border-radius: 9px;
  padding: 0 14px;
  color: #4b5563;
  font-size: 14px;
}

.demo-address button,
.demo-address a {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #9aa2ad;
  text-decoration: none;
}

.plus {
  margin-left: auto;
  font-size: 24px;
}

.demo-nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  border-bottom: 1px solid #e2e5e9;
}

.demo-brand,
.demo-nav nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.demo-brand strong {
  font-size: 23px;
}

.demo-nav nav {
  gap: 54px;
  font-size: 16px;
}

.hex-mark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  color: white;
  background: #07121d;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
  font-size: 24px;
}

.demo-reference {
  padding: 40px 43px;
}

.demo-reference > h1 {
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.demo-reference > h1 span {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  color: #006d6d;
  border: 1px solid #71c8c5;
  border-radius: 99px;
  padding: 5px 13px;
  font-size: 14px;
  font-weight: 500;
  vertical-align: middle;
}

.demo-content-grid {
  display: grid;
  grid-template-columns: minmax(650px, 1.4fr) minmax(410px, .9fr);
  gap: 26px;
}

.video-panel,
.workflow-panel,
.demo-info-grid article {
  border: 1px solid #dde3e8;
  border-radius: 10px;
  background: white;
}

.video-panel {
  overflow: hidden;
}

.video-app {
  min-height: 500px;
  position: relative;
  display: grid;
  grid-template-columns: 146px 1fr;
}

.video-sidebar {
  background: linear-gradient(180deg, #081421, #0b1924);
  padding: 24px 0;
  color: white;
  display: grid;
  align-content: start;
  gap: 6px;
}

.video-sidebar .cube {
  margin: 0 0 24px 22px;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 8px;
}

.video-sidebar a {
  padding: 13px 24px;
  font-size: 13px;
}

.video-sidebar a.selected {
  background: linear-gradient(90deg, #0b827b 0 4px, rgba(11,130,123,.32) 4px);
}

.video-main {
  padding: 20px 22px 92px;
}

.run-video-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: #5d6671;
}

.run-video-head strong {
  color: #111827;
  font-size: 18px;
  margin-right: 8px;
}

.run-video-head em {
  padding: 4px 8px;
  border-radius: 9px;
  background: #dff3e7;
  color: #1b8555;
  font-style: normal;
}

.run-video-head p {
  margin-top: 9px;
}

.tabs {
  display: flex;
  gap: 36px;
  margin-top: 26px;
  border-bottom: 1px solid #e5e9ee;
  font-size: 13px;
}

.tabs b,
.tabs span {
  padding-bottom: 13px;
}

.tabs b {
  border-bottom: 2px solid #007b75;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1.1fr .82fr;
  gap: 16px;
  margin-top: 18px;
}

.overview-grid article {
  border: 1px solid #e2e7ec;
  border-radius: 8px;
  padding: 16px;
  min-height: 195px;
  font-size: 13px;
}

.overview-grid h3 {
  margin: 0 0 14px;
}

.overview-grid p {
  display: flex;
  justify-content: space-between;
  margin: 16px 0;
  color: #263140;
}

.overview-grid b {
  color: #168050;
}

.large-play {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 0;
  color: white;
  background: rgba(0,0,0,.68);
  font-size: 36px;
}

.logs-panel {
  margin-top: 18px;
  border: 1px solid #e3e8ed;
  border-radius: 8px;
  overflow: hidden;
}

.logs-panel strong {
  display: block;
  padding: 14px 16px;
}

.logs-panel pre {
  height: 72px;
  margin: 0;
  border-radius: 0;
  background: #06111d;
  color: #d3efe7;
}

.video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 48px;
  height: 46px;
  background: #020202;
  color: white;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
}

.video-controls i {
  height: 6px;
  flex: 1;
  border-radius: 99px;
  background: linear-gradient(90deg, white 0 2%, #5d5d5d 2% 100%);
}

.chapters {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  color: #5c6673;
  font-size: 12px;
}

.chapters b {
  font-weight: 500;
}

.workflow-panel {
  padding: 24px;
}

.workflow-panel h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

.workflow-step {
  display: grid;
  grid-template-columns: 30px 24px 1fr 76px 72px;
  align-items: center;
  min-height: 66px;
  border-bottom: 1px solid #e7ebef;
  gap: 10px;
}

.workflow-step span {
  color: #101721;
  font-size: 24px;
}

.workflow-step b {
  font-weight: 500;
}

.workflow-step strong {
  font-weight: 520;
}

.workflow-step small {
  display: block;
  margin-top: 7px;
  color: #5c6672;
  font-weight: 400;
}

.workflow-step em {
  border: 1px solid #a9dfbd;
  border-radius: 99px;
  color: #16804c;
  padding: 6px 14px;
  font-style: normal;
  font-size: 13px;
}

.workflow-step time {
  color: #3d4652;
  text-align: right;
}

.score-strip {
  margin-top: 24px;
  border: 1px solid #e3e8ed;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.score-strip div {
  padding: 16px 20px;
  text-align: center;
  border-right: 1px solid #e3e8ed;
}

.score-strip div:last-child {
  border-right: 0;
}

.score-strip span {
  display: block;
  margin-bottom: 6px;
  color: #2f3845;
}

.score-strip strong {
  font-size: 23px;
}

.score-strip .teal {
  color: #058074;
}

.workflow-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 22px;
}

.button.teal {
  height: 42px;
  background: linear-gradient(180deg, #009080, #006f69);
  color: white;
  border-color: transparent;
}

.demo-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.demo-info-grid article {
  min-height: 200px;
  padding: 24px;
}

.demo-info-grid article > span {
  color: #007c76;
  font-size: 34px;
}

.demo-info-grid h2 {
  margin: 12px 0 14px;
  font-size: 22px;
}

.demo-info-grid p {
  color: #3f4855;
  line-height: 1.55;
}

.demo-info-grid a {
  display: inline-block;
  margin-top: 24px;
  color: #006d68;
  font-weight: 600;
}

@media (max-width: 1180px) {
  .hero-reference,
  .hero-product,
  .demo-content-grid,
  .demo-info-grid {
    grid-template-columns: 1fr;
  }

  .hero-product {
    margin: 24px;
  }

  .hero-left {
    padding: 44px 28px;
  }

  .hero-headline {
    margin-top: 72px;
  }
}

/* Reference-matched runs dashboard */
.runs-exact,
.detail-exact {
  background: #fff;
  color: #0f1726;
}

.runs-exact-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 256px 1fr;
  background: #fff;
}

.runs-rail {
  border-right: 1px solid #d9e0e6;
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 760;
  margin-bottom: 28px;
}

.bot-mark,
.bot-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(180deg, #087b83, #075b66);
}

.workspace-switch,
.connection-card {
  width: 100%;
  display: grid;
  grid-template-columns: 36px 1fr 18px;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 11px;
  border: 1px solid #d5dde5;
  border-radius: 6px;
  background: #fff;
  text-align: left;
  color: #172033;
}

.workspace-switch span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #0aa49b;
  color: white;
  font-weight: 800;
}

.workspace-switch b,
.connection-card b {
  display: grid;
  font-size: 14px;
  line-height: 1.15;
}

.workspace-switch small,
.connection-card small {
  color: #667287;
  font-weight: 400;
}

.runs-rail nav,
.detail-rail nav {
  display: grid;
  gap: 9px;
  margin-top: 30px;
}

.runs-rail nav a,
.detail-rail nav a {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border-radius: 6px;
  color: #4c5668;
}

.runs-rail nav a.active,
.detail-rail nav a.active {
  background: #e9f8f7;
  color: #007b83;
}

.rail-bottom {
  margin-top: auto;
  display: grid;
  gap: 20px;
}

.github-dot {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #05080d;
  color: #fff;
  font-size: 18px;
}

.github-dot.small {
  width: 26px;
  height: 26px;
  font-size: 14px;
}

.connection-card em,
.head-controls em {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin: 0 6px;
  border-radius: 50%;
  background: #16a45f;
}

.avatar-dark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0e3347;
  font-weight: 800;
}

.runs-main {
  padding: 30px 26px;
  overflow-x: auto;
}

.runs-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
}

.runs-head h1 {
  font-size: 30px;
  line-height: 1.1;
}

.runs-head p {
  margin-top: 8px;
  color: #4d586b;
}

.head-controls {
  display: flex;
  gap: 20px;
}

.head-controls button {
  height: 42px;
  min-width: 170px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #d3dbe4;
  border-radius: 4px;
  background: white;
  padding: 0 13px;
  color: #111827;
}

.runs-metrics {
  display: grid;
  grid-template-columns: 1.08fr 1.04fr 1.04fr .96fr 1.3fr;
  gap: 18px;
  margin-top: 30px;
}

.runs-metrics article {
  position: relative;
  min-height: 185px;
  border: 1px solid #d7dfe7;
  border-radius: 5px;
  padding: 17px 14px;
  background: white;
  overflow: hidden;
}

.runs-metrics article > span {
  color: #5f6b7d;
  display: block;
}

.runs-metrics strong {
  display: block;
  margin-top: 20px;
  font-size: 26px;
}

.runs-metrics small {
  display: block;
  margin-top: 18px;
  color: #07965e;
}

.runs-metrics small em {
  color: #5e6979;
  font-style: normal;
}

.runs-metrics svg {
  position: absolute;
  right: 12px;
  top: 55px;
  width: 104px;
  height: 70px;
  fill: none;
  stroke: #0aa49b;
  stroke-width: 2;
}

.donut {
  width: 76px;
  height: 76px;
  border-radius: 50%;
}

.donut.success {
  position: absolute;
  right: 28px;
  top: 45px;
  background: conic-gradient(#28a865 0 78%, #e4e8ed 78% 100%);
}

.donut.success:after,
.donut.multi:after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: white;
}

.distribution {
  display: grid;
  grid-template-columns: 96px 1fr;
  column-gap: 14px;
}

.distribution > span,
.distribution footer {
  grid-column: 1 / -1;
}

.donut.multi {
  position: relative;
  width: 88px;
  height: 88px;
  margin-top: 14px;
  background: conic-gradient(#27a85f 0 60.9%, #f5aa22 60.9% 73.4%, #db3939 73.4% 90.6%, #b8bec6 90.6% 100%);
}

.distribution ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 11px;
  font-size: 12px;
  color: #5e697a;
}

.distribution li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 5px;
}

.distribution i {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: #b8bec6;
}

.distribution i.green { background: #27a85f; }
.distribution i.amber { background: #f5aa22; }
.distribution i.red { background: #db3939; }
.distribution footer {
  margin-top: 10px;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #dfe5eb;
  color: #4d5869;
}

.runs-filters {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 174px 166px 166px 122px 40px;
  gap: 14px;
  margin-top: 28px;
}

.runs-filters label,
.runs-filters button {
  height: 40px;
  border: 1px solid #d6dee6;
  border-radius: 5px;
  background: white;
  color: #1f2937;
}

.runs-filters label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
}

.runs-filters input {
  border: 0;
  outline: 0;
  height: 100%;
  flex: 1;
  color: #5d6879;
}

.runs-table-card {
  margin-top: 24px;
  border: 1px solid #d7dfe7;
  border-radius: 5px;
  overflow: auto;
  background: white;
}

.exact-runs-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}

.exact-runs-table th,
.exact-runs-table td {
  height: 73px;
  border-right: 1px solid #e1e7ed;
  border-bottom: 1px solid #e1e7ed;
  padding: 10px 14px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.exact-runs-table th {
  height: 40px;
  text-align: left;
  color: #111827;
  font-weight: 500;
  background: #fbfcfd;
}

.exact-runs-table th:nth-child(1),
.exact-runs-table td:nth-child(1) { width: 132px; }
.exact-runs-table th:nth-child(2),
.exact-runs-table td:nth-child(2) { width: 240px; }
.exact-runs-table th:nth-child(3),
.exact-runs-table td:nth-child(3) { width: 72px; }
.exact-runs-table th:nth-child(4),
.exact-runs-table td:nth-child(4) { width: 236px; }
.exact-runs-table th:nth-child(5),
.exact-runs-table td:nth-child(5) { width: 112px; }
.exact-runs-table th:nth-child(6),
.exact-runs-table td:nth-child(6) { width: 142px; }
.exact-runs-table th:nth-child(7),
.exact-runs-table td:nth-child(7) { width: 96px; }
.exact-runs-table th:nth-child(8),
.exact-runs-table td:nth-child(8) { width: 88px; }
.exact-runs-table th:nth-child(9),
.exact-runs-table td:nth-child(9) { width: 82px; }
.exact-runs-table th:nth-child(10),
.exact-runs-table td:nth-child(10) { width: 58px; }

.exact-runs-table td a {
  color: #007b83;
  font-weight: 700;
}

.exact-runs-table small {
  display: block;
  color: #6b7788;
  margin-top: 6px;
  font-weight: 400;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border-radius: 5px;
  padding: 0 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.pill.ok { color: #008348; border: 1px solid #8bd4ae; background: #f2fbf6; }
.pill.fail { color: #d11f2f; border: 1px solid #ffaaa9; background: #fff5f5; }
.pill.run { color: #b66d00; border: 1px solid #f0bf76; background: #fff9ee; }
.pill.setup { color: #5e6875; border: 1px solid #d2d9e1; background: #f7f9fb; }

.runs-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #4d5869;
  margin-top: 26px;
}

.runs-pagination nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.runs-pagination button {
  min-width: 32px;
  height: 32px;
  border: 1px solid #d7dfe7;
  border-radius: 4px;
  background: white;
}

.runs-pagination button.active {
  border-color: #00949a;
  color: #007b83;
}

/* Reference-matched run detail */
.detail-exact-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 196px 1fr;
  background: #fff;
}

.detail-rail {
  border-right: 1px solid #d9e0e6;
  padding: 24px 11px;
  display: flex;
  flex-direction: column;
}

.detail-rail .rail-brand {
  margin: 0 8px 34px;
  font-size: 18px;
}

.detail-rail nav {
  margin-top: 0;
}

.detail-rail-bottom {
  margin-top: auto;
  display: grid;
  gap: 16px;
  padding: 0 8px;
}

.detail-user {
  display: grid;
  grid-template-columns: 34px 1fr 16px;
  align-items: center;
  gap: 10px;
}

.detail-user span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: white;
  background: #0d1524;
  border-radius: 50%;
}

.detail-user b {
  display: grid;
  font-size: 13px;
}

.detail-user small {
  color: #697487;
  font-weight: 400;
}

.detail-main {
  min-width: 0;
}

.detail-top {
  height: 64px;
  border-bottom: 1px solid #dce3ea;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px 0 34px;
}

.detail-top div,
.detail-top nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.detail-top a,
.detail-top span {
  color: #596578;
}

.detail-top button {
  height: 32px;
  min-width: 86px;
  border: 1px solid #d5dde5;
  border-radius: 5px;
  background: white;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 25px 18px;
}

.detail-title-row h1 {
  font-size: 24px;
}

.detail-title-row code {
  margin-left: 14px;
  background: white;
  border: 1px solid #d7dfe7;
  border-radius: 13px;
  color: #526074;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
}

.detail-title-row > div {
  display: flex;
  align-items: center;
  gap: 32px;
  color: #526074;
}

.complete-pill {
  color: #008348;
  border: 1px solid #8bd4ae;
  background: #eaf9f0;
  border-radius: 99px;
  padding: 6px 12px;
}

.detail-title-row b {
  border: 1px solid #d6dee6;
  border-radius: 5px;
  padding: 5px 10px;
  font-weight: 500;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(420px, .95fr) minmax(520px, 1.23fr);
  gap: 14px;
  padding: 0 25px 28px;
}

.exact-timeline {
  padding: 8px 20px 0 10px;
}

.step {
  position: relative;
  min-height: 67px;
  display: grid;
  grid-template-columns: 26px 26px 1fr 48px;
  gap: 8px;
  align-items: start;
}

.step:after {
  content: "";
  position: absolute;
  left: 11px;
  top: 24px;
  width: 1px;
  height: 43px;
  background: #d8e0e7;
}

.step:last-of-type:after {
  display: none;
}

.step i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 1px;
  font-style: normal;
  font-size: 11px;
  background: #24a663;
  color: white;
}

.step.error i {
  background: #ff4b45;
}

.step.retry i {
  background: #ffad37;
}

.step b {
  font-size: 16px;
  font-weight: 650;
}

.step strong {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 560;
}

.step small {
  color: #657186;
  font-weight: 400;
}

.step em {
  color: #f07400;
  font-style: normal;
}

.step time {
  color: #596578;
  font-size: 12px;
  text-align: right;
}

.exact-timeline footer {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 30px;
  border-top: 1px solid #dfe5eb;
  font-size: 16px;
}

.detail-center,
.detail-right {
  display: grid;
  gap: 12px;
  align-content: start;
}

.exact-panel {
  border: 1px solid #d8e0e7;
  border-radius: 5px;
  background: white;
  overflow: hidden;
}

.exact-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
}

.exact-panel h2 {
  margin: 0;
  font-size: 16px;
}

.issue-context {
  position: relative;
  padding: 0 16px 18px;
}

.issue-context > a {
  display: inline-block;
  color: #007b83;
  margin: 4px 0 14px;
}

.issue-context button {
  position: absolute;
  right: 22px;
  top: 55px;
  color: #008348;
  background: #f4fcf7;
  border: 1px solid #8bd4ae;
  border-radius: 5px;
  padding: 7px 13px;
}

.issue-context h3 {
  margin: 0 0 8px;
}

.issue-context p {
  line-height: 1.55;
}

.issue-context div {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.issue-context span {
  border: 1px solid #d8e0e7;
  background: #f8fafb;
  border-radius: 4px;
  color: #4f5b6d;
  padding: 5px 10px;
  font-size: 12px;
}

.tool-log table {
  width: calc(100% - 28px);
  margin: 0 14px 16px;
  border-collapse: collapse;
  font-size: 12px;
}

.tool-log th,
.tool-log td {
  text-align: left;
  padding: 8px 0;
  border-bottom: 0;
}

.tool-log th {
  color: #516073;
  font-weight: 500;
}

.tool-log td:last-child {
  color: #008348;
}

.command-output header,
.diff-view header {
  border-bottom: 1px solid #d8e0e7;
}

.cmd-head,
.file-name {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #fafbfc;
  border-bottom: 1px solid #d8e0e7;
  color: #394557;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.cmd-head button {
  border: 0;
  background: transparent;
  color: #4e5a6c;
}

.command-output pre,
.diff-view pre {
  margin: 0;
  border-radius: 0;
  background: white;
  font-size: 12px;
  line-height: 1.55;
  max-height: 316px;
  overflow: auto;
}

.command-output pre {
  font-size: 11px;
}

.diff-view header div {
  display: flex;
  gap: 0;
}

.diff-view header button {
  height: 28px;
  border: 1px solid #d8e0e7;
  background: white;
  padding: 0 13px;
}

.diff-view header button:first-child {
  border-radius: 5px 0 0 5px;
  font-weight: 700;
}

.diff-view header button:nth-child(2) {
  border-left: 0;
}

.diff-view header button:last-child {
  border: 0;
  margin-left: 10px;
}

.diff-view pre span {
  display: block;
  color: #596578;
  background: #f8fafc;
  margin: -3px -5px 4px;
  padding: 5px;
}

.diff-view b {
  display: block;
  font-weight: 400;
  margin: 0 -5px;
  padding: 0 5px;
}

.diff-view .del {
  color: #ba1f2b;
  background: #fde8e8;
}

.diff-view .add {
  color: #087c3f;
  background: #e8f8ee;
}

.test-summary {
  padding: 16px;
}

.test-summary h2 {
  margin-bottom: 15px;
}

.test-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 86px 86px;
  align-items: center;
}

.test-row strong {
  color: #079653;
  font-size: 22px;
}

.test-row span {
  color: #596578;
}

.test-row aside {
  border-left: 1px solid #d8e0e7;
  padding-left: 16px;
  line-height: 1.7;
}

.test-row aside b {
  display: block;
  color: #5b6677;
  font-size: 12px;
}

.green-line {
  height: 4px;
  border-radius: 99px;
  background: #20a65d;
  margin-top: 18px;
}

.replay,
.pr-detail {
  padding: 0 16px 14px;
}

.replay p {
  display: grid;
  grid-template-columns: 90px 1fr;
  margin: 11px 0;
  color: #536074;
  font-size: 13px;
}

.replay b {
  font-weight: 500;
  color: #1f2937;
}

.replay button,
.pr-detail button {
  border: 1px solid #d8e0e7;
  background: white;
  border-radius: 5px;
  padding: 8px 14px;
}

.pr-detail {
  position: relative;
}

.pr-detail h2 {
  margin: 14px 0 12px;
}

.pr-detail > strong {
  display: block;
  color: #079653;
  font-size: 18px;
  margin-bottom: 8px;
}

.pr-detail p {
  color: #596578;
}

.pr-detail p a {
  color: #007b83;
}

.pr-detail button {
  position: absolute;
  top: 38px;
  right: 16px;
}

.pr-detail footer {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 12px;
  margin-top: 20px;
  border-top: 1px solid #d8e0e7;
  padding-top: 12px;
  color: #596578;
}

.pr-detail footer b {
  display: inline-block;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #f4f7fa;
  color: #1f2937;
}

.pr-detail footer span:last-child b {
  color: #008348;
  background: white;
}

@media (max-width: 1200px) {
  .runs-exact-shell,
  .detail-exact-shell,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .runs-rail,
  .detail-rail {
    display: none;
  }

  .runs-metrics,
  .runs-filters,
  .demo-content-grid {
    grid-template-columns: 1fr;
  }

  .head-controls,
  .detail-title-row,
  .detail-title-row > div {
    flex-wrap: wrap;
  }
}

/* OpenAI Platform-inspired product skin */
:root {
  --platform-bg: #f3f3f3;
  --platform-surface: #ffffff;
  --platform-surface-soft: #f7f7f7;
  --platform-ink: #282828;
  --platform-muted: #6f6f6f;
  --platform-faint: #8f8f8f;
  --platform-line: #e7e7e7;
  --platform-line-strong: #d9d9d9;
  --platform-active: #ececec;
  --platform-accent: #0f766e;
  --platform-success: #00a240;
  --platform-warning: #b66d00;
  --platform-danger: #ba2623;
  --platform-purple: #7c5cff;
  --platform-radius: 12px;
  --platform-radius-sm: 8px;
}

body.app-dashboard,
body.runs-exact,
body.detail-exact {
  background: var(--platform-bg);
  color: var(--platform-ink);
  font-family: "OpenAI Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell,
.runs-exact-shell {
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--platform-bg);
}

.runs-rail {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 22px 10px 16px;
  border-right: 1px solid var(--platform-line);
  background: var(--platform-bg);
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  margin: 0 6px 22px;
  padding: 4px;
  color: var(--platform-ink);
}

.rail-brand strong {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.15;
}

.bot-mark,
.bot-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #0f766e;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.runs-rail nav,
.detail-rail nav {
  display: grid;
  gap: 2px;
  margin: 0;
}

.runs-rail nav a,
.detail-rail nav a {
  height: 36px;
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 9px;
  color: #3d3d3d;
  font-size: 14px;
  font-weight: 480;
  line-height: 1;
  white-space: nowrap;
}

.runs-rail nav a span,
.detail-rail nav a span {
  flex: 0 0 22px;
  color: #4b4b4b;
  font-size: 15px;
  text-align: center;
}

.runs-rail nav a.active,
.runs-rail nav a:hover,
.detail-rail nav a.active,
.detail-rail nav a:hover {
  background: var(--platform-active);
  color: var(--platform-ink);
}

.rail-inline-card.connection-card {
  width: calc(100% - 12px);
  min-height: 50px;
  margin: 18px 6px 0;
  padding: 8px 10px;
  grid-template-columns: 30px minmax(0, 1fr) 14px;
  gap: 10px;
  border: 1px solid var(--platform-line);
  border-radius: 10px;
  background: rgba(255,255,255,.72);
}

.github-dot {
  width: 28px;
  height: 28px;
  background: #111;
  font-size: 14px;
}

.connection-card b {
  color: var(--platform-ink);
  font-size: 13px;
  font-weight: 640;
}

.connection-card small {
  color: var(--platform-muted);
  font-size: 12px;
}

.app-main,
.runs-main {
  min-width: 0;
  padding: 28px 42px 64px;
  background: var(--platform-surface);
}

.app-head,
.runs-head {
  min-height: 118px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin: 0;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--platform-line);
}

.app-head h1,
.runs-head h1 {
  margin: 0;
  color: var(--platform-ink);
  font-size: 38px;
  font-weight: 540;
  line-height: 1.05;
}

.app-head p,
.runs-head p {
  max-width: 780px;
  margin-top: 10px;
  color: var(--platform-muted);
  font-size: 16px;
  line-height: 1.45;
}

.app-head nav,
.head-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 10px;
}

.app-head nav a,
.head-controls a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--platform-line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--platform-ink);
  font-size: 14px;
  font-weight: 560;
}

.app-head nav a:first-child {
  border-color: #202020;
  background: #202020;
  color: #fff;
}

.head-controls .github-dot.small {
  width: 22px;
  height: 22px;
  font-size: 12px;
}

.platform-tabs {
  min-height: 58px;
  display: flex;
  align-items: end;
  gap: 28px;
  margin: 0 0 24px;
  padding: 0;
  border-bottom: 1px solid var(--platform-line);
}

.platform-tabs a {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--platform-muted);
  font-size: 14px;
  font-weight: 560;
}

.platform-tabs a.active {
  border-bottom-color: var(--platform-ink);
  color: var(--platform-ink);
}

.app-metric-grid,
.runs-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 22px;
  border: 1px solid var(--platform-line);
  border-radius: var(--platform-radius);
  background: #fff;
  overflow: hidden;
}

.runs-metrics {
  grid-template-columns: 1fr 1fr 1fr 1fr 1.25fr;
}

.app-metric-grid article,
.runs-metrics article {
  min-height: 156px;
  padding: 20px 20px 18px;
  border: 0;
  border-right: 1px solid var(--platform-line);
  border-radius: 0;
  background: transparent;
}

.app-metric-grid article:last-child,
.runs-metrics article:last-child {
  border-right: 0;
}

.app-metric-grid span,
.runs-metrics article > span {
  color: var(--platform-muted);
  font-size: 14px;
  font-weight: 540;
  text-transform: none;
  letter-spacing: 0;
}

.app-metric-grid strong,
.runs-metrics strong {
  margin-top: 10px;
  color: var(--platform-ink);
  font-size: 31px;
  font-weight: 560;
  line-height: 1.05;
}

.app-metric-grid small,
.runs-metrics small {
  margin-top: 10px;
  color: var(--platform-muted);
  font-size: 14px;
  line-height: 1.35;
}

.app-metric-grid small.good,
.runs-metrics small .good,
.runs-metrics small.good {
  color: var(--platform-success);
}

.mini-bars {
  height: 48px;
  gap: 7px;
  margin-top: 14px;
  align-items: end;
}

.mini-bars i {
  width: 9px;
  min-height: 9px;
  border-radius: 4px 4px 1px 1px;
  background: #00a240;
}

.mini-bars i.fail { background: #e02e2a; }
.mini-bars i.run { background: #ffc300; }
.mini-bars i.empty { background: #d9d9d9; }

.metric-ring {
  width: 82px;
  height: 82px;
  background: var(--ring);
}

.metric-ring::after {
  inset: 17px;
  background: #fff;
}

.metric-ring b {
  color: var(--platform-ink);
  font-size: 13px;
}

.distribution {
  grid-template-columns: 92px minmax(0, 1fr);
}

.distribution ul {
  gap: 12px;
  margin-top: 12px;
  color: var(--platform-muted);
  font-size: 13px;
}

.distribution li {
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 8px;
}

.distribution footer {
  border-top-color: var(--platform-line);
  color: var(--platform-muted);
  font-size: 15px;
}

.runs-filters {
  grid-template-columns: minmax(320px, 1fr) 164px 164px 164px 146px 42px;
  gap: 12px;
  margin: 24px 0 18px;
}

.runs-filters label,
.runs-filters button {
  height: 42px;
  border: 1px solid var(--platform-line);
  border-radius: 10px;
  background: #fff;
  color: var(--platform-ink);
}

.runs-filters label {
  padding: 0 13px;
}

.runs-filters input,
.runs-filters select {
  color: var(--platform-ink);
  font-size: 14px;
}

.runs-table-card,
.app-card {
  border: 1px solid var(--platform-line);
  border-radius: var(--platform-radius);
  background: #fff;
  box-shadow: none;
}

.app-card {
  padding: 24px;
}

.app-card + .app-card,
.app-grid + .app-card,
.app-card + .app-grid,
.app-metric-grid + .app-card,
.runs-table-card + .app-card {
  margin-top: 22px;
}

.app-grid {
  gap: 22px;
  margin-bottom: 22px;
}

.app-card header {
  min-height: 34px;
}

.app-card h2,
.app-card header h2 {
  color: var(--platform-ink);
  font-size: 19px;
  font-weight: 560;
}

.app-card p {
  color: var(--platform-muted);
  font-size: 15px;
  line-height: 1.5;
}

.app-card header a,
.app-table a,
.runs-table-card a {
  color: var(--platform-accent);
  font-weight: 560;
}

.app-table,
.exact-runs-table {
  color: var(--platform-ink);
  font-size: 14px;
}

.app-table th,
.exact-runs-table th {
  height: 42px;
  border-color: var(--platform-line);
  background: #fafafa;
  color: var(--platform-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.app-table td,
.exact-runs-table td {
  border-color: var(--platform-line);
  color: var(--platform-ink);
}

.exact-runs-table td {
  height: 70px;
}

.exact-runs-table th:nth-child(9),
.exact-runs-table td:nth-child(9) {
  width: 96px;
}

.pill {
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 560;
}

.pill.ok {
  border-color: #b8ebcc;
  background: #ecfbf1;
  color: #007a31;
}

.pill.fail {
  border-color: #ffd0d0;
  background: #fff0f0;
  color: var(--platform-danger);
}

.pill.run {
  border-color: #ffe1aa;
  background: #fff8eb;
  color: var(--platform-warning);
}

.mini-code,
code,
pre {
  border-radius: 8px;
}

.mini-code {
  border: 1px solid #171717;
  background: #111111;
  color: #f4f4f4;
}

.settings-card input,
.settings-card select,
.settings-card textarea,
input,
select,
textarea {
  border-color: var(--platform-line);
  border-radius: 10px;
  background: #fff;
}

.check-list p,
.security-grid p,
.activity-list p,
.readiness-list p {
  border-color: var(--platform-line);
  border-radius: 10px;
  background: #fafafa;
}

.run-detail-metrics {
  grid-template-columns: minmax(180px, .9fr) minmax(250px, 1.35fr) minmax(160px, .8fr) minmax(150px, .7fr);
}

.run-detail-metrics .repo-name {
  font-size: 25px;
  overflow-wrap: anywhere;
}

.runs-pagination {
  margin-top: 22px;
  color: var(--platform-muted);
  font-size: 14px;
}

body.home-exact {
  background: #fff;
  color: var(--platform-ink);
}

.home-exact .hero-reference {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(390px, .72fr) minmax(680px, 1.28fr);
  gap: 0;
  padding: 0;
  background: #fff;
}

.home-exact .hero-left {
  min-height: 100vh;
  padding: 84px 48px 72px 68px;
  border-right: 1px solid var(--platform-line);
  background: #f8f8f8;
}

.home-exact .logo-line {
  color: var(--platform-ink);
}

.home-exact .mark {
  border-radius: 10px;
  background: #0f766e;
}

.home-exact .hero-headline {
  margin-top: 150px;
}

.home-exact .hero-headline h1 {
  color: var(--platform-ink);
  font-size: 68px;
  font-weight: 560;
  line-height: .98;
}

.home-exact .hero-headline p {
  color: var(--platform-muted);
  font-size: 28px;
}

.home-exact .button.dark {
  background: #202020;
  border-color: #202020;
}

.home-exact .button.outline {
  background: #fff;
  border-color: var(--platform-line-strong);
}

.home-exact .hero-product {
  padding: 54px 28px;
  background: #fff;
}

.home-exact .run-board {
  border-color: var(--platform-line);
  border-radius: 12px;
  box-shadow: none;
}

body.demo-exact {
  background: #fff;
  color: var(--platform-ink);
}

.demo-exact .demo-browser {
  background: #fff;
}

.demo-exact .demo-nav {
  border-color: var(--platform-line);
  background: #fff;
}

.demo-exact .demo-reference {
  padding: 48px 46px 64px;
}

.demo-exact .demo-reference > h1 {
  color: var(--platform-ink);
  font-size: 40px;
  font-weight: 560;
}

.demo-exact .demo-content-grid,
.demo-exact .demo-info-grid {
  gap: 22px;
}

.demo-exact .video-shell,
.demo-exact .workflow-panel,
.demo-exact .demo-info-grid article {
  border-color: var(--platform-line);
  border-radius: 12px;
  box-shadow: none;
}

.auth-shell {
  min-height: 100vh;
  background: var(--platform-bg);
}

.auth-panel {
  border-color: var(--platform-line);
  border-radius: 12px;
  box-shadow: none;
}

@media (max-width: 1180px) {
  .runs-filters {
    grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(145px, 0.7fr)) 44px;
  }

  .runs-filters .runs-select:nth-of-type(4),
  .runs-filters .runs-select:nth-of-type(5) {
    display: none;
  }
}

@media (max-width: 980px) {
  .app-shell,
  .runs-exact-shell,
  .home-exact .hero-reference {
    grid-template-columns: 1fr;
  }

  .runs-rail {
    position: static;
    display: none;
  }

  .app-main,
  .runs-main,
  .demo-exact .demo-reference {
    padding: 24px 18px 48px;
  }

  .app-head,
  .runs-head {
    min-height: auto;
  }

  .app-head h1,
  .runs-head h1,
  .demo-exact .demo-reference > h1 {
    font-size: 34px;
  }

  .app-metric-grid,
  .runs-metrics,
  .app-grid.two,
  .app-grid.three,
  .run-detail-metrics {
    grid-template-columns: 1fr;
  }

  .app-metric-grid article,
  .runs-metrics article {
    border-right: 0;
    border-bottom: 1px solid var(--platform-line);
  }

  .app-metric-grid article:last-child,
  .runs-metrics article:last-child {
    border-bottom: 0;
  }

  .home-exact .hero-left {
    min-height: auto;
    padding: 42px 22px;
  }

  .home-exact .hero-headline {
    margin-top: 72px;
  }

  .home-exact .hero-headline h1 {
    font-size: 48px;
  }

  .home-exact .hero-product {
    padding: 24px 16px;
  }
}

.home-exact .hero-reference {
  min-height: 100vh;
}

@media (min-width: 981px) {
  .home-exact .hero-reference {
    grid-template-columns: minmax(390px, .78fr) minmax(620px, 1.22fr);
  }

  .home-exact .hero-actions {
    flex-wrap: wrap;
    max-width: 440px;
  }

  .home-exact .hero-actions .button {
    min-width: 164px;
  }

  .home-exact .hero-headline {
    margin-top: 112px;
  }

  .home-exact .hero-product {
    overflow: hidden;
  }

  .home-exact .run-board {
    width: 960px;
    max-width: none;
    transform: scale(.6);
    transform-origin: top left;
  }
}

@media (min-width: 1500px) {
  .home-exact .run-board {
    transform: scale(.82);
  }
}

.run-topbar a,
.timeline-card header a,
.pr-status-card > a,
.pr-card .mini-button,
.issue-context .mini-button,
.cmd-head a,
.replay header a,
.pr-detail > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.run-topbar a:nth-of-type(2) {
  margin-left: auto;
  height: 32px;
  border: 1px solid #d7dde5;
  border-radius: 7px;
  background: white;
  color: #111827;
  padding: 0 12px;
}

.run-topbar a:nth-of-type(3) {
  width: 36px;
  height: 32px;
  border: 1px solid #d7dde5;
  border-radius: 7px;
  background: white;
  color: #111827;
}

.pr-card .mini-button {
  justify-self: end;
  margin-top: -28px;
  border-radius: 5px;
  background: #d7f1e4;
  color: #147a4a;
  padding: 7px 12px;
  font-size: 12px;
}

.timeline-card header a {
  color: #273241;
  background: white;
  border: 1px solid #d8dee5;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
}

.pr-status-card > a {
  justify-self: end;
  margin-top: 12px;
  border: 1px solid #d8dee5;
  border-radius: 6px;
  color: #263140;
  padding: 9px 12px;
}

.workspace-switch,
.connection-card {
  text-decoration: none;
}

.head-controls a,
.runs-filters a,
.detail-top nav a,
.runs-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d3dbe4;
  border-radius: 4px;
  background: white;
  color: #111827;
  text-decoration: none;
}

.head-controls a {
  height: 42px;
  min-width: 170px;
  gap: 9px;
  padding: 0 13px;
}

.runs-filters a {
  height: 40px;
  color: #1f2937;
}

.runs-pagination a {
  width: 32px;
  height: 32px;
  color: #4b5667;
}

.runs-pagination a.active {
  border-color: #0a8c8c;
  color: #0a7777;
  background: #eefafa;
}

.detail-top nav a {
  height: 32px;
  min-width: 86px;
  border-color: #d5dde5;
  border-radius: 5px;
}

.issue-context .mini-button {
  position: absolute;
  right: 22px;
  top: 55px;
  color: #008348;
  background: #f4fcf7;
  border: 1px solid #8bd4ae;
  border-radius: 5px;
  padding: 7px 13px;
}

.cmd-head a {
  color: #4e5a6c;
  font-family: inherit;
}

.diff-view header a {
  height: 28px;
  border: 1px solid #d8e0e7;
  background: white;
  color: #111827;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.diff-view header a:first-child {
  border-radius: 5px 0 0 5px;
  font-weight: 700;
}

.diff-view header a:nth-child(2) {
  border-left: 0;
}

.diff-view header a:last-child {
  border: 0;
  margin-left: 10px;
}

.replay header a,
.pr-detail > a {
  border: 1px solid #d8e0e7;
  background: white;
  border-radius: 5px;
  color: #111827;
  padding: 8px 14px;
}

.pr-detail > a {
  position: absolute;
  top: 38px;
  right: 16px;
}

.large-play {
  display: grid;
  place-items: center;
  color: white;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 256px 1fr;
  background: #f7fafb;
}

.app-main {
  min-width: 0;
  padding: 34px 36px 48px;
  overflow-x: auto;
}

.app-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 24px;
  margin-bottom: 28px;
}

.app-head h1 {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
}

.app-head p {
  margin-top: 8px;
  max-width: 720px;
  color: #4d586b;
  overflow-wrap: anywhere;
}

.app-head nav {
  display: flex;
  gap: 12px;
}

.app-head nav a {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d3dbe4;
  border-radius: 5px;
  background: white;
  color: #111827;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 650;
}

.app-head nav a:first-child {
  background: #08111d;
  border-color: #08111d;
  color: white;
  box-shadow: 0 14px 34px rgba(8, 17, 29, .14);
}

.app-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.app-metric-grid article,
.app-card {
  border: 1px solid #d7dfe7;
  border-radius: 6px;
  background: white;
  box-shadow: 0 18px 60px rgba(15, 23, 42, .04);
}

.app-metric-grid article {
  min-height: 128px;
  padding: 18px;
  min-width: 0;
}

.app-metric-grid span {
  color: #5e697a;
}

.app-metric-grid strong {
  display: block;
  margin-top: 18px;
  font-size: 30px;
  color: #0f172a;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.app-metric-grid small {
  display: block;
  margin-top: 12px;
  color: #5e697a;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.app-metric-grid small.good {
  color: #07965e;
}

.app-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.app-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-card {
  padding: 18px;
  min-width: 0;
}

.app-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.app-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.app-card header h2 {
  margin-bottom: 0;
}

.app-card header a,
.app-table a {
  color: #007b83;
  text-decoration: none;
  font-weight: 700;
}

.app-card p {
  color: #536074;
  line-height: 1.55;
}

.app-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: fixed;
}

.app-table th,
.app-table td {
  border-bottom: 1px solid #e1e7ed;
  padding: 13px 10px;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.app-table th {
  color: #526074;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.app-table tr:last-child td {
  border-bottom: 0;
}

.app-table.compact td {
  padding: 10px 0;
}

.activity-list,
.readiness-list,
.check-list {
  display: grid;
  gap: 12px;
}

.activity-list p,
.readiness-list p {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  margin: 0;
  border-bottom: 1px solid #edf1f4;
  padding-bottom: 12px;
}

.activity-list p:last-child,
.readiness-list p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.activity-list small,
.readiness-list small {
  grid-column: 1 / -1;
  color: #667287;
}

.readiness-list p {
  grid-template-columns: 28px 1fr;
}

.readiness-list span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf9f0;
  color: #078348;
  font-weight: 800;
}

.readiness-list small {
  grid-column: 2;
}

.agent-card {
  position: relative;
}

.agent-card > .pill {
  position: absolute;
  top: 18px;
  right: 18px;
}

.agent-card dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  margin: 18px 0 0;
}

.agent-card dt {
  color: #667287;
}

.agent-card dd {
  margin: 0;
  color: #111827;
  font-weight: 650;
}

.mini-code {
  margin: 0;
  border: 1px solid #d9e0e7;
  border-radius: 6px;
  background: #0b1320;
  color: #dce7f7;
  padding: 16px;
  overflow: auto;
  line-height: 1.65;
  white-space: pre-wrap;
}

.run-detail-metrics {
  grid-template-columns: minmax(180px, .9fr) minmax(260px, 1.35fr) minmax(180px, .9fr) minmax(180px, .9fr);
}

.run-detail-metrics .metric-status {
  margin-top: 18px;
}

.run-detail-metrics .metric-status .pill {
  min-height: 38px;
  padding: 0 14px;
  font-size: 16px;
}

.run-detail-metrics .repo-name {
  font-size: 24px;
  max-width: 100%;
}

.run-table-card .app-table th:nth-child(1),
.run-table-card .app-table td:nth-child(1) {
  width: 86px;
}

.run-table-card .app-table th:nth-child(3),
.run-table-card .app-table td:nth-child(3) {
  width: 68px;
}

.run-table-card .app-table th:nth-child(4),
.run-table-card .app-table td:nth-child(4) {
  width: 90px;
}

.check-list p {
  margin: 0;
  border: 1px solid #dfe6ed;
  border-radius: 5px;
  background: #fbfcfd;
  padding: 11px 12px;
  color: #334155;
}

.check-list.columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-card {
  display: grid;
  gap: 14px;
}

.settings-card label {
  display: grid;
  gap: 7px;
  color: #526074;
  font-weight: 650;
}

.settings-card input,
.settings-card select,
.settings-card textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d6dee6;
  border-radius: 5px;
  background: #fbfcfd;
  padding: 0 12px;
  color: #111827;
  font: inherit;
}

.settings-card textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

.run-create-form {
  display: grid;
  gap: 12px;
}

.run-create-form .button {
  margin-top: 4px;
  border: 0;
  cursor: pointer;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.security-grid p {
  margin: 0;
  border: 1px solid #dfe6ed;
  border-radius: 6px;
  background: #fbfcfd;
  padding: 14px;
}

.security-grid b,
.security-grid small {
  display: block;
}

.security-grid small {
  margin-top: 8px;
  color: #637084;
}

@media (max-width: 1200px) {
  .app-shell,
  .app-metric-grid,
  .app-grid.two,
  .app-grid.three,
  .check-list.columns,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .app-shell .runs-rail {
    display: none;
  }

  .app-head {
    flex-wrap: wrap;
  }
}

/* Platform-style dashboard revamp */
.app-dashboard,
.runs-exact {
  background: #ffffff;
  color: #202123;
}

.app-shell,
.runs-exact-shell {
  grid-template-columns: 270px minmax(0, 1fr);
  background: #ffffff;
}

.runs-rail {
  background: #f7f7f8;
  border-right: 1px solid #e6e6e8;
  padding: 24px 12px 18px;
}

.rail-brand {
  min-height: 42px;
  margin: 0 8px 28px;
  color: #202123;
  font-size: 18px;
  text-decoration: none;
}

.bot-mark,
.bot-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #087b83;
  box-shadow: none;
}

.workspace-switch,
.connection-card {
  border: 1px solid #e3e3e6;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

.runs-rail nav,
.detail-rail nav {
  gap: 3px;
  margin-top: 24px;
}

.runs-rail nav a,
.detail-rail nav a {
  height: 38px;
  border-radius: 10px;
  color: #3f3f46;
  font-weight: 560;
}

.runs-rail nav a.active,
.detail-rail nav a.active {
  background: #ececee;
  color: #202123;
}

.rail-bottom {
  gap: 12px;
}

.app-main,
.runs-main {
  padding: 30px 34px 48px;
  background: #ffffff;
}

.app-head,
.runs-head {
  align-items: center;
  border-bottom: 1px solid #ededee;
  margin-bottom: 0;
  padding-bottom: 20px;
}

.app-head h1,
.runs-head h1 {
  color: #202123;
  font-size: 36px;
  font-weight: 650;
  letter-spacing: 0;
}

.app-head p,
.runs-head p {
  color: #64646d;
  font-size: 16px;
}

.app-head nav a,
.head-controls a,
.runs-filters a,
.runs-pagination a {
  border-color: #dfdfe3;
  border-radius: 10px;
  background: #ffffff;
  color: #202123;
  box-shadow: none;
}

.app-head nav a:first-child {
  background: #202123;
  border-color: #202123;
  box-shadow: none;
  color: #ffffff;
}

.platform-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 54px;
  margin: 0 0 24px;
  border-bottom: 1px solid #ededee;
  overflow-x: auto;
}

.platform-tabs a {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  border-bottom: 2px solid transparent;
  color: #6b6b72;
  font-size: 14px;
  font-weight: 620;
  text-decoration: none;
  white-space: nowrap;
}

.platform-tabs a.active {
  border-bottom-color: #202123;
  color: #202123;
}

.platform-tabs a {
  cursor: pointer;
}

[id] {
  scroll-margin-top: 24px;
}

.section-focus {
  animation: section-focus 850ms ease-out;
}

@keyframes section-focus {
  0% { box-shadow: 0 0 0 3px rgb(13 148 136 / 20%); }
  100% { box-shadow: 0 0 0 0 rgb(13 148 136 / 0%); }
}

.runs-metrics {
  margin-top: 0;
  gap: 0;
  border: 1px solid #e6e6e8;
  border-radius: 12px;
  overflow: hidden;
}

.runs-metrics article {
  min-height: 158px;
  border: 0;
  border-right: 1px solid #ededee;
  border-radius: 0;
  box-shadow: none;
}

.runs-metrics article:last-child {
  border-right: 0;
}

.runs-metrics article > span,
.app-metric-grid span {
  color: #64646d;
  font-weight: 560;
}

.runs-metrics strong,
.app-metric-grid strong {
  color: #202123;
  font-weight: 650;
}

.runs-metrics small,
.app-metric-grid small,
.app-card p {
  color: #6b6b72;
}

.runs-filters {
  margin-top: 24px;
  grid-template-columns: minmax(460px, 1.45fr) minmax(150px, 0.72fr) minmax(145px, 0.66fr) minmax(145px, 0.66fr) minmax(130px, 0.58fr) 44px;
}

.runs-filters label,
.runs-filters button,
.settings-card input,
.settings-card select,
.settings-card textarea {
  border-color: #e1e1e4;
  border-radius: 10px;
  background: #ffffff;
}

.runs-filters label {
  min-width: 0;
}

.runs-filters select {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #202123;
  font: inherit;
  cursor: pointer;
}

.runs-filters .icon-button {
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: #4b5563;
  cursor: pointer;
}

.runs-filters .icon-button:hover {
  border-color: #9ca3af;
  background: #f7f7f8;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.runs-table-card tr[data-filter-empty] td,
.runs-table-card tr[data-empty-state] td {
  height: 94px;
  color: #6b7280;
  text-align: center;
}

@media (max-width: 1180px) {
  .runs-filters {
    grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(145px, 0.7fr)) 44px;
  }

  .runs-filters > .runs-select:nth-of-type(n + 3) {
    display: none;
  }
}

@media (max-width: 760px) {
  .runs-filters {
    grid-template-columns: 1fr 44px;
  }

  .runs-search-control {
    grid-column: 1 / -1;
  }

  .runs-filters .runs-select {
    display: flex !important;
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-focus { animation: none; }
}

.runs-table-card,
.app-card,
.app-metric-grid article {
  border: 1px solid #e6e6e8;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

.app-metric-grid {
  gap: 0;
  margin-bottom: 24px;
  border: 1px solid #e6e6e8;
  border-radius: 12px;
  overflow: hidden;
}

.app-metric-grid article {
  border: 0;
  border-right: 1px solid #ededee;
  border-radius: 0;
}

.app-metric-grid article:last-child {
  border-right: 0;
}

.app-card {
  padding: 22px;
}

.app-card h2,
.app-card header h2 {
  color: #202123;
  font-size: 18px;
  font-weight: 650;
}

.app-card header a,
.app-table a {
  color: #087b83;
}

.app-table th,
.app-table td,
.exact-runs-table th,
.exact-runs-table td {
  border-color: #ededee;
}

.app-table th,
.exact-runs-table th {
  background: #fbfbfc;
  color: #5f6368;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.exact-runs-table td {
  color: #202123;
}

.pill {
  border-radius: 8px;
  font-weight: 650;
}

.mini-code {
  border: 0;
  border-radius: 8px;
  background: #0b1320;
}

.check-list p,
.security-grid p {
  border-color: #ededee;
  border-radius: 10px;
  background: #fbfbfc;
}

.run-detail-metrics {
  grid-template-columns: minmax(180px, .9fr) minmax(240px, 1.25fr) minmax(180px, .9fr) minmax(170px, .8fr);
}

.rail-inline-card {
  margin-top: 12px;
}

.runs-metrics > article > svg,
.runs-metrics .donut {
  display: none !important;
}

.metric-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.metric-card strong {
  margin-top: 4px;
}

.metric-card small {
  margin-top: 0;
  min-height: 22px;
}

.metric-card-with-bars {
  grid-template-rows: auto auto auto 1fr;
}

.metric-card-with-detail {
  grid-template-rows: auto auto auto 1fr;
}

.metric-facts {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 0;
  padding-top: 13px;
  border-top: 1px solid #ededee;
}

.metric-facts div {
  min-width: 0;
}

.metric-facts dt,
.metric-range-labels small {
  display: block;
  margin-bottom: 3px;
  color: #85858e;
  font-size: 11px;
  font-weight: 560;
  line-height: 1.25;
}

.metric-facts dd {
  margin: 0;
  overflow: hidden;
  color: #303136;
  font-size: 13px;
  font-weight: 620;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-facts a {
  color: #087b83;
  text-decoration: none;
}

.metric-facts a:hover {
  text-decoration: underline;
}

.metric-empty-note {
  align-self: end;
  margin: 12px 0 0;
  padding-top: 13px;
  border-top: 1px solid #ededee;
  color: #85858e;
  font-size: 12px;
  line-height: 1.45;
}

.metric-range {
  align-self: end;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #ededee;
}

.metric-range-track {
  position: relative;
  height: 4px;
  margin: 4px 5px 12px;
  border-radius: 999px;
  background: #dfe4e5;
}

.metric-range-track::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--marker, 50%);
  border-radius: inherit;
  background: #16a5a1;
}

.metric-range-track i {
  position: absolute;
  top: 50%;
  left: var(--marker, 50%);
  width: 12px;
  height: 12px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #087b83;
  box-shadow: 0 0 0 1px #087b83;
  transform: translate(-50%, -50%);
}

.metric-range-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.metric-range-labels span {
  color: #303136;
  font-size: 12px;
  font-weight: 620;
}

.metric-range-labels span:last-child {
  text-align: right;
}

.mini-bars {
  height: 58px;
  display: flex;
  align-items: end;
  gap: 6px;
  margin-top: 12px;
  padding: 0 2px;
}

.mini-bars i {
  width: 8px;
  height: var(--h, 20%);
  min-height: 8px;
  border-radius: 999px 999px 3px 3px;
  background: #087b83;
}

.mini-bars i.ok {
  background: #27a85f;
}

.mini-bars i.run {
  background: #f5aa22;
}

.mini-bars i.fail {
  background: #db3939;
}

.mini-bars i.empty {
  background: #e6e6e9;
}

.empty-bars {
  opacity: .9;
}

.runs-search-control {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: max-content 1px 18px minmax(0, 1fr) 28px;
  align-items: center;
  height: 44px;
  min-width: 0;
  padding: 0 9px 0 11px;
  border: 1px solid #e1e1e4;
  border-radius: 10px;
  background: #ffffff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.runs-search-control:focus-within {
  border-color: #9dbfc0;
  box-shadow: 0 0 0 3px rgb(8 123 131 / 10%);
}

.runs-search-field {
  width: auto !important;
  max-width: 112px;
  height: 100% !important;
  padding: 0 23px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #303136 !important;
  font-size: 13px !important;
  font-weight: 620;
  cursor: pointer;
}

.runs-search-divider {
  width: 1px;
  height: 20px;
  background: #e5e5e7;
}

.runs-search-icon {
  display: grid;
  place-items: center;
  color: #777780;
  font-size: 17px;
}

.runs-search-control #runs-search {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #202123;
  font: inherit;
}

.runs-search-control #runs-search::placeholder {
  color: #95959d;
}

.runs-search-control #runs-search::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
  appearance: none;
}

.runs-search-control .runs-search-clear {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #777780;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.runs-search-control .runs-search-clear[hidden] {
  display: none;
}

.runs-search-control .runs-search-clear:hover {
  background: #f1f1f2;
  color: #202123;
}

.runs-search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  overflow: hidden;
  padding: 6px;
  border: 1px solid #dedee2;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgb(18 24 32 / 12%);
}

.runs-search-suggestions[hidden] {
  display: none;
}

.runs-search-suggestions a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 10px 11px;
  border-radius: 8px;
  color: #202123;
  text-decoration: none;
}

.runs-search-suggestions a:hover,
.runs-search-suggestions a:focus-visible {
  outline: 0;
  background: #f3f3f4;
}

.runs-search-suggestions a > span:first-child {
  min-width: 0;
}

.runs-search-suggestions strong,
.runs-search-suggestions small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runs-search-suggestions strong {
  color: #087b83;
  font-size: 13px;
  font-weight: 650;
}

.runs-search-suggestions small,
.runs-search-context {
  color: #777780;
  font-size: 11px;
}

.runs-search-empty {
  margin: 0;
  padding: 13px 11px;
  color: #777780;
  font-size: 13px;
}

.metric-ring {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--ring);
}

.metric-ring::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #ffffff;
}

.metric-ring b {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #202123;
  font-size: 13px;
  font-weight: 650;
}

.success-ring {
  margin-top: 10px;
}

.status-ring {
  grid-column: 1;
  grid-row: 2 / 4;
  margin-top: 8px;
  width: 76px;
  height: 76px;
}

.status-ring::after {
  inset: 16px;
}

.distribution {
  grid-template-columns: 84px minmax(0, 1fr);
}

.distribution ul {
  margin-top: 8px;
  align-self: center;
  font-size: 12px;
}

.distribution li {
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.distribution li span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.distribution footer {
  grid-column: 1 / -1;
}

.empty-distribution {
  color: #7a7a83;
}

@media (max-width: 1200px) {
  .app-shell,
  .runs-exact-shell {
    grid-template-columns: 1fr;
  }

  .runs-rail {
    display: none;
  }

  .app-head,
  .runs-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .runs-metrics,
  .app-metric-grid,
  .app-grid.two,
  .app-grid.three {
    grid-template-columns: 1fr;
  }

  .runs-metrics article,
  .app-metric-grid article {
    border-right: 0;
    border-bottom: 1px solid #ededee;
  }

  .runs-metrics article:last-child,
  .app-metric-grid article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 1500px) and (min-width: 1201px) {
  .runs-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .runs-metrics article {
    border-right: 1px solid #ededee;
    border-bottom: 1px solid #ededee;
  }

  .runs-metrics article:nth-child(3),
  .runs-metrics article:nth-child(5) {
    border-right: 0;
  }

  .runs-metrics article:nth-child(n + 4) {
    border-bottom: 0;
  }

  .runs-metrics .distribution {
    grid-column: span 2;
  }

  .runs-filters {
    grid-template-columns: minmax(360px, 1fr) minmax(145px, .55fr) minmax(145px, .55fr) 44px;
  }

  .runs-filters > .runs-select:nth-of-type(n + 3) {
    display: none;
  }
}
