.guide-backdrop,
.guide-launcher,
.guide-panel {
  --guide-paper: #f5f7f3;
  --guide-panel: #ffffff;
  --guide-ink: #17231b;
  --guide-muted: #5f6c63;
  --guide-line: #d3dbd4;
  --guide-green: #176b35;
  --guide-green-deep: #0c2817;
  --guide-orange: #ed922b;
  --guide-orange-strong: #d97b16;
  --guide-danger: #a44032;
  --guide-font: Inter, Arial, sans-serif;
  --guide-mono: "JetBrains Mono", Consolas, monospace;
}

.guide-backdrop {
  background: rgba(5, 14, 8, 0.46);
  inset: 0;
  position: fixed;
  z-index: 79;
}

.guide-launcher {
  align-items: center;
  background: var(--guide-green-deep);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  bottom: 22px;
  box-shadow: 0 14px 34px rgba(5, 20, 10, 0.32);
  color: #fff;
  cursor: pointer;
  display: flex;
  font: 800 12px/1 var(--guide-font);
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  position: fixed;
  right: 22px;
  z-index: 78;
}

.guide-launcher:hover,
.guide-launcher:focus-visible {
  background: #164b2a;
  border-color: var(--guide-orange);
  transform: translateY(-1px);
}

.guide-launcher[aria-expanded="true"] {
  opacity: 0;
  pointer-events: none;
}

.guide-chat-icon {
  border: 2px solid currentColor;
  border-radius: 4px;
  display: block;
  height: 14px;
  position: relative;
  width: 18px;
}

.guide-chat-icon::after {
  background: var(--guide-green-deep);
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  bottom: -5px;
  content: "";
  height: 5px;
  left: 3px;
  position: absolute;
  transform: skewY(-35deg);
  width: 5px;
}

.guide-panel {
  background: var(--guide-paper);
  border: 1px solid #b8c5bb;
  border-radius: 8px 0 0 8px;
  bottom: 16px;
  box-shadow: -20px 18px 54px rgba(5, 20, 10, 0.25);
  color: var(--guide-ink);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  font-family: var(--guide-font);
  max-width: 100vw;
  position: fixed;
  right: 0;
  top: 86px;
  transform: translateX(102%);
  transition: transform 180ms ease, visibility 180ms ease;
  visibility: hidden;
  width: 440px;
  z-index: 80;
}

.guide-panel.is-open {
  transform: translateX(0);
  visibility: visible;
}

.guide-panel-header {
  align-items: center;
  background: var(--guide-green-deep);
  border-bottom: 3px solid var(--guide-orange);
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px 16px;
}

.guide-panel-title {
  align-items: center;
  display: flex;
  gap: 11px;
  min-width: 0;
}

.guide-panel-title img {
  height: 38px;
  object-fit: contain;
  width: 38px;
}

.guide-panel-title p,
.guide-panel-title h2 {
  margin: 0;
}

.guide-panel-title p {
  color: #a9b9ad;
  font-family: var(--guide-mono);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.guide-panel-title h2 {
  color: #fff;
  font-size: 19px;
  letter-spacing: 0;
  line-height: 1.1;
}

.guide-header-actions {
  display: flex;
  gap: 6px;
}

.guide-icon-button {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 34px;
}

.guide-icon-button:hover,
.guide-icon-button:focus-visible {
  background: rgba(255, 255, 255, 0.11);
}

.guide-close-icon::before,
.guide-close-icon::after {
  background: currentColor;
  content: "";
  height: 2px;
  left: 8px;
  position: absolute;
  top: 15px;
  width: 16px;
}

.guide-close-icon::before { transform: rotate(45deg); }
.guide-close-icon::after { transform: rotate(-45deg); }

.guide-clear-icon::before {
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  height: 13px;
  left: 8px;
  position: absolute;
  top: 8px;
  width: 13px;
}

.guide-clear-icon::after {
  background: var(--guide-green-deep);
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  content: "";
  height: 6px;
  left: 7px;
  position: absolute;
  top: 7px;
  transform: rotate(-20deg);
  width: 6px;
}

.guide-status-row {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--guide-line);
  display: grid;
  gap: 4px 12px;
  grid-template-columns: auto 1fr;
  padding: 9px 16px;
}

