/* GENERATED by apps/web/scripts/bundle-page-css.mjs — do not edit.
 * Source: apps/web/public/styles/pages/article-page.css
 * Flattened from 21 @import'd files into one render-blocking request. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Newsreader:ital,wght@0,200..800;1,200..800&display=swap");

/*
 * Slim entrypoint for simple article/legal/auth pages.
 *
 * These pages render only the shared shell, site nav, article typography,
 * code blocks, and footer. They should not load home, job, chat, account, or
 * docs feature trees through the legacy styles.css bundle.
 */
/*
 * app-base.css — the shared CSS layer every app page composes.
 *
 * Contains only the truly cross-page foundation:
 *   - base/*        (foundation, nav-shell, brand, typography, article)
 *   - tables        (research-table component + variants)
 *   - components/*  (canonical status color map)
 *   - postlude/*    (code, footer, interaction, responsive, motion)
 *
 * Page-specific trees (home, job, runs, entity, topics, discord-agent,
 * global-chat, start-chat) are imported by each page's own entry CSS on top of
 * this base. This guarantees shared components can never diverge between pages.
 */
:root {
  --font-fallback: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-primary: var(--font-inter, var(--font-fallback));
  --font-secondary: var(--font-newsreader, var(--font-fallback));
  --font-code: "SF Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo,
    Courier, monospace;
  --body-color: #111111;
  --body-bg: #fdfdfc;
  --heading-color: #111111;
  --link-color: #2480ed;
  --muted: rgba(0, 0, 0, 0.4);
  --line: #f2f2f2;
  --soft-line: #ededed;
  --selection-bg: #ededed;
  --selection-color: #111111;
  --focus-color: rgba(0, 122, 255, 0.5);
  --success-color: #65C466;
  --success-tint: rgba(101, 196, 102, 0.13);
  --success-line: rgba(101, 196, 102, 0.45);
  --danger-color: #EA3223;
  --danger-color-hover: #D42C20;
  --danger-tint: rgba(234, 50, 35, 0.07);
  --danger-line: rgba(234, 50, 35, 0.22);
  --danger-soft-tint: rgba(234, 50, 35, 0.04);
  --danger-soft-line: rgba(234, 50, 35, 0.18);
  --researcher-page-width: 64rem;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
  animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  animation-name: researcher-page-out;
}

::view-transition-new(root) {
  animation-name: researcher-page-in;
}

::view-transition-old(researcher-chat-composer),
::view-transition-new(researcher-chat-composer) {
  animation-duration: 210ms;
  animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes researcher-page-out {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -0.25rem, 0) scale(0.998);
  }
}

@keyframes researcher-page-in {
  from {
    opacity: 0;
    transform: translate3d(0, 0.45rem, 0) scale(0.998);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--body-bg);
  color: var(--body-color);
  scroll-behavior: smooth;
  scroll-padding-top: 5.25rem;
  overflow-anchor: none;
}

html,
html body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-y: scroll;
  background: var(--body-bg);
  color: var(--body-color);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.25rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  text-size-adjust: none;
  backface-visibility: hidden;
}

[hidden] {
  display: none !important;
}

main {
  width: 100%;
  margin: 0 auto;
  padding: 5rem 1rem 2.5rem;
}

@media screen and (max-width: 768px) {
  main {
    padding: 2rem 1.5rem 2.5rem;
  }
}

article {
  max-width: none;
}

.site-nav {
  display: grid;
  grid-template-columns: auto 1fr repeat(4, auto);
  align-items: center;
  gap: 0.875rem;
  padding-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 460;
  line-height: 1.25rem;
  letter-spacing: -0.0025rem;
}

/* The "new topic" + button is a cross-page nav element (run, entity, topics,
   dashboard). When present, flow nav items into auto columns so the extra
   button stays on one row instead of wrapping under the brand. */
.site-nav:has(.site-nav-new) {
  grid-auto-flow: column;
  grid-auto-columns: auto;
}

.site-nav .site-nav-new {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: #ffffff;
  color: rgba(0, 0, 0, 0.62);
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background-color 0.15s ease;
}

.site-nav .site-nav-new:hover {
  border-color: rgba(0, 0, 0, 0.16);
  color: #111111;
  background: #f8f8f8;
}

.site-nav .site-nav-new::after {
  content: "";
  position: absolute;
  inset: -0.625rem;
}

.site-nav .site-nav-new svg {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
}

