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

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

/*
 * Single source of truth for the home + signed-in dashboard component styles.
 * styles/home.css is the canonical superset of every home/* leaf; account now
 * has its own slim account-page.css entrypoint.
 */
.harness-diagram {
  display: grid;
  gap: 0.75rem;
}

.home-start-run {
  padding-top: 1rem;
}

.home-auth-pending #home-marketing-shell {
  display: none;
}

.home-auth-pending .site-nav {
  visibility: hidden;
}

.runs-auth-page.home-auth-pending .site-nav {
  visibility: visible;
}

.home-page:not(.home-authenticated) [data-chat-nav] {
  display: none;
}

.home-authenticated #home-marketing-shell {
  display: none;
}

.home-auth-pending main,
.home-authenticated main {
  width: min(100%, var(--researcher-page-width, 64rem));
}

.home-auth-pending article,
.home-authenticated article {
  width: 100%;
  max-width: none;
}

.signed-in-home {
  display: grid;
  gap: 0;
  padding-top: 2.5rem;
}

.signed-in-home-start {
  width: 100%;
}

.signed-in-home-runs {
  padding-top: 2rem;
}

/* Runs | Topics tabs — section-label typography with active/inactive states. */
.signed-in-home-tabs {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.signed-in-home-tab {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 0 0.75rem;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 520;
  letter-spacing: 0;
  line-height: 1rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms ease;
}

.signed-in-home-tab:hover {
  color: rgba(0, 0, 0, 0.74);
}

.signed-in-home-tab.is-active {
  color: #111111;
}

/* Compact new-topic affordance so the heading height matches both tabs. */
.signed-in-home-runs .account-section-heading .account-secondary-link {
  margin-top: -0.25rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
}

.runs-auth-state {
  display: grid;
  gap: 0.5rem;
  max-width: 32rem;
  padding-top: 2.5rem;
}

.runs-auth-title {
  margin: 0;
  color: #111111;
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.55rem;
  letter-spacing: 0;
}

.runs-auth-detail {
  margin: 0;
  color: var(--muted-text);
  font-size: 0.9375rem;
  line-height: 1.45rem;
}

.runs-auth-action {
  justify-self: start;
  margin-top: 0.5rem;
}

.signed-in-home-start .chat-attachment-list {
  width: 100%;
}

.platform-stats-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 0.5rem;
  background: #ffffff;
}

.platform-stat {
  display: grid;
  align-content: start;
  gap: 0.1875rem;
  min-width: 0;
  padding: 0.875rem 1rem;
}

.platform-stat + .platform-stat {
  border-left: 1px solid var(--soft-line);
}

.platform-stat-label,
.platform-stat-detail {
  min-width: 0;
  overflow: hidden;
  color: var(--muted-text);
  font-size: 0.75rem;
  line-height: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-stat-value {
  min-width: 0;
  overflow: hidden;
  color: #111111;
  font-size: 1.1875rem;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  line-height: 1.5rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 52rem) {
  .runs-auth-page .site-nav {
    grid-template-columns: auto 1fr auto;
  }

  .runs-auth-page .site-nav span,
  .runs-auth-page .site-nav a[href="/pricing/"],
  .runs-auth-page .site-nav a[href="/api/"],
  .runs-auth-page .site-nav [data-account-nav] {
    display: none;
  }

  .platform-stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-stat {
    border-top: 1px solid var(--soft-line);
  }

  .platform-stat:nth-child(-n + 2) {
    border-top: 0;
  }

  .platform-stat:nth-child(odd) {
    border-left: 0;
  }
}

@media (max-width: 34rem) {
  .platform-stats-strip {
    grid-template-columns: 1fr;
  }

  .platform-stat,
  .platform-stat:nth-child(-n + 2) {
    border-top: 1px solid var(--soft-line);
  }

  .platform-stat:first-child {
    border-top: 0;
  }

  .platform-stat + .platform-stat {
    border-left: 0;
  }
}

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

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

.home-chat-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(248, 248, 247, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 1rem;
}

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

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

.home-chat-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 64rem);
  height: min(100%, calc(100dvh - 2rem));
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow:
    0 0.75rem 1.75rem rgba(0, 0, 0, 0.06),
    0 0.0625rem 0.125rem rgba(0, 0, 0, 0.04);
}

.home-chat-modal-layer.is-open .home-chat-modal {
  animation: job-chat-modal-panel-in 210ms cubic-bezier(0.215, 0.61, 0.355, 1) both;
  will-change: transform, opacity;
}

