:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --panel-soft: #f9fafb;
  --ink: #17212f;
  --muted: #637083;
  --line: #d9e0e8;
  --line-strong: #b9c4d1;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --teal-soft: #dff5f1;
  --blue: #2563eb;
  --navy: #0f1f33;
  --green: #16803d;
  --amber: #b45309;
  --red: #c2410c;
  --shadow: 0 18px 42px rgba(21, 32, 48, 0.08);
  --radius: 8px;
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}


* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(246, 247, 249, 0) 240px),
    var(--bg);
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(185, 196, 209, 0.72);
  background: rgba(246, 247, 249, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.22);
}

.brand span {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 17px;
  line-height: 1;
}

.brand small,
.metric span,
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.topbar__metrics,
.topbar__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.mode-switch button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.mode-switch button.is-active {
  background: var(--navy);
  color: #ffffff;
}

.service-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.service-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(180, 83, 9, 0.1);
}

.service-status--online i {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 128, 61, 0.1);
}

.service-status--offline i {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.1);
}

.metric {
  min-width: 128px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.metric strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(560px, 0.95fr);
  gap: 48px;
  width: min(1564px, calc(100% - 36px));
  margin: 18px auto 0;
  padding: 34px 36px;
  overflow: hidden;
  border: 1px solid rgba(15, 31, 51, 0.1);
  border-radius: 14px;
  background:
    radial-gradient(circle at 86% 10%, rgba(42, 209, 181, 0.2), transparent 28%),
    linear-gradient(135deg, #0f1f33 0%, #102b3a 52%, #0c514d 100%);
  color: #ffffff;
  box-shadow: 0 26px 60px rgba(15, 31, 51, 0.16);
}

.product-hero__copy {
  display: grid;
  align-content: center;
  gap: 13px;
}

.product-hero .eyebrow {
  color: #7de3d2;
}

.product-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.product-hero__copy > p:last-child {
  max-width: 760px;
  margin: 0;
  color: #c5d6df;
  font-size: 15px;
  line-height: 1.58;
}

.hero-flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: center;
}

.hero-flow__step {
  display: flex;
  align-items: center;
  min-height: 94px;
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}

.hero-flow__step > span {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #66dfc9;
  color: #0f2c32;
  font-size: 12px;
  font-weight: 900;
}

.hero-flow__step div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.hero-flow__step strong {
  font-size: 14px;
}

.hero-flow__step small {
  color: #b7ccd5;
  font-size: 12px;
  line-height: 1.35;
}

.shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.panel__header h1,
.panel__header h2,
.rfq-copy h2,
.timeline-step h3 {
  margin: 0;
  letter-spacing: 0;
}

.panel__header h1,
.inbox-panel .panel__header h2 {
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.1;
}

.panel__header h2,
.rfq-copy h2 {
  margin-top: 4px;
  font-size: 19px;
  line-height: 1.18;
}

.eyebrow {
  margin: 0;
}

.status-pill,
.language-chip,
.priority {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill--success {
  border-color: rgba(22, 128, 61, 0.28);
  color: var(--green);
  background: rgba(22, 128, 61, 0.08);
}

.status-pill--warning {
  border-color: rgba(180, 83, 9, 0.28);
  color: var(--amber);
  background: rgba(180, 83, 9, 0.08);
}

.inbox-panel {
  align-self: start;
  overflow: hidden;
}

.rfq-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.rfq-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 74px;
  gap: 14px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.rfq-item:hover,
.rfq-item:focus-visible {
  border-color: var(--line-strong);
  background: var(--panel-soft);
  outline: none;
}

.rfq-item.is-selected {
  border-color: rgba(15, 118, 110, 0.36);
  background: rgba(15, 118, 110, 0.08);
}

.rfq-item__main {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.rfq-item__main strong,
.rfq-item__main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rfq-item__main small {
  color: var(--muted);
  font-size: 13px;
}

.rfq-item__main em {
  width: max-content;
  color: var(--teal-dark);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.priority--high {
  color: var(--red);
  background: rgba(194, 65, 12, 0.08);
}

.priority--medium {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
}

.workbench {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.control-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  overflow: hidden;
}

.rfq-copy {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.rfq-copy__title {
  display: grid;
  gap: 8px;
}

.rfq-copy p {
  max-width: 900px;
  margin: 0;
  color: #344255;
  font-size: 15px;
  line-height: 1.58;
}

.rfq-input-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rfq-input-toolbar label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.rfq-input-toolbar__actions,
.creative-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rfq-input {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  color: #243246;
  font-size: 15px;
  line-height: 1.55;
}

.rfq-input:focus {
  border-color: rgba(15, 118, 110, 0.52);
  outline: 3px solid rgba(15, 118, 110, 0.12);
}

.input-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.input-status strong {
  color: var(--red);
}

.input-status span + span::before {
  margin-right: 8px;
  color: var(--line-strong);
  content: "•";
}

.control-panel__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-left: 1px solid var(--line);
  background: var(--panel-soft);
}

.primary-button,
.approval-button,
.secondary-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--radius);
  font-weight: 850;
}

.primary-button,
.approval-button {
  min-height: 44px;
  border: 0;
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.22);
}

.primary-button {
  min-width: 156px;
  padding: 0 16px;
}

.primary-button:hover,
.approval-button:hover {
  background: var(--teal-dark);
}

.secondary-button,
.icon-button {
  min-height: 36px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.secondary-button {
  padding: 0 11px;
  text-decoration: none;
}

.secondary-button:hover,
.icon-button:hover,
.icon-button.is-active {
  border-color: rgba(15, 118, 110, 0.36);
  color: var(--teal-dark);
  background: rgba(15, 118, 110, 0.08);
}

.secondary-button--link {
  min-height: 44px;
}

.icon-button {
  width: 36px;
  padding: 0;
}

.approval-button {
  width: 100%;
  margin-top: 14px;
  padding: 0 14px;
}

.progress-ring {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--panel-soft) 58%, transparent 59%),
    conic-gradient(var(--teal) var(--progress), #dce3eb 0);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.progress-ring--0 { --progress: 0%; }
.progress-ring--5 { --progress: 5%; }
.progress-ring--10 { --progress: 10%; }
.progress-ring--15 { --progress: 15%; }
.progress-ring--20 { --progress: 20%; }
.progress-ring--25 { --progress: 25%; }
.progress-ring--30 { --progress: 30%; }
.progress-ring--35 { --progress: 35%; }
.progress-ring--40 { --progress: 40%; }
.progress-ring--45 { --progress: 45%; }
.progress-ring--50 { --progress: 50%; }
.progress-ring--55 { --progress: 55%; }
.progress-ring--60 { --progress: 60%; }
.progress-ring--65 { --progress: 65%; }
.progress-ring--70 { --progress: 70%; }
.progress-ring--75 { --progress: 75%; }
.progress-ring--80 { --progress: 80%; }
.progress-ring--85 { --progress: 85%; }
.progress-ring--90 { --progress: 90%; }
.progress-ring--95 { --progress: 95%; }
.progress-ring--100 { --progress: 100%; }

.view-tabs {
  scroll-margin-top: 80px;
  display: flex;
  width: max-content;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 8px 18px rgba(21, 32, 48, 0.06);
}

.view-tab {
  min-width: 110px;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.view-tab.is-active {
  background: var(--teal);
  color: #ffffff;
}

.run-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(194, 65, 12, 0.28);
  border-radius: var(--radius);
  background: rgba(194, 65, 12, 0.08);
  color: var(--red);
  font-size: 13px;
}

.run-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 189, 89, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 189, 89, 0.1);
  color: var(--ink);
}

.run-notice > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.run-notice strong {
  font-size: 13px;
}

.run-notice span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.run-notice__action {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 40px;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(180, 83, 9, 0.26);
  border-radius: 8px;
  background: transparent;
  color: var(--amber);
  font-size: 12px;
  font-weight: 850;
}

.run-notice__action:hover {
  background: rgba(180, 83, 9, 0.1);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.proof-card {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 18px rgba(21, 32, 48, 0.05);
}

.proof-card > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.proof-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.proof-card small {
  min-height: 31px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr);
  gap: 14px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 0;
  min-height: 420px;
  padding: 8px 18px 18px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding-top: 18px;
}

.timeline-step__rail {
  display: grid;
  justify-items: center;
}

.timeline-step__rail span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--teal);
  background: rgba(15, 118, 110, 0.1);
}

.timeline-step__body {
  display: grid;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.timeline-step__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.execution-chip {
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: #edf2f7;
  color: #425269;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.execution-chip--qwen-cloud {
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
}

.execution-chip--human-checkpoint {
  background: rgba(180, 83, 9, 0.1);
  color: var(--amber);
}

.execution-chip--memory-write {
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal-dark);
}

.timeline-step h3 {
  font-size: 16px;
}

.timeline-step p {
  margin: 0;
  color: #344255;
  line-height: 1.48;
}

.evidence-list,
.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.evidence-list span,
.tool-row code {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  color: #344255;
  font-size: 12px;
}

.tool-row code {
  color: var(--teal-dark);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.decision-panel,
.quote-panel,
.draft-panel,
.memory-panel,
.learning-panel,
.media-panel,
.creative-panel,
.trace-panel,
.trace-prompt-panel {
  overflow: hidden;
}

.risk-stack,
.memory-list,
.outcome-list {
  display: grid;
  gap: 10px;
  padding: 14px 18px 0;
}

.risk {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.risk strong {
  font-size: 14px;
}

.risk span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.risk--high {
  border-color: rgba(194, 65, 12, 0.28);
  background: rgba(194, 65, 12, 0.08);
}

.risk--medium {
  border-color: rgba(180, 83, 9, 0.28);
  background: rgba(180, 83, 9, 0.08);
}

.risk--low {
  border-color: rgba(22, 128, 61, 0.28);
  background: rgba(22, 128, 61, 0.08);
}

.decision-panel .approval-button {
  width: calc(100% - 36px);
  margin-inline: 18px;
}

.memory-replay-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 36px);
  min-height: 42px;
  gap: 8px;
  margin: 10px 18px 0;
  padding: 0 14px;
  border: 1px solid rgba(15, 118, 110, 0.3);
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 850;
}

.memory-replay-button:hover {
  border-color: var(--teal);
  background: #d3f0eb;
}

.route-asset {
  display: grid;
  grid-template-columns: 1fr minmax(80px, 1.2fr) 1fr;
  align-items: center;
  gap: 12px;
  margin: 18px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 46%),
    linear-gradient(45deg, rgba(15, 118, 110, 0.1), transparent 50%),
    #fbfcfd;
}

.route-asset__port {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.route-asset__port strong {
  font-size: 15px;
}

.route-asset__port span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.route-asset__port--destination {
  text-align: right;
}

.route-asset__line {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.route-asset__line::before,
.route-asset__line::after {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
  transform: translateY(-50%);
}

.route-asset__line::before {
  left: 0;
}

.route-asset__line::after {
  right: 0;
  background: var(--blue);
}

.route-asset__line span {
  position: absolute;
  top: -13px;
  left: 45%;
  width: 28px;
  height: 18px;
  border: 2px solid var(--teal-dark);
  border-radius: 999px 999px 999px 2px;
  background: #ffffff;
  transform: rotate(-18deg);
}

.quote-table {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 10px 18px 18px;
}

.quote-table div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.quote-table dt {
  color: var(--muted);
  font-weight: 760;
}

.quote-table dd {
  margin: 0;
  text-align: right;
  font-weight: 850;
}

.quote-table .is-total {
  padding-top: 18px;
  border-bottom: 0;
}

.quote-table .is-total dd {
  color: var(--teal-dark);
  font-size: 22px;
}

.draft-panel pre {
  min-height: 360px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  white-space: pre-wrap;
  color: #243246;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  line-height: 1.62;
}

.media-upload {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.upload-zone {
  position: relative;
  display: grid;
  min-height: 360px;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 48%),
    #fbfcfd;
  cursor: pointer;
}

.upload-zone:hover {
  border-color: rgba(15, 118, 110, 0.48);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), transparent 48%),
    #ffffff;
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.media-preview {
  position: relative;
  min-height: 360px;
  background: #edf2f5;
}

.media-preview img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.media-preview span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(15, 118, 110, 0.92);
}

.media-meta {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.media-meta span {
  color: var(--muted);
  font-size: 13px;
}

.media-meta .secondary-button {
  width: max-content;
  margin-top: 6px;
}

.creative-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.creative-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  object-fit: contain;
}

.product-video-result {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.product-video-result__header,
.product-video-result__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
}

.product-video-result__header {
  border-bottom: 1px solid var(--line);
}

.product-video-result__header div {
  display: grid;
  gap: 3px;
}

.product-video-result__header span,
.product-video-result__footer > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.product-video-result__header strong {
  font-size: 13px;
}

.creative-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #07090c;
  object-fit: contain;
}

.product-video-result__footer {
  border-top: 1px solid var(--line);
}

.video-generation-status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.video-generation-status__signal {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 3px solid rgba(15, 118, 110, 0.22);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: video-status-spin 0.9s linear infinite;
}

.video-generation-status div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.video-generation-status strong {
  font-size: 14px;
}

.video-generation-status div span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

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

.creative-route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.creative-route div {
  min-width: 0;
  padding: 12px;
}

.creative-route div + div {
  border-left: 1px solid var(--line);
}

.creative-route span,
.creative-route strong {
  display: block;
}

.creative-route span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.creative-route strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.4;
}

