/* ================================================================
   ONOGolf — Swing vs Swing (public view)
   Moved verbatim from ../ONOGolf Swing Vs Swing.html (V1) for the ver2 page;
   ver2 palette/fonts are applied by token overrides in swing-vs-swing.html.
   Builds on styles.css tokens. Prefix: .svs-
   ================================================================ */

.svs-page { background: rgb(var(--bg)); }

/* ---------- Hero band ---------- */
.svs-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: white;
  display: flex;
  flex-direction: column;
  min-height: clamp(540px, 50vw, 720px);
  padding: clamp(48px, 7vw, 96px) 0 clamp(28px, 3vw, 44px);
}
.svs-hero-bg {
  position: absolute; inset: 0; z-index: -2;
}
.svs-hero-bg image-slot { width: 100%; height: 100%; display: block; }
.svs-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; display: block; filter: brightness(1.25); }
.svs-hero-grade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, transparent 55%, rgba(13,15,10,0.45) 100%);
}
.svs-hero-inner { text-align: center; display: flex; flex-direction: column; flex: 1; }
.svs-hero-inner .svs-hero-eyebrow { margin-top: auto; margin-bottom: 18px; align-self: center; justify-content: center; transform: translateY(20px); }
.svs-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: inline-flex; align-items: center; gap: 12px;
}
.svs-hero-eyebrow::before, .svs-hero-eyebrow::after {
  content: ""; width: 34px; height: 1px; background: rgba(255,255,255,0.4);
}
.svs-hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 5.6vw, 81px); line-height: 0.92;
  letter-spacing: -0.03em; margin: 22px 0 0;
  text-shadow: 0 2px 40px rgba(0,0,0,0.45);
}
.svs-hero-title .vs {
  font-style: italic; font-weight: 400; color: rgb(var(--gold));
  margin: 0 0.12em;
}
.svs-hero-lede {
  font-size: clamp(15px, 1.4vw, 19px); line-height: 1.55;
  color: rgba(255,255,255,0.84); max-width: 56ch; margin: 26px auto 0;
}

/* ---------- Challenge selector ---------- */
.svs-challenge-rail {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-top: 36px;
}
.svs-challenge-chip {
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: 12px 20px; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: white; text-align: left;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: all 0.18s;
}
.svs-challenge-chip:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.svs-challenge-chip.active {
  background: rgb(var(--gold)); border-color: rgb(var(--gold)); color: #2a3020;
}
.svs-challenge-chip .cc-cat {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.75;
}
.svs-challenge-chip .cc-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; }

/* ---------- Carousels (position 1 / position 2) ---------- */
.svs-arena-wrap { background: rgb(var(--bg-2)); border-top: 1px solid rgb(var(--border)); }

.svs-positions {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0;
  position: relative;
}
@media (max-width: 820px) { .svs-positions { grid-template-columns: minmax(0, 1fr); } }

.svs-pos {
  padding: 28px clamp(16px, 3vw, 40px) 32px;
  position: relative; min-width: 0;
}
.svs-pos + .svs-pos { border-left: 1px solid rgb(var(--border) / 0.5); }
@media (max-width: 820px) { .svs-pos + .svs-pos { border-left: 0; border-top: 1px solid rgb(var(--border)); } }

/* Single iron straddling the carousel seam */
.svs-divider-club {
  position: absolute; top: 12px; bottom: 12px; left: 50%; transform: translateX(-50%);
  width: 48px; display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 3;
}
.svs-divider-club svg { height: 90%; width: 48px; filter: drop-shadow(0 6px 12px rgb(0 0 0 / 0.16)); }
@media (max-width: 820px) { .svs-divider-club { display: none; } }

.svs-pos-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 18px;
}
.svs-pos-num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgb(var(--fg-muted));
}
.svs-pos-side {
  font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 18px;
}
.svs-pos-left .svs-pos-side  { color: rgb(var(--orange)); }
.svs-pos-right .svs-pos-side { color: rgb(var(--sea)); }

