/* GENERATED by apps/web/scripts/bundle-page-css.mjs — do not edit.
 * Source: apps/web/public/styles/pages/pricing-page.css
 * Flattened from 34 @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");

/*
 * Dedicated entrypoint for /pricing.
 *
 * Pricing renders a lightweight article plus a static run-preview component.
 * Keep the pricing-specific controls out of the shared base 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 {
  /* Both schemes are available by default; the theme toggle narrows this to a
     single scheme via [data-theme] below. With no explicit choice this stays
     "light dark", so light-dark() tracks the OS preference live (System mode)
     with zero JS. */
  color-scheme: light dark;

  --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;

  /* ============================================================
     SEMANTIC COLOR TOKENS
     Every themeable color is light-dark(<light>, <dark>). The browser
     resolves it from the element's used color-scheme (inherited from :root),
     so a single token definition serves both themes. Migrate raw hex / rgba
     onto these — never hard-code a themeable color in a leaf file again.
     Dark values are ChatGPT-anchored and WCAG-AA verified (see
     docs/adr/dark-mode-and-token-system-2026-06.md).
     ============================================================ */

  /* Surfaces — page ground up through overlays. Light mode: off-white page,
     white cards sit close to it. Dark mode uses a DIFFERENT philosophy: a TRUE
     BLACK page with components lifted as distinct greys, so cards clearly float
     (depth reads via the lightness ladder since shadows vanish on black). */
  --surface: light-dark(#faf9f6, #000000);
  --surface-raised: light-dark(#ffffff, #1a1a1c);
  --surface-sunken: light-dark(#f8f8f8, #0d0d0f);
  --surface-overlay: light-dark(#ffffff, #242426);
  /* Sent-message (user) chat bubble: a soft grey that floats off the page in
     both themes (charcoal on the black page, warm light-grey on the off-white
     page) — instead of a hard white/ink block. Text uses --ink for contrast. */
  --chat-bubble-user: light-dark(#eeece8, #2c2c2e);
  --surface-scrim: light-dark(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.62));
  /* Frosted dialog/dock backdrop — a LIGHT blur over the page in light mode,
     a dark dim in dark mode (used with backdrop-filter). Distinct from the pure
     dark scrim above. */
  --surface-backdrop: light-dark(rgba(248, 248, 247, 0.72), rgba(18, 18, 20, 0.6));

  /* Ink — text ladder. MUST be solid (or alpha-on-black in light only); the
     dark values are solid greys, never low-alpha white, so contrast is
     deterministic over any surface. */
  --ink: light-dark(#111111, #ececec);
  --ink-muted: light-dark(rgba(0, 0, 0, 0.56), #b4b4b4);
  --ink-faint: light-dark(rgba(0, 0, 0, 0.4), #8e8e93);
  --ink-inverse: light-dark(#ffffff, #1c1c1e);

  /* Lines / borders. Dark values are intentionally higher-alpha than a literal
     10% hairline: on the true-black ground a 6–10% white line is nearly
     invisible (table rules, tab underlines, list dividers), so they're bumped
     for legibility. */
  --line: light-dark(#efece6, rgba(255, 255, 255, 0.15));
  --line-strong: light-dark(#d9d9d9, rgba(255, 255, 255, 0.24));
  --line-faint: light-dark(#e8e5df, rgba(255, 255, 255, 0.1));

  /* Accent — the real app accent (#1d4ed8), lightened in dark for AA. */
  --accent: light-dark(#1d4ed8, #4d9fff);
  --accent-hover: light-dark(#1640b8, #6cb2ff);
  --accent-ink: light-dark(#ffffff, #0a1220);
  /* Accent tint fill + line — the faint blue "current/running/highlighted"
     callouts (rgba(36,128,237,.045-.07) fills, rgba(29,78,216,.16-.22) borders). */
  --accent-tint: light-dark(rgba(36, 128, 237, 0.07), rgba(77, 159, 255, 0.16));
  --accent-line: light-dark(rgba(29, 78, 216, 0.2), rgba(77, 159, 255, 0.34));
  /* Info / queued — indigo status, distinct from the link accent. */
  --info: light-dark(#4f46e5, #8b87f0);

  /* State — success / danger / warning. Each: base + tint fill + line. */
  --success: light-dark(#65c466, #3fcf5f);
  --success-tint: light-dark(rgba(101, 196, 102, 0.13), rgba(63, 207, 95, 0.16));
  --success-line: light-dark(rgba(101, 196, 102, 0.45), rgba(63, 207, 95, 0.42));
  --danger: light-dark(#ea3223, #ff6257);
  --danger-hover: light-dark(#d42c20, #ff7a70);
  --danger-tint: light-dark(rgba(234, 50, 35, 0.07), rgba(255, 98, 87, 0.14));
  --danger-line: light-dark(rgba(234, 50, 35, 0.22), rgba(255, 98, 87, 0.34));
  --warning: light-dark(#b45309, #f5b942);
  --warning-tint: light-dark(rgba(180, 83, 9, 0.1), rgba(245, 185, 66, 0.14));
  --warning-line: light-dark(rgba(180, 83, 9, 0.3), rgba(245, 185, 66, 0.34));
  /* Text/icon on a SOLID --warning fill (white in light; dark in dark, since the
     dark warning is a light amber). */
  --warning-ink: light-dark(#ffffff, #2a1500);

  /* Interaction overlays — black wash in light, white wash in dark. light-dark()
     does the black->white flip for free; consumers just use the token. */
  --hover-bg: light-dark(rgba(0, 0, 0, 0.04), rgba(255, 255, 255, 0.055));
  --active-bg: light-dark(rgba(0, 0, 0, 0.07), rgba(255, 255, 255, 0.09));
  --selected-bg: light-dark(rgba(29, 78, 216, 0.08), rgba(77, 159, 255, 0.16));

  /* Focus + selection */
  --focus-ring: light-dark(rgba(0, 122, 255, 0.5), rgba(108, 178, 255, 0.6));
  --selection-bg: light-dark(#e8e5df, rgba(77, 159, 255, 0.3));
  --selection-color: light-dark(#111111, #ffffff);

  /* Elevation — geometry is constant; only the shadow color flips per theme.
     Dark shadows are much heavier (a soft black shadow is invisible on dark). */
  --shadow-color-weak: light-dark(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.45));
  --shadow-color: light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55));
  --shadow-color-strong: light-dark(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.7));
  --shadow-sm: 0 1px 2px var(--shadow-color-weak);
  --shadow-md: 0 12px 32px var(--shadow-color);
  --shadow-lg: 0 24px 64px -18px var(--shadow-color-strong),
    0 2px 8px var(--shadow-color-weak);

  /* ---- Back-compat aliases: old token names → new semantic tokens. Keeps
     existing consumers working (and themed) during/after the leaf migration.
     Light values are preserved exactly; only the alias target changed. ---- */
  --body-color: var(--ink);
  --heading-color: var(--ink);
  --body-bg: var(--surface);
  --muted: light-dark(rgba(0, 0, 0, 0.4), #b4b4b4);
  --link-color: var(--accent);
  --soft-line: var(--line-faint);
  --focus-color: var(--focus-ring);
  --success-color: var(--success);
  --danger-color: var(--danger);
  --danger-color-hover: var(--danger-hover);
  --danger-soft-tint: var(--danger-tint);
  --danger-soft-line: var(--danger-line);

  /* Warm-surface pilot RETIRED into the neutral cool scale (one system, themes
     to dark for free). These four are kept as permanent neutral aliases so the
     ~40 var(--warm-*) consumers stay terse and themed — do NOT reintroduce warm
     values here. New code should prefer the canonical --surface-*/--line/--ink. */
  --warm-surface: var(--surface);
  --warm-panel: var(--surface-raised);
  --warm-line: var(--line);
  --warm-ink: var(--ink);

  --researcher-page-width: 64rem;

  /* Motion language (shared so surfaces don't re-derive easings/durations).
     --ease-drawer is the iOS/Vaul "settle" curve; --ease-out-soft is a
     standard decelerate used for entrances and micro-interactions. */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out-soft: cubic-bezier(0, 0, 0.2, 1);
  --dur-panel: 320ms;
  --dur-drawer: 360ms;
  --dur-sheet: 380ms;
  --dur-entrance: 300ms;
  --dur-micro: 150ms;
  --stagger-step: 50ms;
}

/* Theme override: the toggle sets data-theme on <html>; that narrows
   color-scheme to a single scheme, which flips every light-dark() token.
   "system" (or no attribute) leaves both schemes active = follow the OS. */
:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

:root[data-theme="system"] {
  color-scheme: light dark;
}

@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;
  /* Clear the iOS notch on pages that opt into edge-to-edge (viewport-fit=cover,
     e.g. the entity/job chat surfaces). Resolves to 0 everywhere else, so this
     is a no-op on pages without viewport-fit=cover. */
  padding-top: env(safe-area-inset-top);
  padding-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 460;
  line-height: 1.25rem;
  letter-spacing: -0.0025rem;
}

/* Account avatar dropdown — bundles the create actions (New run, New topic),
   Pricing, Docs, a collapsible theme chooser, and 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: var(--ink);
}

.site-nav-account-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 40;
  min-width: 15rem;
  display: flex;
  flex-direction: column;
  padding: 0.375rem;
  border: 1px solid var(--soft-line);
  border-radius: 0.625rem;
  background: var(--warm-panel);
  box-shadow:
    0 0.5rem 1.5rem var(--shadow-color),
    0 0.0625rem 0.125rem var(--shadow-color-weak);
}

.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: var(--ink);
  background: var(--hover-bg);
}

.site-nav-account-trigger:focus-visible,
.site-nav-account-menu-item:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
}

/* Coarse pointers (touch) — keep the tappable rows at the ~44px minimum. */
@media (pointer: coarse) {
  .site-nav-account-menu-item {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
  }
}

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

.site-nav-account-menu-logout {
  color: var(--danger);
}

.site-nav-account-menu-logout:hover {
  color: var(--danger);
  background: var(--danger-tint);
}

/* Create group — the primary "New run" / "New topic" actions at the top of the
   menu. Emphasized (ink, not muted) so they read as the main reason to open it. */
.site-nav-account-menu-group {
  display: flex;
  flex-direction: column;
}

.site-nav-account-menu-create {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 500;
}

.site-nav-account-menu-icon {
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  color: var(--ink-muted);
  transition: color 0.12s ease;
}

.site-nav-account-menu-icon svg {
  width: 0.875rem;
  height: 0.875rem;
}

.site-nav-account-menu-create:hover .site-nav-account-menu-icon {
  color: var(--ink);
}

/* Theme chooser as a collapsible secondary row, not an always-open block. */
.site-nav-account-theme {
  display: flex;
  flex-direction: column;
}

.site-nav-account-theme-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav-account-theme-icon,
.site-nav-account-theme-chevron {
  display: inline-grid;
  place-items: center;
  color: currentColor;
}

.site-nav-account-theme-icon {
  width: 1rem;
  height: 1rem;
}

.site-nav-account-theme-icon svg {
  width: 1rem;
  height: 1rem;
}

.site-nav-account-theme-value {
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.65;
}

.site-nav-account-theme-chevron {
  width: 0.875rem;
  height: 0.875rem;
  opacity: 0.65;
  transition: transform 0.15s ease;
}

.site-nav-account-theme-chevron svg {
  width: 0.875rem;
  height: 0.875rem;
}

.site-nav-account-theme.is-open .site-nav-account-theme-chevron {
  transform: rotate(180deg);
}

.site-nav-account-theme-panel {
  padding-top: 0.125rem;
  /* Entrance paired with the chevron rotation so the reveal feels deliberate
     rather than a snap while the chevron animates. */
  animation: site-nav-theme-panel-in 0.15s ease;
}

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

@keyframes site-nav-theme-panel-in {
  from {
    opacity: 0;
    transform: translateY(-0.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Respect reduced-motion: no chevron spin, item transitions, or panel reveal. */
@media (prefers-reduced-motion: reduce) {
  .site-nav-account-menu-item,
  .site-nav-account-menu-icon,
  .site-nav-account-trigger,
  .site-nav-account-theme-chevron {
    transition: none;
  }

  .site-nav-account-theme.is-open .site-nav-account-theme-chevron {
    transform: none;
  }

  .site-nav-account-theme-panel {
    animation: none;
  }
}

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

/* Theme chooser — a System / Light / Dark segmented control that lives inside
   the account dropdown menu (rendered by shared/site-nav-account.js, built by
   shared/theme.js). Styled entirely from semantic tokens so it themes itself.
   Revealed by the collapsible "Theme" row in the account menu. */

.theme-control {
  display: flex;
  flex-direction: column;
  gap: 0.0625rem;
}

.theme-control-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.4375rem 0.5625rem;
  border: 0;
  border-radius: 0.4375rem;
  background: none;
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.8125rem;
  line-height: 1.1;
  text-align: left;
  cursor: pointer;
  transition:
    color 0.12s ease,
    background-color 0.12s ease;
}

.theme-control-option:hover {
  color: var(--ink);
  background: var(--hover-bg);
}

.theme-control-option:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: -1px;
}

@media (prefers-reduced-motion: reduce) {
  .theme-control-option {
    transition: none;
  }
}

.theme-control-option.is-active {
  color: var(--ink);
  background: var(--selected-bg);
}

.theme-control-icon {
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  color: currentColor;
}

.theme-control-icon svg {
  width: 1rem;
  height: 1rem;
}

.theme-control-label {
  margin-right: auto;
}

.theme-control-option.is-active::after {
  content: "";
  width: 0.875rem;
  height: 0.875rem;
  margin-left: 0.5rem;
  background: currentColor;
  -webkit-mask: var(--theme-check) center / contain no-repeat;
  mask: var(--theme-check) center / contain no-repeat;
}

:root {
  --theme-check: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 7"/></svg>');
}

.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: var(--ink);
}

.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: var(--ink);
}

.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: var(--ink);
  color: var(--ink-inverse);
  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: var(--line-strong);
  opacity: 1;
  transition: inherit;
}

.basic-link:hover::before,
.nav a:hover::before {
  background: var(--ink-faint);
}

.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: var(--ink);
  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 var(--line);
  color: var(--ink);
  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: var(--ink-faint);
}

.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: var(--hover-bg);
}

.research-table tbody tr td {
  padding: 0.375rem 0.75rem;
  border-bottom: 1px solid var(--line);
  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: var(--ink);
}

@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: var(--ink);
}

.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 var(--line);
    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: var(--ink);
    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: var(--ink-faint);
    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 var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-faint);
  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: var(--ink);
  border-color: var(--line-strong);
}

.research-table-filter.is-active {
  color: var(--ink);
  border-color: var(--line-strong);
  font-weight: 560;
}

.research-table-filter-count {
  color: var(--ink-faint);
  font-size: 0.75rem;
  font-weight: 460;
  font-variant-numeric: tabular-nums;
}

.research-table-filter.is-active .research-table-filter-count {
  color: var(--ink-faint);
}

.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: var(--surface-sunken);
}

.home-entity-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-faint);
}

.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: var(--accent);
  animation: job-running-pill 2.2s ease-in-out infinite;
}

.status-text-queued {
  color: var(--info);
}

.status-text-paused {
  color: var(--warning);
}

.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: var(--ink-faint);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-status-succeeded {
  color: var(--success);
}

.account-status-running {
  color: var(--accent);
  animation: account-running-status 1.7s ease-in-out infinite;
}

.account-status-queued {
  color: var(--info);
}

.account-status-paused {
  color: var(--warning);
}

.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: var(--success);
}

.account-status-bootstrapping {
  color: var(--accent);
  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: var(--ink);
  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: var(--surface-sunken);
  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: var(--line-strong);
  transition: background 0.18s ease, transform 0.18s ease;
}

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

.footer a:hover::before {
  background: var(--line-strong);
  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 var(--line);
}

.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%;
}

/* ── List tables (Activity / Sources / Artifacts): compact one-line rows ──
   Overrides the stacked-card treatment above for `.research-table` only (report
   markdown tables keep stacking). Each row is a single tap-friendly line showing
   a subset of columns; actions collapse to icons. */
.job-page .research-table tbody {
  display: block;
  gap: 0;
}

.job-page .research-table tbody tr {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 2.875rem;
  padding: 0.4375rem 0;
}

.job-page .research-table tbody tr td {
  display: block;
  width: auto;
  min-width: 0;
}

/* drop the label/value grid + inline ::before labels for list tables */
.job-page .research-table tbody tr td[data-label]:not([colspan]) {
  display: block;
  grid-template-columns: none;
  gap: 0;
}

.job-page .research-table tbody tr td[data-label]:not([colspan])::before {
  content: none;
}

.job-page .research-table tbody tr td[colspan] {
  flex: 1 1 auto;
}

/* secondary columns hidden on small screens (tap the row for full detail).
   The :not([colspan]) lifts specificity to (0,4,3) so display:none beats the
   td[data-label]:not([colspan]){display:block} override above. */
.job-page .research-table tbody tr td[data-label="Domain"]:not([colspan]),
.job-page .research-table tbody tr td[data-label="Type"]:not([colspan]),
.job-page .research-table tbody tr td[data-label="Record"]:not([colspan]),
.job-page .research-table tbody tr td[data-label="Source score"]:not([colspan]) {
  display: none;
}

/* short scannable prefix column (activity stage) */
.job-page .research-table tbody tr td[data-label="Stage"] {
  flex: 0 0 auto;
  max-width: 6rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.75rem;
}

/* primary column fills the row and truncates to one line */
.job-page .research-table tbody tr td[data-label="Update"],
.job-page .research-table tbody tr td[data-label="Title"] {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-page .research-table .job-source-comment {
  display: none;
}

/* actions hug the right edge */
.job-page .research-table tbody tr td[data-label="Actions"],
.job-page .research-table tbody tr td[data-label="Preview"] {
  flex: 0 0 auto;
  margin-left: auto;
}

/* keep the message on one line; hide its secondary detail line */
.job-page .research-table .research-table-update {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
}

.job-page .research-table .research-table-update-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.job-page .research-table .research-table-update-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-page .research-table .research-table-update-meta {
  display: none;
}

/* Activity row order on mobile: stage · message · relative time · actions.
   Class-targeted (set in job-activity-renderer.js) so it doesn't depend on the
   auto-applied data-labels. */
.job-page .research-table tbody tr td.job-event-stage {
  order: 1;
}

.job-page .research-table tbody tr td.job-event-message {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
}

.job-page .research-table tbody tr td.job-event-time {
  order: 3;
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
}

.job-page .research-table tbody tr td.job-event-actions-cell {
  order: 4;
  flex: 0 0 auto;
  margin-left: 0;
}

/* actions render as icons only on mobile */
.job-page .research-table .job-event-actions,
.job-page .research-table .job-source-row-actions {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.job-page .research-table .job-inline-button {
  padding: 0.25rem;
}

.job-page .research-table .job-inline-button .job-inline-label {
  display: none;
}

.job-page .research-table .job-inline-button .job-inline-icon {
  display: inline-flex;
  align-items: center;
}

.job-page .research-table .job-inline-icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.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 var(--line);
}

.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: var(--ink);
  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: var(--ink-faint);
  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 var(--line);
  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;
}

/* ── Trade-ideas table: stack into labeled cards on mobile ─────────────────
   The structured trade-ideas table carries `.research-table`, so it would
   otherwise inherit the list-table "compact one-line flex row" treatment
   above. That treatment relies on per-column flex rules that only the
   Activity/Sources/Artifacts tables have — without them the trade table's
   narrow cells (the Side badge, the Type) collapse to a few pixels and short
   words like "LONG" wrap one letter per line. Stack each row as a labeled
   card instead, matching the report markdown tables. (Scoped through the
   report/notes view IDs so it beats the `.research-table` list rules above.) */
.job-page :is(#job-report-view, #job-notes-view) .research-table-trade-ideas tbody {
  display: grid;
  gap: 0;
}

.job-page :is(#job-report-view, #job-notes-view) .research-table-trade-ideas tbody tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  width: 100%;
  min-height: 0;
  padding: 0.875rem 0;
  border-top: 1px solid var(--line);
}

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

.job-page :is(#job-report-view, #job-notes-view) .research-table-trade-ideas tbody tr td {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  border: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

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

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

}

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

.pricing-budget-panel {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 0.875rem;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface-raised);
}

.pricing-budget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pricing-budget-head h2 {
  margin: 0.15rem 0 0;
  color: var(--heading-color);
  font-size: 1.5rem;
  font-weight: 620;
  line-height: 1.75rem;
  letter-spacing: 0;
}

.pricing-budget-options {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.375rem;
}

.pricing-budget-options button {
  appearance: none;
  min-height: 2.25rem;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--warm-panel);
  color: var(--ink-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 560;
  line-height: 1.25rem;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.pricing-budget-options button:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.pricing-budget-options button.is-selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--ink-inverse);
}

.pricing-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 520;
  line-height: 1.25rem;
  white-space: nowrap;
}

.pricing-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--ink);
}

