/* Guide layer only. Does not restyle live card chrome. */
#co-guide {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 360px;
  max-width: calc(100vw - 32px);
  z-index: 80;
  background: #102433;
  color: #f4f7f8;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(16, 36, 51, 0.28);
  font: 14px/1.4 system-ui, sans-serif;
  overflow: hidden;
}
#co-guide * { box-sizing: border-box; }
.co-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #1f4361;
}
.co-kicker { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.85; }
.co-controls { margin-left: auto; display: flex; gap: 6px; }
.co-controls button, .co-next, .co-branch {
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #1f4361;
  font: inherit;
  font-size: 13px;
  padding: 4px 8px;
  cursor: pointer;
}
.co-body { padding: 10px 12px 12px; min-height: 92px; }
.co-title { margin: 0 0 4px; font-size: 15px; }
.co-copy { margin: 0; }
.co-track { height: 4px; background: rgba(255,255,255,0.2); }
.co-fill { height: 100%; width: 0; background: #8fd0c6; }
.co-scan { display: none; margin-top: 8px; }
.co-scan.on { display: grid; grid-template-columns: 88px 1fr; gap: 8px; align-items: center; }
.co-cam {
  width: 88px; height: 88px; border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.2)),
    repeating-linear-gradient(0deg, #163246 0 2px, #0e2230 2px 6px);
  position: relative;
}
.co-cam i {
  position: absolute; left: 18px; top: 18px; width: 52px; height: 52px;
  border: 3px solid #8fd0c6; border-radius: 4px;
  background:
    linear-gradient(#0e2230, #0e2230) 50% 50% / 28px 6px no-repeat,
    linear-gradient(#0e2230, #0e2230) 50% 50% / 6px 28px no-repeat;
}
.co-status { font-weight: 700; }
#co-spot {
  position: fixed;
  z-index: 70;
  pointer-events: none;
  border: 2px solid #1f4361;
  border-radius: 10px;
  box-shadow: 0 0 0 3px rgba(143, 208, 198, 0.35);
  display: none;
}
#co-spot.on { display: block; }
@media (prefers-reduced-motion: reduce) {
  #co-spot { box-shadow: none; }
}
#co-arrow {
  position: fixed;
  z-index: 75;
  display: none;
  pointer-events: none;
  align-items: center;
  gap: 6px;
  max-width: 220px;
  padding: 6px 8px;
  background: #f4f7f8;
  color: #102433;
  border-radius: 10px;
  font: 700 13px/1.2 system-ui, sans-serif;
  box-shadow: 0 8px 24px rgba(16, 36, 51, 0.35);
}
#co-arrow.on { display: flex; }
#co-arrow svg { width: 36px; height: 28px; flex: none; }
#co-arrow[data-point="right"] svg { transform: scaleX(-1); }
#co-show {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  border: 0;
  border-radius: 10px;
  background: #1f4361;
  color: #fff;
  font: 14px/1 system-ui, sans-serif;
  padding: 10px 14px;
  cursor: pointer;
}
#co-show.on { display: block; }
@media (max-width: 800px) {
  #co-guide { left: 12px; right: 12px; width: auto; }
}
