/* GENERATED by apps/web/scripts/bundle-page-css.mjs — do not edit.
 * Source: apps/web/public/styles/pages/job-page.css
 * Flattened from 104 @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 the interactive run viewer.
 */
/*
 * 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;
  }
}

.chat-composer-shell,
.home-start-composer,
.job-run-chat-composer,
.job-chat-composer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    0 0.625rem 1.75rem rgba(0, 0, 0, 0.045),
    0 0.0625rem 0.125rem rgba(0, 0, 0, 0.03);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    opacity 140ms ease,
    transform 170ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

.chat-composer-shell:focus-within,
.job-run-chat-composer:focus-within,
.job-chat-composer:focus-within {
  border-color: #111111;
  box-shadow:
    inset 0 0 0 1px #111111,
    0 0.75rem 2rem rgba(0, 0, 0, 0.055),
    0 0.0625rem 0.125rem rgba(0, 0, 0, 0.035);
}

.home-start-composer:focus-within {
  border-color: #111111;
  box-shadow:
    inset 0 0 0 1px #111111,
    0 0.75rem 2rem rgba(0, 0, 0, 0.055),
    0 0.0625rem 0.125rem rgba(0, 0, 0, 0.035);
}

.home-start-composer {
  position: relative;
  overflow: hidden;
  min-height: 2.875rem;
  padding: 0.375rem 0.4375rem 0.375rem 0.75rem;
  view-transition-name: researcher-chat-composer;
  contain: layout;
}

.home-start-composer.has-youtube-intent {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
}

.chat-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  width: min(100%, 56rem);
  margin: 0.5rem auto 0;
}

.chat-attachment-chip {
  appearance: none;
  max-width: 16rem;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.025);
  color: rgba(0, 0, 0, 0.64);
  padding: 0.25rem 0.625rem;
  font: inherit;
  font-size: 0.75rem;
  line-height: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.chat-attachment-chip:hover {
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(0, 0, 0, 0.04);
  color: #111111;
}

.home-start-composer button {
  appearance: none;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0;
  font: inherit;
}

.home-start-composer > button:first-child {
  width: 1.75rem;
  height: 1.75rem;
  min-width: 1.75rem;
  min-height: 1.75rem;
  border: 0;
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.45);
  font-size: 1.125rem;
  line-height: 1;
  outline: none;
}

.home-start-composer > button:first-child:hover {
  background: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.65);
}

.home-start-composer > button:first-child:disabled {
  cursor: progress;
  opacity: 0.8;
}

.home-start-composer input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #111111;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding: 0.125rem 0;
}

.home-start-composer input:focus {
  outline: 0;
}

.home-start-composer input::placeholder {
  color: rgba(0, 0, 0, 0.44);
}

.home-start-submit {
  width: 2rem;
  height: 2rem;
  background: #050505;
  color: #ffffff;
  cursor: pointer;
  transition:
    background 140ms ease,
    transform 140ms ease;
}

.home-start-submit:hover {
  background: #111111;
  transform: translateY(-0.03125rem);
}

.home-start-submit:disabled {
  background: #e9e9e9;
  color: rgba(0, 0, 0, 0.36);
  cursor: default;
  transform: none;
}

.home-start-submit.is-busy:disabled {
  background: #111111;
  color: #ffffff;
  cursor: progress;
  opacity: 1;
}

.home-start-submit svg {
  width: 1rem;
  height: 1rem;
}

.home-start-submit-spinner {
  width: 0.875rem;
  height: 0.875rem;
  border: 0.125rem solid rgba(255, 255, 255, 0.34);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: home-start-spin 700ms linear infinite;
}

.home-start-intent-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  min-height: 1.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.025);
  color: rgba(0, 0, 0, 0.58);
  padding: 0.125rem 0.5625rem;
  font-size: 0.75rem;
  font-weight: 560;
  line-height: 1;
  white-space: nowrap;
}

.home-start-intent-pill.is-starting {
  border-color: rgba(0, 0, 0, 0.13);
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.72);
}

.home-start-intent-pill svg {
  width: 1rem;
  height: 1rem;
}

.home-start-status-dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 999px;
  background: #111111;
  animation: home-start-pulse 900ms ease-in-out infinite;
}

.home-start-chat-button {
  min-width: 2.75rem;
  min-height: 1.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: rgba(0, 0, 0, 0.02);
  color: rgba(0, 0, 0, 0.58);
  padding: 0 0.625rem !important;
  font-size: 0.75rem !important;
  font-weight: 560;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.home-start-chat-button:hover,
.home-start-chat-button:focus-visible {
  border-color: rgba(0, 0, 0, 0.16) !important;
  background: rgba(0, 0, 0, 0.04);
  color: #111111;
}

.home-start-composer.is-submitting {
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow:
    0 0.75rem 2rem rgba(0, 0, 0, 0.06),
    0 0.0625rem 0.125rem rgba(0, 0, 0, 0.035);
  opacity: 0.92;
  transform: translateY(-0.0625rem);
}

@keyframes home-start-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes home-start-pulse {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-start-status-dot,
  .home-start-submit-spinner {
    animation: none;
  }
}

.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.is-run-loading #job-title,
.entity-page.is-entity-loading #entity-name,
.entity-page.is-entity-loading #entity-kind,
.entity-page.is-entity-loading #entity-summary,
.job-value-loading,
.job-page.is-run-loading #job-status,
.entity-page.is-entity-loading #entity-status {
  position: relative;
  color: transparent;
  user-select: none;
}

.job-page.is-run-loading #job-title,
.entity-page.is-entity-loading #entity-name {
  width: min(30rem, 72vw);
  max-width: 100%;
}

.entity-page.is-entity-loading #entity-kind {
  display: inline-flex;
  width: 8rem;
  min-height: 1rem;
}

.entity-page.is-entity-loading #entity-summary {
  display: block;
  width: min(46rem, 100%);
  min-height: 2.7rem;
}

.job-value-loading {
  min-height: 1.125rem;
}

.job-page.is-run-loading #job-status,
.entity-page.is-entity-loading #entity-status {
  width: 4.75rem;
  border-color: var(--soft-line);
  background: #ffffff;
  animation: none;
}

.job-page.is-run-loading #job-title::after,
.entity-page.is-entity-loading #entity-name::after,
.entity-page.is-entity-loading #entity-kind::after,
.entity-page.is-entity-loading #entity-summary::before,
.entity-page.is-entity-loading #entity-summary::after,
.job-value-loading::after,
.job-page.is-run-loading #job-status::after,
.entity-page.is-entity-loading #entity-status::after,
.research-skeleton-line,
.research-table-loading-row td::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  max-width: 100%;
  height: 0.75rem;
  border-radius: 0.25rem;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.055) 0%,
    rgba(0, 0, 0, 0.095) 45%,
    rgba(0, 0, 0, 0.055) 100%
  );
  background-size: 180% 100%;
  transform: translateY(-50%);
  animation: job-skeleton 1.15s ease-in-out infinite;
}

.job-page.is-run-loading #job-title::after,
.entity-page.is-entity-loading #entity-name::after {
  height: 1.35rem;
}

.entity-page.is-entity-loading #entity-summary::before {
  top: 0.35rem;
  width: 100%;
  transform: none;
}

.entity-page.is-entity-loading #entity-summary::after {
  top: 1.8rem;
  width: min(36rem, 76%);
  transform: none;
}

.job-page.is-run-loading #job-status::after,
.entity-page.is-entity-loading #entity-status::after {
  inset: 0;
  height: auto;
  border-radius: inherit;
  transform: none;
}

.research-skeleton-stack {
  display: grid;
  gap: 0.4rem;
  width: min(46rem, 100%);
}

.research-skeleton-line {
  display: block;
  width: 100%;
  height: 0.75rem;
  position: relative;
  left: auto;
  top: auto;
  transform: none;
}

.research-skeleton-copy.is-medium {
  width: 74%;
}

.research-skeleton-copy.is-short {
  width: 48%;
}

.research-table-loading-row td {
  position: relative;
  color: transparent;
  user-select: none;
}

.research-table-loading-row td::after {
  width: var(--research-skeleton-width, 64%);
}

@keyframes job-skeleton {
  0% {
    background-position: 160% 0;
  }
  100% {
    background-position: -160% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entity-page.is-entity-loading #entity-name::after,
  .entity-page.is-entity-loading #entity-kind::after,
  .entity-page.is-entity-loading #entity-summary::before,
  .entity-page.is-entity-loading #entity-summary::after,
  .entity-page.is-entity-loading #entity-status::after,
  .research-skeleton-line,
  .research-table-loading-row td::after {
    animation: none;
  }
}

.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: #ffffff;
  color: rgba(0, 0, 0, 0.6);
  padding: 0.1875rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  letter-spacing: 0;
  text-transform: none;
  cursor: default;
}

.agent-channel-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem;
}

.agent-channel-button {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.625rem;
  min-width: 0;
  min-height: 4rem;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  padding: 0.75rem;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.agent-channel-button:hover {
  border-color: rgba(0, 0, 0, 0.2);
  background: #fafafa;
  transform: translateY(-1px);
}

.agent-channel-button:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
}

.agent-channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 720;
  line-height: 1rem;
  overflow: hidden;
}

.agent-channel-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.agent-channel-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.agent-channel-icon path:not([fill="none"]) {
  fill: currentColor;
}

.agent-channel-button strong,
.agent-channel-button small {
  display: block;
}

.agent-channel-button strong {
  color: #111111;
  font-size: 0.875rem;
  font-weight: 620;
  line-height: 1.25rem;
}

.agent-channel-button small {
  color: rgba(0, 0, 0, 0.52);
  display: grid;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  min-width: 5.75rem;
  position: relative;
  white-space: nowrap;
}

.agent-copy-button .copy-label,
.agent-copy-button .copied-label,
.agent-copy-button[data-copied="true"] .copy-label {
  grid-area: 1 / 1;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.agent-copy-button .copy-label {
  color: rgba(0, 0, 0, 0.52);
  opacity: 1;
  transform: translateY(0);
}

.agent-copy-button .copied-label {
  color: var(--success-color);
  opacity: 0;
  transform: translateY(0.25rem);
  pointer-events: none;
}

.agent-copy-button[data-copied="true"] .copy-label {
  opacity: 0;
  transform: translateY(-0.25rem);
}

.agent-copy-button[data-copied="true"] .copied-label {
  position: relative;
  color: var(--success-color);
  opacity: 1;
  transform: translateY(0);
}

.agent-copy-button[data-copied="true"] {
  border-color: var(--success-line);
  background:
    linear-gradient(135deg, var(--success-tint), rgba(255, 255, 255, 0) 66%),
    #ffffff;
}

.agent-copy-button[data-copied="true"] .copied-label::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.65rem;
  margin-right: 0.35rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(42deg) translateY(-0.05rem);
  transform-origin: center;
}

.hermes-channel-button {
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.04), rgba(255, 255, 255, 0) 62%),
    #ffffff;
}

.hermes-channel-button .agent-channel-icon {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  color: #050505;
}

.openclaw-channel-button {
  background:
    linear-gradient(135deg, rgba(239, 0, 18, 0.1), rgba(255, 255, 255, 0) 62%),
    #ffffff;
}

.openclaw-channel-button .agent-channel-icon {
  border: 1px solid rgba(239, 0, 18, 0.2);
  background: #f10618;
  color: #ffffff;
}

.other-agents-channel-button {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.035), rgba(255, 255, 255, 0) 62%),
    #ffffff;
}

.other-agents-channel-button .agent-channel-icon {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  color: #111111;
}

.other-agents-icon {
  position: relative;
  overflow: visible;
}

.agent-mini-icon {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.agent-mini-gpt {
  left: 0.0625rem;
  top: 0.125rem;
}

.agent-mini-anthropic {
  right: 0.0625rem;
  top: 0.125rem;
}

.agent-mini-pi {
  left: 50%;
  bottom: 0.0625rem;
  transform: translateX(-50%);
}

.discord-channel-button {
  background: rgba(88, 101, 242, 0.06);
}

.discord-channel-button svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  color: #5865f2;
}

.discord-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: fit-content;
  min-height: 2.75rem;
  border-radius: 8px;
  background: #5865f2;
  color: #ffffff;
  padding: 0.6875rem 1rem;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.25rem;
  text-decoration: none;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.discord-button:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

.discord-button:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
}

.discord-button svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

.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: rgba(0, 0, 0, 0.035);
  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: #111111;
  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: rgba(0, 0, 0, 0.28);
}

.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: rgba(0, 0, 0, 0.24);
  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: rgba(0, 0, 0, 0.72);
  text-decoration-color: rgba(0, 0, 0, 0.44);
  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: rgba(0, 0, 0, 0.46);
  cursor: pointer;
  position: relative;
  transition: background 120ms ease, color 120ms ease;
}

.job-kicker-copy:hover {
  background: rgba(0, 0, 0, 0.045);
  color: rgba(0, 0, 0, 0.78);
}

.job-kicker-copy:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.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: rgba(0, 0, 0, 0.46);
  font-size: 0.75rem;
}

.job-parent-run-inline {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.375rem;
  color: rgba(0, 0, 0, 0.56);
  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: rgba(0, 0, 0, 0.42);
}

.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: rgba(0, 0, 0, 0.26);
  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: rgba(0, 0, 0, 0.8);
  text-decoration-color: rgba(0, 0, 0, 0.48);
}

.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 rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: transparent;
  color: rgba(0, 0, 0, 0.68);
  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: rgba(0, 0, 0, 0.24);
  color: #111111;
}

.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: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.72);
  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: #ffffff;
  color: rgba(0, 0, 0, 0.6);
  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: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.76);
  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: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
  color: rgba(0, 0, 0, 0.58);
}

.status-succeeded {
  border-color: rgba(101, 196, 102, 0.3);
  background: rgba(101, 196, 102, 0.1);
  color: var(--success-color);
}

.status-warning {
  border-color: rgba(180, 83, 9, 0.22);
  background: rgba(245, 158, 11, 0.08);
  color: #92400e;
}

.status-running,
.status-loading,
.status-generating-report {
  border-color: rgba(36, 128, 237, 0.22);
  background: rgba(36, 128, 237, 0.07);
  color: #1d4ed8;
}

.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: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.035);
  color: rgba(0, 0, 0, 0.58);
}

.status-awaiting-funding {
  border-color: rgba(180, 83, 9, 0.25);
  background: rgba(245, 158, 11, 0.1);
  color: #92400e;
}

.job-message {
  margin-top: 1rem;
  border: 1px solid var(--soft-line);
  border-radius: 0.5rem;
  background: #ffffff;
  color: rgba(0, 0, 0, 0.68);
  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: rgba(180, 83, 9, 0.2);
  background: rgba(245, 158, 11, 0.06);
  color: #92400e;
}

.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: #ffffff;
  color: rgba(0, 0, 0, 0.68);
}

.job-funding-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  border: 1px dashed rgba(180, 83, 9, 0.3);
  border-radius: 0.625rem;
  background: rgba(245, 158, 11, 0.06);
  color: #92400e;
  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: rgba(146, 64, 14, 0.8);
}

.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 rgba(180, 83, 9, 0.35);
  border-radius: 999px;
  background: #92400e;
  color: #ffffff;
  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: #7c3a0c;
}

.job-funding-panel-resume {
  appearance: none;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(180, 83, 9, 0.35);
  border-radius: 999px;
  background: transparent;
  color: #92400e;
  padding: 0.3125rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 560;
  line-height: 1.25rem;
  cursor: pointer;
}

.job-funding-panel-resume:hover {
  background: rgba(245, 158, 11, 0.12);
}

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

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

.job-funding-dialog-header {
  align-items: flex-start;
}

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

.job-funding-dialog-eyebrow {
  color: rgba(0, 0, 0, 0.42);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 0.875rem;
  text-transform: uppercase;
}

.job-funding-dialog-header h2 {
  margin-top: 0.125rem;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.25rem;
}

.job-funding-dialog-content {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.job-funding-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--soft-line);
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0.625rem 0.75rem;
}

.job-funding-balance-row span {
  color: rgba(0, 0, 0, 0.48);
  font-size: 0.75rem;
  font-weight: 560;
  line-height: 1rem;
}

.job-funding-balance-row strong {
  color: #111111;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.25rem;
}

.job-funding-dialog-status,
.job-funding-address-description,
.job-funding-dialog-note {
  color: rgba(0, 0, 0, 0.62);
  font-size: 0.8125rem;
  font-weight: 450;
  line-height: 1.25rem;
}

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

.job-funding-chain-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.job-funding-chain-button {
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: #ffffff;
  color: rgba(0, 0, 0, 0.58);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 520;
  line-height: 1rem;
  padding: 0.375rem 0.625rem;
  cursor: pointer;
}

.job-funding-chain-button:hover {
  border-color: rgba(0, 0, 0, 0.14);
  color: #111111;
}

.job-funding-chain-button.is-active {
  border-color: #111111;
  color: #111111;
}

.job-funding-qr-frame {
  width: fit-content;
  border: 1px solid var(--soft-line);
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0.75rem;
}

.job-funding-qr-frame img {
  display: block;
}

.job-funding-address-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  border: 1px solid var(--soft-line);
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0.5rem 0.625rem;
}

.job-funding-address-row code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-code);
  font-size: 0.75rem;
}

.job-funding-address-row button {
  flex-shrink: 0;
  border: 1px solid var(--soft-line);
  border-radius: 0.375rem;
  background: #ffffff;
  color: rgba(0, 0, 0, 0.62);
  font: inherit;
  font-size: 0.75rem;
  line-height: 1rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.job-funding-dialog-actions {
  gap: 0.5rem;
}

.job-funding-dialog .job-dialog-button {
  min-height: 2.125rem;
  padding: 0.4375rem 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: rgba(0, 0, 0, 0.015);
  overflow: hidden;
}

.job-media-header {
  display: grid;
  grid-template-columns: minmax(0, 27.5rem) minmax(18rem, 25rem);
  justify-content: center;
  gap: 1.75rem;
  align-items: center;
  width: min(100%, 54.25rem);
  margin: 1.25rem auto 1.5rem;
  border: 0;
  background: transparent;
  overflow: visible;
}

.job-media-header + .job-summary {
  margin-top: 0;
}

.job-media-thumbnail {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  min-height: 13.25rem;
  overflow: hidden;
  border-radius: 0.625rem;
  background: rgba(0, 0, 0, 0.035);
  color: #ff0033;
  text-decoration: none;
}

.job-media-thumbnail img,
.job-media-thumbnail iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 13.25rem;
  object-fit: cover;
  border: 0;
}

.job-media-thumbnail iframe {
  aspect-ratio: 16 / 9;
}

.job-media-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.08);
  opacity: 0;
  transition: opacity 140ms ease;
}

.job-media-thumbnail:hover .job-media-play,
.job-media-thumbnail:focus-visible .job-media-play {
  opacity: 1;
}

.job-media-thumbnail.is-playing .job-media-play {
  display: none;
}

.job-media-play .job-youtube-icon {
  width: 2.5rem;
  height: 2.5rem;
  filter: drop-shadow(0 0.25rem 0.625rem rgba(0, 0, 0, 0.18));
}

.job-media-body {
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.375rem;
}

.job-media-eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 560;
  line-height: 1rem;
}

.job-media-eyebrow .job-youtube-icon {
  width: 0.9375rem;
  height: 0.9375rem;
}

.job-media-body h2 {
  margin: 0;
  color: #111111;
  font-size: 1.125rem;
  font-weight: 560;
  line-height: 1.35rem;
  letter-spacing: 0;
}

.job-media-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.125rem;
}

.job-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding-top: 0.375rem;
}

@media screen and (max-width: 720px) {
  .job-media-header {
    grid-template-columns: 1fr;
    gap: 0.875rem;
    width: 100%;
    margin: 1.5rem auto;
  }

  .job-media-thumbnail,
  .job-media-thumbnail img,
  .job-media-thumbnail iframe {
    min-height: 11.5rem;
  }
}

.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: rgba(0, 0, 0, 0.84);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.0625rem;
}

.job-cost-summary {
  display: grid;
  align-content: start;
  gap: 0.1875rem;
  min-width: 0;
}

.job-cost-breakdown-cell {
  cursor: pointer;
  transition: background-color 120ms ease, box-shadow 120ms ease;
}

.job-cost-breakdown-cell:hover {
  background: rgba(0, 0, 0, 0.018);
}

.job-cost-breakdown-cell:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid rgba(59, 130, 246, 0.36);
  outline-offset: -2px;
}

.job-cost-summary-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-cost-breakdown-preview {
  display: block;
  width: min(6.5rem, 100%);
  height: 0.375rem;
  border-radius: 999px;
  pointer-events: none;
}

.job-cost-breakdown-bar {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.06);
}

.job-cost-breakdown-segment {
  display: block;
  flex: 0 0 var(--cost-share);
  width: var(--cost-share);
  min-width: 0;
  background: var(--cost-color, #94a3b8);
}

.job-dialog.job-cost-dialog {
  width: min(22rem, calc(100vw - 2rem));
  max-width: 22rem;
  border-radius: 0.875rem;
  box-shadow: 0 24px 64px -18px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
}

@keyframes job-cost-dialog-in {
  from {
    opacity: 0;
    transform: translateY(5px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes job-cost-dialog-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(4px) scale(0.99);
  }
}

@keyframes job-cost-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes job-cost-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

.job-cost-dialog[open] {
  animation: job-cost-dialog-in 180ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.job-cost-dialog[open]::backdrop {
  animation: job-cost-backdrop-in 180ms ease-out both;
}

.job-cost-dialog[data-state="closing"] {
  animation: job-cost-dialog-out 150ms cubic-bezier(0.4, 0, 1, 1) both;
}

.job-cost-dialog[data-state="closing"]::backdrop {
  animation: job-cost-backdrop-out 150ms ease-in both;
}

.job-cost-dialog-header {
  align-items: flex-start;
  padding: 0.875rem 0.9375rem 0.75rem;
}

.job-cost-dialog-header h2,
.job-cost-dialog-header p {
  margin: 0;
}

.job-cost-dialog-header h2 {
  color: #111111;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.25rem;
}

.job-cost-dialog-header p {
  margin-top: 0.125rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1rem;
}

.job-cost-dialog-content {
  gap: 0.6875rem;
  padding: 0.8125rem 0.9375rem 1rem;
}

.job-cost-breakdown-details,
.job-cost-breakdown-list {
  display: grid;
  gap: 0.6875rem;
}

.job-cost-breakdown-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: #111111;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.job-cost-breakdown-total strong {
  font-weight: 650;
}

.job-cost-breakdown-row {
  display: grid;
  gap: 0.3125rem;
  color: rgba(0, 0, 0, 0.72);
  font-size: 0.8125rem;
  line-height: 1.125rem;
}

.job-cost-breakdown-row.is-empty {
  color: rgba(0, 0, 0, 0.48);
}

.job-cost-breakdown-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.job-cost-breakdown-row-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  min-width: 0;
}

.job-cost-breakdown-dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 999px;
  flex: 0 0 auto;
  background: var(--cost-color, #94a3b8);
}

.job-cost-breakdown-row-meter {
  height: 0.375rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.065);
}

.job-cost-breakdown-row-meter span {
  display: block;
  width: var(--cost-share);
  height: 100%;
  border-radius: inherit;
  background: var(--cost-color, #94a3b8);
  transform: scaleX(0);
  transform-origin: left center;
  animation: job-cost-meter-fill 360ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: var(--cost-row-delay);
}

.job-cost-breakdown-row-value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.375rem;
  flex-shrink: 0;
}

.job-cost-breakdown-row-value strong {
  color: #111111;
  font-weight: 600;
}

.job-cost-breakdown-row.is-empty .job-cost-breakdown-row-value strong {
  color: rgba(0, 0, 0, 0.5);
}

.job-cost-breakdown-row-value span {
  color: var(--muted);
  font-size: 0.6875rem;
  line-height: 0.875rem;
}

@keyframes job-cost-meter-fill {
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .job-cost-dialog[open],
  .job-cost-dialog[open]::backdrop,
  .job-cost-dialog[data-state="closing"],
  .job-cost-dialog[data-state="closing"]::backdrop,
  .job-cost-breakdown-row-meter span {
    animation-duration: 1ms;
  }
}

.job-icon-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.42);
  width: 1.625rem;
  height: 1.625rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}

.job-icon-button:hover {
  color: #111111;
  background: rgba(0, 0, 0, 0.04);
}

.job-icon-button svg {
  width: 1.0625rem;
  height: 1.0625rem;
}

.job-icon-check {
  display: none;
}

/* Unified action buttons — circle icons with consistent sizing */
.job-action-button {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: transparent;
  color: rgba(0, 0, 0, 0.48);
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 120ms ease, background 120ms ease, border-color 120ms ease;
}