.pricing-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 580;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-run-preview {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.pricing-run-preview .job-summary {
  margin-top: 0;
}

.pricing-preview-section {
  margin-top: 0;
}

@media screen and (max-width: 720px) {
  .pricing-budget-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pricing-budget-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media screen and (max-width: 420px) {
  .pricing-budget-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.job-shell {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.job-page main {
  width: min(100%, var(--researcher-page-width, 64rem));
}

.runs-page main {
  width: min(100%, var(--researcher-page-width, 64rem));
}

.job-page .job-header,
.job-page .job-message,
.job-page .job-summary,
.job-page .job-media-header,
.job-page .job-progress,
.job-page .job-chat-launch,
.job-page .job-primary-tabs,
.job-page .job-view,
.job-page .job-section {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.job-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.25rem;
}

/*
 * Base .job-section / .status-pill so the server-rendered /runs page is fully
 * styled by its own slim bundle (app-base + runs) without pulling in the whole
 * job tree. Canonical copies also live in /styles/job/report-shell/section-
 * layout.css and /styles/job/status-message.css; these are identical, so the
 * full app bundle (which loads both) renders the same either way.
 */
.job-section {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.status-pill {
  appearance: none;
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 4.5rem;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: var(--warm-panel);
  color: var(--ink-muted);
  padding: 0.1875rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  letter-spacing: 0;
  text-transform: none;
  cursor: default;
}

.job-heading {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
}

.job-title-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 0;
}

.job-title-copy {
  min-width: 0;
}

.job-title-media {
  position: relative;
  flex: 0 0 auto;
  display: block;
  width: 4.75rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.375rem;
  background: var(--surface-sunken);
  text-decoration: none;
}

.job-title-media[hidden] {
  display: none;
}

.job-title-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-title-media:hover,
.job-title-media:focus-visible {
  outline: 0;
  filter: brightness(0.97);
}

.job-heading h1,
.job-heading p {
  overflow-wrap: anywhere;
}

.job-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 560;
  line-height: 1.5rem;
  letter-spacing: -0.01875rem;
}

.job-kicker {
  margin-top: 0.125rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 460;
  line-height: 1.25rem;
  letter-spacing: -0.00563rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
  max-width: 100%;
  flex-wrap: nowrap;
}

.job-kicker-label {
  flex: 0 0 auto;
  white-space: nowrap;
}

.job-kicker-divider {
  flex: 0 0 auto;
  color: var(--ink-faint);
}

.job-kicker-url {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
  font-variant-numeric: tabular-nums;
}

.job-kicker-url.is-youtube {
  max-width: 7.5rem;
}

.job-kicker-url:hover,
.job-kicker-url:focus-visible {
  color: var(--ink-muted);
  text-decoration-color: var(--line-strong);
  outline: 0;
}

.job-kicker-copy {
  appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  padding: 0;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  position: relative;
  transition: background 120ms ease, color 120ms ease;
}

.job-kicker-copy:hover {
  background: var(--hover-bg);
  color: var(--ink);
}

.job-kicker-copy:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px var(--focus-ring);
}

.job-kicker-copy svg {
  width: 0.875rem;
  height: 0.875rem;
  transition: opacity 120ms ease, transform 160ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.job-kicker-copy .job-icon-copy {
  display: block;
  transition: opacity 120ms ease, transform 160ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.job-kicker-copy .job-icon-check {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.875rem;
  height: 0.875rem;
  margin: 0;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  color: var(--success-color);
  transition: opacity 120ms ease, transform 160ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.job-kicker-copy[data-copied="true"] .job-icon-copy {
  opacity: 0;
  transform: scale(0.85);
}

.job-kicker-copy[data-copied="true"] .job-icon-check {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.job-kicker-more {
  flex: 0 0 auto;
  color: var(--ink-faint);
  font-size: 0.75rem;
}

.job-parent-run-inline {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.375rem;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-weight: 460;
  line-height: 1.125rem;
}

.job-parent-run-inline .job-parent-run-icon {
  width: 0.8125rem;
  height: 0.8125rem;
  flex: 0 0 auto;
  color: var(--ink-faint);
}

.job-parent-run-inline .job-parent-run-label {
  flex: 0 0 auto;
}

.job-parent-run-inline .job-parent-run-link {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  line-height: 1.125rem;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-parent-run-inline .job-parent-run-link:hover {
  color: var(--ink);
  text-decoration-color: var(--line-strong);
}

.job-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 0.75rem;
  min-height: 1.25rem;
}

.job-text-action {
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.1875rem 0.5rem;
  min-width: 4.5rem;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.job-text-action:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.job-text-action-label {
  display: inline-block;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.job-text-action-label-success {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--success-color);
  opacity: 0;
  transform: translateY(0.375rem);
  pointer-events: none;
}

.job-text-action[data-copied="true"] .job-text-action-label-default {
  opacity: 0;
  transform: translateY(-0.375rem);
}

.job-text-action[data-copied="true"] .job-text-action-label-success {
  opacity: 1;
  transform: translateY(0);
}

.job-text-action[data-copied="true"] {
  border-color: var(--success-line);
  color: var(--success-color);
}

@media (prefers-reduced-motion: reduce) {
  .job-text-action-label {
    transition: opacity 80ms linear;
    transform: none !important;
  }
}

.job-tooltip-button {
  position: relative;
}

.job-tooltip-button::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.5rem);
  z-index: 20;
  width: min(18rem, calc(100vw - 2rem));
  border: 1px solid var(--soft-line);
  border-radius: 0.625rem;
  background: var(--warm-panel);
  box-shadow: 0 12px 32px var(--shadow-color);
  color: var(--ink-muted);
  padding: 0.5rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 460;
  line-height: 1.2rem;
  letter-spacing: 0;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.25rem);
  transition: opacity 120ms ease, transform 120ms ease;
}

.job-tooltip-button:hover::after,
.job-tooltip-button:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.job-action-button.job-tooltip-button::after {
  right: auto;
  left: 50%;
  bottom: calc(100% + 0.4375rem);
  width: max-content;
  max-width: min(14rem, calc(100vw - 2rem));
  border-radius: 0.5rem;
  padding: 0.375rem 0.5rem;
  font-size: 0.71875rem;
  line-height: 1rem;
  white-space: nowrap;
  transform: translate(-50%, 0.1875rem);
}

.job-action-button.job-tooltip-button:hover::after,
.job-action-button.job-tooltip-button:focus-visible::after {
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .job-tooltip-button::after {
    transition: none;
    transform: none;
  }

  .job-action-button.job-tooltip-button::after,
  .job-action-button.job-tooltip-button:hover::after,
  .job-action-button.job-tooltip-button:focus-visible::after {
    transform: translateX(-50%);
  }
}

.status-pill {
  appearance: none;
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 4.5rem;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: var(--warm-panel);
  color: var(--ink-muted);
  padding: 0.1875rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  letter-spacing: 0;
  text-transform: none;
  cursor: default;
}

.status-pill-has-detail {
  cursor: help;
}

.status-pill-has-detail::after {
  content: attr(data-status-detail);
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 10;
  width: min(22rem, calc(100vw - 2rem));
  border: 1px solid var(--soft-line);
  border-radius: 0.625rem;
  background: var(--warm-panel);
  box-shadow: 0 12px 32px var(--shadow-color);
  color: var(--ink);
  padding: 0.625rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 460;
  line-height: 1.25rem;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.25rem);
  transition: opacity 120ms ease, transform 120ms ease;
}

.status-pill-has-detail:hover::after,
.status-pill-has-detail:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.status-pending,
.status-queued {
  border-color: var(--line);
  background: var(--surface-sunken);
  color: var(--ink-muted);
}

.status-succeeded {
  border-color: var(--success-line);
  background: var(--success-tint);
  color: var(--success-color);
}

.status-warning {
  border-color: var(--warning-line);
  background: var(--warning-tint);
  color: var(--warning);
}

.status-running,
.status-loading,
.status-generating-report {
  border-color: var(--accent-line);
  background: var(--accent-tint);
  color: var(--accent);
}

.status-running,
.status-loading,
.status-generating-report,
.job-progress.is-running li.is-active .job-progress-track {
  will-change: transform, opacity, background-position, box-shadow;
}

.status-running,
.status-loading,
.status-generating-report {
  animation: job-running-pill 2.2s ease-in-out infinite;
}

.status-failed,
.status-auth {
  border-color: var(--danger-line);
  background: var(--danger-tint);
  color: var(--danger-color);
}

.status-cancelled,
.status-paused,
.status-missing {
  border-color: var(--line);
  background: var(--surface-sunken);
  color: var(--ink-muted);
}

.status-awaiting-funding {
  border-color: var(--warning-line);
  background: var(--warning-tint);
  color: var(--warning);
}

.job-message {
  margin-top: 1rem;
  border: 1px solid var(--soft-line);
  border-radius: 0.5rem;
  background: var(--warm-panel);
  color: var(--ink-muted);
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 460;
  line-height: 1.25rem;
  letter-spacing: -0.00563rem;
}

.job-message-warning {
  border-color: var(--warning-line);
  background: var(--warning-tint);
  color: var(--warning);
}

.job-message-error {
  border-color: var(--danger-soft-line);
  background: var(--danger-tint);
  color: var(--danger-color);
}

.job-message-neutral {
  border-color: var(--soft-line);
  background: var(--warm-panel);
  color: var(--ink-muted);
}

.job-funding-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  border: 1px dashed var(--warning-line);
  border-radius: 0.625rem;
  background: var(--warning-tint);
  color: var(--warning);
  padding: 0.875rem 1rem;
}

.job-funding-panel-lock {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1.25rem;
}

.job-funding-panel-copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.job-funding-panel-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  letter-spacing: -0.00563rem;
}

.job-funding-panel-detail {
  margin: 0.125rem 0 0;
  font-size: 0.8125rem;
  font-weight: 460;
  line-height: 1.25rem;
  color: var(--warning);
}

.job-funding-panel-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
}

