:root {
  /* One solid accent, no gradients — echoes the website's home/demo
     redesign and the extension popup (css/popup.css). */
  --accent: #ff4a36;
  --accent-hover: #ff5e4a;
  --bg-dark: #09090b;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-dimmed: rgba(255, 255, 255, 0.35);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-family);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */

#tutorial-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 99999;
  background: rgba(255, 255, 255, 0.05);
}

#tutorial-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   TUTORIAL ARROW
   ============================================================ */

#tutorial-arrow {
  position: fixed;
  z-index: 10005;
  pointer-events: none;
  /* Wider than the 220px SVG so the absolutely-positioned pill (left:108px)
     isn't width-constrained by its containing block and can wrap naturally. */
  width: 380px;
  height: 130px;
  transition: opacity 0.3s ease;
}

#tutorial-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

#tutorial-arrow.visible {
  opacity: 1;
  animation: arrowFloat 2.6s ease-in-out infinite;
}

/* Gentle, low-amplitude float — eye-catching without being busy */
@keyframes arrowFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.arrow-curve {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
}

.arrow-curve-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4.5;
  stroke-linecap: round;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
}

.arrow-curve-head {
  fill: var(--accent);
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
}

.arrow-pill {
  position: absolute;
  /* Anchored by its bottom edge to the curve's start point (y=44 in the SVG),
     so multi-line labels grow upward and stay connected to the arrow. */
  bottom: 86px;
  left: 108px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  max-width: 240px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.2px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(255, 74, 54, 0.3);
}

.arrow-pill-emoji {
  font-size: 18px;
  line-height: 1;
}

/* ============================================================
   TUTORIAL BANNER
   ============================================================ */

#tutorial-banner {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 10006;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

#tutorial-banner.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px);
}

#tutorial-banner.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#tutorial-banner.success {
  border-color: rgba(0, 200, 83, 0.3);
}

#tutorial-banner.success .banner-icon::before {
  content: "✅";
}

#tutorial-banner.info .banner-icon::before {
  content: "💡";
}

#tutorial-banner.loading .banner-icon::before {
  content: "⏳";
}

#tutorial-banner.error {
  border-color: rgba(255, 74, 54, 0.4);
  animation: bannerShake 0.4s ease;
}

#tutorial-banner.error .banner-icon::before {
  content: "✖";
}

@keyframes bannerShake {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  20% { transform: translateX(calc(-50% + 6px)) translateY(0); }
  40% { transform: translateX(calc(-50% - 6px)) translateY(0); }
  60% { transform: translateX(calc(-50% + 4px)) translateY(0); }
  80% { transform: translateX(calc(-50% - 2px)) translateY(0); }
}

.banner-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.banner-text {
  color: var(--text-primary);
}

/* ============================================================
   BUTTON HIGHLIGHT RING (pulsing ring around the button)
   ============================================================ */

.button-highlight-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  border: 2px solid rgba(255, 74, 54, 0.6);
  animation: highlightPulse 1.5s ease-in-out infinite;
}

@keyframes highlightPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
    box-shadow: 0 0 0 0 rgba(255, 74, 54, 0.3);
  }
  50% {
    transform: scale(1.15);
    opacity: 0.4;
    box-shadow: 0 0 20px 8px rgba(255, 74, 54, 0.15);
  }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 36px 24px 8px;
}

.hero-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 4px;
}

.hero-logo {
  width: 48px;
  height: 48px;
}

.hero-text {
  text-align: left;
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 2px;
}

/* Solid accent (name kept for markup compatibility — no gradient) */
.gradient-text {
  color: var(--accent);
}

/* ============================================================
   TUTORIAL SECTIONS
   ============================================================ */

.tutorial-section {
  padding: 64px 24px;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tutorial-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* First section sits right under the compact hero so the question is
   visible immediately — drop the user straight into it. */
#section-quiz {
  padding-top: 24px;
}

.section-container {
  width: 100%;
}

.section-header {
  margin-bottom: 40px;
}

