.bg-shopguide {
  --guide-ink: var(--ink, #192743);
  --guide-blue: var(--blue, #163c85);
  --guide-text: var(--muted-ink, #526075);
  --guide-rule: var(--hairline, #d6dbdf);
  color: var(--guide-ink);
}
.bg-shopguide * { min-width: 0; }
.bg-shopguide h1 { margin: 0; font-size: clamp(2.4rem, 4.1vw, 4.1rem); line-height: 1.22; font-weight: 700; }
.bg-shopguide h2 { margin: 0; font-size: clamp(1.28rem, 1.9vw, 1.65rem); line-height: 1.45; font-weight: 600; }
.bg-action, .bg-text-link { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 7px 17px; font-weight: 600; }
.bg-action { background: var(--guide-blue); color: #fff; border: 1px solid transparent; border-radius: 2px; }
.bg-action:hover { background: #102d61; }
.bg-text-link { padding-inline: 1px; color: var(--guide-blue); text-decoration: underline; text-underline-offset: .22em; }

.bg-dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(38px, 8vw, 126px); align-items: start; }
.bg-install-intro { padding-top: 2px; }
.bg-install-intro p, .bg-ai-intro p { color: var(--guide-text); font-size: clamp(1rem, 1.3vw, 1.16rem); margin: 10px 0 0; line-height: 1.75; }
.bg-install-intro p { max-width: 37ch; }
.bg-form { margin-block-start: clamp(24px, 3vw, 40px); }
.bg-form > * { display: block; border: 0; border-top: 1px solid var(--guide-rule); margin: 0; padding: 15px 0; }
.bg-form .bg-label, .bg-form legend { font-weight: 600; font-size: 1.08rem; }
.bg-label small { font-size: .78rem; font-weight: 400; color: var(--guide-text); margin-inline-start: 6px; }
.bg-car-field input { display: block; width: 100%; margin-top: 8px; padding: 8px 11px; min-height: 44px; border: 1px solid #9ca6b5; border-radius: 2px; background: #fff; color: var(--guide-ink); text-align: start; }
.bg-car-field input::placeholder { color: #697381; opacity: 1; }
.bg-field legend { float: inline-start; width: 100%; padding: 0; }
.bg-options { clear: both; display: flex; flex-wrap: wrap; column-gap: 24px; }
.bg-choice { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; cursor: pointer; }
.bg-choice input, .bg-view-option input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--guide-blue); margin: 0; }
.bg-choice:has(input:checked) { font-weight: 600; }
.bg-form .bg-parking-field { padding-block: 5px 0; }
.bg-parking-field .bg-choice { font-weight: 600; }
.bg-parking-field p { margin: -2px 26px 0 0; color: var(--guide-text); font-size: .91rem; line-height: 1.75; max-width: 45ch; }
.bg-letter { background: #edf1f3; }
.bg-plan { margin: 0; padding: 10px 8px 3px; background: #f1f4f4; border-bottom: 1px solid #cdd5da; }
.bg-plan-sheet { position: relative; max-width: 440px; margin-inline: auto; }
.bg-plan canvas { display: block; width: 100%; height: auto; }
.bg-plan-front, .bg-plan-rear { position: absolute; top: 0; transform: translateX(-50%); font-size: clamp(.73rem, 1vw, .85rem); font-weight: 600; white-space: nowrap; color: #184784; line-height: 1.35; }
.bg-plan-front { left: 69%; }
.bg-plan-rear { left: 26%; }
.bg-plan[data-direction="front"] .bg-plan-rear { color: #5c6973; font-weight: 400; }
.bg-letter-body { padding: clamp(17px, 2.4vw, 35px); }
.bg-letter h2 { font-size: 1.12rem; }
#bg-message { white-space: pre-line; overflow-wrap: anywhere; margin: 12px 0 22px; color: #253349; line-height: 1.95; font-size: clamp(.98rem, 1.2vw, 1.1rem); }

.bg-ai-intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px clamp(20px, 3vw, 52px); margin-bottom: clamp(15px, 1.7vw, 25px); }
.bg-ai-intro h1 { font-size: clamp(2.1rem, 3.6vw, 3.6rem); }
.bg-ai-intro p { margin: 0; font-size: 1rem; }
.bg-inspector { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(215px, 1fr); align-items: start; gap: clamp(20px, 3.3vw, 56px); }
.bg-detection { margin: 0; }
.bg-viewport { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #212a30; }
.bg-frame { position: absolute; inset: 0; }
.bg-frame img { display: block; width: 100%; height: 100%; }
.bg-detection-box {
  --box-line: #81f09b;
  position: absolute;
  display: block;
  box-sizing: border-box;
  padding: 0;
  border: 2px solid var(--box-line);
  border-radius: 0;
  box-shadow: 0 0 0 1px rgb(6 15 20 / 75%), inset 0 0 0 1px rgb(6 15 20 / 62%);
  background: transparent;
}
.bg-detection-box[data-target="vehicle"] { --box-line: #ffcc72; }
.bg-box-label {
  position: absolute;
  right: -2px;
  bottom: 100%;
  min-width: max-content;
  padding: 0 5px 1px;
  background: var(--box-line);
  color: #10231c;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
}
button.bg-detection-box { cursor: zoom-in; }
button.bg-detection-box:hover { background: rgb(255 255 255 / 8%); }
.shopping-mode button.bg-detection-box:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.bg-detection figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; background: #20292c; color: #eaf0ef; padding: 7px 13px; }
.bg-detection figcaption strong { font-weight: 600; font-size: .92rem; }
.bg-detection figcaption span { color: #bdc9c9; font-size: .8rem; white-space: nowrap; }
.bg-records { border: 0; padding: 0; margin: 0; }
.bg-records legend { width: 100%; padding: 0 0 10px; font-weight: 600; font-size: 1.13rem; }
.bg-view-options { border-top: 1px solid var(--guide-ink); }
.bg-view-option { display: flex; gap: clamp(7px, 1vw, 16px); align-items: center; padding: 10px 5px; border-bottom: 1px solid var(--guide-rule); cursor: pointer; }
.bg-view-option input { order: 2; margin-inline-start: auto; }
.bg-view-option img { flex-shrink: 0; width: clamp(62px, 6.4vw, 94px); height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.bg-view-option:has(:checked) { font-weight: 700; color: var(--guide-blue); }
.bg-view-option:hover { background: #eff2f3; }
.bg-device { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 88px); border-top: 1px solid var(--guide-ink); margin-top: clamp(23px, 3.4vw, 49px); padding-top: 17px; }
.bg-model-id { margin: 3px 0 9px; font: 600 .96rem/1.6 ui-monospace, Consolas, monospace; }
.bg-device-copy > p:last-child { color: var(--guide-text); line-height: 1.85; max-width: 52ch; }
.bg-specs { margin: 0; font-size: .93rem; }
.bg-specs > div { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 1px 12px; padding: 6px 0; border-bottom: 1px solid var(--guide-rule); }
.bg-specs dt { color: var(--guide-text); }
.bg-specs dd { margin: 0; font-weight: 600; }
.bg-specs bdi { font-family: Arial, sans-serif; }
.bg-device-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 19px; margin-top: 15px; }

@media (max-width: 760px) {
  .bg-dash { grid-template-columns: 1fr; gap: 22px; }
  .bg-install-intro p { max-width: none; }
  .bg-shopguide h1 { font-size: clamp(2.05rem, 6.5vw, 2.75rem); }
  .bg-form { margin-top: 18px; }
  .bg-form > * { padding-block: 11px; }
  .bg-letter-body { padding: 16px 18px 20px; }
  .bg-ai-intro { display: block; }
  .bg-ai-intro p { margin-top: 5px; }
  .bg-inspector { grid-template-columns: 1fr; gap: 12px; }
  .bg-records legend { font-size: .96rem; padding-bottom: 6px; }
  .bg-view-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 0; gap: 5px; }
  .bg-view-option { display: grid; grid-template-columns: 15px 1fr; align-content: start; gap: 6px; padding: 5px 0 7px; border-bottom: 2px solid var(--guide-rule); font-size: .86rem; }
  .bg-view-option img { grid-column: 1 / -1; grid-row: 1; width: 100%; height: clamp(52px, 12vw, 85px); }
  .bg-view-option input { grid-row: 2; grid-column: 1; width: 14px; height: 14px; margin: 0; }
  .bg-view-option span { grid-row: 2; grid-column: 2; }
  .bg-view-option:has(:checked) { border-bottom-color: var(--guide-blue); }
  .bg-device { grid-template-columns: 1fr; gap: 11px; }
  .bg-device h2 { font-size: 1.3rem; }
}