.job-funding-panel-fund {
  appearance: none;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--warning-line);
  border-radius: 999px;
  background: var(--warning);
  color: var(--warning-ink);
  padding: 0.3125rem 0.875rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 560;
  line-height: 1.25rem;
  text-decoration: none;
  cursor: pointer;
}

.job-funding-panel-fund:hover {
  background: color-mix(in srgb, var(--warning) 82%, black);
}

.job-funding-panel-resume {
  appearance: none;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--warning-line);
  border-radius: 999px;
  background: transparent;
  color: var(--warning);
  padding: 0.3125rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 560;
  line-height: 1.25rem;
  cursor: pointer;
}

.job-funding-panel-resume:hover {
  background: var(--warning-tint);
}

.job-funding-panel-resume:disabled {
  opacity: 0.6;
  cursor: default;
}

.job-dialog.job-funding-dialog {
  width: min(24rem, calc(100vw - 2rem));
  box-shadow: 0 1.25rem 4rem var(--shadow-color);
}

.job-funding-dialog-header {
  position: relative;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: none;
  padding: 1.125rem 1.25rem 0;
}

.job-funding-dialog-header .job-dialog-close {
  position: absolute;
  top: 0.5rem;
  right: 0.625rem;
}

.job-funding-dialog-header h2,
.job-funding-dialog-status,
.job-funding-address-description {
  margin: 0;
}