.section-number {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-header h1,
.section-header h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.section-description {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

.section-description strong {
  color: var(--text-primary);
}

/* ============================================================
   QUIZ CARD
   ============================================================ */

.quiz-card {
  background: #0c0c0f;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.quiz-header {
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Plain uppercase labels — no pills */
.quiz-header-title {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dimmed);
}

.quiz-header-badge {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.quiz-question {
  padding: 24px;
}

.question-text {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.5;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 15px;
}

.quiz-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.quiz-option input[type="radio"] {
  display: none;
}

.option-letter {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.option-text {
  color: var(--text-primary);
  line-height: 1.4;
}

.quiz-option:has(input:checked) {
  border-color: rgba(255, 74, 54, 0.5);
  background: rgba(255, 74, 54, 0.08);
}

.quiz-option:has(input:checked) .option-letter {
  background: var(--accent);
  color: #fff;
}

/* ============================================================
   SHORTCUT HINT (standalone, below quiz)
   ============================================================ */

.shortcut-hint-standalone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dimmed);
  margin-top: 8px;
}

.shortcut-label {
  margin-left: 8px;
  color: var(--text-dimmed);
}

kbd {
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

/* ============================================================
   FOOTER
   ============================================================ */

.demo-footer {
  text-align: center;
  padding: 80px 24px 100px;
  border-top: 1px solid var(--border-color);
  opacity: 0;
  transition: opacity 0.7s ease;
}

.demo-footer.visible {
  opacity: 1;
}

.done-icon {
  color: var(--accent);
  line-height: 0;
  margin-bottom: 20px;
}

.demo-footer h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.demo-footer p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.cta-button {
  padding: 14px 40px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: -0.2px;
}

.cta-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button.pulse {
  animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 74, 54, 0); }
  50% { box-shadow: 0 10px 30px -6px rgba(255, 74, 54, 0.55); }
}

/* ============================================================
   SNAPGPT BUTTON (ported from css/button.css + content.js)
   ============================================================ */

#gpt-screenshot-button {
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20%;
  background: #0a0a0b;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  overflow: visible;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 6px 18px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.25s ease,
    color 0.25s ease,
    opacity 0.3s ease;
}

#gpt-screenshot-button .snap-icon {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

#gpt-screenshot-button .snap-frame path {
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

#gpt-screenshot-button .snap-dot {
  fill: #ff4a36;
  transform-box: view-box;
  transform-origin: 50% 50%;
  transition: fill 0.25s ease, transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

#gpt-screenshot-button:hover:not(.loading):not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.4),
    0 10px 28px rgba(0, 0, 0, 0.36);
}

#gpt-screenshot-button:hover:not(.loading):not(:disabled) .snap-dot {
  fill: #ff5e4a;
}

#gpt-screenshot-button:hover:not(.loading):not(:disabled) .corner-tl { transform: translate(-1.2px, -1.2px); }
#gpt-screenshot-button:hover:not(.loading):not(:disabled) .corner-tr { transform: translate(1.2px, -1.2px); }
#gpt-screenshot-button:hover:not(.loading):not(:disabled) .corner-bl { transform: translate(-1.2px, 1.2px); }
#gpt-screenshot-button:hover:not(.loading):not(:disabled) .corner-br { transform: translate(1.2px, 1.2px); }

#gpt-screenshot-button:active:not(.loading):not(:disabled) {
  transform: translateY(0);
  transition-duration: 0.08s;
}

#gpt-screenshot-button:active:not(.loading):not(:disabled) .corner-tl { transform: translate(1px, 1px); }
#gpt-screenshot-button:active:not(.loading):not(:disabled) .corner-tr { transform: translate(-1px, 1px); }
#gpt-screenshot-button:active:not(.loading):not(:disabled) .corner-bl { transform: translate(1px, -1px); }
#gpt-screenshot-button:active:not(.loading):not(:disabled) .corner-br { transform: translate(-1px, -1px); }

#gpt-screenshot-button:active:not(.loading):not(:disabled) .snap-dot {
  transform: scale(0.8);
}

#gpt-screenshot-button.loading {
  cursor: default;
  pointer-events: none;
}

#gpt-screenshot-button.loading .snap-frame {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: snapgpt-frame-wind 1.2s cubic-bezier(0.6, 0.15, 0.4, 0.85) infinite;
}

#gpt-screenshot-button.loading .snap-dot {
  animation: snapgpt-dot-pulse 1.2s ease-in-out infinite;
}

@keyframes snapgpt-frame-wind {
  to { transform: rotate(360deg); }
}

@keyframes snapgpt-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.6); opacity: 0.55; }
}

#gpt-screenshot-button.error {
  color: #ff4a36;
  border-color: rgba(255, 74, 54, 0.65);
  animation: snapgpt-shake 0.6s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes snapgpt-shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
  40%, 60% { transform: translate3d(3px, 0, 0); }
}

/* Answer popup (kept in sync with css/button.css): same tile language as the
   snap button — deliberately quiet, no accent. */
#gpt-response-popup {
  position: fixed;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 300px;
  padding: 12px 20px;
  background: #0a0a0b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #fafafa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: break-word;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 6px 18px rgba(0, 0, 0, 0.28);
  opacity: 0;
  translate: 0 6px;
  transition:
    opacity 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
    translate 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

#gpt-response-popup.show {
  opacity: 1;
  translate: 0 0;
}

.snapgpt-popup-text {
  min-width: 0;
}

#gpt-response-popup.error {
  max-width: 400px;
  background: #16100e;
  border-color: rgba(255, 74, 54, 0.55);
  font-size: 14px;
}

#gpt-response-popup.error .snapgpt-popup-text {
  white-space: pre-line;
}