.job-action-button:hover,
.job-action-report:hover {
  color: #111111;
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.18);
}

.job-action-button:disabled {
  cursor: default;
  opacity: 0.35;
  pointer-events: none;
}

.job-action-button[data-pending="true"] {
  opacity: 0.72;
}

.job-action-button svg {
  width: 0.9375rem;
  height: 0.9375rem;
}

.job-action-button[data-copied="true"] .job-icon-copy,
.job-icon-button[data-copied="true"] .job-icon-copy {
  display: none;
}

.job-action-button[data-copied="true"] .job-icon-check,
.job-icon-button[data-copied="true"] .job-icon-check {
  display: block;
  color: #16a34a;
}

.job-action-button[data-copied="true"] {
  border-color: rgba(22, 163, 74, 0.2);
}

.job-action-start {
  color: rgba(22, 101, 52, 0.72);
  border-color: rgba(22, 101, 52, 0.18);
}

.job-action-start:hover {
  color: #166534;
  background: rgba(22, 101, 52, 0.06);
  border-color: rgba(22, 101, 52, 0.28);
}

.job-action-report {
  color: rgba(0, 0, 0, 0.48);
  border-color: rgba(0, 0, 0, 0.1);
}

.job-action-neutral {
  color: rgba(0, 0, 0, 0.48);
}

.job-action-neutral:hover {
  color: #111111;
}

.job-action-danger {
  color: rgba(0, 0, 0, 0.36);
}

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

.job-progress {
  position: relative;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.job-progress.has-active-loop {
  padding-top: 2.125rem;
}

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

.job-progress li {
  display: block;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 0.9375rem;
  letter-spacing: 0;
}

.job-progress-step-button {
  appearance: none;
  display: grid;
  grid-template-rows: 1px auto;
  gap: 0.4375rem;
  min-width: 0;
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.job-progress-step-button:focus-visible {
  outline: 0;
}

.job-progress-step-button:focus-visible .job-progress-track {
  box-shadow: 0 0 0 0.1875rem rgba(36, 128, 237, 0.1);
}

.job-progress-step-button:hover .job-progress-track {
  background: rgba(0, 0, 0, 0.2);
}

.job-progress-track {
  display: block;
  width: 100%;
  height: 1px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
  transition: background 160ms ease;
}

.job-progress-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow: hidden;
  white-space: nowrap;
}

.job-progress-number {
  display: none;
}

.job-progress-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-progress-loop-count {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(36, 128, 237, 0.07);
  color: rgba(29, 78, 216, 0.72);
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 0.8125rem;
  padding: 0 0.25rem;
}

.job-progress-loop {
  position: absolute;
  top: 0.875rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4375rem;
  color: rgba(0, 0, 0, 0.52);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 0.9375rem;
}

.job-progress-loop[hidden] {
  display: none;
}

.job-progress-loop-marker {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(29, 78, 216, 0.2);
  background: rgba(36, 128, 237, 0.035);
  color: rgba(29, 78, 216, 0.72);
  padding: 0.03125rem 0.3125rem;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 0.8125rem;
}

.job-progress-loop-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-progress-loop-arc {
  position: absolute;
  top: 0.125rem;
  height: 0.625rem;
  color: rgba(29, 78, 216, 0.3);
  pointer-events: none;
}

.job-progress-loop-arc[hidden] {
  display: none;
}

.job-progress-loop-arc::before {
  content: "";
  position: absolute;
  inset: 0 0 0.1875rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  border-left: 1px solid currentColor;
  border-radius: 0.625rem 0.625rem 0 0;
}

.job-progress-loop-arc::after {
  content: "";
  position: absolute;
  left: -0.125rem;
  bottom: 0.03125rem;
  width: 0.25rem;
  height: 0.25rem;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.job-progress li.is-active {
  color: #1d4ed8;
}

.job-progress li.is-active .job-progress-track,
.job-progress li.is-complete .job-progress-track {
  background: #111111;
}

.job-progress li.is-loop-origin:not(.is-active) {
  color: rgba(29, 78, 216, 0.72);
}

.job-progress li.is-loop-target:not(.is-active) {
  color: rgba(29, 78, 216, 0.62);
}

.job-progress li.is-loop-origin .job-progress-track,
.job-progress li.is-loop-target .job-progress-track {
  background: rgba(29, 78, 216, 0.46);
}

.job-progress.is-running li.is-active .job-progress-track {
  position: relative;
  overflow: hidden;
  background: rgba(36, 128, 237, 0.12);
}

.job-progress.is-running li.is-active .job-progress-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(36, 128, 237, 0.14) 0%,
    rgba(36, 128, 237, 0.48) 22%,
    #1d4ed8 50%,
    rgba(36, 128, 237, 0.48) 78%,
    rgba(36, 128, 237, 0.14) 100%
  );
  background-size: 180% 100%;
  animation: job-running-track 1.2s linear infinite;
}

.job-progress.is-succeeded li {
  color: rgba(21, 128, 61, 0.58);
}

.job-progress.is-succeeded li.is-active {
  color: var(--success-color);
}

.job-progress.is-succeeded li.is-active .job-progress-track,
.job-progress.is-succeeded li.is-complete .job-progress-track {
  background: var(--success-color);
}

.job-progress.is-paused li.is-active {
  color: rgba(0, 0, 0, 0.44);
}

.job-progress.is-paused li.is-active .job-progress-track {
  background: rgba(0, 0, 0, 0.18);
}

.job-progress.is-failed li.is-active {
  color: var(--danger-color);
}

.job-progress.is-failed li.is-active .job-progress-track {
  background: var(--danger-color);
}

@keyframes job-running-pill {
  0%,
  100% {
    border-color: rgba(36, 128, 237, 0.22);
    background: rgba(36, 128, 237, 0.07);
    box-shadow: 0 0 0 rgba(36, 128, 237, 0);
  }
  50% {
    border-color: rgba(36, 128, 237, 0.32);
    background: rgba(36, 128, 237, 0.12);
    box-shadow: 0 0 0 0.2rem rgba(36, 128, 237, 0.06);
  }
}