.job-funding-dialog-header h2 {
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.375rem;
}

.job-funding-dialog-content {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.25rem 1.25rem;
  justify-items: center;
  text-align: center;
}

.job-funding-dialog-status,
.job-funding-address-description {
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-weight: 450;
  line-height: 1.25rem;
  max-width: 19rem;
}

.job-funding-dialog-status.is-error {
  color: var(--danger-color);
}

/* Network selector — one pill dropdown replaces the per-chain chip row. */
.job-funding-chain-field {
  position: relative;
  width: 100%;
  max-width: 18rem;
}

.job-funding-chain-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  border: 1px solid var(--soft-line);
  border-radius: 0.875rem;
  background: var(--warm-panel);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 560;
  line-height: 1.25rem;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  text-align: left;
  cursor: pointer;
}

.job-funding-chain-select:hover {
  border-color: var(--line-strong);
}

.job-funding-chain-select:focus-visible {
  outline: 0;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px var(--shadow-color-weak);
}

.job-funding-chain-select:disabled {
  opacity: 0.6;
  cursor: default;
}

.job-funding-chain-chevron {
  position: absolute;
  top: 50%;
  right: 0.9375rem;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--ink-faint);
  pointer-events: none;
}

.job-funding-qr-frame {
  width: 100%;
  max-width: 13.5rem;
  border: 1px solid var(--soft-line);
  border-radius: 1.125rem;
  background: #ffffff;
  padding: 0.875rem;
}