.creative-brief {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.creative-brief div,
.creative-brief p {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.creative-brief span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.creative-brief strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.35;
}

.creative-brief p {
  grid-column: 1 / -1;
  color: #344255;
  font-size: 13px;
  line-height: 1.46;
}

.trace-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.trace-fact {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.trace-fact span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.trace-fact strong {
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.trace-code {
  min-height: 360px;
  max-height: 560px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  background: #111827;
  color: #e5edf7;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.58;
  white-space: pre-wrap;
}

.trace-code--prompt {
  background: #17212f;
}

.memory-item,
.outcome-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

.memory-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 850;
}

.text-button:hover {
  text-decoration: underline;
}

.memory-persistence-note {
  margin: 0;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 118, 110, 0.055);
  color: #415268;
  font-size: 12px;
  line-height: 1.45;
}

.memory-item div {
  display: grid;
  gap: 5px;
}

.memory-item span,
.outcome-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

meter {
  width: 100%;
  height: 8px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.empty-state svg {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  color: var(--line-strong);
}

.empty-state strong {
  color: var(--ink);
}

.empty-state span {
  max-width: 260px;
  margin-top: 4px;
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .topbar {
    align-items: flex-start;
    gap: 12px;
  }

  .topbar__metrics {
    display: none;
  }

  .product-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 14px;
  }

  .topbar__controls {
    justify-content: space-between;
    overflow-x: auto;
  }

  .mode-switch {
    flex: 0 0 auto;
  }

  .product-hero {
    width: calc(100% - 24px);
    margin-top: 12px;
    padding: 24px 20px;
  }

  .hero-flow {
    grid-template-columns: 1fr;
  }

  .shell {
    padding: 12px;
  }

  .control-panel {
    grid-template-columns: 1fr;
  }

  .control-panel__actions {
    justify-content: space-between;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .view-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .view-tab {
    min-width: 86px;
    flex: 1;
    font-size: 13px;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .timeline-step__topline {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .execution-chip {
    margin-left: 0;
  }

  .memory-header-actions {
    align-items: flex-end;
    flex-direction: column;
  }

  .trace-grid {
    grid-template-columns: 1fr 1fr;
  }

  .creative-brief {
    grid-template-columns: 1fr;
  }

  .creative-route {
    grid-template-columns: 1fr;
  }

  .creative-route div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .upload-zone,
  .media-preview,
  .media-preview img {
    min-height: 280px;
  }

  .route-asset {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .route-asset__line {
    width: 2px;
    height: 64px;
    justify-self: center;
    background: linear-gradient(180deg, var(--teal), var(--blue));
  }

  .route-asset__line::before,
  .route-asset__line::after {
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .route-asset__line::before {
    top: 0;
  }

  .route-asset__line::after {
    top: 100%;
  }

  .route-asset__line span {
    top: 22px;
    left: -13px;
    transform: rotate(72deg);
  }

  .route-asset__port,
  .route-asset__port--destination {
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   QuoteX editorial dark system — inspired by premium creative-tool galleries
   -------------------------------------------------------------------------- */

:root {
  --bg: #050505;
  --panel: #0d0d0f;
  --panel-soft: #151519;
  --ink: #f7f7f4;
  --muted: #9898a1;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.22);
  --teal: #55e6d2;
  --teal-dark: #7df4df;
  --teal-soft: rgba(85, 230, 210, 0.12);
  --blue: #6787ff;
  --navy: #0a0a0d;
  --green: #b9ff66;
  --amber: #ffbd59;
  --red: #ff725e;
  --purple: #9b78ff;
  --pink: #ff67c7;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
  --radius: 14px;
  color-scheme: dark;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(103, 135, 255, 0.13), transparent 24rem),
    radial-gradient(circle at 12% 38%, rgba(255, 103, 199, 0.08), transparent 28rem),
    #050505;
  color: var(--ink);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  opacity: 0.18;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 60%);
}

::selection {
  background: var(--pink);
  color: #050505;
}

button:focus-visible,
textarea:focus-visible,
input:focus-visible,
label:focus-within {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.topbar {
  min-height: 72px;
  padding: 12px max(24px, calc((100vw - 1380px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(24px) saturate(1.2);
}

.brand {
  min-width: 220px;
  color: #fff;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 12px 30px rgba(103, 135, 255, 0.24);
}

.brand strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand small {
  color: #77777f;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.topbar__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.topbar__nav button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #8b8b93;
  font-size: 12px;
  font-weight: 700;
}

.topbar__nav button:hover,
.topbar__nav button.is-active {
  background: #17171a;
  color: #fff;
}

.topbar__controls {
  min-width: 320px;
  justify-content: flex-end;
}

.mode-switch {
  border-color: rgba(255, 255, 255, 0.12);
  background: #111114;
}

.mode-switch button {
  color: #777780;
}

.mode-switch button.is-active {
  background: #f5f5f2;
  color: #08080a;
}

.service-status {
  border-color: rgba(255, 255, 255, 0.1);
  background: #111114;
  color: #a6a6ad;
}

.product-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  width: min(1380px, calc(100% - 48px));
  min-height: 560px;
  margin: 0 auto;
  padding: 80px 0 42px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.product-hero__copy {
  gap: 18px;
  max-width: 930px;
}

.product-hero .eyebrow {
  color: #777780;
  font-size: 11px;
  letter-spacing: 0.11em;
}

.product-hero h1 {
  max-width: 1020px;
  font-size: clamp(48px, 5.6vw, 82px);
  font-weight: 560;
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.product-hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, #fff 0%, #8ea4ff 36%, #f57bd0 68%, #ffaf72 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.product-hero__copy > p:last-of-type {
  max-width: 720px;
  color: #9f9fa7;
  font-size: 16px;
  line-height: 1.65;
}

.product-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 9px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: #f7f7f3;
  color: #08080a;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 14px 34px rgba(255, 255, 255, 0.1);
}

.hero-button:hover {
  background: var(--green);
  transform: translateY(-1px);
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #777780;
  font-size: 12px;
  font-weight: 700;
}

.hero-note i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(185, 255, 102, 0.1);
}

.hero-flow {
  display: grid;
  grid-template-columns: minmax(160px, 0.72fr) minmax(300px, 1.5fr) minmax(180px, 0.88fr);
  grid-template-rows: repeat(2, minmax(120px, 1fr));
  gap: 10px;
  min-height: 300px;
}

.hero-flow__step {
  position: relative;
  align-items: flex-end;
  min-height: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  backdrop-filter: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.16), 0 22px 52px rgba(0, 0, 0, 0.25);
}

.hero-flow__step::before,
.hero-flow__step::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.hero-flow__step::before {
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.36), transparent 24%);
  mix-blend-mode: soft-light;
}

.hero-flow__step::after {
  top: 28px;
  right: 28px;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.07), 0 0 0 38px rgba(255, 255, 255, 0.04);
}

.hero-flow__step--01 {
  grid-row: 1 / 3;
  background: linear-gradient(165deg, #ffc8e4 0%, #ff709f 42%, #8a42ff 100%);
}

.hero-flow__step--02 {
  grid-row: 1 / 3;
  background:
    radial-gradient(circle at 56% 34%, #ffe4b4 0 8%, transparent 28%),
    linear-gradient(155deg, #338f93 0%, #55d3bd 48%, #f0a965 100%);
}

.hero-flow__step--03 {
  background: linear-gradient(160deg, #386ff5 0%, #667bf8 48%, #bd68ed 100%);
}

.hero-flow__step--04 {
  background: linear-gradient(155deg, #9ce45e 0%, #24a46d 54%, #123b32 100%);
}

.hero-flow__step > span {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  width: auto;
  height: auto;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.22);
  color: #fff;
  font-size: 10px;
  backdrop-filter: blur(8px);
}

.hero-flow__step div {
  z-index: 1;
  gap: 6px;
}

.hero-flow__step strong {
  color: #fff;
  font-size: clamp(17px, 1.6vw, 24px);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.hero-flow__step small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.shell {
  grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
  gap: 16px;
  width: min(1380px, calc(100% - 48px));
  padding: 0 0 96px;
}

.panel {
  border-color: var(--line);
  border-radius: 16px;
  background: rgba(14, 14, 17, 0.9);
  box-shadow: var(--shadow);
}

.panel__header {
  padding: 20px 20px 16px;
  border-bottom-color: var(--line);
}

.panel__header h1,
.panel__header h2,
.rfq-copy h2,
.timeline-step h3 {
  color: var(--ink);
  letter-spacing: -0.025em;
}

.panel__header h2,
.rfq-copy h2 {
  font-size: 20px;
}

.eyebrow {
  color: #72727b;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.inbox-panel {
  position: sticky;
  top: 88px;
  background: #0a0a0c;
}

.rfq-list {
  gap: 6px;
  padding: 10px;
}

.rfq-item {
  min-height: 84px;
  border-color: transparent;
  border-radius: 12px;
  color: #f3f3f1;
}

.rfq-item:hover,
.rfq-item:focus-visible {
  border-color: rgba(255, 255, 255, 0.14);
  background: #151519;
}

.rfq-item.is-selected {
  border-color: rgba(136, 151, 255, 0.5);
  background:
    linear-gradient(105deg, rgba(93, 120, 255, 0.24), rgba(255, 92, 194, 0.08)),
    #111116;
  box-shadow: inset 3px 0 #7890ff;
}

.rfq-item__main small,
.input-status,
.timeline-step__topline,
.risk span,
.memory-item span,
.outcome-item span {
  color: #878790;
}

.priority,
.status-pill,
.language-chip {
  border-color: rgba(255, 255, 255, 0.11);
  background: #18181c;
  color: #aaaab1;
}

.priority--high {
  border-color: rgba(255, 114, 94, 0.3);
  background: rgba(255, 114, 94, 0.1);
  color: #ff8978;
}

.priority--medium {
  border-color: rgba(103, 135, 255, 0.32);
  background: rgba(103, 135, 255, 0.1);
  color: #90a6ff;
}

.workbench {
  gap: 12px;
}

.control-panel {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 88% 20%, rgba(103, 135, 255, 0.18), transparent 25%),
    linear-gradient(135deg, #141419, #0c0c0f 64%);
}

.rfq-copy {
  padding: 24px;
}

.rfq-input-toolbar label {
  color: #85858d;
}

.rfq-input {
  min-height: 150px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.32);
  color: #e7e7e4;
}

.rfq-input:focus {
  border-color: rgba(103, 135, 255, 0.7);
  outline-color: rgba(103, 135, 255, 0.16);
}

.control-panel__actions {
  border-left-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

.primary-button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #f4f4f1;
  color: #070709;
  box-shadow: none;
}

.primary-button:hover {
  background: var(--green);
}

.secondary-button,
.icon-button {
  border-color: rgba(255, 255, 255, 0.12);
  background: #151519;
  color: #d5d5d2;
}

.secondary-button:hover,
.icon-button:hover,
.icon-button.is-active {
  border-color: rgba(103, 135, 255, 0.5);
  background: rgba(103, 135, 255, 0.12);
  color: #a9b8ff;
}

.progress-ring {
  background:
    radial-gradient(circle at center, #101014 58%, transparent 59%),
    conic-gradient(var(--pink) var(--progress), #2a2a30 0);
  color: #fff;
}

.view-tabs {
  width: 100%;
  border-color: rgba(255, 255, 255, 0.1);
  background: #0b0b0d;
  box-shadow: none;
}

.view-tab {
  color: #777780;
}

.view-tab:hover {
  color: #fff;
}

.view-tab.is-active {
  background: #242429;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.proof-grid {
  gap: 8px;
}

.proof-card {
  min-height: 132px;
  align-content: end;
  padding: 16px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
}

.proof-card:nth-child(1) {
  background: linear-gradient(150deg, #8271ff 0%, #c776ff 58%, #ff79bd 100%);
}

.proof-card:nth-child(2) {
  background: linear-gradient(150deg, #65e9dc 0%, #4fb1dc 55%, #4774ea 100%);
}

.proof-card:nth-child(3) {
  background: linear-gradient(150deg, #ffcf77 0%, #ff8c68 52%, #e95f83 100%);
}

.proof-card:nth-child(4) {
  background: linear-gradient(150deg, #d8ff73 0%, #87db62 52%, #3eaa78 100%);
}

.proof-card > span,
.proof-card strong,
.proof-card small {
  color: #0a0a0b;
}

.proof-card > span {
  opacity: 0.58;
}

.proof-card strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.proof-card small {
  min-height: 0;
  opacity: 0.64;
}

.workspace-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.8fr);
  gap: 12px;
}

.agent-panel,
.decision-panel,
.quote-panel,
.draft-panel,
.memory-panel,
.learning-panel,
.media-panel,
.creative-panel,
.trace-panel,
.trace-prompt-panel {
  border-color: rgba(255, 255, 255, 0.11);
  background: #0d0d10;
}

.timeline {
  min-height: 460px;
}

.timeline-step__rail span {
  color: #fff;
  background: linear-gradient(135deg, #6b84ff, #e46bca);
  box-shadow: 0 0 0 6px rgba(107, 132, 255, 0.08);
}

.timeline-step__body {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.timeline-step p {
  color: #a0a0a8;
}

.evidence-list span,
.tool-row code {
  border-color: rgba(255, 255, 255, 0.09);
  background: #16161a;
  color: #aaaab2;
}

.tool-row code {
  color: #8ff3e2;
}

.decision-panel {
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 103, 199, 0.18), transparent 28%),
    linear-gradient(155deg, #14131d, #0c0c0f 58%);
}

.risk {
  border-color: rgba(255, 255, 255, 0.1);
  background: #17171b;
}

.risk--high {
  border-color: rgba(255, 114, 94, 0.28);
  background: rgba(255, 114, 94, 0.1);
}

.risk--medium {
  border-color: rgba(255, 189, 89, 0.28);
  background: rgba(255, 189, 89, 0.09);
}

.risk--low {
  border-color: rgba(185, 255, 102, 0.24);
  background: rgba(185, 255, 102, 0.08);
}

.approval-button {
  background: var(--green);
  color: #0a0a0b;
  box-shadow: none;
}

.approval-button:hover {
  background: #d0ff94;
}

.memory-replay-button {
  border-color: rgba(85, 230, 210, 0.3);
  background: rgba(85, 230, 210, 0.1);
  color: #8ff3e2;
}

.route-asset {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 18% 30%, rgba(85, 230, 210, 0.22), transparent 28%),
    radial-gradient(circle at 82% 66%, rgba(103, 135, 255, 0.2), transparent 28%),
    #101014;
}

.route-asset__line span {
  background: #141419;
}

.workspace-grid--quote .quote-panel {
  border: 0;
  background: linear-gradient(150deg, #e8ff8b, #a9ed63);
  color: #0a0a0b;
}

.workspace-grid--quote .quote-panel .panel__header {
  border-bottom-color: rgba(0, 0, 0, 0.13);
}

.workspace-grid--quote .quote-panel .eyebrow,
.workspace-grid--quote .quote-panel h2,
.workspace-grid--quote .quote-panel dt,
.workspace-grid--quote .quote-panel dd {
  color: #0a0a0b;
}

.workspace-grid--quote .quote-panel .status-pill {
  border-color: rgba(0, 0, 0, 0.16);
  background: rgba(0, 0, 0, 0.08);
  color: #0a0a0b;
}

.quote-table div {
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

.workspace-grid--quote .quote-table div {
  border-bottom-color: rgba(0, 0, 0, 0.12);
}

.workspace-grid--quote .quote-table .is-total dd {
  color: #0a0a0b;
}

.draft-panel pre {
  color: #b9bac2;
}

.memory-persistence-note {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(155, 120, 255, 0.08);
  color: #a9a0cf;
}

.memory-item,
.outcome-item,
.media-meta,
.creative-route,
.creative-brief div,
.creative-brief p,
.trace-fact {
  border-color: rgba(255, 255, 255, 0.1);
  background: #17171b;
}

.memory-item meter {
  accent-color: var(--purple);
}

.upload-zone {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 103, 199, 0.15), transparent 25%),
    radial-gradient(circle at 80% 70%, rgba(103, 135, 255, 0.18), transparent 26%),
    #121216;
}

.upload-zone:hover {
  border-color: rgba(255, 103, 199, 0.55);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 103, 199, 0.22), transparent 25%),
    radial-gradient(circle at 80% 70%, rgba(103, 135, 255, 0.24), transparent 26%),
    #151519;
}

.media-preview {
  background: #121216;
}

.creative-image {
  border-color: rgba(255, 255, 255, 0.1);
  background: #101014;
}

.creative-brief p,
.draft-panel pre {
  color: #aaaab2;
}

.trace-code {
  background: #08080a;
  color: #cdd8f5;
}

.trace-code--prompt {
  background: #0b0b10;
}

.empty-state {
  color: #73737c;
}

.empty-state strong {
  color: #dadad7;
}

.empty-state svg {
  color: #3a3a42;
}

.run-error {
  border-color: rgba(255, 114, 94, 0.3);
  background: rgba(255, 114, 94, 0.1);
  color: #ff8b7b;
}

.run-notice {
  border-color: rgba(255, 189, 89, 0.28);
  background: rgba(255, 189, 89, 0.09);
  color: #f4f4ef;
}

.run-notice span {
  color: #aaaab2;
}

.run-notice__action {
  border-color: rgba(255, 189, 89, 0.26);
  color: #ffd589;
}

.run-notice__action:hover {
  background: rgba(255, 189, 89, 0.12);
}

@media (max-width: 1180px) {
  .topbar__nav {
    display: none;
  }

  .product-hero {
    min-height: 0;
    padding-top: 84px;
  }

  .hero-flow {
    grid-template-columns: 0.8fr 1.2fr;
    grid-template-rows: repeat(2, 190px);
  }

  .hero-flow__step--01,
  .hero-flow__step--02,
  .hero-flow__step--03,
  .hero-flow__step--04 {
    grid-row: auto;
  }
}

@media (max-width: 780px) {
  .topbar {
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .service-status {
    display: none;
  }

  .topbar__controls {
    min-width: 0;
  }

  .product-hero,
  .shell {
    width: min(100% - 24px, 1380px);
  }

  .product-hero {
    gap: 32px;
    padding: 72px 0 48px;
  }

  .product-hero h1 {
    font-size: clamp(44px, 14vw, 72px);
  }

  .hero-flow {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 150px);
  }

  .hero-flow__step--01,
  .hero-flow__step--02,
  .hero-flow__step--03,
  .hero-flow__step--04 {
    grid-column: auto;
    grid-row: auto;
  }

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

  .inbox-panel {
    position: static;
  }

  .proof-grid,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .control-panel__actions {
    border-top-color: rgba(255, 255, 255, 0.1);
  }
}

.deal-graph-panel,
.deal-graph-inspector {
  overflow: hidden;
}

.deal-graph-panel {
  background:
    radial-gradient(circle at 58% 48%, rgba(85, 230, 210, 0.18), transparent 25%),
    radial-gradient(circle at 80% 76%, rgba(255, 103, 199, 0.12), transparent 24%),
    #07080b;
}

.deal-graph-panel .panel__header {
  align-items: flex-start;
}

.deal-graph-panel .panel__header > div {
  min-width: 0;
}

.deal-graph-panel .panel__description {
  max-width: 680px;
  margin: 9px 0 0;
  color: #9b9ba4;
  font-size: 13px;
  line-height: 1.55;
}

.deal-graph-guide {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 18px 0;
  color: #b9b9c0;
  font-size: 12px;
  line-height: 1.45;
}

.deal-graph-guide strong {
  color: #f4f4ef;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.deal-graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 13px 18px 14px;
  color: #8e8e97;
  font-size: 11px;
  font-weight: 750;
}

.deal-graph-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.deal-legend-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6787ff;
  box-shadow: 0 0 0 4px rgba(103, 135, 255, 0.12);
}

.deal-legend-swatch--memory {
  background: #55e6d2;
  box-shadow: 0 0 0 4px rgba(85, 230, 210, 0.12);
}

.deal-legend-swatch--policy {
  background: #ffbd59;
  box-shadow: 0 0 0 4px rgba(255, 189, 89, 0.12);
}

.deal-graph-scene {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 50% 52%, rgba(85, 230, 210, 0.18), transparent 28%),
    radial-gradient(circle at 52% 52%, rgba(85, 230, 210, 0.08), transparent 46%),
    #050609;
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
}

.deal-graph-scene::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 42% 22%, rgba(85, 230, 210, 0.95) 0 2px, transparent 2.4px),
    radial-gradient(circle at 54% 32%, rgba(103, 135, 255, 0.85) 0 2px, transparent 2.4px),
    radial-gradient(circle at 46% 56%, rgba(255, 189, 89, 0.9) 0 2px, transparent 2.5px),
    radial-gradient(circle at 66% 66%, rgba(255, 103, 199, 0.8) 0 2px, transparent 2.4px);
  background-size: 92px 112px, 126px 96px, 110px 124px, 140px 118px;
  opacity: 0.5;
  content: "";
}

.deal-graph-live {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #7df4df;
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(14px);
}

.deal-graph-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55e6d2;
  box-shadow: 0 0 0 6px rgba(85, 230, 210, 0.12), 0 0 18px rgba(85, 230, 210, 0.7);
}

.deal-graph-empty {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(360px, calc(100% - 48px));
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(85, 230, 210, 0.24);
  border-radius: 14px;
  background: rgba(5, 6, 9, 0.88);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(16px);
}

.deal-graph-empty strong {
  color: #f7f7f3;
  font-size: 14px;
}

.deal-graph-empty span {
  color: #a7a7b0;
  font-size: 12px;
  line-height: 1.5;
}

.deal-graph-scene--empty .deal-node,
.deal-graph-scene--empty .deal-graph-links,
.deal-graph-scene--empty .deal-link-label {
  opacity: 0.34;
}

.deal-graph-links {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.deal-link {
  vector-effect: non-scaling-stroke;
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 1.4;
}

.deal-link--agent {
  stroke: rgba(103, 135, 255, 0.72);
}

.deal-link--memory {
  stroke: rgba(85, 230, 210, 0.7);
}

.deal-link--policy {
  stroke: rgba(255, 189, 89, 0.72);
}

.deal-link--media {
  stroke: rgba(255, 103, 199, 0.7);
}

.deal-link-label {
  position: absolute;
  z-index: 2;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(5, 6, 9, 0.72);
  color: #aaaab2;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.deal-link-label--memory {
  color: #8ff3e2;
}

.deal-link-label--policy {
  color: #ffd589;
}

.deal-link-label--media {
  color: #ff9dd9;
}

/* Fixed graph geometry keeps the strict CSP enabled while preserving the spatial audit view. */
.deal-link-label--rfq-parser { left: 23%; top: 38%; }
.deal-link-label--rfq-memory { left: 23.5%; top: 58%; }
.deal-link-label--parser-product { left: 44.5%; top: 29.5%; }
.deal-link-label--memory-quote { left: 53.5%; top: 55%; }
.deal-link-label--product-quote { left: 63.5%; top: 36.5%; }
.deal-link-label--quote-risk { left: 65%; top: 57%; }
.deal-link-label--quote-route { left: 74%; top: 59%; }
.deal-link-label--risk-approval { left: 74.5%; top: 61.5%; }
.deal-link-label--route-approval { left: 83.5%; top: 63.5%; }
.deal-link-label--media-creative { left: 54.5%; top: 80%; }
.deal-link-label--quote-creative { left: 81.5%; top: 62%; }
.deal-link-label--approval-memory { left: 63%; top: 59.5%; }

.deal-node {
  position: absolute;
  z-index: 3;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  width: min(180px, 22vw);
  min-height: 78px;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(12, 13, 18, 0.86);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(18px);
}

.deal-node--rfq { left: 12%; top: 48%; }
.deal-node--media { left: 18%; top: 78%; }
.deal-node--parser { left: 34%; top: 28%; }
.deal-node--memory { left: 35%; top: 68%; }
.deal-node--product { left: 55%; top: 31%; }
.deal-node--quote { left: 72%; top: 42%; }
.deal-node--risk { left: 58%; top: 72%; }
.deal-node--route { left: 76%; top: 76%; }
.deal-node--approval { left: 91%; top: 51%; }
.deal-node--creative { left: 91%; top: 82%; }

.deal-node::before {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #777780;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.04);
  content: "";
}

.deal-node > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.deal-node > img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.deal-node div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.deal-node strong,
.deal-node small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-node strong {
  color: #fff;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.deal-node small {
  color: #92929b;
  font-size: 11px;
}

.deal-node em {
  grid-column: 1 / -1;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #c9c9cf;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-node--input > span,
.deal-node--model > span {
  background: linear-gradient(135deg, #667cff, #e46bca);
}

.deal-node--memory > span {
  background: linear-gradient(135deg, #55e6d2, #3eaa78);
  color: #06100e;
}

.deal-node--quote > span,
.deal-node--approval > span {
  background: linear-gradient(135deg, #d8ff73, #87db62);
  color: #081008;
}

.deal-node--risk > span {
  background: linear-gradient(135deg, #ffcf77, #ff725e);
  color: #120806;
}

.deal-node--route > span,
.deal-node--media > span,
.deal-node--creative > span {
  background: linear-gradient(135deg, #ff67c7, #6787ff);
}

.deal-node--live::before,
.deal-node--selected::before,
.deal-node--priced::before,
.deal-node--approved::before,
.deal-node--anchored::before,
.deal-node--applied::before,
.deal-node--scored::before,
.deal-node--clear::before,
.deal-node--media-ready::before,
.deal-node--live-image-edit::before {
  background: #b9ff66;
  box-shadow: 0 0 0 5px rgba(185, 255, 102, 0.1), 0 0 18px rgba(185, 255, 102, 0.55);
}

.deal-node--flagged::before,
.deal-node--pending::before,
.deal-node--draft::before,
.deal-node--fallback-edit::before {
  background: #ffbd59;
  box-shadow: 0 0 0 5px rgba(255, 189, 89, 0.1), 0 0 18px rgba(255, 189, 89, 0.5);
}

.deal-graph-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px 18px;
}

.deal-graph-actions > span {
  margin-left: auto;
  color: #85858d;
  font-size: 12px;
  font-weight: 800;
}

.deal-anchor-list {
  display: grid;
  gap: 10px;
  padding: 14px 18px;
}

.deal-anchor {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #151519;
}

.deal-anchor span {
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(85, 230, 210, 0.12);
  color: #8ff3e2;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.deal-anchor strong {
  color: #f7f7f3;
}

.deal-anchor small {
  overflow: hidden;
  color: #8f8f98;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
}

.deal-trajectory {
  display: grid;
  gap: 8px;
  padding: 0 18px 18px;
}

.deal-trajectory__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
}

.deal-trajectory__heading strong {
  color: #f7f7f3;
  font-size: 13px;
}

.deal-trajectory__heading span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #aaaab2;
  font-size: 12px;
  font-weight: 900;
}

.deal-trajectory-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.deal-trajectory-item > span {
  color: #777780;
  font-size: 11px;
  font-weight: 900;
}

.deal-trajectory-item div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.deal-trajectory-item strong,
.deal-trajectory-item small,
.deal-trajectory-item em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-trajectory-item strong {
  color: #e8e8e4;
  font-size: 13px;
}

.deal-trajectory-item small {
  color: #878790;
  font-size: 12px;
}

.deal-trajectory-item em {
  grid-column: 2;
  width: max-content;
  max-width: 100%;
  color: #8ff3e2;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

@media (max-width: 780px) {
  .deal-graph-guide {
    display: grid;
    gap: 5px;
  }

  .deal-graph-panel {
    overflow-x: auto;
  }

  .deal-graph-scene {
    width: 720px;
    min-height: 760px;
  }

  .deal-node {
    width: 172px;
  }

  .deal-link-label {
    display: none;
  }

  .deal-graph-actions > span {
    width: 100%;
    margin-left: 0;
  }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: #111114;
  color: #d6d6d2;
  font-size: 11px;
  font-weight: 800;
}

.theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: #1b1b1f;
  color: #fff;
}

.theme-toggle svg {
  width: 15px;
  height: 15px;
}

/* Light mode keeps the colorful editorial surfaces and softens the workspace. */

:root[data-theme="light"] {
  --bg: #f3f2ee;
  --panel: #ffffff;
  --panel-soft: #f8f7f3;
  --ink: #101012;
  --muted: #696971;
  --line: rgba(10, 10, 12, 0.11);
  --line-strong: rgba(10, 10, 12, 0.2);
  --shadow: 0 24px 70px rgba(37, 32, 52, 0.1);
  color-scheme: light;
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 88% 8%, rgba(103, 135, 255, 0.15), transparent 25rem),
    radial-gradient(circle at 10% 40%, rgba(255, 103, 199, 0.1), transparent 28rem),
    #f3f2ee;
  color: #101012;
}

:root[data-theme="light"] body::before {
  background-image: radial-gradient(rgba(15, 15, 18, 0.12) 0.7px, transparent 0.7px);
  opacity: 0.18;
}

:root[data-theme="light"] .topbar {
  border-bottom-color: rgba(10, 10, 12, 0.1);
  background: rgba(243, 242, 238, 0.86);
}

:root[data-theme="light"] .brand,
:root[data-theme="light"] .topbar__nav button.is-active,
:root[data-theme="light"] .topbar__nav button:hover {
  color: #101012;
}

:root[data-theme="light"] .brand small {
  color: #77777f;
}

:root[data-theme="light"] .topbar__nav button:hover,
:root[data-theme="light"] .topbar__nav button.is-active {
  background: rgba(10, 10, 12, 0.07);
}

:root[data-theme="light"] .mode-switch,
:root[data-theme="light"] .service-status,
:root[data-theme="light"] .theme-toggle {
  border-color: rgba(10, 10, 12, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: #505058;
  box-shadow: 0 6px 18px rgba(20, 20, 26, 0.04);
}

:root[data-theme="light"] .mode-switch button {
  color: #77777f;
}

:root[data-theme="light"] .mode-switch button.is-active {
  background: #111114;
  color: #fff;
}

:root[data-theme="light"] .theme-toggle:hover {
  border-color: rgba(10, 10, 12, 0.28);
  background: #fff;
  color: #101012;
}

:root[data-theme="light"] .product-hero {
  color: #101012;
}

:root[data-theme="light"] .product-hero h1 {
  color: #101012;
}

:root[data-theme="light"] .product-hero h1 span {
  background: linear-gradient(90deg, #151519 0%, #596ed8 36%, #d94d9e 68%, #e77341 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

:root[data-theme="light"] .product-hero__copy > p:last-of-type {
  color: #66666e;
}

:root[data-theme="light"] .hero-button {
  background: #101012;
  color: #fff;
  box-shadow: 0 14px 30px rgba(15, 15, 18, 0.14);
}

:root[data-theme="light"] .hero-button:hover {
  background: #647cff;
  color: #fff;
}

:root[data-theme="light"] .hero-note {
  color: #77777f;
}

:root[data-theme="light"] .panel,
:root[data-theme="light"] .agent-panel,
:root[data-theme="light"] .decision-panel,
:root[data-theme="light"] .quote-panel,
:root[data-theme="light"] .draft-panel,
:root[data-theme="light"] .memory-panel,
:root[data-theme="light"] .learning-panel,
:root[data-theme="light"] .media-panel,
:root[data-theme="light"] .creative-panel,
:root[data-theme="light"] .trace-panel,
:root[data-theme="light"] .trace-prompt-panel {
  border-color: rgba(10, 10, 12, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: #101012;
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .panel__header {
  border-bottom-color: rgba(10, 10, 12, 0.09);
}

:root[data-theme="light"] .panel__header h1,
:root[data-theme="light"] .panel__header h2,
:root[data-theme="light"] .rfq-copy h2,
:root[data-theme="light"] .timeline-step h3,
:root[data-theme="light"] .empty-state strong {
  color: #101012;
}

:root[data-theme="light"] .inbox-panel {
  background: rgba(255, 255, 255, 0.92);
}

:root[data-theme="light"] .rfq-item {
  color: #17171a;
}

:root[data-theme="light"] .rfq-item:hover,
:root[data-theme="light"] .rfq-item:focus-visible {
  border-color: rgba(10, 10, 12, 0.12);
  background: #f5f4f0;
}

:root[data-theme="light"] .rfq-item.is-selected {
  border-color: rgba(88, 108, 222, 0.35);
  background:
    linear-gradient(105deg, rgba(103, 135, 255, 0.16), rgba(255, 103, 199, 0.07)),
    #faf9f6;
}

:root[data-theme="light"] .priority,
:root[data-theme="light"] .status-pill,
:root[data-theme="light"] .language-chip {
  border-color: rgba(10, 10, 12, 0.1);
  background: rgba(10, 10, 12, 0.04);
  color: #66666e;
}

:root[data-theme="light"] .control-panel {
  border-color: rgba(10, 10, 12, 0.12);
  background:
    radial-gradient(circle at 88% 20%, rgba(103, 135, 255, 0.14), transparent 25%),
    linear-gradient(135deg, #fff, #f7f6f2 64%);
}

:root[data-theme="light"] .rfq-input {
  border-color: rgba(10, 10, 12, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: #242429;
}

:root[data-theme="light"] .control-panel__actions {
  border-left-color: rgba(10, 10, 12, 0.09);
  background: rgba(10, 10, 12, 0.025);
}

:root[data-theme="light"] .primary-button {
  border-color: #101012;
  background: #101012;
  color: #fff;
}

:root[data-theme="light"] .primary-button:hover {
  border-color: #647cff;
  background: #647cff;
}

:root[data-theme="light"] .secondary-button,
:root[data-theme="light"] .icon-button {
  border-color: rgba(10, 10, 12, 0.12);
  background: #fff;
  color: #26262b;
}

:root[data-theme="light"] .progress-ring {
  background:
    radial-gradient(circle at center, #f7f6f2 58%, transparent 59%),
    conic-gradient(#d94d9e var(--progress), #dcdad4 0);
  color: #101012;
}

:root[data-theme="light"] .view-tabs {
  border-color: rgba(10, 10, 12, 0.1);
  background: rgba(255, 255, 255, 0.82);
}

:root[data-theme="light"] .view-tab {
  color: #77777f;
}

:root[data-theme="light"] .view-tab.is-active {
  background: #17171a;
  color: #fff;
}

:root[data-theme="light"] .timeline-step__body,
:root[data-theme="light"] .quote-table div {
  border-bottom-color: rgba(10, 10, 12, 0.09);
}

:root[data-theme="light"] .timeline-step p,
:root[data-theme="light"] .memory-item span,
:root[data-theme="light"] .outcome-item span,
:root[data-theme="light"] .creative-brief p,
:root[data-theme="light"] .draft-panel pre {
  color: #686870;
}

:root[data-theme="light"] .evidence-list span,
:root[data-theme="light"] .tool-row code,
:root[data-theme="light"] .memory-item,
:root[data-theme="light"] .outcome-item,
:root[data-theme="light"] .media-meta,
:root[data-theme="light"] .creative-route,
:root[data-theme="light"] .creative-brief div,
:root[data-theme="light"] .creative-brief p,
:root[data-theme="light"] .trace-fact,
:root[data-theme="light"] .risk {
  border-color: rgba(10, 10, 12, 0.09);
  background: #f6f5f1;
}

:root[data-theme="light"] .tool-row code {
  color: #087e72;
}

:root[data-theme="light"] .decision-panel {
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 103, 199, 0.14), transparent 28%),
    linear-gradient(155deg, #fff, #f7f4fc 58%);
}

:root[data-theme="light"] .risk--high {
  border-color: rgba(206, 70, 51, 0.22);
  background: rgba(255, 114, 94, 0.09);
}

:root[data-theme="light"] .risk--medium {
  border-color: rgba(188, 118, 9, 0.22);
  background: rgba(255, 189, 89, 0.1);
}

:root[data-theme="light"] .risk--low {
  border-color: rgba(80, 145, 34, 0.2);
  background: rgba(128, 204, 70, 0.09);
}

:root[data-theme="light"] .route-asset {
  border-color: rgba(10, 10, 12, 0.1);
  background:
    radial-gradient(circle at 18% 30%, rgba(85, 230, 210, 0.2), transparent 28%),
    radial-gradient(circle at 82% 66%, rgba(103, 135, 255, 0.16), transparent 28%),
    #f7f7f3;
}

:root[data-theme="light"] .route-asset__line span {
  background: #fff;
}

:root[data-theme="light"] .memory-persistence-note {
  border-bottom-color: rgba(10, 10, 12, 0.08);
  background: rgba(155, 120, 255, 0.07);
  color: #6c6094;
}

:root[data-theme="light"] .upload-zone {
  border-color: rgba(10, 10, 12, 0.16);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 103, 199, 0.12), transparent 25%),
    radial-gradient(circle at 80% 70%, rgba(103, 135, 255, 0.13), transparent 26%),
    #faf9f6;
}

:root[data-theme="light"] .media-preview,
:root[data-theme="light"] .creative-image,
:root[data-theme="light"] .product-video-result,
:root[data-theme="light"] .video-generation-status {
  border-color: rgba(10, 10, 12, 0.1);
  background: #f4f3ef;
}

:root[data-theme="light"] .workspace-grid--quote .quote-panel {
  background: linear-gradient(150deg, #e8ff8b, #a9ed63);
  color: #0a0a0b;
}

:root[data-theme="light"] .trace-code,
:root[data-theme="light"] .trace-code--prompt {
  background: #111116;
  color: #dce5ff;
}

:root[data-theme="light"] .deal-graph-panel {
  background:
    radial-gradient(circle at 58% 48%, rgba(85, 230, 210, 0.18), transparent 25%),
    radial-gradient(circle at 80% 76%, rgba(255, 103, 199, 0.1), transparent 24%),
    #ffffff;
}

:root[data-theme="light"] .deal-graph-panel .panel__description {
  color: #66666e;
}

:root[data-theme="light"] .deal-graph-guide {
  color: #66666e;
}

:root[data-theme="light"] .deal-graph-guide strong {
  color: #17171a;
}

:root[data-theme="light"] .deal-graph-legend {
  color: #6c6c73;
}

:root[data-theme="light"] .deal-graph-scene {
  border-bottom-color: rgba(10, 10, 12, 0.08);
  background:
    linear-gradient(rgba(10, 10, 12, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 12, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 52%, rgba(85, 230, 210, 0.22), transparent 28%),
    radial-gradient(circle at 52% 52%, rgba(103, 135, 255, 0.1), transparent 46%),
    #f5f5f0;
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
}

:root[data-theme="light"] .deal-graph-live,
:root[data-theme="light"] .deal-link-label {
  background: rgba(255, 255, 255, 0.78);
  color: #087e72;
}

:root[data-theme="light"] .deal-graph-empty {
  border-color: rgba(8, 126, 114, 0.2);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(38, 35, 49, 0.14);
}

:root[data-theme="light"] .deal-graph-empty strong {
  color: #17171a;
}

:root[data-theme="light"] .deal-graph-empty span {
  color: #66666e;
}

:root[data-theme="light"] .deal-node {
  border-color: rgba(10, 10, 12, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(38, 35, 49, 0.14), inset 0 1px rgba(255, 255, 255, 0.72);
}

:root[data-theme="light"] .deal-node strong,
:root[data-theme="light"] .deal-anchor strong,
:root[data-theme="light"] .deal-trajectory__heading strong,
:root[data-theme="light"] .deal-trajectory-item strong {
  color: #101012;
}

:root[data-theme="light"] .deal-node small,
:root[data-theme="light"] .deal-anchor small,
:root[data-theme="light"] .deal-trajectory-item small,
:root[data-theme="light"] .deal-graph-actions > span {
  color: #66666e;
}

:root[data-theme="light"] .deal-node em,
:root[data-theme="light"] .deal-trajectory__heading span {
  background: rgba(10, 10, 12, 0.06);
  color: #45454d;
}

:root[data-theme="light"] .deal-anchor {
  border-color: rgba(10, 10, 12, 0.1);
  background: #f7f6f2;
}

:root[data-theme="light"] .deal-trajectory-item {
  border-bottom-color: rgba(10, 10, 12, 0.08);
}

@media (max-width: 780px) {
  .theme-toggle span {
    display: none;
  }

  .theme-toggle {
    width: 38px;
    padding: 0;
  }
}

/* Responsive navigation */

.menu-toggle,
.mobile-menu-layer {
  display: none;
}

.menu-toggle {
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  background: #141417;
  color: #f7f7f3;
}

.menu-toggle:hover,
.menu-toggle.is-open {
  border-color: rgba(103, 135, 255, 0.5);
  background: rgba(103, 135, 255, 0.16);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 1180px) {
  .topbar {
    z-index: 40;
  }

  .topbar__controls {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-menu-layer {
    position: fixed;
    z-index: 35;
    inset: 72px 0 0;
    display: block;
  }

  .mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(12px);
  }

  .mobile-navigation {
    position: absolute;
    top: 12px;
    right: max(12px, calc((100vw - 1380px) / 2));
    display: grid;
    width: min(390px, calc(100% - 24px));
    max-height: calc(100vh - 96px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    background:
      radial-gradient(circle at 100% 0, rgba(103, 135, 255, 0.18), transparent 15rem),
      #101013;
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.52);
    animation: mobile-menu-in 180ms ease-out both;
  }

  .mobile-navigation__heading {
    display: grid;
    gap: 4px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  .mobile-navigation__heading span {
    color: #f7f7f3;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.025em;
  }

  .mobile-navigation__heading small {
    color: #73737c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mobile-navigation__links {
    display: grid;
    gap: 5px;
    padding: 10px;
  }

  .mobile-nav-link {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 20px;
    align-items: center;
    width: 100%;
    min-height: 68px;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #d5d5d2;
    text-align: left;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link.is-active {
    border-color: rgba(103, 135, 255, 0.3);
    background: linear-gradient(100deg, rgba(103, 135, 255, 0.15), rgba(255, 103, 199, 0.06));
  }

  .mobile-nav-link > span {
    color: #707078;
    font-size: 10px;
    font-weight: 900;
  }

  .mobile-nav-link div {
    display: grid;
    min-width: 0;
    gap: 3px;
  }

  .mobile-nav-link strong {
    font-size: 14px;
    letter-spacing: -0.015em;
  }

  .mobile-nav-link small {
    overflow: hidden;
    color: #777780;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-nav-link > svg {
    width: 17px;
    height: 17px;
    color: #777780;
  }

  .mobile-navigation__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }

  .mobile-mode-switch {
    display: inline-flex;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: #19191d;
  }

  .mobile-mode-switch button {
    min-height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #797981;
    font-size: 10px;
    font-weight: 850;
  }

  .mobile-mode-switch button.is-active {
    background: #f7f7f3;
    color: #09090b;
  }

  .mobile-theme-button {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    background: #19191d;
    color: #d5d5d2;
    font-size: 10px;
    font-weight: 850;
  }

  .mobile-theme-button svg {
    width: 14px;
    height: 14px;
  }
}

:root[data-theme="light"] .menu-toggle {
  border-color: rgba(10, 10, 12, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: #101012;
}

:root[data-theme="light"] .mobile-menu-backdrop {
  background: rgba(45, 40, 55, 0.28);
}

:root[data-theme="light"] .mobile-navigation {
  border-color: rgba(10, 10, 12, 0.1);
  background:
    radial-gradient(circle at 100% 0, rgba(103, 135, 255, 0.14), transparent 15rem),
    #fff;
  box-shadow: 0 36px 100px rgba(35, 30, 48, 0.2);
}

:root[data-theme="light"] .mobile-navigation__heading,
:root[data-theme="light"] .mobile-navigation__footer {
  border-color: rgba(10, 10, 12, 0.09);
}

:root[data-theme="light"] .mobile-navigation__heading span,
:root[data-theme="light"] .mobile-nav-link {
  color: #141416;
}

:root[data-theme="light"] .mobile-nav-link:hover,
:root[data-theme="light"] .mobile-nav-link.is-active {
  border-color: rgba(88, 108, 222, 0.24);
  background: linear-gradient(100deg, rgba(103, 135, 255, 0.12), rgba(255, 103, 199, 0.05));
}

:root[data-theme="light"] .mobile-mode-switch,
:root[data-theme="light"] .mobile-theme-button {
  border-color: rgba(10, 10, 12, 0.1);
  background: #f2f1ed;
  color: #303036;
}

:root[data-theme="light"] .mobile-mode-switch button.is-active {
  background: #111114;
  color: #fff;
}

@media (max-width: 780px) {
  .topbar {
    align-items: center;
    flex-direction: row;
  }

  .mobile-navigation {
    top: 8px;
  }
}

@keyframes mobile-menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-navigation {
    animation: none;
  }
}

/* Seller listing intake and persistent workspace */

.sell-item-button,
.mobile-sell-button,
.hero-secondary-button,
.inbox-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sell-item-button {
  min-height: 38px;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #d8ff73;
  border-radius: 8px;
  background: #d8ff73;
  color: #090a0a;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.sell-item-button:hover {
  background: #efffb9;
}

.sell-item-button svg,
.hero-secondary-button svg,
.mobile-sell-button svg {
  width: 17px;
  height: 17px;
}

.hero-secondary-button {
  min-height: 48px;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #151519;
  color: #f7f7f3;
  font-size: 13px;
  font-weight: 800;
}

.hero-secondary-button:hover {
  border-color: rgba(216, 255, 115, 0.55);
  background: #202025;
}

.inbox-add-button {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(216, 255, 115, 0.4);
  border-radius: 8px;
  background: rgba(216, 255, 115, 0.1);
  color: #d8ff73;
}

.inbox-add-button:hover {
  background: rgba(216, 255, 115, 0.2);
}

.rfq-list {
  align-content: start;
}

.rfq-group {
  display: grid;
  gap: 6px;
}

.rfq-group__heading,
.example-request-toggle {
  display: flex;
  align-items: center;
  min-height: 32px;
  gap: 8px;
  padding: 0 7px;
  color: #74747d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rfq-group__heading strong,
.example-request-toggle strong {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  border-radius: 999px;
  background: #1b1b20;
  color: #a2a2aa;
  font-size: 10px;
}

.listing-list-state,
.listing-empty-action {
  display: grid;
  place-items: center;
  min-height: 126px;
  gap: 7px;
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #111114;
  color: #f5f5f2;
  text-align: center;
}

.listing-list-state strong,
.listing-empty-action strong {
  font-size: 13px;
}

.listing-list-state span,
.listing-empty-action small {
  max-width: 190px;
  color: #777780;
  font-size: 11px;
  line-height: 1.4;
}

.listing-list-state--error {
  border-color: rgba(255, 114, 94, 0.3);
}

.listing-empty-action {
  width: 100%;
}

.listing-empty-action:hover {
  border-color: rgba(216, 255, 115, 0.45);
  background: #17171a;
}

.listing-empty-action > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #d8ff73;
  color: #090a0a;
}

.example-request-group {
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.example-request-toggle {
  width: 100%;
  cursor: pointer;
  padding-top: 7px;
  border: 0;
  background: transparent;
}

.example-request-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}

.example-request-group.is-open .example-request-toggle svg {
  transform: rotate(180deg);
}

.example-request-group__items {
  display: grid;
  gap: 6px;
}

.rfq-item--listing {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  min-height: 76px;
  gap: 10px;
}

.rfq-item--listing > img {
  width: 48px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  background: #1b1b20;
}

.rfq-item--listing > svg {
  width: 17px;
  height: 17px;
  color: #696972;
}

.rfq-item--listing .rfq-item__main em {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #8ce4d6;
}

.rfq-item--listing .rfq-item__main em svg {
  width: 12px;
  height: 12px;
}

.selected-listing-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.selected-listing-summary > div {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 10px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.selected-listing-summary span {
  overflow: hidden;
  color: #777780;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-listing-summary strong {
  overflow: hidden;
  color: #f2f2ef;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-listing-summary .selected-listing-summary__saved {
  display: flex;
  align-items: center;
  gap: 6px;
  border-right: 0;
  background: rgba(85, 230, 210, 0.07);
}

.selected-listing-summary__saved svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  color: #66ddcc;
}

.secondary-button--danger:hover {
  border-color: rgba(255, 114, 94, 0.45);
  background: rgba(255, 114, 94, 0.1);
  color: #ff8978;
}

.seller-onboarding-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
  background: #0d0d10;
}

.seller-onboarding-panel__copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  padding: 48px;
}

.seller-onboarding-panel__copy h2,
.seller-onboarding-panel__copy p {
  margin: 0;
}

.seller-onboarding-panel__copy h2 {
  max-width: 520px;
  font-size: 34px;
  line-height: 1.06;
  letter-spacing: 0;
}

.seller-onboarding-panel__copy > p:not(.eyebrow) {
  max-width: 560px;
  color: #92929a;
  font-size: 14px;
  line-height: 1.58;
}

.seller-onboarding-panel__copy .primary-button {
  min-height: 44px;
  margin-top: 6px;
  border-radius: 8px;
}

.seller-onboarding-steps {
  display: grid;
  align-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: #111114;
}

.seller-onboarding-steps > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 5px 12px;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.seller-onboarding-steps > div:last-child {
  border-bottom: 0;
}

.seller-onboarding-steps span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(216, 255, 115, 0.28);
  border-radius: 8px;
  color: #d8ff73;
  font-size: 10px;
  font-weight: 900;
}

.seller-onboarding-steps strong {
  font-size: 13px;
}

.seller-onboarding-steps small {
  color: #777780;
  font-size: 11px;
  line-height: 1.4;
}

.seller-onboarding-panel > footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  gap: 12px;
  padding: 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0c;
}

.seller-onboarding-panel > footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #85dfd0;
  font-size: 10px;
  font-weight: 800;
}

.seller-onboarding-panel > footer svg {
  width: 14px;
  height: 14px;
}

.seller-onboarding-panel > footer small {
  color: #73737c;
  font-size: 10px;
}

.listing-notice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(216, 255, 115, 0.25);
  border-radius: 8px;
  background: #151914;
}

.listing-notice > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #d8ff73;
  color: #090a0a;
}

.listing-notice > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.listing-notice strong {
  font-size: 13px;
}

.listing-notice small {
  overflow: hidden;
  color: #92929a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-notice > button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  gap: 7px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #f5f5f2;
  color: #090a0a;
  font-size: 11px;
  font-weight: 850;
}

.seller-intake-layer {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.seller-intake-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(14px);
}

.seller-intake-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1040px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #0d0d10;
  color: #f5f5f2;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.68);
}

.seller-intake-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.seller-intake-dialog__header > div {
  display: grid;
  gap: 5px;
}

.seller-intake-dialog__header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.seller-intake-dialog__header > div > span {
  color: #878790;
  font-size: 12px;
}

.seller-intake-close {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #18181c;
  color: #d5d5d2;
}

.seller-intake-form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
}

.seller-intake-dialog--ai {
  width: min(1120px, 100%);
}

.seller-intake-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 9px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #101013;
}

.seller-intake-mode-switch button {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  gap: 10px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #777780;
  text-align: left;
}

.seller-intake-mode-switch button:hover {
  background: #17171b;
  color: #d8d8d4;
}

.seller-intake-mode-switch button.is-active {
  border-color: rgba(216, 255, 115, 0.28);
  background: #1b1d18;
  color: #f5f5f2;
}

.seller-intake-mode-switch button > svg {
  flex: 0 0 18px;
  color: #d8ff73;
}

.seller-intake-mode-switch button > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.seller-intake-mode-switch strong {
  font-size: 12px;
  line-height: 1.2;
}

.seller-intake-mode-switch small {
  color: #6f6f78;
  font-size: 10px;
  line-height: 1.2;
}

.seller-intake-mode-content {
  min-height: 0;
  overflow: hidden;
}

.seller-intake-mode-content--manual {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.seller-intake-mode-content--ai {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.seller-ai-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.8fr);
  min-height: 0;
  overflow: hidden;
}

.seller-ai-chat {
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto auto;
  min-width: 0;
  min-height: 0;
  background: #0d0d10;
}

.seller-ai-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.seller-ai-chat__header > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.seller-ai-chat__header h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.seller-ai-live {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 6px;
  color: #8f8f97;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 750;
}

.seller-ai-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #75e6d1;
  box-shadow: 0 0 0 3px rgba(117, 230, 209, 0.1);
}

.seller-ai-restart {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 34px;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #17171b;
  color: #9b9ba3;
  font-size: 10px;
  font-weight: 800;
}

.seller-ai-restart svg {
  width: 14px;
  height: 14px;
}

.seller-ai-conversation {
  min-height: 0;
  padding: 22px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.seller-ai-welcome {
  display: grid;
  align-content: center;
  justify-items: start;
  width: min(430px, 100%);
  min-height: 100%;
  margin: 0 auto;
  gap: 9px;
}

.seller-ai-welcome > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(216, 255, 115, 0.22);
  border-radius: 8px;
  background: #1a1c17;
  color: #d8ff73;
}

.seller-ai-welcome h4,
.seller-ai-welcome p {
  margin: 0;
}

.seller-ai-welcome h4 {
  font-size: 18px;
}

.seller-ai-welcome p {
  max-width: 420px;
  color: #888890;
  font-size: 12px;
  line-height: 1.55;
}

.seller-ai-welcome button {
  min-height: 34px;
  margin-top: 3px;
  padding: 0 10px;
  border: 1px solid rgba(117, 230, 209, 0.24);
  border-radius: 8px;
  background: rgba(117, 230, 209, 0.07);
  color: #9debdc;
  font-size: 10px;
  font-weight: 800;
}

.seller-ai-message {
  display: grid;
  grid-template-columns: 30px minmax(0, auto);
  align-items: start;
  width: min(520px, 88%);
  gap: 8px;
  margin-bottom: 14px;
}

.seller-ai-message > span:first-child {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(216, 255, 115, 0.2);
  border-radius: 8px;
  background: #191b16;
  color: #d8ff73;
  font-size: 9px;
  font-weight: 850;
}

.seller-ai-message > span:first-child svg {
  width: 14px;
  height: 14px;
}

.seller-ai-message p {
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: #17171b;
  color: #d9d9d5;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.seller-ai-message--user {
  grid-template-columns: minmax(0, auto) 30px;
  margin-left: auto;
}

.seller-ai-message--user > span:first-child {
  grid-column: 2;
  grid-row: 1;
  border-color: rgba(117, 230, 209, 0.24);
  background: #14201e;
  color: #8ce8d7;
}

.seller-ai-message--user p {
  grid-column: 1;
  grid-row: 1;
  border-color: rgba(117, 230, 209, 0.18);
  background: #14201e;
  color: #f0f5f2;
}

.seller-ai-message--thinking {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 4px;
  padding-left: 38px;
}

.seller-ai-message--thinking > span {
  width: 6px;
  height: 6px;
  border: 0;
  border-radius: 50%;
  background: #d8ff73;
  animation: seller-ai-thinking 900ms ease-in-out infinite alternate;
}

.seller-ai-message--thinking > span:nth-child(2) {
  animation-delay: 150ms;
}

.seller-ai-message--thinking > span:nth-child(3) {
  animation-delay: 300ms;
}

.seller-ai-message--thinking small {
  margin-left: 5px;
  color: #777780;
  font-size: 10px;
}

.seller-ai-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 42px;
  align-items: end;
  gap: 8px;
  padding: 12px 16px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #101013;
}

.seller-ai-composer textarea {
  width: 100%;
  min-height: 50px;
  max-height: 120px;
  padding: 10px 11px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  outline: 0;
  background: #17171b;
  color: #f2f2ef;
  font-size: 12px;
  line-height: 1.45;
}

.seller-ai-composer textarea:focus {
  border-color: rgba(216, 255, 115, 0.5);
  box-shadow: 0 0 0 2px rgba(216, 255, 115, 0.1);
}

.seller-ai-composer textarea::placeholder {
  color: #5f5f68;
}

.seller-ai-mic,
.seller-ai-send {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 8px;
}

.seller-ai-mic {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #19191d;
  color: #b8b8bf;
}

.seller-ai-mic.is-active {
  border-color: rgba(255, 114, 94, 0.45);
  background: rgba(255, 114, 94, 0.12);
  color: #ff8978;
}

.seller-ai-send {
  border: 1px solid #d8ff73;
  background: #d8ff73;
  color: #090a0a;
}

.seller-ai-input-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 26px;
  padding: 0 17px 8px;
  background: #101013;
  color: #686871;
  font-size: 9px;
  font-weight: 700;
}

.seller-ai-summary {
  min-width: 0;
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  background: #121216;
}

.seller-ai-summary > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.seller-ai-summary > header > div {
  display: grid;
  gap: 3px;
}

.seller-ai-summary > header span,
.seller-ai-summary > header strong {
  line-height: 1.2;
}

.seller-ai-summary > header > div > span {
  color: #74747d;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.seller-ai-summary > header strong {
  font-size: 14px;
}

.seller-ai-summary__percent {
  color: #d8ff73;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 850;
}

.seller-ai-progress {
  display: block;
  width: 100%;
  height: 4px;
  margin: 10px 0 15px;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 2px;
  background: #28282d;
}

.seller-ai-progress::-webkit-progress-bar {
  background: #28282d;
}

.seller-ai-progress::-webkit-progress-value,
.seller-ai-progress::-moz-progress-bar {
  background: #d8ff73;
}

.seller-ai-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.seller-ai-fact {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  min-height: 66px;
  gap: 6px;
  padding: 10px 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.seller-ai-fact > span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #5e5e67;
}

.seller-ai-fact.is-complete > span {
  color: #75e6d1;
}

.seller-ai-fact svg {
  width: 13px;
  height: 13px;
}

.seller-ai-fact > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.seller-ai-fact small {
  color: #6c6c75;
  font-size: 9px;
  font-weight: 750;
}

.seller-ai-fact strong {
  display: -webkit-box;
  overflow: hidden;
  color: #777780;
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.seller-ai-fact.is-complete strong {
  color: #e5e5e1;
}

.seller-ai-missing {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 189, 89, 0.2);
  border-radius: 8px;
  background: rgba(255, 189, 89, 0.06);
  color: #ffc56e;
}

.seller-ai-missing.is-ready {
  border-color: rgba(117, 230, 209, 0.22);
  background: rgba(117, 230, 209, 0.06);
  color: #8de7d6;
}

.seller-ai-missing > svg {
  width: 18px;
  height: 18px;
}

.seller-ai-missing > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.seller-ai-missing strong {
  font-size: 10px;
}

.seller-ai-missing small {
  overflow: hidden;
  color: #777780;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-ai-review {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  gap: 7px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: #1a1a1f;
  color: #d8d8d5;
  font-size: 10px;
  font-weight: 850;
}

.seller-ai-review svg {
  width: 14px;
  height: 14px;
}

.seller-ai-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}

.seller-ai-photo > label {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 54px;
  gap: 9px;
  overflow: hidden;
  padding: 7px 9px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #17171b;
  color: #bdbdc3;
  cursor: pointer;
}

.seller-ai-photo > label > svg {
  flex: 0 0 20px;
  color: #75e6d1;
}

.seller-ai-photo > label > span:not(:only-child),
.seller-ai-photo > label > span {
  display: grid;
  min-width: 0;
  gap: 2px;
  font-size: 10px;
  font-weight: 800;
}

.seller-ai-photo > label small {
  color: #6f6f78;
  font-size: 9px;
  font-weight: 650;
}

.seller-ai-photo input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.seller-ai-photo.has-photo > label {
  min-height: 66px;
  padding-left: 75px;
}

.seller-ai-photo img {
  position: absolute;
  inset: 0 auto 0 0;
  width: 66px;
  height: 100%;
  object-fit: cover;
}

.seller-ai-photo.has-photo > label > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.seller-ai-photo.has-photo > label > span svg {
  width: 14px;
  height: 14px;
}

.seller-ai-photo > button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 114, 94, 0.22);
  border-radius: 8px;
  background: rgba(255, 114, 94, 0.06);
  color: #ff8978;
}

.seller-ai-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  color: #9a9aa2;
  font-size: 10px;
  line-height: 1.4;
}

.seller-ai-confirmation input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #d8ff73;
}