@media screen and (max-width: 420px) {
  .site-nav .site-nav-new {
    display: none;
  }
}

/* Account avatar dropdown (Pricing, Docs, Log out). The container is the grid
   cell; the menu is absolutely positioned beneath the avatar. */
.site-nav-account {
  position: relative;
}

.site-nav-account-login {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav-account-login:hover {
  color: #111111;
}

.site-nav-account-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 40;
  min-width: 9rem;
  display: flex;
  flex-direction: column;
  padding: 0.3125rem;
  border: 1px solid var(--soft-line);
  border-radius: 0.625rem;
  background: #ffffff;
  box-shadow:
    0 0.5rem 1.5rem rgba(0, 0, 0, 0.1),
    0 0.0625rem 0.125rem rgba(0, 0, 0, 0.06);
}

.site-nav-account-menu[hidden] {
  display: none;
}

.site-nav-account-menu-item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.4375rem 0.625rem;
  border: 0;
  border-radius: 0.4375rem;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.12s ease,
    background-color 0.12s ease;
}

.site-nav-account-menu-item:hover {
  color: #111111;
  background: #f5f5f5;
}

.site-nav-account-menu-divider {
  height: 1px;
  margin: 0.3125rem 0.375rem;
  background: var(--soft-line);
}

.site-nav-account-menu-logout {
  color: var(--accent-red, #c0392b);
}

.site-nav-account-menu-logout:hover {
  color: var(--accent-red, #c0392b);
  background: rgba(192, 57, 43, 0.08);
}

.legal-page main {
  width: min(100%, 42rem);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 1.5rem;
  height: 1.5rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #111111;
}

.site-nav-account.has-avatar {
  display: inline-flex;
  align-items: center;
}

.site-nav-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: color 0.15s ease;
}

.site-nav-account-trigger:hover,
.site-nav-account[data-open="true"] .site-nav-account-trigger {
  color: #111111;
}

.site-nav-balance {
  font-variant-numeric: tabular-nums;
  font-weight: 480;
}

.site-nav-avatar {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.brand-mark {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  border-radius: 999px;
}

.brand-footer {
  padding: 1rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.brand-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 450;
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
}

.brand-footer a:hover {
  color: var(--heading-color);
}

.brand-footer-logo {
  display: inline-block;
  width: 0.875em;
  height: 0.875em;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.brand-footer a:hover .brand-footer-logo {
  opacity: 0.7;
}

blockquote,
dd,
dl,
dt,
fieldset,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
html,
iframe,
legend,
li,
ol,
p,
pre,
textarea,
ul {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  position: relative;
  display: flex;
  text-wrap: balance;
  -webkit-text-stroke: 0.001px transparent;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
}

h1 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.00813rem;
}

h2,
h3 {
  font-size: 0.875rem;
  font-weight: 560;
  letter-spacing: -0.00563rem;
}

h3 {
  font-weight: 500;
}

p,
li,
dl {
  font-size: 0.875rem;
  font-weight: 460;
  line-height: 1.25rem;
  letter-spacing: -0.00563rem;
}

p strong,
li strong,
dl strong {
  font-weight: 600;
}

time {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 460;
  line-height: 1.25rem;
  letter-spacing: -0.00563rem;
}

a {
  color: inherit;
  text-decoration: none;
}

.basic-link,
.nav a {
  position: relative;
  display: inline;
  color: inherit;
  font-weight: inherit;
  line-height: inherit;
  transition: all 0.2s ease;
}

.basic-link::before,
.nav a::before {
  pointer-events: none;
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  border-radius: 2px;
  background: #d9d9d9;
  opacity: 1;
  transition: inherit;
}

.basic-link:hover::before,
.nav a:hover::before {
  background: #666666;
}

.basic-link:focus-visible,
.nav a:focus-visible {
  border-radius: 2px;
  padding: 0 2px;
  margin: 0 -2px;
  transition: none;
  outline: 2px solid var(--focus-color);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding-top: 1rem;
}

hr {
  border: 0;
  display: block;
  width: 3.125rem;
  height: 1px;
  background: var(--soft-line);
  margin: 2.5rem 0 2rem;
}

.shell {
  width: min(100%, 70ch);
  max-width: none;
  margin-inline: auto;
}

header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0 0.5rem;
}

header h1 {
  color: #111111;
  font-weight: 500;
}

header h1,
header time {
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: -0.00563rem;
}

.lede {
  color: var(--muted);
}

article > p,
article > p + h1 {
  padding-top: 1rem;
}

article > p + h2 {
  padding-top: 2.25rem;
}

article > p + h3,
article > p + h4,
article > p + h5,
article > p + h6 {
  padding-top: 1rem;
}

article h1 + ol,
article h1 + ul,
article h2 + ol,
article h2 + ul,
article h3 + ol,
article h3 + ul,
article h4 + ol,
article h4 + ul,
article h5 + ol,
article h5 + ul,
article h6 + ol,
article h6 + ul {
  padding-top: 1.5rem;
}

article > section {
  padding-top: 2.25rem;
}

article > section > p + p {
  padding-top: 0.5rem;
}

.research-table-wrapper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding-top: 0.875rem;
}

