:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f0ea;
  color: #172024;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #2f8bff;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 14px;
  z-index: 1000;
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 8px;
  background: #172024;
  color: #ffffff;
  text-decoration: none;
  font-weight: 850;
  box-shadow: 0 16px 32px rgba(23, 32, 36, 0.22);
  transform: translateY(-150%);
  transition: transform 120ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

#main-content:focus {
  outline: none;
}

.marketing-page {
  min-height: 100vh;
  background: #f6f8f2;
  color: #172024;
}

.marketing-nav {
  --control-height: 36px;
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 58px;
  padding: 8px 34px;
  border-bottom: 1px solid rgba(23, 32, 36, 0.1);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.marketing-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #172024;
  text-decoration: none;
  font-weight: 900;
}

.angle-wordmark {
  display: inline;
  color: #111a3f;
  font-weight: 950;
  font-size: var(--brand-wordmark-size);
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-lockup .angle-wordmark {
  font-size: var(--brand-wordmark-size);
}

.brand-lockup {
  --brand-gap: 8px;
  --brand-icon-width: 40px;
  --brand-icon-height: 28px;
  --brand-wordmark-size: inherit;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--brand-gap);
  font-size: var(--brand-wordmark-size);
  white-space: nowrap;
}

.brand-lockup.marketing {
  --brand-icon-width: 42px;
  --brand-icon-height: 30px;
}

.brand-lockup.compact,
.brand-lockup.product {
  --brand-gap: 6px;
  --brand-icon-width: 30px;
  --brand-icon-height: 22px;
  --brand-wordmark-size: 14px;
}

.brand-lockup.auth {
  --brand-icon-width: 44px;
  --brand-icon-height: 31px;
  --brand-wordmark-size: 20px;
}

.brand-icon {
  width: var(--brand-icon-width);
  height: var(--brand-icon-height);
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.wordmark-purple {
  color: #7c3aed;
}

.wordmark-ink {
  color: #111a3f;
}

.wordmark-pink {
  color: #ff67c7;
}

.marketing-nav nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.marketing-nav nav a {
  color: #4f5b60;
  text-decoration: none;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 8px;
  font-weight: 800;
}

.marketing-nav nav a:hover {
  background: #e8f2f0;
  color: #172024;
}

.marketing-menu-button,
.marketing-menu-sign-in,
.marketing-menu-cta {
  display: none;
}

.marketing-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.marketing-hero {
  position: relative;
  min-height: calc(100svh - 58px);
  height: auto;
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(360px, 540px);
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding: 54px max(20px, calc((100vw - 1180px) / 2)) 48px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 34%, rgba(124, 58, 237, 0.18), transparent 32%),
    radial-gradient(circle at 70% 76%, rgba(47, 139, 255, 0.14), transparent 28%),
    linear-gradient(100deg, #fffaf0 0%, #f8f6ff 54%, #ffffff 100%);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.98) 0%, rgba(255, 250, 240, 0.88) 40%, rgba(255, 250, 240, 0.12) 78%),
    linear-gradient(0deg, rgba(246, 248, 242, 0.95) 0%, rgba(246, 248, 242, 0) 20%);
}

.marketing-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0;
}

.hero-terminal-demo {
  position: relative;
  z-index: 2;
  min-width: 0;
  width: 100%;
}

.hero-terminal-demo .agent-terminal-demo-scroll {
  min-height: 0;
}

.hero-terminal-demo .agent-terminal-demo {
  position: relative;
  top: auto;
  max-width: none;
  margin: 0;
}

.hero-terminal-demo .agent-terminal-body {
  min-height: 376px;
}

.hero-terminal-demo .agent-terminal-message p {
  font-size: 14px;
}

.marketing-hero h1 {
  margin: 10px 0 18px;
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 650;
}

.marketing-hero h1 {
  font-size: 58px;
}

.marketing-hero h1 strong {
  font-weight: 950;
}

.marketing-hero h1 span {
  display: block;
}

.marketing-hero p,
.section-copy p,
.plan-copy {
  color: #4f5b60;
  font-size: 18px;
  line-height: 1.58;
}

.marketing-hero p {
  max-width: 48ch;
}

.hero-use-cases {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 9px;
  max-width: 56ch;
}

.hero-use-cases li {
  position: relative;
  padding-left: 24px;
  color: #334247;
  font-size: 17px;
  line-height: 1.42;
  font-weight: 650;
}

.hero-use-cases li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: #7c3aed;
}

.hero-actions,
.marketing-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.agent-harness-strip {
  margin-top: 26px;
  display: grid;
  gap: 13px;
  max-width: 440px;
}

.agent-harness-label {
  color: #68767b;
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.agent-harness-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.agent-harness-list li {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.agent-harness-list img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}

.large {
  min-height: 46px;
  padding: 0 18px;
}

.full-width {
  width: 100%;
}

.marketing-band,
.pricing-intro,
.pricing-grid,
.pricing-message {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.marketing-band {
  padding: 72px 0;
}

.before-after-band {
  padding-bottom: 44px;
}

.workflow-demo-band {
  padding-top: clamp(116px, 14svh, 172px);
  padding-bottom: 72px;
  scroll-margin-top: 76px;
}

.workflow-review-demo {
  min-width: 0;
  max-width: 1180px;
  margin: 0 auto;
}

.workflow-review-demo .interactive-review-demo-scroll {
  min-height: 0;
  margin-top: 0;
  overflow: visible;
  opacity: 0;
  transform: translateY(54px);
  transition:
    opacity 520ms ease,
    transform 680ms cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform;
}

.workflow-review-demo .interactive-review-demo-scroll.review-demo-revealed {
  opacity: 1;
  transform: translateY(0);
}

.workflow-review-demo .interactive-review-demo-scale-frame {
  position: relative;
  top: auto;
  width: 100%;
  height: var(--demo-frame-height);
  overflow: hidden;
}

.workflow-review-demo .interactive-review-demo {
  width: 1180px;
  max-width: none;
  transform: scale(var(--demo-scale));
  transform-origin: top left;
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.before-after-card {
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 32px rgba(31, 38, 35, 0.08);
}

.before-after-card {
  padding: 22px;
}

.before-after-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.before-after-heading svg {
  color: #b45309;
  flex: 0 0 auto;
}

.before-after-card.positive .before-after-heading svg {
  color: #467c84;
}

.before-after-heading h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.12;
}

.before-after-card ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.before-after-card li {
  color: #4f5b60;
  line-height: 1.52;
}

.agent-terminal-demo-scroll {
  min-height: 185svh;
}

.agent-terminal-demo {
  position: sticky;
  top: max(72px, calc((100svh - 496px) / 2));
  max-width: 980px;
  margin: 0 auto;
}

.agent-terminal-window {
  overflow: hidden;
  border: 1px solid #22323a;
  border-radius: 8px;
  background: #101820;
  box-shadow: 0 24px 58px rgba(23, 32, 36, 0.2);
}

.agent-terminal-chrome {
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(226, 235, 240, 0.12);
  background: #17242d;
  color: #d9e5ea;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 850;
}

.agent-terminal-chrome em {
  min-height: 28px;
  padding: 6px 9px;
  border: 1px solid rgba(91, 211, 151, 0.38);
  border-radius: 8px;
  background: rgba(91, 211, 151, 0.1);
  color: #a7f3c9;
  font-style: normal;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
}

.agent-terminal-dots {
  display: inline-flex;
  gap: 6px;
}

.agent-terminal-dots i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff7a90;
}

.agent-terminal-dots i:nth-child(2) {
  background: #ffd166;
}

.agent-terminal-dots i:nth-child(3) {
  background: #5bd397;
}

.agent-terminal-body {
  min-height: 430px;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px) 0 0 / 34px 34px,
    #101820;
  display: grid;
  gap: 16px;
  align-content: start;
}

