:root {
  --guide: #0b7373;
  --guide-glow: rgba(20, 184, 166, 0.55);
  --guide-soft: rgba(20, 184, 166, 0.22);
}

.mlb-demo .mlb-panel--store .mlb-action--scan { display: none; }

.guide-bar {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
@media (min-width: 900px) {
  .guide-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 20px;
  }
}
.guide-start {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: 84px;
  padding: 14px 20px;
  border: 0;
  border-radius: 18px;
  background: var(--guide);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(11, 115, 115, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.guide-start:hover { background: #095f5f; transform: translateY(-1px); }
.guide-start[hidden] { display: none; }
.guide-start__icon { width: 40px; height: 40px; flex: none; }
.guide-start__text { display: flex; flex-direction: column; line-height: 1.45; }
.guide-start__main { font-size: 1.1rem; font-weight: 700; }
.guide-start__sub { font-size: 0.9rem; font-weight: 700; color: #d6f5f1; }
@media (min-width: 768px) {
  .guide-start__main { font-size: 1.25rem; }
}
.guide-done {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 18px;
  border-radius: 14px;
  background: #e3f2f1;
  color: var(--guide);
  font-weight: 700;
  font-size: 0.95rem;
}
.guide-done[hidden] { display: none; }

.guide-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #dde3ea;
}
.guide-hint {
  flex: 1 1 260px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #26313d;
}
.guide-hint[hidden] { display: none; }
.guide-hint__label {
  flex: none;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--guide);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.guide-bar.is-off .guide-info { justify-content: flex-end; }

.guide-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-left: auto;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: #26313d;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.guide-toggle__track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #b8c2cc;
  transition: background-color 0.2s ease;
}
.guide-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.guide-toggle[aria-checked='true'] .guide-toggle__track { background: var(--guide); }
.guide-toggle[aria-checked='true'] .guide-toggle__thumb { transform: translateX(20px); }
.guide-toggle__state { min-width: 2.2em; text-align: left; }

@keyframes guide-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--guide), 0 0 0 8px var(--guide-soft), 0 0 12px 4px var(--guide-soft); transform: scale(1); }
  50% { box-shadow: 0 0 0 4px var(--guide), 0 0 0 14px var(--guide-glow), 0 0 36px 16px var(--guide-glow); transform: scale(1.03); }
}

@keyframes guide-pulse-inset {
  0%, 100% { box-shadow: inset 0 0 0 4px var(--guide), inset 0 0 8px 4px var(--guide-soft); }
  50% { box-shadow: inset 0 0 0 6px #14b8a6, inset 0 0 24px 14px var(--guide-glow); }
}

@keyframes guide-flash {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.65; }
}

.guide-start.is-active { animation: guide-pulse 1.2s ease-in-out infinite; }

.mlb-guide-on .is-guide,
.mlb-guide-on .is-guide-key,
.view-tabs button.is-guide-tab {
  position: relative;
  z-index: 1;
  animation: guide-pulse-inset 1.2s ease-in-out infinite;
}
.mlb-guide-on .is-guide::after,
.mlb-guide-on .is-guide-key::after,
.view-tabs button.is-guide-tab::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95), rgba(204, 251, 241, 0.7));
  pointer-events: none;
  animation: guide-flash 1.2s ease-in-out infinite;
}

.mlb-guide-on .is-guide-sub {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9), inset 0 0 0 4px var(--guide);
}

.mlb-guide-on .mlb-phone__info.is-guide,
.mlb-guide-on .mlb-phone__history.is-guide { border-radius: 6px; }

.mlb-guide-on .mlb-history__close.is-guide { animation: guide-pulse 1.2s ease-in-out infinite; }
.mlb-guide-on .mlb-history__close.is-guide::after { display: none; }

.view-tabs button.is-guide-tab { color: var(--guide); }
.view-tabs button.is-guide-tab[aria-selected='true'] { color: #fff; }
.view-tabs__badge { z-index: 2; }

.mlb-guide-on .is-guide:focus-visible,
.mlb-guide-on .is-guide-key:focus-visible,
.guide-start:focus-visible,
.view-tabs button.is-guide-tab:focus-visible {
  outline: 3px solid #b5541a;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .guide-start.is-active,
  .mlb-guide-on .is-guide,
  .mlb-guide-on .is-guide-key,
  .mlb-guide-on .mlb-history__close.is-guide,
  .view-tabs button.is-guide-tab { animation: none !important; transform: none !important; }
  .mlb-guide-on .is-guide::after,
  .mlb-guide-on .is-guide-key::after,
  .view-tabs button.is-guide-tab::after { display: none; }
  .guide-start.is-active { box-shadow: 0 0 0 3px #fff, 0 0 0 7px var(--guide), 0 0 16px 8px var(--guide-soft); }
  .mlb-guide-on .is-guide,
  .mlb-guide-on .is-guide-key,
  .view-tabs button.is-guide-tab { box-shadow: inset 0 0 0 5px var(--guide), inset 0 0 14px 8px var(--guide-soft); }
  .mlb-guide-on .mlb-history__close.is-guide { box-shadow: 0 0 0 4px var(--guide), 0 0 0 8px var(--guide-soft); }
}
