/* ==========================================================================
   PLOTLINE DESIGN SYSTEM (v1.0)
   Adheres to ops/design/design-standards-v1.md
   Dark theme with warm amber glow, mobile-first, zero layout-shift hover
   ========================================================================== */

:root {
  /* Color Palette - 1 Primary + 1 Accent + 3 Neutrals */
  --bg-page: #090C12;
  --bg-surface: #111622;
  --bg-card: #161D2B;
  --bg-card-hover: #1D2638;
  --bg-scrim: rgba(9, 12, 18, 0.85);

  --accent: #F59E0B;
  --accent-hover: #D97706;
  --accent-light: #FDE68A;
  --accent-glow: rgba(245, 158, 11, 0.22);
  --accent-glow-strong: rgba(245, 158, 11, 0.45);

  --crimson: #FF4D5E;
  --crimson-glow: rgba(255, 77, 94, 0.25);
  --emerald: #10B981;
  --emerald-glow: rgba(16, 185, 129, 0.25);

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --text-inverse: #090C12;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(245, 158, 11, 0.65);

  /* Typography Scales (7 standardized levels) */
  --font-ui: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-editorial: Georgia, Cambria, "Times New Roman", serif;

  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 34px;

  /* Standard Geometry */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  /* Mobile App Shell Specs */
  --app-max-width: 480px;
  --desktop-max-width: 1200px;
  --header-height: 58px;
  --nav-bar-height: 60px;
  --demo-bar-height: 38px;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* ==========================================================================
   LAYOUT CONTAINERS & APP SHELL
   ========================================================================== */

.app-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--bg-page);
  padding-bottom: calc(var(--nav-bar-height) + var(--demo-bar-height) + 16px);
}

/* Warm glow backdrop (Dark Theme Standard) */
.ambient-glow-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1000px;
  height: 420px;
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.15) 0%, rgba(255, 77, 94, 0.06) 40%, rgba(9, 12, 18, 0) 75%);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-card {
  background: radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.12) 0%, rgba(22, 29, 43, 0) 60%), var(--bg-card);
}

.main-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--desktop-max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-height);
  background-color: rgba(9, 12, 18, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: var(--desktop-max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo-img {
  height: 34px;
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Coin Balance Pill */
.coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent-light);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.coin-pill:hover {
  border-color: var(--accent);
  background-color: var(--bg-card);
}

.coin-pill-icon {
  width: 18px;
  height: 18px;
}

.coin-pill-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--text-inverse);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

/* Top Tab Switcher: Novels | Short Dramas */
.content-type-tabs {
  display: flex;
  align-items: center;
  background-color: var(--bg-surface);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.type-tab-btn {
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.15s ease;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.type-tab-btn.active {
  background-color: var(--accent);
  color: var(--text-inverse);
  box-shadow: 0 2px 10px var(--accent-glow);
}

/* Category Filter Chips */
.genre-scroller {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 16px 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.genre-scroller::-webkit-scrollbar {
  display: none;
}

.genre-chip {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-surface);
  border: 1.5px solid transparent;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.15s ease;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.genre-chip:hover {
  border-color: var(--border-accent);
  color: var(--text-main);
}

.genre-chip.active {
  background-color: rgba(245, 158, 11, 0.12);
  border-color: var(--accent);
  color: var(--accent-light);
  box-shadow: 0 0 14px var(--accent-glow);
}

/* ==========================================================================
   CARDS & HOVER STATES (Design Standards compliant)
   ========================================================================== */

/* Novel Card */
.book-card {
  background-color: var(--bg-card);
  border: 1.5px solid transparent; /* Reserved border space prevents shift */
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

.book-card:hover, .book-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 6px 24px var(--accent-glow);
  transform: translateY(-2px);
}

.book-card-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background-color: var(--bg-surface);
  overflow: hidden;
}

.book-card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.book-card:hover .book-card-cover-img {
  transform: scale(1.02);
}

.book-badge-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--accent);
  color: var(--accent-light);
  font-size: var(--text-2xs);
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.book-badge-free {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgba(16, 185, 129, 0.9);
  color: #FFFFFF;
  font-size: var(--text-2xs);
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* 封面含 genre pill；排名与免费徽标另占一行，不叠封面文字。 */
.book-card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 12px 0;
}
.book-card-badges .book-badge-rank,
.book-card-badges .book-badge-free {
  position: static;
  white-space: nowrap;
}

.book-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.book-card-genre {
  font-size: var(--text-2xs);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.book-card-title {
  font-family: var(--font-editorial);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-card-author {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: 8px;
}

.book-card-stats {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-2xs);
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
}

/* Drama Card (Vertical 9:16) */
.drama-card {
  background-color: var(--bg-card);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

.drama-card:hover, .drama-card:focus-visible {
  border-color: var(--crimson);
  box-shadow: 0 6px 24px var(--crimson-glow);
  transform: translateY(-2px);
}

.drama-card-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background-color: var(--bg-surface);
  overflow: hidden;
}

.drama-card-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.drama-card:hover .drama-card-poster-img {
  transform: scale(1.02);
}

/* Grids */
.book-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

@media (min-width: 640px) {
  .book-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .book-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
}

.drama-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .drama-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 28px 0 14px 0;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.section-indicator {
  width: 4px;
  height: 20px;
  background-color: var(--accent);
  border-radius: var(--radius-sm);
}

.section-link {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.section-link:hover {
  text-decoration: underline;
}

/* Continue Reading Bar */
.continue-reading-shelf {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(22, 29, 43, 0.8) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.continue-reading-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.continue-reading-thumb {
  width: 44px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.continue-reading-title {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-main);
}

.continue-reading-meta {
  font-size: var(--text-xs);
  color: var(--accent-light);
}

/* ==========================================================================
   BUTTONS & ACTION CONTROLS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: var(--text-sm);
  line-height: 1.2;
  min-height: 44px; /* Touch target requirement */
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1.5px solid transparent;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text-inverse);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background-color: var(--accent-hover);
  box-shadow: 0 6px 22px var(--accent-glow-strong);
}

.btn-crimson {
  background-color: var(--crimson);
  color: #FFFFFF;
  box-shadow: 0 4px 16px var(--crimson-glow);
}

.btn-crimson:hover {
  background-color: #E11D48;
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-accent);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-light);
  border-color: var(--border-accent);
}

.btn-outline:hover {
  background-color: rgba(245, 158, 11, 0.1);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 14px;
  min-height: 36px;
  font-size: var(--text-xs);
}

/* ==========================================================================
   HERO BANNER CAROUSEL
   ========================================================================== */

.hero-banner-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  margin-top: 14px;
}