.seller-ai-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-top: 1px solid rgba(255, 114, 94, 0.24);
  background: rgba(255, 114, 94, 0.07);
  color: #ff9b8d;
  font-size: 10px;
}

.seller-ai-error svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

@keyframes seller-ai-thinking {
  from {
    opacity: 0.35;
    transform: translateY(1px);
  }

  to {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.seller-intake-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #111114;
}

.seller-intake-progress span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  gap: 5px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: #66666f;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.seller-intake-progress span:last-child {
  border-right: 0;
}

.seller-intake-progress span.is-complete {
  color: #a9eadf;
}

.seller-intake-progress svg {
  width: 13px;
  height: 13px;
}

.seller-intake-form__scroll {
  min-height: 0;
  padding: 0 24px 24px;
  overflow-y: auto;
}

.seller-form-section {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.seller-form-section__title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.seller-form-section__title > span {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(216, 255, 115, 0.28);
  border-radius: 8px;
  color: #d8ff73;
  font-size: 10px;
  font-weight: 900;
}

.seller-form-section__title div {
  display: grid;
  gap: 5px;
}

.seller-form-section h3,
.seller-form-section p {
  margin: 0;
}

.seller-form-section h3 {
  font-size: 14px;
}

.seller-form-section p {
  color: #777780;
  font-size: 11px;
  line-height: 1.45;
}

.seller-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.seller-form-grid--item {
  grid-column: 2;
}

.seller-field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.seller-field--wide {
  grid-column: 2;
  margin-top: -8px;
}

.seller-field > span {
  color: #a5a5ad;
  font-size: 11px;
  font-weight: 780;
}

.seller-field > span small {
  color: #64646d;
  font-size: 10px;
  font-weight: 650;
}

.seller-field input,
.seller-field select,
.seller-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: #151519;
  color: #f1f1ee;
}