.home-chat-modal-layer.is-closing .home-chat-modal {
  animation: job-chat-modal-panel-out 160ms cubic-bezier(0.215, 0.61, 0.355, 1) both;
  will-change: transform, opacity;
}

.home-chat-modal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.75rem;
  border-bottom: 1px solid var(--soft-line);
  padding: 0.75rem 0.875rem;
}

.home-chat-modal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  height: auto;
  color: #111111;
  font-size: 0.875rem;
  font-weight: 620;
  line-height: 1.25rem;
  text-decoration: none;
}

.home-chat-modal-header h2 {
  margin: 0.0625rem 0 0;
  color: #111111;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.1875rem;
}

.home-chat-modal-close {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 1.875rem;
  height: 1.875rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(0, 0, 0, 0.48);
  padding: 0;
  cursor: pointer;
}

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

.home-chat-modal-close svg {
  width: 1rem;
  height: 1rem;
}

.home-chat-modal-frame-wrap,
.home-chat-modal-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.home-chat-modal-frame {
  display: block;
  border: 0;
  background: #ffffff;
}

.harness-diagram {
  /* The diagram earns more than the 70ch text column: bleed out to its
     natural width and recenter, clamped to the viewport on small screens. */
  width: min(60rem, calc(100vw - 2.5rem));
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.harness-svg {
  display: block;
  width: 100%;
  height: auto;
  color: rgba(0, 0, 0, 0.38);
  overflow: visible;
}

.harness-node rect {
  fill: #ffffff;
  stroke: var(--soft-line);
  stroke-width: 1;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.02));
  transition: stroke 0.2s ease, fill 0.2s ease;
}

.harness-node text {
  fill: #111111;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 560;
  letter-spacing: 0;
}

.harness-node .muted-label {
  fill: rgba(0, 0, 0, 0.48);
  font-size: 12px;
  font-weight: 460;
}

.harness-output-tray rect {
  fill: rgba(0, 0, 0, 0.018);
  stroke: rgba(0, 0, 0, 0.045);
  stroke-width: 1;
}

.harness-secondary-node rect {
  fill: #fbfbfb;
  stroke: rgba(0, 0, 0, 0.07);
  filter: none;
}

.harness-secondary-node text {
  fill: rgba(0, 0, 0, 0.64);
  font-size: 12px;
  font-weight: 520;
}

.harness-link {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  marker-end: url("#arrow");
}

.secondary-link {
  stroke-dasharray: 3 4;
  color: rgba(0, 0, 0, 0.28);
}

.harness-pulse {
  fill: #111111;
  offset-rotate: 0deg;
}

.pulse-a {
  offset-path: path("M128 70H192");
  animation: harness-flow 2.4s linear infinite;
}

.pulse-b {
  offset-path: path("M324 70H388");
  animation: harness-flow 2.4s linear 0.35s infinite;
}

.pulse-c {
  offset-path: path("M540 70H604");
  animation: harness-flow 2.4s linear 0.7s infinite;
}

.pulse-d {
  offset-path: path("M680 109V192");
  animation: harness-flow 2.4s linear 1.05s infinite;
}

.pulse-e {
  offset-path: path("M604 231H540");
  animation: harness-flow 2.4s linear 1.4s infinite;
}

.pulse-f {
  offset-path: path("M388 231H324");
  animation: harness-flow 2.4s linear 1.75s infinite;
}

.pulse-g {
  offset-path: path("M192 231H128");
  animation: harness-flow 2.4s linear 2.1s infinite;
}

.pulse-loop {
  offset-path: path("M636 192C604 154 544 150 502 112");
  animation: harness-flow 3.2s linear 1.2s infinite;
}

.pulse-recall {
  offset-path: path("M92 314C60 250 110 130 220 109");
  animation: harness-flow 4.8s linear 2.4s infinite;
}

