/* YouTube Sync — landing page animated demo (scoped mock UI) */

:root,
:root[data-theme="dark"] {
  --ys-demo-stage-bg: #0f0f0f;
  --ys-demo-stage-border: #2a2a2a;
  --ys-demo-stage-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  --ys-demo-chrome-bg: #1e1e1e;
  --ys-demo-chrome-border: #333;
  --ys-demo-url-bg: #121212;
  --ys-demo-url-border: #333;
  --ys-demo-url-text: #aaa;
  --ys-demo-body-bg: #0f0f0f;
  --ys-demo-title-color: #f1f1f1;
  --ys-demo-muted-color: #aaa;
  --ys-demo-secondary-bg: #0f0f0f;
  --ys-demo-secondary-border: #272727;
  --ys-demo-segment-bg: #141414;
  --ys-demo-segment-bg-hover: #1a1a1a;
  --ys-demo-segment-bg-active: #1c1c1c;
  --ys-demo-segment-border: #333;
  --ys-demo-segment-border-hover: #444;
  --ys-demo-segment-border-active: #555;
  --ys-demo-segment-text: #aaa;
  --ys-demo-segment-text-hover: #ddd;
  --ys-demo-segment-text-active: #f1f1f1;
  --ys-demo-settings-backdrop: rgba(0, 0, 0, 0.5);
  --ys-demo-scrollbar-thumb: rgba(255, 255, 255, 0.14);
  --ys-demo-context-bg: #212121;
  --ys-demo-context-border: rgba(255, 255, 255, 0.12);
  --ys-demo-context-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 6px 20px rgba(0, 0, 0, 0.55);
  --ys-yt-sync-bg: rgba(15, 15, 15, 0.88);
  --ys-yt-sync-border: rgba(255, 255, 255, 0.1);
  --ys-yt-sync-text: #f1f1f1;
  --ys-yt-sync-text-secondary: #aaaaaa;
  --ys-yt-sync-accent: #3ea6ff;
  --ys-yt-sync-shadow: rgba(0, 0, 0, 0.4);
  --ys-yt-sync-card-bg: rgba(255, 255, 255, 0.06);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --ys-demo-stage-bg: #ffffff;
    --ys-demo-stage-border: #dadce0;
    --ys-demo-stage-shadow:
      0 16px 48px rgba(0, 0, 0, 0.1),
      0 0 0 1px rgba(0, 0, 0, 0.05) inset;
    --ys-demo-chrome-bg: #f1f3f4;
    --ys-demo-chrome-border: #dadce0;
    --ys-demo-url-bg: #ffffff;
    --ys-demo-url-border: #dadce0;
    --ys-demo-url-text: #606060;
    --ys-demo-body-bg: #ffffff;
    --ys-demo-title-color: #0f0f0f;
    --ys-demo-muted-color: #606060;
    --ys-demo-secondary-bg: #fafafa;
    --ys-demo-secondary-border: #e5e5e5;
    --ys-demo-segment-bg: #f1f1f1;
    --ys-demo-segment-bg-hover: #e8e8e8;
    --ys-demo-segment-bg-active: #ffffff;
    --ys-demo-segment-border: #dadce0;
    --ys-demo-segment-border-hover: #c4c4c4;
    --ys-demo-segment-border-active: #909090;
    --ys-demo-segment-text: #606060;
    --ys-demo-segment-text-hover: #0f0f0f;
    --ys-demo-segment-text-active: #0f0f0f;
    --ys-demo-settings-backdrop: rgba(0, 0, 0, 0.35);
    --ys-demo-scrollbar-thumb: rgba(0, 0, 0, 0.18);
    --ys-demo-context-bg: #ffffff;
    --ys-demo-context-border: rgba(0, 0, 0, 0.12);
    --ys-demo-context-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 6px 20px rgba(0, 0, 0, 0.12);
    --ys-yt-sync-bg: rgba(255, 255, 255, 0.98);
    --ys-yt-sync-border: rgba(0, 0, 0, 0.1);
    --ys-yt-sync-text: #0f0f0f;
    --ys-yt-sync-text-secondary: #606060;
    --ys-yt-sync-accent: #065fd4;
    --ys-yt-sync-shadow: rgba(0, 0, 0, 0.12);
    --ys-yt-sync-card-bg: rgba(0, 0, 0, 0.05);
  }
}