.seller-field input,
.seller-field select {
  height: 42px;
  padding: 0 11px;
}

.seller-field textarea {
  min-height: 90px;
  padding: 11px;
  resize: vertical;
  line-height: 1.5;
}

.seller-field input::placeholder,
.seller-field textarea::placeholder {
  color: #55555d;
}

.seller-field input:focus,
.seller-field select:focus,
.seller-field textarea:focus {
  border-color: rgba(216, 255, 115, 0.56);
  outline: 2px solid rgba(216, 255, 115, 0.12);
  outline-offset: 0;
}

.seller-price-input,
.seller-number-input {
  position: relative;
  display: flex;
  align-items: center;
}

.seller-price-input > span,
.seller-number-input > span {
  position: absolute;
  z-index: 1;
  color: #74747d;
  font-size: 10px;
  font-weight: 850;
  pointer-events: none;
}

.seller-price-input > span {
  left: 11px;
}

.seller-price-input input {
  padding-left: 46px;
}

.seller-number-input > span {
  right: 11px;
}

.seller-number-input:has(> span) input {
  padding-right: 46px;
}

.seller-form-section--photo {
  align-items: start;
}

.seller-photo-field {
  min-width: 0;
}

.seller-photo-field > label {
  display: grid;
  place-items: center;
  min-height: 230px;
  gap: 8px;
  overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #131317;
  color: #eeeeeb;
  cursor: pointer;
  text-align: center;
}