.job-funding-qr-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.375rem;
}

/* Address chip with an inline copy icon (was a full-width copy button). */
.job-funding-address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 20rem;
  border: 1px solid var(--soft-line);
  border-radius: 0.875rem;
  background: var(--warm-panel);
  padding: 0.5625rem 0.5625rem 0.5625rem 0.875rem;
}

.job-funding-address-row code {
  min-width: 0;
  font-family: var(--font-code);
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: var(--ink);
  word-break: break-all;
  text-align: left;
}

.job-funding-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 0;
}

.job-funding-copy:hover:not(:disabled) {
  background: var(--hover-bg);
  color: var(--ink);
}

.job-funding-copy.is-copied {
  color: var(--ink);
}

.job-funding-copy:disabled {
  opacity: 0.5;
  cursor: default;
}

.job-funding-copy svg {
  width: 1rem;
  height: 1rem;
}

.job-funding-dialog-actions {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 0.5rem;
  margin-top: 0.125rem;
}

.job-funding-dialog .job-dialog-button {
  width: 100%;
  min-height: 2.625rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 560;
}

.job-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 1.125rem;
  padding-top: 0;
  border: 1px solid var(--soft-line);
  border-radius: 0.625rem;
  background: var(--surface-raised);
  overflow: hidden;
}