@keyframes job-running-track {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-running,
  .status-loading,
  .job-page.is-run-loading #job-title::after,
  .job-value-loading::after,
  .job-page.is-run-loading #job-status::after,
  .job-progress.is-running li.is-active .job-progress-track::after {
    animation: none;
  }
}

@media (max-width: 680px) {
  .job-progress.has-active-loop {
    padding-top: 0.75rem;
  }

  .job-progress-loop {
    position: static;
    justify-content: flex-start;
    width: fit-content;
    max-width: 100%;
    margin-top: 0.5rem;
  }

  .job-progress-loop-arc {
    display: none;
  }
}

.job-primary-tabs {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  margin-top: 1.375rem;
  border-bottom: 1px solid var(--soft-line);
}

.job-primary-tab {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  position: relative;
  padding: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 480;
  line-height: 1.25rem;
  letter-spacing: -0.00563rem;
  cursor: pointer;
  transition: color 160ms ease;
}

.job-primary-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: transparent;
  transition: background 160ms ease;
}

.job-primary-tab:hover {
  color: rgba(0, 0, 0, 0.74);
}

.job-primary-tab:hover::after {
  background: #d9d9d9;
}

.job-primary-tab.is-active {
  color: #111111;
  font-weight: 560;
}

.job-primary-tab.is-active::after {
  background: #111111;
}

.job-view {
  display: grid;
  gap: 1.625rem;
  padding-top: 1.625rem;
  min-width: 0;
}

@keyframes job-view-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

[data-view-panel="report"][data-reveal] {
  animation: job-view-fade-in 320ms ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  [data-view-panel="report"][data-reveal] {
    animation: none;
  }
}

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

.job-prompt-section {
  margin-top: -1px;
  padding-top: 0;
  border: 1px solid var(--soft-line);
  border-radius: 0 0 0.625rem 0.625rem;
  background: rgba(0, 0, 0, 0.015);
  overflow: hidden;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.job-prompt-section:hover {
  border-color: var(--soft-line);
  background: rgba(0, 0, 0, 0.015);
}

.job-prompt-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 1.875rem;
  padding: 0.25rem 0.75rem 0.21875rem;
}

.job-prompt-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  min-width: 0;
  flex: 1 1 auto;
  padding: 0;
  display: flex;
  align-items: center;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.job-prompt-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 0.1875rem;
  min-width: 0;
  flex: 1 1 auto;
}

.job-prompt-toggle:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.25);
  outline-offset: 0.125rem;
  border-radius: 0.25rem;
}

.job-prompt-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  flex: 0 0 auto;
}

.job-prompt-copy,
.job-prompt-chevron-button {
  width: 1.5rem;
  height: 1.5rem;
}

.job-prompt-copy svg,
.job-prompt-chevron-button svg {
  width: 0.875rem;
  height: 0.875rem;
}

.job-prompt-copy .job-icon-check {
  display: none;
}

.job-prompt-copy.job-tooltip-button::after {
  right: 0;
  bottom: calc(100% + 0.375rem);
  width: max-content;
  max-width: min(12rem, calc(100vw - 2rem));
  border-radius: 0.5rem;
  padding: 0.375rem 0.5rem;
  font-size: 0.71875rem;
  line-height: 1rem;
  white-space: nowrap;
}

.job-prompt-chevron {
  display: inline-flex;
  color: var(--muted);
  transition: transform 170ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

.job-prompt-chevron svg {
  width: 0.875rem;
  height: 0.875rem;
  display: block;
}

.job-prompt-section.is-expanded .job-prompt-chevron {
  transform: rotate(180deg);
}

.job-prompt-body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 190ms cubic-bezier(0.215, 0.61, 0.355, 1),
    opacity 130ms ease-out;
}

.job-prompt-section.is-expanded .job-prompt-body {
  grid-template-rows: 1fr;
  opacity: 1;
}

.job-prompt-body-inner {
  min-height: 0;
  overflow: hidden;
}

.job-prompt-body-content {
  display: grid;
  gap: 0.1875rem;
  padding: 0 0.75rem 0.5rem;
}

.job-page .job-prompt-topic {
  margin: 0;
  color: rgba(0, 0, 0, 0.84);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.1875rem;
  letter-spacing: 0;
  text-wrap: pretty;
}

.job-page .job-prompt-instructions {
  margin: 0;
  color: rgba(0, 0, 0, 0.72);
  font-size: 0.8125rem;
  line-height: 1.1875rem;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (prefers-reduced-motion: reduce) {
  .job-prompt-body,
  .job-prompt-chevron {
    transition: none;
  }
}

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

.job-page .job-section .research-markdown-list {
  display: grid;
  gap: 0.75rem;
  max-width: none;
  margin: 0.25rem 0 1rem;
  padding-left: 0;
  list-style: none;
}

.job-page .job-section .research-markdown-list > li {
  position: relative;
  padding-left: 1.25rem;
}

.job-page .job-section .research-markdown-list > li::marker {
  content: "";
}

.job-page .job-section ul.research-markdown-list > li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.72em;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
}

.job-page .job-section ol.research-markdown-list {
  counter-reset: research-markdown-list;
}

.job-page .job-section ol.research-markdown-list > li {
  counter-increment: research-markdown-list;
  padding-left: 1.5rem;
}

.job-page .job-section ol.research-markdown-list > li::before {
  content: counter(research-markdown-list) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(0, 0, 0, 0.42);
  font-size: 0.75rem;
  line-height: 1.375rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow-wrap: normal;
}

.job-page .job-section .research-markdown-quote-item,
.job-page .job-section .research-markdown-evidence-item {
  color: #111111;
  list-style: none;
  padding-left: 0;
}

.job-page .job-section .research-markdown-quote-item::marker {
  content: "";
}

.job-page .job-section .research-markdown-quote-item::before,
.job-page .job-section .research-markdown-evidence-item::before {
  content: none !important;
}

.job-page .job-section .research-markdown-quote-group {
  display: block;
  max-width: none;
  margin: 0.125rem 0 1.375rem;
}

.job-page .job-section .research-markdown-quote-card {
  position: relative;
  display: grid;
  gap: 0.5rem;
  margin: 0 0 0.375rem;
  padding: 1.375rem 1.25rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.065);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  font-size: 0.875rem;
  line-height: 1.375rem;
}

.job-page .job-section .research-markdown-evidence-card {
  gap: 0.5rem;
  padding: 1.375rem 1.25rem 1.25rem;
}

.job-page .job-section .research-markdown-quote-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4375rem;
  min-width: 0;
  margin-bottom: 0.0625rem;
  color: rgba(0, 0, 0, 0.42);
  font-size: 0.71875rem;
  line-height: 1rem;
}

.job-page .job-section .research-markdown-quote-attribution {
  margin-top: 0.3125rem;
  margin-bottom: 0;
}

.job-page .job-section .research-markdown-quote-copy {
  appearance: none;
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  width: 1.625rem;
  height: 1.625rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(0, 0, 0, 0.38);
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 140ms ease,
    color 140ms ease,
    background-color 140ms ease;
}

.job-page .job-section .research-markdown-quote-card:hover .research-markdown-quote-copy,
.job-page .job-section .research-markdown-quote-card:focus-within .research-markdown-quote-copy,
.job-page .job-section .research-markdown-quote-copy[data-copied="true"] {
  opacity: 1;
}

@media (hover: none) {
  .job-page .job-section .research-markdown-quote-copy {
    opacity: 1;
  }
}

.job-page .job-section .research-markdown-quote-copy:hover {
  color: #111111;
  background: rgba(0, 0, 0, 0.05);
}

.job-page .job-section .research-markdown-quote-copy:focus-visible {
  opacity: 1;
  outline: 2px solid rgba(0, 0, 0, 0.72);
  outline-offset: 2px;
}

.job-page .job-section .research-markdown-quote-copy svg {
  width: 0.875rem;
  height: 0.875rem;
}

.job-page .job-section .research-markdown-quote-copy .job-icon-check {
  display: none;
}

.job-page .job-section .research-markdown-quote-copy[data-copied="true"] .job-icon-copy {
  display: none;
}

.job-page .job-section .research-markdown-quote-copy[data-copied="true"] .job-icon-check {
  display: block;
  color: #16a34a;
}

.job-page .job-section .research-markdown-quote-speaker {
  color: #111111;
  font-size: 0.78125rem;
  font-weight: 560;
  letter-spacing: 0.005em;
  font-style: normal;
}

.job-page .job-section .research-markdown-card-title {
  display: block;
  color: #111111;
  font-size: 0.875rem;
  font-weight: 560;
  line-height: 1.25rem;
}

.job-page .job-section .research-markdown-quote-body {
  display: block;
  color: rgba(0, 0, 0, 0.74);
  font-style: italic;
  font-weight: 400;
}

.job-page .job-section .research-markdown-card-body {
  display: block;
  max-width: 58rem;
  color: rgba(0, 0, 0, 0.7);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.375rem;
}

.job-page .job-section .research-markdown-card-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.125rem;
}

.job-page .job-section .research-markdown-card-footer .source-ref-list {
  margin-left: 0;
}

.job-page .job-section .research-markdown-card-note {
  max-width: none;
  margin: 0.125rem 0 1.125rem;
  color: rgba(0, 0, 0, 0.64);
  font-size: 0.875rem;
  line-height: 1.375rem;
}

.job-page .job-section .research-markdown-quote-timestamp {
  display: inline-flex;
  align-items: center;
  min-height: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.075);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.022);
  padding: 0 0.3125rem;
  color: rgba(0, 0, 0, 0.44);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.job-page .job-section a.research-markdown-quote-timestamp:hover {
  border-color: rgba(0, 0, 0, 0.16);
  background: rgba(0, 0, 0, 0.065);
  color: rgba(0, 0, 0, 0.68);
}

.job-page .job-section a.research-markdown-quote-timestamp:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.72);
  outline-offset: 2px;
}

.job-page .job-section .research-markdown-nested-list {
  display: grid;
  gap: 0.3125rem;
  max-width: 42rem;
  margin: 0.375rem 0 1.25rem;
  padding-left: 1rem;
  color: rgba(0, 0, 0, 0.56);
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.job-page .job-section .research-markdown-nested-list .research-source-pill {
  font-size: 0.75rem;
}

.job-page .job-section .research-markdown-secondary-item strong {
  color: #111111;
  font-weight: 560;
}

.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: #111111;
  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: rgba(255, 255, 255, 0.72);
  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 rgba(0, 0, 0, 0.055);
}

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

.job-transcript-time {
  color: rgba(0, 0, 0, 0.42);
  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: #111111;
  text-decoration: underline;
  outline: 0;
}

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

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

.job-transcript-text {
  margin: 0;
  color: rgba(0, 0, 0, 0.78);
  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: rgba(0, 0, 0, 0.68);
}

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

.job-brief-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding-top: 0.125rem;
  flex-shrink: 0;
}

.job-tabbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--soft-line);
  padding-bottom: 0;
}

.job-tab {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  position: relative;
  font-size: 0.8125rem;
  font-weight: 460;
  line-height: 1.25rem;
  letter-spacing: -0.00563rem;
  padding: 0 0 0.5rem;
  cursor: pointer;
  transition: color 160ms ease;
}

.job-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  border-radius: 999px;
  background: transparent;
  transition: background 160ms ease;
}

.job-tab:hover {
  color: rgba(0, 0, 0, 0.72);
}

.job-tab:hover::after {
  background: #d9d9d9;
}

.job-tab.is-active {
  color: #111111;
  font-weight: 520;
}

.job-tab.is-active::after {
  background: #111111;
}

.job-tabpanel {
  display: grid;
}

.job-count {
  flex-shrink: 0;
}

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

.job-brief > div {
  display: block;
  min-width: 0;
}

.job-brief h3 {
  margin: 2.625rem 0 0.875rem;
  font-size: 1.25rem;
  font-weight: 640;
  line-height: 1.625rem;
  letter-spacing: -0.015rem;
}

.job-brief h3:first-child {
  margin-top: 0;
}

.job-brief p {
  margin: 0 0 1rem;
  color: #111111;
  font-size: 0.875rem;
  font-weight: 460;
  line-height: 1.25rem;
  letter-spacing: -0.00563rem;
}

.job-brief ul,
.job-brief ol {
  display: block;
  margin: 0 0 1rem;
  padding: 0 0 0 1.25rem;
}

.job-brief ul {
  list-style: none;
}

.job-brief ol {
  list-style: none;
  counter-reset: job-brief-list;
}

.job-list {
  display: block;
}

.job-list > li {
  border-top: 1px solid var(--soft-line);
  padding-top: 0.625rem;
}

.job-brief li {
  position: relative;
  display: list-item;
  padding: 0 0 0.5rem 0.75rem;
  color: #111111;
  font-size: 0.875rem;
  font-weight: 460;
  line-height: 1.25rem;
  letter-spacing: -0.00563rem;
}

.job-brief li:last-child {
  padding-bottom: 0;
}

.job-brief li::marker {
  content: "";
}

.job-brief ul > li::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 0.675em;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 50%;
  background: #b3b3b3;
}

.job-brief ol > li {
  counter-increment: job-brief-list;
  padding-left: 1rem;
}

.job-brief ol > li::before {
  content: counter(job-brief-list) ".";
  position: absolute;
  right: 100%;
  top: 0;
  color: rgba(0, 0, 0, 0.4);
}

.job-brief strong {
  color: #111111;
  font-weight: 560;
}

.job-brief a {
  color: #111111;
  text-decoration: underline;
  text-decoration-color: #d9d9d9;
  text-underline-offset: 0.1875rem;
  overflow-wrap: anywhere;
}

.job-brief a:hover {
  text-decoration-color: #666666;
}

.job-brief code {
  border-radius: 0.25rem;
  background: #f3f3f3;
  padding: 0.0625rem 0.25rem;
  font-family: var(--font-code);
  font-size: 0.8125rem;
}

.job-list a {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #111111;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  letter-spacing: -0.00563rem;
  text-decoration: underline;
  text-decoration-color: #d9d9d9;
  text-underline-offset: 0.1875rem;
}

.job-list a:hover {
  text-decoration-color: #666666;
}

.job-list details {
  display: grid;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.job-list summary {
  width: fit-content;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.job-list pre {
  margin-top: 0.5rem;
  max-height: 18rem;
}

.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: rgba(0, 0, 0, 0.42);
}

.research-table-activity tbody tr td:nth-child(3) {
  color: rgba(0, 0, 0, 0.78);
}

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

.research-table-sources th:nth-child(3),
.research-table-sources td:nth-child(3) {
  width: 4.75rem;
}

.research-table-sources th:nth-child(4),
.research-table-sources td:nth-child(4) {
  width: 4.75rem;
}

.research-table-sources th:nth-child(5),
.research-table-sources td:nth-child(5) {
  width: 4.5rem;
}

.research-table-sources th:nth-child(6),
.research-table-sources td:nth-child(6) {
  width: 4.25rem;
}

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

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

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

.job-trade-callouts {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  min-width: 0;
}

.job-trade-callout {
  display: grid;
  gap: 0.625rem;
  padding: 0.875rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.015);
  min-width: 0;
}

.job-trade-callout-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
}

.job-trade-kind,
.job-trade-attribution {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  color: rgba(0, 0, 0, 0.62);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  line-height: 1rem;
}

.job-trade-kind {
  padding: 0.125rem 0.5rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0;
}

.job-trade-quote {
  margin: 0;
  color: #171717;
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.5rem;
  letter-spacing: 0;
  text-wrap: pretty;
}