.agent-terminal-message {
  border: 1px solid rgba(226, 235, 240, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.agent-terminal-message.user {
  border-color: rgba(139, 211, 221, 0.3);
}

.agent-terminal-message.assistant {
  border-color: rgba(124, 58, 237, 0.26);
}

.agent-terminal-speaker {
  color: #a9bac3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.agent-terminal-speaker svg {
  color: #8bd3dd;
}

.agent-terminal-message p {
  min-height: 24px;
  margin: 0;
  color: #f4f8fb;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.agent-terminal-message.assistant p {
  color: #dbe7ed;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.agent-terminal-message.assistant p.visible {
  opacity: 1;
  transform: translateY(0);
}

.agent-terminal-thinking {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(139, 211, 221, 0.18);
  border-radius: 8px;
  background: rgba(8, 13, 18, 0.68);
  color: #8fa2ac;
  opacity: 0;
  transform: translateY(6px);
  display: flex;
  align-items: center;
  gap: 10px;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.agent-terminal-thinking.visible {
  opacity: 1;
  transform: translateY(0);
}

.agent-terminal-thinking svg {
  color: #8bd3dd;
}

.agent-terminal-thinking span {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  font-weight: 850;
}

.agent-terminal-thinking.active span {
  color: transparent;
  background:
    linear-gradient(
      90deg,
      #7f929c 0%,
      #7f929c 34%,
      #f7fbff 48%,
      #9fe6f0 55%,
      #7f929c 70%,
      #7f929c 100%
    );
  background-size: 240% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: agent-thinking-highlight 1.35s linear infinite;
}

.agent-terminal-link {
  color: #8bd3dd;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@keyframes agent-thinking-highlight {
  from {
    background-position: 120% 0;
  }

  to {
    background-position: -120% 0;
  }
}

.interactive-review-demo-scroll {
  margin-top: 22px;
  min-height: 220svh;
}

.interactive-review-demo-scale-frame {
  position: sticky;
  top: max(72px, calc((100svh - 706px) / 2));
}

.interactive-review-demo {
  position: relative;
  overflow: hidden;
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 20px 44px rgba(31, 38, 35, 0.12);
}

.demo-toolbar {
  min-height: 52px;
  padding: 8px 10px 8px 14px;
  border-bottom: 1px solid #d8d0c2;
  background: #fffaf0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.demo-toolbar-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-toolbar-title > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.demo-toolbar-title strong {
  color: #172024;
  font-size: 15px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-toolbar-title span:last-child {
  color: #5f6a68;
  font-size: 12px;
}

.demo-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.demo-toolbar-actions span {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  background: #ffffff;
  color: #172024;
  font-size: 13px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
}

.demo-review-surface {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 400px);
  height: min(720px, calc(100svh - 132px));
  min-height: 560px;
  overflow: hidden;
  background: #e8edf0;
}

.demo-document-frame {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 22px;
  background:
    linear-gradient(90deg, rgba(12, 24, 34, 0.08) 0 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(0deg, rgba(12, 24, 34, 0.08) 0 1px, transparent 1px) 0 0 / 72px 72px,
    #eef3f7;
}

.demo-document {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid #cfd8df;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(31, 38, 35, 0.13);
  transform: translateY(var(--demo-report-offset, 0px));
  will-change: transform;
}

.demo-document-scrollbar {
  position: absolute;
  top: 22px;
  right: 8px;
  bottom: 26px;
  width: 6px;
  border-radius: 999px;
  background: rgba(23, 32, 36, 0.12);
  pointer-events: none;
}

.demo-document-scrollbar span {
  display: block;
  width: 100%;
  height: 86px;
  border-radius: inherit;
  background: rgba(23, 32, 36, 0.42);
  transform: translateY(calc(var(--demo-report-scroll, 0) * 150px));
}

.demo-report-masthead {
  position: relative;
  padding: 28px 30px 24px;
  background: #243342;
  color: #fffaf0;
}

.demo-box {
  position: relative;
  border: 1px solid rgba(199, 110, 102, 0.82);
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(199, 110, 102, 0.16);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.demo-box.active {
  border-color: #c76e66;
  background: rgba(255, 250, 240, 0.03);
  box-shadow: 0 0 0 2px rgba(199, 110, 102, 0.38);
}

.title-box {
  max-width: 560px;
  padding: 8px 10px 10px;
}

.demo-report-masthead h3 {
  margin: 0;
  color: #fbf7f3;
  font-size: 48px;
  line-height: 0.98;
  letter-spacing: 0;
}

.demo-report-masthead p {
  max-width: 680px;
  margin: 12px 0 22px;
  color: #e9eef6;
  font-size: 15px;
  line-height: 1.55;
}

.demo-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(190px, 0.9fr);
  gap: 10px;
  align-items: stretch;
}

.demo-report-grid > div,
.demo-score {
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
  padding: 12px;
}

.demo-report-grid span,
.demo-score span,
.demo-metric-grid article > span,
.demo-section-label,
.demo-current-version,
.demo-panel-kicker {
  color: #718096;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.18;
  text-transform: uppercase;
}

.demo-report-grid > div span,
.demo-score span {
  color: #cbd5e1;
}

.demo-report-grid strong {
  display: block;
  margin-top: 10px;
  color: #fffaf0;
  font-size: 18px;
  line-height: 1.12;
}

.demo-score strong {
  margin-top: 8px;
  font-size: 48px;
  line-height: 0.95;
}

.demo-score small,
.demo-metric-grid small {
  color: inherit;
  font-size: 14px;
}

.demo-score p {
  margin: 8px 0 12px;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.4;
}

.demo-score i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #66d49d 0 66%, #f2bf54 66% 82%, #ef6b67 82% 92%, rgba(255, 255, 255, 0.18) 92% 100%);
}

.demo-signal-section {
  position: relative;
  margin: 0;
  padding: 26px 30px 30px;
  border: 2px solid rgba(23, 32, 36, 0.62);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(23, 32, 36, 0.08);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.demo-signal-section.active {
  border-color: #172024;
  box-shadow: inset 0 0 0 3px rgba(23, 32, 36, 0.16);
}

.demo-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dde5eb;
}

.demo-section-heading h4 {
  margin: 4px 0 0;
  color: #172024;
  font-size: 25px;
  line-height: 1.05;
}

.demo-section-heading span {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid #b6c7dd;
  border-radius: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.demo-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.demo-metric-grid article {
  position: relative;
  min-height: 174px;
  padding: 16px;
  border: 1px solid #dde5eb;
  border-radius: 8px;
  background: #ffffff;
}

.demo-metric-grid strong {
  display: block;
  margin: 16px 0 8px;
  color: #172024;
  font-size: 30px;
  line-height: 1;
}

.demo-metric-grid p {
  margin: 0;
  min-height: 54px;
  color: #607087;
  font-size: 12px;
  line-height: 1.45;
}

.spark {
  display: block;
  height: 24px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0 8%, currentColor 8% 18%, transparent 18% 26%, currentColor 26% 38%, transparent 38% 46%, currentColor 46% 58%, transparent 58% 68%, currentColor 68% 80%, transparent 80% 100%);
  opacity: 0.85;
}

.spark-a {
  color: #168f91;
}

.spark-b {
  color: #3b74df;
}

.spark-c {
  color: #b7791f;
}

.spark-d {
  color: #c2413b;
}

.demo-draft-target {
  overflow: visible;
}

.demo-draft-box {
  position: absolute;
  inset: -9px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  background: rgba(124, 58, 237, 0.08);
  transition: opacity 120ms ease;
}

.demo-draft-box.visible {
  opacity: 1;
}

.demo-draft-box::before,
.demo-draft-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  transform-origin: top left;
}

.demo-draft-box::before {
  border-top: 4px solid #7c3aed;
  border-bottom: 4px solid #7c3aed;
  transform: scaleX(var(--demo-draw-x, 0));
}

.demo-draft-box::after {
  border-right: 4px solid #7c3aed;
  border-left: 4px solid #7c3aed;
  transform: scaleY(var(--demo-draw-y, 0));
}

.demo-drag-cursor {
  position: absolute;
  left: var(--demo-cursor-x, 8%);
  top: var(--demo-cursor-y, 8%);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #172024;
  filter:
    drop-shadow(0 1px 0 #ffffff)
    drop-shadow(0 8px 12px rgba(23, 32, 36, 0.28));
  transform: translate(-2px, -2px);
}

.demo-draft-pin {
  position: absolute;
  top: -18px;
  left: -18px;
  z-index: 4;
  width: 31px;
  height: 31px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #c76e66;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 950;
  opacity: 0;
  transform: scale(0.72);
  box-shadow: 0 0 0 2px rgba(199, 110, 102, 0.78), 0 10px 18px rgba(23, 32, 36, 0.24);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.demo-draft-box.complete .demo-draft-pin {
  opacity: 1;
  transform: scale(1);
}

.demo-draft-box.complete .demo-drag-cursor {
  opacity: 0.3;
}

.demo-pin {
  position: absolute;
  z-index: 3;
  width: 30px;
  height: 30px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #172024;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(23, 32, 36, 0.7), 0 8px 16px rgba(23, 32, 36, 0.22);
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.demo-pin:hover,
.demo-pin:focus-visible,
.demo-pin.active {
  background: #c76e66;
  transform: scale(1.08);
  outline: none;
  box-shadow: 0 0 0 2px rgba(199, 110, 102, 0.7), 0 10px 20px rgba(23, 32, 36, 0.28);
}

.title-pin {
  top: 18px;
  left: 18px;
}

.signal-pin {
  top: 40px;
  left: 8px;
}

.demo-comments-panel {
  overflow: hidden;
  padding: 18px 14px;
  border-left: 1px solid #c7ced2;
  background: #d0d3d4;
}

.demo-panel-kicker {
  color: #7c3aed;
}

.demo-comments-panel h3 {
  margin: 6px 0 14px;
  color: #172024;
  font-size: 20px;
  line-height: 1.1;
}

.demo-current-version {
  display: block;
  margin-bottom: 8px;
  color: #687076;
}

.demo-comment-list {
  display: grid;
  gap: 10px;
  transform: translateY(0);
  transition: transform 180ms ease;
  will-change: transform;
}

.demo-comment-list.draft-visible {
  transform: translateY(-88px);
}

.demo-comment-card {
  position: relative;
  width: 100%;
  min-height: 154px;
  padding: 12px 12px 10px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #ffffff;
  color: #172024;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 18px rgba(31, 38, 35, 0.08);
}

.demo-comment-card.active {
  border-color: #172024;
}

.demo-draft-comment {
  min-height: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
  opacity: 0;
  overflow: hidden;
  transform: translateY(8px);
  transition:
    max-height 180ms ease,
    min-height 180ms ease,
    opacity 180ms ease,
    padding 180ms ease,
    transform 180ms ease;
}

.demo-draft-comment.visible {
  min-height: 138px;
  max-height: 220px;
  padding-top: 14px;
  padding-bottom: 12px;
  opacity: 1;
  transform: translateY(0);
}

.demo-comment-card:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.35);
  outline-offset: 2px;
}

.demo-comment-number {
  position: absolute;
  top: 12px;
  left: 10px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #172024;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 950;
}

.demo-comment-meta,
.demo-comment-tags,
.demo-steve-reply > span:first-child,
.demo-comment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-comment-meta {
  padding-left: 32px;
  color: #6b7280;
  font-size: 12px;
}

.demo-comment-meta strong,
.demo-steve-reply strong {
  color: #172024;
  font-size: 13px;
}

.demo-comment-tags {
  margin: 10px 0 8px;
  flex-wrap: wrap;
}

.demo-comment-tags em {
  padding: 3px 6px;
  border: 1px solid #9fd2d7;
  border-radius: 999px;
  color: #174e59;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.demo-gary-comment {
  display: block;
  min-height: 32px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

.demo-steve-reply {
  display: grid;
  min-height: 58px;
  margin-top: 8px;
  padding: 4px 0 4px 12px;
  border-left: 2px solid #d8d0c2;
  gap: 5px;
}

.demo-steve-reply small {
  color: #64748b;
  font-size: 12px;
}

.demo-steve-reply > span:last-child {
  color: #172024;
  font-size: 14px;
  line-height: 1.4;
}

.demo-steve-reply .typing::after,
.demo-gary-comment.typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: #7c3aed;
  vertical-align: -2px;
  animation: typing-caret 900ms steps(1) infinite;
}

.demo-comment-actions {
  margin-top: 6px;
  color: #1f6f6f;
  font-size: 12px;
  font-weight: 850;
}

.landing-review-demo {
  width: 1180px;
  background: #fffaf0;
}

.landing-review-demo .demo-toolbar {
  min-height: 52px;
  padding: 6px 10px 6px 14px;
}

.landing-review-demo .demo-toolbar-actions span {
  min-height: 32px;
  padding: 7px 10px;
  color: #263339;
}

.landing-review-demo .demo-toolbar-actions span:nth-child(3),
.landing-review-demo .demo-toolbar-actions span:nth-child(4) {
  border-color: #9fc9ce;
  background: #f4fbfa;
}

.landing-review-surface {
  grid-template-columns: minmax(0, 1fr) 304px;
  height: 654px;
  min-height: 654px;
  background: #1c2a2f;
}

.landing-document-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px;
  gap: 0;
  padding: 0;
  background: #1c2a2f;
}

.demo-landing-document {
  position: relative;
  min-height: 654px;
  overflow: hidden;
  background: #edf6f7;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.demo-landing-document::before {
  content: "";
  position: absolute;
  top: 0;
  right: -92px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 63, 0.28), rgba(255, 179, 63, 0.04) 70%, rgba(255, 179, 63, 0) 72%);
  pointer-events: none;
}

.queuepilot-nav {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 34px 58px 0;
}

.queuepilot-brand,
.queuepilot-links,
.queuepilot-nav-actions,
.queuepilot-actions {
  display: flex;
  align-items: center;
}

.queuepilot-brand {
  gap: 12px;
  color: #0e1f29;
  font-weight: 900;
}

.queuepilot-brand span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: #15927e;
  font-weight: 950;
  box-shadow: 0 16px 36px rgba(21, 146, 126, 0.18);
}

.queuepilot-links {
  gap: 34px;
  color: #43545d;
  font-size: 14px;
  font-weight: 850;
}

.queuepilot-nav-actions {
  justify-content: flex-end;
  gap: 10px;
}

.queuepilot-nav-actions span,
.queuepilot-nav-actions strong,
.queuepilot-actions span,
.queuepilot-actions strong {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #bdd8d2;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.74);
  color: #0b5a51;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.queuepilot-nav-actions strong,
.queuepilot-actions strong {
  border-color: #0b5a51;
  background: #0b5a51;
  color: #ffffff;
}

.queuepilot-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(390px, 0.95fr) minmax(280px, 0.65fr);
  gap: 36px;
  align-items: start;
  padding: 72px 58px 30px;
}

.queuepilot-copy {
  position: relative;
  min-width: 0;
}

.queuepilot-eyebrow {
  width: max-content;
  max-width: 100%;
  margin: 0 0 8px;
  padding: 7px 11px;
  border: 1px solid #bde2dd;
  border-radius: 999px;
  background: rgba(237, 248, 245, 0.9);
  color: #0a665d;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

.landing-title-box {
  width: 426px;
  max-width: 100%;
  padding: 8px 10px 10px;
  border-color: rgba(199, 110, 102, 0.86);
  background: rgba(255, 240, 237, 0.18);
}

.landing-title-box h3 {
  margin: 0;
  color: #17242d;
  font-size: 46px;
  line-height: 0.98;
  letter-spacing: 0;
}

.landing-copy-lead {
  width: 426px;
  max-width: 100%;
  margin-top: 10px;
  margin-bottom: 0;
  color: #43545d;
  font-size: 16px;
  line-height: 1.45;
}

.landing-copy-annotation {
  position: relative;
  width: 426px;
  max-width: 100%;
  margin-top: 6px;
}

.landing-copy-box {
  width: 100%;
  padding: 7px 9px 8px;
  border-color: rgba(199, 110, 102, 0.86);
  background: rgba(255, 240, 237, 0.16);
}

.landing-copy-box p {
  margin: 0;
  color: #43545d;
  font-size: 16px;
  line-height: 1.45;
}

.queuepilot-actions {
  gap: 10px;
  margin-top: 18px;
}

.landing-fine-print-target {
  position: absolute;
  top: 388px;
  left: 3px;
  z-index: 4;
  width: 352px;
  max-width: calc(100% - 8px);
  margin: 0;
  padding: 8px 9px;
  border-radius: 8px;
  border: 1px solid rgba(216, 208, 194, 0.85);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 8px 22px rgba(23, 32, 36, 0.08);
}

.landing-fine-print-target p {
  margin: 0;
  color: #8a969a;
  font-size: 12px;
  line-height: 1.4;
}

.landing-review-demo .title-pin {
  top: 38px;
  left: -16px;
}

.landing-review-demo .copy-pin {
  top: -8px;
  left: -9px;
  background: #c76e66;
  box-shadow: 0 0 0 2px rgba(199, 110, 102, 0.7), 0 8px 16px rgba(23, 32, 36, 0.22);
}

.landing-review-demo .demo-draft-box {
  inset: -7px -11px;
  z-index: 8;
  background: rgba(23, 32, 36, 0.03);
}

.landing-review-demo .demo-draft-box.visible {
  opacity: 1;
}

.landing-review-demo .demo-draft-box::before {
  border-top-color: #172024;
  border-bottom-color: #172024;
}

.landing-review-demo .demo-draft-box::after {
  border-right-color: #172024;
  border-left-color: #172024;
}

.landing-review-demo .demo-draft-box.complete .demo-draft-pin {
  background: #172024;
  box-shadow: 0 0 0 2px rgba(23, 32, 36, 0.86), 0 10px 18px rgba(23, 32, 36, 0.24);
}

.landing-review-demo .demo-draft-box.complete {
  border-radius: 8px;
  outline: 3px solid #172024;
  outline-offset: 0;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.72),
    0 12px 24px rgba(23, 32, 36, 0.2);
}