:root[data-theme="light"] {
  --ys-demo-stage-bg: #ffffff;
  --ys-demo-stage-border: #dadce0;
  --ys-demo-stage-shadow:
    0 16px 48px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.05) inset;
  --ys-demo-chrome-bg: #f1f3f4;
  --ys-demo-chrome-border: #dadce0;
  --ys-demo-url-bg: #ffffff;
  --ys-demo-url-border: #dadce0;
  --ys-demo-url-text: #606060;
  --ys-demo-body-bg: #ffffff;
  --ys-demo-title-color: #0f0f0f;
  --ys-demo-muted-color: #606060;
  --ys-demo-secondary-bg: #fafafa;
  --ys-demo-secondary-border: #e5e5e5;
  --ys-demo-segment-bg: #f1f1f1;
  --ys-demo-segment-bg-hover: #e8e8e8;
  --ys-demo-segment-bg-active: #ffffff;
  --ys-demo-segment-border: #dadce0;
  --ys-demo-segment-border-hover: #c4c4c4;
  --ys-demo-segment-border-active: #909090;
  --ys-demo-segment-text: #606060;
  --ys-demo-segment-text-hover: #0f0f0f;
  --ys-demo-segment-text-active: #0f0f0f;
  --ys-demo-settings-backdrop: rgba(0, 0, 0, 0.35);
  --ys-demo-scrollbar-thumb: rgba(0, 0, 0, 0.18);
  --ys-demo-context-bg: #ffffff;
  --ys-demo-context-border: rgba(0, 0, 0, 0.12);
  --ys-demo-context-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 6px 20px rgba(0, 0, 0, 0.12);
  --ys-yt-sync-bg: rgba(255, 255, 255, 0.98);
  --ys-yt-sync-border: rgba(0, 0, 0, 0.1);
  --ys-yt-sync-text: #0f0f0f;
  --ys-yt-sync-text-secondary: #606060;
  --ys-yt-sync-accent: #065fd4;
  --ys-yt-sync-shadow: rgba(0, 0, 0, 0.12);
  --ys-yt-sync-card-bg: rgba(0, 0, 0, 0.05);
}

.ys-demo-section {
  padding: 8px 0 10px;
  background: linear-gradient(180deg, var(--surface-deep, #0a0a0a) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.ys-demo-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 32px;
}

.ys-demo-scale-host {
  position: relative;
  width: 100%;
  overflow: hidden;
  touch-action: none;
}

.ys-demo-scale-host.is-pinch-zoomed {
  overflow: visible;
}

.ys-demo-scale-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 900px;
  transform-origin: top left;
  will-change: transform;
}

.ys-demo-scale-host:not(.is-compact) .ys-demo-scale-inner {
  position: static;
  width: 100%;
  transform: none !important;
  will-change: auto;
}

.ys-demo-scale-host:not(.is-compact) {
  touch-action: auto;
}

.ys-demo-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ys-demo-stage-border);
  box-shadow: var(--ys-demo-stage-shadow);
  background: var(--ys-demo-stage-bg);
}

.ys-demo-scale-host.is-compact .ys-demo-stage {
  width: 900px;
}

.ys-demo-browser {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  font-family: "Roboto", "Arial", sans-serif;
}

.ys-demo-chrome {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--ys-demo-chrome-bg);
  border-bottom: 1px solid var(--ys-demo-chrome-border);
}

.ys-demo-dots {
  display: flex;
  gap: 5px;
}

.ys-demo-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #444;
}

.ys-demo-dots span:nth-child(1) { background: #ff5f57; }
.ys-demo-dots span:nth-child(2) { background: #febc2e; }
.ys-demo-dots span:nth-child(3) { background: #28c840; }

.ys-demo-url {
  flex: 1;
  min-width: 0;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--ys-demo-url-bg);
  border: 1px solid var(--ys-demo-url-border);
  font-size: 11px;
  color: var(--ys-demo-url-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ys-demo-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr min(36%, 280px);
  gap: 0;
  background: var(--ys-demo-body-bg);
}

.ys-demo-primary {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 8px 12px;
}

.ys-demo-player {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 45%, #0f3460 100%);
}

.ys-demo-player-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background: #000;
}

.ys-demo-player-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: #000;
  transition: opacity 0.35s ease;
}

.ys-demo-player.has-video .ys-demo-player-video {
  opacity: 1;
}

.ys-demo-player.has-video {
  background: #000;
}

.ys-demo-play-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.85;
}

.ys-demo-play-icon svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.ys-demo-player.is-playing .ys-demo-play-icon {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.ys-demo-player.is-user-paused .ys-demo-play-icon {
  opacity: 0.92;
  transform: scale(1);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.ys-demo-player-hit {
  position: absolute;
  inset: 0;
  z-index: 6;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.ys-demo-player-hit:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: -3px;
}

.ys-demo-player.is-fast-forwarding .ys-demo-progress-fill {
  opacity: 0.72;
  filter: saturate(0.85);
}

.ys-demo-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 3;
  pointer-events: none;
}

.ys-demo-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  will-change: width;
  position: relative;
}