.job-trade-attribution {
  margin: 0;
  padding: 0.125rem 0.5rem;
  color: rgba(0, 0, 0, 0.68);
}

.job-trade-rationale,
.job-trade-reasoning p {
  margin: 0;
  color: rgba(0, 0, 0, 0.7);
  font-size: 0.875rem;
  line-height: 1.375rem;
  letter-spacing: 0;
  text-wrap: pretty;
}

.job-trade-instrument-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.72);
  min-width: 0;
}

.job-trade-symbol,
.job-trade-table-label {
  color: #171717;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.125rem;
  letter-spacing: 0;
}

.job-trade-side {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  color: rgba(0, 0, 0, 0.62);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1rem;
  letter-spacing: 0;
}

.job-trade-side.is-long {
  color: #147a38;
}

.job-trade-side.is-short {
  color: #bd1f1f;
}

.job-trade-venue,
.job-trade-performance,
.job-trade-table-meta {
  color: rgba(0, 0, 0, 0.55);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0;
}

.job-trade-reasoning {
  color: rgba(0, 0, 0, 0.66);
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.job-trade-reasoning summary {
  width: fit-content;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.58);
  font-weight: 540;
}

.job-trade-reasoning p {
  margin-top: 0.375rem;
}

.research-table-trade-ideas th:nth-child(1),
.research-table-trade-ideas td:nth-child(1) {
  width: 10rem;
}

.research-table-trade-ideas th:nth-child(2),
.research-table-trade-ideas td:nth-child(2) {
  width: 4.5rem;
}

.research-table-trade-ideas th:nth-child(3),
.research-table-trade-ideas td:nth-child(3) {
  white-space: normal;
}

.research-table-trade-ideas th:nth-child(4),
.research-table-trade-ideas td:nth-child(4) {
  width: 8rem;
}

.research-table-trade-ideas th:nth-child(5),
.research-table-trade-ideas td:nth-child(5) {
  width: 8rem;
  color: rgba(0, 0, 0, 0.55);
}

.job-trade-table-instrument {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}

.research-table-sources th:nth-child(1),
.research-table-sources td:nth-child(1) {
  white-space: normal;
}

.job-source-comment {
  display: block;
  margin-top: 4px;
  color: var(--muted-color);
  font-size: 0.86rem;
  line-height: 1.35;
}

.job-source-actions-cell {
  overflow: visible !important;
}

.job-source-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.125rem;
  width: 100%;
}

.job-source-row-action {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 1.625rem;
  height: 1.625rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(0, 0, 0, 0.44);
  padding: 0;
  cursor: pointer;
  transition:
    background 120ms ease,
    color 120ms ease;
}

.job-source-row-action:hover,
.job-source-row-action:focus-visible {
  background: rgba(0, 0, 0, 0.045);
  color: #111111;
}

.job-source-row-action:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.24);
  outline-offset: 2px;
}

.job-source-row-action:disabled {
  cursor: default;
  opacity: 0.35;
}

.job-source-row-action svg {
  width: 1rem;
  height: 1rem;
}

.job-source-row-action[data-copied="true"] {
  color: #16a34a;
}

.job-source-row-action[data-copied="true"] .job-chat-action-copy-icon {
  display: none;
}

.job-source-row-action[data-copied="true"] .job-chat-action-check-icon {
  display: block;
}

.research-table-sources td:nth-child(2),
.research-table-sources td:nth-child(3),
.research-table-sources td:nth-child(4),
.research-table-sources td:nth-child(5),
.research-table-sources td:nth-child(6) {
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

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

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

.research-table-artifacts th:nth-child(1),
.research-table-artifacts td:nth-child(1) {
  width: 38%;
  white-space: normal;
}

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

.research-table-artifacts th:nth-child(3),
.research-table-artifacts td:nth-child(3) {
  width: 30%;
}

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

.research-table-update {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.research-table-update-copy {
  display: grid;
  gap: 0.1875rem;
  min-width: 0;
}

.job-event-live-spinner {
  display: inline-block;
  width: 0.625rem;
  height: 0.625rem;
  margin-right: 0.375rem;
  border: 1.5px solid rgba(83, 170, 92, 0.24);
  border-top-color: #4fa35a;
  border-radius: 999px;
  vertical-align: -0.0625rem;
  animation: job-event-live-spin 760ms linear infinite;
}

.research-table-update-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.research-table-update-meta {
  color: rgba(0, 0, 0, 0.42);
  font-size: 0.75rem;
  font-weight: 450;
  line-height: 1rem;
  overflow-wrap: anywhere;
}

.job-event-row {
  cursor: pointer;
}

.job-event-row:hover td {
  background: rgba(0, 0, 0, 0.02);
}

.research-table tbody:hover tr.job-event-row.is-current {
  opacity: 1;
}

.job-event-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.375rem;
  min-width: 0;
  white-space: nowrap;
}

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

.research-table-activity td:nth-child(4) {
  vertical-align: middle;
}

@keyframes job-event-live-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .job-event-live-spinner {
    animation: none;
  }
}

.job-section.is-paused .research-table {
  opacity: 0.92;
}

.research-table td {
  overflow-wrap: anywhere;
}

.job-page .research-table-wrapper {
  overflow-x: visible;
}

.job-page .research-table {
  table-layout: fixed;
}

.job-page .research-markdown-table {
  table-layout: fixed;
}

.job-page .research-markdown-table th,
.job-page .research-markdown-table td,
.job-page .research-markdown-table-wide th,
.job-page .research-markdown-table-wide td {
  min-width: 0;
  max-width: none;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  vertical-align: top;
}

.job-inline-button {
  appearance: none;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  cursor: pointer;
  width: fit-content;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.1875rem;
}

.job-inline-button:hover {
  color: #111111;
  text-decoration-color: #d9d9d9;
}

.job-dialog-close {
  appearance: none;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  cursor: pointer;
  width: fit-content;
}

.job-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.625rem;
  height: 1.625rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(0, 0, 0, 0.42);
  padding: 0;
}

.job-dialog-close:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #111111;
}

.job-dialog-close:focus-visible {
  outline: 0;
  background: rgba(0, 0, 0, 0.04);
  color: #111111;
  box-shadow: 0 0 0 0.1875rem rgba(0, 0, 0, 0.045);
}

.job-dialog-close svg {
  width: 0.875rem;
  height: 0.875rem;
}

.job-dialog {
  width: min(42rem, calc(100vw - 2rem));
  border: 1px solid var(--soft-line);
  border-radius: 0.75rem;
  padding: 0;
  background: #ffffff;
  color: #111111;
}

.job-dialog.job-pipeline-dialog {
  width: min(34rem, calc(100vw - 2rem));
  box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, 0.12);
}

.job-pipeline-dialog[open] {
  animation: job-pipeline-dialog-in 180ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.job-pipeline-dialog[data-state="closing"] {
  animation: job-pipeline-dialog-out 150ms cubic-bezier(0.4, 0, 1, 1) both;
}

.job-dialog::backdrop,
.job-source-dialog::backdrop {
  background: rgba(248, 248, 247, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.job-pipeline-dialog[open]::backdrop {
  animation: job-pipeline-backdrop-in 180ms ease both;
}

.job-pipeline-dialog[data-state="closing"]::backdrop {
  animation: job-pipeline-backdrop-out 150ms ease both;
}

.job-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0.875rem 0.6875rem;
  border-bottom: 1px solid var(--soft-line);
}

.job-pipeline-dialog-header {
  align-items: flex-start;
}

.job-pipeline-stage-eyebrow,
.job-pipeline-dialog-header h2,
.job-pipeline-stage-summary p,
.job-pipeline-stage-list h3,
.job-pipeline-stage-list li,
.job-pipeline-stage-loop h3,
.job-pipeline-stage-loop p,
.job-pipeline-stage-run h3,
.job-pipeline-stage-empty,
.job-pipeline-stage-events,
.job-pipeline-loop-row {
  margin: 0;
}

.job-pipeline-stage-eyebrow {
  color: rgba(0, 0, 0, 0.42);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 0.875rem;
  text-transform: uppercase;
}

.job-pipeline-dialog-header h2 {
  margin-top: 0.125rem;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.25rem;
}

.job-pipeline-stage-content {
  gap: 1.125rem;
  padding: 1rem;
}

.job-pipeline-stage-summary {
  display: grid;
  gap: 0.6875rem;
}

.job-pipeline-stage-summary p,
.job-pipeline-stage-loop p,
.job-pipeline-stage-empty {
  color: rgba(0, 0, 0, 0.62);
  font-size: 0.875rem;
  font-weight: 450;
  line-height: 1.375rem;
}

.job-pipeline-stage-current {
  display: grid;
  gap: 0.1875rem;
  border: 1px solid rgba(29, 78, 216, 0.16);
  border-radius: 0.625rem;
  background: rgba(36, 128, 237, 0.045);
  padding: 0.625rem 0.75rem;
}

.job-pipeline-stage-current span,
.job-pipeline-run-fact span,
.job-pipeline-stage-events time,
.job-pipeline-loop-row small {
  color: rgba(0, 0, 0, 0.44);
  font-size: 0.75rem;
  font-weight: 550;
  line-height: 1rem;
}

.job-pipeline-stage-current strong {
  color: #111111;
  font-size: 0.875rem;
  font-weight: 520;
  line-height: 1.25rem;
}

.job-pipeline-stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem 1rem;
}

.job-pipeline-stage-list,
.job-pipeline-stage-loop,
.job-pipeline-stage-run {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.job-pipeline-stage-list h3,
.job-pipeline-stage-loop h3,
.job-pipeline-stage-run h3 {
  color: #111111;
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1rem;
}

.job-pipeline-stage-list ul,
.job-pipeline-stage-events {
  display: grid;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-pipeline-stage-list li,
.job-pipeline-stage-events li {
  color: rgba(0, 0, 0, 0.68);
  font-size: 0.8125rem;
  font-weight: 450;
  line-height: 1.25rem;
}

.job-pipeline-stage-list li {
  position: relative;
  padding-left: 0.6875rem;
}

.job-pipeline-stage-list li::before {
  content: "";
  position: absolute;
  top: 0.5625rem;
  left: 0;
  width: 0.1875rem;
  height: 0.1875rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
}

.job-pipeline-stage-loop {
  border-top: 1px solid var(--soft-line);
  padding-top: 0.875rem;
}

.job-pipeline-loop-row {
  display: grid;
  gap: 0.125rem;
  border: 1px solid var(--soft-line);
  border-radius: 0.625rem;
  color: rgba(0, 0, 0, 0.72);
  font-size: 0.8125rem;
  font-weight: 520;
  line-height: 1.25rem;
  padding: 0.5625rem 0.6875rem;
}

.job-pipeline-loop-row.is-active {
  border-color: rgba(29, 78, 216, 0.16);
  background: rgba(36, 128, 237, 0.045);
  color: #1d4ed8;
}

.job-pipeline-stage-run {
  border-top: 1px solid var(--soft-line);
  padding-top: 0.875rem;
}

.job-pipeline-run-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.job-pipeline-run-fact {
  display: grid;
  gap: 0.125rem;
  border: 1px solid var(--soft-line);
  border-radius: 0.625rem;
  padding: 0.5625rem 0.6875rem;
}

.job-pipeline-run-fact strong {
  color: #111111;
  font-size: 0.875rem;
  font-weight: 620;
  line-height: 1.125rem;
}

.job-pipeline-stage-events li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--soft-line);
  padding-top: 0.5rem;
}

.job-pipeline-stage-events span {
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  .job-pipeline-stage-grid,
  .job-pipeline-run-facts {
    grid-template-columns: 1fr;
  }

  .job-pipeline-stage-events li {
    display: grid;
    gap: 0.125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .job-pipeline-dialog[open],
  .job-pipeline-dialog[open]::backdrop,
  .job-pipeline-dialog[data-state="closing"],
  .job-pipeline-dialog[data-state="closing"]::backdrop {
    animation: none;
  }
}

@keyframes job-pipeline-dialog-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes job-pipeline-dialog-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(0.375rem) scale(0.99);
  }
}

@keyframes job-pipeline-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes job-pipeline-backdrop-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.job-dialog-content {
  display: grid;
  gap: 1rem;
  padding: 0.875rem;
  max-height: min(70vh, 42rem);
  overflow-y: auto;
}

.job-plan {
  display: grid;
  gap: 1rem;
}

.job-plan-meta {
  display: grid;
  gap: 0.25rem;
}

.job-plan-list {
  display: grid;
  gap: 0.625rem;
}

.job-plan-list li {
  border-top: 1px solid var(--soft-line);
  padding-top: 0.625rem;
}

.job-event-review {
  display: grid;
  gap: 1rem;
}

.job-event-review-meta {
  display: grid;
  gap: 0.75rem;
}

.job-event-review-field {
  display: grid;
  gap: 0.25rem;
}

.job-event-review-field h3,
.job-event-review-label {
  margin: 0;
  color: rgba(0, 0, 0, 0.46);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
}

.job-event-review-field p {
  margin: 0;
  color: #111111;
  font-size: 0.875rem;
  font-weight: 450;
  line-height: 1.375rem;
  overflow-wrap: anywhere;
}

.job-dialog-textarea {
  width: 100%;
  min-height: 8rem;
  border: 1px solid var(--soft-line);
  border-radius: 0.75rem;
  background: #ffffff;
  color: #111111;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.45;
  padding: 0.875rem;
  resize: vertical;
}

.job-dialog-textarea:focus {
  outline: 0;
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.035);
}

.job-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.job-dialog-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.625rem 1rem;
  border-radius: 999px;
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.job-dialog-button:hover {
  background: #202020;
  border-color: #202020;
  color: #ffffff;
}

.job-dialog-button-secondary {
  background: #ffffff;
  color: #111111;
  border-color: var(--soft-line);
}

.job-dialog-button-secondary:hover {
  background: rgba(0, 0, 0, 0.025);
  border-color: rgba(0, 0, 0, 0.14);
  color: #111111;
}

.job-dialog-button-danger {
  border-color: var(--danger-color);
  background: var(--danger-color);
  color: #ffffff;
}

.job-dialog-button-danger:hover {
  border-color: var(--danger-color-hover);
  background: var(--danger-color-hover);
  color: #ffffff;
}

.job-dialog-button:disabled {
  cursor: default;
  opacity: 0.58;
}

.job-delete-dialog-copy {
  margin: 0;
  color: rgba(0, 0, 0, 0.68);
  font-size: 0.875rem;
  line-height: 1.375rem;
}

.stored-source-page main {
  max-width: var(--researcher-page-width, 64rem);
}

.stored-source-markdown {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(0, 0, 0, 0.78);
  font-size: 0.8125rem;
  line-height: 1.35rem;
}

.job-source-dialog {
  width: min(48rem, calc(100vw - 2rem));
  border-radius: 1rem;
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
}

@keyframes job-source-dialog-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes job-source-dialog-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(4px) scale(0.99);
  }
}

@keyframes job-source-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes job-source-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