.harness-loop-label {
  fill: rgba(0, 0, 0, 0.4);
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.link-loop {
  stroke-dasharray: 3 4;
  color: rgba(0, 0, 0, 0.34);
}

.node-agent rect {
  animation: harness-node 8s ease-in-out infinite;
}

.node-plan rect {
  animation: harness-node 8s ease-in-out 1s infinite;
}

.node-acquire rect {
  animation: harness-node 8s ease-in-out 2s infinite;
}

.node-extract rect {
  animation: harness-node 8s ease-in-out 3s infinite;
}

.node-review rect {
  animation: harness-node 8s ease-in-out 4s infinite;
}

.node-merge rect {
  animation: harness-node 8s ease-in-out 5s infinite;
}

.node-report rect {
  animation: harness-node 8s ease-in-out 6s infinite;
}

.node-run rect {
  animation: harness-node 8s ease-in-out 7s infinite;
}

@keyframes harness-flow {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }

  12% {
    opacity: 0.85;
  }

  88% {
    opacity: 0.85;
  }

  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

@keyframes harness-node {
  0%,
  100% {
    fill: #ffffff;
    stroke: var(--soft-line);
  }

  45%,
  55% {
    fill: #fafafa;
    stroke: #cfcfcf;
  }
}

.prompt-stack {
  display: grid;
  gap: 0.25rem;
}

.prompt-stack .copy-command {
  margin-top: 0.5rem;
}

dl {
  width: fit-content;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 0.375rem;
  padding-top: 2.25rem;
}

dt {
  color: var(--muted);
  font-weight: 460;
}

dd {
  margin: 0;
  color: rgba(0, 0, 0, 0.65);
}

pre {
  margin-top: 0.75rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 0.5rem;
  background: #f8f8f8;
  color: #333333;
  padding: 0.875rem 1rem;
  font-family: var(--font-code);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.55;
}

.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
}

.copy-command {
  appearance: none;
  border: 1px solid var(--soft-line);
  border-radius: 0.375rem;
  background: #f8f8f8;
  color: #333333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.625rem 0.875rem;
  text-align: left;
  width: 100%;
  max-height: 2.875rem;
  overflow: hidden;
}

.copy-command code {
  display: block;
  flex: 1;
  padding: 0;
  background: none;
  color: inherit;
  font-family: var(--font-code);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  min-width: 0;
  line-height: 1.2;
  font-size: 0.8125rem;
}

.copy-command code::before {
  display: none;
}

.copy-command:hover {
  border-color: #e5e5e5;
}

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

.copy-command-icon {
  flex-shrink: 0;
  color: rgba(0, 0, 0, 0.5);
}

.copy-command[data-copied="true"] .copy-command-icon {
  color: #22c55e;
}

.copy-command-copy,
.copy-command-check {
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.copy-command-copy {
  opacity: 1;
  transform: scale(1);
}

.copy-command-check {
  opacity: 0;
  transform: scale(0.8);
}

.copy-command[data-copied="true"] .copy-command-copy {
  opacity: 0;
  transform: scale(0.8);
}

.copy-command[data-copied="true"] .copy-command-check {
  opacity: 1;
  transform: scale(1);
}

.features-grid .feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
  padding-top: 1rem;
  list-style: none;
}

.features-grid .feature-list li {
  border: 1px solid var(--soft-line);
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0.75rem 0.875rem;
  font-family: var(--font-primary);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.features-grid .feature-list h3 {
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111111;
}

.features-grid .feature-list p {
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.68);
}

.features-grid .feature-list code {
  font-size: 0.7rem;
}

.example-runs + .features-grid {
  padding-top: 2.75rem;
}

.example-runs {
  padding-top: 2.5rem;
}

@media (max-width: 32rem) {
  .features-grid .feature-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.example-runs .example-list {
  display: grid;
  gap: 0.5rem;
  padding-top: 1rem;
  list-style: none;
}

.example-runs .example-list li {
  padding: 0;
}

.example-runs .example-list a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 1px solid var(--soft-line);
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0.75rem 0.875rem;
  text-decoration: none;
  color: inherit;
  font-family: var(--font-primary);
  transition: border-color 120ms ease, background 120ms ease;
}

.example-runs .example-list a:hover,
.example-runs .example-list a:focus-visible {
  border-color: rgba(0, 0, 0, 0.32);
  background: #fafafa;
}

.example-runs .example-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #111111;
  line-height: 1.3;
}

.example-runs .example-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.deliverables {
  padding-top: 2.5rem;
}

.deliverables h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #111111;
}

.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem;
  padding-top: 1rem;
}

.deliverable {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  border: 1px solid var(--soft-line);
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0.875rem 1rem 1rem;
  font-family: var(--font-primary);
}

.deliverable h3 {
  padding: 0.125rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111111;
}

.deliverable p {
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.68);
}

.deliverable-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4375rem;
  min-height: 6.6875rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.375rem;
  background: rgba(0, 0, 0, 0.015);
  padding: 0.625rem 0.6875rem;
}

.deliverable-line {
  display: block;
  width: var(--w, 100%);
  height: 0.25rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
}

.deliverable-line.is-heading {
  width: 52%;
  height: 0.375rem;
  background: rgba(0, 0, 0, 0.32);
}

.deliverable-row {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  min-width: 0;
}

.deliverable-row .deliverable-line {
  flex: 0 1 var(--w, 100%);
}