.svs-scrub {
  display: flex; align-items: center; gap: 8px;
}
.svs-scrub-btn {
  width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid rgb(var(--border)); background: rgb(var(--bg-3));
  display: grid; place-items: center; cursor: pointer; color: rgb(var(--fg));
  flex-shrink: 0; transition: background 0.15s;
}
.svs-scrub-btn:hover { background: rgb(var(--bg-2)); }
.svs-scrub-toggle {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgb(var(--border)); background: rgb(var(--bg-3)); color: rgb(var(--fg-muted));
}
.svs-scrub-toggle.playing { background: rgb(var(--accent)); border-color: rgb(var(--accent)); color: white; }

/* The scrolling rail */
.svs-rail {
  overflow: hidden;
  padding: 8px 4px 18px; cursor: grab; width: 100%; max-width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%);
}
/* GPU-composited track — transformed by rAF for sub-pixel-smooth auto-scroll */
.svs-rail-track { display: flex; gap: 18px; width: max-content; will-change: transform; }
.svs-rail.dragging { cursor: grabbing; }

.svs-player {
  flex: 0 0 auto; width: 120px; text-align: center; cursor: pointer;
  user-select: none; -webkit-user-select: none;
}
.svs-player-ring {
  width: 104px; height: 104px; margin: 0 auto; border-radius: 999px;
  position: relative; display: grid; place-items: center;
  transition: transform 0.2s;
}
.svs-player:hover .svs-player-ring { transform: scale(1.05); }
.svs-avatar {
  width: 92px; height: 92px; border-radius: 999px;
  display: grid; place-items: center; overflow: hidden;
  font-family: var(--font-display); font-weight: 700; font-size: 30px; color: white;
  box-shadow: inset 0 -10px 20px rgba(0,0,0,0.18);
}
.svs-avatar img { width: 100%; height: 100%; object-fit: cover; }
.svs-player-ring::after {
  content: ""; position: absolute; inset: -4px; border-radius: 999px;
  border: 2px solid transparent; transition: border-color 0.2s;
}
.svs-player.selected .svs-avatar { box-shadow: inset 0 -10px 20px rgba(0,0,0,0.18), 0 0 0 3px rgb(var(--bg-2)), 0 0 0 5px rgb(var(--accent)); }
.svs-player.selected .svs-player-ring::before {
  content: ""; position: absolute; inset: -9px; border-radius: 999px;
  border: 1px dashed rgb(var(--accent)); opacity: 0.6;
}
.svs-player-rank {
  position: absolute; top: -2px; right: 6px; z-index: 2;
  min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px;
  background: rgb(var(--olive-deep)); color: white;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.svs-player.selected .svs-player-rank { background: rgb(var(--gold)); color: #2a3020; }
.svs-player-check {
  position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 24px; height: 24px; border-radius: 999px;
  background: rgb(var(--accent)); color: white;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  border: 2px solid rgb(var(--bg-2)); box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.svs-player-name {
  font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 1.15;
  margin-top: 12px; color: rgb(var(--fg)); letter-spacing: -0.01em;
}
.svs-player-country {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  color: rgb(var(--fg-muted)); margin-top: 3px;
}

/* ---------- VS Arena ---------- */
.svs-arena { position: relative; padding: 8px clamp(16px, 3vw, 40px) 48px; }
.svs-stage {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch;
  position: relative;
}
@media (max-width: 820px) { .svs-stage { grid-template-columns: 1fr; gap: 64px; } }

.svs-video-col { position: relative; }
.svs-video-frame {
  position: relative; aspect-ratio: 16/9; background: #0d0f0a;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgb(var(--border)); box-shadow: var(--shadow-lifted);
}
.svs-video-frame.left  { border-top: 3px solid rgb(var(--orange)); }
.svs-video-frame.right { border-top: 3px solid rgb(var(--sea)); }
.svs-video-frame iframe, .svs-video-frame > div { position: absolute; inset: 0; width: 100%; height: 100%; }
.svs-video-empty {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: rgba(255,255,255,0.5); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  padding: 20px;
}

.svs-video-tag {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.svs-video-tag .vt-av {
  width: 38px; height: 38px; border-radius: 999px; flex-shrink: 0;
  display: grid; place-items: center; color: white;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; overflow: hidden;
}
.svs-video-tag .vt-av img { width: 100%; height: 100%; object-fit: cover; }
.svs-video-tag .vt-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1; }
.svs-video-tag .vt-meta { font-family: var(--font-mono); font-size: 10px; color: rgb(var(--fg-muted)); letter-spacing: 0.08em; margin-top: 3px; }
.svs-video-col.is-right .svs-video-tag { flex-direction: row-reverse; text-align: right; }

.svs-vid-controls {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
}
.svs-video-col.is-right .svs-vid-controls { flex-direction: row-reverse; }
.svs-ctrl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgb(var(--border)); background: rgb(var(--bg-3)); color: rgb(var(--fg));
  font-family: var(--font-ui); font-size: 12px; font-weight: 500;
  transition: all 0.15s;
}
.svs-ctrl-btn:hover { background: rgb(var(--bg-2)); }
.svs-ctrl-btn.solid { background: rgb(var(--fg)); color: rgb(var(--bg)); border-color: rgb(var(--fg)); }

/* ---------- VS center medallion ---------- */
.svs-vs {
  align-self: center; justify-self: center; position: relative; z-index: 5;
  width: 132px; padding: 0 8px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
@media (max-width: 820px) {
  .svs-vs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
}
.svs-vs-ring {
  width: 108px; height: 108px; border-radius: 999px; position: relative;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #2a3020, #0d0f0a);
  border: 2px solid rgb(var(--gold));
  box-shadow: 0 0 0 6px rgba(191,154,56,0.12), 0 12px 30px rgba(0,0,0,0.35);
}
.svs-vs-ring::before, .svs-vs-ring::after {
  content: ""; position: absolute; border-radius: 999px; inset: -2px;
  border: 2px solid rgb(var(--gold)); opacity: 0;
}
.svs-vs-text {
  position: relative; z-index: 2;
  font-family: var(--font-display); font-weight: 800; font-style: italic;
  font-size: 42px; color: rgb(var(--gold)); letter-spacing: -0.02em; line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.55), 0 0 18px rgba(13,15,10,0.8);
}
.svs-vs-clubs { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
/* idle slow pulse */
.svs-vs-ring { animation: svsPulse 3.4s ease-in-out infinite; }
@keyframes svsPulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(191,154,56,0.10), 0 12px 30px rgba(0,0,0,0.35); }
  50%      { box-shadow: 0 0 0 12px rgba(191,154,56,0.04), 0 12px 34px rgba(0,0,0,0.4); }
}
/* clash when both playing */
.svs-vs.clash .svs-vs-ring {
  animation: svsClash 0.9s ease-in-out infinite; border-color: rgb(var(--orange));
}
.svs-vs.clash .svs-vs-text { animation: svsShake 0.9s ease-in-out infinite; }
.svs-vs.clash .svs-vs-ring::before { animation: svsRipple 0.9s ease-out infinite; }
.svs-vs.clash .svs-vs-ring::after  { animation: svsRipple 0.9s ease-out infinite 0.45s; }
@keyframes svsClash {
  0%,100% { box-shadow: 0 0 0 6px rgba(196,112,58,0.25), 0 0 40px rgba(191,154,56,0.5); transform: scale(1); }
  50%     { box-shadow: 0 0 0 14px rgba(196,112,58,0.12), 0 0 64px rgba(191,154,56,0.75); transform: scale(1.06); }
}
@keyframes svsShake {
  0%,100% { transform: rotate(-4deg) scale(1); }
  50%     { transform: rotate(4deg) scale(1.08); }
}
@keyframes svsRipple {
  0%   { opacity: 0.7; inset: -2px; }
  100% { opacity: 0; inset: -26px; }
}

.svs-vs-play {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: rgb(var(--gold)); color: #2a3020; border: none;
  font-family: var(--font-ui); font-weight: 700; font-size: 13px; letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(191,154,56,0.3); transition: all 0.15s;
}
.svs-vs-play:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(191,154,56,0.4); }
.svs-vs-play.playing { background: rgb(var(--olive-deep)); color: white; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.svs-vs-extra {
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
}
.svs-vs-mini {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  padding: 5px 9px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgb(var(--border)); background: rgb(var(--bg-3)); color: rgb(var(--fg-muted));
}
.svs-vs-mini.active { background: rgb(var(--accent)); border-color: rgb(var(--accent)); color: white; }

/* ---------- Breakdown dropdowns ---------- */
.svs-breakdowns {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
@media (max-width: 820px) { .svs-breakdowns { grid-template-columns: 1fr; } }
.svs-bd-col {
  background: rgb(var(--bg-3)); border: 1px solid rgb(var(--border));
  border-radius: var(--r-lg); overflow: hidden; align-self: start;
  transition: box-shadow 0.15s;
}
.svs-bd-col.open { box-shadow: var(--shadow-card); }
.svs-bd-head {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; cursor: pointer; background: none; border: 0; text-align: left;
  transition: background 0.15s;
}
.svs-bd-head:hover { background: rgb(var(--bg-2)); }
.svs-bd-dot { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; }
.svs-bd-htext { display: flex; flex-direction: column; gap: 2px; }
.svs-bd-htitle { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: rgb(var(--fg)); letter-spacing: -0.01em; }
.svs-bd-hname { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(var(--fg-muted)); }
.svs-bd-chev { margin-left: auto; color: rgb(var(--fg-muted)); font-size: 14px; transition: transform 0.2s; }
.svs-bd-col.open .svs-bd-chev { transform: rotate(180deg); }
.svs-bd-body { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 16px; }
.svs-bd-list { display: flex; flex-direction: column; gap: 8px; }
.svs-bd-item {
  display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start;
  padding: 12px 14px; border-radius: 12px; cursor: pointer;
  background: rgb(var(--bg-3)); border: 1px solid rgb(var(--border));
  transition: all 0.15s; text-align: left; width: 100%;
}
.svs-bd-item:hover { border-color: rgb(var(--accent)); background: rgb(var(--bg-2)); }
.svs-bd-time {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: rgb(var(--accent)); padding-top: 1px;
}
.svs-bd-label { font-family: var(--font-ui); font-weight: 600; font-size: 14px; color: rgb(var(--fg)); display: block; }
.svs-bd-note { display: block; font-size: 12px; color: rgb(var(--fg-muted)); line-height: 1.45; margin-top: 2px; }

/* ---------- Stats compare ---------- */
.svs-stats { background: rgb(var(--olive-deep)); color: rgba(255,255,255,0.92); }
.svs-stats-head { text-align: center; margin-bottom: 40px; }
.svs-stats-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px,3.5vw,44px); color: white; letter-spacing: -0.02em; }
.svs-stats-title .it { font-style: italic; color: rgb(var(--gold)); }
.svs-stats-players {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  max-width: 560px; margin: 22px auto 0;
}
.svs-sp { display: flex; align-items: center; gap: 12px; }
.svs-sp.right { flex-direction: row-reverse; text-align: right; }
.svs-sp-av {
  width: 48px; height: 48px; border-radius: 999px; flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center; color: white; font-family: var(--font-display); font-weight: 700; font-size: 18px;
  border: 2px solid rgba(255,255,255,0.3);
}
.svs-sp-av img { width: 100%; height: 100%; object-fit: cover; }
.svs-sp-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: white; line-height: 1.1; }
.svs-sp-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: rgba(255,255,255,0.55); margin-top: 4px; }
.svs-sp-vs { font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 22px; color: rgb(var(--gold)); }