.job-source-dialog[open] {
  animation: job-source-dialog-in 180ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.job-source-dialog[open]::backdrop {
  animation: job-source-backdrop-in 180ms ease-out both;
}

.job-source-dialog[data-state="closing"] {
  animation: job-source-dialog-out 160ms cubic-bezier(0.4, 0, 1, 1) both;
}

.job-source-dialog[data-state="closing"]::backdrop {
  animation: job-source-backdrop-out 160ms ease-in both;
}

@media (prefers-reduced-motion: reduce) {
  .job-source-dialog[open],
  .job-source-dialog[open]::backdrop,
  .job-source-dialog[data-state="closing"],
  .job-source-dialog[data-state="closing"]::backdrop {
    animation-duration: 1ms;
  }
}

.job-source-dialog-header {
  align-items: flex-start;
  padding: 1.125rem 1.25rem 0.9375rem;
}

.job-source-dialog-heading {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.job-source-dialog-heading h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.375rem;
  letter-spacing: -0.011rem;
  color: #111111;
  overflow-wrap: anywhere;
}

.job-source-dialog-subtitle {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 450;
  line-height: 1rem;
  color: rgba(0, 0, 0, 0.46);
  overflow-wrap: anywhere;
}

.job-source-dialog-content {
  padding: 1rem 1.25rem;
  max-height: min(70vh, 44rem);
}

.job-source-dialog-body {
  margin: 0;
  color: rgba(0, 0, 0, 0.82);
}

.stored-source-reader {
  max-width: 42rem;
  margin-inline: auto;
  font-size: 0.9375rem;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.stored-source-reader-content {
  display: grid;
  gap: 0.75rem;
}

.stored-source-reader p,
.stored-source-reader ul,
.stored-source-reader ol {
  margin: 0;
}

.stored-source-reader h3 {
  margin: 0.5rem 0 0;
  color: #111111;
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.35;
  letter-spacing: -0.008rem;
}

.stored-source-reader ul,
.stored-source-reader ol {
  padding-left: 1.35rem;
}

.stored-source-reader li {
  margin: 0;
  padding-left: 0.125rem;
}

.stored-source-reader li::marker {
  color: rgba(0, 0, 0, 0.42);
}

.stored-source-reader a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.28);
  text-underline-offset: 0.16em;
}

.stored-source-reader .research-markdown-table-wrapper {
  margin: 0.25rem 0 0.5rem;
}

.stored-source-json {
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid var(--soft-line);
  border-radius: 0.625rem;
  padding: 0.875rem 1rem;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125rem;
  line-height: 1.4rem;
  color: rgba(0, 0, 0, 0.82);
  white-space: pre-wrap;
  word-break: break-word;
}

.job-source-dialog-highlight {
  border-radius: 0.25rem;
  background: #fff1a8;
  color: #111111;
  padding: 0.0625rem 0.125rem;
}

.job-source-dialog-status {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: rgba(0, 0, 0, 0.46);
}

.job-source-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem 1rem;
  border-top: 1px solid var(--soft-line);
  flex-wrap: wrap;
}

.job-source-dialog-footer .job-dialog-button {
  margin-right: auto;
}

.job-source-dialog-icon-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--soft-line);
  background: #ffffff;
  color: rgba(0, 0, 0, 0.62);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  position: relative;
}

.job-source-dialog-icon-button:hover {
  background: rgba(0, 0, 0, 0.025);
  border-color: rgba(0, 0, 0, 0.14);
  color: #111111;
}

.job-source-dialog-icon-button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.2);
}

.job-source-dialog-icon-button svg {
  width: 1rem;
  height: 1rem;
  transition: opacity 120ms ease, transform 160ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.job-source-dialog-icon-button-check {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1rem;
  height: 1rem;
  opacity: 0;
  transform: scale(0.7);
  color: var(--success-color);
}

.job-source-dialog-icon-button[data-copied="true"] svg:not(.job-source-dialog-icon-button-check) {
  opacity: 0;
  transform: scale(0.85);
}

.job-source-dialog-icon-button[data-copied="true"] .job-source-dialog-icon-button-check {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 640px) {
  .job-source-dialog-footer {
    justify-content: stretch;
  }
  .job-source-dialog-footer .job-dialog-button {
    flex: 1 1 auto;
    margin-right: 0;
  }
}

.research-table td a {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #111111;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25rem;
  text-decoration: underline;
  text-decoration-color: #d9d9d9;
  text-underline-offset: 0.1875rem;
}

.research-table td a:hover {
  text-decoration-color: #666666;
}

.source-ref-list {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem;
  margin-left: 0.125rem;
  vertical-align: baseline;
}

.source-ref,
.source-ref-more {
  display: inline-flex;
  appearance: none;
  border: 0;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.035);
  color: rgba(0, 0, 0, 0.58);
  padding: 0 0.375rem;
  font-size: 0.6875rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.125rem;
  text-decoration: none !important;
}

.source-ref {
  cursor: pointer;
}

.source-ref:hover {
  background: rgba(0, 0, 0, 0.07);
  color: #111111;
}

.source-ref:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.22);
  outline-offset: 2px;
}

.source-ref.is-selected {
  background: rgba(0, 0, 0, 0.085);
  color: #111111;
}

.source-ref.is-timestamp-ref {
  font-variant-numeric: tabular-nums;
}

.source-ref-more {
  max-width: none;
  color: var(--muted);
}

.research-source-inline-panel {
  display: grid;
  gap: 0.75rem;
  max-height: 0;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.075);
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.96);
  opacity: 0;
  overflow: hidden;
  padding: 0 0.75rem;
  box-shadow: 0 0.625rem 1.5rem rgba(0, 0, 0, 0.04);
  transform: translateY(-0.25rem);
  transition:
    max-height 170ms ease,
    margin 170ms ease,
    opacity 150ms ease,
    padding 170ms ease,
    transform 170ms ease;
}

.research-source-inline-panel.is-open {
  max-height: 30rem;
  margin: 0.625rem 0 0.875rem;
  opacity: 1;
  padding: 0.875rem;
  transform: translateY(0);
}

.research-source-inline-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.research-source-inline-marker {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1;
  padding: 0 0.375rem;
}

.research-source-inline-title {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}

.research-source-inline-title strong {
  color: #111111;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.research-source-inline-title span {
  color: rgba(0, 0, 0, 0.46);
  font-size: 0.75rem;
  line-height: 1rem;
}

.research-source-inline-collapse {
  appearance: none;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: rgba(0, 0, 0, 0.44);
  cursor: pointer;
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 560;
  line-height: 1rem;
  padding: 0.25rem 0.375rem;
}

.research-source-inline-collapse:hover,
.research-source-inline-collapse:focus-visible {
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.76);
}

.research-source-inline-body {
  display: grid;
  gap: 0.625rem;
}

.research-source-inline-section {
  display: grid;
  gap: 0.1875rem;
  min-width: 0;
  margin: 0;
  border-left: 2px solid rgba(0, 0, 0, 0.14);
  padding: 0.0625rem 0 0.0625rem 0.75rem;
}

.research-source-inline-section.is-warning {
  border-left-color: rgba(234, 50, 35, 0.44);
}

.research-source-inline-section.is-source-excerpt {
  border-left-color: rgba(17, 17, 17, 0.28);
}

.research-source-inline-section.is-source-excerpt .research-source-inline-section-value {
  color: rgba(0, 0, 0, 0.78);
}

.research-source-inline-section-label {
  color: rgba(0, 0, 0, 0.44);
  font-size: 0.6875rem;
  font-weight: 620;
  letter-spacing: 0;
  line-height: 0.9375rem;
}

.research-source-inline-section-value {
  margin: 0;
  color: rgba(0, 0, 0, 0.66);
  font-size: 0.8125rem;
  line-height: 1.35rem;
}

.research-source-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.research-source-inline-action {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  border: 1px solid rgba(0, 0, 0, 0.075);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.018);
  color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  padding: 0.25rem 0.55rem;
  text-decoration: none;
}

.research-source-inline-action-icon {
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.research-source-inline-action-icon svg {
  display: block;
  width: 1rem;
  height: 1rem;
}

.research-source-inline-action .job-chat-action-check-icon {
  display: none;
}

.research-source-inline-action-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.research-source-inline-action:hover {
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(0, 0, 0, 0.035);
  color: #111111;
}

.research-source-inline-action[data-copied="true"] .job-chat-action-copy-icon {
  display: none;
}

.research-source-inline-action[data-copied="true"] .job-chat-action-check-icon {
  display: block;
}

.job-chat-launch {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.875rem;
  margin-top: 1.125rem;
  padding-top: 0;
}

.job-chat-launch[hidden] {
  display: none;
}

.job-run-chat-composer {
  min-height: 2.875rem;
  padding: 0.375rem 0.4375rem 0.375rem 0.75rem;
}

.job-run-chat-composer.is-disabled {
  opacity: 0.68;
}

.job-run-chat-composer button {
  appearance: none;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0;
  font: inherit;
}

.job-run-chat-composer > button:first-child {
  width: 1.75rem;
  height: 1.75rem;
  background: transparent;
  color: #111111;
  font-size: 1.25rem;
  line-height: 1;
}

.job-run-chat-composer input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #111111;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding: 0.125rem 0;
}

.job-run-chat-composer input:focus {
  outline: 0;
}

.job-run-chat-composer input::placeholder {
  color: rgba(0, 0, 0, 0.44);
}

.job-run-chat-submit {
  width: 2rem;
  height: 2rem;
  background: rgba(0, 0, 0, 0.13);
  color: rgba(0, 0, 0, 0.42);
  transition:
    background 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.job-run-chat-composer.has-question .job-run-chat-submit:not(:disabled) {
  background: #050505;
  color: #ffffff;
  cursor: pointer;
}

.job-run-chat-composer.has-question .job-run-chat-submit:not(:disabled):hover {
  background: #111111;
  transform: translateY(-0.03125rem);
}

.job-run-chat-submit svg {
  width: 1rem;
  height: 1rem;
}

.job-run-chat-attachments {
  width: 100%;
  margin: -0.25rem 0 0;
}

.job-run-agent-prompts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.job-chat-agent-button {
  min-height: 2.75rem;
  padding: 0.4375rem 0.5625rem;
}

.job-chat-agent-button .agent-channel-icon {
  width: 1.625rem;
  height: 1.625rem;
}

.job-chat-agent-button strong {
  font-size: 0.8125rem;
  line-height: 1.0625rem;
}

.job-chat-agent-button small {
  min-width: 0;
  font-size: 0.6875rem;
  line-height: 0.9375rem;
}

.job-chat-copy-button {
  background: rgba(0, 0, 0, 0.008);
}

body.job-chat-modal-open,
body.job-chat-modal-closing {
  --job-chat-dock-width: 30rem;
}

body.job-chat-modal-open.job-chat-sidebar-open,
body.job-chat-modal-closing.job-chat-sidebar-open {
  --job-chat-dock-width: 44rem;
}

.job-chat-view {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  background: rgba(234, 234, 230, 0.82);
  backdrop-filter: blur(10px) saturate(0.98);
  -webkit-backdrop-filter: blur(10px) saturate(0.98);
}

.job-chat-view[hidden] {
  display: none !important;
}

body:not(.job-chat-route):not(.job-chat-modal-open):not(.job-chat-modal-closing) #job-chat-section {
  display: none !important;
}

.job-chat-modal-open,
.job-chat-modal-closing {
  overflow: hidden;
}

.job-chat-modal-open .job-chat-launch,
.job-chat-modal-closing .job-chat-launch {
  visibility: hidden;
}

.job-chat-modal-open .job-chat-view {
  animation: job-chat-modal-backdrop-in 180ms cubic-bezier(0.215, 0.61, 0.355, 1) both;
}

.job-chat-modal-closing .job-chat-view {
  animation: job-chat-modal-backdrop-out 160ms cubic-bezier(0.215, 0.61, 0.355, 1) both;
}

.job-chat-modal-open .job-chat-workspace,
.job-chat-modal-closing .job-chat-workspace {
  height: min(52rem, calc(100dvh - 2.5rem));
  width: min(100%, 64rem);
  transform-origin: center;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.16),
    0 4px 16px rgba(0, 0, 0, 0.07);
  will-change: transform, opacity;
}

.job-chat-modal-open .job-chat-workspace {
  animation: job-chat-modal-panel-in 240ms cubic-bezier(0.215, 0.61, 0.355, 1) both;
}

.job-chat-modal-closing .job-chat-workspace {
  animation: job-chat-modal-panel-out 160ms cubic-bezier(0.215, 0.61, 0.355, 1) both;
}

.job-chat-modal-open.job-chat-sidebar-open .job-chat-workspace,
.job-chat-modal-closing.job-chat-sidebar-open .job-chat-workspace {
  width: min(100%, 76rem);
}

/* Phones: the chat takes over as a full-screen sheet sliding over the
   report. Breakpoint matches the job-chat mobile rules in
   global-chat/responsive-motion.css (760px). */