.ys-demo-progress-head {
  position: absolute;
  top: 50%;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  transform: translate(50%, -50%);
  box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.35);
}

.ys-demo-player-time,
.ys-demo-widget-time {
  transition: opacity 0.2s ease;
}

.ys-demo-player-time.is-ticking,
.ys-demo-widget-time.is-ticking {
  opacity: 0.72;
}

.ys-demo-player-time {
  position: absolute;
  right: 8px;
  bottom: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  z-index: 3;
  pointer-events: none;
}

.ys-demo-overlay-layer {
  display: none;
}

/* Reveal — same transition pattern as tab panes (opacity 0→1 over 1s) */

.ys-demo-video-overlay {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  max-height: 58%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  overflow: visible;
  transition:
    opacity 1s ease-in,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 1s ease-in,
    top 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    right 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    bottom 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    left 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ys-demo-video-overlay.layout-bottom-full {
  left: 8px;
  right: 8px;
  bottom: 22px;
  top: auto;
  width: auto;
  max-width: none;
}

.ys-demo-video-overlay.layout-bottom-left {
  left: 8px;
  right: auto;
  bottom: 22px;
  top: auto;
  width: 30%;
  min-width: 52px;
  max-width: 46%;
}

.ys-demo-video-overlay.layout-bottom-right {
  left: auto;
  right: 8px;
  bottom: 22px;
  top: auto;
  width: 30%;
  min-width: 52px;
  max-width: 46%;
}

.ys-demo-video-overlay.layout-top-full {
  left: 8px;
  right: 8px;
  top: 8px;
  bottom: auto;
  width: auto;
  max-width: none;
}

.ys-demo-video-overlay.layout-top-left {
  left: 8px;
  right: auto;
  top: 8px;
  bottom: auto;
  width: 30%;
  min-width: 52px;
  max-width: 46%;
}

.ys-demo-video-overlay.layout-top-right {
  left: auto;
  right: 8px;
  top: 8px;
  bottom: auto;
  width: 30%;
  min-width: 52px;
  max-width: 46%;
}

.ys-demo-video-overlay.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ys-demo-overlay-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  overflow: visible;
}

.ys-demo-overlay-comment {
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  font-size: 9px;
  line-height: 1.38;
  overflow: hidden;
  margin: 0;
}

.ys-demo-overlay-comment.is-visible {
  opacity: 1;
}

.ys-demo-overlay-comment strong {
  color: #fff;
  font-weight: 600;
  margin-right: 6px;
}

.ys-demo-overlay-comment span {
  color: rgba(255, 255, 255, 0.88);
}

.ys-demo-overlay-comment em {
  font-style: normal;
  color: #7ecbff;
  font-weight: 600;
  margin-right: 6px;
}

.ys-demo-meta {
  flex-shrink: 0;
  padding: 8px 2px 0;
}

.ys-demo-video-title {
  font-size: clamp(11px, 1.4vw, 14px);
  font-weight: 600;
  color: var(--ys-demo-title-color);
  line-height: 1.3;
  margin-bottom: 4px;
}

.ys-demo-channel {
  font-size: 10px;
  color: var(--ys-demo-muted-color);
}

.ys-demo-secondary {
  min-width: 0;
  border-left: 1px solid var(--ys-demo-secondary-border);
  background: var(--ys-demo-secondary-bg);
  padding: 8px 8px 8px 6px;
  display: flex;
  flex-direction: column;
}

/* ── Extension widget (dark theme, from styles.css) ── */

.ys-demo-widget {
  position: relative;
  --yt-sync-bg: var(--ys-yt-sync-bg);
  --yt-sync-border: var(--ys-yt-sync-border);
  --yt-sync-text: var(--ys-yt-sync-text);
  --yt-sync-text-secondary: var(--ys-yt-sync-text-secondary);
  --yt-sync-accent: var(--ys-yt-sync-accent);
  --yt-sync-shadow: var(--ys-yt-sync-shadow);
  --yt-sync-card-bg: var(--ys-yt-sync-card-bg);

  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid var(--yt-sync-border);
  background: var(--yt-sync-bg);
  box-shadow: 0 4px 16px var(--yt-sync-shadow);
  overflow: hidden;
  font-family: "Roboto", "Arial", sans-serif;
}

.ys-demo-widget-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--yt-sync-border);
  flex-shrink: 0;
}

.ys-demo-widget-icon {
  font-size: 14px;
  line-height: 1;
}