.job-summary.has-attached-prompt {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.job-summary > div {
  min-width: 0;
  min-height: 2.125rem;
  padding: 0.3125rem 0.8125rem 0.28125rem;
  border-right: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
}

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

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

.job-inline-value {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  height: 1.0625rem;
}

.job-inline-value .job-icon-button {
  margin-top: -0.28125rem;
  margin-bottom: -0.28125rem;
}

.job-label,
.job-meta,
.job-count {
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 0.9375rem;
  letter-spacing: 0;
}

.job-summary .job-label {
  margin-bottom: 0.0625rem;
}

.job-summary p:not(.job-label) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.0625rem;
}

.job-section,
.job-storage-group {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.job-section > h2,
.job-section-eyebrow,
.job-transcript-heading h2,
.job-evidence-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 560;
  line-height: 1.25rem;
  letter-spacing: -0.00813rem;
}

.job-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.job-report-heading {
  padding-bottom: 0.125rem;
}

.job-report-title-block {
  display: grid;
  gap: 0.625rem;
  flex: 1 1 auto;
  min-width: 0;
}

.job-report-title-block h2 {
  margin: 0;
  max-width: 64rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 560;
  line-height: 1.375rem;
  letter-spacing: -0.0125rem;
  text-wrap: pretty;
}