@media (max-width: 760px) {
  .job-chat-modal-open .job-chat-view,
  .job-chat-modal-closing .job-chat-view {
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
  }

  .job-chat-modal-open .job-chat-workspace,
  .job-chat-modal-closing .job-chat-workspace {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .job-chat-modal-open .job-chat-workspace {
    animation: job-chat-sheet-in 240ms cubic-bezier(0.215, 0.61, 0.355, 1) both;
  }

  .job-chat-modal-closing .job-chat-workspace {
    animation: job-chat-sheet-out 160ms cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
  }
}

/* Wide screens: the chat docks on the right and the report stays readable
   beside it. The page keeps scrolling; only the dock column is overlaid. */
@media (min-width: 75rem) {
  /* The closing state drops the padding immediately so the report expands
     in step with the dock sliding out, instead of in a second phase after
     the close timer fires. */
  body.job-chat-modal-open,
  body.job-chat-modal-closing {
    overflow: auto;
  }

  body.job-chat-modal-open {
    padding-right: var(--job-chat-dock-width);
  }

  body.job-page {
    transition: padding-right 160ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }

  body.job-page.job-chat-modal-open {
    transition: padding-right 190ms cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  .job-chat-modal-open .job-chat-launch {
    display: none;
  }

  /* Reappears at close start, together with everything else. */
  .job-chat-modal-closing .job-chat-launch {
    visibility: visible;
  }

  .job-chat-modal-open .job-chat-view,
  .job-chat-modal-closing .job-chat-view {
    inset: 0 0 0 auto;
    width: var(--job-chat-dock-width);
    display: block;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
    transition: width 190ms cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  .job-chat-modal-open .job-chat-workspace,
  .job-chat-modal-closing .job-chat-workspace {
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
    border-left: 1px solid var(--soft-line);
    border-radius: 0;
    box-shadow: none;
  }

  .job-chat-modal-open .job-chat-workspace {
    animation: job-chat-dock-in 190ms cubic-bezier(0.215, 0.61, 0.355, 1) both;
  }

  .job-chat-modal-closing .job-chat-workspace {
    animation: job-chat-dock-out 160ms cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
  }
}

@keyframes job-chat-dock-in {
  from {
    transform: translate3d(100%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes job-chat-dock-out {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(100%, 0, 0);
  }
}

@keyframes job-chat-sheet-in {
  from {
    transform: translate3d(0, 100%, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes job-chat-sheet-out {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, 100%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .job-chat-modal-open .job-chat-view,
  .job-chat-modal-closing .job-chat-view,
  .job-chat-modal-open .job-chat-workspace,
  .job-chat-modal-closing .job-chat-workspace {
    animation: none;
    transition: none;
  }

  body.job-page {
    transition: none;
  }
}

.job-chat-route {
  background: #ffffff;
  overflow: hidden;
}

.job-chat-route main {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
}

.job-chat-route .site-nav,
.job-chat-route .job-header,
.job-chat-route #job-message,
.job-chat-route #job-error,
.job-chat-route .job-progress,
.job-chat-route .job-summary,
.job-chat-route .job-prompt-section,
.job-chat-route .job-chat-launch,
.job-chat-route .job-primary-tabs,
.job-chat-route #job-report-view,
.job-chat-route #job-activity-section,
.job-chat-route #job-storage-section,
.job-chat-route site-footer,
.job-chat-route .footer {
  display: none !important;
}

.job-chat-route .job-shell {
  width: 100%;
  height: 100vh;
  padding: 0;
}

.job-chat-route .job-chat-view {
  position: static;
  inset: auto;
  z-index: auto;
  display: block;
  min-height: 100vh;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.job-chat-workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 92rem);
  height: min(100%, 56rem);
  margin: 0 auto;
  border: 1px solid var(--soft-line);
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
}

.job-chat-route .job-chat-workspace {
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  height: 100vh;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.job-chat-route .job-chat-workspace-header {
  display: none;
}

.job-chat-workspace-header {
  display: grid;
  grid-template-columns: 3.375rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--soft-line);
  padding: 0;
  transition: grid-template-columns 190ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.job-chat-sidebar-open .job-chat-workspace-header {
  grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr) auto;
}

.job-chat-header-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-width: 0;
  min-height: 3.5rem;
  padding: 0.625rem 0.625rem;
  overflow: hidden;
  transition:
    border-color 190ms ease,
    padding 190ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.job-chat-sidebar-open .job-chat-header-sidebar {
  justify-content: space-between;
  border-right: 1px solid var(--soft-line);
  padding-inline: 0.75rem;
}

.job-chat-header-sidebar-title {
  max-width: 10rem;
  min-width: 0;
  overflow: hidden;
  color: #111111;
  font-size: 0.8125rem;
  font-weight: 620;
  line-height: 1rem;
  opacity: 1;
  text-overflow: ellipsis;
  transition:
    max-width 190ms cubic-bezier(0.455, 0.03, 0.515, 0.955),
    opacity 150ms ease;
  white-space: nowrap;
}

body:not(.job-chat-sidebar-open) .job-chat-header-sidebar-title {
  max-width: 0;
  opacity: 0;
}

.job-chat-workspace-title {
  display: grid;
  gap: 0.03125rem;
  min-width: 0;
  padding: 0.625rem 0.75rem;
}

.job-chat-workspace-header h2 {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: #111111;
  font-size: 0.875rem;
  font-weight: 620;
  line-height: 1.125rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-chat-workspace-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  overflow: hidden;
  color: rgba(0, 0, 0, 0.42);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 0.9375rem;
}

.job-chat-workspace-meta span {
  min-width: 0;
}

.job-chat-workspace-meta span + span::before {
  content: "·";
  margin-right: 0.25rem;
  color: rgba(0, 0, 0, 0.22);
}

.job-chat-sidebar-toggle,
.job-chat-modal-close {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 1.875rem;
  height: 1.875rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: rgba(0, 0, 0, 0.48);
  padding: 0;
  cursor: pointer;
  transition:
    background 140ms ease,
    color 140ms ease;
}

.job-chat-sidebar-toggle:hover,
.job-chat-sidebar-toggle:focus-visible,
.job-chat-modal-close:hover,
.job-chat-modal-close:focus-visible {
  background: rgba(0, 0, 0, 0.045);
  color: #111111;
}

.job-chat-sidebar-toggle svg,
.job-chat-modal-close svg {
  width: 1rem;
  height: 1rem;
}

.job-chat-modal-close {
  margin-right: 0.625rem;
}

.job-chat-sidebar-toggle[aria-expanded="true"] {
  color: #111111;
}

.job-chat-workspace-body {
  display: grid;
  grid-template-columns: 0 minmax(0, 1fr);
  min-height: 0;
  transition: grid-template-columns 190ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.job-chat-sidebar-open .job-chat-workspace-body,
.job-chat-route .job-chat-workspace-body {
  grid-template-columns: 16rem minmax(0, 1fr);
}

.job-chat-sessions,
.job-chat-main {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.job-chat-sessions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-right: 1px solid transparent;
  padding: 0.875rem 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    border-color 190ms ease,
    opacity 150ms ease,
    padding 190ms cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.job-chat-sidebar-open .job-chat-sessions,
.job-chat-route .job-chat-sessions,
.global-chat-route .job-chat-sessions {
  border-right-color: var(--soft-line);
  padding-inline: 0.625rem;
  overflow-y: auto;
  opacity: 1;
  pointer-events: auto;
}

.job-chat-sessions-header {
  display: grid;
  gap: 0.25rem;
}

.job-chat-sessions-header h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.job-chat-sessions-header .job-inline-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.75rem;
  border: 0;
  border-radius: 0.625rem;
  background: transparent;
  color: #111111;
  padding: 0 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
}

.job-chat-sessions-header .job-inline-button:hover {
  background: rgba(0, 0, 0, 0.045);
  color: #111111;
  text-decoration: none;
}

.job-chat-sessions-header .job-inline-button svg {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
}

.job-chat-empty h2 {
  margin: 0;
  color: #111111;
  font-size: 0.9375rem;
  font-weight: 620;
  line-height: 1.25rem;
  letter-spacing: -0.006rem;
}

.job-chat-index-state {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.25rem 0.75rem;
  color: rgba(0, 0, 0, 0.48);
  font-size: 0.75rem;
  line-height: 1.125rem;
}

.job-chat-recents-heading {
  margin: 0.875rem 0.625rem 0.25rem;
  color: #111111;
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1rem;
}

.job-chat-session-list {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}

.job-chat-session-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  min-height: 2.375rem;
  padding: 0.1875rem 0.3125rem 0.1875rem 0.625rem;
  border-radius: 0.625rem;
}

.job-chat-session-row.is-active {
  background: rgba(0, 0, 0, 0.055);
}

.job-chat-session-button {
  appearance: none;
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #111111;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.125rem;
  text-align: left;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-chat-session-row.is-active .job-chat-session-button {
  color: #111111;
}

.job-chat-session-delete {
  appearance: none;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: rgba(0, 0, 0, 0.44);
  padding: 0;
  opacity: 0;
  cursor: pointer;
  transition:
    color 140ms ease,
    opacity 140ms ease,
    background 140ms ease;
}

.job-chat-session-delete svg {
  width: 1.125rem;
  height: 1.125rem;
}

.job-chat-session-row:hover .job-chat-session-delete,
.job-chat-session-row:focus-within .job-chat-session-delete {
  opacity: 1;
}

.job-chat-session-delete:hover,
.job-chat-session-delete:focus-visible {
  background: rgba(0, 0, 0, 0.045);
  color: #111111;
}

.job-chat-session-notice {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.job-chat-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
}

.job-chat-empty {
  grid-row: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.875rem;
  min-height: 18rem;
  padding: 1.25rem 2rem;
  text-align: center;
}

.job-chat-empty p {
  margin: 0;
  max-width: 32rem;
  color: rgba(0, 0, 0, 0.58);
  font-size: 0.875rem;
  line-height: 1.375rem;
}

.job-chat-starters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  width: min(100% - 2rem, 50rem);
  margin: 0 auto;
}

.job-chat-starter {
  appearance: none;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: #ffffff;
  color: rgba(0, 0, 0, 0.72);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.125rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.job-chat-starter:hover {
  border-color: rgba(0, 0, 0, 0.16);
  background: rgba(0, 0, 0, 0.025);
  color: #111111;
}

.job-chat-source-context {
  grid-row: 1;
  width: min(100% - 2rem, 50rem);
  margin: 0.875rem auto 0;
}

.job-chat-source-context[hidden] {
  display: none;
}

.job-chat-source-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  border: 1px solid var(--soft-line);
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.625rem 0.6875rem;
}

.job-chat-source-card-marker {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.035);
  color: rgba(0, 0, 0, 0.58);
}

.job-chat-source-card-marker svg {
  width: 1rem;
  height: 1rem;
}

.job-chat-source-card-body {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}

.job-chat-source-card-kicker,
.job-chat-source-card-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 520;
  line-height: 0.9375rem;
}

.job-chat-source-card h3 {
  margin: 0;
  overflow: hidden;
  color: #111111;
  font-size: 0.8125rem;
  font-weight: 610;
  line-height: 1.125rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-chat-source-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
}

.job-chat-source-card-remove {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 1.625rem;
  height: 1.625rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(0, 0, 0, 0.44);
  padding: 0;
  cursor: pointer;
}

.job-chat-source-card-remove:hover,
.job-chat-source-card-remove:focus-visible {
  background: rgba(0, 0, 0, 0.045);
  color: #111111;
}

.job-chat-source-card-remove:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.24);
  outline-offset: 2px;
}

.job-chat-source-card-remove svg {
  width: 1rem;
  height: 1rem;
}

.job-chat-messages {
  grid-row: 2;
  display: grid;
  align-content: start;
  gap: 1.375rem;
  min-width: 0;
  overflow-y: auto;
  padding: 1.5rem max(1.5rem, calc((100% - 56rem) / 2)) 10rem;
}

.job-chat-message {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  width: min(100%, 56rem);
  justify-self: center;
}

.job-chat-message-user {
  justify-items: end;
}

.job-chat-message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: min(48rem, 100%);
}

.job-chat-message-user .job-chat-message-header {
  width: min(34rem, 88%);
  justify-self: end;
}

.job-chat-message-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 0.9375rem;
}

.job-chat-message-user .job-chat-message-label {
  text-align: right;
}

.job-chat-message-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.1875rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.job-chat-message:hover .job-chat-message-actions,
.job-chat-message:focus-within .job-chat-message-actions,
.job-chat-message.is-running .job-chat-message-actions {
  opacity: 1;
  pointer-events: auto;
}

.job-chat-message-action {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 1.625rem;
  height: 1.625rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(0, 0, 0, 0.42);
  cursor: pointer;
  padding: 0;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}

.job-chat-message-action:hover,
.job-chat-message-action:focus-visible {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.025);
  color: #111111;
}

.job-chat-message-action svg {
  width: 0.9375rem;
  height: 0.9375rem;
}

.job-chat-message-phase {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  width: fit-content;
  max-width: min(100%, 48rem);
  color: rgba(0, 0, 0, 0.52);
  font-size: 0.75rem;
  line-height: 1rem;
}

.job-chat-message-phase-dot {
  display: inline-block;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  animation: job-chat-phase-pulse 1.2s ease-in-out infinite;
}

.job-chat-message-phase-history {
  color: rgba(0, 0, 0, 0.34);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-chat-message-phase.is-reconnecting .job-chat-message-phase-dot {
  background: rgba(180, 83, 9, 0.78);
}

@keyframes job-chat-phase-pulse {
  0%,
  100% {
    opacity: 0.38;
  }
  50% {
    opacity: 1;
  }
}

.job-chat-message-body {
  max-width: 100%;
  min-width: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.82);
  font-size: 0.9375rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.job-chat-message-assistant .job-chat-message-body {
  max-width: min(48rem, 100%);
}

.job-chat-message-user .job-chat-message-body {
  justify-self: end;
  max-width: min(34rem, 88%);
  border-radius: 0.875rem;
  background: #111111;
  color: #ffffff;
  padding: 0.75rem 0.875rem;
}

.job-chat-message-body p,
.job-chat-message-body ul,
.job-chat-message-body ol {
  margin-top: 0;
  margin-bottom: 0.625rem;
}

.job-chat-message-body ol {
  display: block;
  list-style: decimal outside;
  padding-left: 1.65rem;
}

.job-chat-message-body ol > li {
  display: list-item;
  list-style: decimal outside;
  margin-bottom: 0.625rem;
  padding-left: 0.25rem;
}

.job-chat-message-body ul > li {
  display: list-item;
  list-style: disc outside;
  margin-bottom: 0.625rem;
  padding-left: 0.25rem;
}

.job-chat-message-body li:last-child {
  margin-bottom: 0;
}

.job-chat-message-body li::marker {
  color: rgba(0, 0, 0, 0.44);
  font-weight: 610;
}

.job-chat-message-body p:last-child,
.job-chat-message-body ul:last-child,
.job-chat-message-body ol:last-child {
  margin-bottom: 0;
}

.job-chat-inline-citation {
  appearance: none;
  display: inline-flex;
  align-items: center;
  max-width: min(12rem, 48vw);
  min-height: 1.45rem;
  margin: 0 0.08em;
  transform: translateY(-0.04em);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.008);
  color: rgba(0, 0, 0, 0.42);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1rem;
  padding: 0.16rem 0.42rem;
  vertical-align: baseline;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.job-chat-inline-citation:hover {
  border-color: rgba(0, 0, 0, 0.13);
  background: rgba(0, 0, 0, 0.025);
  color: rgba(0, 0, 0, 0.68);
  transform: translateY(-0.06em);
}

.job-chat-inline-citation .job-chat-reference-title {
  display: inline-block;
  max-width: 10.5rem;
}

.job-chat-inline-citation:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.28);
  outline-offset: 2px;
}

.job-chat-selected-citation {
  display: grid;
  gap: 0.625rem;
  max-height: 0;
  margin-top: 0;
  border: 1px solid rgba(0, 0, 0, 0.075);
  border-radius: 0.75rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 250, 250, 0.96)),
    #ffffff;
  opacity: 0;
  overflow: hidden;
  padding: 0 0.75rem;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.045);
  transform: translateY(-0.25rem);
  transition:
    max-height 180ms ease,
    margin-top 180ms ease,
    opacity 160ms ease,
    padding 180ms ease,
    transform 180ms ease;
}

.job-chat-selected-citation[hidden] {
  display: none;
}

.job-chat-selected-citation.is-open {
  max-height: 22rem;
  margin-top: 0.875rem;
  opacity: 1;
  padding: 0.75rem;
  transform: translateY(0);
}

.job-chat-selected-citation-header {
  appearance: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

.job-chat-selected-citation-header:disabled {
  cursor: default;
}

.job-chat-selected-citation-marker {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.job-chat-selected-citation-title {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}

.job-chat-selected-citation-title strong {
  color: #111111;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-chat-selected-citation-title span {
  color: rgba(0, 0, 0, 0.46);
  font-size: 0.75rem;
  line-height: 1rem;
}

.job-chat-selected-citation-excerpt {
  margin: 0;
  border-left: 2px solid rgba(0, 0, 0, 0.16);
  color: rgba(0, 0, 0, 0.68);
  font-size: 0.8125rem;
  line-height: 1.35rem;
  padding: 0.125rem 0 0.125rem 0.75rem;
}

.job-chat-selected-citation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.job-chat-reference-block {
  display: grid;
  gap: 0;
  max-width: min(48rem, 100%);
}

.job-chat-waiting {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  color: rgba(0, 0, 0, 0.52);
}

.job-chat-waiting::after {
  content: "";
  display: inline-block;
  width: 1.15rem;
  height: 0.1875rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.18),
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.18)
  );
  transform-origin: left center;
  animation: job-chat-waiting-scan 1.15s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
}

@keyframes job-chat-waiting-scan {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleX(0.35) translateY(0);
  }
  50% {
    opacity: 0.9;
    transform: scaleX(1) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .job-chat-waiting::after {
    animation: none;
    opacity: 0.45;
    transform: scaleX(0.65);
  }
}

.job-chat-message-status {
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.8125rem;
}

.job-chat-reference-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.875rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.055);
}

.job-chat-reference-label {
  flex: 0 0 auto;
  margin-right: 0.125rem;
  color: rgba(0, 0, 0, 0.42);
  font-size: 0.75rem;
  font-weight: 610;
  line-height: 1rem;
}

.job-chat-reference-chip {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: min(100%, 17rem);
  gap: 0.375rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.018);
  color: rgba(0, 0, 0, 0.78);
  padding: 0.25rem 0.5rem 0.25rem 0.3125rem;
  font: inherit;
  font-size: 0.75rem;
  line-height: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.job-chat-reference-chip:hover {
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.025);
  color: #111111;
}