.research-table {
  width: 100%;
  max-width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  font-size: 0.8125rem;
  table-layout: fixed;
}

.research-table thead tr th {
  padding: 0.375rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: #111111;
  font-weight: 500;
  line-height: 1.15rem;
  letter-spacing: -0.00563rem;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.research-table thead tr th:first-child {
  padding-left: 0;
}

.research-table thead tr th:last-child {
  padding-right: 0;
}

.research-table tbody {
  color: rgba(0, 0, 0, 0.45);
}

.research-table tbody tr {
  transition:
    background-color 90ms ease,
    opacity 90ms ease;
}

.research-table tbody tr.is-entering {
  animation: research-row-enter 140ms cubic-bezier(0.215, 0.61, 0.355, 1);
  animation-delay: var(--research-row-enter-delay, 0ms);
  animation-fill-mode: both;
}

@media (hover: hover) and (pointer: fine) {
  .research-table tbody:hover tr {
    opacity: 0.48;
  }

  .research-table tbody tr:hover {
    opacity: 1;
  }
}

.research-table tbody tr.is-clickable {
  cursor: pointer;
}

.research-table tbody tr.is-clickable:active {
  background: rgba(0, 0, 0, 0.025);
}

.research-table tbody tr td {
  padding: 0.375rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 460;
  line-height: 1.15rem;
  letter-spacing: -0.00563rem;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 0;
}

.research-table tbody tr td:first-child {
  padding-left: 0;
  color: #111111;
}

@keyframes research-row-enter {
  0% {
    opacity: 0;
    transform: translateY(0.2rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .research-table tbody tr.is-entering {
    animation: none;
  }
}

.research-table tbody tr td:last-child {
  padding-right: 0;
}

.research-table-empty {
  color: var(--muted);
  white-space: normal;
}

.research-markdown-table-wrapper {
  margin: 0.75rem 0 1rem;
  padding-top: 0;
}

.research-markdown-table {
  table-layout: auto;
}

.research-markdown-table tbody,
.research-markdown-table tbody tr td {
  color: #111111;
}

.research-markdown-table-wide {
  table-layout: fixed;
}

.research-markdown-table-wide thead tr th,
.research-markdown-table-wide tbody tr td {
  min-width: 11rem;
}

.research-markdown-table-wide thead tr th:first-child,
.research-markdown-table-wide tbody tr td:first-child {
  min-width: 13rem;
}

.research-markdown-table tbody tr td {
  white-space: normal;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
}

.research-markdown-table tbody tr td:first-child {
  width: auto;
}

@media screen and (max-width: 640px) {
  .research-markdown-table-stack.research-markdown-table {
    display: block;
    width: 100%;
    border: 0;
  }

  .research-markdown-table-stack thead {
    display: none;
  }

  .research-markdown-table-stack tbody,
  .research-markdown-table-stack tbody tr {
    display: block;
    width: 100%;
  }

  .research-markdown-table-stack tbody tr {
    padding: 0.875rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 0;
  }

  .research-markdown-table-stack tbody tr:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .research-markdown-table-stack tbody tr:last-child {
    padding-bottom: 0;
  }

  .research-markdown-table-stack tbody tr td {
    display: block;
    padding: 0;
    border-bottom: 0;
    max-width: none;
    width: 100%;
  }

  .research-markdown-table-stack tbody tr td:first-child {
    color: #111111;
    font-weight: 560;
    font-size: 0.9375rem;
    line-height: 1.25rem;
    letter-spacing: -0.00813rem;
    margin-bottom: 0.5rem;
    padding: 0;
  }

  .research-markdown-table-stack tbody tr td:not(:first-child) {
    margin-top: 0.625rem;
  }

  .research-markdown-table-stack tbody tr td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: rgba(0, 0, 0, 0.45);
    font-size: 0.75rem;
    font-weight: 460;
    line-height: 1rem;
    letter-spacing: -0.0025rem;
    margin-bottom: 0.25rem;
  }

  .research-markdown-table-wrapper:has(.research-markdown-table-stack) {
    overflow-x: visible;
    padding-top: 0.5rem;
  }
}

@media screen and (max-width: 680px) {
  .research-table-wrapper {
    padding-top: 0.75rem;
  }
}

.research-table-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  padding-top: 0.875rem;
}

.research-table-filters[hidden] {
  display: none;
}

.research-table-filter {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: transparent;
  color: rgba(0, 0, 0, 0.55);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 480;
  line-height: 1.15rem;
  letter-spacing: -0.00563rem;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.research-table-filter:hover {
  color: rgba(0, 0, 0, 0.74);
  border-color: rgba(0, 0, 0, 0.2);
}

.research-table-filter.is-active {
  color: #111111;
  border-color: #111111;
  font-weight: 560;
}

.research-table-filter-count {
  color: rgba(0, 0, 0, 0.4);
  font-size: 0.75rem;
  font-weight: 460;
  font-variant-numeric: tabular-nums;
}

.research-table-filter.is-active .research-table-filter-count {
  color: rgba(0, 0, 0, 0.55);
}

.research-table-filters + .research-table-wrapper {
  padding-top: 0.625rem;
}

/*
 * Shared column-width + cell rules for the named research-table variants.
 * Moved here from account/styles/usage.css so the table component lives with
 * its base definition and every page that renders these tables (dashboard,
 * account, server-rendered /runs) stays in sync.
 */
.research-table-usage th:nth-child(1),
.research-table-usage td:nth-child(1) {
  width: 43%;
}

.research-table-usage th:nth-child(2),
.research-table-usage td:nth-child(2),
.research-table-usage th:nth-child(3),
.research-table-usage td:nth-child(3) {
  width: 10%;
}

.research-table-usage th:nth-child(4),
.research-table-usage td:nth-child(4) {
  width: 27%;
}

.research-table-usage th:nth-child(5),
.research-table-usage td:nth-child(5) {
  width: 10%;
}

.research-table-topics th:nth-child(1),
.research-table-topics td:nth-child(1) {
  width: 52%;
}

.research-table-topics th:nth-child(2),
.research-table-topics td:nth-child(2),
.research-table-topics th:nth-child(3),
.research-table-topics td:nth-child(3),
.research-table-topics th:nth-child(4),
.research-table-topics td:nth-child(4) {
  width: 16%;
}

.research-table-entities th:nth-child(1),
.research-table-entities td:nth-child(1) {
  width: 52%;
}

.research-table-entities th:nth-child(2),
.research-table-entities td:nth-child(2),
.research-table-entities th:nth-child(3),
.research-table-entities td:nth-child(3),
.research-table-entities th:nth-child(4),
.research-table-entities td:nth-child(4) {
  width: 16%;
}

.home-entity-cell {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.home-entity-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.05);
}

.home-entity-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.55);
}

