:root {
  color-scheme: dark;
  --bg: #050507;
  --surface: #101010;
  --surface-2: #171817;
  --surface-3: #1d1e1d;
  --line: #3d3a39;
  --line-hot: #5a5551;
  --text: #f2f2f2;
  --muted: #b8b3b0;
  --faint: #8b949e;
  --accent: #00d992;
  --accent-2: #2fd6a1;
  --indigo: #818cf8;
  --amber: #ffba00;
  --danger: #fb565b;
  --danger-soft: rgba(251, 86, 91, 0.14);
  --ok-soft: rgba(0, 217, 146, 0.14);
  --amber-soft: rgba(255, 186, 0, 0.13);
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
}

button,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 217, 146, 0.28);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
  padding: 18px;
}

.topbar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 16, 16, 0.96);
  box-shadow: var(--shadow);
}

.brand-block {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line-hot);
  border-radius: var(--radius);
  color: var(--accent);
  background: #080908;
  box-shadow: inset 0 0 0 1px rgba(0, 217, 146, 0.1);
  font-size: 27px;
  font-weight: 900;
}

.brand-mark::after {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(0, 217, 146, 0.8);
  content: "";
}

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

.eyebrow,
.lane-kicker {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 7px;
  font-size: 36px;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: 0;
}

.headline-copy {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 650;
}

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

.mode-pill,
.lane-state,
.tag,
.risk-pill,
.price-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #0b0c0b;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(0, 217, 146, 0.78);
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(94px, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #080908;
}

.segment {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--faint);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.segment:hover {
  color: var(--text);
  background: var(--surface-2);
}

.segment.is-active {
  color: #07110d;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(0, 217, 146, 0.2);
}

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

.signal-card {
  min-height: 64px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 16, 16, 0.92);
}

.signal-card span {
  display: block;
  color: var(--faint);
  font-size: 11px;
  font-weight: 900;
}

.signal-card strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}

.signal-card:nth-child(1) {
  border-color: rgba(0, 217, 146, 0.42);
}

.signal-card:nth-child(2) {
  border-color: rgba(129, 140, 248, 0.42);
}

.signal-card:nth-child(3) {
  border-color: rgba(255, 186, 0, 0.42);
}

.signal-card:nth-child(4) {
  border-color: rgba(47, 214, 161, 0.42);
}