.banner-slide {
  display: none;
  position: relative;
  padding: 24px 20px;
  min-height: 240px;
  background-size: cover;
  background-position: center;
}

.banner-slide.active {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.banner-glow-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 12, 18, 0.2) 0%, rgba(9, 12, 18, 0.95) 85%);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.banner-eyebrow {
  display: inline-block;
  font-size: var(--text-2xs);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.banner-title {
  font-family: var(--font-editorial);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 8px;
}

.banner-blurb {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.banner-nav-dots {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
}

.banner-dot.active {
  background-color: var(--accent);
  width: 22px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   NAVIGATION BAR (Mobile Tab Bar)
   ========================================================================== */

.app-nav-bar {
  position: fixed;
  bottom: var(--demo-bar-height);
  left: 0;
  right: 0;
  height: var(--nav-bar-height);
  background-color: rgba(17, 22, 34, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-subtle);
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-dim);
  font-size: var(--text-2xs);
  font-weight: 700;
  padding: 6px 14px;
  min-height: 44px;
  transition: color 0.15s ease;
}

.nav-item:hover, .nav-item.active {
  color: var(--accent);
}

.nav-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ==========================================================================
   DEMO CONTROL BAR & WATERMARKS
   ========================================================================== */

.demo-control-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--demo-bar-height);
  background-color: #06080D;
  border-top: 1px solid rgba(245, 158, 11, 0.3);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.demo-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-sample-tag {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--accent-light);
  border: 1px solid var(--accent);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--text-2xs);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.demo-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-bar-btn {
  color: var(--accent-light);
  font-weight: 700;
  font-size: var(--text-xs);
  text-decoration: underline;
  cursor: pointer;
}

.demo-bar-btn:hover {
  color: #FFFFFF;
}

/* Sample Data Floating Pill */
.sample-data-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: rgba(245, 158, 11, 0.12);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--text-2xs);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ==========================================================================
   MODALS, BOTTOM SHEETS & PAYWALL
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 60;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-backdrop.open {
  display: flex;
}

@media (min-width: 640px) {
  .modal-backdrop {
    align-items: center;
  }
}

.modal-sheet {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 20px;
  position: relative;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .modal-sheet {
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-card-hover);
}

/* Paywall Unlock Sheet Specifics */
.unlock-header {
  text-align: center;
  margin-bottom: 20px;
}

.unlock-coin-cost {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}

.unlock-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-card);
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: var(--text-sm);
}

.auto-unlock-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 20px 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Switch Toggle Component */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border-medium);
  transition: 0.2s;
  border-radius: 24px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: var(--text-muted);
  transition: 0.2s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent);
  border-color: var(--accent);
}

input:checked + .slider::before {
  transform: translateX(20px);
  background-color: var(--text-inverse);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background-color: rgba(22, 29, 43, 0.95);
  border: 1px solid var(--border-accent);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Keep demo navigation behind payment and unlock sheets. */
body:has(.modal-backdrop.open) .tt-guide-dock { visibility: hidden; }
.modal-backdrop { z-index: 11000; }
@media (max-width: 480px) {
  .demo-bar-left .demo-sample-tag { display: none; }
  .demo-bar-left { min-width: 0; flex: 1; }
  .demo-bar-left .sample-data-badge { font-size: 8px; max-width: 160px; }
  .demo-bar-actions { gap: 8px; }
}

@media (max-width: 640px) {
  .reader-sample-scope { display: none; }
}