.queuepilot-product-card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid #c4dfd9;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 58px rgba(41, 70, 79, 0.14);
}

.queuepilot-product-card-top {
  min-height: 56px;
  padding: 0 18px;
  border-bottom: 1px solid #dfe8e6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #0e1f29;
  font-size: 15px;
}

.queuepilot-product-card-top span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #0a665d;
  background: #edf8f5;
  font-size: 11px;
  font-weight: 900;
}

.queuepilot-steps {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.queuepilot-steps article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 86px;
  padding: 12px;
  border: 1px solid #e0ece9;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
}

.queuepilot-steps article > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0f8a7e;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.queuepilot-steps h4 {
  margin: 0;
  color: #0e1f29;
  font-size: 15px;
  line-height: 1.1;
}

.queuepilot-steps p {
  margin: 6px 0 0;
  color: #697985;
  font-size: 13px;
  line-height: 1.35;
}

.queuepilot-alert {
  margin: 0 18px 18px;
  padding: 13px 14px;
  border: 1px solid #efb4aa;
  border-radius: 10px;
  background: #fff0ed;
  color: #8b3d33;
  font-size: 13px;
  line-height: 1.45;
}

.landing-review-gutter {
  position: relative;
  display: block;
  width: 14px;
  height: 100%;
  background: #1c2a2f;
}

.landing-review-gutter span {
  position: absolute;
  top: 0;
  left: 4px;
  width: 6px;
  height: 100%;
  border-radius: 999px;
  background: #f4f7f7;
}

.landing-review-gutter span::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 6px;
  height: 150px;
  border-radius: inherit;
  background: #778086;
}

.landing-comments-panel {
  position: relative;
  padding: 14px 10px;
  background: #d0d3d4;
}

.landing-comments-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: #ffffff;
  color: #243038;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
}

.landing-comments-panel .demo-panel-kicker {
  color: #6b46f2;
  font-size: 10px;
}

.landing-comments-panel h3 {
  margin: 5px 40px 14px 0;
  font-size: 18px;
}

.landing-comments-panel .demo-current-version {
  margin-bottom: 8px;
  font-size: 10px;
}

.landing-comments-panel .demo-comment-list,
.landing-comments-panel .demo-comment-list.focus-second,
.landing-comments-panel .demo-comment-list.focus-draft,
.landing-comments-panel .demo-comment-list.draft-visible,
.landing-comments-panel .demo-comment-list.focus-draft.draft-visible {
  gap: 8px;
  transform: none;
}

.landing-comments-panel .demo-comment-card {
  min-height: auto;
  padding: 11px 10px 9px;
  border-width: 2px;
  border-radius: 8px;
  box-shadow: none;
}

.landing-comments-panel .demo-comment-card.active {
  border-color: #172024;
}

.landing-comments-panel .demo-draft-comment {
  min-height: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.landing-comments-panel .demo-draft-comment.visible {
  min-height: 132px;
  max-height: 172px;
  padding-top: 11px;
  padding-bottom: 9px;
  opacity: 1;
}

.landing-comments-panel .demo-comment-number {
  top: 10px;
  left: 9px;
  width: 22px;
  height: 22px;
}

.landing-comments-panel .demo-comment-meta {
  padding-left: 30px;
  font-size: 11px;
}

.landing-comments-panel .demo-comment-tags {
  margin: 8px 0 7px;
  gap: 5px;
}

.landing-comments-panel .demo-comment-tags em {
  padding: 2px 5px;
  font-size: 10px;
}

.landing-comments-panel .demo-comment-body {
  min-height: 0;
  font-size: 13px;
  line-height: 1.35;
}

.landing-comments-panel .demo-comment-actions {
  margin-top: 8px;
  font-size: 11px;
}

.landing-review-demo .landing-review-surface {
  grid-template-columns: minmax(0, 1fr) 304px;
  height: 654px;
  min-height: 654px;
}

.landing-review-demo .landing-document-frame {
  grid-template-columns: minmax(0, 1fr) 14px;
  padding: 0;
}

.landing-review-demo .demo-landing-document {
  min-height: 654px;
}

@keyframes typing-caret {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-box,
  .demo-signal-section,
  .demo-pin,
  .demo-draft-box,
  .demo-drag-cursor,
  .demo-draft-pin,
  .demo-comment-list,
  .demo-draft-comment,
  .agent-terminal-thinking,
  .agent-terminal-message.assistant p,
  .workflow-review-demo .interactive-review-demo-scroll {
    transition: none;
  }

  .hero-terminal-demo .agent-terminal-demo-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .demo-steve-reply .typing::after,
  .demo-gary-comment.typing::after,
  .agent-terminal-thinking.active span {
    animation: none;
  }
}

.section-copy h2,
.marketing-cta h2 {
  margin: 8px 0 12px;
  font-size: 38px;
  line-height: 1.04;
  letter-spacing: 0;
}

.compact-copy {
  max-width: 680px;
  margin-bottom: 24px;
}

.feature-card,
.pricing-card {
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 32px rgba(31, 38, 35, 0.08);
}

.feature-card svg,
.plan-heading svg {
  color: #7c3aed;
}

.feature-grid-band {
  padding-top: 36px;
}

.pricing-band {
  padding: 52px 0 64px;
  border-top: 1px solid rgba(23, 32, 36, 0.12);
  scroll-margin-top: 76px;
}

.faq-band {
  padding-top: 42px;
  border-top: 1px solid rgba(23, 32, 36, 0.12);
}

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

.feature-card {
  min-height: 236px;
  padding: 20px;
}

.feature-card h3 {
  margin: 18px 0 10px;
  font-size: 20px;
}

.feature-card p {
  margin: 0;
  color: #5f6a68;
  line-height: 1.5;
}

.faq-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  max-width: 900px;
}

.faq-list details {
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(31, 38, 35, 0.06);
  padding: 18px;
}

.faq-list summary {
  cursor: pointer;
  color: #172024;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.faq-list p {
  margin: 12px 0 0;
  color: #5f6a68;
  line-height: 1.55;
}

.mcp-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(246, 248, 242, 0) 360px),
    #f6f8f2;
}

.mcp-hero,
.mcp-setup-band,
.mcp-tools-band,
.mcp-discovery-band {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.mcp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 44px;
  align-items: start;
  padding: 76px 0 46px;
}

.mcp-hero-copy {
  min-width: 0;
}

.mcp-hero h1 {
  max-width: 760px;
  margin: 10px 0 18px;
  color: #172024;
  font-size: 56px;
  line-height: 1;
  letter-spacing: 0;
}

.mcp-hero p,
.mcp-setup-band .section-copy p {
  max-width: 730px;
  color: #4f5b60;
  font-size: 18px;
  line-height: 1.58;
}

.mcp-hero-points {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.mcp-hero-points li {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #355055;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(31, 38, 35, 0.06);
}

.mcp-hero-points svg,
.mcp-code-heading svg {
  color: #7c3aed;
  flex: 0 0 auto;
}

.mcp-endpoint-panel,
.mcp-code-panel,
.mcp-tools-table-wrap {
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(31, 38, 35, 0.09);
}

.mcp-endpoint-panel {
  padding: 22px;
}

.mcp-panel-label {
  display: block;
  margin-bottom: 10px;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mcp-endpoint-panel > code {
  display: block;
  overflow-wrap: anywhere;
  padding: 16px;
  border-radius: 8px;
  background: #101820;
  color: #e9f2f4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.5;
}

.mcp-endpoint-panel p {
  margin: 16px 0 18px;
  color: #5f6a68;
  font-size: 15px;
  line-height: 1.55;
}

.mcp-endpoint-panel dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.mcp-endpoint-panel dl div {
  min-height: 42px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(23, 32, 36, 0.1);
}

.mcp-endpoint-panel dt {
  color: #7d898c;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mcp-endpoint-panel dd {
  min-width: 0;
  margin: 0;
  color: #172024;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.mcp-setup-band,
.mcp-tools-band,
.mcp-discovery-band {
  padding: 44px 0;
  border-top: 1px solid rgba(23, 32, 36, 0.12);
}

.mcp-config-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
}

.mcp-code-panel {
  min-width: 0;
  padding: 18px;
}

.mcp-code-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.mcp-code-heading h3 {
  margin: 0;
  color: #172024;
  font-size: 18px;
}

.mcp-code-panel pre {
  max-height: 320px;
  margin: 0;
  overflow: auto;
  padding: 16px;
  border: 0;
  border-radius: 8px;
  background: #101820;
  color: #e9f2f4;
  font-size: 14px;
  line-height: 1.55;
}

.mcp-code-panel code,
.mcp-tools-table code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.mcp-tools-table-wrap {
  overflow-x: auto;
}

.mcp-tools-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.mcp-tools-table th,
.mcp-tools-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(23, 32, 36, 0.1);
  text-align: left;
  vertical-align: top;
}

.mcp-tools-table th {
  color: #172024;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.mcp-tools-table td {
  color: #4f5b60;
  line-height: 1.5;
}

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

.mcp-tools-table td:first-child {
  width: 230px;
}

.mcp-tools-table code {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-bottom: 5px;
  padding: 5px 7px;
  border-radius: 7px;
  background: #f3efff;
  color: #542de1;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.mcp-tools-table td span {
  color: #172024;
  font-size: 14px;
  font-weight: 850;
}

.mcp-discovery-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.mcp-discovery-band h2 {
  max-width: 480px;
  margin: 8px 0 0;
  color: #172024;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: 0;
}

.mcp-discovery-band nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.marketing-cta {
  width: min(1180px, calc(100% - 40px));
  margin: 20px auto 72px;
  padding: 28px 0 0;
  border-top: 1px solid rgba(23, 32, 36, 0.12);
  justify-content: space-between;
}

.marketing-cta div {
  max-width: 680px;
}

.marketing-footer,
.policy-hero,
.policy-layout,
.policy-contact-band,
.pricing-legal-strip {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.marketing-footer {
  padding: 26px 0 34px;
  border-top: 1px solid rgba(23, 32, 36, 0.12);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 0.8fr);
  gap: 20px;
  align-items: center;
}

.marketing-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.marketing-footer-contact {
  color: #5f6a68;
  font-size: 12px;
  line-height: 1.45;
}

.marketing-footer nav,
.marketing-footer-contact {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
}

.marketing-footer nav a,
.marketing-footer-contact a,
.auth-legal a,
.pricing-legal-strip a,
.policy-section a {
  color: #467c84;
  font-weight: 800;
  text-decoration: none;
}

.marketing-footer nav a:hover,
.marketing-footer-contact a:hover,
.auth-legal a:hover,
.pricing-legal-strip a:hover {
  text-decoration: underline;
}

.policy-page {
  background: #f6f8f2;
}

.policy-hero {
  padding: 74px 0 26px;
  max-width: 920px;
}

.policy-hero h1 {
  margin: 10px 0 14px;
  font-size: 54px;
  line-height: 1;
  letter-spacing: 0;
}

.policy-hero p {
  color: #4f5b60;
  font-size: 18px;
  line-height: 1.58;
  max-width: 760px;
}

.policy-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 26px 0 34px;
}

.policy-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
}

.policy-sidebar a {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #4f5b60;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 0 11px;
  font-weight: 850;
}

.policy-sidebar a:hover,
.policy-sidebar a.active {
  border-color: #d8d0c2;
  background: #fff;
  color: #172024;
}

.policy-content {
  display: grid;
  gap: 14px;
}

.policy-section {
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(31, 38, 35, 0.06);
  padding: 22px;
}

.policy-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.16;
}

.policy-section p,
.policy-section li {
  color: #4f5b60;
  line-height: 1.58;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 9px;
}

.policy-contact-band {
  margin-bottom: 58px;
  border-top: 1px solid rgba(23, 32, 36, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.policy-contact-band h2 {
  margin: 6px 0 0;
  font-size: 28px;
  line-height: 1.12;
}

.policy-contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pricing-legal-strip {
  margin-bottom: 24px;
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  background: #fffaf0;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pricing-legal-strip p {
  margin: 0;
  color: #4f5b60;
  line-height: 1.5;
}

.auth-legal {
  margin: 0;
  color: #5f6a68;
  font-size: 12px;
  line-height: 1.45;
}

.not-found-page {
  min-height: 100vh;
}

.not-found-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr);
  align-items: center;
  gap: 48px;
  padding: 56px 0;
}

.not-found-copy h1 {
  margin: 10px 0 16px;
  font-size: 58px;
  line-height: 1;
  letter-spacing: 0;
}

.not-found-copy p {
  color: #4f5b60;
  font-size: 18px;
  line-height: 1.58;
}