.deliverable-tag {
  flex: 0 0 auto;
  min-width: 2.625rem;
  text-align: center;
  border: 1px solid var(--soft-line);
  border-radius: 0.25rem;
  background: #ffffff;
  padding: 0 0.25rem;
  font-size: 0.5625rem;
  font-weight: 600;
  line-height: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.55);
}

.deliverable-visual-stack {
  position: relative;
  z-index: 0;
  margin: 0 0.375rem 0.375rem 0;
  min-height: 6.3125rem;
  background: #ffffff;
}

.deliverable-visual-stack::before,
.deliverable-visual-stack::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.375rem;
  background: #ffffff;
}

.deliverable-visual-stack::before {
  transform: translate(0.1875rem, 0.1875rem);
}

.deliverable-visual-stack::after {
  transform: translate(0.375rem, 0.375rem);
}

.deliverable-file {
  display: block;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.625rem;
  line-height: 1rem;
  color: rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deliverable-file em {
  font-style: normal;
  color: var(--muted);
}

@media (max-width: 40rem) {
  .deliverable-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .deliverable-visual {
    min-height: 0;
  }
}

.auth-panel {
  display: grid;
  gap: 0.875rem;
}

.auth-panel label {
  display: grid;
  gap: 0.375rem;
  color: rgba(0, 0, 0, 0.72);
  font-size: 0.8125rem;
  font-weight: 520;
  line-height: 1.25rem;
}

.auth-panel input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--soft-line);
  border-radius: 0.5rem;
  background: #ffffff;
  color: #111111;
  padding: 0.625rem 0.75rem;
  font: inherit;
  letter-spacing: 0;
}

.auth-panel button {
  width: fit-content;
  border: 1px solid #111111;
  border-radius: 0.5rem;
  background: #111111;
  color: #ffffff;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 560;
  cursor: pointer;
}

.auth-panel button:disabled {
  cursor: default;
  opacity: 0.55;
}

.capability-cards {
  padding-top: 2.5rem;
}

.capability-cards h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #111111;
}

.capability-cards .lede {
  padding-top: 0.25rem;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
  padding-top: 0.625rem;
}

.capability-card {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  border: 1px solid var(--soft-line);
  border-radius: 0.5rem;
  background: #ffffff;
  padding: 0.875rem 1rem 1rem;
  font-family: var(--font-primary);
  min-width: 0;
}

.capability-card-wide {
  margin-top: 1rem;
}

.capability-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
}

.capability-card-head h3 {
  display: block;
  justify-self: start;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111111;
}

.capability-card-head .capability-card-meta,
.capability-card-head .status-pill {
  justify-self: end;
}

.capability-card-meta {
  font-size: 0.6875rem;
  color: var(--muted);
  white-space: nowrap;
}

.capability-card > p {
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.68);
}

/* --- shared demo chrome ------------------------------------------------ */

.capability-demo {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0.4375rem;
  background: rgba(0, 0, 0, 0.015);
  padding: 0.625rem 0.6875rem;
  overflow: hidden;
}

.capability-url {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
  align-self: flex-start;
  max-width: 100%;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: #ffffff;
  padding: 0.1875rem 0.5625rem 0.1875rem 0.4375rem;
  font-size: 0.6875rem;
  line-height: 1rem;
  color: rgba(0, 0, 0, 0.62);
}

.capability-url svg {
  flex: 0 0 auto;
  width: 0.8125rem;
  height: 0.8125rem;
}

.capability-url span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- article / video extraction rows ----------------------------------- */

.capability-extract {
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
}

.capability-extract-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  line-height: 1rem;
  color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  animation: capability-row-in 9s ease infinite;
}

.capability-extract-row .capability-count {
  flex: 0 0 auto;
  min-width: 1.375rem;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #111111;
}

.capability-extract-row .capability-bar {
  flex: 1 1 auto;
  height: 1px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.capability-extract-row .capability-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #111111;
  transform: scaleX(var(--fill, 0.6));
  transform-origin: left;
}

.capability-extract-row:nth-child(1) { animation-delay: 0.4s; }
.capability-extract-row:nth-child(2) { animation-delay: 1s; }
.capability-extract-row:nth-child(3) { animation-delay: 1.6s; }
.capability-extract-row:nth-child(4) { animation-delay: 2.2s; }

@keyframes capability-row-in {
  0% { opacity: 0; transform: translateY(0.1875rem); }
  6%, 86% { opacity: 1; transform: translateY(0); }
  94%, 100% { opacity: 0; transform: translateY(0); }
}