.seller-photo-field > label:hover {
  border-color: rgba(216, 255, 115, 0.48);
  background: #17171b;
}

.seller-photo-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.seller-photo-field__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #d8ff73;
  color: #090a0a;
}

.seller-photo-field > label > small {
  color: #777780;
  font-size: 11px;
}

.seller-photo-field.has-photo > label {
  position: relative;
  display: block;
}

.seller-photo-field.has-photo img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: contain;
  background: #09090b;
}

.seller-photo-field__replace {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(5, 5, 6, 0.88);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.seller-photo-field__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0 0;
}

.seller-photo-field__meta > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.seller-photo-field__meta strong,
.seller-photo-field__meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-photo-field__meta strong {
  font-size: 11px;
}

.seller-photo-field__meta small {
  color: #777780;
  font-size: 10px;
}

.seller-photo-field__meta button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgba(255, 114, 94, 0.24);
  border-radius: 8px;
  background: rgba(255, 114, 94, 0.06);
  color: #ff8978;
  font-size: 10px;
  font-weight: 800;
}

.seller-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 0 0 192px;
  color: #b4b4bb;
  font-size: 12px;
  line-height: 1.45;
}

.seller-confirmation input {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #d8ff73;
}

.seller-intake-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0 192px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 114, 94, 0.3);
  border-radius: 8px;
  background: rgba(255, 114, 94, 0.08);
  color: #ff9b8d;
  font-size: 11px;
}