.not-found-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.not-found-art {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(57, 38, 98, 0.12);
}

.pricing-message {
  border: 1px solid #b9c3be;
  border-radius: 8px;
  background: #f8faf7;
  color: #243136;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.pricing-intro {
  padding: 36px 0 0;
}

.pricing-intro h2 {
  max-width: 850px;
  margin: 0;
  color: #172024;
  font-size: 44px;
  line-height: 1.03;
  letter-spacing: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  padding: 40px 0 28px;
}

.pricing-card {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.pricing-card.highlighted {
  border-color: #7c3aed;
  box-shadow:
    0 18px 44px rgba(124, 58, 237, 0.14),
    0 0 0 1px rgba(124, 58, 237, 0.12);
}

.plan-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-heading h2 {
  margin: 0;
  font-size: 25px;
}

.price {
  margin: 0;
  color: #172024;
  font-size: 48px;
  line-height: 1;
  font-weight: 900;
}

.price span {
  color: #697276;
  font-size: 16px;
  margin-left: 4px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
}

.pricing-card li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #314248;
  line-height: 1.4;
}

.pricing-card li svg {
  color: #cf5d4b;
  flex: 0 0 auto;
  margin-top: 2px;
}

.app-shell {
  --app-font-size: 14px;
  --app-small-font-size: 11px;
  --app-muted-font-size: 12px;
  --control-height: 32px;
  --control-icon-size: 32px;
  --control-gap: 6px;
  --control-font-size: 13px;
  --control-radius: 7px;
  --field-padding: 8px 10px;
  --field-font-size: 13px;
  --primary-button-x: 12px;
  --secondary-button-x: 10px;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  overflow: hidden;
  font-size: var(--app-font-size);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0)),
    #f3f0ea;
}