.ys-demo-widget-title {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--yt-sync-text);
}

.ys-demo-widget-time {
  font-size: 10px;
  font-weight: 500;
  color: var(--yt-sync-accent);
  font-variant-numeric: tabular-nums;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--yt-sync-card-bg);
}

.ys-demo-widget-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ys-demo-widget-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--yt-sync-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition:
    color 0.35s ease,
    background 0.35s ease,
    transform 0.25s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.ys-demo-widget-btn svg {
  width: 14px;
  height: 14px;
}

.ys-demo-widget-btn.is-highlight,
.ys-demo-widget-btn.is-active {
  color: var(--yt-sync-accent);
  background: var(--yt-sync-card-bg);
  transform: scale(1.06);
}

/* Settings modal — bottom sheet (matches extension widget) */

.ys-demo-settings-modal {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.ys-demo-settings-modal.ys-demo-settings-modal--open {
  opacity: 1;
  pointer-events: auto;
}

.ys-demo-settings-backdrop {
  position: absolute;
  inset: 0;
  background: var(--ys-demo-settings-backdrop);
  backdrop-filter: blur(2px);
}

.ys-demo-settings-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 88%;
  display: flex;
  flex-direction: column;
  border-radius: 14px 14px 0 0;
  background: var(--yt-sync-bg);
  border-top: 1px solid var(--yt-sync-border);
  box-shadow: 0 -8px 32px var(--yt-sync-shadow);
}

.ys-demo-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--yt-sync-border);
  flex-shrink: 0;
}

.ys-demo-settings-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--yt-sync-text);
}

.ys-demo-settings-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: var(--yt-sync-card-bg);
  color: var(--yt-sync-text-secondary);
  font-size: 22px;
  line-height: 1;
  cursor: default;
  font-family: inherit;
}

.ys-demo-settings-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px 18px;
}

.ys-demo-settings-section-title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--yt-sync-text);
}

.ys-demo-overlay-layout-hint {
  display: block;
  margin: 8px 0 0;
  font-size: 10px;
  line-height: 1.45;
  color: var(--yt-sync-text-secondary);
}

.ys-demo-overlay-layout-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ys-demo-overlay-layout-label-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--yt-sync-text);
}

.ys-demo-overlay-layout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 6px;
}