.job-chat-reference-chip.is-active {
  border-color: rgba(0, 0, 0, 0.22);
  background: #ffffff;
  color: #111111;
}

.job-chat-reference-chip:disabled {
  cursor: default;
  opacity: 0.58;
}

.job-chat-reference-chip:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.28);
  outline-offset: 2px;
}

.job-chat-reference-number {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 650;
  line-height: 1;
}

.job-chat-reference-count {
  flex: 0 0 auto;
  color: rgba(0, 0, 0, 0.4);
  font-size: 0.6875rem;
  font-weight: 650;
  line-height: 1;
}

.job-chat-reference-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-chat-reference-more {
  align-self: center;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1rem;
}

.job-chat-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  max-width: min(48rem, 100%);
  margin-top: 0.125rem;
}

.job-chat-followup-chip {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.012);
  color: rgba(0, 0, 0, 0.62);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  line-height: 1rem;
  padding: 0.3125rem 0.5625rem;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}

.job-chat-followup-chip:hover,
.job-chat-followup-chip:focus-visible {
  border-color: rgba(0, 0, 0, 0.16);
  background: #ffffff;
  color: #111111;
}

.job-chat-citations {
  width: min(100%, 56rem);
  justify-self: center;
  display: grid;
}

.job-chat-citations-summary {
  appearance: none;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.018);
  color: rgba(0, 0, 0, 0.72);
  padding: 0.375rem 0.625rem;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 610;
  line-height: 1rem;
}

.job-chat-citations-summary:hover {
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(0, 0, 0, 0.03);
  color: #111111;
}

.job-chat-citation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-0.25rem);
  transition:
    max-height 210ms cubic-bezier(0.215, 0.61, 0.355, 1),
    margin-top 210ms cubic-bezier(0.215, 0.61, 0.355, 1),
    opacity 170ms ease-out,
    transform 210ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

.job-chat-citations.is-open .job-chat-citation-grid {
  max-height: 160rem;
  margin-top: 0.75rem;
  opacity: 1;
  transform: translateY(0);
}

.job-chat-citation-grid[hidden] {
  display: none;
}

.job-chat-citation,
.job-chat-gaps,
.job-chat-extension {
  min-width: 0;
  border: 1px solid var(--soft-line);
  border-radius: 0.625rem;
  background: #ffffff;
  padding: 0.875rem;
}

.job-chat-citation {
  display: grid;
  gap: 0.625rem;
}

.job-chat-citation-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.625rem;
}

.job-chat-citation-marker {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.7);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1;
}

.job-chat-citation-title-block {
  display: grid;
  gap: 0.1875rem;
  min-width: 0;
}

.job-chat-citation h3,
.job-chat-gaps h3 {
  margin: 0;
  color: #111111;
  font-size: 0.8125rem;
  font-weight: 620;
  line-height: 1.125rem;
  overflow-wrap: anywhere;
}

.job-chat-citation-meta,
.job-chat-citation-excerpt,
.job-chat-extension p {
  margin: 0;
  color: rgba(0, 0, 0, 0.62);
  font-size: 0.75rem;
  line-height: 1.125rem;
  overflow-wrap: anywhere;
}

.job-chat-citation-meta {
  color: var(--muted);
}

.job-chat-citation-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-chat-citation-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1rem;
}

.job-chat-citation-icon-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3125rem;
  width: 1.75rem;
  max-width: 1.75rem;
  min-height: 1.75rem;
  overflow: hidden;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: rgba(0, 0, 0, 0.56);
  padding: 0;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 520;
  line-height: 1rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    max-width 170ms ease,
    width 170ms ease,
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.job-chat-citation-icon-link:hover,
.job-chat-citation-icon-link:focus-visible,
.job-chat-citation-icon-link[data-copied="true"] {
  width: auto;
  max-width: 12rem;
  background: transparent;
  color: rgba(0, 0, 0, 0.78);
}

.job-chat-citation-icon-link:disabled {
  cursor: default;
  opacity: 0.44;
}

.job-chat-citation-action-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
}

.job-chat-citation-action-icon svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.job-chat-citation-action-icon svg path {
  stroke-width: 1.85;
}

.job-chat-citation-action-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    max-width 170ms ease,
    opacity 120ms ease;
}

.job-chat-citation-icon-link:hover .job-chat-citation-action-label,
.job-chat-citation-icon-link:focus-visible .job-chat-citation-action-label,
.job-chat-citation-icon-link[data-copied="true"] .job-chat-citation-action-label {
  max-width: 9rem;
  opacity: 0.92;
}

.job-chat-action-check-icon,
.job-chat-citation-icon-link[data-copied="true"] .job-chat-action-copy-icon {
  display: none;
}

.job-chat-citation-icon-link[data-copied="true"] .job-chat-action-check-icon {
  display: block;
}

.job-chat-citation-link {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  padding: 0.3125rem 0.625rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 560;
  line-height: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.job-chat-citation-link:hover {
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.025);
}

.job-chat-citation-link:disabled {
  cursor: default;
  opacity: 0.58;
}

.job-chat-citation-link:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.28);
  outline-offset: 2px;
}

.job-chat-gaps ul {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding-left: 1rem;
  color: rgba(0, 0, 0, 0.62);
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.job-chat-inference-note {
  margin: 0.5rem 0 0;
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.75rem;
  font-style: italic;
  line-height: 1.125rem;
}

.job-chat-extension {
  display: grid;
  gap: 0.625rem;
}

.job-chat-extension-button {
  appearance: none;
  width: fit-content;
  min-height: 1.9rem;
  border: 1px solid rgba(0, 0, 0, 0.095);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: rgba(0, 0, 0, 0.74);
  padding: 0.3125rem 0.625rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 560;
  line-height: 1rem;
  letter-spacing: 0;
  box-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.025);
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}

.job-chat-extension-button:hover {
  border-color: rgba(0, 0, 0, 0.18);
  background: #ffffff;
  color: #111111;
  cursor: url("data:image/svg+xml,%3Csvg%20width%3D%2228%22%20height%3D%2228%22%20viewBox%3D%220%200%2028%2028%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M10.5%2023.5c-2.4-2.3-3.9-5-4.4-8.1l-.4-2.1c-.2-.9.4-1.7%201.3-1.8.7-.1%201.4.3%201.7%201l.6%201.6V6.2c0-.9.7-1.6%201.6-1.6s1.6.7%201.6%201.6v6.3-8c0-.9.7-1.6%201.6-1.6s1.6.7%201.6%201.6v8-6.6c0-.9.7-1.6%201.6-1.6s1.6.7%201.6%201.6v7.2-4.5c0-.9.7-1.6%201.6-1.6s1.6.7%201.6%201.6v7.9c0%204.6-2.8%207.9-7.3%207.9h-4z%22%20fill%3D%22white%22%20stroke%3D%22black%22%20stroke-width%3D%221.4%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E") 7 2, pointer;
  box-shadow: 0 0.1875rem 0.5rem rgba(0, 0, 0, 0.055);
  transform: translateY(-0.03125rem);
}

.job-chat-extension-button:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.24);
  outline-offset: 2px;
}

.job-chat-composer {
  grid-row: 3;
  width: min(100% - 2rem, 50rem);
  min-height: 3rem;
  margin: 0 auto 0.875rem;
  padding: 0.375rem 0.4375rem 0.375rem 0.8125rem;
}

.job-chat-composer.is-disabled {
  opacity: 0.62;
}

.job-chat-composer-plus,
.job-chat-send-button {
  appearance: none;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  font: inherit;
  padding: 0;
}

.job-chat-composer-plus {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: transparent;
  color: #111111;
}

.job-chat-composer-plus:disabled {
  color: #111111;
  opacity: 1;
}

.job-chat-composer-plus svg {
  width: 1.25rem;
  height: 1.25rem;
}

.job-chat-composer textarea {
  width: 100%;
  min-height: 1.5rem;
  max-height: 8rem;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding: 0.125rem 0;
  resize: none;
  overflow-y: auto;
}

.job-chat-composer textarea::placeholder {
  color: rgba(0, 0, 0, 0.44);
}

.job-chat-composer textarea:focus {
  outline: 0;
  box-shadow: none;
}

.job-chat-composer textarea:disabled {
  background: transparent;
  color: rgba(0, 0, 0, 0.44);
}

