:root {
  color-scheme: light;
  --canvas: #f5f1e8;
  --surface: #fbf7ee;
  --ink: #0e0e0d;
  --muted: #69645b;
  --line: #d2cbbe;
  --line-strong: #b8afa0;
  --accent: #e84f2c;
  --accent-strong: #c83d20;
  --accent-soft: #fbe4dc;
  --success: #315f49;
  --danger: #9c3e34;
  --paper: var(--surface);
  --ground: var(--canvas);
  --blue: var(--accent);
  --blue-deep: var(--accent-strong);
  --blue-soft: var(--accent-soft);
  --orange: var(--accent);
  --green: var(--success);
  --green-soft: #e4ede6;
  --red: var(--danger);
  --red-soft: #f7e5df;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-object: 0 18px 46px rgba(43, 35, 23, 0.12);
  --shadow: var(--shadow-object);
  --radius: var(--radius-md);
  --input-color: var(--accent);
  --input-soft: var(--accent-soft);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
body[data-input-mode="speak"] { --input-color: var(--accent); --input-soft: var(--accent-soft); }
body[data-input-mode="camera"] { --input-color: var(--ink); --input-soft: #e9e1d4; }
body[data-input-mode="upload"] { --input-color: #806743; --input-soft: #eee4d3; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  overflow-x: hidden;
  background: var(--canvas);
}

button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(232, 79, 44, 0.3);
  outline-offset: 3px;
}

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 72px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.wordmark img { display: block; width: 70px; height: 23px; }
.prototype-label { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; }

.app-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(24px, 5vh, 56px) 0 72px;
}