.ys-demo-overlay-layout-cell {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 6px;
  border: 2px solid var(--yt-sync-border);
  border-radius: 8px;
  background: var(--yt-sync-card-bg);
  cursor: default;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.ys-demo-overlay-layout-cell--active {
  border-color: var(--yt-sync-accent);
  background: rgba(62, 166, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(62, 166, 255, 0.4);
}

.ys-demo-overlay-layout-cell.is-highlight {
  border-color: rgba(62, 166, 255, 0.75);
  box-shadow: 0 0 0 2px rgba(62, 166, 255, 0.28);
}

.ys-demo-overlay-layout-preview {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 32px;
  border: 1px solid var(--yt-sync-border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
}

.ys-demo-overlay-layout-preview::before {
  content: "";
  position: absolute;
  height: 5px;
  border-radius: 2px;
  background: var(--yt-sync-text-secondary);
  opacity: 0.55;
}

.ys-demo-overlay-layout-cell--active .ys-demo-overlay-layout-preview::before {
  background: var(--yt-sync-accent);
  opacity: 1;
}

.ys-demo-overlay-layout-cell[data-layout="top-left"] .ys-demo-overlay-layout-preview::before {
  top: 5px;
  left: 5px;
  width: 30%;
}

.ys-demo-overlay-layout-cell[data-layout="top-full"] .ys-demo-overlay-layout-preview::before {
  top: 5px;
  left: 5px;
  right: 5px;
  width: auto;
}

.ys-demo-overlay-layout-cell[data-layout="top-right"] .ys-demo-overlay-layout-preview::before {
  top: 5px;
  right: 5px;
  width: 30%;
}

.ys-demo-overlay-layout-cell[data-layout="bottom-left"] .ys-demo-overlay-layout-preview::before {
  bottom: 5px;
  left: 5px;
  width: 30%;
}

.ys-demo-overlay-layout-cell[data-layout="bottom-full"] .ys-demo-overlay-layout-preview::before {
  bottom: 5px;
  left: 5px;
  right: 5px;
  width: auto;
}

.ys-demo-overlay-layout-cell[data-layout="bottom-right"] .ys-demo-overlay-layout-preview::before {
  bottom: 5px;
  right: 5px;
  width: 30%;
}

.ys-demo-toggle {
  position: relative;
  width: 30px;
  height: 16px;
  flex-shrink: 0;
}

.ys-demo-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: var(--yt-sync-border);
  transition: background 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.ys-demo-toggle.is-on .ys-demo-toggle-track {
  background: var(--yt-sync-accent);
}

.ys-demo-toggle-thumb {
  position: absolute;
  width: 12px;
  height: 12px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.32);
  transition: transform 0.45s cubic-bezier(0.34, 1.25, 0.64, 1);
}

.ys-demo-toggle.is-on .ys-demo-toggle-thumb {
  transform: translateX(14px);
}

.ys-demo-overlay-switch.is-highlight .ys-demo-toggle-track {
  box-shadow: 0 0 0 2px rgba(62, 166, 255, 0.35);
}

.ys-demo-widget-tabs {
  display: flex;
  border-bottom: 1px solid var(--yt-sync-border);
  flex-shrink: 0;
}

.ys-demo-widget-tab {
  flex: 1;
  padding: 7px 2px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--yt-sync-text-secondary);
  font-size: 10px;
  font-weight: 600;
  font-family: inherit;
  cursor: default;
  transition:
    color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease;
}

.ys-demo-widget-tab.is-active {
  color: var(--yt-sync-accent);
  border-bottom-color: var(--yt-sync-accent);
}

.ys-demo-widget-tab.is-highlight {
  background: var(--yt-sync-card-bg);
}

.ys-demo-widget-content {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.ys-demo-widget-pane {
  position: absolute;
  inset: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  pointer-events: none;
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.45s;
}

.ys-demo-widget-pane.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.ys-demo-widget-pane.is-leaving {
  opacity: 0;
  transform: translateX(-6px);
}

.ys-demo-comment-list {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--ys-demo-scrollbar-thumb) transparent;
}

.ys-demo-comment-list::-webkit-scrollbar {
  width: 3px;
}

.ys-demo-comment-list::-webkit-scrollbar-thumb {
  background: var(--ys-demo-scrollbar-thumb);
  border-radius: 999px;
}

.ys-demo-comment.is-visible,
.ys-demo-comment.is-animating {
  max-height: 80px;
  padding: 5px 7px;
}

.ys-demo-comment.is-compact-hidden,
.ys-demo-comment:not(.is-visible):not(.is-animating):not(.is-hiding) {
  display: none;
}

.ys-demo-comment {
  position: relative;
  display: flex;
  gap: 7px;
  padding: 0 7px;
  margin: 0;
  border-radius: 8px;
  background: var(--yt-sync-card-bg);
  max-height: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.ys-demo-comment-shine {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: rgba(62, 166, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(62, 166, 255, 0.22);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.ys-demo-comment .ys-demo-avatar,
.ys-demo-comment .ys-demo-comment-body {
  position: relative;
  z-index: 1;
}

.ys-demo-avatar {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

.ys-demo-avatar--a { background: #6366f1; }
.ys-demo-avatar--b { background: #059669; }
.ys-demo-avatar--c { background: #d97706; }
.ys-demo-avatar--d { background: #db2777; }
.ys-demo-avatar--e { background: #0891b2; }
.ys-demo-avatar--f { background: #7c3aed; }

.ys-demo-comment-body {
  flex: 1;
  min-width: 0;
}

.ys-demo-comment-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}

.ys-demo-comment-author {
  font-size: 9px;
  font-weight: 600;
  color: var(--yt-sync-text);
}

.ys-demo-comment-ts {
  font-size: 8px;
  font-weight: 500;
  color: var(--yt-sync-accent);
  font-variant-numeric: tabular-nums;
}

.ys-demo-comment-text {
  margin: 0;
  font-size: 9px;
  line-height: 1.35;
  color: var(--yt-sync-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ys-demo-collected-list {
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--ys-demo-scrollbar-thumb) transparent;
}

.ys-demo-collected-list::-webkit-scrollbar {
  width: 3px;
}

.ys-demo-collected-list::-webkit-scrollbar-thumb {
  background: var(--ys-demo-scrollbar-thumb);
  border-radius: 999px;
}

.ys-demo-stage.is-user-input-locked .ys-demo-secondary,
.ys-demo-stage.is-user-input-locked .ys-demo-meta,
.ys-demo-stage.is-user-input-locked .ys-demo-chrome {
  pointer-events: none;
  user-select: none;
}

.ys-demo-stage.is-user-input-locked .ys-demo-comment-list,
.ys-demo-stage.is-user-input-locked .ys-demo-collected-list,
.ys-demo-stage.is-user-input-locked .ys-demo-native-list,
.ys-demo-stage.is-user-input-locked .ys-demo-settings-body {
  overflow: hidden !important;
  overscroll-behavior: contain;
  pointer-events: none;
}

.ys-demo-collected-header {
  flex-shrink: 0;
  padding: 4px 6px 6px;
  font-size: 8px;
  font-weight: 600;
  color: var(--yt-sync-text-secondary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ys-demo-collected-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  padding: 5px 6px;
  border-radius: 7px;
  font-size: 9px;
  opacity: 1;
  flex-shrink: 0;
}

.ys-demo-collected-shine {
  position: absolute;
  inset: 0;
  border-radius: 7px;
  background: rgba(62, 166, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(62, 166, 255, 0.22);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.ys-demo-collected-item .ys-demo-collected-time,
.ys-demo-collected-item .ys-demo-collected-content {
  position: relative;
  z-index: 1;
}

.ys-demo-collected-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ys-demo-collected-time {
  flex-shrink: 0;
  padding: 2px 5px;
  border: none;
  border-radius: 4px;
  background: rgba(62, 166, 255, 0.15);
  font-size: 8px;
  font-weight: 600;
  font-family: inherit;
  color: var(--yt-sync-accent);
  font-variant-numeric: tabular-nums;
}

.ys-demo-collected-author {
  font-size: 8px;
  font-weight: 600;
  color: var(--yt-sync-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ys-demo-collected-text {
  flex: 1;
  min-width: 0;
  color: var(--yt-sync-text-secondary);
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ys-demo-compose {
  flex-shrink: 0;
  border-top: 1px solid var(--yt-sync-border);
  padding: 6px 8px 8px;
}

.ys-demo-compose-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
}

.ys-demo-compose-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--yt-sync-text);
}

.ys-demo-compose.is-reply-mode {
  background: rgba(255, 85, 85, 0.14);
  border-top-color: rgba(255, 85, 85, 0.24);
}

.ys-demo-compose.is-reply-mode .ys-demo-compose-label {
  color: var(--yt-sync-text);
}

.ys-demo-compose.is-reply-mode .ys-demo-compose-input-wrap {
  border-color: rgba(255, 85, 85, 0.32);
  background: rgba(255, 255, 255, 0.06);
}

.ys-demo-compose.is-reply-mode .ys-demo-compose-input-wrap.is-focused {
  border-color: rgba(255, 85, 85, 0.42);
  box-shadow: 0 0 0 1px rgba(255, 85, 85, 0.28);
}

.ys-demo-compose.is-reply-mode .ys-demo-compose-submit {
  background: #d04040;
}

.ys-demo-compose.is-reply-mode .ys-demo-compose-submit.is-highlight {
  box-shadow: 0 0 0 2px rgba(255, 85, 85, 0.45);
}

.ys-demo-compose-prefix[hidden] {
  display: none;
}

.ys-demo-compose-cancel {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--yt-sync-text-secondary);
  font-size: 12px;
  line-height: 1;
  cursor: default;
}

.ys-demo-compose-row {
  display: flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
}

.ys-demo-compose-input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border: 1px solid var(--yt-sync-border);
  border-radius: 6px;
  background: var(--yt-sync-card-bg);
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.ys-demo-compose-input-wrap.is-focused {
  border-color: var(--yt-sync-accent);
  box-shadow: 0 0 0 1px rgba(62, 166, 255, 0.25);
}

.ys-demo-compose-prefix {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  color: var(--yt-sync-accent);
  font-variant-numeric: tabular-nums;
}

.ys-demo-compose-input {
  flex: 1;
  min-width: 0;
  font-size: 9px;
  color: var(--yt-sync-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.4s ease;
}

.ys-demo-compose-input.is-filled {
  color: var(--yt-sync-text);
}

.ys-demo-compose-submit {
  flex-shrink: 0;
  padding: 5px 8px;
  border: none;
  border-radius: 6px;
  background: var(--yt-sync-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.ys-demo-compose-submit.is-highlight {
  box-shadow: 0 0 0 2px rgba(62, 166, 255, 0.45);
}

.ys-demo-compose-submit.is-success {
  opacity: 0.82;
  transform: scale(0.96);
}

.ys-demo-collected-item.is-context-target {
  outline: 1px solid rgba(62, 166, 255, 0.55);
  outline-offset: -1px;
  border-radius: 6px;
}

.ys-demo-collected-item.is-reply-target {
  background: rgba(255, 85, 85, 0.2);
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.ys-demo-collected-item.is-reply-target.is-active {
  background: rgba(255, 85, 85, 0.2);
}

.ys-demo-context-menu {
  position: absolute;
  z-index: 90;
  min-width: 118px;
  padding: 3px 0;
  border-radius: 8px;
  border: 1px solid var(--ys-demo-context-border);
  background: var(--ys-demo-context-bg);
  color: var(--ys-yt-sync-text);
  box-shadow: var(--ys-demo-context-shadow);
  opacity: 0;
  transform: scale(0.96) translateY(-2px);
  transform-origin: top left;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
  pointer-events: none;
}

.ys-demo-context-menu.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.ys-demo-context-menu-item {
  display: block;
  width: 100%;
  padding: 6px 10px;
  border: none;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.35;
  color: inherit;
  cursor: default;
  white-space: nowrap;
}

.ys-demo-context-menu-item[data-action="reply"] {
  color: var(--yt-sync-accent);
}

.ys-demo-context-menu-item:hover,
.ys-demo-context-menu-item.is-highlight {
  background: rgba(255, 255, 255, 0.08);
}

/* All tab — embedded YouTube comments mock */

.ys-demo-pane-all {
  background: var(--yt-sync-bg);
}

.ys-demo-native-host {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 4px 6px 6px;
}

.ys-demo-native-loading {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px 4px 10px;
}

.ys-demo-native-host.is-loading .ys-demo-native-loading {
  display: flex;
}

.ys-demo-native-host.is-loading .ys-demo-native-count,
.ys-demo-native-host.is-loading .ys-demo-native-compose,
.ys-demo-native-host.is-loading .ys-demo-native-list {
  opacity: 0.35;
  pointer-events: none;
}

.ys-demo-native-loading-bar {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.06) 100%
  );
  background-size: 200% 100%;
  animation: ys-demo-native-shimmer 1.1s ease-in-out infinite;
}

.ys-demo-native-loading-bar:nth-child(1) { width: 72%; }
.ys-demo-native-loading-bar:nth-child(2) { width: 92%; animation-delay: 0.12s; }
.ys-demo-native-loading-bar:nth-child(3) { width: 58%; animation-delay: 0.24s; }

@keyframes ys-demo-native-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.ys-demo-native-count {
  flex-shrink: 0;
  padding: 2px 2px 6px;
  font-size: 9px;
  font-weight: 600;
  color: var(--yt-sync-text);
}

.ys-demo-native-compose {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--yt-sync-border);
  margin-bottom: 4px;
}

.ys-demo-native-avatar {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  background: #606060;
}

.ys-demo-native-avatar--a { background: #e57373; }
.ys-demo-native-avatar--b { background: #64b5f6; }
.ys-demo-native-avatar--d { background: #81c784; }
.ys-demo-native-avatar--f { background: #ffb74d; }
.ys-demo-native-avatar--you { background: #7e57c2; }

.ys-demo-native-editor {
  flex: 1;
  min-width: 0;
}

.ys-demo-native-editor-inner {
  min-height: 18px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--yt-sync-border);
}

.ys-demo-native-editor-placeholder,
.ys-demo-native-reply-placeholder {
  font-size: 9px;
  color: var(--yt-sync-text-secondary);
}

.ys-demo-native-editor-text,
.ys-demo-native-reply-text {
  display: block;
  font-size: 9px;
  line-height: 1.35;
  color: var(--yt-sync-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 3px;
  transition: background 0.2s ease;
}

.ys-demo-native-editor-text.is-pasted,
.ys-demo-native-reply-text.is-pasted {
  animation: ys-demo-native-paste 0.38s ease-out;
}

@keyframes ys-demo-native-paste {
  0% {
    background: rgba(62, 166, 255, 0.28);
  }
  100% {
    background: transparent;
  }
}

.ys-demo-native-editor-actions,
.ys-demo-native-reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 6px;
}

.ys-demo-native-cancel,
.ys-demo-native-reply-cancel {
  padding: 3px 8px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--yt-sync-text-secondary);
  font: inherit;
  font-size: 8px;
  font-weight: 600;
}

.ys-demo-native-submit,
.ys-demo-native-reply-submit {
  padding: 3px 10px;
  border: none;
  border-radius: 12px;
  background: var(--yt-sync-accent);
  color: #fff;
  font: inherit;
  font-size: 8px;
  font-weight: 600;
  transition: box-shadow 0.2s ease;
}

.ys-demo-native-submit.is-highlight,
.ys-demo-native-reply-submit.is-highlight {
  box-shadow: 0 0 0 2px rgba(62, 166, 255, 0.45);
}

.ys-demo-native-submit.is-posting,
.ys-demo-native-reply-submit.is-posting {
  opacity: 0.72;
}

.ys-demo-native-list {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--ys-demo-scrollbar-thumb) transparent;
}

.ys-demo-native-list::-webkit-scrollbar {
  width: 3px;
}

.ys-demo-native-list::-webkit-scrollbar-thumb {
  background: var(--ys-demo-scrollbar-thumb);
  border-radius: 999px;
}

.ys-demo-native-comment,
.ys-demo-native-reply {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  padding: 5px 2px;
}

.ys-demo-native-comment-main,
.ys-demo-native-reply-main {
  flex: 1;
  min-width: 0;
}

.ys-demo-native-comment-meta {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 2px;
}

.ys-demo-native-author {
  font-size: 9px;
  font-weight: 600;
  color: var(--yt-sync-text);
}

.ys-demo-native-age {
  font-size: 8px;
  color: var(--yt-sync-text-secondary);
}

.ys-demo-native-text {
  margin: 0;
  font-size: 9px;
  line-height: 1.35;
  color: var(--yt-sync-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ys-demo-native-ts {
  color: #3ea6ff;
  font-weight: 400;
}

.ys-demo-native-editor-text .ys-demo-native-ts,
.ys-demo-native-reply-text .ys-demo-native-ts {
  color: #3ea6ff;
}

.ys-demo-native-comment-actions {
  margin-top: 3px;
  font-size: 8px;
  font-weight: 600;
  color: var(--yt-sync-text-secondary);
}

.ys-demo-native-replies {
  margin-top: 4px;
  padding-left: 8px;
  border-left: 2px solid var(--yt-sync-border);
}

.ys-demo-native-reply-compose {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: 6px;
}

.ys-demo-native-reply-editor {
  flex: 1;
  min-width: 0;
}

.ys-demo-native-reply-input {
  min-height: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--yt-sync-border);
}

.ys-demo-native-host.is-posting .ys-demo-native-list {
  opacity: 0.72;
}

/* Cursor */

.ys-demo-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  --cx: 0px;
  --cy: 0px;
  transform: translate(calc(var(--cx) - 4px), calc(var(--cy) - 2px));
  transform-origin: 2px 2px;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
  will-change: transform, opacity;
}

.ys-demo-cursor.is-moving {
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ys-demo-cursor.is-visible {
  opacity: 1;
}

.ys-demo-cursor svg {
  display: block;
  width: 22px;
  height: 22px;
  transform: scale(1);
  transform-origin: 2px 2px;
  transition: transform 0.14s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.ys-demo-cursor.is-pressing svg {
  transform: scale(0.86);
}

.ys-demo-cursor.is-idle svg {
  animation: ys-demo-cursor-idle 2.4s ease-in-out infinite;
}

@keyframes ys-demo-cursor-idle {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1) translate(1.5px, 1px); }
}

.ys-demo-cursor-ring {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
}

.ys-demo-cursor-ring.is-clicking {
  animation: ys-demo-click-ring 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes ys-demo-click-ring {
  0% {
    opacity: 0.85;
    transform: scale(0.55);
  }
  40% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: scale(2);
  }
}

.ys-demo-cursor-path {
  transition: none;
}

/* ── Demo segment controls (below stage) ── */

.ys-demo-segment-controls {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.ys-demo-segment-btn {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 11px 10px 10px;
  border: 1px solid var(--ys-demo-segment-border);
  border-radius: 4px;
  background: var(--ys-demo-segment-bg);
  color: var(--ys-demo-segment-text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.ys-demo-segment-btn:hover {
  border-color: var(--ys-demo-segment-border-hover);
  color: var(--ys-demo-segment-text-hover);
  background: var(--ys-demo-segment-bg-hover);
}

.ys-demo-segment-btn.is-active {
  border-color: var(--ys-demo-segment-border-active);
  background: var(--ys-demo-segment-bg-active);
  color: var(--ys-demo-segment-text-active);
}

.ys-demo-segment-progress {
  position: absolute;
  top: -1px;
  left: -1px;
  height: 2px;
  width: 0%;
  border-radius: 8px 0 0 0;
  background: #ff4444;
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.45);
  pointer-events: none;
  transition: width 0.12s linear;
}

.ys-demo-segment-label {
  position: relative;
  z-index: 1;
  display: block;
}

@media (max-width: 720px) {
  .ys-demo-body {
    grid-template-columns: 1fr min(42%, 200px);
  }

  .ys-demo-widget-tab {
    font-size: 9px;
    padding: 6px 1px;
  }

  .ys-demo-segment-btn {
    font-size: 10px;
    padding: 9px 6px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ys-demo-cursor,
  .ys-demo-collected-item,
  .ys-demo-progress-fill,
  .ys-demo-toggle-track,
  .ys-demo-toggle-thumb {
    transition: none !important;
    animation: none !important;
  }
}