.job-chat-composer-controls {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.job-chat-send-button {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: #050505;
  color: #ffffff;
  transition:
    transform 140ms ease,
    background 140ms ease,
    opacity 140ms ease;
}

.job-chat-send-button:disabled {
  background: rgba(0, 0, 0, 0.13);
  color: rgba(0, 0, 0, 0.42);
  opacity: 1;
  cursor: default;
}

.job-chat-composer.has-question .job-chat-send-button:not(:disabled) {
  cursor: pointer;
}

.job-chat-composer.has-question .job-chat-send-button:not(:disabled):hover {
  background: #111111;
  transform: translateY(-0.03125rem);
}

.job-chat-send-button svg {
  position: absolute;
  width: 1.0625rem;
  height: 1.0625rem;
  transition: transform 140ms ease;
}

.job-chat-send-icon {
  transform: translateY(0) scale(1);
}

.job-chat-composer.has-question .job-chat-send-icon {
  transform: translateY(-0.03125rem) scale(1);
}

.job-chat-stop-icon {
  display: none;
}

.job-chat-send-button[data-mode="stop"] {
  background: #050505;
  color: #ffffff;
  cursor: pointer;
}

.job-chat-send-button[data-mode="stop"]:hover {
  background: #111111;
}

.job-chat-send-button[data-mode="stop"] .job-chat-send-icon {
  display: none;
}

.job-chat-send-button[data-mode="stop"] .job-chat-stop-icon {
  display: block;
}

.job-chat-main > .job-message {
  grid-row: 4;
  width: min(100% - 2rem, 56rem);
  margin: 0 auto 1rem;
}

.job-page :is(#job-report-view, #job-notes-view),
.job-page :is(#job-report-view, #job-notes-view) .job-section,
.job-page :is(#job-report-view, #job-notes-view) .job-brief,
.job-page :is(#job-report-view, #job-notes-view) .job-brief > div,
.job-page :is(#job-report-view, #job-notes-view) .job-brief p,
.job-page :is(#job-report-view, #job-notes-view) .job-brief h3,
.job-page :is(#job-report-view, #job-notes-view) .job-brief ul,
.job-page :is(#job-report-view, #job-notes-view) .job-brief ol,
.job-page :is(#job-report-view, #job-notes-view) .job-brief li,
.job-page :is(#job-report-view, #job-notes-view) .research-markdown-list,
.job-page :is(#job-report-view, #job-notes-view) .research-markdown-list > li {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.job-page :is(#job-report-view, #job-notes-view) .job-brief li {
  hyphens: auto;
}

.job-page :is(#job-report-view, #job-notes-view) .job-brief p,
.job-page :is(#job-report-view, #job-notes-view) .job-brief h3,
.job-page :is(#job-report-view, #job-notes-view) .job-brief ul,
.job-page :is(#job-report-view, #job-notes-view) .job-brief ol,
.job-page :is(#job-report-view, #job-notes-view) .research-markdown-list {
  max-width: 100%;
}

.job-page :is(#job-report-view, #job-notes-view) .research-table tbody tr td {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.job-page :is(#job-report-view, #job-notes-view) .research-table td a {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

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

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

.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-wide tbody {
  display: grid;
  gap: 0;
  width: 100%;
}

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

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

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-table-wide td {
  display: grid;
  grid-template-columns: minmax(7.75rem, 13rem) minmax(0, 1fr);
  gap: 1.25rem;
  justify-self: stretch;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  padding: 0.3125rem 0;
  border: 0;
  color: #111111;
  font-size: 0.875rem;
  line-height: 1.3125rem;
  overflow-wrap: anywhere;
  hyphens: none;
  vertical-align: top;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-table-wide td::before {
  content: attr(data-label);
  min-width: 0;
  color: rgba(0, 0, 0, 0.48);
  font-size: 0.75rem;
  font-weight: 560;
  line-height: 1.125rem;
  overflow-wrap: anywhere;
}

.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%;
  color: #111111;
  overflow-wrap: anywhere;
}

.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-record-tables {
  display: grid;
  gap: 0.875rem;
  width: 100%;
  max-width: 100%;
  margin: 0.875rem 0 1.125rem;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-wrapper {
  max-width: 100%;
  margin: 0.75rem 0 1rem;
  border: 1px solid rgba(0, 0, 0, 0.095);
  border-radius: 0.375rem;
  overflow-x: auto;
  padding: 0;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table {
  min-width: 58rem;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.75rem;
  line-height: 1.0625rem;
}

.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 thead tr th,
.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table tbody tr td {
  min-width: 0;
  padding: 0.3125rem 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: #111111;
  font-size: 0.75rem;
  line-height: 1.0625rem;
  letter-spacing: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  vertical-align: top;
  white-space: normal;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table thead tr th {
  background: rgba(0, 0, 0, 0.018);
  color: rgba(0, 0, 0, 0.58);
  font-weight: 560;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table tbody tr:last-child td {
  border-bottom: 0;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table tbody tr:hover td {
  background: rgba(0, 0, 0, 0.018);
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table th:nth-child(1),
.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table td:nth-child(1) {
  width: 7.25rem;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table th:nth-child(2),
.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table td:nth-child(2) {
  width: 5.75rem;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table th:nth-child(3),
.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table td:nth-child(3) {
  width: 5.25rem;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table th:nth-child(4),
.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table td:nth-child(4) {
  width: 9rem;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table th:nth-child(5),
.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table td:nth-child(5) {
  width: 5.75rem;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table .source-ref-list {
  margin-left: 0;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-source-coverage-table .source-ref {
  max-width: 6.25rem;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-record {
  display: grid;
  gap: 0.375rem;
  min-width: 0;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-record-kicker {
  color: #8f8f8f;
  font-size: 0.75rem;
  font-weight: 560;
  line-height: 1rem;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-record-table {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.105);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0.375rem;
  table-layout: fixed;
  overflow: hidden;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-record-table tr + tr {
  border-top: 0;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-record-table tr + tr th,
.job-page :is(#job-report-view, #job-notes-view) .research-markdown-record-table tr + tr td {
  border-top: 1px solid rgba(0, 0, 0, 0.075);
}

.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 {
  min-width: 0;
  padding: 0.5rem 0.625rem;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-record-table th {
  width: 11.25rem;
  border-right: 1px solid rgba(0, 0, 0, 0.085);
  color: #111111;
  font-size: 0.875rem;
  font-weight: 560;
  line-height: 1.25rem;
  text-align: left;
}

.job-page :is(#job-report-view, #job-notes-view) .research-markdown-record-table td {
  color: #111111;
  font-size: 0.875rem;
  font-weight: 460;
  line-height: 1.3125rem;
}

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

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

@keyframes global-chat-shell-in {
  from {
    opacity: 0.72;
    transform: translateY(0.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes job-chat-modal-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes job-chat-modal-backdrop-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes job-chat-modal-panel-in {
  from {
    opacity: 0;
    transform: translate3d(0, 0.375rem, 0) scale(0.992);
  }
  45% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes job-chat-modal-panel-out {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 0.25rem, 0) scale(0.996);
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root),
  ::view-transition-new(root),
  ::view-transition-old(researcher-chat-composer),
  ::view-transition-new(researcher-chat-composer) {
    animation-duration: 1ms;
    animation-name: none;
  }

  .global-chat-shell,
  .home-start-composer,
  .home-chat-modal-layer,
  .home-chat-modal,
  .job-chat-citation-grid,
  .job-chat-workspace-header,
  .job-chat-header-sidebar,
  .job-chat-header-sidebar-title,
  .job-chat-workspace-body,
  .job-chat-sessions,
  .job-chat-modal-open .job-chat-view,
  .job-chat-modal-open .job-chat-workspace,
  .job-chat-modal-closing .job-chat-view,
  .job-chat-modal-closing .job-chat-workspace {
    animation: none;
    transition-duration: 1ms;
  }
}

@media (max-width: 760px) {
  .global-chat-nav {
    min-height: 3.25rem;
    gap: 0.625rem;
    padding: 0.8125rem 1rem;
    font-size: 0.75rem;
  }

  .global-chat-nav .brand-mark {
    display: none;
  }

  .global-chat-page {
    grid-template-columns: 1fr;
  }

  .global-chat-app.is-embedded .global-chat-page {
    grid-template-columns: 1fr;
  }

  .global-chat-sidebar {
    display: none;
  }

  .home-chat-modal-layer {
    padding: 0.5rem;
  }

  .home-chat-modal {
    width: 100%;
    height: min(100%, calc(100dvh - 1rem));
    border-radius: 0.625rem;
  }

  .job-run-agent-prompts {
    grid-template-columns: 1fr;
  }

  .job-chat-view {
    padding: 0;
  }

  .job-chat-route .job-shell {
    padding: 0;
  }

  .job-chat-route .job-chat-view {
    min-height: 100vh;
  }

  .job-chat-workspace {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .job-chat-sidebar-open .job-chat-workspace-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .job-chat-header-sidebar {
    min-height: 3.25rem;
    padding: 0.625rem 0.5rem 0.625rem 0.75rem;
  }

  .job-chat-sidebar-open .job-chat-header-sidebar {
    border-right: 0;
  }

  .job-chat-header-sidebar-title {
    display: none;
  }

  .job-chat-route .job-chat-workspace {
    height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .job-chat-workspace-body {
    grid-template-columns: 1fr;
  }

  .job-chat-sessions {
    max-height: 12rem;
    border-right: 0;
    border-bottom: 1px solid var(--soft-line);
  }

  .job-chat-modal-open:not(.job-chat-sidebar-open) .job-chat-sessions {
    display: none;
  }

  .job-chat-composer,
  .job-chat-source-context,
  .job-chat-main > .job-message {
    width: calc(100% - 1rem);
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }

  .job-chat-source-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .job-chat-source-card-actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }

  .job-chat-composer {
    min-height: 2.875rem;
    padding: 0.34375rem 0.40625rem 0.34375rem 0.6875rem;
  }

  .job-chat-composer textarea {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .job-chat-composer-plus {
    width: 1.625rem;
    height: 1.625rem;
  }

  .job-chat-composer-plus svg {
    width: 1.1875rem;
    height: 1.1875rem;
  }

  .job-chat-send-button {
    width: 2.125rem;
    height: 2.125rem;
  }
}

.job-source-dialog-body {
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: rgba(0, 0, 0, 0.82);
}
.stored-source-reader {
  max-width: 42rem;
  margin-inline: auto;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.58;
  overflow-wrap: anywhere;
}
.stored-source-reader-content {
  display: grid;
  gap: 0.75rem;
}
.stored-source-reader p,
.stored-source-reader ul,
.stored-source-reader ol {
  margin: 0;
}
.stored-source-reader h3 {
  margin: 0.5rem 0 0;
  color: #111111;
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.35;
  letter-spacing: -0.008rem;
}
.stored-source-reader ul,
.stored-source-reader ol {
  padding-left: 1.35rem;
}
.stored-source-reader li {
  margin: 0;
  padding-left: 0.125rem;
}
.stored-source-reader li::marker {
  color: rgba(0, 0, 0, 0.42);
}
.stored-source-reader a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.28);
  text-underline-offset: 0.16em;
}
.stored-source-json {
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid var(--soft-line);
  border-radius: 0.625rem;
  padding: 0.875rem 1rem;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125rem;
  line-height: 1.4rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Run-not-found — when a /r/ link points at no run, we reuse the home
   "skill cartridge" as an empty slot: the cartridge is ejected, its slot LED
   glows red, and the label reads "Run not found". The base cartridge chrome,
   holo window, and deck come from skill-cartridges.css. */

/* Skill cartridges — the Researcher skill as a holographic game cartridge
   you slot into your agent. Replaces the v1 "Prompt your agent" buttons. */

.skill-cartridges {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 2.5rem;
  padding-top: 1.5rem;
}

.skill-cartridges-head {
  max-width: 24rem;
}

.skill-cartridges h2 {
  padding: 0;
}

.skill-cartridges .lede {
  margin-top: 0.375rem;
}

.cartridge-row {
  display: grid;
  justify-items: center;
  padding: 0.5rem 0 0.25rem;
}

.cartridge {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  min-width: 0;
}

.cartridge:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 4px;
  border-radius: 12px;
}

.cartridge-bay {
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
}

/* ---- the cartridge body: hypermetal chrome ---- */

.cartridge-shell {
  position: relative;
  z-index: 2;
  width: 22rem;
  max-width: 100%;
  display: grid;
  gap: 0.625rem;
  padding: 0.75rem 0.75rem 0;
  border-radius: 14px 14px 6px 6px;
  background:
    linear-gradient(
      115deg,
      rgba(255, 184, 216, 0.34),
      rgba(168, 216, 255, 0.34) 28%,
      rgba(170, 255, 205, 0.26) 52%,
      rgba(206, 178, 255, 0.34) 76%,
      rgba(255, 190, 178, 0.34)
    ),
    linear-gradient(180deg, #eef0f4, #a9b0bd 42%, #e6e9ee 58%, #7e8595);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    inset 1px 0 0 rgba(255, 255, 255, 0.45),
    0 0 0 1px rgba(20, 24, 38, 0.1),
    0 12px 28px rgba(0, 0, 0, 0.16);
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cartridge-grip {
  height: 0.5rem;
  border-radius: 999px;
  background: repeating-linear-gradient(
    90deg,
    rgba(20, 24, 38, 0.22) 0 0.375rem,
    rgba(255, 255, 255, 0) 0.375rem 0.75rem
  );
}

/* ---- holographic label window ---- */

.cartridge-window {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 0.9rem;
  row-gap: 0.15rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  text-align: left;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.18),
    inset 0 2px 6px rgba(0, 0, 0, 0.22);
}

.cartridge-holo {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.22) 0 2px,
      rgba(255, 255, 255, 0) 2px 7px
    ),
    conic-gradient(
      from 210deg at 50% 120%,
      #ffd6e8,
      #d6ecff 18%,
      #d4ffe3 36%,
      #fff6cf 52%,
      #e8d6ff 70%,
      #ffd9d2 86%,
      #ffd6e8
    );
  filter: saturate(1.2);
}

.cartridge-sheen {
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -45%;
  width: 45%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-14deg);
  pointer-events: none;
}

.cartridge-art {
  position: relative;
  grid-row: 1 / 3;
  align-self: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.85),
    0 3px 10px rgba(0, 0, 0, 0.3);
}

.cartridge-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cartridge-name {
  position: relative;
  align-self: end;
  color: #141414;
  font-size: 1.0625rem;
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.cartridge-kind {
  position: relative;
  align-self: start;
  color: rgba(0, 0, 0, 0.55);
  font-size: 0.5625rem;
  font-weight: 680;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---- iridescent chrome connector pins ---- */

.cartridge-pins {
  height: 0.6rem;
  margin: 0 1.25rem;
  border-radius: 2px 2px 0 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 214, 232, 0.55),
      rgba(214, 236, 255, 0.55) 30%,
      rgba(212, 255, 227, 0.5) 55%,
      rgba(232, 214, 255, 0.55) 80%,
      rgba(255, 217, 210, 0.55)
    ),
    repeating-linear-gradient(
      90deg,
      #f8f9fb 0 0.4rem,
      #b9bec9 0.4rem 0.5rem,
      #6f7480 0.5rem 0.7rem
    );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ---- the console deck it inserts into ---- */

.cartridge-deck {
  position: relative;
  z-index: 3;
  width: 24.25rem;
  max-width: 100%;
  margin-top: -0.125rem;
  display: grid;
  gap: 0.5rem;
  padding-bottom: 0.6rem;
  border: 1px solid var(--soft-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #ededeb, #fafaf9 55%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 2px 6px rgba(0, 0, 0, 0.07);
}

.cartridge-slot {
  position: relative;
  height: 1.2rem;
}

.cartridge-slot::before {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1.75rem;
  top: 50%;
  height: 0.3rem;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #131316;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.8);
}

.deck-agents {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.deck-agent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 7px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.deck-agent img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.deck-agent svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

.deck-agent-openai {
  color: #0a0a0a;
}

.deck-agent-anthropic {
  color: #d97757;
}

.cartridge-slot-led {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  width: 0.3rem;
  height: 0.3rem;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  transition: background 200ms ease, box-shadow 200ms ease;
}

/* ---- action line under the cartridge ---- */

.cartridge-action {
  display: grid;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1rem;
  white-space: nowrap;
}

.cartridge-action .copy-label,
.cartridge-action .copied-label {
  grid-area: 1 / 1;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.cartridge-action .copy-label {
  color: rgba(0, 0, 0, 0.52);
}

.cartridge-action .copied-label {
  color: var(--success-color);
  opacity: 0;
  transform: translateY(0.25rem);
  pointer-events: none;
}

.cartridge-action .copied-label::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.65rem;
  margin-right: 0.35rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(42deg) translateY(-0.05rem);
}

/* ---- hover: lift, shimmer, sheen sweep ---- */

.cartridge:hover .cartridge-shell,
.cartridge:focus-visible .cartridge-shell {
  transform: translateY(-0.375rem) rotate(-1.2deg);
}

.cartridge:hover .cartridge-holo,
.cartridge:focus-visible .cartridge-holo {
  animation: cartridge-holo-shift 2.8s linear infinite;
}

.cartridge:hover .cartridge-sheen,
.cartridge:focus-visible .cartridge-sheen {
  animation: cartridge-sheen-sweep 1.6s ease-in-out infinite;
}

@keyframes cartridge-holo-shift {
  to {
    filter: saturate(1.2) hue-rotate(360deg);
  }
}

@keyframes cartridge-sheen-sweep {
  0% {
    left: -45%;
  }
  60%,
  100% {
    left: 130%;
  }
}

/* ---- copied: slot the cartridge in, LED goes green ---- */

.cartridge[data-copied="true"] .cartridge-shell {
  transform: translateY(0.55rem);
  transition-timing-function: cubic-bezier(0.32, 0, 0.67, 0);
  transition-duration: 180ms;
}

.cartridge[data-copied="true"] .cartridge-holo {
  animation: cartridge-holo-shift 0.9s linear infinite;
}

.cartridge[data-copied="true"] .cartridge-slot-led {
  background: var(--success-color);
  box-shadow: 0 0 6px 1px rgba(101, 196, 102, 0.7);
}

.cartridge[data-copied="true"] .cartridge-action .copy-label {
  opacity: 0;
  transform: translateY(-0.25rem);
}

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

/* ---- layout + motion preferences ---- */

@media (max-width: 720px) {
  .skill-cartridges {
    grid-template-columns: 1fr;
  }

  .cartridge-shell,
  .cartridge-deck {
    max-width: 18rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cartridge-shell,
  .cartridge-action .copy-label,
  .cartridge-action .copied-label {
    transition: none;
  }

  .cartridge:hover .cartridge-shell,
  .cartridge:focus-visible .cartridge-shell,
  .cartridge[data-copied="true"] .cartridge-shell {
    transform: none;
  }

  .cartridge:hover .cartridge-holo,
  .cartridge:focus-visible .cartridge-holo,
  .cartridge[data-copied="true"] .cartridge-holo,
  .cartridge:hover .cartridge-sheen,
  .cartridge:focus-visible .cartridge-sheen {
    animation: none;
  }
}

.run-not-found {
  display: grid;
  justify-items: center;
  gap: 1.75rem;
  padding: 2.5rem 1rem 3rem;
  text-align: center;
}

/* the ejected cartridge sitting above its empty deck */
.run-not-found-cartridge {
  width: 22rem;
  max-width: 100%;
}

/* lift + tilt the shell out of the slot, dim the holo so it reads "powered down" */
.run-not-found-cartridge .cartridge-shell {
  transform: translateY(-0.5rem) rotate(-1.6deg);
}

.run-not-found-cartridge .cartridge-holo {
  filter: saturate(0.65) brightness(0.92);
}

/* slot LED goes red: no cartridge seated */
.run-not-found-cartridge .cartridge-slot-led {
  background: var(--danger-color);
  box-shadow: 0 0 6px 1px rgba(234, 50, 35, 0.6);
}

/* the "?" art plate */
.run-not-found-art {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #20242e, #11141b);
  color: rgba(255, 255, 255, 0.92);
}

.run-not-found-art svg {
  width: 2rem;
  height: 2rem;
  display: block;
}

.run-not-found-copy {
  display: grid;
  gap: 0.625rem;
  max-width: 30rem;
}

.run-not-found-copy h2 {
  margin: 0;
  padding: 0;
  font-size: 1.375rem;
  font-weight: 680;
  letter-spacing: -0.01em;
  color: var(--heading-color);
}

.run-not-found-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.run-not-found-copy code {
  font-family: var(--font-code);
  font-size: 0.875em;
  color: var(--body-color);
  background: var(--soft-line);
  border-radius: 5px;
  padding: 0.05em 0.4em;
  word-break: break-all;
}

.run-not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.run-not-found-action {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 560;
  line-height: 1;
  text-decoration: none;
  border: 1px solid var(--soft-line);
  color: var(--body-color);
  background: #ffffff;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.run-not-found-action:hover {
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.run-not-found-action-primary {
  border-color: transparent;
  background: var(--body-color);
  color: var(--body-bg);
}

.run-not-found-action-primary:hover {
  background: #000;
}

.run-not-found-action:focus-visible {
  outline: 2px solid var(--focus-color);
  outline-offset: 2px;
}

/* when the run is missing, drop the run header chrome so the cartridge stands alone */
.job-page.is-run-missing .job-header,
.job-page.is-run-missing #job-message,
.job-page.is-run-missing #job-error {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .run-not-found-action {
    transition: none;
  }
}

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

  .job-page .job-header {
    flex-direction: column;
    gap: 0.75rem;
  }

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

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

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

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

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

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

  .job-page .job-header-actions {
    width: auto;
    max-width: 100%;
    align-self: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

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

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

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

  .job-page .job-summary {
    grid-template-columns: 1fr;
    margin-top: 0.75rem;
  }

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

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

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

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

  .job-page .job-run-agent-prompts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .job-page .job-run-agent-prompts .agent-channel-button {
    width: 100%;
    min-width: 0;
    gap: 0.375rem;
    padding-inline: 0.375rem;
  }

  .job-page .job-run-agent-prompts .agent-channel-icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .job-page .job-run-agent-prompts .agent-channel-button strong,
  .job-page .job-run-agent-prompts .agent-channel-button small {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }

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

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

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

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

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

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

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

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

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

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

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

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

@media screen and (max-width: 360px) {
  .job-page .job-run-agent-prompts {
    grid-template-columns: 1fr;
  }
}
