.coach-picker-host {
  display: grid;
  place-items: center;
  min-height: 720px;
  padding: clamp(18px, 4vw, 34px);
  background:
    radial-gradient(circle at 12% 15%, rgba(123, 84, 255, .22), transparent 31%),
    radial-gradient(circle at 88% 84%, rgba(17, 196, 178, .18), transparent 30%),
    linear-gradient(145deg, #11152b, #162544 58%, #0a6670);
}

.coach-picker-demo {
  width: min(100%, 510px);
  padding: 16px 16px 17px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 34px;
  background: rgba(249, 250, 252, .97);
  box-shadow: 0 28px 70px rgba(4, 12, 31, .32), inset 0 1px 0 #fff;
  color: #111827;
}

.coach-appbar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 9px;
  align-items: center;
}

.coach-appbar img {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  object-fit: contain;
}

.coach-appbar strong,
.coach-appbar small { display: block; }
.coach-appbar strong { font-size: .77rem; font-weight: 950; line-height: 1.05; }
.coach-appbar small { margin-top: 2px; color: #818b9c; font-size: .6rem; font-weight: 760; }

.coach-appbar-step,
.coach-appbar-close {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 31px;
  border: 1px solid #e0e4eb;
  border-radius: 999px;
  background: #f4f6f8;
  color: #687386;
  font-size: .66rem;
  font-weight: 900;
}

.coach-appbar-close { min-width: 31px; font-size: .92rem; font-weight: 600; }

.coach-picker-progress {
  height: 4px;
  margin: 11px 0 15px;
  overflow: hidden;
  border-radius: 99px;
  background: #e5e9ef;
}

.coach-picker-progress i {
  display: block;
  width: 11.11%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff9f0a, #7c3aed);
}

.coach-picker-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 2px 11px;
}

.coach-picker-top h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.72rem);
  font-weight: 950;
  letter-spacing: -.035em;
}

.coach-picker-top p {
  margin: 3px 0 0;
  color: #8a93a4;
  font-size: .76rem;
  font-weight: 700;
}

.coach-voice-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 11px;
}

.coach-voice-mode button {
  min-height: 38px;
  padding: 0 9px;
  border: 1px solid #dfe3ea;
  border-radius: 999px;
  background: #fff;
  color: #606b7e;
  cursor: pointer;
  font: inherit;
  font-size: .67rem;
  font-weight: 880;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.coach-voice-mode button.is-active {
  border-color: #f4c45b;
  background: #fff8e8;
  color: #b65a05;
}

.coach-voice-mode button:focus-visible {
  outline: 3px solid rgba(245, 158, 11, .25);
  outline-offset: 2px;
}

.coach-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.coach-choice {
  --coach-accent: #7c3aed;
  --coach-soft: rgba(124, 58, 237, .09);
  position: relative;
  display: block;
  width: 100%;
  height: 205px;
  overflow: hidden;
  padding: 0;
  border: 2px solid #e1e5eb;
  border-radius: 25px;
  background: #fff;
  color: #111827;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: 0 7px 18px rgba(15, 23, 42, .05);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.coach-choice[data-coach="sora"] { --coach-accent: #0f9f7a; --coach-soft: rgba(16, 185, 129, .09); }
.coach-choice[data-coach="zeus"] { --coach-accent: #2563eb; --coach-soft: rgba(37, 99, 235, .09); }
.coach-choice[data-coach="mila"] { --coach-accent: #0891b2; --coach-soft: rgba(8, 145, 178, .09); }

.coach-choice:hover { transform: translateY(-2px); }
.coach-choice:active { transform: scale(.98); }
.coach-choice:focus-visible { outline: 3px solid color-mix(in srgb, var(--coach-accent) 35%, white); outline-offset: 3px; }

.coach-choice.is-selected {
  border-color: color-mix(in srgb, var(--coach-accent) 70%, white);
  background: linear-gradient(180deg, var(--coach-soft), #fff 68%);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--coach-accent) 22%, transparent);
}

.coach-choice-copy {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  display: block;
  padding: 13px 13px 0;
}

.coach-choice-name {
  display: block;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.05;
}

.coach-choice-tone {
  display: block;
  margin-top: 4px;
  color: #8b94a5;
  font-size: .67rem;
  font-weight: 760;
  line-height: 1.15;
}

.coach-choice-media {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -20px;
  width: var(--coach-size, 190px);
  height: var(--coach-size, 190px);
  transform: translateX(-50%);
  pointer-events: none;
}

.coach-choice-media img,
.coach-choice-media video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
  background: transparent;
  filter: drop-shadow(0 8px 8px rgba(14, 23, 43, .15));
}

.coach-choice-media video {
  z-index: 2;
  opacity: 0;
  transition: opacity .18s ease;
  transform: translateZ(0);
}

.coach-choice-media.is-ready video { opacity: 1; }
.coach-choice-media.is-ready img { opacity: 0; }

.coach-choice-bar {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  background: linear-gradient(90deg, color-mix(in srgb, var(--coach-accent) 76%, #111827), var(--coach-accent));
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .09em;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .2s ease, transform .2s ease;
}

.coach-choice.is-selected .coach-choice-bar { opacity: 1; transform: translateY(0); }

.coach-picker-action {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(90deg, #f5a000, #b84a04);
  box-shadow: 0 12px 28px rgba(194, 82, 5, .24);
  font-size: .82rem;
  font-weight: 950;
  transition: background .2s ease, transform .2s ease;
}

.coach-picker-action:hover { transform: translateY(-1px); }
@media (max-width: 560px) {
  .coach-picker-host { min-height: 0; padding: 15px; }
  .coach-picker-demo { padding: 16px 12px 14px; border-radius: 27px; }
  .coach-choice { height: 185px; border-radius: 21px; }
  .coach-choice-copy { padding: 11px 10px 0; }
  .coach-choice-name { font-size: .91rem; }
  .coach-choice-tone { max-width: 100px; font-size: .61rem; }
  .coach-choice-media { bottom: -18px; transform: translateX(-50%) scale(.9); transform-origin: bottom center; }
  .coach-appbar strong { font-size: .72rem; }
  .coach-voice-mode button { font-size: .62rem; }
}

@media (prefers-reduced-motion: reduce) and (min-width: 99999px) {
  .coach-choice:hover,
  .coach-choice:active,
  .coach-picker-action:hover { transform: none; }
  .coach-choice-media video { display: none; }
  .coach-choice-media img { opacity: 1 !important; }
}