.guide-status-row > span {
  align-items: center;
  color: var(--guide-green);
  display: flex;
  font-family: var(--guide-mono);
  font-size: 9px;
  font-weight: 800;
  gap: 7px;
  text-transform: uppercase;
}

.guide-status-row > span::before {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 7px;
  width: 7px;
}

.guide-status-row > span[data-state="working"] { color: #b76b12; }
.guide-status-row > span[data-state="error"] { color: var(--guide-danger); }

.guide-status-row p {
  color: var(--guide-muted);
  font-size: 11px;
  margin: 0;
  min-width: 0;
  text-align: right;
}

.guide-visual[hidden],
.guide-camera-stage[hidden],
.guide-capture-review[hidden] { display: none !important; }

.guide-visual {
  background: #eef3ef;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
}

.guide-camera-focus-bar {
  align-items: center;
  background: var(--guide-green-deep);
  border: 1px solid #294d36;
  border-radius: 6px;
  color: #fff;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 9px 10px;
}

.guide-camera-focus-bar > div:first-child { display: grid; gap: 2px; min-width: 0; }
.guide-camera-focus-bar span { color: #b9c9bd; font: 800 9px/1.2 var(--guide-mono); text-transform: uppercase; }
.guide-camera-focus-bar strong { font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.guide-camera-focus-actions { display: flex; flex: 0 0 auto; gap: 6px; }
.guide-camera-focus-actions button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font: 800 10px/1.2 var(--guide-font);
  min-height: 44px;
  padding: 0 9px;
}
.guide-camera-focus-actions button:disabled { cursor: default; opacity: 0.45; }
.guide-camera-focus-actions button:focus-visible { outline: 3px solid rgba(247,154,47,0.52); outline-offset: 2px; }

.guide-panel.is-camera-mode {
  border: 0;
  border-radius: 0;
  bottom: 0;
  grid-template-rows: auto minmax(0, 1fr);
  left: 0;
  max-width: none;
  right: 0;
  top: 0;
  width: 100vw;
}
.guide-camera-open .property-account-chip { display: none !important; }
.guide-panel.is-camera-mode .guide-status-row,
.guide-panel.is-camera-mode .guide-messages,
.guide-panel.is-camera-mode .guide-suggestions,
.guide-panel.is-camera-mode .guide-composer { display: none !important; }
.guide-panel.is-camera-mode .guide-header-actions { display: none !important; }
.guide-panel.is-camera-mode .guide-panel-header { min-height: 52px; padding-block: 7px; }
.guide-panel.is-camera-mode .guide-panel-title img { height: 30px; width: 30px; }
.guide-panel.is-camera-mode .guide-panel-title h2 { font-size: 16px; }
.guide-panel.is-camera-mode .guide-visual {
  display: block;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
}
.guide-panel.is-camera-mode .guide-camera-stage {
  grid-template-rows: auto;
  min-height: 0;
  overflow: visible;
}
.guide-panel.is-camera-mode .guide-camera-frame { align-self: start; height: auto; min-height: 0; }
.guide-panel.is-camera-mode .guide-capture-review { align-self: start; max-height: 100%; overflow-y: auto; }

.guide-visual-intro,
.guide-camera-guidance,
.guide-capture-review {
  background: #fff;
  border: 1px solid var(--guide-line);
  border-radius: 6px;
  padding: 14px;
}

.guide-visual-kicker,
.guide-camera-guidance > span {
  color: var(--guide-green);
  font-family: var(--guide-mono);
  font-size: 9px;
  font-weight: 850;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.guide-visual-intro h3 {
  color: var(--guide-ink);
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.guide-visual-intro > p:not(.guide-visual-kicker),
.guide-capture-review > p {
  color: var(--guide-muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 0 0 12px;
}

.guide-visual-intro > label {
  align-items: flex-start;
  border-top: 1px solid #e1e7e2;
  color: var(--guide-ink);
  display: flex;
  font-size: 12px;
  gap: 9px;
  line-height: 1.45;
  padding: 10px 0;
}

.guide-visual-intro input { height: 17px; margin: 0; width: 17px; }
.guide-visual-intro-actions,
.guide-camera-actions,
.guide-capture-review > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.guide-visual-primary,
.guide-visual-secondary {
  border-radius: 5px;
  cursor: pointer;
  font: 800 12px/1.2 var(--guide-font);
  min-height: 44px;
  padding: 0 13px;
}

.guide-file-choice { align-items: center; display: inline-flex; justify-content: center; }
.guide-file-choice input { height: 1px; opacity: 0; overflow: hidden; position: absolute; width: 1px; }
.guide-file-choice:focus-within { outline: 3px solid rgba(247, 154, 47, 0.35); outline-offset: 2px; }

.guide-visual-primary { background: var(--guide-orange); border: 1px solid var(--guide-orange-strong); color: #172219; }
.guide-visual-secondary { background: #fff; border: 1px solid #9eb2a3; color: var(--guide-green-deep); }
.guide-visual-primary:disabled, .guide-visual-secondary:disabled { cursor: wait; opacity: 0.55; }

.guide-camera-stage { display: grid; gap: 11px; }
.guide-camera-progress {
  background: #e5ece6;
  border: 1px solid #bccbbf;
  border-radius: 5px;
  color: var(--guide-green-deep);
  font: 800 10px/1.35 var(--guide-mono);
  padding: 8px 10px;
}
.guide-camera-aspect { background: #e5ece6; border: 1px solid #bccbbf; border-radius: 5px; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; }
.guide-camera-aspect button { background: transparent; border: 0; border-radius: 3px; color: var(--guide-muted); cursor: pointer; font: 850 10px/1.2 var(--guide-mono); min-height: 40px; padding: 0 10px; }
.guide-camera-aspect button[aria-pressed="true"] { background: var(--guide-green-deep); color: #fff; }
.guide-camera-aspect button:focus-visible { outline: 3px solid rgba(247,154,47,0.52); outline-offset: 2px; }
.guide-camera-frame { align-self: start; aspect-ratio: 16 / 9; background: #07130b; border-radius: 6px; height: auto; justify-self: center; max-height: 62dvh; overflow: hidden; position: relative; width: 100%; }
.guide-camera-frame[data-camera-aspect="portrait9x16"] { aspect-ratio: 9 / 16; height: min(52dvh, 560px); max-height: 52dvh; width: auto; }
.guide-camera-frame video { height: 100%; object-fit: cover; width: 100%; }
.guide-camera-frame > span { background: rgba(7, 19, 11, 0.82); bottom: 8px; color: #fff; font: 750 10px/1.2 var(--guide-mono); left: 8px; padding: 6px 8px; position: absolute; }
.guide-camera-aim { border: 1px solid rgba(255, 255, 255, 0.76); inset: 17% 12%; pointer-events: none; position: absolute; }
.guide-camera-aim::before, .guide-camera-aim::after { background: rgba(255,255,255,0.7); content: ""; left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); }
.guide-camera-aim::before { height: 1px; width: 28px; }
.guide-camera-aim::after { height: 28px; width: 1px; }

.guide-camera-guidance strong { color: var(--guide-ink); display: block; font-size: 14px; line-height: 1.35; }
.guide-camera-guidance p { color: var(--guide-muted); font-size: 12px; line-height: 1.45; margin: 7px 0 0; }
.guide-camera-actions .guide-visual-primary { flex: 1; }
.guide-camera-actions > button,
.guide-camera-actions > label { min-width: 116px; }
.guide-camera-stage.is-paused .guide-camera-frame video,
.guide-camera-stage.is-paused .guide-camera-aim { visibility: hidden; }
.guide-camera-stage.is-paused .guide-camera-frame::after {
  align-items: center;
  color: #fff;
  content: "Camera paused";
  display: flex;
  font: 800 15px/1.2 var(--guide-font);
  inset: 0;
  justify-content: center;
  position: absolute;
}

.guide-camera-outcomes {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-camera-outcomes button,
.guide-camera-finish {
  background: #fff;
  border: 1px solid #9eb2a3;
  border-radius: 5px;
  color: var(--guide-green-deep);
  cursor: pointer;
  font: 800 11px/1.25 var(--guide-font);
  min-height: 44px;
  padding: 7px 9px;
}

.guide-camera-outcomes button:disabled { cursor: default; opacity: 0.5; }
.guide-camera-outcomes button:focus-visible,
.guide-camera-finish:focus-visible { outline: 3px solid rgba(247,154,47,0.45); outline-offset: 2px; }
.guide-camera-finish { width: 100%; }

.guide-capture-review img { aspect-ratio: 4 / 3; background: #07130b; border-radius: 5px; display: block; object-fit: contain; width: 100%; }
.guide-capture-review label { color: var(--guide-ink); display: grid; font-size: 12px; font-weight: 800; gap: 6px; margin-top: 12px; }
.guide-capture-review textarea { border: 1px solid #aebbb1; border-radius: 5px; font: 500 13px/1.45 var(--guide-font); padding: 9px; resize: vertical; }

.guide-visual-entry {
  align-items: center;
  background: #edf4ee;
  border: 1px solid #afc2b3;
  border-radius: 5px;
  color: var(--guide-green-deep);
  cursor: pointer;
  display: flex;
  gap: 10px;
  margin: 0 0 9px;
  padding: 9px 11px;
  text-align: left;
  width: 100%;
}

.guide-visual-entry:hover, .guide-visual-entry:focus-visible { background: #e1ece3; border-color: var(--guide-green); }
.guide-visual-entry > span:last-child { display: grid; gap: 2px; }
.guide-visual-entry strong { font-size: 12px; }
.guide-visual-entry small { color: var(--guide-muted); font-size: 10px; line-height: 1.35; }
.guide-camera-icon { border: 2px solid currentColor; border-radius: 3px; display: block; height: 16px; position: relative; width: 22px; }
.guide-camera-icon::before { border: 2px solid currentColor; border-radius: 50%; content: ""; height: 6px; left: 6px; position: absolute; top: 3px; width: 6px; }
.guide-camera-icon::after { background: currentColor; content: ""; height: 3px; left: 3px; position: absolute; top: -5px; width: 7px; }

.guide-message-visual { border-top: 1px solid var(--guide-line); margin-top: 10px; padding-top: 10px; }
.guide-message-visual img { background: #e7ece8; border-radius: 4px; display: block; max-height: 190px; object-fit: cover; width: 100%; }
.guide-message-visual span { color: var(--guide-muted); display: block; font-size: 10px; margin-top: 6px; }

.guide-messages {
  background: var(--guide-paper);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 16px 8px;
}

.guide-message {
  background: var(--guide-panel);
  border: 1px solid var(--guide-line);
  border-left: 3px solid var(--guide-orange);
  border-radius: 6px;
  margin-bottom: 12px;
  padding: 12px 13px;
  position: relative;
}

.guide-message::before { display: none; }

.guide-message.is-user {
  background: #e8f0e9;
  border: 1px solid #c4d3c7;
  border-right: 3px solid var(--guide-green);
  border-radius: 6px;
  margin-left: 42px;
  padding: 12px 13px;
}

.guide-message.is-user::before { display: none; }

.guide-message-label {
  color: var(--guide-green);
  display: block;
  font-family: var(--guide-mono);
  font-size: 9px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.guide-message.is-user .guide-message-label { color: #526159; }

.guide-message p {
  color: var(--guide-ink);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
}

.guide-message.is-streaming p::after {
  animation: guide-stream-pulse 1s ease-in-out infinite;
  color: var(--guide-orange);
  content: " |";
}

@keyframes guide-stream-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

.guide-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.guide-message-action,
.guide-suggestions button {
  background: transparent;
  border: 1px solid #9eb2a3;
  border-radius: 5px;
  color: var(--guide-green-deep);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  padding: 8px 10px;
  text-align: left;
}

.guide-message-action:hover,
.guide-message-action:focus-visible,
.guide-suggestions button:hover,
.guide-suggestions button:focus-visible {
  background: #e5eee7;
  border-color: var(--guide-green);
}

.guide-suggestions {
  background: #edf2ee;
  border-top: 1px solid var(--guide-line);
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 10px 16px;
}

.guide-suggestions button {
  background: #fff;
  max-width: none;
  min-width: 0;
  overflow-wrap: anywhere;
}

.guide-composer {
  background: #fff;
  border-top: 1px solid var(--guide-line);
  padding: 10px 16px max(11px, env(safe-area-inset-bottom));
}

.guide-mode-control {
  border: 0;
  margin: 0 0 8px;
  padding: 0;
}

.guide-mode-control legend {
  color: var(--guide-muted);
  font-family: var(--guide-mono);
  font-size: 9px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.guide-mode-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.guide-mode-options label { cursor: pointer; }
.guide-mode-options input { position: absolute; opacity: 0; pointer-events: none; }

.guide-mode-options span {
  align-items: center;
  background: #f4f6f4;
  border: 1px solid #bfc9c1;
  color: #4d5a51;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  min-height: 34px;
}

.guide-mode-options label:first-child span { border-radius: 5px 0 0 5px; }
.guide-mode-options label:last-child span { border-left: 0; border-radius: 0 5px 5px 0; }
.guide-mode-options input:checked + span { background: var(--guide-green-deep); border-color: var(--guide-green-deep); color: #fff; }
.guide-mode-options input:focus-visible + span { outline: 3px solid rgba(245, 154, 47, 0.38); outline-offset: 2px; }

.guide-text-form {
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr auto;
}

.guide-input-label {
  color: var(--guide-ink);
  font-size: 12px;
  font-weight: 800;
  grid-column: 1 / -1;
}

.guide-text-form textarea {
  border: 1px solid #aebbb1;
  border-radius: 5px;
  color: var(--guide-ink);
  font: 500 14px/1.45 var(--guide-font);
  min-height: 52px;
  padding: 9px 10px;
  resize: vertical;
  width: 100%;
}

.guide-text-form textarea:focus {
  border-color: var(--guide-green);
  outline: 3px solid rgba(23, 111, 52, 0.12);
}

.guide-send {
  align-self: stretch;
  background: var(--guide-orange);
  border: 1px solid var(--guide-orange-strong);
  border-radius: 5px;
  color: #172219;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  min-width: 70px;
  padding: 0 13px;
}

.guide-send:disabled { cursor: wait; opacity: 0.58; }

.guide-voice-disclosure,
.guide-privacy {
  color: var(--guide-muted);
  font-size: 10px;
  line-height: 1.45;
  margin: 0;
}

.guide-voice-buttons {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 42px 42px;
  margin: 9px 0;
}

.guide-voice-start,
.guide-voice-icon-button {
  align-items: center;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  min-height: 42px;
}

.guide-voice-start {
  background: var(--guide-orange);
  border: 1px solid var(--guide-orange-strong);
  color: #172219;
  font-size: 11px;
  font-weight: 850;
  gap: 9px;
}

.guide-voice-icon-button {
  background: #fff;
  border: 1px solid #aebbb1;
  color: var(--guide-green-deep);
  padding: 0;
  position: relative;
}

.guide-voice-start:disabled,
.guide-voice-icon-button:disabled { cursor: default; opacity: 0.42; }
.guide-voice-icon-button[aria-pressed="true"] { background: #ffe6cd; border-color: var(--guide-orange); }

.guide-mic-icon {
  border: 2px solid currentColor;
  border-radius: 8px;
  display: block;
  height: 17px;
  position: relative;
  width: 10px;
}

.guide-mic-icon::before {
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 9px 9px;
  bottom: -6px;
  content: "";
  height: 8px;
  left: -5px;
  position: absolute;
  width: 16px;
}

.guide-mic-icon::after {
  background: currentColor;
  bottom: -10px;
  content: "";
  height: 5px;
  left: 3px;
  position: absolute;
  width: 2px;
}

.guide-sound-icon {
  border: solid currentColor;
  border-width: 5px 7px 5px 0;
  display: block;
  height: 0;
  position: relative;
  width: 0;
}

.guide-sound-icon::before {
  background: currentColor;
  content: "";
  height: 8px;
  left: -6px;
  position: absolute;
  top: -4px;
  width: 5px;
}

.guide-sound-icon::after {
  border: 2px solid currentColor;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-top-color: transparent;
  border-radius: 50%;
  content: "";
  height: 14px;
  left: 4px;
  position: absolute;
  top: -9px;
  width: 12px;
}

.guide-stop-icon {
  background: currentColor;
  border-radius: 2px;
  display: block;
  height: 13px;
  width: 13px;
}

.guide-voice-status {
  color: var(--guide-green);
  font-size: 10px;
  font-weight: 750;
  margin: 0 0 8px;
}

.guide-voice-status[data-state="error"] { color: var(--guide-danger); }
.guide-voice-status[data-state="speaking"] { color: #b76b12; }
.guide-privacy { border-top: 1px solid #dde3de; margin-top: 10px; padding-top: 9px; }

@media (min-width: 721px) {
  .guide-backdrop { background: rgba(5, 14, 8, 0.24); }
}

@media (max-width: 720px) {
  body.guide-open { overflow: hidden; }

  .guide-launcher {
    bottom: max(14px, env(safe-area-inset-bottom));
    right: 14px;
  }

  .guide-panel {
    border-left: 0;
    border-radius: 0;
    border-top: 1px solid #bfc9c1;
    bottom: 0;
    height: 100dvh;
    top: 0;
    transform: translateY(102%);
    width: 100%;
  }

  .guide-panel.is-open { transform: translateY(0); }
  .guide-messages { min-height: 160px; }
  .guide-suggestions { grid-template-columns: 1fr 1fr; }
  .guide-suggestions button { max-width: none; min-width: 0; }
  .guide-status-row { grid-template-columns: 1fr; }
  .guide-status-row p { text-align: left; }
  .guide-message.is-user { margin-left: 28px; }
  .guide-panel.is-camera-mode .guide-panel-header { min-height: 56px; padding: 7px 12px; }
  .guide-panel.is-camera-mode .guide-visual { padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); }
  .guide-panel.is-camera-mode .guide-camera-focus-bar { position: sticky; top: 0; z-index: 3; }
  .guide-panel.is-camera-mode .guide-camera-stage { grid-template-columns: minmax(0, 1fr) minmax(132px, 0.8fr); grid-template-rows: auto; height: auto; overflow: visible; }
  .guide-panel.is-camera-mode .guide-camera-progress { align-items: center; display: flex; grid-column: 1; min-width: 0; }
  .guide-panel.is-camera-mode .guide-camera-aspect { grid-column: 2; min-width: 132px; }
  .guide-panel.is-camera-mode .guide-camera-frame,
  .guide-panel.is-camera-mode .guide-camera-guidance,
  .guide-panel.is-camera-mode .guide-camera-actions,
  .guide-panel.is-camera-mode .guide-camera-outcomes,
  .guide-panel.is-camera-mode .guide-camera-finish { grid-column: 1 / -1; }
  .guide-panel.is-camera-mode .guide-camera-frame { aspect-ratio: 16 / 9; height: auto; max-height: none; width: 100%; }
  .guide-panel.is-camera-mode .guide-camera-frame[data-camera-aspect="portrait9x16"] { height: min(42dvh, 420px); max-height: 42dvh; width: auto; }
  .guide-panel.is-camera-mode .guide-camera-guidance { padding: 10px; }
  .guide-panel.is-camera-mode .guide-camera-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .guide-panel.is-camera-mode .guide-camera-actions > * { min-width: 0; padding-inline: 8px; }
  .guide-camera-outcomes { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 430px) {
  .guide-launcher {
    justify-content: center;
    min-height: 52px;
    padding: 0;
    width: 52px;
  }
  .guide-launcher > span:last-child { display: none; }
  .guide-panel { height: 100dvh; }
  .guide-panel-header { min-height: 64px; }
  .guide-messages { padding-left: 12px; padding-right: 12px; }
  .guide-suggestions,
  .guide-composer { padding-left: 12px; padding-right: 12px; }
  .guide-camera-focus-bar { align-items: center; gap: 8px; padding: 7px 8px; }
  .guide-camera-focus-bar strong { font-size: 10px; }
  .guide-camera-focus-actions { align-items: center; flex-direction: row; gap: 5px; }
  .guide-camera-focus-actions button { min-width: 58px; padding-inline: 7px; }
  .guide-camera-focus-actions button { min-height: 44px; }
}

@media print {
  .guide-backdrop,
  .guide-launcher,
  .guide-panel { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-panel,
  .guide-launcher { transition: none; }
}