.svs-stat-rows { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.svs-stat-row { }
.svs-stat-label {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px;
}
.svs-stat-name { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.svs-stat-vals { display: flex; gap: 18px; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.svs-stat-vals .l { color: rgb(var(--orange)); }
.svs-stat-vals .r { color: rgb(58,150,180); }
.svs-stat-bar {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px; position: relative;
  height: 16px;
}
.svs-stat-track { background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; position: relative; }
.svs-stat-track.l { display: flex; justify-content: flex-end; }
.svs-stat-fill { height: 100%; border-radius: 4px; transition: width 0.6s cubic-bezier(.2,.7,.2,1); }
.svs-stat-fill.l { background: linear-gradient(90deg, rgba(196,112,58,0.4), rgb(196,112,58)); }
.svs-stat-fill.r { background: linear-gradient(90deg, rgb(58,150,180), rgba(58,150,180,0.4)); }
.svs-stat-avg {
  position: absolute; top: -4px; bottom: -4px; width: 2px; background: rgba(255,255,255,0.5);
  z-index: 2;
}
.svs-stat-avg::after {
  content: "TOUR AVG"; position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); white-space: nowrap;
}
.svs-stat-win { color: rgb(var(--gold)) !important; }
.svs-stat-win-dot { display: inline-block; width: 5px; height: 5px; border-radius: 999px; background: rgb(var(--gold)); margin-left: 4px; vertical-align: middle; }

/* ---------- AI Coach chat ---------- */
.svs-ai { max-width: 880px; margin: 0 auto; }
.svs-ai-card {
  background: rgb(var(--bg-3)); border: 1px solid rgb(var(--border)); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-card);
}
.svs-ai-head {
  display: flex; align-items: center; gap: 14px; padding: 20px 24px;
  border-bottom: 1px solid rgb(var(--border)); background: rgb(var(--bg-2));
}
.svs-ai-mark {
  width: 40px; height: 40px; border-radius: 999px; flex-shrink: 0;
  background: rgb(var(--olive)); color: white; display: grid; place-items: center;
  position: relative;
}
.svs-ai-mark::after { content: ""; position: absolute; inset: 4px; border: 1px dashed rgba(255,255,255,0.5); border-radius: 999px; }
.svs-ai-h h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0; }
.svs-ai-h p { font-size: 12px; color: rgb(var(--fg-muted)); margin: 2px 0 0; }
.svs-ai-body { padding: 20px 24px; max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.svs-msg { display: flex; gap: 10px; max-width: 86%; }
.svs-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.svs-msg-av {
  width: 30px; height: 30px; border-radius: 999px; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 12px; color: white;
}
.svs-msg.coach .svs-msg-av { background: rgb(var(--olive)); }
.svs-msg.user .svs-msg-av  { background: rgb(var(--gold)); color: #2a3020; }
.svs-msg-bubble {
  padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.55;
}
.svs-msg.coach .svs-msg-bubble { background: rgb(var(--bg-2)); border: 1px solid rgb(var(--border)); border-top-left-radius: 4px; }
.svs-msg.user .svs-msg-bubble  { background: rgb(var(--olive)); color: white; border-top-right-radius: 4px; }
.svs-ai-typing { display: inline-flex; gap: 4px; }
.svs-ai-typing span { width: 6px; height: 6px; border-radius: 999px; background: rgb(var(--fg-muted)); animation: svsType 1.2s infinite; }
.svs-ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.svs-ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes svsType { 0%,60%,100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.svs-ai-suggest { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 24px 14px; }
.svs-ai-sg {
  font-size: 12px; padding: 7px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgb(var(--border)); background: rgb(var(--bg-2)); color: rgb(var(--fg-muted));
  transition: all 0.15s;
}
.svs-ai-sg:hover { border-color: rgb(var(--accent)); color: rgb(var(--accent)); }
.svs-ai-input {
  display: flex; gap: 10px; padding: 16px 24px; border-top: 1px solid rgb(var(--border)); background: rgb(var(--bg-2));
}
.svs-ai-input input {
  flex: 1; padding: 12px 16px; border-radius: 999px; border: 1px solid rgb(var(--border));
  background: rgb(var(--bg-3)); color: rgb(var(--fg)); font-family: var(--font-ui); font-size: 14px;
}
.svs-ai-input input:focus { outline: none; border-color: rgb(var(--accent)); }
.svs-ai-send {
  width: 44px; height: 44px; border-radius: 999px; flex-shrink: 0; cursor: pointer; border: none;
  background: rgb(var(--accent)); color: white; display: grid; place-items: center;
}
.svs-ai-send:disabled { opacity: 0.4; cursor: default; }

/* section heading shared */
.svs-sec-eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgb(var(--accent)); display: flex; align-items: center; gap: 10px; justify-content: center;
}
.svs-sec-eyebrow::before, .svs-sec-eyebrow::after { content: ""; width: 24px; height: 1px; background: rgb(var(--accent)); }