.capability-quote {
  border-left: 2px solid rgba(0, 0, 0, 0.14);
  padding: 0.0625rem 0 0.0625rem 0.5625rem;
  font-family: var(--font-serif, Newsreader, serif);
  font-size: 0.75rem;
  font-style: italic;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.66);
  opacity: 0;
  animation: capability-row-in 9s ease infinite;
  animation-delay: 2.9s;
}

.capability-quote .capability-quote-attribution {
  display: block;
  padding-top: 0.1875rem;
  font-family: var(--font-primary);
  font-size: 0.625rem;
  font-style: normal;
  color: var(--muted);
}

.capability-timestamp {
  display: inline-block;
  border-radius: 0.25rem;
  background: rgba(36, 128, 237, 0.07);
  color: rgba(29, 78, 216, 0.72);
  padding: 0 0.25rem;
  font-family: var(--font-primary);
  font-size: 0.625rem;
  font-style: normal;
  font-weight: 600;
  line-height: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

/* --- deep research mock run --------------------------------------------- */

.capability-run-demo {
  gap: 0;
  padding: 0.125rem 0.6875rem 0.5625rem;
}

.capability-run-demo .job-progress {
  padding-top: 0.875rem;
  padding-bottom: 0.75rem;
}

.capability-run-demo .job-progress .job-progress-step-button {
  cursor: default;
}

.capability-run-stats {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  font-size: 0.6875rem;
  line-height: 1rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.capability-run-stats strong {
  font-weight: 600;
  color: #111111;
}

.capability-run-stats .capability-run-stat-sep {
  color: rgba(0, 0, 0, 0.24);
}

@media (max-width: 32rem) {
  .capability-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .capability-run-demo .job-progress ol {
    gap: 0.4375rem;
  }

  .capability-run-demo .job-progress li {
    font-size: 0.5625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .capability-extract-row,
  .capability-quote {
    animation: none;
    opacity: 1;
  }
}

/* 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;
  }
}

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

/*
 * Shared research-table column-width + cell rules moved to
 * /styles/tables.css (see "Shared column-width" block). Account-specific
 * styling (usage rows, status colors, action buttons) remains below.
 */

.account-usage-skeleton {
  display: block;
  height: 0.625rem;
  max-width: 100%;
  overflow: hidden;
  border-radius: 0.25rem;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.035) 0%,
    rgba(0, 0, 0, 0.07) 45%,
    rgba(0, 0, 0, 0.035) 90%
  );
  background-size: 220% 100%;
  animation: account-usage-skeleton 1.2s ease-in-out infinite;
}

.account-usage-skeleton + .account-usage-skeleton {
  margin-top: 0.375rem;
}

.account-usage-skeleton-wide {
  width: min(18rem, 78%);
}

.account-usage-skeleton-short {
  width: min(7rem, 42%);
}

.account-usage-skeleton-price {
  width: 3.75rem;
}

.account-usage-skeleton-actions {
  width: 8.5rem;
}

@keyframes account-usage-skeleton {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-usage-skeleton {
    animation: none;
  }
}

.account-usage-topic-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.account-usage-thumbnail {
  width: 3.25rem;
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.035);
  object-fit: cover;
}

.account-usage-topic,
.account-usage-time {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}

.account-usage-meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.account-usage-dot {
  color: rgba(0, 0, 0, 0.32);
  flex-shrink: 0;
}

.account-usage-title,
.account-usage-status {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
}

/* .account-status / .account-status-* colors live in
 * /styles/components/status.css */

.account-usage-price,
.account-usage-cost {
  min-width: 0;
  color: rgba(0, 0, 0, 0.58);
  font-variant-numeric: tabular-nums;
}

.account-run-id {
  color: rgba(0, 0, 0, 0.58);
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.account-run-id-button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.account-run-id-button:hover,
.account-run-id-button:focus-visible {
  color: #111111;
  text-decoration: underline;
}

.account-usage-actions {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  text-align: left;
}

.account-usage-actions-inner {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 1.5rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.account-icon-button {
  display: inline-grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.62);
  font: inherit;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

.account-icon-button:hover {
  color: #111111;
}

.account-usage-time {
  justify-items: start;
  color: rgba(0, 0, 0, 0.45);
}

.research-table-usage .account-secondary-link {
  min-width: 5.75rem;
  justify-content: center;
  padding: 0.375rem 0.625rem;
}

.research-table-usage .account-run-action {
  min-width: 3.75rem;
}

.account-error {
  color: var(--danger-color);
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.account-continuation-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.account-continuation-copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.account-continuation-copy p {
  margin: 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;
}

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

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