.empty-view {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(420px, 1.16fr);
  gap: clamp(56px, 9vw, 116px);
  align-items: center;
  min-height: calc(100vh - 180px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

h1, h2, h3, p { text-wrap: pretty; }
h1 {
  margin: 0;
  font-size: clamp(48px, 6.2vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 720;
}

.intro-detail {
  max-width: 470px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.drop-zone {
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--line-strong);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.drop-zone:hover, .drop-zone.is-dragging {
  border-color: var(--blue);
  background: var(--paper);
  transform: translateY(-2px);
}

.drop-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 18px;
  color: var(--blue);
  background: var(--blue-soft);
}

.drop-icon svg { width: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop-zone strong { font-size: 20px; letter-spacing: -0.02em; }
.drop-zone > span:not(.drop-icon) { margin-top: 8px; color: var(--muted); font-size: 15px; }
.drop-zone .file-types { margin-top: 30px !important; font-size: 13px !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.intent-column { display: grid; gap: 14px; }
.intent-surface {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(251,247,238,.92);
  text-align: center;
  box-shadow: var(--shadow);
}
.movo-agent {
  --body-x: 1;
  --body-y: .72;
  --body-shift: 10px;
  --body-rotate: 0deg;
  --eye-y: 1;
  --eye-shift: 8px;
  --mouth-opacity: 0;
  --mouth-y: .35;
  --lens-opacity: 0;
  --accent-opacity: 0;
  position: relative;
  width: 180px;
  height: 112px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}
.movo-agent svg { position: relative; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.movo-shadow { position: absolute; z-index: 0; left: 50%; bottom: 12px; width: 122px; height: 18px; border-radius: 50%; background: rgba(43,35,23,.15); filter: blur(9px); transform: translateX(-50%) scaleX(var(--body-x)); opacity: .62; transition: transform 260ms ease, opacity 260ms ease; }
.movo-stage { transform-origin: 120px 94px; }
.movo-body { fill: var(--surface); stroke: var(--ink); stroke-width: 4; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; transform: translateY(var(--body-shift)) rotate(var(--body-rotate)) scale(var(--body-x), var(--body-y)); transition: transform 270ms cubic-bezier(.2,.78,.25,1), fill 220ms ease; filter: drop-shadow(0 13px 15px rgba(43,35,23,.08)); }
.movo-eye { fill: var(--ink); transform-box: fill-box; transform-origin: center; transform: translateY(var(--eye-shift)) scaleY(var(--eye-y)); transition: transform 250ms cubic-bezier(.2,.78,.25,1), opacity 180ms ease; }
.movo-mouth { fill: var(--ink); opacity: var(--mouth-opacity); transform-box: fill-box; transform-origin: center top; transform: translateY(-2px) scale(.82, var(--mouth-y)); transition: opacity 180ms ease, transform 250ms cubic-bezier(.2,.78,.25,1); }
.movo-lens-rim { fill: var(--surface); stroke: var(--ink); stroke-width: 4; opacity: var(--lens-opacity); transition: opacity 190ms ease; }
.movo-lens { fill: var(--ink); opacity: var(--lens-opacity); transition: opacity 190ms ease; }
.movo-lens-highlight { fill: var(--surface); opacity: var(--lens-opacity); transition: opacity 190ms ease; }
.movo-accent { color: var(--accent); opacity: var(--accent-opacity); transition: opacity 180ms ease; }
.movo-tongue, .movo-record-dot { fill: currentColor; opacity: 0; transition: opacity 180ms ease; }
.movo-voice-mark { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; opacity: 0; }
.movo-agent[data-movo-state="listening"] .movo-tongue,
.movo-agent[data-movo-state="listening"] .movo-voice-mark { opacity: 1; }
.movo-agent[data-movo-state="seeing"] .movo-record-dot { opacity: 1; }
.movo-agent[data-movo-state="seeing"] .movo-eye-right,
.movo-agent[data-movo-state="camera-candidate"] .movo-eye-right { opacity: calc(1 - var(--lens-opacity)); }
.movo-agent[data-movo-state="flat"] .movo-eye,
.movo-agent[data-movo-state="upload-candidate"] .movo-eye { transform: translateY(var(--eye-shift)) scale(1.45, .25); }
.movo-agent[data-movo-state="uncertain"] .movo-eye-left { transform: translateY(var(--eye-shift)) rotate(13deg) scaleY(.66); }
.movo-agent[data-movo-state="uncertain"] .movo-eye-right { transform: translateY(var(--eye-shift)) rotate(-13deg) scaleY(.66); }
.movo-agent[data-movo-state="calibrating"] .movo-stage { animation: movo-breathe 1600ms ease-in-out infinite; }
@keyframes movo-breathe { 50% { transform: translateY(-3px) scale(1.015); } }
.intent-kicker { margin: 0 0 9px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.intent-surface h2 { margin: 0; font-size: 32px; letter-spacing: -.045em; }
.intent-surface > p:not(.intent-kicker) { max-width: 390px; margin: 12px 0 22px; color: var(--muted); line-height: 1.5; }
.intent-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-bottom: 18px; }
.sensor-readout { width: min(100%, 410px); margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.sensor-readout > div { display: grid; grid-template-columns: 64px 1fr 26px; gap: 10px; align-items: center; margin: 8px 0; font-size: 12px; text-align: left; }
.sensor-readout meter { width: 100%; accent-color: var(--blue); }
.sensor-readout output { color: var(--blue); font-weight: 800; text-align: right; }
.sensor-readout p { margin: 12px 0 0; color: var(--muted); font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.drop-zone.compact { min-height: 78px; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 12px 18px; border-radius: 18px; }
.drop-zone.compact .drop-icon { width: 42px; height: 42px; flex: 0 0 auto; margin: 0; border-radius: 13px; }
.drop-zone.compact > span:last-child { display: grid; gap: 3px; margin: 0; text-align: left; }
.drop-zone.compact strong { font-size: 15px; }
.drop-zone.compact small { color: var(--muted); font-size: 12px; }

.sample-row { grid-column: 2; margin-top: -78px; display: flex; flex-direction: column; gap: 13px; }
.sample-card {
  width: 100%;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(31, 53, 96, 0.07);
  text-align: left;
  cursor: pointer;
}
.sample-card:hover { border-color: var(--blue); }
.sample-card img { width: 54px; height: 54px; border-radius: 11px; object-fit: cover; }
.sample-card span:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.sample-card small { color: var(--card-mode, var(--blue)); font-size: 10px; font-weight: 800; letter-spacing: 0.11em; }
.sample-card strong { font-size: 15px; }
.sample-arrow { padding-right: 9px; color: var(--blue); font-size: 22px; }
.sample-card.mode-camera { --card-mode: var(--ink); }
.sample-card.mode-speak { --card-mode: var(--accent); }
.sample-card.mode-upload { --card-mode: #806743; }
.sample-mode-icon { width: 54px; height: 54px; display: grid !important; place-items: center; border-radius: 11px; color: var(--card-mode); background: color-mix(in srgb, var(--card-mode) 10%, white); font-size: 25px; }
.text-button, .quiet-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.text-button:hover, .quiet-button:hover { color: var(--blue); text-decoration-color: currentColor; }
.text-button { align-self: flex-start; margin-left: 6px; }

.workspace-view {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(500px, 1.22fr);
  gap: clamp(34px, 5vw, 68px);
  align-items: start;
}
.input-lineage { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 10px; margin-bottom: -14px; color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.input-lineage i { height: 1px; background: var(--line); }
.input-lineage span:first-child { padding: 7px 11px; border-radius: 99px; color: var(--input-color); background: var(--input-soft); }
.input-lineage strong { color: var(--ink); }
body[data-input-mode] .state-kicker, body[data-input-mode] .section-label { color: var(--input-color); }

.artifact-column { position: sticky; top: 28px; }
.artifact-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.artifact-heading-row .eyebrow { margin-bottom: 7px; }
.artifact-heading-row h2 { margin: 0; font-size: 20px; letter-spacing: -0.025em; }
.artifact-preview {
  min-height: 480px;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #e9e1d4;
}
.artifact-preview img, .artifact-preview object { display: block; width: 100%; max-height: 610px; object-fit: contain; border-radius: 12px; box-shadow: var(--shadow); }
.artifact-placeholder { max-width: 240px; color: var(--muted); font-size: 15px; line-height: 1.5; text-align: center; }
.artifact-meta { margin: 12px 3px 0; color: var(--muted); font-size: 13px; }

.agent-column { min-width: 0; }
.progress-rail { display: flex; align-items: center; gap: 10px; margin: 3px 0 28px; color: #8b857b; font-size: 12px; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.progress-rail i { flex: 1; height: 1px; background: var(--line); }
.progress-rail span.is-active { color: var(--blue); }
.progress-rail span.is-complete { color: var(--ink); }
.agent-panel { min-height: 560px; }

.state-intro { margin-bottom: 28px; }
.state-kicker { margin: 0 0 10px; color: var(--blue); font-size: 13px; font-weight: 750; }
.state-intro h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.04; letter-spacing: -0.05em; }
.state-intro > p:last-child { max-width: 630px; margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

.thinking-card, .section-card, .action-card, .clarification-card, .error-card, .receipt-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.thinking-card { padding: 26px; }
.thinking-mark { width: 36px; height: 36px; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.thinking-card h3 { margin: 22px 0 20px; font-size: 22px; }
.thinking-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.thinking-steps li { display: flex; align-items: center; gap: 12px; color: #a1a9b8; font-size: 15px; }
.thinking-steps li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #d8deea; }
.thinking-steps li.is-current { color: var(--ink); font-weight: 650; }
.thinking-steps li.is-current::before { background: var(--blue); box-shadow: 0 0 0 5px var(--blue-soft); }
.thinking-steps li.is-done { color: var(--green); }
.thinking-steps li.is-done::before { background: var(--green); }

.review-stack { display: grid; gap: 18px; }
.section-card { padding: 24px; }
.section-label { margin: 0 0 16px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.fact-title { margin: 0 0 7px; font-size: 28px; line-height: 1.12; letter-spacing: -0.035em; }
.fact-summary { margin: 0; color: var(--muted); font-size: 16px; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 22px; }
.fact { min-width: 0; padding-top: 13px; border-top: 1px solid var(--line); }
.fact small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.fact strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.evidence { display: inline-block; margin-top: 7px; color: var(--blue); font-size: 12px; }
.semantic-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 15px; padding-top: 5px; }
.semantic-fact small { text-transform: capitalize; }
.inference-row { display: flex; align-items: flex-start; gap: 13px; }
.inference-mark { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--blue); background: var(--blue-soft); font-weight: 800; }
.inference-row p { margin: 1px 0 0; font-size: 16px; line-height: 1.5; }
.inference-row small { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }

.plan-heading { margin: 14px 0 0; }
.plan-heading h3 { margin: 0; font-size: 27px; letter-spacing: -0.035em; }
.plan-heading p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.action-card { overflow: hidden; }
.action-card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.action-title { display: flex; align-items: center; gap: 12px; }
.action-symbol { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--blue); background: var(--blue-soft); }
.action-symbol svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.action-title h4 { margin: 0; font-size: 17px; }
.action-title small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.toggle { position: relative; width: 42px; height: 24px; flex: 0 0 auto; }
.toggle input { position: absolute; opacity: 0; }
.toggle span { position: absolute; inset: 0; border-radius: 99px; background: #c7cfdd; cursor: pointer; transition: background 150ms; }
.toggle span::after { content: ""; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: transform 150ms; }
.toggle input:checked + span { background: var(--blue); }
.toggle input:checked + span::after { transform: translateX(18px); }
.action-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--muted); font-size: 13px; font-weight: 650; }
.field input, .field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
}
.field textarea { width: 100%; padding: 12px; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--ink); background: var(--paper); font: inherit; resize: vertical; }
.context-preview { width: min(100%, 330px); padding: 28px; border-radius: 18px; background: white; box-shadow: var(--shadow); }
.context-preview span { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.context-preview h3 { margin: 18px 0 8px; font-size: 42px; letter-spacing: -.05em; }
.context-preview p { margin: 14px 0 0; font-size: 18px; line-height: 1.5; }
.field input:disabled, .field select:disabled { color: #8f98a8; background: #f2f4f8; }
.field-error { color: var(--red); font-size: 12px; }
.action-footnote { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 13px; }
.action-footnote::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.confirmation-bar { position: sticky; bottom: max(16px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; padding: 16px 18px 16px 21px; border: 1px solid rgba(43,35,23,.14); border-radius: 18px; background: rgba(251,247,238,.94); box-shadow: var(--shadow-object); backdrop-filter: blur(12px); }
.confirmation-bar p { margin: 0; font-size: 14px; line-height: 1.4; }
.confirmation-bar p strong { display: block; margin-bottom: 3px; }
.primary-button, .secondary-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
.primary-button { border: 1px solid var(--ink); color: var(--surface); background: var(--ink); box-shadow: 0 8px 18px rgba(43,35,23,.16); }
.primary-button:hover { background: var(--blue-deep); }
.primary-button:disabled { border-color: #aeb8c8; background: #aeb8c8; box-shadow: none; cursor: not-allowed; }
.secondary-button { border: 1px solid var(--line-strong); color: var(--ink); background: var(--paper); }
.secondary-button:hover { border-color: var(--blue); color: var(--blue); }

.clarification-card, .error-card, .receipt-card { padding: 28px; }
.clarification-card { border-color: #edcba0; background: #fffaf3; }
.error-card { border-color: #efc8c4; background: var(--red-soft); }
.clarification-card h3, .error-card h3, .receipt-card h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -0.03em; }
.clarification-card p, .error-card p, .receipt-card > p { margin: 0; color: var(--muted); line-height: 1.55; }
.choice-stack { display: grid; gap: 10px; margin-top: 22px; }
.choice-button { padding: 14px 16px; border: 1px solid #dec49e; border-radius: 12px; color: var(--ink); background: white; text-align: left; font-weight: 650; cursor: pointer; }
.choice-button:hover { border-color: var(--blue); color: var(--blue); }
.clarification-field { margin-top: 22px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.debug-panel {
  position: fixed;
  z-index: 20;
  right: 16px;
  bottom: 16px;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid #243453;
  border-radius: 15px;
  color: #e9eef8;
  background: #111a2b;
  box-shadow: 0 18px 54px rgba(12, 20, 36, .32);
  font-size: 13px;
}
.debug-panel summary { position: sticky; top: 0; padding: 14px 16px; background: #111a2b; cursor: pointer; font-weight: 750; }
.debug-panel summary span { float: right; color: #8fa8d9; font-weight: 500; }
.debug-content { display: grid; gap: 16px; padding: 0 16px 16px; }
.debug-content h3 { margin: 0 0 8px; color: #9db6e8; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.debug-content pre { max-height: 280px; overflow: auto; margin: 0; padding: 12px; border-radius: 9px; background: #0a1120; font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.debug-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.debug-meta div { padding: 9px; border-radius: 9px; background: #18243a; }
.debug-meta dt { color: #8fa0bc; font-size: 10px; text-transform: uppercase; }
.debug-meta dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.evaluation-capture { display: grid; gap: 10px; }
.evaluation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.evaluation-capture label { display: grid; gap: 5px; color: #b9c7de; font-size: 11px; }
.evaluation-capture select, .evaluation-capture textarea { width: 100%; padding: 8px; border: 1px solid #3b4e70; border-radius: 8px; color: #f5f7fb; background: #18243a; font: inherit; }
.evaluation-capture .secondary-button { width: fit-content; min-height: 38px; color: #eef3ff; border-color: #526789; background: #18243a; }
.debug-copy-status { color: #9adbb5; }

.executing-card { min-height: 330px; display: grid; place-items: center; text-align: center; }
.executing-card .thinking-mark { margin: 0 auto 22px; }
.executing-card h2 { margin: 0; font-size: 34px; letter-spacing: -0.04em; }
.executing-card p { margin: 10px 0 0; color: var(--muted); }

.completion-mark { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 18px; color: var(--green); background: var(--green-soft); }
.check-icon { width: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.receipt-list { display: grid; gap: 12px; margin-top: 24px; }
.receipt-item { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.receipt-item .mini-check { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: var(--green-soft); font-weight: 800; }
.receipt-item strong { display: block; font-size: 15px; }
.receipt-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.truth-note { margin-top: 16px !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }

@media (max-width: 850px) {
  .empty-view { grid-template-columns: 1fr; gap: 36px; align-items: start; min-height: 0; }
  .sample-row { grid-column: 1; margin-top: -12px; }
  .drop-zone { min-height: 260px; }
  .intent-surface { min-height: 460px; }
  .workspace-view { grid-template-columns: 1fr; }
  .artifact-column { position: static; }
  .artifact-preview { min-height: 330px; max-height: 480px; }
}

@media (max-width: 560px) {
  .topbar { height: 64px; padding: 0 20px; }
  .app-shell { width: min(100% - 28px, 1180px); padding-top: 20px; }
  h1 { font-size: 49px; }
  .empty-view { gap: 28px; }
  .drop-zone { min-height: 230px; border-radius: 22px; }
  .drop-zone.compact { min-height: 74px; border-radius: 17px; }
  .intent-surface { min-height: 440px; padding: 24px 18px; border-radius: 24px; }
  .intent-surface h2 { font-size: 29px; }
  .workspace-view { gap: 28px; }
  .artifact-preview { min-height: 290px; padding: 14px; }
  .progress-rail { margin-bottom: 22px; }
  .fact-grid, .action-fields { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .confirmation-bar { align-items: stretch; flex-direction: column; }
  .primary-button, .secondary-button { width: 100%; }
}

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

/* Mobile-first intent surface */
body { background: var(--canvas); }
.topbar {
  height: 58px;
  padding: 0 18px;
  background: rgba(245,241,232,.9);
  backdrop-filter: blur(18px);
}
.wordmark img { width: 70px; height: 23px; }
.permission-status {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: var(--paper);
  font-size: 12px;
  font-weight: 700;
}
.permission-status.is-ready { color: var(--green); border-color: #bcdccd; background: var(--green-soft); }
.app-shell { width: min(100% - 28px, 560px); padding: 8px 0 36px; }
.empty-view { display: block; min-height: auto; }
.intent-column { gap: 12px; }
.intent-surface {
  min-height: calc(100svh - 170px);
  padding: 24px 18px;
  border: 0;
  border-radius: 28px;
  box-shadow: var(--shadow-object);
}
.movo-agent { width: 196px; height: 132px; margin-bottom: 30px; }
.intent-kicker { font-size: 12px; }
.intent-surface h1 { margin: 0; font-size: clamp(36px, 10vw, 50px); line-height: 1.02; letter-spacing: -.055em; }
.intent-surface > p:not(.intent-kicker) { max-width: 330px; margin: 14px 0 25px; font-size: 16px; }
.intent-surface .primary-button { width: min(100%, 280px); min-height: 52px; border-radius: 15px; font-size: 16px; }
.activity-status { min-height: 20px; margin: 12px 0 0 !important; color: var(--muted); font-size: 13px !important; }
.mode-dock { width: min(100%, 330px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.mode-dock button { min-height: 62px; display: grid; place-items: center; gap: 3px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: var(--paper); font-size: 12px; font-weight: 700; }
.mode-dock button span { color: var(--accent); font-size: 21px; line-height: 1; }
.intent-actions { width: 100%; max-width: 280px; display: grid; }
.intent-actions .secondary-button { width: 100%; }
.sensor-readout { width: min(100%, 360px); margin-top: 22px; padding-top: 0; border: 0; }
.sensor-readout summary { color: var(--muted); font-size: 13px; cursor: pointer; }
.sensor-metrics { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--ground); }
.sensor-metrics > div { display: grid; grid-template-columns: 58px 1fr 22px; gap: 8px; align-items: center; margin: 7px 0; font-size: 12px; text-align: left; }
.sensor-metrics meter { width: 100%; accent-color: var(--blue); }
.sensor-metrics output { color: var(--blue); font-weight: 800; text-align: right; }
.sensor-metrics p { margin: 10px 0 0; color: var(--muted); font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.drop-zone.compact { min-height: 68px; border-style: solid; background: rgba(251,247,238,.55); }
.sample-row { display: flex; grid-column: auto; margin: 12px 0 0; gap: 9px; }
.sample-card { box-shadow: none; background: transparent; }
.text-button { align-self: center; margin: 0; }
.sample-row { flex-direction: row; flex-wrap: wrap; justify-content: center; }
.action-samples-card > p:not(.intent-kicker):not(.privacy-note) { margin-bottom: 18px; }
.outcome-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.outcome-grid a, .outcome-grid button { min-height: 82px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 5px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: var(--ground); text-align: left; text-decoration: none; cursor: pointer; }
.outcome-grid a:active, .outcome-grid button:active { border-color: var(--blue); background: var(--blue-soft); }
.outcome-grid span { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.outcome-grid strong { font-size: 14px; line-height: 1.25; }
.action-samples-card > .quiet-button { margin-top: 16px; }

.setup-sheet {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  padding: 12px;
  background: rgba(14,14,13,.48);
  backdrop-filter: blur(12px);
}
.setup-card {
  width: min(480px, calc(100vw - 24px));
  min-width: 0;
  margin: 0 auto;
  padding: 28px 22px 20px;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(43,35,23,.3);
}
.setup-card h2 { margin: 0; font-size: 31px; line-height: 1.06; letter-spacing: -.045em; }
.setup-card > p:not(.intent-kicker):not(.privacy-note) { margin: 14px 0 22px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.permission-list { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.permission-list li { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 12px; border-radius: 15px; background: var(--ground); }
.permission-list li > img { grid-row: 1 / 3; display: block; width: 40px; height: 40px; object-fit: contain; }
.permission-list strong { align-self: end; font-size: 15px; }
.permission-list small { align-self: start; color: var(--muted); font-size: 12px; }
.setup-card .primary-button { width: 100%; min-height: 52px; font-size: 16px; }
.setup-card .quiet-button { display: block; margin: 12px auto 0; }
.privacy-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.setup-feedback { min-height: 20px; margin: 10px 0 0; color: var(--red); font-size: 13px; text-align: center; }
.desktop-gate {
  z-index: 100;
  align-items: center;
  padding: 24px;
  background: rgba(19,33,60,.18);
  -webkit-backdrop-filter: blur(18px) saturate(.82);
  backdrop-filter: blur(18px) saturate(.82);
}
.desktop-gate .intent-kicker { color: var(--accent); }
.desktop-gate .setup-card {
  --desktop-feedback-gap: 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 30px 24px var(--desktop-feedback-gap);
}
.desktop-gate .setup-card > #desktop-gate-description { margin: 14px 0 4px; }
.desktop-spirit-stage {
  width: 100%;
  height: 172px;
  display: grid;
  flex: 0 0 172px;
  place-items: center;
  margin: 0 0 18px;
  overflow: hidden;
}
.desktop-spirit-stage .movo-agent {
  width: 224px;
  height: 172px;
  margin: 0;
  animation: movo-desktop-hover 2400ms ease-in-out infinite;
}
.desktop-spirit-stage .movo-form {
  transition: opacity 280ms ease, transform 360ms cubic-bezier(.2,.78,.25,1) !important;
}
.desktop-gate .primary-button { margin: 0; }
.desktop-gate .setup-card > .desktop-copy-feedback {
  min-height: 19px;
  margin: var(--desktop-feedback-gap) 0 0;
  color: var(--green);
  font-size: 13px;
  line-height: 1.4;
}
@keyframes movo-desktop-hover {
  0%, 100% { transform: translateY(1px) rotate(-.35deg); }
  50% { transform: translateY(-4px) rotate(.35deg); }
}
body.desktop-gated { overflow: hidden; }
body.desktop-gated > :not(#desktop-gate):not(script):not(template) { pointer-events: none; user-select: none; }
@media (hover: hover) and (pointer: fine) {
  #desktop-gate[hidden] { display: grid !important; }
}

@media (max-height: 620px) and (hover: hover) and (pointer: fine) {
  .desktop-gate .setup-card { --desktop-feedback-gap: 14px; padding-top: 24px; }
  .desktop-spirit-stage { height: 132px; flex-basis: 132px; margin-bottom: 14px; }
  .desktop-spirit-stage .movo-agent { width: 190px; height: 132px; }
}

.media-layer { position: fixed; z-index: 45; inset: 0; overflow: hidden; color: white; background: #0e0e0d; }
.media-layer video { width: 100%; height: 100%; object-fit: cover; }
.media-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 36px 22px max(34px, env(safe-area-inset-bottom)); text-align: center; background: linear-gradient(transparent 44%, rgba(4,10,20,.84)); }
.media-overlay h2 { margin: 0; font-size: 38px; letter-spacing: -.045em; }
.media-overlay > p:not(.intent-kicker) { margin: 10px 0 22px; color: rgba(255,255,255,.76); }
.media-layer .intent-kicker { color: #ff987f; }
.media-cancel { min-width: 120px; min-height: 48px; border: 1px solid rgba(255,255,255,.45); border-radius: 99px; color: white; background: rgba(0,0,0,.3); font-weight: 750; }
.capture-countdown { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 80px; font-weight: 750; text-shadow: 0 3px 18px rgba(0,0,0,.5); }
.speech-transcript { width: min(100%, 560px); max-height: 34vh; overflow: auto; margin: 0 0 22px; padding: 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; background: rgba(0,0,0,.24); font-size: clamp(22px, 7vw, 34px); line-height: 1.24; font-weight: 650; }
.capture-button { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 18px; padding: 0; border: 3px solid white; border-radius: 50%; background: rgba(0,0,0,.18); }
.capture-button span { width: 56px; height: 56px; border-radius: 50%; background: white; }
.media-primary-button { width: min(100%, 280px); margin-bottom: 14px; }
.voice-wave { height: 68px; display: flex; align-items: center; gap: 7px; margin-bottom: 24px; }
.voice-wave i { width: 7px; height: 24px; border-radius: 99px; background: #fff; animation: voice 850ms ease-in-out infinite alternate; }
.voice-wave i:nth-child(2), .voice-wave i:nth-child(4) { animation-delay: -300ms; }
.voice-wave i:nth-child(3) { animation-delay: -550ms; }
@keyframes voice { to { height: 62px; opacity: .55; } }

@media (min-width: 700px) {
  .setup-sheet { align-items: center; }
  .app-shell { padding-top: 28px; }
  .intent-surface { min-height: 620px; }
}

@media (prefers-reduced-motion: reduce) {
  .movo-agent[data-movo-state="calibrating"] .movo-stage { animation: none; }
}

/* MOVO v18 — the supplied Figma spirit, animated by live sensor confidence. */
:root {
  --canvas: #fbf9f1;
  --surface: #fffdf8;
  --paper: #fffdf8;
  --ink: #111111;
  --muted: #716f66;
  --line: #ddd1bd;
  --line-strong: #cdbfa9;
  --accent: #e84f2e;
  --accent-strong: #bf3f2c;
  --accent-soft: #f8e2d9;
}

.topbar {
  height: 72px;
  padding: max(18px, env(safe-area-inset-top)) 28px 0;
  background: transparent;
  backdrop-filter: none;
}
.wordmark img { width: 70px; height: 23px; }
.permission-status { visibility: hidden; pointer-events: none; }

.app-shell { width: min(100% - 24px, 430px); padding: 0 0 max(22px, env(safe-area-inset-bottom)); }
.empty-view { min-height: calc(100svh - 72px); }
.intent-column { min-height: calc(100svh - 100px); display: flex; flex-direction: column; gap: 0; }
.intent-surface {
  min-height: 0;
  flex: 1 1 auto;
  justify-content: flex-start;
  padding: 54px 12px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.intent-surface h1 {
  order: 0;
  max-width: 360px;
  min-height: 1.03em;
  font-size: clamp(36px, 10vw, 44px);
  line-height: 1.03;
  letter-spacing: -.055em;
  color: #13213c;
}
@media (max-width: 360px) {
  .intent-surface h1 { min-height: 2.06em; }
}
.intent-surface h1.is-typewriting::after {
  content: "";
  display: inline-block;
  width: .075em;
  height: .78em;
  margin-left: .08em;
  border-radius: 99px;
  background: var(--accent);
  vertical-align: -.04em;
  animation: movo-type-cursor 820ms steps(1, end) infinite;
}
@keyframes movo-type-cursor { 50% { opacity: 0; } }
.intent-surface .movo-agent { order: 1; margin: clamp(42px, 10svh, 92px) 0 auto; }
.intent-surface .intent-kicker { order: 2; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.intent-surface #intent-detail { order: 3; max-width: 300px; margin: 0 0 10px; font-size: 14px; }
.intent-surface #motion-button { order: 4; }
.intent-surface #activity-status { order: 5; }
.intent-surface #recalibrate-button { order: 6; }
.intent-surface #mode-dock { order: 7; }
.intent-surface #intent-actions { order: 8; }
.intent-surface #sensor-readout { order: 9; }
.intent-surface[data-intent="neutral"] #intent-detail { opacity: .66; }

.movo-agent {
  --rest-opacity: 1;
  --speak-opacity: 0;
  --listening-opacity: 0;
  --camera-opacity: 0;
  --flat-opacity: 0;
  --uncertain-opacity: 0;
  --movo-progress: 0;
  --movo-energy: 0;
  --movo-scale: 1;
  --movo-stretch-y: 1;
  --presence-scale: .88;
  --presence-opacity: .08;
  --movo-tilt: 0deg;
  --movo-drift-x: 0px;
  position: relative;
  width: 240px;
  height: 260px;
  display: grid;
  place-items: center;
  isolation: isolate;
  transform: translateX(var(--movo-drift-x)) rotate(var(--movo-tilt)) scale(var(--movo-scale), var(--movo-stretch-y));
  transform-origin: 50% 62%;
  transition: transform 90ms linear;
}
.movo-form {
  position: absolute;
  inset: 0;
  display: block;
  will-change: opacity, transform, filter;
  filter: contrast(1.08) drop-shadow(0 14px 18px rgba(65,52,36,.22));
  transition: opacity 180ms linear, transform 260ms cubic-bezier(.2,.78,.25,1), filter 220ms ease;
}
.movo-form svg { width: 100%; height: 100%; overflow: visible; }
.movo-form--rest { opacity: var(--rest-opacity); }
.movo-form--speak { opacity: var(--speak-opacity); transform: scale(.98); }
.movo-form--listening { opacity: var(--listening-opacity); }
.movo-form--camera { opacity: var(--camera-opacity); transform: translateX(2px) scale(.99); }
.movo-form--flat { opacity: var(--flat-opacity); transform: scale(.99); }
.movo-form--uncertain { opacity: var(--uncertain-opacity); }
.movo-presence {
  position: absolute;
  z-index: -1;
  width: 136px;
  height: 78px;
  border-radius: 50%;
  opacity: max(.22, var(--presence-opacity));
  background: radial-gradient(ellipse, rgba(80,62,41,.28), rgba(232,79,46,.10) 44%, transparent 72%);
  filter: blur(16px);
  transform: translateY(20px) scale(var(--presence-scale));
  transition: opacity 180ms ease, transform 180ms ease;
}
.movo-agent[data-movo-state="calibrating"] .movo-form--rest,
.movo-agent.is-processing .movo-form { animation: movo-float 1450ms ease-in-out infinite; }
.movo-agent[data-movo-state="listening"] .movo-form--listening { animation: movo-listen 780ms ease-in-out infinite alternate; }
.movo-agent[data-movo-state="seeing"] .movo-form--camera { animation: movo-focus 1050ms ease-in-out infinite; }
.movo-agent[data-movo-state="uncertain"] .movo-form--uncertain { animation: movo-question 1600ms ease-in-out infinite; }
@keyframes movo-float { 50% { transform: translateY(-5px) scale(1.018); } }
@keyframes movo-listen { to { transform: scale(.985, 1.025); filter: contrast(1.08) drop-shadow(0 0 20px rgba(255,253,248,.40)); } }
@keyframes movo-focus { 50% { transform: scale(.975); filter: contrast(1.08) drop-shadow(0 8px 20px rgba(232,79,46,.30)); } }
@keyframes movo-question { 50% { transform: translateY(-4px); } }

.drop-zone.compact {
  min-height: 68px;
  margin-bottom: max(8px, env(safe-area-inset-bottom));
  border-color: #ddd1bd;
  background: rgba(255,253,248,.62);
}
.sample-row { margin: 10px 0 0; }
#mode-dock, .sensor-readout { display: none !important; }
.debug-mode #mode-dock:not([hidden]) { display: grid !important; margin-top: 10px; }
.debug-mode .sensor-readout:not([hidden]) { display: block !important; margin-top: 10px; }

.agent-column > .movo-agent--compact {
  width: 92px;
  height: 98px;
  margin: -10px auto 2px;
}
.agent-column > .movo-agent--compact .movo-presence { width: 68px; height: 40px; }

.media-overlay {
  justify-content: flex-start;
  padding: max(92px, calc(env(safe-area-inset-top) + 54px)) 22px max(28px, env(safe-area-inset-bottom));
  background: linear-gradient(rgba(14,14,13,.68), rgba(14,14,13,.12) 44%, rgba(14,14,13,.82));
}
.media-overlay h2 { font-size: 38px; }
.movo-agent--media { width: 190px; height: 210px; margin: 30px 0 8px; }
.media-overlay > #media-detail { margin: 0 0 18px; }
.speech-transcript { margin-top: auto; font-size: 18px; font-weight: 500; }
.voice-wave { height: 44px; margin-bottom: 16px; }
.media-cancel { margin-top: 2px; }
.media-layer:not(:has(video:not([hidden]))) .media-overlay { background: #141414; }

@media (min-width: 700px) {
  .app-shell { padding-top: 0; }
  .intent-surface { min-height: 0; }
}

@media (max-height: 720px) {
  .intent-surface { padding-top: 26px; }
  .intent-surface .movo-agent { margin-top: 22px; width: 210px; height: 210px; }
  .movo-agent--media { width: 160px; height: 168px; margin-top: 12px; }
}

/* MOVO v21 — Figma-first proposals and continuous intent confirmation. */
.intent-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.intent-surface::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2px;
  border-radius: inherit;
  background: #f1c9b8;
  opacity: calc(var(--intent-progress, 0) * .72);
  transition: opacity 90ms linear;
}
.intent-surface > * { position: relative; z-index: 1; }
.intent-surface .movo-agent { margin: clamp(42px, 10svh, 92px) 0 12px; }

.intent-progress {
  order: 2;
  width: min(100%, 250px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto auto;
  color: #4d463f;
}
.intent-progress[hidden] { display: none !important; }
.intent-progress-ring { width: 44px; height: 44px; flex: 0 0 auto; transform: rotate(-90deg); }
.intent-progress-ring circle { fill: none; stroke-width: 3; }
.intent-progress-track { stroke: rgba(17,17,17,.16); }
.intent-progress-value {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 70ms linear;
}
.intent-progress p { margin: 0 !important; font-size: 13px !important; font-weight: 700; line-height: 1.25; text-align: left; }
.intent-surface .intent-kicker { order: 3; }
.intent-surface #intent-detail { order: 4; }
.intent-surface #motion-button { order: 5; }
.intent-surface #activity-status { order: 6; }
.intent-surface #recalibrate-button { order: 7; }
.intent-surface #mode-dock { order: 8; }
.intent-surface #intent-actions { order: 9; }
.intent-surface #sensor-readout { order: 10; }

.movo-form--speak path:last-of-type {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(.88, var(--candidate-mouth-scale));
  transition: transform 90ms linear;
}
.movo-form--camera circle:nth-of-type(1),
.movo-form--camera circle:nth-of-type(2),
.movo-form--camera circle:nth-of-type(3) {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(var(--candidate-lens-scale));
  transition: transform 90ms linear;
}
.movo-form--flat {
  transform: scale(1, var(--candidate-flat-scale));
  transform-origin: 50% 62%;
}

/* The prototype now follows the compact 402 px Figma proposal screens. */
.workspace-view { display: block; width: 100%; }
.input-lineage,
.artifact-column,
.progress-rail { display: none; }
.agent-column { width: 100%; }
.agent-panel { min-height: 0; }
.agent-column > .movo-agent--compact { display: none; }
body[data-state="ingesting"] .agent-column > .movo-agent--compact,
body[data-state="analyzing"] .agent-column > .movo-agent--compact,
body[data-state="needs_clarification"] .agent-column > .movo-agent--compact,
body[data-state="executing"] .agent-column > .movo-agent--compact {
  width: 172px;
  height: 184px;
  display: grid;
  margin: 52px auto 14px;
}

.proposal-screen {
  --input-color: var(--accent);
  --input-soft: var(--accent-soft);
  padding: 20px 12px 34px;
}
.proposal-channel {
  width: fit-content;
  margin: 0 0 18px 4px;
  padding: 7px 11px;
  border-radius: 99px;
  color: var(--input-color);
  background: var(--input-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.proposal-intro { margin: 0 4px 30px; }
.proposal-intro .state-kicker { margin-bottom: 10px; font-size: 12px; letter-spacing: .07em; }
.proposal-intro h2 { max-width: 345px; font-size: 34px; line-height: 1.04; letter-spacing: -.045em; }
.proposal-intro > p:last-child { max-width: 340px; margin-top: 12px; font-size: 14px; line-height: 1.45; }

.proposal-card {
  border-radius: 18px;
  border-color: #ddd1bd;
  background: #fffdf8;
  box-shadow: 0 16px 38px rgba(76,58,35,.07);
}
.proposal-card .action-card-header { min-height: 70px; padding: 15px 17px; }
.proposal-card .action-symbol { width: 38px; height: 38px; flex: 0 0 auto; color: var(--input-color); background: var(--input-soft); }
.proposal-card .action-title { gap: 12px; }
.proposal-card .action-title h4 { font-size: 16px; }
.proposal-card .action-title small { font-size: 11px; }
.proposal-fields { display: grid; }
.proposal-fields > .field,
.proposal-when > .field { gap: 3px; padding: 13px 17px; border-bottom: 1px solid var(--line); }
.proposal-fields .field label,
.proposal-when .field label { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.proposal-fields .field input,
.proposal-when .field input {
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
}
.proposal-when { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.proposal-when .field:first-child { border-right: 1px solid var(--line); }
.proposal-details { border-bottom: 1px solid var(--line); }
.proposal-details summary { padding: 11px 17px; color: var(--muted); font-size: 12px; font-weight: 750; cursor: pointer; }
.proposal-detail-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 17px 16px; gap: 12px; }
.proposal-detail-fields .field { gap: 4px; }
.proposal-detail-fields .field label { font-size: 11px; }
.proposal-detail-fields .field input,
.proposal-detail-fields .field select,
.proposal-detail-fields .field textarea { min-height: 38px; padding: 8px 9px; font-size: 13px; }
.proposal-card .action-footnote { padding: 12px 17px 14px; color: var(--green); font-size: 11px; }

.proposal-confirmation {
  position: static;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
  padding: 17px;
  border-radius: 22px;
  background: #fffdf8;
  box-shadow: 0 18px 42px rgba(76,58,35,.10);
}
.proposal-confirmation p { font-size: 12px; }
.proposal-confirmation .primary-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 15px;
  color: #fffaf6;
  background: linear-gradient(180deg, #ef5a36 0%, #dc4628 100%);
  box-shadow: 0 8px 18px rgba(200,61,32,.24), 0 2px 5px rgba(43,35,23,.12);
}
.proposal-confirmation .primary-button:hover { background: linear-gradient(180deg, #e95331 0%, #cf3e22 100%); }
.proposal-confirmation .primary-button:active { transform: translateY(1px); box-shadow: 0 5px 12px rgba(200,61,32,.22); }
.proposal-confirmation > small { display: block; color: var(--muted); font-size: 11px; text-align: center; }

@media (min-width: 700px) {
  .workspace-view { width: 402px; margin: 0 auto; }
}

@media (max-height: 720px) {
  .intent-surface .movo-agent { margin-top: 20px; margin-bottom: 4px; }
  .intent-progress { margin-bottom: 10px; }
  .proposal-screen { padding-top: 8px; }
  .proposal-intro { margin-bottom: 18px; }
  .proposal-confirmation { margin-top: 16px; }
}

/* MOVO v22 — direct state changes, orbit progress, sleep and gesture undo. */
.intent-surface::before { display: none; }
.intent-orb-wrap {
  order: 1;
  position: relative;
  width: 300px;
  height: 300px;
  display: grid;
  place-items: center;
  margin: clamp(34px, 7svh, 68px) 0 auto;
}
.intent-surface .intent-orb-wrap .movo-agent {
  width: 240px;
  height: 260px;
  margin: 0;
}
.intent-progress {
  position: absolute;
  inset: 0;
  width: 300px;
  height: 300px;
  display: grid;
  place-items: center;
  margin: 0;
  pointer-events: none;
}
.intent-progress-ring { width: 300px; height: 300px; transform: rotate(-90deg); }
.intent-progress-ring circle { stroke-width: 2.5; }
.intent-progress p {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 250px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 12px !important;
  text-align: center;
}
.movo-form--speak path:last-of-type,
.movo-form--camera circle,
.movo-form--flat { transform: none; }
.movo-form { transition: none; }
.movo-agent { transition: none; }

.movo-agent[data-movo-state="sleeping"]::after {
  content: "z  z";
  position: absolute;
  top: 77px;
  right: 24px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
  animation: movo-sleep 1800ms ease-in-out infinite;
}
@keyframes movo-sleep { 50% { transform: translateY(-5px); opacity: .45; } }

#mode-dock.home-shortcuts:not([hidden]) {
  order: 8;
  width: auto;
  display: grid !important;
  grid-template-columns: repeat(2, 56px);
  gap: 12px;
  margin: 0 auto 6px;
}
#mode-dock.home-shortcuts button {
  width: 56px;
  min-height: 56px;
  display: grid;
  grid-template-rows: 24px auto;
  place-items: center;
  gap: 2px;
  padding: 7px 4px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255,253,248,.42);
  box-shadow: 0 7px 22px rgba(65,52,36,.05);
}
#mode-dock.home-shortcuts button span { color: currentColor; font-size: 21px; }
#mode-dock.home-shortcuts button small { font-size: 9px; font-weight: 700; line-height: 1; }
#mode-dock.home-shortcuts button:active { color: var(--accent); border-color: var(--accent); }
.drop-zone.compact,
.sample-row { display: none; }
.debug-mode .drop-zone.compact { display: flex; }
.debug-mode .sample-row { display: flex; }
.intent-surface #intent-detail,
.intent-surface #activity-status,
.intent-surface #recalibrate-button { display: none; }
.debug-mode .intent-surface #activity-status,
.debug-mode .intent-surface #recalibrate-button { display: block; }

.proposal-summary { display: grid; }
.proposal-summary > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
}
.proposal-summary small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.proposal-summary strong { min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.proposal-summary-split { grid-template-columns: 1.25fr .75fr; gap: 0 !important; padding: 0 !important; }
.proposal-summary-split > span { display: grid; gap: 5px; padding: 13px 17px; }
.proposal-summary-split > span:first-child { border-right: 1px solid var(--line); }
.proposal-detail-fields {
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, calc((100% - 12px) / 2)) !important;
  align-items: start;
  column-gap: 12px;
  row-gap: 12px;
}
.proposal-detail-fields > .field {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.proposal-detail-fields .field.full { grid-column: 1 / -1; }
.proposal-detail-fields .field input,
.proposal-detail-fields .field select,
.proposal-detail-fields .field textarea {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  margin: 0;
  padding: 10px 11px;
  border-radius: 11px;
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
}
.proposal-detail-fields .field input[type="date"],
.proposal-detail-fields .field input[type="time"] {
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
}
.proposal-detail-fields .field input[type="date"]::-webkit-date-and-time-value,
.proposal-detail-fields .field input[type="time"]::-webkit-date-and-time-value {
  min-width: 0;
  margin: 0;
  text-align: left;
}
.proposal-detail-fields .field select { padding-right: 30px; }
.proposal-detail-fields .field textarea {
  height: auto;
  min-height: 104px;
  max-height: none;
  line-height: 1.45;
}

@media (max-width: 360px) {
  .intent-orb-wrap,
  .intent-progress,
  .intent-progress-ring { width: 270px; height: 270px; }
  .intent-surface .intent-orb-wrap .movo-agent { width: 220px; height: 238px; }
  .proposal-detail-fields { grid-template-columns: 1fr !important; }
  .proposal-detail-fields .field.full { grid-column: auto; }
}

@media (orientation: landscape) {
  .media-layer[data-mode="camera"] .media-overlay {
    display: grid;
    grid-template-columns: minmax(190px, .72fr) minmax(180px, 1fr) 104px;
    grid-template-rows: auto 1fr auto;
    align-items: center;
    gap: 6px 18px;
    padding: max(22px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(34px, env(safe-area-inset-left));
    text-align: left;
    background: linear-gradient(90deg, rgba(5,7,8,.84), rgba(5,7,8,.18) 52%, rgba(5,7,8,.62));
  }
  .media-layer[data-mode="camera"] #media-kicker { grid-column: 1; grid-row: 1; align-self: end; margin: 0; }
  .media-layer[data-mode="camera"] #media-title { grid-column: 1; grid-row: 2; align-self: start; font-size: clamp(30px, 6vw, 48px); }
  .media-layer[data-mode="camera"] #media-spirit { grid-column: 2; grid-row: 1 / 4; width: 190px; height: 170px; margin: 0 auto; }
  .media-layer[data-mode="camera"] #media-detail { grid-column: 1; grid-row: 3; margin: 0; font-size: 13px; }
  .media-layer[data-mode="camera"] #capture-countdown { position: static; grid-column: 3; grid-row: 1 / 3; transform: none; text-align: center; }
  .media-layer[data-mode="camera"] #capture-button { grid-column: 3; grid-row: 2; align-self: end; justify-self: center; margin: 0; }
  .media-layer[data-mode="camera"] #stop-media-button { grid-column: 3; grid-row: 3; min-width: 96px; }
}

/* MOVO v23 — Figma-exported mid states, exact compact controls and commitment ring. */
.movo-agent {
  --mid-raise-opacity: 0;
  --mid-seeing-opacity: 0;
  --mid-laying-opacity: 0;
  --sleeping-opacity: 0;
}
.movo-form {
  display: grid;
  place-items: center;
  filter: none;
  transition: none !important;
}
.movo-form > img:first-child {
  display: block;
  max-width: none;
  object-fit: fill;
}
.movo-form--rest { opacity: var(--rest-opacity); }
.movo-form--rest > img { width: 66.283%; height: 50.518%; }
.movo-form--mid-raise { opacity: var(--mid-raise-opacity); }
.movo-form--mid-raise > img,
.movo-form--listening > img { width: 50.502%; height: 89.918%; }
.movo-form--listening { opacity: var(--listening-opacity); }
.movo-form--mid-seeing { opacity: var(--mid-seeing-opacity); }
.movo-form--mid-seeing > img,
.movo-form--camera > img { width: 74.621%; height: 59.01%; }
.movo-form--camera { opacity: var(--camera-opacity); }
.movo-form--mid-laying { opacity: var(--mid-laying-opacity); }
.movo-form--mid-laying > img { width: 76.544%; height: 51.331%; }
.movo-form--sleeping { opacity: var(--sleeping-opacity); }
.movo-form--sleeping > img { width: 76.417%; height: 35.625%; }
.movo-form--uncertain { opacity: var(--uncertain-opacity); }
.movo-form--uncertain > img:first-child { width: 66.283%; height: 50.518%; transform: translateY(4.286%); }
.movo-question-cue { position: absolute; top: 22.857%; right: 18%; width: 6%; height: 6.429%; }
.movo-presence { display: none; }

.intent-orb-wrap {
  width: 300px;
  height: 280px;
  margin: clamp(42px, 8svh, 74px) 0 auto;
}
.intent-surface .intent-orb-wrap .movo-agent {
  width: 300px;
  height: 280px;
}
.intent-progress {
  inset: 0 10px;
  width: 280px;
  height: 280px;
}
.intent-progress-ring { width: 280px; height: 280px; }
.intent-progress-ring circle { fill: none; stroke-width: 16; }
.intent-progress-track { stroke: #f2e6de; }
.intent-progress-value {
  stroke: url(#intent-progress-gradient);
  stroke-linecap: butt;
  transition: stroke-dashoffset 55ms linear;
}
.intent-progress p {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

#mode-dock.home-shortcuts:not([hidden]) {
  width: 102px;
  grid-template-columns: repeat(2, 46px);
  gap: 10px;
  margin: 15px auto max(6px, env(safe-area-inset-bottom));
}
#mode-dock.home-shortcuts button {
  width: 46px;
  height: 46px;
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: #776f64;
  background: transparent;
  box-shadow: none;
}
#mode-dock.home-shortcuts button svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-height: 720px) {
  .intent-orb-wrap { width: 252px; height: 235px; margin-top: 18px; }
  .intent-surface .intent-orb-wrap .movo-agent { width: 252px; height: 235px; }
  .intent-progress { inset: 0 8px; width: 235px; height: 235px; }
  .intent-progress-ring { width: 235px; height: 235px; }
}

/* MOVO v24 — homepage-only capability play and physical camera orientation. */
.intent-orb-wrap .movo-agent.is-home-idle {
  animation: movo-home-hover 4.8s ease-in-out infinite;
}
.movo-agent.is-home-idle .movo-form--rest {
  animation: movo-home-rest 16s ease-in-out infinite both;
}
.movo-agent.is-home-idle .movo-form--mid-raise {
  animation: movo-home-mid-raise 16s ease-in-out infinite both;
}
.movo-agent.is-home-idle .movo-form--listening {
  animation: movo-home-listening 16s ease-in-out infinite both;
}
.movo-agent.is-home-idle .movo-form--mid-seeing {
  animation: movo-home-mid-seeing 16s ease-in-out infinite both;
}
.movo-agent.is-home-idle .movo-form--camera {
  animation: movo-home-camera 16s ease-in-out infinite both;
}

@keyframes movo-home-hover {
  0%, 100% { transform: translateY(0) rotate(-.45deg); }
  50% { transform: translateY(-5px) rotate(.45deg); }
}
@keyframes movo-home-rest {
  0%, 18%, 38%, 56%, 76%, 100% { opacity: 1; transform: scale(1); }
  21%, 35%, 59%, 73% { opacity: 0; transform: scale(.97); }
}
@keyframes movo-home-mid-raise {
  0%, 18%, 22%, 33%, 37%, 100% { opacity: 0; transform: translateY(5px) scale(.96); }
  20%, 35% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes movo-home-listening {
  0%, 20%, 36%, 100% { opacity: 0; transform: scale(.94, .9); }
  23%, 33% { opacity: 1; transform: scale(1, 1.025); }
  27%, 30% { opacity: 1; transform: scale(.985, 1.045); }
}
@keyframes movo-home-mid-seeing {
  0%, 56%, 60%, 71%, 75%, 100% { opacity: 0; transform: translateX(-4px) scale(.96); }
  58%, 73% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes movo-home-camera {
  0%, 58%, 74%, 100% { opacity: 0; transform: scale(.92); }
  61%, 71% { opacity: 1; transform: scale(1); }
  65%, 68% { opacity: 1; transform: scale(1.018); }
}

.media-layer[data-mode="camera"][data-camera-orientation="native"] .media-overlay,
.media-layer[data-mode="camera"][data-camera-orientation="left"] .media-overlay,
.media-layer[data-mode="camera"][data-camera-orientation="right"] .media-overlay {
  inset: auto;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(150px, .72fr) minmax(150px, 1fr) 92px;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  gap: 6px 14px;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  text-align: left;
  background: linear-gradient(90deg, rgba(5,7,8,.84), rgba(5,7,8,.18) 52%, rgba(5,7,8,.62));
  transform: translate(-50%, -50%);
  transform-origin: center;
}
.media-layer[data-mode="camera"][data-camera-orientation="left"] .media-overlay,
.media-layer[data-mode="camera"][data-camera-orientation="right"] .media-overlay {
  width: 100svh;
  height: 100vw;
}
.media-layer[data-mode="camera"][data-camera-orientation="left"] .media-overlay {
  transform: translate(-50%, -50%) rotate(90deg);
}
.media-layer[data-mode="camera"][data-camera-orientation="right"] .media-overlay {
  transform: translate(-50%, -50%) rotate(-90deg);
}
.media-layer[data-mode="camera"] #media-spirit { display: none !important; }
.media-layer[data-mode="camera"][data-camera-orientation] #media-kicker { grid-column: 1; grid-row: 1; align-self: end; margin: 0; }
.media-layer[data-mode="camera"][data-camera-orientation] #media-title { grid-column: 1; grid-row: 2; align-self: start; font-size: clamp(28px, 6vw, 46px); }
.media-layer[data-mode="camera"][data-camera-orientation] #media-spirit { grid-column: 2; grid-row: 1 / 4; width: 178px; height: 160px; margin: 0 auto; }
.media-layer[data-mode="camera"][data-camera-orientation] #media-detail { grid-column: 1; grid-row: 3; margin: 0; font-size: 13px; }
.media-layer[data-mode="camera"][data-camera-orientation] #capture-countdown { position: static; grid-column: 3; grid-row: 1 / 3; transform: none; text-align: center; }
.media-layer[data-mode="camera"][data-camera-orientation] #capture-button { grid-column: 3; grid-row: 2; align-self: end; justify-self: center; margin: 0; }
.media-layer[data-mode="camera"][data-camera-orientation] #stop-media-button { grid-column: 3; grid-row: 3; min-width: 88px; }

@media (prefers-reduced-motion: reduce) {
  .intent-orb-wrap .movo-agent.is-home-idle,
  .movo-agent.is-home-idle .movo-form,
  .desktop-spirit-stage .movo-agent { animation: none !important; }
  .intent-surface h1.is-typewriting::after { display: none; }
}