.research-table-usage-admin {
  min-width: 74rem;
}

.research-table-usage-admin th:nth-child(1),
.research-table-usage-admin td:nth-child(1) {
  width: 24%;
}

.research-table-usage-admin th:nth-child(2),
.research-table-usage-admin td:nth-child(2) {
  width: 15%;
}

.research-table-usage-admin th:nth-child(3),
.research-table-usage-admin td:nth-child(3),
.research-table-usage-admin th:nth-child(4),
.research-table-usage-admin td:nth-child(4),
.research-table-usage-admin th:nth-child(5),
.research-table-usage-admin td:nth-child(5),
.research-table-usage-admin th:nth-child(6),
.research-table-usage-admin td:nth-child(6),
.research-table-usage-admin th:nth-child(7),
.research-table-usage-admin td:nth-child(7),
.research-table-usage-admin th:nth-child(8),
.research-table-usage-admin td:nth-child(8),
.research-table-usage-admin th:nth-child(9),
.research-table-usage-admin td:nth-child(9) {
  width: 7%;
}

.research-table-usage-admin th:nth-child(10),
.research-table-usage-admin td:nth-child(10) {
  width: 17%;
}

.research-table-usage tbody tr td {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.research-table-skeleton-row td {
  height: 2.5rem;
}

/*
 * Canonical run/topic status color map.
 *
 * Three class families consume the same logical states (succeeded, running,
 * queued, paused, failed/cancelled, ...). They are kept as separate classes
 * because different JS surfaces emit different prefixes, but their colors are
 * defined together here so they can never drift:
 *
 *   .status-text-*   — inline status text in run/runs tables (research-table)
 *   .account-status-* — account/dashboard status text + topic states
 *
 * The .status-pill / .status-<state> pill variants (background + border + color)
 * live with the pill layout in /styles/job/status-message.css.
 */

/* --- Inline status text (run tables, server-rendered /runs) --- */
.status-text-succeeded {
  color: var(--success-color);
}

.status-text-running {
  color: #1d4ed8;
  animation: job-running-pill 2.2s ease-in-out infinite;
}

.status-text-queued {
  color: #4f46e5;
}

.status-text-paused {
  color: #b45309;
}

.status-text-failed,
.status-text-cancelled,
.status-text-canceled {
  color: var(--danger-color);
}

/* --- Account / dashboard status text + topic lifecycle states --- */
.account-status {
  display: inline-block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: rgba(0, 0, 0, 0.45);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-status-succeeded {
  color: #15803d;
}

.account-status-running {
  color: #1d4ed8;
  animation: account-running-status 1.7s ease-in-out infinite;
}

.account-status-queued {
  color: #4f46e5;
}

.account-status-paused {
  color: #b45309;
}

.account-status-failed,
.account-status-canceled,
.account-status-cancelled {
  color: var(--danger-color);
}

/* Topic statuses — paused/archived fall through to the muted base color. */
.account-status-active {
  color: #15803d;
}

.account-status-bootstrapping {
  color: #1d4ed8;
  animation: account-running-status 1.7s ease-in-out infinite;
}

.account-status-bootstrap-failed {
  color: var(--danger-color);
}

@keyframes account-running-status {
  0%,
  100% {
    opacity: 0.62;
  }
  50% {
    opacity: 1;
  }
}

code {
  position: relative;
  display: inline-block;
  font-family: var(--font-code);
  font-size: 0.9em;
  line-height: 1;
  color: rgba(0, 0, 0, 0.75);
  padding: 0.1rem 0.2rem;
}

code::before {
  pointer-events: none;
  content: "";
  position: absolute;
  transform: translateY(-1px);
  inset: -0.1em 0;
  border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.04);
  z-index: -1;
}

pre code {
  display: block;
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

pre code::before {
  display: none;
}

ul,
ol {
  list-style: none;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-top: 2rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 460;
  letter-spacing: -0.0025rem;
  line-height: 1.25rem;
}

.footer a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.footer a::before {
  pointer-events: none;
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  border-radius: 2px;
  background: #d9d9d9;
  transition: background 0.18s ease, transform 0.18s ease;
}

.footer a:hover {
  color: #111111;
}

.footer a:hover::before {
  background: #666666;
  transform: translateY(-0.5px);
}

.footer-commit {
  margin-left: auto;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0;
  color: var(--muted);
}

site-footer {
  display: block;
}

::selection {
  color: var(--selection-color);
  background: var(--selection-bg);
}

::-moz-selection {
  color: var(--selection-color);
  background: var(--selection-bg);
}

:focus-visible {
  outline: 2px solid var(--focus-color);
}

@media screen and (max-width: 520px) {
  dl {
    grid-template-columns: 1fr;
  }

  .harness-node text {
    font-size: 15px;
  }
}

@media screen and (max-width: 900px) {
  .job-page main {
    width: min(100%, var(--researcher-page-width, 64rem));
  }
}

@media screen and (max-width: 680px) {
body.job-page {
  overflow-x: clip;
}

.job-page main {
  width: 100%;
  padding: 1.5rem 1rem 2rem;
  overflow-x: clip;
}

.job-page .site-nav {
  gap: 0.75rem;
  padding-bottom: 1.75rem;
}

/* Raised to `.job-page .job-header` (0,2,0) so this mobile column layout
   beats the base `.job-header { flex-direction: row }` in runs/job-shell.css,
   which is imported later in the cascade and would otherwise win at equal
   specificity — collapsing the title row to width 0 (one char per line). */
.job-page .job-header {
  flex-direction: column;
  gap: 0.75rem;
}

.job-heading,
.job-title-row,
.job-title-copy {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.job-title-copy {
  flex: 1 1 auto;
}

.job-heading h1 {
  max-width: 100%;
  font-size: 1.0625rem;
  line-height: 1.375rem;
  letter-spacing: -0.015rem;
  text-wrap: pretty;
}

.job-kicker {
  max-width: 100%;
  font-size: 0.8125rem;
  line-height: 1.125rem;
}

.job-parent-run-inline {
  max-width: 100%;
}

.job-parent-run-inline .job-parent-run-link {
  flex: 1 1 auto;
  max-width: 100%;
}

.job-header-actions {
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.status-pill-has-detail::after {
  left: 0;
  right: auto;
  width: min(20rem, calc(100vw - 2rem));
}

.job-progress {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.job-progress ol {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem 0.75rem;
}

}

@media screen and (max-width: 680px) {
.job-summary {
  grid-template-columns: 1fr;
  margin-top: 0.75rem;
}

.job-summary > div,
.job-summary > div:nth-child(4n),
.job-summary > div:nth-child(2n) {
  border-right: 0;
}

.job-summary > div,
.job-summary > div:nth-last-child(-n + 4) {
  border-bottom: 1px solid var(--soft-line);
}

.job-summary > div:last-child,
.job-summary > div:nth-last-child(-n + 2):last-child {
  border-bottom: 0;
}

.job-summary p:not(.job-label) {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.job-event-actions {
  justify-content: flex-start;
}

.job-dialog-actions {
  justify-content: stretch;
}

.job-dialog-button {
  width: 100%;
}

.job-primary-tabs,
.job-tabbar {
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.job-primary-tabs::-webkit-scrollbar,
.job-tabbar::-webkit-scrollbar {
  display: none;
}

.job-primary-tab,
.job-tab {
  flex: 0 0 auto;
  white-space: nowrap;
}

.job-view {
  gap: 1.25rem;
  padding-top: 1.25rem;
}

.job-section,
.job-storage-group {
  gap: 0.625rem;
}

.job-section-heading,
.job-report-heading {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
}

.job-report-title-block {
  gap: 0.5rem;
}

.job-report-title-block h2 {
  max-width: none;
  font-size: 1rem;
  line-height: 1.35rem;
  letter-spacing: -0.014rem;
  text-wrap: pretty;
}

.job-brief-actions {
  gap: 0.5rem;
  padding-top: 0;
}

}

@media screen and (max-width: 680px) {
.job-dialog {
  width: calc(100vw - 1rem);
}

.job-dialog-header,
.job-dialog-content {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.job-brief h3 {
  margin: 2rem 0 0.625rem;
}

.job-brief p,
.job-brief li {
  font-size: 0.8125rem;
  line-height: 1.3125rem;
}

.job-brief ul,
.job-brief ol {
  padding-left: 1.125rem;
}

}

@media screen and (max-width: 680px) {
.job-page .research-table-wrapper,
.job-page .research-markdown-table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: visible;
  padding-top: 0.25rem;
}

.job-page .research-table,
.job-page .research-markdown-table,
.job-page .research-markdown-table-wide {
  width: 100%;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
}

.job-page .research-table thead,
.job-page .research-markdown-table thead,
.job-page .research-markdown-table-wide thead {
  display: none;
}

.job-page .research-table tbody,
.job-page .research-markdown-table tbody,
.job-page .research-markdown-table-wide tbody {
  display: grid;
  gap: 0.75rem;
  width: 100%;
}

.job-page .research-table tbody tr,
.job-page .research-markdown-table tbody tr,
.job-page .research-markdown-table-wide tbody tr {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.job-page .research-table tbody tr:first-child,
.job-page .research-markdown-table tbody tr:first-child,
.job-page .research-markdown-table-wide tbody tr:first-child {
  border-top: 0;
}

.job-page .research-table tbody:hover tr,
.job-page .research-markdown-table tbody:hover tr,
.job-page .research-markdown-table-wide tbody:hover tr {
  opacity: 1;
}

.job-page .research-table tbody tr td,
.job-page .research-markdown-table tbody tr td,
.job-page .research-markdown-table-wide tbody tr td {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 0;
  border-bottom: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  vertical-align: top;
}

.job-page .research-table tbody tr td:first-child,
.job-page .research-table tbody tr td:last-child,
.job-page .research-markdown-table tbody tr td:first-child,
.job-page .research-markdown-table tbody tr td:last-child,
.job-page .research-markdown-table-wide tbody tr td:first-child,
.job-page .research-markdown-table-wide tbody tr td:last-child {
  padding-left: 0;
  padding-right: 0;
}

.job-page .research-table tbody tr td[data-label]:not([colspan]),
.job-page .research-markdown-table tbody tr td[data-label]:not([colspan]),
.job-page .research-markdown-table-wide tbody tr td[data-label]:not([colspan]) {
  display: grid;
  grid-template-columns: minmax(0, 5.75rem) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.job-page .research-table tbody tr td[data-label]:not([colspan])::before,
.job-page .research-markdown-table tbody tr td[data-label]:not([colspan])::before,
.job-page .research-markdown-table-wide tbody tr td[data-label]:not([colspan])::before {
  content: attr(data-label);
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 0.9375rem;
  letter-spacing: 0;
}

.job-page .research-table-empty {
  padding: 0.125rem 0 0;
}

.job-page .research-table td a {
  max-width: 100%;
}

.job-page .source-ref-list {
  margin-left: 0;
}

.job-page .source-ref,
.job-page .source-ref-more {
  max-width: 100%;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-table-wrapper {
  max-width: 100%;
  overflow: visible;
  padding: 0.125rem 0 0;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-table,
.job-page :is(#job-report-view, #job-notes-view) .research-markdown-table-wide,
.job-page :is(#job-report-view, #job-notes-view) .research-markdown-table-stack {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  table-layout: auto;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-table thead,
.job-page :is(#job-report-view, #job-notes-view) .research-markdown-table-wide thead {
  display: none;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-table tbody,
.job-page :is(#job-report-view, #job-notes-view) .research-markdown-table-wide tbody {
  display: grid;
  gap: 0;
  width: 100%;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-table tbody tr,
.job-page :is(#job-report-view, #job-notes-view) .research-markdown-table-wide tbody tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.625rem;
  width: 100%;
  padding: 0.875rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-table tbody tr:first-child,
.job-page :is(#job-report-view, #job-notes-view) .research-markdown-table-wide tbody tr:first-child {
  border-top: 0;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-table tbody tr td,
.job-page :is(#job-report-view, #job-notes-view) .research-markdown-table-wide tbody tr td {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  border: 0;
  color: #111111;
  font-size: 0.8125rem;
  line-height: 1.3125rem;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
  hyphens: auto;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-table tbody tr td[data-label]:not([colspan]),
.job-page :is(#job-report-view, #job-notes-view) .research-markdown-table-wide tbody tr td[data-label]:not([colspan]) {
  display: block;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-table tbody tr td[data-label]:not([colspan])::before,
.job-page :is(#job-report-view, #job-notes-view) .research-markdown-table-wide tbody tr td[data-label]:not([colspan])::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 0.125rem;
  color: rgba(0, 0, 0, 0.48);
  font-size: 0.6875rem;
  font-weight: 520;
  line-height: 1rem;
  letter-spacing: 0;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-table .research-markdown-cell-value,
.job-page :is(#job-report-view, #job-notes-view) .research-markdown-table-wide .research-markdown-cell-value {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-table .source-ref-list,
.job-page :is(#job-report-view, #job-notes-view) .research-markdown-table-wide .source-ref-list {
  max-width: 100%;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-wrapper {
  overflow-x: auto;
  padding: 0;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table {
  display: table;
  min-width: 54rem;
  table-layout: fixed;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table thead {
  display: table-header-group;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table tbody {
  display: table-row-group;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table tbody tr {
  display: table-row;
  padding: 0;
  border-top: 0;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table thead tr th,
.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table tbody tr td {
  display: table-cell;
  width: auto;
  max-width: none;
  padding: 0.3125rem 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.75rem;
  line-height: 1.0625rem;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: normal;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table tbody tr td[data-label]:not([colspan]) {
  display: table-cell;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table tbody tr td[data-label]:not([colspan])::before {
  content: none;
  display: none;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-record-tables {
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-record-table {
  table-layout: fixed;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-record-table th,
.job-page :is(#job-report-view, #job-notes-view) .research-markdown-record-table td {
  padding: 0.4375rem 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-record-table th {
  width: 7.25rem;
  font-weight: 560;
}

}

@media (prefers-reduced-motion: reduce) {
  .harness-pulse,
  .harness-node rect {
    animation: none;
  }
}