.job-transcript-card {
  display: grid;
  gap: 1.125rem;
  border: 1px solid var(--soft-line);
  border-radius: 0.625rem;
  background: var(--surface-raised);
  padding: 1.125rem 1.25rem 1.25rem;
  min-width: 0;
}

.job-transcript-heading {
  align-items: center;
}

.job-transcript-meta {
  margin: 0.1875rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1rem;
}

.job-transcript-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

.job-transcript-body,
.job-list > li {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.job-transcript-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 0.375rem 0;
  border-top: 1px solid var(--line);
}

.job-transcript-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.job-transcript-time {
  color: var(--ink-faint);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.125rem;
  padding-top: 0.125rem;
  text-decoration: none;
}

a.job-transcript-time:hover,
a.job-transcript-time:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  outline: 0;
}

.job-transcript-content {
  min-width: 0;
}

.job-transcript-speaker {
  display: block;
  margin: 0 0 0.125rem;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 560;
  line-height: 1rem;
}

.job-transcript-text {
  margin: 0;
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.45rem;
  overflow-wrap: anywhere;
}

.job-transcript-row.is-plain {
  grid-template-columns: 1fr;
}

.job-transcript-row.is-plain .job-transcript-text {
  color: var(--ink-muted);
}

@media screen and (max-width: 680px) {
  .job-transcript-card {
    padding: 0.875rem;
  }

  .job-transcript-row {
    grid-template-columns: 3.75rem minmax(0, 1fr);
    gap: 0.75rem;
  }
}

.research-table-activity th:nth-child(1),
.research-table-activity td:nth-child(1) {
  width: 7.25rem;
}

.research-table-activity th:nth-child(2),
.research-table-activity td:nth-child(2) {
  width: 5.75rem;
}

.research-table-activity th:nth-child(3),
.research-table-activity td:nth-child(3) {
  width: auto;
  white-space: normal;
}

.research-table-activity td {
  vertical-align: top;
}

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

.research-table-activity tbody tr td:nth-child(1),
.research-table-activity tbody tr td:nth-child(2) {
  color: var(--ink-faint);
}

.research-table-activity tbody tr td:nth-child(3) {
  color: var(--ink);
}