.seller-intake-error svg {
  flex: 0 0 17px;
}

.seller-intake-dialog__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #101013;
}

.seller-intake-dialog__footer > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #75757e;
  font-size: 10px;
  font-weight: 750;
}

.seller-intake-dialog__footer > span svg {
  width: 14px;
  height: 14px;
  color: #66ddcc;
}

.seller-intake-dialog__footer > div {
  display: flex;
  gap: 8px;
}

.seller-intake-dialog__footer .primary-button,
.seller-intake-dialog__footer .secondary-button {
  min-width: 108px;
  min-height: 40px;
  border-radius: 8px;
}

.mobile-sell-button {
  width: calc(100% - 24px);
  min-height: 44px;
  gap: 8px;
  margin: 12px;
  border: 0;
  border-radius: 8px;
  background: #d8ff73;
  color: #090a0a;
  font-size: 12px;
  font-weight: 850;
}

:root[data-theme="light"] .sell-item-button,
:root[data-theme="light"] .mobile-sell-button {
  border-color: #111116;
  background: #111116;
  color: #ffffff;
}

:root[data-theme="light"] .inbox-add-button {
  border-color: rgba(10, 10, 12, 0.18);
  background: #111116;
  color: #ffffff;
}

:root[data-theme="light"] .rfq-group__heading,
:root[data-theme="light"] .example-request-toggle {
  color: #76767e;
}

:root[data-theme="light"] .rfq-group__heading strong,
:root[data-theme="light"] .example-request-toggle strong {
  background: #ecebe7;
  color: #63636a;
}

:root[data-theme="light"] .listing-list-state,
:root[data-theme="light"] .listing-empty-action {
  border-color: rgba(10, 10, 12, 0.15);
  background: #f7f6f2;
  color: #17171a;
}

:root[data-theme="light"] .example-request-group {
  border-top-color: rgba(10, 10, 12, 0.09);
}

:root[data-theme="light"] .selected-listing-summary {
  border-color: rgba(10, 10, 12, 0.11);
  background: #f7f6f2;
}

:root[data-theme="light"] .selected-listing-summary > div {
  border-right-color: rgba(10, 10, 12, 0.08);
}

:root[data-theme="light"] .selected-listing-summary strong {
  color: #17171a;
}

:root[data-theme="light"] .listing-notice {
  border-color: rgba(80, 145, 34, 0.24);
  background: #f3fae9;
}

:root[data-theme="light"] .seller-onboarding-panel {
  border-color: rgba(10, 10, 12, 0.11);
  background: #ffffff;
}

:root[data-theme="light"] .seller-onboarding-panel__copy h2 {
  color: #17171a;
}

:root[data-theme="light"] .seller-onboarding-steps {
  border-left-color: rgba(10, 10, 12, 0.09);
  background: #f6f5f1;
}

:root[data-theme="light"] .seller-onboarding-steps > div,
:root[data-theme="light"] .seller-onboarding-panel > footer {
  border-color: rgba(10, 10, 12, 0.09);
}

:root[data-theme="light"] .seller-onboarding-steps strong {
  color: #17171a;
}

:root[data-theme="light"] .seller-onboarding-steps span {
  border-color: rgba(15, 118, 110, 0.24);
  color: #0f766e;
}

:root[data-theme="light"] .seller-onboarding-panel > footer {
  background: #f0efeb;
}

:root[data-theme="light"] .seller-intake-dialog {
  border-color: rgba(10, 10, 12, 0.14);
  background: #faf9f6;
  color: #17171a;
}

:root[data-theme="light"] .seller-intake-mode-switch,
:root[data-theme="light"] .seller-ai-composer,
:root[data-theme="light"] .seller-ai-input-status {
  border-color: rgba(10, 10, 12, 0.09);
  background: #f1f0ec;
}

:root[data-theme="light"] .seller-intake-mode-switch button:hover {
  background: #e8e7e3;
  color: #202025;
}

:root[data-theme="light"] .seller-intake-mode-switch button.is-active {
  border-color: rgba(15, 118, 110, 0.26);
  background: #ffffff;
  color: #17171a;
}

:root[data-theme="light"] .seller-intake-mode-switch button > svg {
  color: #0f766e;
}

:root[data-theme="light"] .seller-ai-chat,
:root[data-theme="light"] .seller-ai-summary {
  background: #faf9f6;
}

:root[data-theme="light"] .seller-ai-summary {
  border-color: rgba(10, 10, 12, 0.1);
  background: #f5f4f0;
}

:root[data-theme="light"] .seller-ai-chat__header,
:root[data-theme="light"] .seller-ai-facts,
:root[data-theme="light"] .seller-ai-fact {
  border-color: rgba(10, 10, 12, 0.09);
}

:root[data-theme="light"] .seller-ai-live i {
  background: #0f9c8d;
}

:root[data-theme="light"] .seller-ai-restart,
:root[data-theme="light"] .seller-ai-review,
:root[data-theme="light"] .seller-ai-composer textarea,
:root[data-theme="light"] .seller-ai-mic,
:root[data-theme="light"] .seller-ai-photo > label {
  border-color: rgba(10, 10, 12, 0.12);
  background: #ffffff;
  color: #36363c;
}

:root[data-theme="light"] .seller-ai-welcome > span,
:root[data-theme="light"] .seller-ai-message > span:first-child {
  border-color: rgba(15, 118, 110, 0.2);
  background: #e7f5f1;
  color: #0f766e;
}

:root[data-theme="light"] .seller-ai-welcome button {
  border-color: rgba(15, 118, 110, 0.22);
  background: #e9f6f3;
  color: #0f766e;
}

:root[data-theme="light"] .seller-ai-message p {
  border-color: rgba(10, 10, 12, 0.1);
  background: #ffffff;
  color: #2d2d32;
}

:root[data-theme="light"] .seller-ai-message--user > span:first-child,
:root[data-theme="light"] .seller-ai-message--user p {
  border-color: rgba(15, 118, 110, 0.18);
  background: #e7f5f1;
  color: #143d39;
}

:root[data-theme="light"] .seller-ai-composer textarea:focus {
  border-color: rgba(15, 118, 110, 0.48);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.08);
}

:root[data-theme="light"] .seller-ai-progress {
  background: #deddd8;
}

:root[data-theme="light"] .seller-ai-progress::-webkit-progress-bar {
  background: #deddd8;
}

:root[data-theme="light"] .seller-ai-progress::-webkit-progress-value,
:root[data-theme="light"] .seller-ai-progress::-moz-progress-bar {
  background: #111116;
}

:root[data-theme="light"] .seller-ai-send {
  border-color: #111116;
  background: #111116;
  color: #ffffff;
}

:root[data-theme="light"] .seller-ai-fact.is-complete strong {
  color: #26262b;
}

:root[data-theme="light"] .seller-ai-fact.is-complete > span,
:root[data-theme="light"] .seller-ai-summary__percent {
  color: #0f766e;
}

:root[data-theme="light"] .seller-ai-missing {
  border-color: rgba(180, 83, 9, 0.2);
  background: rgba(180, 83, 9, 0.06);
  color: #9a4c08;
}

:root[data-theme="light"] .seller-ai-missing.is-ready {
  border-color: rgba(15, 118, 110, 0.2);
  background: rgba(15, 118, 110, 0.06);
  color: #0f766e;
}

:root[data-theme="light"] .seller-intake-dialog__header,
:root[data-theme="light"] .seller-form-section,
:root[data-theme="light"] .seller-intake-dialog__footer {
  border-color: rgba(10, 10, 12, 0.1);
}

:root[data-theme="light"] .seller-intake-progress,
:root[data-theme="light"] .seller-intake-dialog__footer {
  background: #f1f0ec;
}

:root[data-theme="light"] .seller-intake-progress span {
  border-right-color: rgba(10, 10, 12, 0.08);
  color: #777780;
}

:root[data-theme="light"] .seller-intake-progress span.is-complete,
:root[data-theme="light"] .seller-form-section__title > span {
  color: #0f766e;
}

:root[data-theme="light"] .seller-form-section__title > span {
  border-color: rgba(15, 118, 110, 0.25);
}

:root[data-theme="light"] .seller-field > span,
:root[data-theme="light"] .seller-confirmation {
  color: #55555d;
}

:root[data-theme="light"] .seller-field input,
:root[data-theme="light"] .seller-field select,
:root[data-theme="light"] .seller-field textarea {
  border-color: rgba(10, 10, 12, 0.14);
  background: #ffffff;
  color: #17171a;
}

:root[data-theme="light"] .seller-photo-field > label {
  border-color: rgba(10, 10, 12, 0.18);
  background: #f1f0ec;
  color: #17171a;
}