.sidebar {
  min-height: 0;
  padding: 16px;
  border-right: 1px solid #d8d0c2;
  background: #fffaf0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.brand,
.brand-button {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand strong,
.brand-button {
  color: #172024;
  font-weight: 800;
  letter-spacing: 0;
}

.brand span {
  display: block;
  color: #697276;
  font-size: var(--app-small-font-size);
  margin-top: 2px;
}

.brand .brand-lockup,
.brand-button .brand-lockup {
  display: inline-flex;
  align-items: center;
  margin-top: 0;
}

.brand .angle-wordmark {
  display: inline;
  color: #111a3f;
  margin-top: 0;
}

.brand .angle-wordmark span {
  display: inline;
  font-size: inherit;
  margin-top: 0;
}

.brand .angle-wordmark .wordmark-purple {
  color: #7c3aed;
}

.brand .angle-wordmark .wordmark-ink {
  color: #111a3f;
}

.brand .angle-wordmark .wordmark-pink {
  color: #ff67c7;
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-item,
.brand-button {
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.nav-item {
  min-height: 32px;
  border-radius: var(--control-radius);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  color: #556064;
  font-size: var(--control-font-size);
}

.nav-item.active,
.nav-item:hover {
  background: #e8f2f0;
  color: #172024;
}

.nav-item.copied {
  background: #dff1ea;
  color: #1f5b43;
}

.nav-item.copy-failed {
  background: #fff0ed;
  color: #842b22;
}

.mcp-card {
  margin-top: auto;
  padding: 10px;
  border: 1px solid #d8d0c2;
  border-radius: var(--control-radius);
  background: #fff;
  display: grid;
  gap: 6px;
}

.mcp-card code {
  font-size: var(--app-small-font-size);
  color: #314248;
  white-space: normal;
  overflow-wrap: anywhere;
}

.mcp-card small {
  color: #667276;
  font-size: var(--app-small-font-size);
  line-height: 1.35;
}

.mcp-card-actions {
  display: grid;
  gap: 6px;
}

.mcp-card-actions .primary-button,
.mcp-card-actions .secondary-button {
  width: 100%;
  min-width: 0;
  justify-content: center;
  white-space: normal;
  line-height: 1.15;
}

.mobile-mcp-panel {
  display: none;
  border: 1px solid #d8d0c2;
  border-radius: var(--control-radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(31, 38, 35, 0.06);
}

.mobile-mcp-panel summary {
  min-height: 38px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #243136;
  cursor: pointer;
  list-style: none;
}

.mobile-mcp-panel summary::-webkit-details-marker {
  display: none;
}

.mobile-mcp-panel[open] summary {
  border-bottom: 1px solid #ebe4d8;
}

.mobile-mcp-summary-title {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 850;
}

.mobile-mcp-panel summary small {
  min-width: 0;
  color: #667276;
  font-size: var(--app-small-font-size);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-mcp-body {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.mobile-mcp-body code {
  color: #314248;
  font-size: var(--app-small-font-size);
  overflow-wrap: anywhere;
  white-space: normal;
}

.mobile-mcp-body > small {
  color: #667276;
  font-size: var(--app-small-font-size);
  line-height: 1.35;
}

.mobile-mcp-copy-button {
  width: 100%;
}

.mcp-connections {
  border-top: 1px solid #ebe4d8;
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.mcp-connections-summary {
  color: #314248;
  font-size: var(--app-small-font-size);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.mcp-revoke-all-button {
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  line-height: 1.15;
}

.plan-chip {
  border: 1px solid #d8d0c2;
  border-radius: var(--control-radius);
  background: #172024;
  color: #fffaf0;
  min-height: 44px;
  padding: 8px 10px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  text-align: left;
}

.plan-chip span {
  color: #8bd3dd;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plan-chip strong {
  font-size: 12px;
}

.app-content {
  min-width: 0;
  min-height: 0;
  padding: 20px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.topbar,
.viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar {
  margin-bottom: 18px;
}

h1,
h2,
p {
  margin-top: 0;
}

.topbar h1 {
  margin-bottom: 4px;
  font-size: 28px;
  line-height: 1.05;
}

.topbar p {
  margin-bottom: 0;
  color: #697276;
}

.dashboard-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  overflow: hidden;
}

.operator-queue {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 14px;
}

.operator-queue-toolbar {
  min-width: 0;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.abuse-report-list {
  display: grid;
  gap: 12px;
}

.abuse-report-card {
  min-width: 0;
  max-width: 100%;
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 16px;
  display: grid;
  gap: 12px;
  box-shadow: 0 10px 24px rgba(31, 38, 35, 0.06);
}

.abuse-report-header,
.abuse-doc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.abuse-report-header span:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.abuse-report-header strong {
  overflow-wrap: anywhere;
}

.abuse-report-header small,
.abuse-doc-meta,
.operator-note {
  color: #667276;
  font-size: 12px;
}

.abuse-doc-meta {
  justify-content: flex-start;
}

.status-pill {
  border: 1px solid #d8d0c2;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  background: #fffaf0;
}

.status-pill.open {
  color: #842b22;
  border-color: #d68b82;
  background: #fff0ed;
}

.status-pill.resolved {
  color: #1f5b43;
  border-color: #8bc7ae;
  background: #f0faf5;
}

.operator-note {
  border-left: 3px solid #d8d0c2;
  padding-left: 10px;
  display: grid;
  gap: 4px;
}

.operations-grid {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.operator-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.operator-queue select,
.operator-queue input,
.operator-queue textarea {
  width: 100%;
}

.artifact-list-panel,
.artifact-detail-panel,
.upload-panel,
.comments-panel,
.error-card {
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 32px rgba(31, 38, 35, 0.08);
}

.artifact-list-panel,
.artifact-detail-panel,
.upload-panel {
  padding: 14px;
  min-height: 0;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-heading.compact {
  margin-bottom: 10px;
}

.panel-heading h2 {
  margin: 2px 0 0;
  font-size: 18px;
}

.library-new-button {
  flex: 0 0 auto;
}

.library-heading-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.library-panel-header {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.library-toolbar {
  min-width: 0;
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.library-search {
  --library-search-control-height: 30px;
  min-width: min(260px, 100%);
  flex: 1 1 340px;
  min-height: calc(var(--library-search-control-height) + 4px);
  border: 1px solid #d8d0c2;
  border-radius: var(--control-radius);
  background: #fff;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5f6a68;
}

.library-search input {
  width: 100%;
  min-width: 0;
  min-height: var(--library-search-control-height);
  height: var(--library-search-control-height);
  border: 0;
  background: transparent;
  padding: 0;
  color: #172024;
  font-size: 13px;
  line-height: 1.3;
  font: inherit;
}

.library-search input:focus {
  outline: 0;
  padding: 0;
  box-shadow: none;
}

.library-filter-grid select:focus {
  outline: none;
  padding: 0 7px;
  box-shadow: 0 0 0 2px rgba(70, 124, 132, 0.18);
}

.library-filter-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  gap: 6px;
  align-items: end;
  flex: 0 1 430px;
}

.library-filter-grid label {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.library-filter-grid label > span {
  color: #697276;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  line-height: 1.25;
}

.library-filter-grid select {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  height: 30px;
  border: 1px solid #d8d0c2;
  border-radius: var(--control-radius);
  background: #fff;
  color: #243136;
  padding: 0 7px;
  line-height: 1.2;
  font: inherit;
  font-size: 12px;
}

.artifact-list-panel .library-toolbar {
  min-width: 0;
}

.artifact-list-panel .library-toolbar > label {
  gap: 0;
}

.artifact-list-panel .library-toolbar .sr-only {
  position: absolute;
}

.eyebrow {
  color: #5f35d6;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.artifact-list-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.artifact-list {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1px 4px 2px 0;
}

.artifact-folder {
  flex: 0 0 auto;
  display: grid;
  align-content: start;
  gap: 0;
  overflow: hidden;
  border: 1px solid #e2ddd4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31, 38, 35, 0.04);
}

.artifact-folder-heading {
  min-height: 34px;
  width: 100%;
  border: 0;
  background: #fbfaf6;
  padding: 0 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #364246;
  font-size: var(--control-font-size);
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.artifact-folder-heading:hover {
  background: #f3f8f7;
  color: #172024;
}

.artifact-folder:not(.collapsed) .artifact-folder-heading {
  border-bottom: 1px solid #ebe4d8;
}

.artifact-folder-heading span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.artifact-folder-heading strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artifact-folder-heading small {
  min-width: 22px;
  height: 20px;
  border: 1px solid #d8d0c2;
  border-radius: 999px;
  background: #fff;
  color: #556064;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 850;
}

.artifact-folder-items {
  display: grid;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.artifact-row {
  width: 100%;
  min-height: 56px;
  border: 1px solid #e2ddd4;
  background: #fff;
  border-radius: var(--control-radius);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 7px;
  color: #172024;
}

.artifact-row:hover,
.artifact-row.active {
  border-color: #467c84;
  background: #f4fbfa;
}

.artifact-select-button {
  min-width: 0;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: left;
}

.artifact-select-button:focus-visible,
.artifact-folder-heading:focus-visible {
  outline: 3px solid rgba(70, 124, 132, 0.24);
  outline-offset: 3px;
}

.artifact-row-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.row-action-button {
  width: 30px;
  min-height: 30px;
  border-radius: 7px;
}

.artifact-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #edf1ed;
  color: #467c84;
}

.artifact-main {
  min-width: 0;
  text-align: left;
}

.artifact-main strong,
.artifact-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.artifact-main span {
  color: #697276;
  font-size: var(--app-small-font-size);
  margin-top: 2px;
}

.artifact-badges {
  display: flex !important;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px !important;
  white-space: normal !important;
  overflow: visible !important;
}

.artifact-badge {
  min-height: 18px;
  border: 1px solid #ded8cc;
  border-radius: 999px;
  background: #fbfaf6;
  color: #5f6a68;
  padding: 2px 6px;
  display: inline-flex !important;
  align-items: center;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.15;
}

.artifact-badge.shared {
  border-color: #b7d4cf;
  background: #e8f2f0;
  color: #315f66;
}

.artifact-badge.needs-review {
  border-color: #d6a84d;
  background: #fff7df;
  color: #5f3d08;
}

.artifact-detail-panel {
  display: grid;
  gap: 10px;
  align-content: start;
}

.artifact-detail-panel .panel-heading {
  margin-bottom: 0;
}

.artifact-detail-summary {
  min-width: 0;
  border: 1px solid #e2ddd4;
  border-radius: var(--control-radius);
  background: #fff;
  padding: 8px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.artifact-detail-summary span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.artifact-detail-summary strong,
.artifact-detail-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artifact-detail-summary small {
  color: #697276;
  font-size: var(--app-small-font-size);
}

.publish-success-banner {
  border: 1px solid #8bc7ae;
  border-radius: 8px;
  background: #f0faf5;
  color: #1f5b43;
  padding: 10px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
}

.publish-success-banner strong {
  display: block;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.compact-actions {
  gap: 6px;
  flex-wrap: wrap;
}

.artifact-review-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.artifact-review-summary span {
  min-width: 0;
  border: 1px solid #e2ddd4;
  border-radius: var(--control-radius);
  background: #fff;
  padding: 8px;
  display: grid;
  gap: 2px;
}

.artifact-review-summary strong,
.artifact-review-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artifact-review-summary strong {
  color: #243136;
  font-size: 13px;
}

.artifact-review-summary small {
  color: #697276;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.artifact-detail-actions {
  flex-wrap: wrap;
}

.upload-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.upload-panel .panel-heading {
  margin-bottom: 0;
}

.upload-panel > label:last-of-type {
  flex: 1 1 120px;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.upload-panel > label:last-of-type textarea {
  height: 100%;
  min-height: 0;
  resize: none;
}

@media (min-width: 981px) and (max-height: 800px) {
  .app-content {
    padding: 16px 18px;
  }

  .topbar {
    margin-bottom: 12px;
  }

  .topbar h1 {
    font-size: 26px;
  }

  .topbar p {
    font-size: 14px;
    line-height: 1.4;
  }

  .upload-panel {
    gap: 8px;
    padding: 12px;
  }

  .upload-panel .panel-heading h2 {
    font-size: 18px;
  }

  .upload-panel label {
    gap: 5px;
  }

  .upload-panel input,
  .upload-panel select {
    padding: 9px 10px;
  }

  .upload-panel .file-drop {
    min-height: 46px;
  }
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: #4f5b60;
  font-weight: 700;
  font-size: 12px;
}

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid #d7d0c6;
  border-radius: 7px;
  background: #fff;
  color: #172024;
  padding: var(--field-padding, 11px 12px);
  font-size: var(--field-font-size, inherit);
  outline: none;
}

.version-select {
  width: 68px;
  min-height: var(--control-height, 38px);
  padding: 0 8px;
  border-radius: var(--control-radius, 8px);
  background: #fff;
  font-weight: 800;
}

.inline-compare-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.inline-compare-controls label {
  width: 66px;
  display: block;
}

.inline-compare-controls select {
  min-height: var(--control-height, 36px);
  padding: 0 8px;
  border-radius: var(--control-radius, 8px);
  font-weight: 800;
}

.inline-compare-controls .secondary-button {
  min-height: var(--control-height, 36px);
  padding: 0 10px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #467c84;
  box-shadow: 0 0 0 3px rgba(70, 124, 132, 0.16);
}

textarea {
  min-height: 220px;
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.file-drop {
  min-height: 52px;
  border: 1px dashed #b9c3be;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #467c84;
  cursor: pointer;
  background: #f8faf7;
}

.file-drop input {
  display: none;
}

.primary-button,
.secondary-button,
.icon-button {
  border-radius: var(--control-radius, 8px);
  min-height: var(--control-height, 38px);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--control-gap, 8px);
  font-size: var(--control-font-size, inherit);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.primary-button {
  padding: 0 var(--primary-button-x, 14px);
  color: #fffaf0;
  background: #111a3f;
  border-color: #111a3f;
  font-weight: 800;
}

.primary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.primary-button.danger-button {
  background: #842b22;
  border-color: #842b22;
}

.primary-button.danger-button:not(:disabled):hover {
  background: #6f211a;
  border-color: #6f211a;
}

.secondary-button:disabled,
.icon-button:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.secondary-button {
  padding: 0 var(--secondary-button-x, 12px);
  background: #fff;
  border-color: #d8d0c2;
  color: #243136;
  font-weight: 750;
}

.secondary-button:not(:disabled):hover,
.secondary-button.selected,
.icon-button.selected,
.icon-button:not(:disabled):hover {
  border-color: #467c84;
  background: #e8f2f0;
}

.secondary-button.copied {
  color: #1f5b43;
  background: #dff1ea;
  border-color: #8bc7ae;
}

.secondary-button.copy-failed {
  color: #842b22;
  background: #fff0ed;
  border-color: #d68b82;
}

.icon-button {
  width: var(--control-icon-size, 38px);
  padding: 0;
  color: #243136;
  background: #fff;
  border-color: #d8d0c2;
}

.danger-icon-button {
  color: #842b22;
}

.danger-icon-button:not(:disabled):hover {
  border-color: #d68b82;
  background: #fff0ed;
  color: #842b22;
}

.viewport-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border: 1px solid #d8d0c2;
  border-radius: var(--control-radius, 8px);
  background: #f7f3ea;
}

.segmented-control {
  min-height: var(--control-height, 38px);
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 2px;
  border: 1px solid #d8d0c2;
  border-radius: var(--control-radius, 8px);
  background: #f7f3ea;
}

.segmented-control button {
  min-height: calc(var(--control-height, 38px) - 6px);
  border: 0;
  border-radius: 6px;
  padding: 0 8px;
  background: transparent;
  color: #4f5b60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 850;
  cursor: pointer;
}

.segmented-control button.selected {
  background: #fff;
  color: #172024;
  box-shadow: 0 0 0 1px rgba(70, 124, 132, 0.28);
}

.segmented-control.compact {
  min-width: 220px;
}

.annotation-mode-controls {
  background: #fffaf0;
}

.html-render-mode-control {
  min-width: 190px;
}

.html-render-mode-control button {
  font-size: 12px;
}

.viewport-controls .icon-button {
  width: 28px;
  min-height: 28px;
  border-radius: 6px;
}

.viewport-readout {
  min-height: var(--control-height, 32px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid #d8d0c2;
  border-radius: var(--control-radius, 8px);
  background: #fff;
  color: #4d595e;
  font-size: var(--control-font-size, 12px);
  font-weight: 800;
  white-space: nowrap;
}

.viewport-readout-button {
  cursor: pointer;
}

.viewport-readout-button span {
  display: inline-block;
}

.viewport-readout-button:not(:disabled):hover,
.viewport-readout-button.selected {
  border-color: #467c84;
  background: #e8f2f0;
  color: #172024;
}

.viewport-menu-wrap {
  position: relative;
  display: inline-flex;
}

.viewport-menu {
  position: absolute;
  z-index: 45;
  top: calc(100% + 8px);
  right: 0;
  width: 292px;
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 18px 48px rgba(28, 34, 32, 0.22);
  padding: 8px;
  display: grid;
  gap: 8px;
}

.viewport-menu-presets {
  display: grid;
  gap: 4px;
}

.viewport-menu-item {
  width: 100%;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #243136;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  text-align: left;
  cursor: pointer;
}

.viewport-menu-item span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.viewport-menu-item strong,
.viewport-menu-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewport-menu-item strong {
  font-size: 13px;
  font-weight: 850;
}

.viewport-menu-item small {
  color: #697276;
  font-size: 11px;
  font-weight: 750;
}

.viewport-menu-item:not(:disabled):hover,
.viewport-menu-item.selected {
  border-color: rgba(70, 124, 132, 0.3);
  background: #e8f2f0;
}

.viewport-custom-form {
  border-top: 1px solid #e2dbce;
  padding-top: 8px;
  display: grid;
  gap: 8px;
}

.viewport-menu-label {
  color: #4f5b60;
  font-size: 12px;
  font-weight: 850;
}

.viewport-custom-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.viewport-custom-inputs label {
  gap: 5px;
}

.viewport-custom-inputs input {
  min-height: 34px;
  padding: 7px 8px;
  font-weight: 800;
}

.viewport-custom-form .primary-button {
  min-height: 34px;
}

.icon-button.copied {
  color: #1f5b43;
  background: #dff1ea;
  border-color: #8bc7ae;
}

.icon-button.copy-failed {
  color: #842b22;
  background: #fff0ed;
  border-color: #d68b82;
}

.error-banner {
  border: 1px solid #d68b82;
  color: #842b22;
  background: #fff0ed;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}

.success-banner {
  border: 1px solid #8bc7ae;
  color: #1f5b43;
  background: #f0faf5;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.panel-message {
  margin-bottom: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(23, 32, 36, 0.46);
}

.nested-modal-backdrop {
  z-index: 70;
}

.workspace-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  background: rgba(23, 32, 36, 0.28);
}

.workspace-sheet {
  width: min(520px, calc(100vw - 32px));
  height: 100dvh;
  border-left: 1px solid #d8d0c2;
  background: #fffaf0;
  box-shadow: -18px 0 48px rgba(31, 38, 35, 0.22);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  outline: 0;
}

.workspace-sheet-header {
  min-width: 0;
  border-bottom: 1px solid #e2ddd4;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.workspace-sheet-header h2 {
  margin: 2px 0 0;
  color: #172024;
  font-size: 19px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.workspace-sheet-header p {
  margin: 4px 0 0;
  color: #697276;
  font-size: 12px;
  line-height: 1.35;
}

.workspace-sheet-body {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px;
}

.workspace-sheet .artifact-detail-panel,
.workspace-sheet .upload-panel {
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.workspace-sheet .artifact-detail-panel {
  align-content: start;
}

.workspace-sheet .upload-panel {
  height: auto;
}

.workspace-sheet .artifact-detail-actions,
.workspace-sheet .upload-panel > .button-row.end {
  position: sticky;
  bottom: -14px;
  z-index: 1;
  margin-inline: -14px;
  margin-bottom: -14px;
  padding: 12px 14px 14px;
  border-top: 1px solid #e2ddd4;
  background: rgba(255, 250, 240, 0.96);
  box-shadow: 0 -12px 24px rgba(31, 38, 35, 0.08);
}

.share-dialog {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.auth-shell {
  min-height: 100dvh;
  height: auto;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(0, 2fr);
  place-items: stretch;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f8faf7;
}

.auth-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100dvh;
  border: 0;
  border-right: 1px solid #d8d0c2;
  border-radius: 0;
  background: #fffaf0;
  box-shadow: none;
  padding: clamp(28px, 4vw, 64px);
  display: grid;
  align-items: center;
}

.auth-panel-content {
  width: min(100%, 430px);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.auth-panel-content > *,
.auth-methods,
.email-link-form,
.email-link-form label {
  min-width: 0;
}

.auth-brand {
  padding-bottom: 4px;
}

.auth-copy h1 {
  margin: 0 0 8px;
  color: #172024;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 0;
}

.auth-copy p {
  margin: 0;
  color: #5f6a68;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.auth-methods,
.email-link-form {
  display: grid;
  gap: 10px;
}

.auth-provider-button {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  justify-content: center;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
}

.google-signin-button {
  color: #3c4043;
  background: #fff;
  border-color: #dadce0;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
  font-weight: 750;
}

.google-signin-button:not(:disabled):hover {
  color: #202124;
  background: #f8fafd;
  border-color: #c7ced8;
  box-shadow: 0 2px 6px rgba(60, 64, 67, 0.14);
}

.google-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.auth-provider-button span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #697276;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  min-width: 0;
  flex: 1 1 0;
  background: #e2ddd4;
}

.email-link-form .primary-button {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 9px 12px;
  white-space: normal;
  line-height: 1.2;
}

.email-link-form input {
  min-width: 0;
  max-width: 100%;
}

.profile-form label {
  display: grid;
  gap: 7px;
  color: #3f474a;
  font-size: 13px;
  font-weight: 800;
}

.profile-form input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #cfc8bd;
  border-radius: 8px;
  background: #fff;
  color: #172024;
  padding: 0 12px;
  font: inherit;
}

.profile-email {
  border: 1px solid #e0d9ce;
  border-radius: 8px;
  background: #fff;
  color: #626c70;
  padding: 10px 12px;
  overflow-wrap: anywhere;
}

.auth-legal {
  overflow-wrap: anywhere;
}

.auth-visual {
  position: relative;
  min-width: 0;
  min-height: 100dvh;
  overflow: hidden;
  background: #f0eef6;
}

.auth-visual img {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.draft-author {
  min-width: 0;
}

.draft-author strong {
  display: block;
  overflow-wrap: anywhere;
}

.draft-author span {
  color: #6c6860;
  font-size: 12px;
  font-weight: 750;
}

.draft-author {
  border: 1px solid #ded6c8;
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
}

.delete-dialog {
  width: min(520px, 100%);
}

.interactive-mode-dialog {
  width: min(560px, 100%);
}

.version-source-status {
  min-height: 42px;
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  background: #f8faf7;
  color: #314248;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
}

.version-source-status span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.delete-warning {
  border: 1px solid #d68b82;
  border-radius: 8px;
  background: #fff0ed;
  color: #842b22;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.delete-warning svg {
  margin-top: 2px;
}

.delete-warning strong,
.delete-warning p {
  display: block;
  overflow-wrap: anywhere;
}

.delete-warning p {
  margin: 4px 0 0;
  color: #5f332d;
  font-size: 13px;
  line-height: 1.45;
}

.interactive-warning {
  border: 1px solid #d6a84d;
  border-radius: 8px;
  background: #fff7df;
  color: #5f3d08;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.interactive-warning svg {
  margin-top: 2px;
}

.interactive-warning strong,
.interactive-warning p,
.dialog-note {
  display: block;
  overflow-wrap: anywhere;
}

.interactive-warning p,
.dialog-note {
  margin: 4px 0 0;
  color: #5f4d24;
  font-size: 13px;
  line-height: 1.45;
}

.dialog-note {
  margin: 0;
}

.share-copy-panel {
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 12px;
}

.share-copy-panel > div:first-child {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: #4f5b60;
}

.share-copy-panel strong,
.share-copy-panel p {
  overflow-wrap: anywhere;
}

.share-copy-panel strong {
  color: #243136;
}

.share-copy-panel p {
  margin: 3px 0 0;
  color: #697276;
  font-size: 12px;
  line-height: 1.35;
}

.share-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.share-link-row input {
  font-size: 13px;
}

.inline-status {
  min-height: 18px;
  color: #1f5b43;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
}

.inline-status.visible {
  opacity: 1;
}

.inline-status.failed {
  color: #842b22;
}

.share-settings {
  display: grid;
  gap: 12px;
}

.share-control {
  min-width: 0;
}

.share-upgrade-note {
  display: block;
  color: #5f6a68;
  font-size: 12px;
  line-height: 1.35;
}

.share-upgrade-note a {
  color: #7c3aed;
  font-weight: 850;
}

.share-email-list {
  min-height: 72px;
  font-family: inherit;
}

.toggle-row {
  min-height: 44px;
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #467c84;
}

.compact-toggle-row {
  min-height: 42px;
}

.compact-toggle-row label {
  gap: 0;
  cursor: pointer;
}

.toggle-row strong,
.toggle-row small {
  display: block;
}

.toggle-row small {
  color: #697276;
  font-size: 12px;
  margin-top: 1px;
}

.advanced-share-settings {
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.advanced-share-settings summary {
  min-height: 42px;
  padding: 10px 12px;
  color: #4f5b60;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.advanced-share-settings summary::-webkit-details-marker {
  display: none;
}

.advanced-share-body {
  border-top: 1px solid #ebe4d8;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.advanced-share-body strong {
  display: block;
  color: #243136;
  margin-bottom: 2px;
}

.advanced-share-body p {
  margin: 0;
  color: #697276;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.danger-secondary-button {
  border-color: #d68b82;
  color: #842b22;
}

.agent-connect-dialog {
  width: min(680px, 100%);
}

.agent-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.agent-steps > div {
  min-width: 0;
  border: 1px solid #e2ddd4;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
}

.agent-steps span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #e8f2f0;
  color: #315f66;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
}

.agent-steps strong,
.agent-steps p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.agent-steps strong {
  color: #243136;
}

.agent-steps p {
  grid-column: 2;
  margin: -3px 0 0;
  color: #697276;
  font-size: 12px;
  line-height: 1.35;
}

.mcp-config-box {
  min-width: 0;
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.mcp-config-box code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #314248;
  font-size: 12px;
}

.connected-agents {
  display: grid;
  gap: 8px;
}

.button-row.end {
  justify-content: flex-end;
}

.empty-state,
.empty-comments,
.subtle-status {
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #697276;
  padding: 24px;
}

.empty-state {
  align-content: center;
  gap: 12px;
}

.empty-state-actions {
  justify-content: center;
  flex-wrap: wrap;
}

.compact-empty {
  min-height: 180px;
}

.compact-status {
  min-height: auto;
  justify-items: start;
  place-items: start;
  text-align: left;
  padding: 8px 10px;
}

.empty-state h2 {
  color: #172024;
  margin: 0;
}

.empty-state p,
.empty-comments p {
  max-width: 320px;
  margin: 0;
}

.viewer-shell {
  --app-font-size: 14px;
  --app-small-font-size: 11px;
  --app-muted-font-size: 12px;
  --control-height: 32px;
  --control-icon-size: 32px;
  --control-gap: 6px;
  --control-font-size: 13px;
  --control-radius: 7px;
  --field-padding: 8px 10px;
  --field-font-size: 13px;
  --primary-button-x: 12px;
  --secondary-button-x: 10px;
  height: 100vh;
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  font-size: var(--app-font-size);
  background: #20282c;
}

.viewer-shell.with-panel {
  grid-template-columns: minmax(0, 1fr) 350px;
}

.viewer-toolbar {
  grid-column: 1 / -1;
  min-width: 0;
  max-width: 100vw;
  padding: 0 10px;
  gap: 8px;
  border-bottom: 1px solid #d8d0c2;
  background: #fffaf0;
}

.viewer-title {
  min-width: 0;
  flex: 1;
}

.viewer-title strong,
.viewer-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.viewer-title span {
  color: #697276;
  font-size: var(--app-small-font-size);
  margin-top: 1px;
}

.viewer-title strong {
  font-size: var(--app-font-size);
  line-height: 1.15;
}

.toolbar-actions,
.button-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.viewer-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #20282c;
  overflow: hidden;
}

.viewer-stage-scroll {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding: 12px;
  display: grid;
  place-items: start center;
}

.review-canvas-shell {
  position: relative;
  flex: 0 0 auto;
}

.review-canvas {
  position: relative;
  transform-origin: top left;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}

.review-canvas iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.annotation-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.annotation-layer.armed {
  cursor: crosshair;
  pointer-events: auto;
  background: rgba(70, 124, 132, 0.05);
  touch-action: none;
  user-select: none;
}

.comment-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #b95549;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.22);
  pointer-events: auto;
  cursor: pointer;
}

.comment-pin.active {
  z-index: 5;
  width: 30px;
  height: 30px;
  border-width: 3px;
  background: #172024;
  font-size: 13px;
  font-weight: 1000;
  outline: 3px solid #172024;
  outline-offset: 2px;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.92), 0 18px 34px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%) scale(1.14);
}

.comment-pin.resolved {
  background: #5c7d66;
}

.comment-pin.draft {
  background: #467c84;
  pointer-events: none;
}

.annotation-context-badge {
  position: absolute;
  right: -11px;
  top: -11px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  background: #9a6a20;
  color: #fff;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.22);
  pointer-events: auto;
}

.pin-context-badge {
  right: -9px;
  top: -9px;
  width: 19px;
  height: 19px;
}

.comment-pin.active .annotation-context-badge,
.annotation-region.active .annotation-context-badge {
  background: #9a6a20;
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 1px;
}

.annotation-region {
  position: absolute;
  border: 2px solid rgba(185, 85, 73, 0.6);
  border-radius: 7px;
  background: rgba(185, 85, 73, 0.07);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55), 0 8px 18px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  pointer-events: auto;
  padding: 0;
}

.annotation-region.active {
  z-index: 5;
  border: 3px solid #172024;
  outline: 4px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 8px rgba(23, 32, 36, 0.2), 0 18px 38px rgba(0, 0, 0, 0.34);
}

.annotation-region.resolved {
  border-color: rgba(92, 125, 102, 0.9);
  background: rgba(92, 125, 102, 0.14);
}

.annotation-region.draft {
  border-color: #467c84;
  background: rgba(70, 124, 132, 0.18);
  pointer-events: none;
}

.annotation-region.dragging {
  border-style: dashed;
}

.region-number {
  position: absolute;
  left: -13px;
  top: -13px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  background: #b95549;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.22);
}

.annotation-region.active .region-number {
  left: -15px;
  top: -15px;
  width: 28px;
  height: 28px;
  border-width: 3px;
  background: #172024;
  font-size: 13px;
  font-weight: 1000;
  outline: 3px solid #172024;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.92), 0 16px 30px rgba(0, 0, 0, 0.32);
}

.annotation-region.resolved .region-number {
  background: #5c7d66;
}

.annotation-region.draft .region-number {
  background: #467c84;
}

.comments-panel {
  min-height: 0;
  min-width: 0;
  border-radius: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding: 12px;
  overflow: hidden;
  font-size: 13px;
}

.comments-panel .panel-heading {
  margin-bottom: 10px;
}

.comments-panel .panel-heading h2 {
  font-size: 17px;
  line-height: 1.15;
}

.comments-sheet-handle,
.comments-sheet-tab {
  display: none;
}

.comment-draft {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  background: #fffaf0;
  margin-bottom: 10px;
}

.draft-meta,
.anchor-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #697276;
  font-size: 11px;
  font-weight: 800;
}

.anchor-meta {
  margin-top: 6px;
}

.anchor-kind {
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6f2b24;
  background: #fff0ed;
  border: 1px solid #e5aea7;
  font-size: 10px;
  font-weight: 900;
}

.anchor-kind.region {
  color: #1f5960;
  background: #e8f2f0;
  border-color: #9fc9ce;
}

.anchor-kind.text {
  color: #31522f;
  background: #eff6df;
  border-color: #b7cc8d;
}

.anchor-meta span:last-child,
.draft-meta span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-draft textarea {
  min-height: 68px;
  font-family: inherit;
}

.comment-list {
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 6px;
  padding-right: 3px;
}

.comment-section {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.comment-section-title {
  margin-top: 2px;
  color: #697276;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comment-card {
  position: relative;
  min-width: 0;
  border: 1px solid #e2ddd4;
  border-radius: 7px;
  background: #fff;
  padding: 8px;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background 140ms ease;
}

.comment-card.projected {
  border-color: #9fc9ce;
  background: #f5fbfa;
}

.comment-card.context-only {
  border-style: dashed;
  background: #fbfaf6;
}

.comment-card.pending {
  border-color: #c8c0b4;
  background: #fffdf8;
}

.comment-card.deleting {
  opacity: 0.58;
  pointer-events: auto;
}

.comment-card.active {
  border-color: #172024;
  outline: 2px solid #172024;
  outline-offset: -2px;
  background: #fff;
  box-shadow: inset 4px 0 0 #172024, 0 8px 20px rgba(23, 32, 36, 0.16);
  transform: translateX(-2px);
}

.comment-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #697276;
  font-size: 11px;
}

.comment-meta strong {
  min-width: 0;
  color: #172024;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-number {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #172024;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.comment-card.active .comment-number {
  width: 22px;
  height: 22px;
  font-size: 12px;
  outline: 2px solid #172024;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #fff;
}

.comment-card.active .comment-meta strong,
.comment-card.active > p {
  font-weight: 900;
}

.comment-card.active .anchor-meta {
  font-weight: 950;
}

.comment-card p {
  margin: 6px 0 8px;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.comment-inline-status {
  width: fit-content;
  max-width: 100%;
  margin: -2px 0 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f2eee6;
  color: #4f5b60;
  font-size: 11px;
  font-weight: 900;
}

.comment-inline-status.error {
  background: #fff0ed;
  color: #8e2f25;
}

.comment-replies {
  display: grid;
  gap: 6px;
  margin: 2px 0 8px;
  padding-left: 10px;
  border-left: 2px solid #e2ddd4;
}

.comment-reply {
  min-width: 0;
  color: #374247;
  font-size: 12px;
}

.comment-reply-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #697276;
  font-size: 11px;
}

.comment-reply-meta strong {
  min-width: 0;
  color: #172024;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-reply p {
  margin: 5px 0 0;
}

.comment-reply-form {
  display: grid;
  gap: 7px;
  margin: 4px 0 8px;
  padding: 8px;
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  background: #fffdf8;
}

.comment-reply-field {
  display: grid;
  gap: 4px;
  color: #4f5b60;
  font-size: 11px;
  font-weight: 900;
}

.comment-reply-field textarea {
  min-height: 56px;
  resize: vertical;
  font-family: inherit;
  font-size: 12px;
}

.comment-reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.comment-reply-actions .primary-button,
.comment-reply-actions .secondary-button {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}

.version-chip {
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4f5b60;
  background: #f2eee6;
  border: 1px solid #d8d0c2;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.version-chip.current {
  color: #172024;
  background: #e8f2f0;
  border-color: #9fc9ce;
}

.version-chip.projected {
  color: #1f5960;
  background: #edf8f6;
  border-color: #9fc9ce;
}

.version-chip.original {
  color: #6f2b24;
  background: #fff0ed;
  border-color: #e5aea7;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.context-button,
.reply-comment-button,
.resolve-button,
.delete-comment-button {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #467c84;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  cursor: pointer;
  font-weight: 800;
  font-size: 11px;
}

.context-button {
  color: #6f2b24;
}

.reply-comment-button {
  color: #31522f;
}

.delete-comment-button {
  color: #9b342a;
}

.delete-comment-button.confirming {
  font-weight: 900;
}

.resolve-button:disabled,
.reply-comment-button:disabled,
.delete-comment-button:disabled {
  color: #9aa1a4;
  cursor: not-allowed;
}

.resolved-toggle {
  max-width: 100%;
  border: 0;
  border-top: 1px solid #e2ddd4;
  background: transparent;
  color: #4f5b60;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 2px 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.center-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f3f0ea;
}

.error-card {
  max-width: 420px;
  padding: 24px;
}

.spin {
  animation: spin 900ms linear infinite;
}

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

@media (max-width: 980px) {
  .marketing-nav {
    align-items: center;
    flex-wrap: nowrap;
    gap: 14px;
    padding: 8px 24px;
  }

  .marketing-nav nav {
    width: auto;
    flex: 1 1 auto;
    justify-content: center;
  }

  .marketing-nav nav a {
    padding-inline: 8px;
  }

  .marketing-hero {
    height: auto;
    min-height: calc(100svh - 58px);
    display: block;
    padding: 0;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(255, 250, 240, 0.99) 0%, rgba(255, 250, 240, 0.94) 58%, rgba(255, 250, 240, 0.5) 100%),
      linear-gradient(0deg, rgba(246, 248, 242, 0.95) 0%, rgba(246, 248, 242, 0) 24%);
  }

  .marketing-hero-content {
    margin-left: 24px;
    padding-top: 88px;
    width: min(560px, calc(100% - 48px));
  }

  .hero-terminal-demo {
    width: min(760px, calc(100% - 48px));
    margin: 44px auto 72px;
  }

  .hero-terminal-demo .agent-terminal-demo-scroll {
    opacity: 0;
    transform: translateY(54px);
    transition:
      opacity 520ms ease,
      transform 680ms cubic-bezier(0.19, 1, 0.22, 1);
    will-change: opacity, transform;
  }

  .hero-terminal-demo .agent-terminal-demo-scroll.agent-terminal-revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .agent-harness-strip {
    margin-top: 30px;
  }

  .hero-terminal-demo .agent-terminal-body {
    min-height: 360px;
  }

  .marketing-hero h1 {
    font-size: 48px;
  }

  .pricing-grid,
  .not-found-shell,
  .policy-layout,
  .marketing-footer,
  .mcp-hero,
  .mcp-config-grid,
  .mcp-discovery-band {
    grid-template-columns: 1fr;
  }

  .mcp-hero {
    gap: 26px;
    padding-top: 54px;
  }

  .mcp-discovery-band nav {
    justify-content: flex-start;
  }

  .policy-sidebar {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .policy-contact-band,
  .pricing-legal-strip {
    display: grid;
  }

  .policy-contact-actions,
  .marketing-footer nav,
  .marketing-footer-contact {
    justify-content: flex-start;
  }

  .interactive-review-demo-scroll {
    min-height: 250svh;
  }

  .interactive-review-demo {
    position: sticky;
    top: 8px;
  }

  .feature-grid,
  .demo-review-surface {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-review-surface {
    grid-template-columns: 1fr;
    height: min(760px, calc(100svh - 112px));
    min-height: 620px;
    overflow: hidden;
  }

  .demo-comments-panel {
    position: absolute;
    inset: auto 14px 14px;
    z-index: 6;
    max-height: min(46%, 330px);
    overflow: hidden;
    overscroll-behavior: contain;
    border: 1px solid #c7ced2;
    border-radius: 8px;
    box-shadow: 0 -14px 34px rgba(31, 38, 35, 0.18);
  }

  .demo-comment-list {
    overflow: visible;
  }

  .demo-comment-list.focus-second {
    transform: translateY(-219px);
  }

  .demo-comment-list.focus-draft {
    transform: translateY(-432px);
  }

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

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

  .app-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .auth-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .auth-panel {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid #d8d0c2;
    padding: 34px 24px;
  }

  .auth-panel-content {
    width: min(520px, 100%);
  }

  .auth-visual,
  .auth-visual img {
    min-height: 340px;
  }

  .sidebar {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid #d8d0c2;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    align-content: stretch;
    overflow: hidden;
  }

  .artifact-list-panel {
    min-height: 0;
    max-height: none;
  }

  .upload-panel {
    min-height: 520px;
    height: auto;
  }

  .viewer-shell.with-panel {
    grid-template-columns: 1fr;
  }

  .comments-panel {
    position: fixed;
    inset: auto 0 0 0;
    max-height: 46vh;
    z-index: 10;
    border-left: 0;
    border-top: 1px solid #d8d0c2;
    box-shadow: 0 -14px 34px rgba(31, 38, 35, 0.18);
  }
}

@media (max-width: 680px) {
  .auth-shell {
    display: block;
  }

  .marketing-nav {
    position: sticky;
    top: 0;
    padding: 10px 16px;
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
  }

  .marketing-brand {
    min-width: 0;
  }

  .marketing-brand .brand-lockup.marketing {
    --brand-gap: 7px;
    --brand-icon-width: 30px;
    --brand-icon-height: 30px;
    --brand-wordmark-size: 18px;
  }

  .marketing-menu-button {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(84, 54, 255, 0.28);
    border-radius: 8px;
    background: #f3efff;
    color: var(--primary-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(19, 28, 67, 0.08);
  }

  .marketing-nav-actions {
    display: none;
  }

  .marketing-nav nav {
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
    display: none;
    padding: 10px 0 4px;
    border-top: 1px solid rgba(23, 32, 36, 0.1);
    gap: 6px;
    min-width: 0;
  }

  .marketing-nav.menu-open nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .marketing-nav nav a {
    min-width: 0;
    min-height: 40px;
    padding: 9px 12px;
    text-align: left;
    font-size: 14px;
    border-radius: 8px;
    background: #f8faf7;
    overflow-wrap: anywhere;
  }

  .marketing-nav nav .marketing-menu-sign-in,
  .marketing-nav nav .marketing-menu-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .marketing-nav nav .marketing-menu-cta {
    background: #111a3f;
    color: #fffaf0;
  }

  .marketing-hero {
    min-height: calc(100svh - 58px);
    height: auto;
    display: block;
  }

  .marketing-hero-content {
    width: auto;
    margin: 0 20px;
    padding: 52px 0 34px;
  }

  .hero-terminal-demo {
    width: calc(100% - 32px);
    margin: 40px auto 70px;
  }

  .hero-terminal-demo .agent-terminal-body {
    min-height: 390px;
  }

  .marketing-hero h1 {
    font-size: 34px;
    line-height: 1.02;
  }

  .mcp-hero,
  .mcp-setup-band,
  .mcp-tools-band,
  .mcp-discovery-band {
    width: calc(100% - 32px);
  }

  .mcp-hero {
    padding: 42px 0 34px;
  }

  .mcp-hero h1 {
    font-size: 36px;
    line-height: 1.02;
  }

  .mcp-hero p,
  .mcp-setup-band .section-copy p {
    font-size: 16px;
  }

  .mcp-hero-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mcp-endpoint-panel,
  .mcp-code-panel {
    padding: 14px;
  }

  .mcp-endpoint-panel dl div {
    grid-template-columns: 1fr;
    gap: 3px;
    align-items: start;
  }

  .mcp-code-panel pre {
    max-height: 260px;
    font-size: 12px;
  }

  .mcp-tools-table {
    min-width: 620px;
  }

  .mcp-discovery-band {
    gap: 16px;
  }

  .mcp-discovery-band h2 {
    font-size: 26px;
  }

  .marketing-hero p,
  .section-copy p,
  .plan-copy {
    font-size: 16px;
  }

  .marketing-hero p {
    max-width: 34ch;
  }

  .hero-use-cases {
    width: min(100%, calc(100vw - 40px));
    max-width: none;
    gap: 10px;
    margin-bottom: 26px;
  }

  .hero-use-cases li {
    font-size: 15px;
    line-height: 1.38;
    padding-left: 20px;
  }

  .pricing-card .plan-copy,
  .pricing-card li {
    max-width: 30ch;
    overflow-wrap: break-word;
  }

  .hero-actions {
    width: min(100%, calc(100vw - 40px));
  }

  .agent-harness-strip {
    width: min(100%, calc(100vw - 40px));
    gap: 14px;
    margin-top: 32px;
  }

  .agent-harness-list {
    gap: 13px;
  }

  .agent-harness-list li {
    width: 34px;
    height: 34px;
  }

  .agent-harness-list img {
    width: 27px;
    height: 27px;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button,
  .marketing-cta .primary-button {
    width: 100%;
  }

  .marketing-band,
  .pricing-intro,
  .pricing-grid,
  .pricing-message,
  .marketing-cta,
  .not-found-shell,
  .marketing-footer,
  .policy-hero,
  .policy-layout,
  .policy-contact-band,
  .pricing-legal-strip {
    width: calc(100% - 32px);
  }

  .marketing-band {
    padding: 40px 0;
  }

  .workflow-demo-band {
    padding-top: clamp(92px, 14svh, 144px);
    padding-bottom: 54px;
  }

  .section-copy h2,
  .marketing-cta h2,
  .pricing-intro h2,
  .policy-contact-band h2 {
    font-size: 29px;
  }

  .policy-hero {
    padding-top: 46px;
  }

  .policy-hero h1 {
    font-size: 36px;
  }

  .policy-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .policy-section {
    padding: 18px;
  }

  .feature-grid,
  .before-after-grid,
  .faq-list,
  .demo-report-grid,
  .demo-metric-grid {
    grid-template-columns: 1fr;
  }

  .demo-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-toolbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-toolbar-actions span {
    justify-content: center;
  }

  .demo-document-frame {
    padding: 10px;
  }

  .demo-document {
    min-height: auto;
    transform: translateY(var(--demo-report-mobile-offset, var(--demo-report-offset, 0px)));
  }

  .demo-report-masthead,
  .demo-signal-section {
    padding: 20px 16px;
  }

  .demo-report-masthead h3 {
    font-size: 33px;
  }

  .demo-report-masthead p {
    font-size: 14px;
  }

  .demo-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-section-heading h4 {
    font-size: 23px;
  }

  .title-pin {
    top: 12px;
    left: 12px;
  }

  .signal-pin {
    top: 34px;
    left: 4px;
  }

  .demo-review-surface {
    height: clamp(470px, calc(100svh - 158px), 620px);
    min-height: 0;
  }

  .demo-comments-panel {
    max-height: min(46%, 290px);
    padding: 12px;
  }

  .demo-comments-panel h3 {
    margin: 2px 0 8px;
    font-size: 18px;
  }

  .demo-current-version {
    display: none;
  }

  .demo-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .demo-metric-grid article {
    min-height: 146px;
    padding: 12px;
  }

  .demo-metric-grid strong {
    margin: 12px 0 6px;
    font-size: 24px;
  }

  .demo-metric-grid p {
    min-height: 0;
    font-size: 11px;
  }

  .spark {
    height: 18px;
    margin-top: 10px;
  }

  .demo-comment-list.focus-second {
    transform: translateY(-214px);
  }

  .demo-comment-list.focus-draft {
    transform: translateY(-425px);
  }

  .price {
    font-size: 42px;
  }

  .not-found-shell {
    display: block;
    min-height: auto;
    gap: 28px;
    padding: 42px 0;
    overflow: hidden;
  }

  .not-found-copy {
    max-width: min(100%, 340px);
  }

  .not-found-copy h1 {
    max-width: 12ch;
    font-size: 34px;
    overflow-wrap: break-word;
  }

  .not-found-copy p {
    max-width: 32ch;
    overflow-wrap: break-word;
  }

  .not-found-art {
    display: block;
    max-width: 100%;
    margin-top: 28px;
  }

  .not-found-actions .primary-button,
  .not-found-actions .secondary-button {
    width: 100%;
  }

  .app-content {
    padding: 10px 12px;
  }

  .sidebar {
    padding: 8px 12px 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(104px, auto);
    align-items: start;
    gap: 10px 12px;
  }

  .brand {
    min-width: 0;
    padding-top: 3px;
  }

  .brand span {
    display: none;
  }

  .auth-panel {
    width: 100vw;
    max-width: 100vw;
    padding: 26px 18px;
  }

  .auth-panel-content {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    justify-self: start;
    gap: 14px;
  }

  .auth-brand span {
    display: block;
  }

  .auth-copy h1 {
    font-size: 28px;
    line-height: 1.08;
  }

  .auth-copy p {
    font-size: 14px;
  }

  .auth-visual,
  .auth-visual img {
    min-height: 220px;
  }

  .nav-list {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .nav-item {
    min-height: 32px;
    justify-content: center;
    padding: 0 6px;
    font-size: 12px;
    text-align: center;
    line-height: 1.1;
  }

  .mcp-card {
    display: none;
  }

  .plan-chip {
    grid-column: 2;
    grid-row: 1;
    min-height: 38px;
    min-width: 104px;
    padding: 7px 9px;
  }

  .plan-chip span {
    font-size: 10px;
  }

  .plan-chip strong {
    font-size: 12px;
  }

  .operator-queue-toolbar {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .operator-queue-toolbar .segmented-control.compact {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-auto-flow: row;
    grid-auto-columns: initial;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operator-queue-toolbar .segmented-control button {
    min-width: 0;
    padding: 5px 7px;
    white-space: normal;
    line-height: 1.15;
  }

  .topbar,
  .viewer-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    gap: 8px;
    margin-bottom: 10px;
  }

  .topbar h1 {
    margin-bottom: 0;
    font-size: 24px;
  }

  .topbar p {
    display: none;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .topbar-actions .primary-button,
  .topbar-actions .secondary-button {
    min-height: 32px;
    padding: 0 9px;
  }

  .dashboard-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .workspace-sheet-backdrop {
    align-items: flex-end;
    justify-content: stretch;
  }

  .workspace-sheet {
    width: 100%;
    height: min(92dvh, 760px);
    border-left: 0;
    border-top: 1px solid #d8d0c2;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -18px 42px rgba(31, 38, 35, 0.22);
  }

  .workspace-sheet-header {
    padding: 12px;
  }

  .workspace-sheet-header h2 {
    font-size: 17px;
  }

  .workspace-sheet-body {
    padding: 10px;
  }

  .workspace-sheet .artifact-detail-actions,
  .workspace-sheet .upload-panel > .button-row.end {
    bottom: -10px;
    margin-inline: -10px;
    margin-bottom: -10px;
    padding: 10px;
  }

  .artifact-list-panel,
  .artifact-detail-panel,
  .upload-panel {
    padding: 10px;
  }

  .artifact-list-panel {
    flex: 0 0 auto;
    min-height: 0;
    max-height: none;
    display: block;
    grid-template-rows: auto auto;
    align-content: start;
    overflow: visible;
  }

  .artifact-list {
    gap: 8px;
    overflow: visible;
    padding: 0;
  }

  .library-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .library-search {
    --library-search-control-height: 28px;
    min-height: 32px;
    padding-inline: 8px;
  }

  .library-filter-grid label {
    gap: 3px;
  }

  .library-filter-grid select {
    min-height: 28px;
    height: 28px;
    padding: 0 6px;
    font-size: 11px;
  }

  .panel-heading.compact {
    margin-bottom: 10px;
  }

  .panel-heading h2 {
    font-size: 16px;
  }

  .artifact-folder-heading {
    min-height: 34px;
    padding: 0 8px;
  }

  .artifact-folder-items {
    gap: 6px;
    padding: 6px;
  }

  .artifact-row {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 6px;
  }

  .artifact-select-button {
    min-height: 38px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 7px;
  }

  .artifact-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }

  .artifact-main strong {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 13px;
    line-height: 1.18;
  }

  .artifact-main span {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
  }

  .artifact-row-actions {
    justify-content: space-between;
    gap: 5px;
    padding-top: 6px;
    border-top: 1px solid #f0ebe4;
  }

  .row-action-button {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 30px;
  }

  .artifact-detail-panel {
    flex: 0 0 auto;
    gap: 10px;
    height: auto;
  }

  .artifact-detail-summary {
    padding: 8px;
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .artifact-detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 40px;
    gap: 8px;
  }

  .artifact-detail-actions .primary-button {
    grid-column: 1 / -1;
  }

  .artifact-detail-actions .secondary-button,
  .artifact-detail-actions .icon-button {
    width: 100%;
  }

  .upload-panel {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .upload-panel > label:last-of-type {
    flex: none;
    min-height: 220px;
  }

  .viewer-toolbar {
    --control-height: 30px;
    --control-icon-size: 30px;
    --control-font-size: 12px;
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    min-height: 92px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: 5px 8px;
    overflow: hidden;
  }

  .viewer-toolbar > .brand-button {
    grid-column: 1;
    grid-row: 1;
  }

  .viewer-title {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
  }

  .viewer-shell {
    --control-height: 30px;
    --control-icon-size: 30px;
    --control-font-size: 12px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    grid-template-rows: 92px minmax(0, 1fr);
    grid-template-columns: minmax(0, 1fr);
  }

  .toolbar-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: calc(var(--control-height) + 2px);
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 1px;
  }

  .toolbar-actions > * {
    flex: 0 0 auto;
  }

  .viewport-menu {
    position: fixed;
    top: 84px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .viewport-readout-button span {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

.comments-panel {
  max-height: 44vh;
  padding: 10px;
}

  .comments-sheet-handle {
    width: 100%;
    min-height: 22px;
    border: 0;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
  }

  .comments-sheet-handle span {
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #c9c0b4;
  }

  .comments-sheet-tab {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 50;
    min-height: 38px;
    border: 1px solid #d8d0c2;
    border-radius: 999px;
    background: #fffaf0;
    color: #243136;
    box-shadow: 0 12px 26px rgba(31, 38, 35, 0.18);
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
  }

  .modal-backdrop {
    padding: 12px;
    align-items: end;
  }

  .share-dialog {
    max-height: calc(100vh - 24px);
  }

  .share-link-row {
    grid-template-columns: 1fr;
  }

  .advanced-share-body,
  .mcp-config-box {
    grid-template-columns: 1fr;
  }

  .advanced-share-body .secondary-button,
  .mcp-config-box .secondary-button {
    width: 100%;
    justify-content: center;
  }

  .agent-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .app-shell {
    height: auto;
    min-height: 100dvh;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    overflow-x: hidden;
    overflow-y: visible;
  }

  .sidebar {
    min-height: 0;
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 1px solid #d8d0c2;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 10px 16px;
    overflow: visible;
  }

  .brand {
    min-width: 0;
  }

  .brand span,
  .desktop-mcp-nav-item,
  .sidebar .mcp-card,
  .sidebar .plan-chip {
    display: none;
  }

  .nav-list {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
    gap: 6px;
  }

  .nav-item {
    min-width: 0;
    min-height: 34px;
    justify-content: center;
    padding: 0 10px;
    text-align: center;
    line-height: 1.12;
  }

  .app-content {
    min-height: 0;
    padding: 12px 16px 20px;
    display: block;
    overflow: visible;
  }

  .topbar {
    margin-bottom: 10px;
  }

  .topbar p {
    display: none;
  }

  .topbar-actions {
    flex: 0 0 auto;
    gap: 6px;
  }

  .topbar-actions .primary-button,
  .topbar-actions .secondary-button {
    min-height: 32px;
    padding: 0 9px;
  }

  .mobile-mcp-panel {
    display: block;
    margin-bottom: 12px;
  }

  .dashboard-grid {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    overflow: visible;
    padding-right: 0;
  }

  .artifact-list-panel,
  .artifact-detail-panel,
  .upload-panel {
    padding: 10px;
  }

  .artifact-list-panel {
    flex: 0 0 auto;
    min-height: 0;
    max-height: none;
    display: block;
    overflow: visible;
  }

  .artifact-list {
    overflow: visible;
    padding: 0;
  }

  .artifact-detail-panel {
    flex: 0 0 auto;
    height: auto;
  }

  .upload-panel {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .upload-panel > label:last-of-type {
    flex: none;
    min-height: 220px;
  }
}

@media (max-width: 680px) {
  .sidebar {
    padding: 8px 12px 10px;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .nav-list {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 5px;
  }

  .app-content {
    padding: 10px 12px 18px;
  }

  .mobile-mcp-panel {
    margin-bottom: 10px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .agent-terminal-demo {
    top: max(12px, calc((100svh - 496px) / 2));
  }

  .agent-terminal-body {
    min-height: 400px;
    padding: 18px;
  }

  .interactive-review-demo-scroll {
    min-height: 220svh;
    overflow: visible;
  }

  .interactive-review-demo-scale-frame {
    position: sticky;
    top: max(12px, calc((100svh - var(--demo-frame-height)) / 2));
    width: 100%;
    height: var(--demo-frame-height);
    overflow: hidden;
  }

  .interactive-review-demo {
    width: 1180px;
    max-width: none;
    position: relative;
    top: auto;
    transform: scale(var(--demo-scale));
    transform-origin: top left;
  }

  .demo-toolbar {
    min-height: 52px;
    padding: 8px 10px 8px 14px;
    align-items: center;
    flex-direction: row;
  }

  .demo-toolbar-actions {
    width: auto;
    display: flex;
    grid-template-columns: none;
  }

  .demo-review-surface {
    grid-template-columns: minmax(0, 1fr) 330px;
    height: 720px;
    min-height: 560px;
    overflow: hidden;
  }

  .demo-document-frame {
    padding: 18px 18px 22px;
  }

  .demo-document {
    min-height: 500px;
    transform: translateY(var(--demo-report-offset, 0px));
  }

  .demo-report-masthead {
    padding: 28px 30px 24px;
  }

  .demo-report-masthead h3 {
    font-size: 48px;
  }

  .demo-report-masthead p {
    font-size: 15px;
  }

  .demo-report-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(190px, 0.9fr);
  }

  .demo-signal-section {
    padding: 26px 30px 30px;
  }

  .demo-section-heading {
    align-items: center;
    flex-direction: row;
  }

  .demo-section-heading h4 {
    font-size: 25px;
  }

  .demo-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .demo-metric-grid article {
    min-height: 174px;
    padding: 16px;
  }

  .demo-metric-grid strong {
    margin: 16px 0 8px;
    font-size: 30px;
  }

  .demo-metric-grid p {
    min-height: 54px;
    font-size: 12px;
  }

  .spark {
    height: 24px;
    margin-top: 12px;
  }

  .title-pin {
    top: 18px;
    left: 18px;
  }

  .signal-pin {
    top: 40px;
    left: 8px;
  }

  .demo-comments-panel {
    position: static;
    inset: auto;
    z-index: auto;
    max-height: none;
    overflow: hidden;
    overscroll-behavior: auto;
    padding: 18px 14px;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 1px solid #c7ced2;
    border-radius: 0;
    box-shadow: none;
  }

  .demo-comments-panel h3 {
    margin: 6px 0 14px;
    font-size: 20px;
  }

  .demo-current-version {
    display: block;
  }

  .demo-comments-panel,
  .demo-comment-list,
  .demo-comment-card {
    touch-action: pan-y;
  }

  .demo-comment-list,
  .demo-comment-list.focus-second,
  .demo-comment-list.focus-draft {
    transform: translateY(0);
  }

  .demo-comment-list.draft-visible,
  .demo-comment-list.focus-draft.draft-visible {
    transform: translateY(-26px);
  }
}

@media (max-width: 680px) {
  .agent-terminal-demo {
    top: max(8px, calc((100svh - 496px) / 2));
  }

  .agent-terminal-chrome {
    min-height: 72px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 10px;
    padding: 10px 12px;
  }

  .agent-terminal-chrome em {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .agent-terminal-body {
    min-height: 420px;
    padding: 12px;
    gap: 12px;
  }

  .agent-terminal-message {
    padding: 12px;
  }

  .agent-terminal-message p {
    font-size: 13px;
  }

  .agent-terminal-thinking {
    min-height: 42px;
    padding: 0 12px;
  }

  .agent-terminal-thinking span {
    font-size: 13px;
  }

  .interactive-review-demo-scale-frame {
    top: max(8px, calc((100svh - var(--demo-frame-height)) / 2));
  }
}

html[data-slopdocs-capture-mode="static"] .agent-terminal-demo-scroll,
html[data-slopdocs-capture-mode="static"] .interactive-review-demo-scroll {
  min-height: 0;
}

html[data-slopdocs-capture-mode="static"] .agent-terminal-demo,
html[data-slopdocs-capture-mode="static"] .interactive-review-demo-scale-frame {
  position: relative;
  top: auto;
}

html[data-slopdocs-capture-mode="static"] .interactive-review-demo-scroll {
  overflow: visible;
  opacity: 1;
  transform: none;
}

html[data-slopdocs-capture-mode="static"] .hero-terminal-demo .agent-terminal-demo-scroll {
  opacity: 1;
  transform: none;
}

html[data-slopdocs-capture-mode="static"] .interactive-review-demo-scale-frame {
  width: 100%;
  height: auto;
  overflow: visible;
}

html[data-slopdocs-capture-mode="static"] .interactive-review-demo {
  max-width: 100%;
  transform: none;
}

html[data-slopdocs-capture-mode="static"] .agent-terminal-thinking,
html[data-slopdocs-capture-mode="static"] .agent-terminal-thinking span,
html[data-slopdocs-capture-mode="static"] .agent-terminal-message.assistant p,
html[data-slopdocs-capture-mode="static"] .demo-box,
html[data-slopdocs-capture-mode="static"] .demo-signal-section,
html[data-slopdocs-capture-mode="static"] .demo-pin,
html[data-slopdocs-capture-mode="static"] .demo-draft-box,
html[data-slopdocs-capture-mode="static"] .demo-drag-cursor,
html[data-slopdocs-capture-mode="static"] .demo-draft-pin,
html[data-slopdocs-capture-mode="static"] .demo-comment-list,
html[data-slopdocs-capture-mode="static"] .demo-draft-comment {
  animation: none;
  transition: none;
}