.market-grid {
  display: grid;
  grid-template-columns: minmax(290px, 0.86fr) minmax(400px, 1.22fr) minmax(330px, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.lane {
  min-height: calc(100vh - 198px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 16, 16, 0.96);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
  padding: 15px;
  border-bottom: 1px solid var(--line);
  background: #0c0d0c;
}

.lane-title {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  gap: 10px;
}

.lane-number {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 217, 146, 0.45);
  border-radius: 7px;
  color: var(--accent);
  background: rgba(0, 217, 146, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.lane-state {
  min-height: 28px;
  padding: 5px 9px;
}

.lane-state.is-working {
  color: var(--amber);
  border-color: rgba(255, 186, 0, 0.42);
  background: var(--amber-soft);
}

.lane-state.is-done {
  color: var(--accent);
  border-color: rgba(0, 217, 146, 0.42);
  background: var(--ok-soft);
}

.intent-composer {
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

.composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.intent-composer label,
.small-title {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.small-title {
  margin-bottom: 8px;
}

.composer-head span {
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

textarea {
  display: block;
  width: 100%;
  min-height: 142px;
  padding: 12px;
  resize: vertical;
  border: 1px solid var(--line-hot);
  border-radius: var(--radius);
  color: var(--text);
  background: #080908;
  line-height: 1.58;
}

.composer-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.icon-button,
.dock-button,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border-radius: 7px;
  font-weight: 850;
}

.primary-button {
  padding: 9px 13px;
  color: #07110d;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(0, 217, 146, 0.18);
}

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

.ghost-button,
.mini-button {
  padding: 9px 12px;
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.ghost-button:hover,
.mini-button:hover,
.icon-button:hover {
  border-color: var(--line-hot);
  background: var(--surface-3);
}

.intent-object,
.weights-block,
.timeline-wrap,
.responses-board,
.compare-wrap {
  padding: 15px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 154px;
  border: 1px dashed var(--line-hot);
  border-radius: var(--radius);
  color: var(--faint);
  background: #0b0c0b;
  text-align: center;
}

.empty-state.compact {
  min-height: 126px;
}

.empty-state p {
  margin: 7px 0 0;
  font-weight: 750;
}

.empty-glyph {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-hot);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 46%, var(--line-hot) 46% 54%, transparent 54%),
    linear-gradient(transparent 46%, var(--line-hot) 46% 54%, transparent 54%);
}

.object-card,
.agent-card,
.response-card,
.drawer-card,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.object-card {
  padding: 12px;
}

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

.object-field {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0b0c0b;
}

.object-field.wide {
  grid-column: 1 / -1;
}

.field-label {
  display: block;
  margin-bottom: 5px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.field-value {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.42;
  font-weight: 760;
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  min-height: 25px;
  padding: 4px 8px;
  color: var(--muted);
  background: #0b0c0b;
  border-color: var(--line);
}

.weight-row {
  display: grid;
  grid-template-columns: 82px 1fr 42px;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  font-size: 13px;
}

.weight-row span:first-child {
  color: var(--muted);
  font-weight: 800;
}

.weight-row strong {
  color: var(--text);
}

.weight-bar {
  height: 8px;
  border-radius: 999px;
  background: #252725;
  overflow: hidden;
}

.weight-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.runtime-lane {
  position: relative;
}

.canvas-frame {
  position: relative;
  margin: 15px 15px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #080908;
  overflow: hidden;
}

.canvas-frame::before {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(61, 58, 57, 0.76);
  border-radius: 7px;
  pointer-events: none;
  content: "";
}

.market-canvas {
  display: block;
  width: 100%;
  height: 196px;
}

.canvas-legend {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  pointer-events: none;
}

.canvas-legend span {
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(16, 16, 16, 0.84);
  font-size: 11px;
  font-weight: 800;
}

.runtime-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 15px 14px;
}

.runtime-stats > div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b0c0b;
}

.runtime-stats strong {
  display: block;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.runtime-stats span {
  color: var(--faint);
  font-size: 12px;
  font-weight: 780;
}

.agent-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 0 15px 15px;
}

.agent-card {
  min-height: 116px;
  padding: 10px;
  opacity: 0.42;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.agent-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.agent-card.is-awake {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(0, 217, 146, 0.52);
}

.agent-card.is-risk {
  border-color: rgba(251, 86, 91, 0.48);
  background: #120d0e;
}

.agent-avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line-hot);
  border-radius: 7px;
  color: var(--accent);
  background: #080908;
  font-size: 12px;
  font-weight: 900;
}

.agent-card.is-risk .agent-avatar {
  color: var(--danger);
  border-color: rgba(251, 86, 91, 0.54);
}

.agent-status {
  padding-top: 2px;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.agent-card.is-awake .agent-status {
  color: var(--accent);
}

.agent-card.is-risk .agent-status {
  color: var(--danger);
}

.agent-card h3,
.response-card h3,
.drawer-card h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.agent-card p,
.response-card p,
.decision-banner p,
.drawer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.agent-card .agent-edge {
  margin-top: 5px;
  color: var(--text);
  font-weight: 730;
}

.timeline {
  position: relative;
  display: grid;
  gap: 8px;
  max-height: 430px;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 25px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 10px;
}

.timeline-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #07110d;
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.timeline-item.is-risk .timeline-icon {
  color: #200506;
  background: var(--danger);
}

.timeline-item.is-system .timeline-icon {
  color: #070915;
  background: var(--indigo);
}

.timeline-item.is-buyer .timeline-icon {
  color: #07110d;
  background: var(--accent-2);
}

.timeline-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 13px;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.decision-banner {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  margin: 15px 15px 0;
  padding: 11px;
  border: 1px solid rgba(255, 186, 0, 0.42);
  border-radius: var(--radius);
  background: var(--amber-soft);
}

.decision-banner strong {
  color: var(--text);
}

.decision-banner.is-locked {
  border-color: rgba(0, 217, 146, 0.48);
  background: var(--ok-soft);
}

.banner-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  color: #1d1200;
  background: var(--amber);
  font-weight: 900;
}

.decision-banner.is-locked .banner-icon {
  color: #07110d;
  background: var(--accent);
}

.responses-board {
  display: grid;
  gap: 10px;
}

.response-card {
  position: relative;
  padding: 13px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 250ms ease, transform 250ms ease, border-color 220ms ease;
  overflow: hidden;
}

.response-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.response-card.is-recommended {
  border-color: rgba(0, 217, 146, 0.62);
  box-shadow: inset 4px 0 0 var(--accent);
}

.response-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.response-rank {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.rank-badge {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  min-height: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #07110d;
  background: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.response-type {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.price-chip {
  color: var(--amber);
  background: rgba(255, 186, 0, 0.1);
  border-color: rgba(255, 186, 0, 0.42);
}

.response-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 11px 0;
}

.meta-box {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0b0c0b;
}

.meta-box span {
  display: block;
  color: var(--faint);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.meta-box strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.26;
}

.fit-meter {
  height: 7px;
  margin: -2px 0 10px;
  border-radius: 999px;
  background: #252725;
  overflow: hidden;
}

.fit-meter div {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.risk-pill.low {
  color: var(--accent);
  border-color: rgba(0, 217, 146, 0.36);
  background: var(--ok-soft);
}

.risk-pill.medium {
  color: var(--amber);
  border-color: rgba(255, 186, 0, 0.38);
  background: var(--amber-soft);
}

.risk-pill.high {
  color: var(--danger);
  border-color: rgba(251, 86, 91, 0.4);
  background: var(--danger-soft);
}

.response-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.response-card .commitment-copy {
  margin-top: 10px;
  color: var(--text);
  font-weight: 720;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.compare-table th,
.compare-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  color: var(--faint);
  font-size: 11px;
  text-transform: uppercase;
}

.table-scroller {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b0c0b;
}

.protocol-console {
  display: flex;
  justify-content: center;
  margin: 12px auto 0;
}

.dock {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 16, 16, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.dock-button {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--muted);
  background: transparent;
}

.dock-button.is-active {
  color: #07110d;
  background: var(--accent);
}

.drawer {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 18;
  width: min(650px, calc(100vw - 36px));
  max-height: min(620px, calc(100vh - 112px));
  border: 1px solid var(--line-hot);
  border-radius: var(--radius);
  background: rgba(16, 16, 16, 0.98);
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 94px));
  visibility: hidden;
  transition: opacity 180ms ease, transform 260ms ease, visibility 180ms ease;
}

.drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #0b0c0b;
}

.drawer-title {
  min-width: 0;
}

.icon-button {
  width: 38px;
  height: 38px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 22px;
}

.drawer-body {
  display: grid;
  gap: 10px;
  max-height: calc(min(620px, 100vh - 112px) - 78px);
  padding: 14px;
  overflow: auto;
}

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

.drawer-card {
  padding: 12px;
}

.drawer-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

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

.drawer-summary > div {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b0c0b;
}

.drawer-summary span {
  display: block;
  color: var(--faint);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.drawer-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 19px;
  line-height: 1;
}

pre {
  overflow: auto;
  margin: 8px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #d9fff0;
  background: #080908;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
}

.seller-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.seller-metric {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0b0c0b;
}

.seller-metric span {
  display: block;
  color: var(--faint);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.seller-metric strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 16px;
}

@media (max-width: 1180px) {
  .signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .responses-lane {
    grid-column: 1 / -1;
  }

  .lane {
    min-height: auto;
  }
}

@media (max-width: 780px) {
  .app-shell {
    padding: 10px;
  }

  .topbar {
    flex-direction: column;
  }

  .brand-block {
    align-items: flex-start;
  }

  .topbar-actions {
    justify-content: stretch;
  }

  .mode-pill {
    justify-content: center;
    width: 100%;
  }

  .segmented {
    width: 100%;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .signal-card {
    min-height: 54px;
  }

  .market-grid,
  .object-grid,
  .drawer-grid,
  .drawer-summary {
    grid-template-columns: 1fr;
  }

  .object-field.wide {
    grid-column: auto;
  }

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

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

  .response-meta,
  .seller-controls {
    grid-template-columns: 1fr;
  }

  .dock {
    width: calc(100vw - 20px);
  }

  .dock-button {
    flex: 1;
    min-width: 0;
    padding: 8px 6px;
    font-size: 12px;
  }

  .drawer {
    right: 10px;
    bottom: 72px;
    width: calc(100vw - 20px);
  }

  .canvas-legend {
    position: static;
    justify-content: flex-start;
    padding: 0 10px 10px;
  }

  h1 {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    width: 48px;
    height: 48px;
    font-size: 23px;
  }

  h1 {
    font-size: 25px;
  }

  .headline-copy {
    font-size: 13px;
  }

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

  .agent-strip {
    grid-template-columns: 1fr;
  }

  .response-top {
    display: grid;
  }

  .price-chip {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