#gpt-response-popup.ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  text-shadow: 0 0 2px #fff;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes smoothRainbow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes glowingGradient {
  0% { filter: drop-shadow(0 0 10px rgba(255, 74, 54, 0.5)) drop-shadow(0 0 20px rgba(221, 152, 255, 0)); }
  50% { filter: drop-shadow(0 0 15px rgba(255, 74, 54, 0)) drop-shadow(0 0 25px rgba(221, 152, 255, 0.5)); }
  100% { filter: drop-shadow(0 0 10px rgba(255, 74, 54, 0.5)) drop-shadow(0 0 20px rgba(221, 152, 255, 0)); }
}

.rainbow-button {
  background: linear-gradient(90deg, #ff4a36 0%, #dd98ff 100%) !important;
  background-size: 200% 100% !important;
  animation: smoothRainbow 2s ease infinite, glowingGradient 2s ease-in-out infinite !important;
  border-color: transparent !important;
}

.shift-glow {
  box-shadow: 0 0 12px 3px rgba(100, 149, 237, 0.45), 0 0 24px 6px rgba(100, 149, 237, 0.2) !important;
  border: 1px solid rgba(100, 149, 237, 0.5) !important;
}

@keyframes typing {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 16px; }
  .section-header h1,
  .section-header h2 { font-size: 28px; }
  .tutorial-section { padding: 80px 16px; }
  .quiz-question { padding: 20px 16px; }
  .quiz-header { padding: 12px 16px; }
  .arrow-label { font-size: 13px; max-width: 260px; }
}

/* ============================================================
   SETTINGS POPUP MOCK (step 02 — mirrors html/popup.html: the
   masthead plus the Settings accordion, with the "Subtle mode"
   group open. Styling echoes css/popup.css; only the Subtle mode
   toggle is live, everything else is a static preview.)
   ============================================================ */

.settings-mock {
  width: 380px;
  max-width: 100%;
  margin: 0 auto;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  text-align: left;
}

/* Masthead: wordmark + live status + master power switch */
.mock-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-wordmark {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
}

.mock-power {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  color: #ff4a36;
}

.mock-body {
  padding: 12px 20px 16px;
}

.mock-section-heading {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 4px;
}

/* Accordion rows (the popup's .tab): label + summary + chevron */
.mock-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-tab:last-child {
  border-bottom-color: transparent;
}

.mock-tab-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

.mock-tab-summary {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
}

/* The Subtle mode summary reads Off/On with the live toggle */
.mock-sum-subtle::after {
  content: "Off";
}

.settings-mock:has(#mock-subtle-input:checked) .mock-sum-subtle::after {
  content: "On";
  color: rgba(255, 255, 255, 0.75);
}

.mock-tab-chevron {
  flex: none;
  width: 7px;
  height: 7px;
  margin: 0 3px 0 2px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.55);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.55);
  transform: rotate(-45deg) translateY(-1px);
}

/* Open group: the popup's left accent rule, chevron flipped down */
.mock-tab.is-open {
  position: relative;
}

.mock-tab.is-open::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: #ff4a36;
}

.mock-tab.is-open .mock-tab-chevron {
  transform: rotate(45deg);
}

.mock-tab-panel {
  padding: 2px 2px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Control rows: label + description, state word, switch */
.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 0;
}

.mock-row-text {
  flex: 1;
  min-width: 0;
}

.mock-row-text label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.2px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.mock-row-text p {
  margin: 2px 0 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
}

/* State word: Off/On, Locked on children until the parent is on */
.mock-row-state {
  flex: none;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.mock-row-state::after {
  content: "Off";
}

.mock-row:has(input:checked) .mock-row-state {
  color: rgba(255, 255, 255, 0.72);
}

.mock-row:has(input:checked) .mock-row-state::after {
  content: "On";
}

/* Subtle mode children: visible but locked until the parent is on */
.mock-nested {
  margin-left: 10px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.45;
  pointer-events: none;
}

.mock-nested .mock-row-state::after {
  content: "Locked";
}

.settings-mock:has(#mock-subtle-input:checked) .mock-nested {
  opacity: 1;
}

.settings-mock:has(#mock-subtle-input:checked) .mock-nested .mock-row-state::after {
  content: "Off";
}

/* Toggle switch — same anatomy as the popup's .toggle-switch */
.mock-switch {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 20px;
}

.mock-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.mock-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease;
  pointer-events: none;
}

.mock-slider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fafafa;
  transform: translateY(-50%);
  transition: transform 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mock-switch input:checked + .mock-slider {
  background: #ff4a36;
  border-color: transparent;
}

.mock-switch input:checked + .mock-slider::before {
  transform: translate(16px, -50%);
}

/* Master switch: the largest control in the popup (static preview) */
.mock-master {
  width: 48px;
  height: 26px;
}

.mock-master .mock-slider::before {
  width: 20px;
  height: 20px;
}

.mock-master input:checked + .mock-slider::before {
  transform: translate(22px, -50%);
}

/* The one live control — highlighted so it stands out from the static UI */
.mock-highlight {
  margin: 0 -10px 4px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 74, 54, 0.07);
  border: 1px solid rgba(255, 74, 54, 0.3);
}

/* Everything else is greyed out and non-interactive */
.mock-dim {
  opacity: 0.4;
  pointer-events: none;
}