@media (max-width: 820px) {
  .seller-onboarding-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .seller-onboarding-panel__copy {
    padding: 30px 24px;
  }

  .seller-onboarding-panel__copy h2 {
    font-size: 28px;
  }

  .seller-onboarding-steps {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }

  .seller-intake-layer {
    align-items: end;
    padding: 0;
  }

  .seller-intake-dialog {
    width: 100%;
    max-height: 100dvh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }

  .seller-intake-dialog__header {
    padding: 18px 16px 14px;
  }

  .seller-intake-dialog__header h2 {
    font-size: 21px;
  }

  .seller-intake-mode-switch {
    padding: 8px 16px;
  }

  .seller-intake-mode-content--ai {
    overflow-y: auto;
  }

  .seller-ai-layout {
    display: block;
    overflow: visible;
  }

  .seller-ai-chat {
    grid-template-rows: auto minmax(280px, 42vh) auto auto;
  }

  .seller-ai-summary {
    overflow: visible;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 0;
  }

  .seller-intake-form__scroll {
    padding: 0 16px 20px;
  }

  .seller-form-section {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 0;
  }

  .seller-form-grid--item,
  .seller-field--wide {
    grid-column: 1;
  }

  .seller-confirmation,
  .seller-intake-error {
    margin-left: 0;
    padding-left: 0;
  }

  .seller-intake-error {
    padding: 10px 12px;
  }

  .seller-intake-dialog__footer {
    padding: 12px 16px;
  }

  .seller-intake-dialog__footer > span {
    display: none;
  }

  .seller-intake-dialog__footer > div {
    width: 100%;
  }

  .seller-intake-dialog__footer button {
    flex: 1;
  }

  .selected-listing-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .selected-listing-summary .selected-listing-summary__saved {
    grid-column: 1 / -1;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* Flagship export narrative */
.workflow-intro--flagship {
  padding-top: 24px;
}

.flagship-snapshot {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 112px minmax(240px, 1.2fr) minmax(210px, 0.8fr) minmax(240px, 1fr);
  align-items: center;
  min-height: 104px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(16, 24, 40, 0.08);
}

.flagship-snapshot > img {
  width: 112px;
  height: 104px;
  border-right: 1px solid var(--line);
  object-fit: cover;
}

.flagship-snapshot__product,
.flagship-snapshot__buyer {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 16px 18px;
}

.flagship-snapshot__product > span,
.flagship-snapshot__buyer > span,
.evaluation-strip span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.flagship-snapshot__product strong,
.flagship-snapshot__buyer strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flagship-snapshot__product small,
.flagship-snapshot__buyer small,
.evaluation-strip small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.flagship-snapshot__route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 18px;
  border-inline: 1px solid var(--line);
  color: var(--teal);
}

.flagship-snapshot__route span {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flagship-snapshot__route svg {
  width: 22px;
  margin: 0 auto;
}

.evaluation-strip {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.evaluation-strip > div {
  display: grid;
  min-height: 74px;
  align-content: center;
  gap: 3px;
  padding: 12px 16px;
}

.evaluation-strip > div + div {
  border-left: 1px solid var(--line);
}

.evaluation-strip strong {
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0;
}

.evaluation-strip > div:first-child {
  box-shadow: inset 4px 0 0 var(--teal);
}

.evaluation-strip > div:nth-child(3) strong {
  color: var(--green);
}

.guided-demo-group {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.guided-demo-group .rfq-group__heading {
  color: var(--teal);
}

.guided-demo-group .rfq-group__heading strong {
  width: auto;
  padding: 0 7px;
  border: 1px solid color-mix(in srgb, var(--teal), transparent 70%);
  background: var(--teal-soft);
  color: var(--teal);
  white-space: nowrap;
}

.rfq-item--guided {
  position: relative;
  min-height: 80px;
  border-color: var(--line-strong);
}

.rfq-item--guided::before {
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--teal);
  content: "";
}

.rfq-item--guided.is-selected {
  border-color: color-mix(in srgb, var(--teal), transparent 35%);
  background:
    linear-gradient(90deg, var(--teal-soft), transparent 72%),
    var(--panel-soft);
}

.rfq-item--guided .rfq-item__main em {
  color: var(--teal);
}

@media (max-width: 1050px) {
  .flagship-snapshot {
    grid-template-columns: 96px minmax(220px, 1.2fr) minmax(190px, 0.8fr);
  }

  .flagship-snapshot > img {
    width: 96px;
  }

  .flagship-snapshot__buyer {
    display: none;
  }

  .flagship-snapshot__route {
    border-right: 0;
  }
}

@media (max-width: 900px) {
  .flagship-snapshot {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .flagship-snapshot__route {
    grid-column: 1 / -1;
    min-height: 46px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .evaluation-strip {
    grid-template-columns: 1fr 1fr;
  }

  .evaluation-strip > div:nth-child(3) {
    border-left: 0;
  }

  .evaluation-strip > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .workflow-intro--flagship {
    gap: 16px;
    padding-top: 18px;
  }

  .workflow-intro--flagship .workflow-intro__copy h1 {
    font-size: 27px;
    line-height: 1.08;
  }

  .workflow-intro--flagship .workflow-intro__copy > p:last-child {
    font-size: 13px;
  }

  .workflow-intro--flagship .workflow-intro__actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .workflow-intro--flagship .workflow-intro__actions button {
    min-height: 48px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .flagship-snapshot {
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 82px;
  }

  .flagship-snapshot > img {
    width: 82px;
    height: 82px;
  }

  .flagship-snapshot__product {
    padding: 12px;
  }

  .flagship-snapshot__product strong {
    white-space: normal;
  }

  .flagship-snapshot__route {
    display: none;
  }

  .workflow-intro--flagship .workflow-steps {
    grid-template-columns: 1fr 1fr;
  }

  .workflow-intro--flagship .workflow-steps .hero-flow__step,
  .workflow-intro--flagship .workflow-steps .hero-flow__step + .hero-flow__step,
  .workflow-intro--flagship .workflow-steps .hero-flow__step:nth-child(3) {
    min-height: 68px;
    padding: 10px 8px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .workflow-intro--flagship .workflow-steps .hero-flow__step:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .evaluation-strip > div {
    min-height: 68px;
    padding: 10px 12px;
  }

  .evaluation-strip strong {
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  .seller-intake-mode-switch button {
    min-height: 42px;
    padding: 6px 8px;
  }

  .seller-intake-mode-switch small {
    display: none;
  }

  .seller-ai-chat__header,
  .seller-ai-conversation {
    padding-right: 14px;
    padding-left: 14px;
  }

  .seller-ai-restart span {
    display: none;
  }

  .seller-ai-restart {
    width: 34px;
    padding: 0;
    justify-content: center;
  }

  .seller-ai-message {
    width: 96%;
  }

  .seller-ai-composer {
    grid-template-columns: minmax(0, 1fr) 40px 40px;
    gap: 6px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .seller-ai-mic,
  .seller-ai-send {
    width: 40px;
    height: 40px;
  }

  .seller-ai-summary {
    padding: 16px 14px;
  }

  .seller-ai-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .seller-onboarding-panel > footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 62px;
  }

  .seller-form-grid {
    grid-template-columns: 1fr;
  }

  .seller-photo-field.has-photo img {
    height: 230px;
  }

  .listing-notice {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .listing-notice > button {
    grid-column: 1 / -1;
  }

  .selected-listing-summary {
    grid-template-columns: 1fr 1fr;
  }

  .selected-listing-summary > div:nth-child(3) {
    grid-column: 1 / -1;
  }

  .hero-secondary-button {
    width: 100%;
  }
}

/* Compact product workflow and inspectable Qwen tool evidence. */
body,
:root[data-theme="light"] body {
  background: var(--bg);
}

body::before {
  display: none;
}

.workflow-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px 32px;
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 20px;
  border-bottom: 1px solid var(--line);
}

.workflow-intro__copy {
  min-width: 0;
}

.workflow-intro__copy .eyebrow {
  margin: 0 0 8px;
}

.workflow-intro__copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: 0;
}

.workflow-intro__copy > p:last-child {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.workflow-intro__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.workflow-intro__actions .hero-button,
.workflow-intro__actions .hero-secondary-button {
  min-height: 42px;
  border-radius: 8px;
}

.workflow-steps {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.workflow-steps .hero-flow__step {
  min-height: 62px;
  padding: 14px 16px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.workflow-steps .hero-flow__step::before,
.workflow-steps .hero-flow__step::after {
  display: none;
}

.workflow-steps .hero-flow__step + .hero-flow__step {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.workflow-steps .hero-flow__step > span {
  position: static;
  flex-basis: 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-soft);
  color: var(--teal);
  backdrop-filter: none;
}

.workflow-steps .hero-flow__step strong {
  color: var(--ink);
  font-size: 12px;
}

.workflow-steps .hero-flow__step small {
  color: var(--muted);
  font-size: 11px;
}

.agent-evidence-panel {
  min-width: 0;
}

.panel {
  border-radius: 8px;
}

.proof-grid {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.proof-card,
.proof-card:nth-child(1),
.proof-card:nth-child(2),
.proof-card:nth-child(3),
.proof-card:nth-child(4) {
  min-height: 118px;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.proof-card + .proof-card {
  border-left: 1px solid var(--line);
}

.proof-card > span,
.proof-card strong,
.proof-card small {
  color: var(--ink);
}

.proof-card > span {
  color: var(--muted);
}

.proof-card small {
  color: var(--muted);
}

.agent-run-summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 2px 0 18px;
  border-bottom: 1px solid var(--line);
}

.agent-run-summary > span {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal);
}

.agent-run-summary div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.agent-run-summary strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.agent-run-summary small {
  color: var(--muted);
  font-size: 11px;
}

.agent-skill-list {
  display: grid;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.agent-skill {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: start;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.agent-skill__index {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.agent-skill__body,
.agent-skill__body > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.agent-skill__body > div {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.agent-skill__body strong {
  color: var(--ink);
  font-size: 13px;
}

.agent-skill__body > div > span {
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.agent-skill__body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.agent-skill__body small {
  color: color-mix(in srgb, var(--muted), transparent 25%);
  font-size: 10px;
}

.agent-skill__status {
  color: var(--green);
}

.agent-skill--failed .agent-skill__status {
  color: var(--red);
}

.trust-boundary-list {
  display: grid;
}

.trust-boundary-list > div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.trust-boundary-list > div > svg {
  color: var(--teal);
}

.trust-boundary-list span {
  display: grid;
  gap: 3px;
}

.trust-boundary-list strong {
  color: var(--ink);
  font-size: 12px;
}

.trust-boundary-list small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.evaluation-result {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.evaluation-result > svg {
  color: var(--green);
}

.evaluation-result > span {
  display: grid;
  gap: 4px;
}

.evaluation-result strong {
  color: var(--ink);
  font-size: 13px;
}

.evaluation-result small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.architecture-comparison {
  display: grid;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.architecture-comparison > div {
  display: grid;
  grid-template-columns: minmax(110px, 1.2fr) repeat(2, minmax(92px, 1fr));
  gap: 12px;
  align-items: center;
  min-height: 40px;
  border-bottom: 1px solid var(--line);
}

.architecture-comparison span,
.architecture-comparison strong {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.architecture-comparison strong {
  color: var(--ink);
}

.architecture-comparison__header span {
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.architecture-comparison > div > :last-child {
  color: var(--teal);
  font-weight: 800;
}

.trace-payload-details {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.trace-payload-details summary {
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.trace-grid--compact {
  margin-top: 14px;
}

@media (max-width: 520px) {
  .architecture-comparison > div {
    grid-template-columns: minmax(92px, 1.1fr) repeat(2, minmax(78px, 1fr));
    gap: 8px;
  }

  .architecture-comparison span,
  .architecture-comparison strong {
    font-size: 10px;
  }
}

.marketplace-panel {
  grid-column: 1 / -1;
}

.marketplace-intro {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.marketplace-intro > span {
  color: var(--teal);
}

.marketplace-intro p {
  max-width: 920px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.marketplace-drafts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 20px;
}

.marketplace-draft {
  display: grid;
  align-content: start;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: 8px;
  background: var(--panel-soft);
}

.marketplace-draft--amazon {
  border-top-color: var(--amber);
}

.marketplace-draft--alibaba {
  border-top-color: var(--red);
}

.marketplace-draft header,
.marketplace-draft footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
}

.marketplace-draft header div {
  display: grid;
  gap: 2px;
}

.marketplace-draft header span,
.marketplace-draft__mode,
.marketplace-missing > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.marketplace-draft header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0;
}

.marketplace-draft__mode {
  flex: 0 0 auto;
  color: var(--amber);
}

.marketplace-draft__title {
  min-height: 54px;
  padding: 0 15px 14px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.marketplace-draft dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid var(--line);
}

.marketplace-draft dl div {
  min-width: 0;
  padding: 11px;
}

.marketplace-draft dl div + div {
  border-left: 1px solid var(--line);
}

.marketplace-draft dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.marketplace-draft dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
}

.marketplace-missing {
  display: grid;
  gap: 5px;
  padding: 14px 15px;
}

.marketplace-missing p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.marketplace-draft footer {
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.marketplace-draft footer small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.marketplace-draft footer a {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .workflow-intro {
    grid-template-columns: 1fr;
  }

  .workflow-intro__actions {
    justify-content: flex-start;
  }

  .workflow-steps {
    grid-template-columns: 1fr 1fr;
  }

  .workflow-steps .hero-flow__step:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .proof-card:nth-child(3) {
    border-left: 0;
  }

  .proof-card:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .marketplace-drafts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .workflow-intro {
    width: calc(100% - 28px);
    padding-top: 20px;
  }

  .workflow-intro__copy h1 {
    font-size: 26px;
  }

  .workflow-intro__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .workflow-intro__actions button {
    width: 100%;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .workflow-steps .hero-flow__step,
  .workflow-steps .hero-flow__step + .hero-flow__step,
  .workflow-steps .hero-flow__step:nth-child(3) {
    padding: 12px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .agent-skill__body > div {
    grid-template-columns: 1fr;
  }

  .proof-card + .proof-card,
  .proof-card:nth-child(3) {
    border-left: 0;
  }

  .proof-card:nth-child(n + 2) {
    border-top: 1px solid var(--line);
  }
}

/* Customer Voice Agent */

.workspace-grid--voice {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  align-items: start;
}

.voice-agent-panel,
.voice-context-panel {
  min-width: 0;
  overflow: hidden;
}

.voice-agent-header .status-pill--success {
  border-color: rgba(85, 230, 210, 0.3);
  background: rgba(85, 230, 210, 0.12);
  color: var(--teal);
}

.voice-pipeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #111114;
}

.voice-pipeline > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 13px 16px;
}

.voice-pipeline > div + div {
  border-left: 1px solid var(--line);
}

.voice-pipeline span,
.voice-pipeline small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.voice-pipeline strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-pipeline small {
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.voice-conversation {
  display: flex;
  min-height: 390px;
  max-height: 560px;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  padding: 20px;
  background: #0a0a0c;
  scroll-behavior: smooth;
}

.voice-message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  width: min(88%, 650px);
}

.voice-message--user {
  align-self: flex-end;
  grid-template-columns: minmax(0, 1fr) 34px;
}

.voice-message--user .voice-avatar {
  grid-column: 2;
  grid-row: 1;
  border-color: rgba(255, 103, 199, 0.32);
  background: rgba(255, 103, 199, 0.14);
  color: var(--pink);
}

.voice-message--user .voice-message__content {
  grid-column: 1;
  grid-row: 1;
  border-color: rgba(103, 135, 255, 0.3);
  background: #212135;
}

.voice-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(85, 230, 210, 0.28);
  border-radius: 50%;
  background: rgba(85, 230, 210, 0.12);
  color: var(--teal);
  font-size: 10px;
  font-weight: 900;
}

.voice-message__content,
.voice-message--thinking > div {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #17171b;
}

.voice-message__content p {
  margin: 0;
  color: #efefec;
  font-size: 14px;
  line-height: 1.55;
}

.voice-message__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.voice-message__meta span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.voice-message__meta .needs-human {
  border-color: rgba(255, 189, 89, 0.3);
  color: var(--amber);
}

.voice-message__meta button,
.voice-agent-footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  margin-left: auto;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0e0e11;
  color: var(--ink);
}

.voice-message__meta button:hover,
.voice-agent-footer button:hover {
  border-color: rgba(85, 230, 210, 0.35);
  color: var(--teal);
}

.voice-suggestions,
.voice-context-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.voice-suggestions button,
.voice-context-actions button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(103, 135, 255, 0.24);
  border-radius: 8px;
  background: rgba(103, 135, 255, 0.09);
  color: #cbd5ff;
  font-size: 11px;
  font-weight: 750;
}

.voice-suggestions button:hover,
.voice-context-actions button:hover {
  border-color: rgba(103, 135, 255, 0.48);
  background: rgba(103, 135, 255, 0.16);
}

.voice-message--thinking strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.thinking-dots {
  display: flex;
  gap: 4px;
}

.thinking-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  animation: voice-thinking 1.1s ease-in-out infinite;
}

.thinking-dots i:nth-child(2) {
  animation-delay: 120ms;
}

.thinking-dots i:nth-child(3) {
  animation-delay: 240ms;
}

.voice-composer {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: end;
  gap: 9px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #111114;
}

.voice-record-button,
.voice-send-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #1a1a1f;
  color: var(--ink);
}

.voice-record-button:hover,
.voice-record-button.is-active {
  border-color: rgba(255, 103, 199, 0.48);
  background: rgba(255, 103, 199, 0.14);
  color: var(--pink);
}

.voice-record-button.is-active {
  box-shadow: 0 0 0 5px rgba(255, 103, 199, 0.08);
}

.voice-send-button {
  border-color: transparent;
  background: var(--green);
  color: #08090a;
}

.voice-agent-input {
  width: 100%;
  min-height: 46px;
  max-height: 120px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #09090b;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.voice-agent-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.voice-agent-footer button {
  width: auto;
  gap: 6px;
  margin-left: 0;
  font-size: 10px;
}

.voice-agent-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 114, 94, 0.24);
  background: rgba(255, 114, 94, 0.08);
  color: #ff9f90;
  font-size: 11px;
}

.voice-context-list {
  margin: 0;
}

.voice-context-list > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.voice-context-list dt,
.voice-context-list dd {
  margin: 0;
}

.voice-context-list dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.voice-context-list dd {
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.4;
}

.voice-human-gate {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  margin: 14px;
  padding: 13px;
  border: 1px solid rgba(185, 255, 102, 0.22);
  border-radius: 12px;
  background: rgba(185, 255, 102, 0.07);
}

.voice-human-gate > svg {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: var(--green);
  color: #08090a;
}

.voice-human-gate strong,
.voice-human-gate span {
  display: block;
}

.voice-human-gate strong {
  margin-bottom: 4px;
  font-size: 12px;
}

.voice-human-gate span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.voice-context-actions {
  margin: 0;
  padding: 0 14px 16px;
}

:root[data-theme="light"] .voice-pipeline,
:root[data-theme="light"] .voice-composer {
  background: #f7f6f2;
}

:root[data-theme="light"] .voice-conversation {
  background: #fbfaf7;
}

:root[data-theme="light"] .voice-message__content,
:root[data-theme="light"] .voice-message--thinking > div {
  background: #fff;
}

:root[data-theme="light"] .voice-message--user .voice-message__content {
  border-color: rgba(75, 99, 224, 0.2);
  background: #eef1ff;
}

:root[data-theme="light"] .voice-message__content p {
  color: #1a1a1d;
}

:root[data-theme="light"] .voice-message__meta button,
:root[data-theme="light"] .voice-agent-footer button,
:root[data-theme="light"] .voice-record-button,
:root[data-theme="light"] .voice-agent-input {
  background: #fff;
  color: #171719;
}

:root[data-theme="light"] .voice-suggestions button,
:root[data-theme="light"] .voice-context-actions button {
  color: #4556b9;
}

@media (max-width: 1180px) {
  .workspace-grid--voice {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  .voice-pipeline {
    grid-template-columns: 1fr;
  }

  .voice-pipeline > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .voice-conversation {
    min-height: 340px;
    max-height: 480px;
    padding: 14px;
  }

  .voice-message {
    width: 96%;
  }

  .voice-composer {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 7px;
    padding: 10px;
  }

  .voice-record-button,
  .voice-send-button {
    width: 42px;
    height: 42px;
  }

  .voice-agent-input {
    min-height: 42px;
  }
}

@keyframes voice-thinking {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .thinking-dots i {
    animation: none;
  }
}

/* Voice Agent 2026 workspace */

.workspace-grid--voice {
  display: block;
}

.voice-workspace {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.voice-workspace__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d0d10;
}

.voice-workspace__header > div:first-child {
  min-width: 0;
}

.voice-workspace__header .eyebrow {
  margin-bottom: 5px;
}

.voice-workspace__header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.voice-workspace__header > div:first-child > span {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.voice-live-state,
.voice-privacy-state {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  white-space: nowrap;
}

.voice-live-state > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(85, 230, 210, 0.1);
}

.voice-live-state--listening > i,
.voice-live-state--responding > i,
.voice-live-state--using-tools > i {
  animation: voice-live-pulse 1.2s ease-in-out infinite;
}

.voice-live-state--listening {
  border-color: rgba(255, 103, 199, 0.35);
  color: var(--pink);
}

.voice-live-state--listening > i {
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 103, 199, 0.1);
}

.voice-live-state--using-tools,
.voice-live-state--waiting-approval {
  border-color: rgba(255, 189, 89, 0.34);
  color: var(--amber);
}

.voice-live-state--using-tools > i,
.voice-live-state--waiting-approval > i {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 189, 89, 0.1);
}

.voice-live-state--recovering {
  border-color: rgba(255, 114, 94, 0.34);
  color: var(--red);
}

.voice-live-state--recovering > i {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 114, 94, 0.1);
}

.voice-privacy-state svg {
  width: 14px;
  height: 14px;
}

.voice-service-route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111114;
}

.voice-service-node {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 8px;
  align-items: center;
  min-width: 0;
  gap: 10px;
  min-height: 64px;
  padding: 10px 14px;
}

.voice-service-node + .voice-service-node {
  border-left: 1px solid var(--line);
}

.voice-service-node > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.voice-service-node > span svg {
  width: 15px;
  height: 15px;
}

.voice-service-node > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.voice-service-node small,
.voice-service-node strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-service-node small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.voice-service-node strong {
  font-size: 12px;
}

.voice-service-node > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4c4c54;
}

.voice-service-node--active > span,
.voice-service-node--complete > span {
  border-color: rgba(85, 230, 210, 0.25);
  color: var(--teal);
}

.voice-service-node--active > i {
  background: var(--pink);
  animation: voice-live-pulse 1.2s ease-in-out infinite;
}

.voice-service-node--complete > i {
  background: var(--green);
}

.voice-workspace__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 12px;
}

.voice-visual-board {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.voice-now-banner {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 96px;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111114;
}

.voice-now-banner__signal {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 48px;
  gap: 4px;
  border: 1px solid rgba(85, 230, 210, 0.2);
  border-radius: 8px;
  background: rgba(85, 230, 210, 0.06);
}

.voice-now-banner__signal i {
  width: 3px;
  height: 10px;
  border-radius: 2px;
  background: var(--teal);
}

.voice-workspace--listening .voice-now-banner__signal,
.voice-workspace--responding .voice-now-banner__signal,
.voice-workspace--using-tools .voice-now-banner__signal {
  border-color: rgba(255, 103, 199, 0.22);
  background: rgba(255, 103, 199, 0.06);
}

.voice-workspace--listening .voice-now-banner__signal i,
.voice-workspace--responding .voice-now-banner__signal i,
.voice-workspace--using-tools .voice-now-banner__signal i {
  background: var(--pink);
  animation: voice-meter 900ms ease-in-out infinite alternate;
}

.voice-now-banner__signal i:nth-child(2) {
  height: 24px;
  animation-delay: 100ms;
}

.voice-now-banner__signal i:nth-child(3) {
  height: 34px;
  animation-delay: 200ms;
}

.voice-now-banner__signal i:nth-child(4) {
  height: 20px;
  animation-delay: 300ms;
}

.voice-now-banner__signal i:nth-child(5) {
  height: 13px;
  animation-delay: 400ms;
}

.voice-now-banner > div:nth-child(2) {
  min-width: 0;
}

.voice-now-banner span,
.voice-result-card > span,
.voice-result-card--visual div span,
.voice-approval-card section > span,
.voice-activity-rail header span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 860;
  text-transform: uppercase;
}

.voice-now-banner strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
}

.voice-now-banner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.voice-inline-control {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 103, 199, 0.3);
  border-radius: 8px;
  background: rgba(255, 103, 199, 0.1);
  color: var(--pink);
}

.voice-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.voice-result-card,
.voice-approval-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101013;
}

.voice-result-card {
  display: grid;
  align-content: start;
  min-height: 132px;
  gap: 6px;
  padding: 15px;
}

.voice-result-card--request,
.voice-result-card--visual,
.voice-approval-card {
  grid-column: 1 / -1;
}

.voice-result-card--request {
  min-height: 142px;
  border-top: 3px solid var(--purple);
}

.voice-result-card--metric:nth-of-type(3) {
  border-top: 3px solid var(--amber);
}

.voice-result-card--metric:nth-of-type(4) {
  border-top: 3px solid var(--blue);
}

.voice-result-card h3,
.voice-approval-card h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.22;
}

.voice-result-card--request h3,
.voice-result-card--metric h3 {
  font-size: 20px;
}

.voice-result-card p,
.voice-approval-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.voice-result-card > strong {
  align-self: end;
  margin-top: 7px;
  font-size: 12px;
}

.voice-result-card--visual {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 112px;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.voice-result-card--visual img {
  width: 112px;
  height: 112px;
  object-fit: cover;
}

.voice-result-card--visual div {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 14px;
}

.voice-result-card--visual div strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-approval-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 106px;
  gap: 13px;
  padding: 15px;
  border-color: rgba(255, 189, 89, 0.25);
  background: rgba(255, 189, 89, 0.055);
}

.voice-approval-card--approved {
  border-color: rgba(185, 255, 102, 0.25);
  background: rgba(185, 255, 102, 0.055);
}

.voice-approval-card > div {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--amber);
  color: #09090b;
}

.voice-approval-card--approved > div {
  background: var(--green);
}

.voice-approval-card section {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.voice-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  gap: 7px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--amber);
  color: #09090b;
  font-size: 11px;
  font-weight: 850;
}

.voice-action-button svg {
  width: 14px;
  height: 14px;
}

.voice-activity-rail {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d0d10;
}

.voice-activity-rail > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

.voice-activity-rail header h3 {
  margin: 4px 0 0;
  font-size: 14px;
}

.voice-activity-rail > header > svg {
  color: var(--teal);
}

.voice-activity-rail ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.voice-activity-item {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 16px;
  align-items: start;
  gap: 10px;
  min-height: 68px;
  padding: 13px 15px;
}

.voice-activity-item + .voice-activity-item {
  border-top: 1px solid var(--line);
}

.voice-activity-item > i {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border: 2px solid #4c4c54;
  border-radius: 50%;
  background: #0d0d10;
}

.voice-activity-item--complete > i {
  border-color: var(--green);
  background: var(--green);
}

.voice-activity-item--active > i {
  border-color: var(--pink);
  background: var(--pink);
  animation: voice-live-pulse 1.2s ease-in-out infinite;
}

.voice-activity-item--waiting > i {
  border-color: var(--amber);
  background: var(--amber);
}

.voice-activity-item > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.voice-activity-item strong,
.voice-activity-item span {
  overflow-wrap: anywhere;
}

.voice-activity-item strong {
  font-size: 12px;
}

.voice-activity-item span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.voice-activity-item > svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.voice-activity-item--waiting > svg {
  color: var(--amber);
}

.voice-activity-rail > footer {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  padding: 13px 15px;
  border-top: 1px solid var(--line);
  background: rgba(185, 255, 102, 0.045);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.voice-activity-rail > footer svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

.voice-transcript-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d0d10;
}

.voice-transcript-toggle {
  display: grid;
  grid-template-columns: 20px auto 1fr 18px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  gap: 9px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.voice-transcript-toggle > span {
  color: var(--muted);
  font-size: 10px;
}

.voice-transcript-toggle > svg:last-child {
  transition: transform 160ms ease;
}

.voice-transcript-toggle[aria-expanded="true"] > svg:last-child {
  transform: rotate(180deg);
}

.voice-live-caption {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 34px;
  align-items: center;
  min-height: 74px;
  gap: 12px;
  padding: 12px 14px;
}

.voice-live-caption > span {
  color: var(--teal);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.voice-live-caption p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #e6e6e1;
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.voice-live-caption button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151519;
  color: var(--ink);
}

.voice-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 14px 13px;
}

.voice-quick-actions button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(103, 135, 255, 0.25);
  border-radius: 8px;
  background: rgba(103, 135, 255, 0.08);
  color: #cbd5ff;
  font-size: 10px;
  font-weight: 780;
}

.voice-quick-actions button:hover {
  border-color: rgba(103, 135, 255, 0.48);
  background: rgba(103, 135, 255, 0.14);
}

.voice-conversation {
  min-height: 260px;
  max-height: 440px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #09090b;
}

.voice-message__content,
.voice-message--thinking > div {
  border-radius: 8px;
}

.voice-message__attachment {
  display: block;
  width: min(260px, 100%);
  aspect-ratio: 4 / 3;
  margin-bottom: 10px;
  border-radius: 6px;
  object-fit: cover;
}

.voice-control-dock {
  position: sticky;
  z-index: 6;
  bottom: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(14, 14, 17, 0.96);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.voice-attachment-preview {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 0;
}

.voice-attachment-preview img {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  object-fit: cover;
}

.voice-attachment-preview div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.voice-attachment-preview strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-attachment-preview span {
  color: var(--muted);
  font-size: 10px;
}

.voice-attachment-preview button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #17171b;
  color: var(--muted);
}

.voice-control-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 52px 44px;
  align-items: end;
  gap: 9px;
  padding: 12px;
}

