@font-face {
  font-family: Inter;
  src: url("./InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  font-family: Inter, system-ui, sans-serif;
  color-scheme: light;
  --canvas: #e8ede3;
  --surface: #fafbf7;
  --panel: #ffffff;
  --panel-soft: #fafbf7;
  --line: #dfe4dc;
  --line-strong: #c9d2c4;
  --text: #202820;
  --muted: #4d594f;
  --quiet: #667167;
  --accent: #617814;
  --accent-strong: #4f6412;
  --accent-soft: #eef5d2;
  --accent-text: #40500f;
  --success: #39765b;
  --success-soft: #e8f2ec;
  --warning: #95631c;
  --warning-soft: #f7f0e2;
  --shadow: 0 24px 70px rgba(40, 38, 30, .15);
  --focus: 0 0 0 3px rgba(97, 120, 20, .27);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--text); font-size: 15px; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: none; box-shadow: var(--focus); }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.prototype { min-height: 100vh; background: var(--canvas); color: var(--text); }
.prototype[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #1b1a20;
  --surface: #201f26;
  --panel: #24232b;
  --panel-soft: #2b2932;
  --line: #3b3943;
  --line-strong: #514e5b;
  --text: #f1eff6;
  --muted: #c0bec8;
  --quiet: #a5a2ad;
  --accent: #9b83ff;
  --accent-strong: #b09eff;
  --accent-soft: #342e4f;
  --accent-text: #d3c8ff;
  --success: #9bc8aa;
  --success-soft: #293a32;
  --warning: #e3bd79;
  --warning-soft: #3c3324;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
  --focus: 0 0 0 3px rgba(176, 158, 255, .33);
}

.prototype-header {
  min-height: 76px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 18px; font-weight: 700; }
.brand img, .mobile-brand img { display: block; object-fit: contain; }
.brand-divider { height: 24px; width: 1px; margin: 0 3px 0 8px; background: var(--line-strong); }
.brand-context { color: var(--muted); font-weight: 500; font-size: 14px; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.demo-label { display: inline-flex; gap: 8px; align-items: center; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.demo-dot, .viewport-dot, .caption-mark, .status-tag span, .live-dot, .sync-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--success); flex: 0 0 auto; }
.theme-button { min-height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; background: var(--panel); font-size: 13px; cursor: pointer; }
.theme-button .icon { width: 17px; height: 17px; color: var(--muted); }
.theme-button:hover, .screen-link:hover { border-color: var(--line-strong); background: var(--panel-soft); }

