/* SEMA guided inspection by voice (job-guide.js, #/inspect). Phone first; shop design tokens only. */
.gi, .gi-pick { max-width: 720px; margin: 0 auto; }
.gi-sub { color: var(--ink-2); font-size: 13px; line-height: 1.4; margin: 4px 0; }
.gi-skel { height: 160px; }
.gi-jobs { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.gi-job { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--r-m); background: var(--surface); box-shadow: 0 0 0 .5px var(--hair-strong); color: var(--ink); text-decoration: none; min-height: 44px; }
.gi-job-t { font-weight: 600; font-size: 16px; }
.gi-job-s { color: var(--ink-2); font-size: 13px; }

.gi-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.gi-title { font: 600 24px/1.15 var(--font-display); letter-spacing: -0.02em; margin: 2px 0 0; }
.gi-state { flex: none; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 4px 12px; background: var(--fill); color: var(--ink-2); margin-top: 4px; }
.gi-state.s-listening { background: var(--red-soft); color: var(--red); }
.gi-state.s-listening::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 6px; vertical-align: 1px; animation: gi-pulse 1.4s ease-in-out infinite; }
.gi-state.s-submitted { background: var(--green-soft); color: var(--green); }
.gi-state.s-paused { background: var(--amber-soft); color: var(--amber); }
@keyframes gi-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .gi-state.s-listening::before { animation: none; } }

.gi-prompt { background: var(--surface); border-radius: var(--r-l); box-shadow: 0 0 0 .5px var(--hair-strong); padding: 16px 18px; margin-bottom: 12px; }
.gi-said { font: 600 20px/1.35 var(--font-display); margin: 0; }
.gi-heard { color: var(--ink-2); font-size: 15px; margin: 8px 0 0; font-style: italic; min-height: 1em; }
.gi-heard:empty { display: none; }
.gi-prompt .notice { margin-top: 10px; }

.gi-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-m); background: var(--accent-soft); margin-bottom: 12px; }
.gi-cap strong { flex: 1 1 100%; font-size: 15px; }
.gi-cambtn { position: relative; overflow: hidden; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; cursor: pointer; }
.gi-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.gi-ctl { display: grid; gap: 10px; margin-bottom: 14px; }
.gi-mic { min-height: 56px; font-size: 18px; font-weight: 600; border-radius: var(--r-l); width: 100%; }
.gi-mic.is-on { background: var(--red); color: #fff; border: 0; }
.gi-row { display: flex; gap: 8px; align-items: center; }
.gi-type { flex: 1; min-width: 0; font-size: 16px; min-height: 44px; padding: 0 12px; box-sizing: border-box; }
.gi-toggles { flex-wrap: wrap; }
.gi-toggles button { min-height: 36px; font-size: 13px; }
.gi-toggles button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.gi-video { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--r-m); background: #000; margin-bottom: 12px; }

.gi-recs, .gi-done { background: var(--surface); border-radius: var(--r-m); box-shadow: 0 0 0 .5px var(--hair); padding: 12px 14px; margin-bottom: 12px; }
.gi-recs h2, .gi-done h2 { font-size: 15px; margin: 0 0 4px; }
.gi-recs ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.gi-recs li { display: grid; gap: 2px; }
.gi-done { background: var(--green-soft); box-shadow: none; }

.gi-steps { display: grid; gap: 10px; margin-bottom: 12px; }
.gi-step { background: var(--surface); border-radius: var(--r-m); box-shadow: 0 0 0 .5px var(--hair); padding: 10px 14px; }
.gi-step.is-current { box-shadow: 0 0 0 2px var(--accent); }
.gi-step.is-skipped { opacity: .7; }
.gi-step h2 { font-size: 15px; margin: 2px 0 6px; display: flex; align-items: center; gap: 8px; }
.gi-chip { font-size: 12px; font-weight: 600; background: var(--fill); color: var(--ink-2); border-radius: 999px; padding: 1px 8px; }
.gi-step ul { list-style: none; margin: 0; padding: 0; }
.gi-item { padding: 8px 0; border-top: .5px solid var(--hair); }
.gi-item:first-child { border-top: 0; }
.gi-item.is-focus .gi-item-h > span:first-child { font-weight: 600; color: var(--accent); }
.gi-item-h { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.gi-val { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gi-val.g-ok { color: var(--green); }
.gi-val.g-attention { color: var(--amber); }
.gi-val.g-urgent { color: var(--red); }
.gi-val.g-none { color: var(--ink-3); font-weight: 400; }
.gi-src { color: var(--ink-2); font-size: 12px; margin: 3px 0 0; line-height: 1.35; }
.gi-ph { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.gi-ph figure { margin: 0; position: relative; }
.gi-ph img { width: 84px; height: 63px; object-fit: cover; border-radius: var(--r-s); display: block; }
.gi-ph figcaption { position: absolute; left: 4px; bottom: 4px; font-size: 10px; font-weight: 600; background: rgba(0, 0, 0, .65); color: #fff; border-radius: 4px; padding: 0 4px; }

.gi-tr { margin: 6px 0 12px; }
.gi-tr summary { cursor: pointer; color: var(--ink-2); font-size: 13px; min-height: 32px; }
.gi-tr ol { list-style: none; margin: 6px 0 0; padding: 0; max-height: 300px; overflow-y: auto; }
.gi-t { font-size: 13px; line-height: 1.4; margin: 4px 0; }
.gi-t.t-ai { color: var(--ink-2); }
.gi-who { font-weight: 600; margin-right: 6px; }
.gi-foot { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.gi-policy { color: var(--ink-3); font-size: 12px; line-height: 1.4; }

/* Pocket mode: a black screen that ignores stray touches; double-tap to come back. */
.gi-pocket { position: fixed; inset: 0; z-index: 1000; background: #000; color: #f5f5f7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; touch-action: none; }
.gi-pocket-s { font-size: 14px; font-weight: 600; color: #ff6b6b; margin: 0; }
.gi-pocket-t { font: 600 20px/1.35 var(--font-display); max-width: 560px; margin: 0; color: #c7c7cc; }
.gi-unlock { background: transparent; color: #8e8e93; border: 1px solid #3a3a3c; border-radius: 999px; padding: 10px 22px; min-height: 44px; }

@media (min-width: 900px) {
  .gi { max-width: 980px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; align-items: start; }
  .gi > .gi-head, .gi > .gi-prompt, .gi > .gi-cap, .gi > .gi-ctl, .gi > .gi-video, .gi > .gi-recs, .gi > .gi-done, .gi > .gi-tr, .gi > .gi-foot, .gi > .gi-policy { grid-column: 1; }
  .gi > .gi-steps { grid-column: 2; grid-row: 1 / span 9; }
  .gi > .gi-pocket { grid-column: auto; }
}
/* Oct 20: photo overlays on the live camera */
.gi-vbox { position: relative; margin-bottom: 12px; }
.gi-vbox .gi-video { margin-bottom: 0; display: block; }
.gi-frame { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 3px dashed rgba(255, 255, 255, 0.9); box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.28); pointer-events: none; }
.gi-vbox.is-wide .gi-frame { width: 86%; height: 44%; border-radius: 10px; }
.gi-vbox.is-round .gi-frame { width: 56%; aspect-ratio: 1; height: auto; border-radius: 50%; }
.gi-vbox.is-rect .gi-frame { width: 70%; height: 70%; border-radius: 8px; }
.gi-vbox { overflow: hidden; border-radius: var(--r-m); }
.gi-frame-tip { position: absolute; left: 8px; right: 8px; bottom: 8px; margin: 0; padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 0.85em; }
.gi-captip { margin: 4px 0 8px; }