.voice-media-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
}

.voice-dock-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #17171b;
  color: var(--muted);
  cursor: pointer;
}

.voice-dock-icon:hover,
.voice-dock-icon:focus-within {
  border-color: rgba(85, 230, 210, 0.34);
  color: var(--teal);
}

.voice-dock-icon input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.voice-agent-input {
  min-height: 48px;
  max-height: 132px;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #08080a;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.voice-record-button,
.voice-send-button {
  display: grid;
  place-items: center;
  padding: 0;
}

.voice-record-button {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 103, 199, 0.35);
  border-radius: 50%;
  background: var(--pink);
  color: #09090b;
}

.voice-record-button:hover,
.voice-record-button.is-active {
  border-color: var(--pink);
  background: #ff8ad4;
  color: #09090b;
}

.voice-record-button.is-active {
  box-shadow: 0 0 0 6px rgba(255, 103, 199, 0.11);
}

.voice-send-button {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #09090b;
}

.voice-control-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 7px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 730;
}

.voice-control-footer button {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid rgba(255, 114, 94, 0.25);
  border-radius: 8px;
  background: rgba(255, 114, 94, 0.07);
  color: #ff9f90;
  font-size: 10px;
  font-weight: 820;
}

.voice-control-footer button svg {
  width: 13px;
  height: 13px;
}

.voice-agent-error {
  border: 1px solid rgba(255, 114, 94, 0.25);
  border-radius: 8px;
}

:root[data-theme="light"] .voice-workspace__header,
:root[data-theme="light"] .voice-service-route,
:root[data-theme="light"] .voice-now-banner,
:root[data-theme="light"] .voice-result-card,
:root[data-theme="light"] .voice-activity-rail,
:root[data-theme="light"] .voice-transcript-shell {
  border-color: rgba(10, 10, 12, 0.1);
  background: rgba(255, 255, 255, 0.92);
}

:root[data-theme="light"] .voice-result-card--request {
  border-top-color: var(--purple);
}

:root[data-theme="light"] .voice-approval-card {
  border-color: rgba(188, 118, 9, 0.2);
  background: rgba(255, 189, 89, 0.1);
}

:root[data-theme="light"] .voice-approval-card--approved {
  border-color: rgba(80, 145, 34, 0.2);
  background: rgba(185, 255, 102, 0.1);
}

:root[data-theme="light"] .voice-service-node + .voice-service-node,
:root[data-theme="light"] .voice-activity-item + .voice-activity-item,
:root[data-theme="light"] .voice-transcript-toggle,
:root[data-theme="light"] .voice-control-footer {
  border-color: rgba(10, 10, 12, 0.09);
}

:root[data-theme="light"] .voice-live-caption p {
  color: #242429;
}

:root[data-theme="light"] .voice-control-dock {
  border-color: rgba(10, 10, 12, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(15, 15, 18, 0.12);
}

:root[data-theme="light"] .voice-agent-input,
:root[data-theme="light"] .voice-dock-icon,
:root[data-theme="light"] .voice-attachment-preview button,
:root[data-theme="light"] .voice-live-caption button {
  border-color: rgba(10, 10, 12, 0.1);
  background: #f6f5f1;
  color: #242429;
}

@media (max-width: 1050px) {
  .voice-workspace__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .voice-activity-rail ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .voice-activity-item + .voice-activity-item {
    border-top: 0;
  }

  .voice-activity-item:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .voice-activity-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .voice-workspace__header {
    align-items: flex-start;
    flex-direction: column;
    padding: 15px;
  }

  .voice-workspace__status {
    justify-content: flex-start;
  }

  .voice-service-route {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
  }

  .voice-service-node {
    grid-template-columns: 28px minmax(0, 1fr) 6px;
    min-height: 58px;
    gap: 6px;
    padding: 8px 6px;
  }

  .voice-service-node > span {
    width: 28px;
    height: 30px;
  }

  .voice-now-banner {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    padding: 14px;
  }

  .voice-now-banner__signal {
    width: 50px;
  }

  .voice-result-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .voice-result-card--request,
  .voice-result-card--visual,
  .voice-approval-card {
    grid-column: auto;
  }

  .voice-result-card {
    min-height: 116px;
  }

  .voice-approval-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .voice-approval-card .voice-action-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .voice-activity-rail ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .voice-activity-item:nth-child(even) {
    border-left: 0;
  }

  .voice-activity-item + .voice-activity-item,
  .voice-activity-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .voice-live-caption {
    grid-template-columns: minmax(0, 1fr) 34px;
  }

  .voice-live-caption > span {
    grid-column: 1 / -1;
  }

  .voice-live-caption p {
    -webkit-line-clamp: 3;
  }

  .voice-control-dock {
    bottom: 6px;
  }

  .voice-control-row {
    grid-template-columns: auto minmax(0, 1fr) 48px 40px;
    gap: 6px;
    padding: 9px;
  }

  .voice-media-controls {
    gap: 4px;
  }

  .voice-dock-icon {
    width: 34px;
    height: 36px;
  }

  .voice-agent-input {
    min-height: 46px;
    padding: 12px 10px;
  }

  .voice-record-button {
    width: 48px;
    height: 48px;
  }

  .voice-send-button {
    width: 40px;
    height: 40px;
    margin-bottom: 3px;
  }

  .voice-control-footer > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .voice-message {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .voice-control-row {
    grid-template-columns: auto minmax(0, 1fr) 48px 40px;
  }

  .voice-quick-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .voice-quick-actions button {
    flex: 0 0 auto;
  }
}

@keyframes voice-live-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes voice-meter {
  from {
    transform: scaleY(0.45);
  }

  to {
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .voice-live-state > i,
  .voice-service-node > i,
  .voice-now-banner__signal i {
    animation: none;
  }
}

/* Avoid GPU tile gaps when the mobile intake rerenders inside a blurred fixed layer. */
@media (max-width: 820px) {
  .seller-intake-backdrop {
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: none;
  }

  .seller-intake-dialog {
    isolation: isolate;
  }

  .seller-intake-form,
  .seller-intake-mode-content,
  .seller-ai-layout,
  .seller-ai-conversation {
    background: #0d0d10;
  }

  :root[data-theme="light"] .seller-intake-form,
  :root[data-theme="light"] .seller-intake-mode-content,
  :root[data-theme="light"] .seller-ai-layout,
  :root[data-theme="light"] .seller-ai-conversation {
    background: #faf9f6;
  }
}