.workspace { width: min(1392px, calc(100% - 56px)); margin: 0 auto; padding: 36px 0 48px; display: grid; grid-template-columns: 245px minmax(410px, 1fr) 270px; gap: 34px; align-items: start; }
.screen-index { position: sticky; top: 24px; padding: 9px 0; }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .025em; }
.index-heading h1 { margin: 0; font-size: 26px; font-weight: 650; letter-spacing: -.04em; }
.index-heading > p:last-child { margin: 8px 0 23px; max-width: 220px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.screen-links { display: grid; gap: 6px; }
.screen-link { width: 100%; min-height: 61px; padding: 8px 10px; display: flex; align-items: center; gap: 11px; text-align: left; border: 1px solid transparent; border-radius: 9px; background: transparent; cursor: pointer; }
.screen-link.is-active { border-color: var(--line); background: var(--panel); box-shadow: 0 1px 2px rgba(0,0,0,.025); }
.step-no { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--panel-soft); color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.screen-link.is-active .step-no { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
.screen-link-copy { display: grid; gap: 3px; }
.screen-link-copy strong { font-size: 13px; font-weight: 600; }
.screen-link-copy small { color: var(--muted); font-size: 11px; }
.index-foot { margin-top: 23px; padding: 13px 11px 0; display: flex; gap: 9px; align-items: flex-start; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.5; }
.index-foot .icon { width: 17px; height: 17px; color: var(--accent); }

.preview-area { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.preview-heading { width: min(100%, 500px); margin: 0 auto 15px; display: flex; align-items: end; justify-content: space-between; }
.preview-heading .eyebrow { margin-bottom: 4px; }
.preview-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; font-weight: 650; }
.viewport-chip { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.viewport-dot { width: 6px; height: 6px; background: var(--accent); }
.phone-frame { width: min(100%, 410px); padding: 9px; position: relative; border: 1px solid #3e3c40; border-radius: 39px; background: #242327; box-shadow: var(--shadow); }
.phone-screen { height: min(820px, calc(100vh - 185px)); min-height: 650px; display: flex; flex-direction: column; overflow: hidden; position: relative; border-radius: 30px; background: var(--panel-soft); color: var(--text); }
.phone-status { position: relative; height: 34px; flex: 0 0 34px; padding: 8px 23px 3px; display: flex; align-items: center; justify-content: space-between; background: var(--panel); font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; z-index: 2; }
.phone-status::after { content: ""; width: 86px; height: 19px; position: absolute; top: 0; left: 50%; transform: translateX(-50%); border-radius: 0 0 12px 12px; background: #242327; }
.system-icons { display: flex; align-items: center; gap: 3px; }
.system-icons i { display: block; width: 4px; height: 7px; border-radius: 1px; background: currentColor; opacity: .72; }
.system-icons i:nth-child(2) { height: 9px; }
.system-icons b { display: block; width: 13px; height: 7px; border: 1px solid currentColor; border-radius: 2px; position: relative; }
.system-icons b::after { content: ""; position: absolute; width: 2px; height: 3px; top: 1px; right: -3px; border-radius: 0 2px 2px 0; background: currentColor; }
.phone-content { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.app-screen { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; background: var(--panel-soft); }
.app-screen[hidden] { display: none; }
.app-screen::-webkit-scrollbar { width: 4px; }
.app-screen::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 9px; }
.phone-home-indicator { height: 22px; flex: 0 0 22px; display: grid; place-items: center; background: var(--panel); }
.phone-home-indicator span { width: 102px; height: 4px; border-radius: 99px; background: var(--text); opacity: .78; }
.stage-caption { width: min(100%, 500px); margin-top: 12px; display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.caption-mark { width: 6px; height: 6px; margin-top: 4px; background: var(--warning); }

.flow-notes { padding-top: 42px; display: grid; gap: 14px; }
.notes-card { padding: 19px 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.notes-card .eyebrow { margin-bottom: 8px; }
.notes-card h2 { margin: 0; max-width: 210px; font-size: 17px; line-height: 1.35; letter-spacing: -.025em; }
.flow-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.flow-list li { display: flex; align-items: flex-start; gap: 10px; }
.flow-list li > span { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 23px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-text); font-size: 11px; font-weight: 650; }
.flow-list li div { display: grid; gap: 4px; }
.flow-list strong { font-size: 12px; font-weight: 650; }
.flow-list small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.simulation-card { display: grid; grid-template-columns: 30px 1fr; gap: 4px 10px; align-items: center; }
.simulation-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); }
.simulation-icon .icon { width: 16px; height: 16px; }
.simulation-card > strong { font-size: 12px; }
.simulation-card p { grid-column: 1 / -1; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.mobile-brand { padding: 15px 19px 8px; display: flex; align-items: center; justify-content: space-between; background: var(--panel); }
.mobile-brand-name { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.mobile-demo { padding: 5px 7px; border-radius: 5px; background: var(--panel-soft); color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .025em; }
.mobile-heading { padding: 18px 19px 16px; background: var(--panel); }
.date-line { margin: 0 0 5px; color: var(--muted); font-size: 12px; }
.mobile-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.045em; line-height: 1.2; }
.mobile-heading > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.list-section { flex: 1; padding: 16px 15px 19px; }
.section-line { min-height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.section-line h3 { margin: 0; font-size: 14px; font-weight: 650; }
.section-line > span { color: var(--muted); font-size: 11px; }
.visit-card { margin-top: 10px; padding: 15px 14px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.status-tag { min-height: 24px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.status-tag span { width: 6px; height: 6px; background: var(--accent); }
.status-planned { color: var(--accent-text); }
.status-planned span { background: var(--accent); }
.status-later { color: var(--muted); }
.time-tag { color: var(--text); font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.visit-card h3 { margin: 11px 0 4px; font-size: 16px; line-height: 1.35; letter-spacing: -.02em; }
.visit-client { margin: 0; color: var(--muted); font-size: 12px; }
.visit-meta { margin: 14px 0 14px; display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; }
.visit-meta span { display: inline-flex; align-items: center; gap: 5px; }
.visit-meta .icon { width: 14px; height: 14px; }
.button { min-height: 48px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 600; font-size: 13px; cursor: pointer; transition: background-color .16s ease, border-color .16s ease, opacity .16s ease; }
.button .icon { width: 17px; height: 17px; }
.button-primary { background: var(--accent); color: #fff; }
.prototype[data-theme="dark"] .button-primary { color: #211c34; }
.button-primary:hover { background: var(--accent-strong); }
.button-secondary { border-color: var(--line-strong); background: var(--panel); color: var(--text); }
.button-secondary:hover { background: var(--panel-soft); }
.button-full { width: 100%; }
.compact-card { padding: 13px 14px; }
.compact-card h3 { margin-top: 9px; font-size: 14px; }
.compact-card .visit-client { font-size: 12px; line-height: 1.5; }
.next-section { margin-top: 19px; }
.text-button { min-height: 40px; padding: 0 2px; border: 0; display: inline-flex; align-items: center; gap: 4px; background: transparent; color: var(--accent-text); font-size: 12px; font-weight: 600; cursor: pointer; }
.text-button .icon { width: 15px; height: 15px; }
.bottom-nav { min-height: 61px; padding: 5px 5px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); background: var(--panel); }
.bottom-nav button { min-height: 48px; border: 0; display: grid; place-content: center; justify-items: center; gap: 3px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.bottom-nav .icon { width: 18px; height: 18px; }
.bottom-nav button.selected { color: var(--accent-text); font-weight: 650; }
.bottom-nav button.selected .icon { stroke-width: 2.2; }

.mobile-topbar { min-height: 54px; padding: 5px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; background: var(--panel); font-size: 13px; font-weight: 600; }
.icon-button { width: 44px; height: 44px; border: 0; border-radius: 8px; display: grid; place-items: center; background: transparent; color: var(--text); cursor: pointer; }
.icon-button:hover { background: var(--panel-soft); }
.icon-button .icon { width: 20px; height: 20px; }
.topbar-spacer { flex: 1; }
.quiet-button { min-height: 40px; padding: 0 8px; border: 0; background: transparent; color: var(--accent-text); font-size: 12px; font-weight: 650; cursor: pointer; }
.detail-body, .checklist-body, .photo-review-body, .review-body { flex: 1; padding: 18px 17px 24px; }
.detail-title { margin: 12px 0 4px; font-size: 21px; line-height: 1.28; letter-spacing: -.04em; }
.detail-subtitle { margin: 0; color: var(--muted); font-size: 13px; }
.context-card { margin-top: 17px; padding: 4px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.context-row { min-height: 47px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.context-row:last-child { border-bottom: 0; }
.context-row > span { color: var(--muted); font-size: 12px; }
.context-row > strong { max-width: 62%; text-align: right; font-size: 13px; font-weight: 600; }
.detail-section { margin-top: 22px; }
.detail-section .section-line { margin-bottom: 7px; }
.soft-state { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-size: 11px !important; font-weight: 600; }
.soft-state .icon { width: 15px; height: 15px; }
.prep-row { min-height: 58px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.prep-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--panel); color: var(--accent-text); }
.prep-icon .icon { width: 17px; height: 17px; }
.prep-row > span:nth-child(2) { display: grid; gap: 3px; flex: 1; }
.prep-row strong { font-size: 13px; font-weight: 600; }
.prep-row small { color: var(--muted); font-size: 12px; }
.prep-chevron { color: var(--quiet); width: 16px; height: 16px; }
.detail-note { margin-top: 17px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.detail-note strong { font-size: 13px; }
.detail-note p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.bottom-action { padding: 12px 15px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--panel); }
.split-action { display: grid; grid-template-columns: .78fr 1.22fr; gap: 8px; }

.checklist-context { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.context-divider { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.checklist-body h2 { margin: 11px 0 15px; font-size: 22px; letter-spacing: -.04em; }
.progress-caption { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.progress-caption strong { color: var(--text); font-size: 12px; }
.progress-track { height: 5px; margin-top: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress-track > span { width: 50%; height: 100%; display: block; border-radius: inherit; background: var(--accent); transition: width .2s ease; }
.checklist-items { margin: 14px 0 17px; border-top: 1px solid var(--line); }
.check-item { min-height: 73px; padding: 10px 2px; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 9px; align-items: center; border-bottom: 1px solid var(--line); }
.check-toggle { width: 26px; height: 26px; padding: 0; border: 1.5px solid var(--line-strong); border-radius: 7px; display: grid; place-items: center; background: var(--panel); color: white; cursor: pointer; }
.check-toggle[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); }
.check-toggle:disabled { opacity: .5; cursor: not-allowed; }
.check-toggle .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.check-copy { min-width: 0; display: grid; gap: 4px; }
.check-copy strong { font-size: 13px; line-height: 1.35; font-weight: 600; }
.check-copy small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.item-status { color: var(--success); font-size: 11px; font-weight: 600; white-space: nowrap; }
.mini-action { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; background: var(--panel); color: var(--accent-text); cursor: pointer; }
.mini-action .icon { width: 17px; height: 17px; }
.field-label { margin: 4px 0 7px; display: block; font-size: 12px; font-weight: 600; }
.field-label > span { color: var(--muted); font-weight: 400; }
textarea, input[type="text"] { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel); color: var(--text); font-size: 13px; resize: vertical; }
textarea::placeholder, input::placeholder { color: var(--quiet); }
.checklist-body { padding-bottom: 14px; }
.split-action .button { min-width: 0; padding: 0 9px; font-size: 12px; }
.split-action .button .icon { width: 15px; height: 15px; }

.camera-screen { background: #14161a; color: #f5f3f8; }
.camera-topbar { background: #1b1c21; border-color: #303139; color: #f5f3f8; }
.camera-topbar .icon-button { color: #f5f3f8; }
.camera-body { flex: 1; padding: 16px 15px 15px; display: flex; flex-direction: column; }
.camera-purpose { margin-bottom: 11px; display: grid; gap: 4px; }
.camera-purpose .eyebrow { margin: 0; color: #c0bec8; font-size: 11px; }
.camera-purpose strong { font-size: 14px; font-weight: 600; }
.camera-preview { height: clamp(210px, 34vh, 290px); min-height: 190px; position: relative; overflow: hidden; border: 1px solid #62675f; border-radius: 12px; background: #3f4a49; }
.scene-art { width: 100%; height: 100%; display: block; object-fit: cover; }
.camera-badge, .photo-demo-stamp { position: absolute; top: 11px; left: 11px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.34); border-radius: 6px; background: rgba(19,22,23,.7); color: #fff; font-size: 11px; font-weight: 650; }
.camera-focus { position: absolute; width: 65px; height: 65px; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.72); border-radius: 5px; opacity: .8; }
.camera-focus::before, .camera-focus::after { content: ""; position: absolute; background: rgba(255,255,255,.78); }
.camera-focus::before { width: 1px; height: 11px; top: 26px; left: 31px; }
.camera-focus::after { width: 11px; height: 1px; top: 31px; left: 26px; }
.camera-bottom-label { position: absolute; left: 11px; bottom: 11px; display: flex; align-items: center; gap: 6px; color: #fff; font-size: 11px; text-shadow: 0 1px 3px #000; }
.live-dot { width: 6px; height: 6px; background: #c7dacb; }
.location-panel { min-height: 60px; margin-top: 13px; padding: 8px 10px; display: flex; align-items: center; gap: 9px; border: 1px solid #454650; border-radius: 9px; background: #23242a; }
.location-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: #34313f; color: #c9bcff; }
.location-icon .icon { width: 17px; height: 17px; }
.location-copy { flex: 1; min-width: 0; display: grid; gap: 3px; }
.location-copy strong { font-size: 12px; }
.location-copy small { color: #c0bec8; font-size: 11px; line-height: 1.35; }
.location-action { min-height: 40px; padding: 0 8px; border: 1px solid #61597a; border-radius: 7px; background: transparent; color: #ded6ff; font-size: 11px; font-weight: 600; cursor: pointer; }
.demo-coordinate { margin: 7px 0 0 41px; color: #bdb8ca; font-size: 11px; line-height: 1.4; }
.camera-controls { margin-top: auto; min-height: 86px; padding: 12px 6px 2px; display: grid; grid-template-columns: 1fr 68px 1fr; align-items: center; justify-items: center; }
.camera-cancel { min-height: 42px; border-color: #53535d; background: #22232a; color: #f5f3f8; justify-self: start; }
.shutter-button { width: 61px; height: 61px; padding: 5px; border: 2px solid #f7f6f8; border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; }
.shutter-button span { width: 45px; height: 45px; border-radius: 50%; background: #f6f5f7; }
.camera-gallery { width: 42px; height: 42px; border: 1px solid #55545e; border-radius: 8px; display: grid; place-items: center; justify-self: end; background: #22232a; color: #f4f1f9; cursor: pointer; }
.camera-disclaimer { margin: 0; color: #c0bec8; font-size: 11px; text-align: center; }

.photo-review-body { padding-top: 15px; }
.photo-preview-card { height: 205px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.photo-preview-card .scene-art { object-fit: cover; }
.photo-demo-stamp { top: auto; bottom: 10px; left: 10px; }
.photo-meta { margin-top: 15px; }
.photo-meta .context-row { min-height: 43px; }
.inline-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.review-body { padding: 18px 16px 20px; }
.review-body > .eyebrow { margin-bottom: 0; }
.review-body .detail-title { margin-top: 7px; }
.review-progress-card { margin-top: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.review-progress-card small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.review-section { margin-top: 20px; }
.review-section h3 { margin: 0 0 8px; font-size: 12px; font-weight: 650; }
.review-line { min-height: 44px; display: grid; grid-template-columns: 20px minmax(0,1fr) auto; gap: 8px; align-items: center; border-top: 1px solid var(--line); font-size: 12px; }
.review-line strong { color: var(--muted); font-size: 11px; font-weight: 550; }
.review-check { width: 17px; height: 17px; border: 1px solid var(--line-strong); border-radius: 5px; display: grid; place-items: center; background: var(--panel); color: var(--success); }
.review-check.done { border-color: transparent; background: var(--success-soft); }
.review-check .icon { width: 13px; height: 13px; }
.evidence-row { min-height: 55px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 9px; }
.evidence-thumb { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--muted); }
.evidence-thumb .icon { width: 16px; height: 16px; }
.evidence-row > span:nth-child(2) { min-width: 0; flex: 1; display: grid; gap: 3px; }
.evidence-row strong { font-size: 12px; font-weight: 600; }
.evidence-row small { color: var(--muted); font-size: 11px; }
.evidence-row .text-button { min-height: 40px; font-size: 12px; }
.sync-state { margin-top: 17px; padding: 10px; display: flex; gap: 9px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.sync-dot { margin-top: 4px; width: 7px; height: 7px; background: var(--warning); }
.sync-state > span:last-child { display: grid; gap: 3px; }
.sync-state strong { font-size: 12px; font-weight: 600; }
.sync-state small { color: var(--muted); font-size: 11px; }
.review-actions { display: grid; gap: 7px; }
.review-actions .button { min-height: 45px; }

.demo-dialog { width: min(350px, calc(100% - 36px)); padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.demo-dialog::backdrop { background: rgba(18, 17, 22, .54); backdrop-filter: blur(3px); }
.dialog-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--accent-soft); color: var(--accent-text); }
.dialog-icon .icon { width: 19px; height: 19px; }
.demo-dialog h2 { margin: 15px 0 7px; font-size: 18px; }
.demo-dialog p { margin: 0 0 19px; color: var(--muted); font-size: 13px; line-height: 1.55; }

@media (max-width: 1120px) {
  .workspace { width: min(1050px, calc(100% - 40px)); grid-template-columns: 218px minmax(390px, 1fr); gap: 27px; }
  .flow-notes { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; padding-top: 0; }
  .notes-card h2 { max-width: none; }
}
@media (max-width: 760px) {
  .prototype-header { min-height: 62px; padding: 0 15px; }
  .brand { gap: 8px; font-size: 16px; }
  .brand img { width: 30px; height: 30px; }
  .brand-divider, .brand-context, .demo-label { display: none; }
  .theme-button { min-height: 40px; padding: 0 9px; }
  .theme-button span { display: none; }
  .workspace { width: min(100% - 24px, 540px); padding: 18px 0 32px; display: flex; flex-direction: column; gap: 16px; }
  .screen-index { width: 100%; position: static; padding: 0; }
  .index-heading { display: flex; align-items: baseline; gap: 8px; }
  .index-heading .eyebrow { display: none; }
  .index-heading h1 { font-size: 18px; }
  .index-heading > p:last-child { margin: 0 0 0 auto; font-size: 11px; text-align: right; }
  .screen-links { margin: 10px -12px 0; padding: 0 12px 3px; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
  .screen-links::-webkit-scrollbar { display: none; }
  .screen-link { width: auto; min-width: max-content; min-height: 41px; padding: 0 10px; gap: 7px; border-color: var(--line); background: var(--panel); }
  .step-no { width: 23px; height: 23px; border-radius: 6px; font-size: 10px; }
  .screen-link-copy { display: block; }
  .screen-link-copy strong { font-size: 11px; }
  .screen-link-copy small { display: none; }
  .index-foot, .flow-notes { display: none; }
  .preview-area { width: 100%; }
  .preview-heading { width: 100%; margin: 0 0 9px; }
  .preview-heading .eyebrow { display: none; }
  .preview-heading h2 { font-size: 16px; }
  .phone-frame { width: min(100%, 430px); padding: 6px; border-radius: 31px; }
  .phone-screen { height: min(790px, calc(100dvh - 177px)); min-height: 620px; border-radius: 25px; }
  .phone-status { height: 31px; flex-basis: 31px; }
  .stage-caption { width: 100%; margin-top: 9px; }
}
@media (max-width: 390px) {
  .prototype-header { padding: 0 12px; }
  .workspace { width: calc(100% - 16px); }
  .phone-frame { padding: 4px; border-radius: 28px; }
  .phone-screen { height: min(780px, calc(100dvh - 170px)); min-height: 585px; border-radius: 24px; }
  .visit-card { padding-left: 12px; padding-right: 12px; }
  .detail-body, .checklist-body, .photo-review-body, .review-body { padding-left: 14px; padding-right: 14px; }
  .camera-body { padding-left: 12px; padding-right: 12px; }
}
@media (max-height: 760px) and (min-width: 761px) {
  .phone-screen { height: 650px; min-height: 650px; }
  .workspace { padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Embedded in the Grama product story: only the phone remains visible. */
html, body.embed { width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; background: transparent; }
body.embed .prototype { width: 100%; height: 100%; min-height: 0; overflow: hidden; background: transparent; }
body.embed .prototype-header, body.embed .screen-index, body.embed .preview-heading, body.embed .stage-caption, body.embed .flow-notes { display: none !important; }
body.embed .workspace { width: 100%; height: 100%; margin: 0; padding: 0; display: block; }
body.embed .preview-area { width: 100%; height: 100%; display: block; }
body.embed .phone-frame { width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body.embed .phone-screen { width: 100%; height: 100%; min-height: 0; border-radius: 0; }