/* Feature pages + NotebookLM-style demo chrome
   Extends website/styles.css tokens (--bg, --accent, etc.) */

.feature-page .feature-breadcrumb {
  align-items: center;
  color: var(--subtle);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.875rem;
  gap: 8px;
  margin: 0 auto;
  max-width: var(--max);
  padding: 28px 32px 0;
}

.feature-page .feature-breadcrumb a:hover {
  color: var(--accent);
}

.feature-hero {
  margin: 0 auto;
  max-width: var(--max);
  padding: 40px 32px 24px;
  text-align: center;
}

.feature-hero .eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.feature-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 auto 14px;
  max-width: 18ch;
}

.hub-hero h1 {
  max-width: 22ch;
}

.feature-hero .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 auto 28px;
  max-width: 42rem;
}

.feature-hero-cta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.feature-demo-section,
.feature-how,
.feature-related,
.feat-hub-grid-wrap {
  margin: 0 auto;
  max-width: var(--max);
  padding: 48px 32px;
}

.feature-hub .feat-hub-grid-wrap {
  padding-top: 28px;
  padding-bottom: 56px;
}

.feature-cta-band {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  margin-top: 24px;
  padding: 64px 32px;
}

.feature-cta-inner {
  margin: 0 auto;
  max-width: 640px;
  text-align: center;
}

.feature-cta-inner h2 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.feature-cta-inner p {
  color: var(--muted);
  margin-bottom: 24px;
}

.feature-cta-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ========== Features hub: split hero + rich cards ========== */

.feature-hub .hub-hero-split {
  align-items: center;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  margin: 0 auto;
  max-width: var(--max);
  padding: 36px 32px 12px;
}

.hub-hero-copy .eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hub-hero-copy h1 {
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 14px;
  max-width: 14ch;
}

.hub-hero-copy .lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 24px;
  max-width: 36rem;
}

.hub-hero-copy .feature-hero-cta {
  justify-content: flex-start;
}

.hub-hero-mock {
  min-width: 0;
}

.hero-nlm {
  background: #f0f4f9;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  padding: 12px;
}

.hero-nlm-top {
  align-items: center;
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
}

.hero-nlm-title {
  color: #3c4043;
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-nlm-cols {
  display: grid;
  gap: 8px;
  grid-template-columns: 0.9fr 1.15fr 0.85fr;
  min-height: 168px;
}

.hero-col {
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

.hero-col-label {
  color: #5f6368;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-src {
  align-items: center;
  display: flex;
  gap: 8px;
}

.hero-src .hs {
  border-radius: 6px;
  display: inline-block;
  flex-shrink: 0;
  height: 18px;
  width: 18px;
}

.hero-src .hs.yt { background: #ff0000; }
.hero-src .hs.doc { background: #ea4335; }
.hero-src .hs.web { background: #4285f4; }

.hero-src span {
  background: #e8eaed;
  border-radius: 4px;
  display: block;
  flex: 1;
  height: 8px;
}

.hero-bubble {
  background: #f1f3f4;
  border-radius: 10px;
  height: 28px;
  width: 88%;
}

.hero-bubble.user {
  align-self: flex-end;
  background: #e8f0fe;
  width: 72%;
}

.hero-bubble.short {
  height: 18px;
  width: 56%;
}

.hero-wave {
  align-items: flex-end;
  display: flex;
  flex: 1;
  gap: 3px;
  justify-content: center;
  min-height: 48px;
  padding: 8px 0;
}

.hero-wave i {
  background: #1a73e8;
  border-radius: 2px;
  display: block;
  width: 4px;
}

.hero-wave i:nth-child(1) { height: 35%; }
.hero-wave i:nth-child(2) { height: 70%; }
.hero-wave i:nth-child(3) { height: 48%; }
.hero-wave i:nth-child(4) { height: 90%; }
.hero-wave i:nth-child(5) { height: 55%; }
.hero-wave i:nth-child(6) { height: 72%; }

.hero-gen {
  background: #e8f0fe;
  border-radius: 999px;
  color: #1967d2;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 10px;
  text-align: center;
}

/* Hub grid â€” 2-col rich cards */
.feat-hub-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feat-hub-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  color: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.feat-hub-card:hover {
  border-color: #c9d8f8;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feat-hub-card:hover .feat-hub-cta {
  gap: 10px;
}

.feat-preview {
  background: linear-gradient(160deg, #f3f6fb 0%, #eef2f8 100%);
  border-bottom: 1px solid var(--line-soft);
  min-height: 148px;
  padding: 18px;
  position: relative;
}

.feat-hub-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 20px;
}

.feat-hub-body h2 {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.feat-hub-body p {
  color: var(--muted);
  flex: 1;
  font-size: 0.94rem;
  line-height: 1.45;
  margin: 0;
}

.feat-hub-cta {
  align-items: center;
  color: var(--accent);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 6px;
  margin-top: 6px;
  transition: gap 0.15s;
}

/* --- Preview: YouTube --- */
.feat-preview-yt {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prev-yt-player {
  align-items: center;
  animation: ytPreviewGlow 4.8s ease-in-out infinite;
  background: linear-gradient(145deg, #1f1f1f, #3a3a3a);
  border-radius: 12px;
  display: flex;
  flex: 1;
  justify-content: center;
  min-height: 88px;
  position: relative;
}

.prev-yt-play {
  animation: ytPreviewPlay 3.6s ease-in-out infinite;
  border-color: transparent transparent transparent #fff;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  display: block;
  margin-left: 3px;
  opacity: 0.92;
}

.prev-yt-bar {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  bottom: 10px;
  height: 3px;
  left: 12px;
  position: absolute;
  right: 12px;
}

.prev-yt-bar::after {
  background: #ff0000;
  border-radius: 2px;
  content: "";
  display: block;
  height: 100%;
  width: 38%;
}

.prev-yt-chip {
  align-items: center;
  align-self: flex-start;
  background: #fff;
  border: 1px solid #c9d8f8;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  color: var(--accent);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  gap: 6px;
  padding: 7px 12px;
}

@keyframes ytPreviewGlow {
  0%, 100% { filter: saturate(0.92) brightness(0.96); }
  50% { filter: saturate(1.08) brightness(1.04); }
}

@keyframes ytPreviewPlay {
  0%, 100% { opacity: 0.72; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* --- Preview: Bulk --- */
.feat-preview-bulk {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.prev-bulk-list {
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 8px;
}

.prev-bulk-list li {
  align-items: center;
  display: flex;
  gap: 8px;
  padding: 6px 6px;
}

.prev-bulk-list .check {
  background: #fff;
  border: 2px solid #c5c9ce;
  border-radius: 4px;
  flex-shrink: 0;
  height: 14px;
  position: relative;
  width: 14px;
}

.prev-bulk-list li.done .check {
  background: #34a853;
  border-color: #34a853;
}

.prev-bulk-list li.done .check::after {
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  height: 7px;
  left: 3px;
  position: absolute;
  top: 0;
  transform: rotate(45deg);
  width: 4px;
}

.prev-bulk-list li.run .check {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.prev-bulk-list .line {
  background: #e8eaed;
  border-radius: 4px;
  flex: 1;
  height: 8px;
}

.prev-bulk-list .line.short { width: 55%; flex: 0 1 55%; }

.prev-bulk-bar {
  background: #e3e8ef;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.prev-bulk-bar i {
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  border-radius: 999px;
  display: block;
  height: 100%;
}

/* --- Preview: Hub notebooks --- */
.feat-preview-hub {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.prev-nb {
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  overflow: hidden;
}

.prev-nb::before {
  content: "";
  display: block;
  height: 42px;
}

.prev-nb.c1::before { background: linear-gradient(135deg, #d2e3fc, #aecbfa); }
.prev-nb.c2::before { background: linear-gradient(135deg, #ceead6, #a8dab5); }
.prev-nb.c3::before { background: linear-gradient(135deg, #fde293, #fdd663); }
.prev-nb.c4::before { background: linear-gradient(135deg, #eaddff, #d3bbff); }

.prev-nb span {
  background: #e8eaed;
  border-radius: 3px;
  display: block;
  height: 7px;
  margin: 8px 10px 10px;
  width: 70%;
}

/* --- Preview: Drive refresh --- */
.feat-preview-drive {
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  margin: 4px 0;
  padding: 10px;
}

.prev-drive-row {
  align-items: center;
  display: flex;
  gap: 8px;
  padding: 7px 6px;
}

.prev-drive-row .dicon {
  border-radius: 6px;
  display: inline-block;
  flex-shrink: 0;
  height: 20px;
  width: 20px;
}

.prev-drive-row .dicon.gdoc { background: #4285f4; }
.prev-drive-row .dicon.gslides { background: #fbbc04; }
.prev-drive-row .dicon.gsheet { background: #34a853; }

.prev-drive-row .dline {
  background: #e8eaed;
  border-radius: 4px;
  flex: 1;
  height: 8px;
}

.prev-drive-row .dline.short { flex: 0 1 48%; }

.prev-drive-row .dbadge {
  background: #fef7e0;
  border-radius: 999px;
  color: #b06000;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 700;
  padding: 3px 8px;
  white-space: nowrap;
}

/* --- Preview: Studio --- */
.feat-preview-studio {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.prev-wave {
  align-items: flex-end;
  display: flex;
  gap: 4px;
  height: 56px;
  justify-content: center;
}

.prev-wave i {
  animation: hubWave 1.1s ease-in-out infinite;
  background: #1a73e8;
  border-radius: 3px;
  display: block;
  width: 5px;
}

.prev-wave i:nth-child(1) { animation-delay: 0s; height: 40%; }
.prev-wave i:nth-child(2) { animation-delay: 0.08s; height: 70%; }
.prev-wave i:nth-child(3) { animation-delay: 0.16s; height: 50%; }
.prev-wave i:nth-child(4) { animation-delay: 0.24s; height: 92%; }
.prev-wave i:nth-child(5) { animation-delay: 0.32s; height: 58%; }
.prev-wave i:nth-child(6) { animation-delay: 0.4s; height: 78%; }
.prev-wave i:nth-child(7) { animation-delay: 0.48s; height: 45%; }
.prev-wave i:nth-child(8) { animation-delay: 0.56s; height: 65%; }

@keyframes hubWave {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

.prev-gen-btn {
  background: #1a73e8;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 18px;
}

/* --- Preview: Prompts --- */
.feat-preview-prompts {
  align-items: flex-start;
  display: flex;
  gap: 12px;
}

.prev-slash {
  align-items: center;
  background: #fff;
  border: 1px solid #c9d8f8;
  border-radius: 12px;
  color: var(--accent);
  display: flex;
  flex-shrink: 0;
  font-size: 1.35rem;
  font-weight: 700;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.prev-chips {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

.prev-chips span {
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 999px;
  color: #3c4043;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 12px;
  white-space: nowrap;
}

.prev-chips span:nth-child(2) {
  background: #e8f0fe;
  border-color: #aecbfa;
  color: #1967d2;
}

/* How steps */
.how-steps {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 32px auto 0;
  max-width: 720px;
  padding: 0;
}

.how-step {
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 16px;
  padding: 18px 20px;
}

.how-num {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.how-step strong {
  display: block;
  margin-bottom: 4px;
}

.how-step p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.related-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-top: 28px;
}

.related-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.related-card:hover {
  border-color: #c9d8f8;
  box-shadow: var(--shadow-sm);
}

.related-icon {
  background: var(--accent);
  border-radius: 50%;
  color: transparent;
  display: inline-block;
  flex-shrink: 0;
  font-size: 0;
  height: 8px;
  line-height: 0;
  overflow: hidden;
  width: 8px;
}

.related-card {
  align-items: flex-start;
}

.related-card strong {
  font-size: 1rem;
}

.related-card span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ========== Demo shell ========== */

.demo-shell {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: 28px auto 0;
  max-width: 960px;
  overflow: hidden;
  padding: 12px 12px 16px;
  position: relative;
}


/* ========== Guided demo cursor ========== */

.demo-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transform: translate(-80px, -80px);
  will-change: transform, opacity;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
}

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

.demo-cursor-arrow {
  display: block;
  width: 24px;
  height: 24px;
  transform-origin: 6px 4px;
  transition: transform 0.1s ease;
}

.demo-cursor-ripple {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(26, 115, 232, 0.4);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.demo-cursor.is-clicking .demo-cursor-arrow {
  transform: scale(0.86);
}

.demo-cursor.is-clicking .demo-cursor-ripple {
  animation: demo-cursor-ripple 0.38s ease-out;
}

@keyframes demo-cursor-ripple {
  0% {
    transform: scale(0.35);
    opacity: 0.75;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}


.demo-label {
  color: var(--subtle);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 10px 4px;
  text-transform: uppercase;
}

.demo-label-inline {
  color: var(--subtle);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-left: 8px;
  text-transform: uppercase;
}

.browser-chrome {
  align-items: center;
  background: #e8e6e1;
  border-radius: 10px 10px 0 0;
  display: flex;
  gap: 12px;
  padding: 10px 14px;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  background: #c5c2ba;
  border-radius: 50%;
  height: 10px;
  width: 10px;
}

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

.browser-url {
  background: #faf9f7;
  border-radius: 6px;
  color: var(--muted);
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  overflow: hidden;
  padding: 6px 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-stage {
  position: relative;
}

.demo-panel {
  background: #fff;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}

.demo-reset {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  display: block;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 12px auto 4px;
  padding: 8px 16px;
}

.demo-reset:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.demo-status {
  color: var(--muted);
  font-size: 0.9rem;
  min-height: 1.4em;
  padding: 8px 4px 0;
  text-align: center;
}

/* ========== NotebookLM app mock ========== */

.nlm-app {
  background: #f0f4f9;
  color: #1f1f1f;
  font-family: "Google Sans", Roboto, "Plus Jakarta Sans", system-ui, sans-serif;
  min-height: 420px;
}

.nlm-topbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e3e8ef;
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
}

.nlm-top-left {
  align-items: center;
  display: flex;
  gap: 10px;
}

.nlm-logo-dot {
  background: linear-gradient(135deg, #4285f4, #34a853 40%, #fbbc04 70%, #ea4335);
  border-radius: 6px;
  display: inline-block;
  height: 22px;
  width: 22px;
}

.nlm-notebook-title {
  font-size: 0.95rem;
  font-weight: 500;
}

.nlm-pill {
  background: #e8f0fe;
  border: none;
  border-radius: 999px;
  color: #1967d2;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
}

.nlm-pill.soft {
  background: #f1f3f4;
  color: #5f6368;
  cursor: default;
}

.nlm-body {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.4fr) minmax(160px, 0.85fr);
  min-height: 380px;
  padding: 10px;
}

.nlm-body.single-rail {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.nlm-sources,
.nlm-chat,
.nlm-studio {
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.nlm-sources.wide {
  min-height: 360px;
}

.nlm-panel-head {
  align-items: center;
  border-bottom: 1px solid #f0f2f5;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
}

.nlm-panel-head h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}

.nlm-icon-btn {
  background: #f1f3f4;
  border: none;
  border-radius: 8px;
  color: #5f6368;
  cursor: default;
  font-size: 1rem;
  height: 28px;
  line-height: 1;
  width: 28px;
}

.nlm-source-list {
  flex: 1;
  list-style: none;
  margin: 0;
  overflow: auto;
  padding: 8px;
}

.nlm-source-list.compact {
  max-height: 140px;
}

.nlm-source {
  align-items: center;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  position: relative;
}

.nlm-source:hover {
  background: #f8f9fa;
}

.nlm-source.muted {
  opacity: 0.7;
}

.nlm-source-new {
  animation: nlmPop 0.45s ease;
  background: #e6f4ea;
}

@keyframes nlmPop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.nlm-src-icon {
  align-items: center;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.nlm-src-doc { background: #ea4335; }
.nlm-src-web { background: #4285f4; }
.nlm-src-yt { background: #ff0000; }
.nlm-src-pdf { background: #ea4335; }
.nlm-src-gdoc { background: #4285f4; }
.nlm-src-gslides { background: #fbbc04; color: #202124; }
.nlm-src-gsheet { background: #34a853; }

.nlm-src-name {
  flex: 1;
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nlm-src-badge {
  background: #e6f4ea;
  border-radius: 999px;
  color: #137333;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  white-space: nowrap;
}

.nlm-src-badge.warn {
  background: #fef7e0;
  color: #b06000;
}

.nlm-sources-foot {
  border-top: 1px solid #f0f2f5;
  color: #80868b;
  font-size: 0.75rem;
  margin: 0;
  padding: 10px 14px;
}

.nlm-chat {
  justify-content: space-between;
  padding: 16px;
}

.nlm-chat.muted-panel {
  align-items: center;
  justify-content: center;
}

.nlm-chat-empty {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  text-align: center;
}

.nlm-chat-hint {
  color: #80868b;
  font-size: 0.9rem;
  margin: 0;
}

.nlm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.nlm-chip {
  background: #f1f3f4;
  border-radius: 999px;
  color: #3c4043;
  font-size: 0.78rem;
  padding: 6px 12px;
}

.nlm-composer {
  background: #f1f3f4;
  border-radius: 24px;
  color: #80868b;
  font-size: 0.88rem;
  margin-top: 12px;
  padding: 12px 16px;
}

.nlm-composer.interactive {
  align-items: center;
  display: flex;
  gap: 8px;
  padding: 6px 6px 6px 14px;
}

.prompt-input {
  background: transparent;
  border: none;
  color: #202124;
  flex: 1;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  width: 100%;
}

.nlm-send {
  background: #1a73e8;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  height: 36px;
  width: 36px;
}

.nlm-studio {
  padding-bottom: 12px;
}

.nlm-studio.highlight {
  box-shadow: inset 0 0 0 2px #c2d7fc;
}

.nlm-studio-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

.nlm-studio-card {
  align-items: center;
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  color: #3c4043;
  display: flex;
  font-size: 0.82rem;
  font-weight: 500;
  gap: 10px;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.nlm-studio-card.actionable {
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.nlm-studio-card.actionable:hover {
  background: #e8f0fe;
  border-color: #aecbfa;
}

.studio-cta {
  color: #1a73e8;
  font-style: normal;
  font-weight: 600;
  margin-left: auto;
}

/* ========== YouTube demo ========== */

.yt-page {
  background: #0f0f0f;
  color: #fff;
  padding: 12px;
}

.yt-player-wrap {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.yt-iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.yt-meta {
  padding: 14px 4px 8px;
}

.yt-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.yt-channel {
  color: #aaa;
  font-size: 0.85rem;
  margin: 0 0 14px;
}

.nt-add-btn {
  align-items: center;
  background: #fff;
  border: none;
  border-radius: 999px;
  color: #141413;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 8px;
  padding: 10px 18px;
  transition: transform 0.12s, box-shadow 0.12s;
}

.nt-add-btn:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.nt-add-btn:disabled {
  cursor: default;
  opacity: 0.7;
  transform: none;
}

.demo-modal {
  align-items: center;
  background: rgba(20, 20, 19, 0.45);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: absolute;
  z-index: 5;
}

.demo-modal[hidden] {
  display: none !important;
}

.demo-modal-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 380px;
  padding: 18px;
  width: 100%;
}

.demo-modal-head {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.demo-modal-head strong {
  flex: 1;
}

.demo-modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.demo-field-label {
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.demo-input {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 12px;
  width: 100%;
}

.demo-nb-list {
  list-style: none;
  margin: 12px 0;
  max-height: 180px;
  overflow: auto;
  padding: 0;
}

.demo-nb-item {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 0.9rem;
  justify-content: space-between;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.demo-nb-item span {
  color: var(--subtle);
  font-size: 0.75rem;
}

.demo-nb-item:hover,
.demo-nb-item.is-selected {
  background: var(--accent-soft);
  border-color: #c9d8f8;
}

.demo-confirm {
  width: 100%;
}

.demo-toast {
  animation: nlmPop 0.3s ease;
  background: #137333;
  border-radius: 999px;
  bottom: 56px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  left: 50%;
  padding: 10px 18px;
  position: absolute;
  transform: translateX(-50%);
  z-index: 6;
}

.demo-toast[hidden] {
  display: none !important;
}

/* ========== Bulk demo ========== */

.bulk-demo {
  background: #fff;
  border-radius: 0 0 10px 10px;
  padding: 14px;
}

.bulk-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bulk-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bulk-tab {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: default;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
}

.bulk-tab.is-active {
  background: var(--accent-soft);
  border-color: #c9d8f8;
  color: var(--accent);
}

.bulk-dest {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.bulk-dest-label {
  color: var(--subtle);
  font-size: 0.8rem;
}

.bulk-list {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  list-style: none;
  margin: 0 0 14px;
  padding: 4px;
}

.bulk-item {
  align-items: center;
  border-radius: 8px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 8px 10px;
}

.bulk-item label {
  align-items: center;
  cursor: pointer;
  display: flex;
  flex: 1;
  font-size: 0.88rem;
  gap: 8px;
}

.bulk-favicon {
  border-radius: 4px;
  display: inline-block;
  flex-shrink: 0;
  height: 14px;
  width: 14px;
}

.bulk-favicon.yt { background: #ff0000; }
.bulk-favicon.web { background: #4285f4; }
.bulk-favicon.doc { background: #34a853; }

.bulk-status {
  color: var(--subtle);
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 64px;
  text-align: right;
}

.bulk-item.is-done .bulk-status { color: #137333; }
.bulk-item.is-running .bulk-status { color: var(--accent); }

.bulk-progress-wrap {
  margin-bottom: 14px;
}

.bulk-progress-bar {
  background: var(--line-soft);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.bulk-progress-fill {
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  border-radius: 999px;
  height: 100%;
  transition: width 0.35s ease;
  width: 0%;
}

.bulk-progress-text {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 8px 0 0;
}

.nlm-mini-preview {
  background: #f0f4f9;
  border-radius: 12px;
  padding: 10px;
}

.nlm-mini-head {
  color: #5f6368;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 6px;
  padding: 0 4px;
}

/* ========== Hub grid demo ========== */

.hub-demo {
  background: #f0f4f9;
  border-radius: 0 0 10px 10px;
  padding: 16px;
}

.hub-demo-top {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hub-demo-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}

.hub-demo-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-search {
  max-width: 200px;
}

.hub-folders {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hub-folder {
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 999px;
  color: #5f6368;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
}

.hub-folder.is-active {
  background: #e8f0fe;
  border-color: #aecbfa;
  color: #1967d2;
}

.nlm-nb-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.nlm-nb-card {
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  cursor: default;
  overflow: hidden;
  transition: opacity 0.2s, transform 0.15s;
}

.nlm-nb-card.is-hidden {
  display: none;
}

.nlm-nb-cover {
  height: 72px;
}

.nlm-nb-cover.c1 { background: linear-gradient(135deg, #d2e3fc, #aecbfa); }
.nlm-nb-cover.c2 { background: linear-gradient(135deg, #ceead6, #a8dab5); }
.nlm-nb-cover.c3 { background: linear-gradient(135deg, #fde293, #fdd663); }
.nlm-nb-cover.c4 { background: linear-gradient(135deg, #fad2cf, #f6aea9); }
.nlm-nb-cover.c5 { background: linear-gradient(135deg, #eaddff, #d3bbff); }
.nlm-nb-cover.c6 { background: linear-gradient(135deg, #cbf0f8, #a1e4f2); }

.nlm-nb-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px 12px;
}

.nlm-nb-meta strong {
  font-size: 0.82rem;
}

.nlm-nb-meta span {
  color: #80868b;
  font-size: 0.72rem;
}

.hub-hint {
  color: #80868b;
  font-size: 0.8rem;
  margin: 14px 0 0;
  text-align: center;
}

/* ========== Drive refresh ========== */

.drive-row {
  flex-wrap: wrap;
}

.drive-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.drive-time {
  color: #80868b;
  font-size: 0.7rem;
}

.drive-time.stale {
  color: #b06000;
}

.nlm-refresh-btn {
  background: #f1f3f4;
  border: none;
  border-radius: 8px;
  color: #1a73e8;
  cursor: pointer;
  font-size: 1rem;
  height: 32px;
  transition: transform 0.2s;
  width: 32px;
}

.nlm-refresh-btn.is-spinning {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.drive-row.is-refreshing {
  opacity: 0.75;
}

/* ========== Studio / podcast ========== */

.studio-progress {
  padding: 8px 14px 4px;
  text-align: center;
}

.studio-progress p {
  color: #5f6368;
  font-size: 0.8rem;
  margin: 8px 0 0;
}

.waveform {
  align-items: flex-end;
  display: flex;
  gap: 3px;
  height: 36px;
  justify-content: center;
}

.waveform i {
  animation: wave 0.9s ease-in-out infinite;
  background: #1a73e8;
  border-radius: 2px;
  display: block;
  width: 4px;
}

.waveform i:nth-child(odd) { animation-delay: 0.1s; height: 40%; }
.waveform i:nth-child(even) { animation-delay: 0.25s; height: 70%; }
.waveform i:nth-child(3n) { animation-delay: 0.4s; height: 55%; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

.podcast-player {
  align-items: center;
  background: #e8f0fe;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  margin: 8px 10px 0;
  padding: 10px;
}

.podcast-art {
  align-items: center;
  background: #1a73e8;
  border-radius: 10px;
  color: #fff;
  display: flex;
  font-size: 1.1rem;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.podcast-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  font-size: 0.78rem;
  gap: 2px;
}

.podcast-info span {
  color: #5f6368;
}

.podcast-play {
  background: #1a73e8;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 0.75rem;
  height: 36px;
  width: 36px;
}

.podcast-play.is-playing {
  background: #174ea6;
}

/* ========== Prompts ========== */

.nlm-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 8px 4px 12px;
}

.nlm-msg {
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 92%;
  padding: 10px 14px;
}

.nlm-msg.bot {
  align-self: flex-start;
  background: #f1f3f4;
}

.nlm-msg.user {
  align-self: flex-end;
  background: #e8f0fe;
  color: #174ea6;
}

.prompt-slash-menu {
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(32, 33, 36, 0.12);
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
  overflow: hidden;
}

.prompt-slash-menu[hidden] {
  display: none !important;
}

.prompt-slash-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid #f1f3f4;
  color: #202124;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  padding: 10px 12px;
  text-align: left;
}

.prompt-slash-item:last-child {
  border-bottom: none;
}

.prompt-slash-item:hover {
  background: #e8f0fe;
}

.prompt-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

.prompt-chip {
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  border-radius: 999px;
  color: #3c4043;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 12px;
  text-align: left;
}

.prompt-chip:hover {
  background: #e8f0fe;
  border-color: #aecbfa;
  color: #1967d2;
}

.prompt-side-hint {
  color: #80868b;
  font-size: 0.75rem;
  margin: 0;
  padding: 0 12px 8px;
}

.prompt-side-hint code {
  background: #f1f3f4;
  border-radius: 4px;
  padding: 1px 5px;
}

/* ========== Responsive ========== */

@media (max-width: 860px) {
  .nlm-body {
    grid-template-columns: 1fr;
  }

  .nlm-sources,
  .nlm-studio {
    max-height: 220px;
  }

  .nlm-body.single-rail {
    grid-template-columns: 1fr;
  }

  .feature-hub .hub-hero-split {
    grid-template-columns: 1fr;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hub-hero-copy h1 {
    max-width: none;
  }

  .feat-hub-grid {
    grid-template-columns: 1fr;
  }

  .feature-hero,
  .feature-demo-section,
  .feature-how,
  .feature-related,
  .feat-hub-grid-wrap,
  .feature-page .feature-breadcrumb {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 640px) {
  .feature-hero h1 {
    max-width: none;
  }

  .hub-search {
    max-width: none;
    width: 100%;
  }

  .nt-add-btn {
    width: 100%;
    justify-content: center;
  }

  .hero-nlm-cols {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-chat,
  .hero-studio {
    display: none;
  }
}

/* Landing: see-how links on feature cards */
.feature-card .see-how {
  color: var(--accent);
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
}

.feature-card .see-how:hover {
  text-decoration: underline;
}

/* ========== Sticky breadcrumb bar ========== */

.feature-page .feature-breadcrumb {
  align-items: center;
  backdrop-filter: blur(14px) saturate(1.15);
  background: rgba(250, 249, 247, 0.86);
  border-bottom: 1px solid var(--line-soft);
  color: var(--subtle);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.875rem;
  font-weight: 500;
  gap: 8px;
  margin: 0;
  max-width: none;
  padding: 12px max(32px, calc((100% - var(--max)) / 2 + 32px));
  position: sticky;
  top: 64px;
  width: 100%;
  z-index: 15;
}

.feature-page .feature-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.feature-page .feature-breadcrumb a:hover {
  color: var(--accent);
}

.feature-page .feature-breadcrumb-sep {
  color: #c5c9ce;
  font-weight: 400;
  user-select: none;
}

.feature-page .feature-breadcrumb [aria-current="page"] {
  color: var(--text, #141413);
  font-weight: 600;
}

.demo-play-btn {
  margin-top: 0;
}

.md-demo-head .demo-play-btn {
  margin-top: 16px;
}

.feature-demo-section .section-head.center {
  align-items: center;
  display: flex;
  flex-direction: column;
}

/* ========== YouTube watch chrome ========== */

.yt-watch {
  background: #0f0f0f;
  color: #f1f1f1;
  font-family: "Roboto", "Plus Jakarta Sans", system-ui, sans-serif;
}

.yt-masthead {
  align-items: center;
  border-bottom: 1px solid #272727;
  display: flex;
  gap: 16px;
  padding: 8px 12px;
}

.yt-mast-left {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 12px;
}

.yt-menu {
  background: transparent;
  border: none;
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px;
}

.yt-menu span {
  background: #fff;
  border-radius: 1px;
  display: block;
  height: 1.5px;
  width: 16px;
}

.yt-logo {
  align-items: center;
  display: flex;
  gap: 4px;
}

.yt-logo-play {
  background: #ff0000;
  border-radius: 6px;
  display: inline-block;
  height: 18px;
  position: relative;
  width: 26px;
}

.yt-logo-play::after {
  border-color: transparent transparent transparent #fff;
  border-style: solid;
  border-width: 4px 0 4px 7px;
  content: "";
  left: 10px;
  position: absolute;
  top: 5px;
}

.yt-logo-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.yt-search {
  display: flex;
  flex: 1;
  justify-content: center;
  max-width: 420px;
  min-width: 0;
}

.yt-search-input {
  background: #121212;
  border: 1px solid #303030;
  border-radius: 40px 0 0 40px;
  color: #aaa;
  flex: 1;
  font-size: 0.85rem;
  min-width: 0;
  padding: 8px 14px;
  pointer-events: none;
}

.yt-search-btn {
  align-items: center;
  background: #222;
  border: 1px solid #303030;
  border-left: 0;
  border-radius: 0 40px 40px 0;
  color: #fff;
  display: inline-flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.yt-mast-right {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.yt-icon-stub {
  background: #3f3f3f;
  border-radius: 50%;
  display: block;
  height: 22px;
  width: 22px;
}

.yt-avatar-stub {
  background: linear-gradient(135deg, #4285f4, #34a853);
  border-radius: 50%;
  display: block;
  height: 28px;
  width: 28px;
}

.yt-primary-cols {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 220px;
  padding: 12px;
}

.yt-primary {
  min-width: 0;
}

.yt-player-wrap {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.yt-iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.yt-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 14px 0 10px;
}

.yt-owner-row {
  margin-bottom: 10px;
}

.yt-channel-block {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yt-channel-avatar {
  align-items: center;
  background: #ea4335;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.yt-channel-meta {
  flex: 1;
  min-width: 0;
}

.yt-channel {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

.yt-subs {
  color: #aaa;
  font-size: 0.75rem;
  margin: 2px 0 0;
}

.yt-subscribe {
  background: #f1f1f1;
  border: none;
  border-radius: 999px;
  color: #0f0f0f;
  cursor: default;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  pointer-events: none;
}

.yt-actions-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.yt-action-pills {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.yt-pill {
  align-items: center;
  background: #272727;
  border-radius: 999px;
  color: #f1f1f1;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 500;
  gap: 6px;
  padding: 7px 12px;
}

.nt-add-btn {
  align-items: center;
  background: #fff;
  border: none;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  color: #141413;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  gap: 8px;
  margin-left: auto;
  padding: 9px 16px;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

.nt-add-btn:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.nt-add-btn.is-pulse {
  animation: nt-pulse 1s ease-in-out 2;
}

.nt-add-btn.is-clicked,
.button.is-clicked,
.nlm-studio-card.is-clicked,
.demo-confirm.is-clicked {
  transform: scale(0.97);
}

.yt-desc {
  background: #272727;
  border-radius: 12px;
  padding: 12px 14px;
}

.yt-desc-stats {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.yt-desc-text {
  color: #d0d0d0;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
}

.yt-secondary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 2px;
}

.yt-suggest {
  display: flex;
  gap: 8px;
}

.yt-thumb {
  background: linear-gradient(145deg, #3a3a3a, #1f1f1f);
  border-radius: 8px;
  flex-shrink: 0;
  height: 68px;
  width: 118px;
}

.yt-thumb.t2 { background: linear-gradient(145deg, #2a4060, #1a2438); }
.yt-thumb.t3 { background: linear-gradient(145deg, #3a2a1a, #1f1510); }
.yt-thumb.t4 { background: linear-gradient(145deg, #1a3a2a, #102018); }

.yt-suggest-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}

.yt-suggest-title,
.yt-suggest-sub {
  background: #3f3f3f;
  border-radius: 4px;
  display: block;
  height: 10px;
}

.yt-suggest-title { width: 92%; }
.yt-suggest-title.long { width: 100%; }
.yt-suggest-title.mid { width: 70%; }
.yt-suggest-sub { height: 8px; opacity: 0.7; width: 55%; }

/* Keep legacy .yt-page rule as alias */
.yt-page {
  background: #0f0f0f;
  color: #fff;
  padding: 0;
}

/* ========== Demo animation helpers ========== */

@keyframes nt-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.0); transform: scale(1); }
  50% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0.18); transform: scale(1.04); }
}

@keyframes demo-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes demo-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-6px); }
}

@keyframes demo-source-in {
  from { opacity: 0; transform: translateX(-10px) scale(0.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes demo-spin {
  to { transform: rotate(360deg); }
}

@keyframes demo-badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes demo-star-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes wave-bounce {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

.demo-panel.is-exiting {
  animation: demo-fade-out 0.28s ease forwards;
}

.demo-panel.is-entering {
  animation: demo-fade-in 0.35s ease;
}

.nlm-source-new.is-appearing,
.bulk-added.is-appearing,
.podcast-player.is-appearing,
.nlm-msg.is-appearing {
  animation: demo-source-in 0.45s ease;
}

.nlm-nb-card.is-star-pulse {
  animation: demo-star-pop 0.7s ease;
  outline: 2px solid rgba(251, 188, 4, 0.55);
  outline-offset: 2px;
}

.nlm-nb-card {
  transition: opacity 0.25s, transform 0.25s;
}

.nlm-nb-card.is-hidden {
  display: block !important; /* override earlier display:none for animated filter */
  opacity: 0.22;
  pointer-events: none;
  transform: scale(0.98);
}

.nlm-refresh-btn.is-spinning {
  animation: demo-spin 0.7s linear infinite;
}

.nlm-src-badge.warn.is-pulse {
  animation: demo-badge-pulse 0.8s ease 2;
}

.nlm-src-badge.is-updated {
  background: #e6f4ea;
  color: #137333;
}

.studio-progress.is-active .waveform i {
  animation: wave-bounce 0.9s ease-in-out infinite;
  transform-origin: center bottom;
}

.studio-progress.is-active .waveform i:nth-child(1) { animation-delay: 0s; }
.studio-progress.is-active .waveform i:nth-child(2) { animation-delay: 0.05s; }
.studio-progress.is-active .waveform i:nth-child(3) { animation-delay: 0.1s; }
.studio-progress.is-active .waveform i:nth-child(4) { animation-delay: 0.15s; }
.studio-progress.is-active .waveform i:nth-child(5) { animation-delay: 0.2s; }
.studio-progress.is-active .waveform i:nth-child(6) { animation-delay: 0.25s; }
.studio-progress.is-active .waveform i:nth-child(7) { animation-delay: 0.3s; }
.studio-progress.is-active .waveform i:nth-child(8) { animation-delay: 0.35s; }
.studio-progress.is-active .waveform i:nth-child(9) { animation-delay: 0.2s; }
.studio-progress.is-active .waveform i:nth-child(10) { animation-delay: 0.15s; }
.studio-progress.is-active .waveform i:nth-child(11) { animation-delay: 0.1s; }
.studio-progress.is-active .waveform i:nth-child(12) { animation-delay: 0.05s; }

.prompt-slash-item.is-highlight {
  background: #e8f0fe;
}

.prompt-input.is-typing {
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.35);
}

.prompt-input.has-chip {
  background: #f8fafc;
}

.bulk-item.is-done label {
  text-decoration: none;
}

.bulk-item.is-done .bulk-status {
  color: #137333;
  font-weight: 600;
}

.bulk-progress-fill {
  transition: width 0.35s ease;
}

.demo-modal.is-visible {
  animation: demo-fade-in 0.25s ease;
}

@media (max-width: 860px) {
  .yt-primary-cols {
    grid-template-columns: 1fr;
  }
  .yt-secondary {
    display: none;
  }
  .nt-add-btn {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prev-yt-player,
  .prev-yt-play,
  .nt-add-btn.is-pulse,
  .demo-panel.is-exiting,
  .demo-panel.is-entering,
  .nlm-source-new.is-appearing,
  .bulk-added.is-appearing,
  .podcast-player.is-appearing,
  .nlm-msg.is-appearing,
  .nlm-nb-card.is-star-pulse,
  .nlm-refresh-btn.is-spinning,
  .nlm-src-badge.warn.is-pulse,
  .studio-progress.is-active .waveform i,
  .demo-modal.is-visible,
  .demo-cursor.is-clicking .demo-cursor-ripple {
    animation: none !important;
  }
  .bulk-progress-fill,
  .nlm-nb-card,
  .demo-cursor,
  .demo-cursor-arrow {
    transition: none !important;
  }
}

/* ===== Master-detail Features shell ===== */
.feature-master .md-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.feature-master .feature-breadcrumb {
  position: static;
  top: auto;
  z-index: auto;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
  border-bottom: none;
  color: #5f6368;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 400;
  gap: 0.35rem;
  margin: 0.35rem 0 0.5rem;
  padding: 0;
  max-width: none;
  width: auto;
  line-height: 1.3;
}

.feature-master .feature-breadcrumb a {
  color: #5f6368;
  text-decoration: none;
}

.feature-master .feature-breadcrumb a:hover {
  color: var(--accent);
}

.feature-master .feature-breadcrumb-sep {
  color: #bdc1c6;
  font-weight: 400;
  user-select: none;
}

.feature-master .feature-breadcrumb [aria-current="page"] {
  color: #3c4043;
  font-weight: 500;
}

.md-mobile-select-wrap {
  display: none;
  margin-bottom: 1rem;
}

.md-mobile-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5f6368;
  margin-bottom: 0.35rem;
}

.md-mobile-select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #dadce0;
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
}

.md-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  min-height: 70vh;
}

.md-sidebar {
  position: sticky;
  top: 5.5rem;
  max-height: calc(100vh - 6.5rem);
  overflow: auto;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 16px;
  padding: 1rem 0.75rem 1rem;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.06);
}

.md-sidebar-head {
  padding: 0 0.5rem 0.75rem;
}

.md-sidebar-head .eyebrow {
  margin: 0 0 0.15rem;
}

.md-sidebar-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.md-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.md-nav-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.65rem 0.6rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.md-nav-item:hover {
  background: #f8f9fa;
}

.md-nav-item.is-active {
  background: #e8f0fe;
  border-color: #d2e3fc;
}

.md-nav-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f1f3f4;
  color: #3c4043;
}

.md-nav-item.is-active .md-nav-icon {
  background: #fff;
  color: #1a73e8;
}

.md-nav-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.md-nav-title {
  font-size: 0.9rem;
  font-weight: 650;
  color: #202124;
}

.md-nav-desc {
  font-size: 0.72rem;
  line-height: 1.35;
  color: #5f6368;
}

.md-sidebar-cta {
  margin-top: 1rem;
  padding: 0.75rem 0.5rem 0.25rem;
  border-top: 1px solid #e8eaed;
}

.md-sidebar-cta .button {
  width: 100%;
  justify-content: center;
}

.md-detail {
  min-width: 0;
}

.md-panel {
  display: none;
  animation: demo-fade-in 0.28s ease;
}

.md-panel.is-active {
  display: block;
}

.md-panel-intro {
  margin-bottom: 1.25rem;
}

.md-panel-intro h1 {
  margin: 0.2rem 0 0.5rem;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  letter-spacing: -0.02em;
}

.md-panel-intro .lead {
  max-width: 46rem;
  color: #3c4043;
}

.md-demo-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.md-demo-note {
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  color: #5f6368;
}

.md-demo {
  margin: 0 0 1.75rem;
  padding: 0;
}

.feature-master .feature-demo-section,
.feature-master .feature-how {
  max-width: none;
}

.md-panel-buy {
  margin: 1.5rem 0 0.5rem;
}

.md-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0 2rem;
}

.md-overview-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  text-align: left;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid #e8eaed;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.md-overview-card:hover {
  border-color: #d2e3fc;
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.08);
  transform: translateY(-1px);
}

.md-overview-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e8f0fe;
  color: #1a73e8;
}

.md-overview-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.md-overview-body strong {
  font-size: 0.98rem;
}

.md-overview-body span {
  font-size: 0.82rem;
  color: #5f6368;
  line-height: 1.4;
}

.md-inline-cta {
  margin-top: 0.5rem;
  border-radius: 16px;
}

.md-noscript-seo {
  display: none;
}

@media (max-width: 960px) {
  .md-layout {
    grid-template-columns: 1fr;
  }
  .md-sidebar {
    display: none;
  }
  .md-mobile-select-wrap {
    display: block;
  }
  .md-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .feature-master .md-main {
    padding: 0 1rem 2.5rem;
  }
  .md-demo-head {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ========== Master-detail polish: minimal crumbs, equal demos ========== */

.feature-master .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.feature-master .md-main {
  padding-top: 0;
}

.feature-master .md-demo-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 0 0.45rem;
  min-height: 2rem;
}

.feature-master .md-demo-toolbar .demo-play-btn {
  margin-top: 0;
}

.feature-master .md-demo {
  margin: 0 0 1.5rem;
  padding: 0;
}

/* Equal-size demo stage for every feature â€” no jump when switching */
.feature-master .demo-shell {
  --md-demo-h: calc(100vh - 10.25rem);
  max-width: none;
  margin: 0;
  width: 100%;
  height: var(--md-demo-h);
  min-height: 560px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.feature-master .demo-label {
  display: none;
}

.feature-master .demo-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Panels that live directly in demo-shell (bulk, hub, etc.) fill the stage */
.feature-master .demo-shell > .browser-chrome {
  flex-shrink: 0;
}

.feature-master .demo-shell > .bulk-demo,
.feature-master .demo-shell > .hub-demo,
.feature-master .demo-shell > .nlm-app,
.feature-master .demo-shell > .yt-watch {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.feature-master .demo-panel[hidden] {
  display: none !important;
}

.feature-master .demo-panel.is-active {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.feature-master .demo-panel.is-active > .browser-chrome {
  flex-shrink: 0;
}

.feature-master .demo-panel.is-active > .yt-watch,
.feature-master .demo-panel.is-active > .nlm-app,
.feature-master .demo-panel.is-active > .bulk-demo,
.feature-master .demo-panel.is-active > .hub-demo {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.feature-master .nlm-app {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-master .nlm-body {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

.feature-master .nlm-sources.wide {
  min-height: 0;
}

.feature-master .yt-watch {
  min-height: 0;
  height: 100%;
}

.feature-master .bulk-demo,
.feature-master .hub-demo {
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
}

.feature-master .demo-reset {
  flex-shrink: 0;
  margin: 8px auto 0;
}

/* How-it-works sits below the dominant demo */
.feature-master .feature-how {
  margin-top: 0.5rem;
}

@media (max-width: 960px) {
  .feature-master .demo-shell {
    --md-demo-h: calc(100vh - 12.5rem);
    min-height: 480px;
  }
}

@media (max-width: 640px) {
  .feature-master .demo-shell {
    --md-demo-h: calc(100vh - 13.5rem);
    min-height: 420px;
  }

  .feature-master .md-demo-toolbar {
    justify-content: stretch;
  }

  .feature-master .md-demo-toolbar .demo-play-btn {
    width: 100%;
  }
}

.feature-master .demo-shell > .demo-status {
  flex-shrink: 0;
  padding: 6px 4px 0;
}

.feature-master .demo-shell > .nlm-app {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.feature-master .md-layout {
  min-height: calc(100vh - 8.5rem);
  align-items: stretch;
}

.feature-master .md-detail {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.feature-master .md-panel.is-active {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.feature-master .md-panel.is-active > .md-demo {
  flex: 0 0 auto;
}


/* ---- mock demos (new features) ---- */
.feature-master .demo-shell > .mock-demo {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f5f4f1;
  position: relative;
}
.mock-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #eceae6;
  border-bottom: 1px solid rgba(0,0,0,.06);
  flex-shrink: 0;
}
.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0cdc6;
}
.mock-url {
  margin-left: 10px;
  font-size: 12px;
  color: #5f6368;
  background: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mock-split {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 220px;
  min-height: 0;
}
.mock-page, .mock-article, .mock-x-feed {
  padding: 20px 22px;
  overflow: auto;
}
.mock-h { margin: 0 0 10px; font-size: 18px; }
.mock-p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: #3c4043; }
.mock-dim { color: #80868b; font-size: 13px; }
.mock-sidepanel, .mock-snap-tray {
  background: #fff;
  border-left: 1px solid rgba(0,0,0,.08);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-sp-head { font-weight: 700; font-size: 13px; }
.mock-sp-modes { display: flex; gap: 6px; }
.mock-sp-modes span {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f3f4;
  color: #5f6368;
}
.mock-sp-modes span.is-on { background: #e8f0fe; color: #1967d2; font-weight: 600; }
.mock-sp-preview {
  font-size: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 8px 10px;
  word-break: break-all;
}
.mock-primary {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #1a73e8;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 14px;
  cursor: pointer;
}
.mock-primary:disabled { opacity: .6; cursor: default; }
.mock-primary.is-clicked { transform: scale(.98); }
.mock-toast {
  font-size: 12px;
  font-weight: 600;
  color: #0d652d;
  background: #e6f4ea;
  border-radius: 8px;
  padding: 8px 10px;
}
.mock-tweet {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 14px 16px;
  max-width: 420px;
  position: relative;
}
.mock-tweet-meta { font-size: 12px; color: #5f6368; margin-bottom: 6px; }
.mock-tweet-body { margin: 0 0 12px; font-size: 14px; line-height: 1.45; }
.mock-nt-btn {
  appearance: none;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.mock-picker {
  margin-top: 12px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 12px;
  padding: 12px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-picker-title { margin: 0; font-size: 12px; font-weight: 700; }
.mock-nb-item {
  text-align: left;
  border: 1px solid transparent;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
}
.mock-nb-item.is-selected { border-color: #1a73e8; background: #e8f0fe; }
.mock-mark {
  background: #fef6c7;
  padding: 0 2px;
  border-radius: 2px;
}
.mock-mark.is-selected { outline: 2px solid #f9ab00; }
.mock-ctx {
  position: absolute;
  margin-top: 8px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 6px;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  z-index: 3;
}
.mock-article { position: relative; }
.mock-ctx-item {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.mock-ctx-item:hover { background: #f1f3f4; }
.mock-ctx-item.muted { color: #80868b; }
.mock-export-btn, .mock-blog-btn {
  appearance: none;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
  margin-right: 12px;
}
.nlm-app-export .nlm-topbar, .mock-slides-blog .nlm-topbar {
  display: flex;
  align-items: center;
}
.ce-body { position: relative; flex: 1; min-height: 0; }
.mock-export-menu {
  position: absolute;
  top: 12px;
  right: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 4;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.mock-format {
  appearance: none;
  border: 0;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.mock-format.is-done { background: #e6f4ea; color: #0d652d; }
/* ---- Slides-to-blog: PPT deck -> finished blog ---- */
.mock-slides-blog {
  position: relative;
}
.sb-view {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sb-view[hidden] { display: none !important; }
.sb-deck-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 12px 14px 14px;
  overflow: hidden;
}
.sb-filmstrip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}
.sb-thumb {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: default;
}
.sb-thumb-num {
  font-size: 10px;
  font-weight: 700;
  color: #80868b;
  padding-left: 2px;
}
.sb-thumb-preview {
  height: 54px;
  border-radius: 8px;
  border: 2px solid transparent;
  display: flex;
  align-items: flex-end;
  padding: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.sb-thumb-preview em {
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,.95);
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.sb-thumb.is-active .sb-thumb-preview {
  border-color: #1a73e8;
  box-shadow: 0 0 0 1px #1a73e8;
}
.sb-slide-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 8px;
}
.sb-slide-canvas {
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 14px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.sb-slide-eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .85;
}
.sb-slide-title {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.sb-slide-sub {
  margin: 0 0 18px;
  font-size: 15px;
  opacity: .92;
}
.sb-slide-bullets {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 14px;
  line-height: 1.65;
  opacity: .95;
}
.sb-slide-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #5f6368;
  flex-shrink: 0;
}
.sb-grad-1 { background: linear-gradient(135deg, #1a73e8 0%, #174ea6 55%, #0b57d0 100%); }
.sb-grad-2 { background: linear-gradient(135deg, #00897b 0%, #00695c 100%); }
.sb-grad-3 { background: linear-gradient(135deg, #8e24aa 0%, #6a1b9a 100%); }
.sb-grad-4 { background: linear-gradient(135deg, #e37400 0%, #c26400 100%); }
.sb-grad-5 { background: linear-gradient(135deg, #d93025 0%, #a50e0e 100%); }
.sb-grad-6 { background: linear-gradient(135deg, #5f6368 0%, #3c4043 100%); }

.sb-progress-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 244, 241, 0.72);
  backdrop-filter: blur(2px);
}
.sb-progress-overlay[hidden] { display: none !important; }
.sb-progress-card {
  width: min(360px, 88%);
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 12px 32px rgba(0,0,0,.14);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sb-progress-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #3c4043;
}
.mock-progress {
  height: 8px;
  background: #e8eaed;
  border-radius: 999px;
  overflow: hidden;
}
.mock-progress-fill {
  height: 100%;
  width: 0;
  background: #1a73e8;
  transition: width .35s ease;
}
.mock-status { margin: 0; font-size: 12px; color: #5f6368; }
.mock-downloads { display: flex; gap: 6px; }

/* Finished blog article view */
.sb-blog-chrome {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.sb-blog-badge {
  font-size: 12px;
  font-weight: 700;
  color: #0d652d;
  background: #e6f4ea;
  border-radius: 999px;
  padding: 4px 10px;
}
.sb-blog-article {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  background: #fff;
  padding: 22px 28px 36px;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  animation: sbBlogIn .45s ease;
}
@keyframes sbBlogIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.sb-blog-header { margin-bottom: 18px; }
.sb-blog-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #1a73e8;
}
.sb-blog-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #202124;
}
.sb-blog-byline {
  margin: 0;
  font-size: 12px;
  color: #80868b;
}
.sb-blog-article h2 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
  color: #202124;
}
.sb-blog-article p {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #3c4043;
}
.sb-figure {
  margin: 16px 0 18px;
}
.sb-fig-block {
  height: 120px;
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
  padding: 14px 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), 0 4px 14px rgba(0,0,0,.1);
  position: relative;
  overflow: hidden;
}
.sb-fig-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.28));
  pointer-events: none;
}
.sb-fig-overlay {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.sb-figure figcaption {
  margin-top: 6px;
  font-size: 11px;
  color: #80868b;
  font-style: italic;
}

/* Slides-to-blog views fill equal-size demo shell */
.mock-demo.mock-slides-blog > .sb-view {
  flex: 1 1 auto;
  min-height: 0;
}
.mock-demo.mock-slides-blog > .sb-view .nlm-app {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

@media (max-width: 720px) {
  .sb-deck-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .sb-filmstrip {
    flex-direction: row;
    overflow-x: auto;
  }
  .sb-thumb { min-width: 72px; }
  .sb-thumb-preview { height: 44px; }
  .sb-blog-article { padding: 16px 16px 28px; }
  .sb-fig-block { height: 96px; }
}
.mock-snap-stage {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 200px;
  min-height: 0;
  position: relative;
}
.mock-page-dim {
  padding: 24px;
  opacity: .85;
}
.mock-ui-block {
  height: 48px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  margin-bottom: 12px;
}
.mock-ui-block.short { width: 60%; height: 28px; }
.mock-marquee {
  position: absolute;
  left: 18%;
  top: 28%;
  width: 42%;
  height: 32%;
  border: 2px dashed #1a73e8;
  background: rgba(26,115,232,.12);
  border-radius: 8px;
  pointer-events: none;
  z-index: 2;
}
.mock-snap-trigger {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;
}
.mock-snap-thumbs { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mock-snap-thumb {
  background: #e8f0fe;
  border-radius: 8px;
  padding: 16px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #1967d2;
  text-align: center;
}
.mock-snap-thumb.is-appearing { animation: mockIn .35s ease; }
@keyframes mockIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.feature-master .demo-shell > .mock-demo .nlm-app {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
@media (max-width: 720px) {
  .mock-split, .sb-deck-stage, .mock-snap-stage {
    grid-template-columns: 1fr;
  }
  .mock-sidepanel, .mock-snap-tray { border-left: 0; border-top: 1px solid rgba(0,0,0,.08); }
}


/* ---- Manage sources demo ---- */
.mg-demo {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: var(--surface, #f7f5f2);
  border-radius: 12px;
  overflow: hidden;
}

.mg-app {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 14px 16px 16px;
}

.mg-toolbar {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.mg-toolbar-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f1f1f;
  flex: 1;
}

.mg-manage-btn {
  background: #fff;
  border: 1px solid #d0cbc3;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
}

.mg-manage-btn.is-active,
.mg-manage-btn:hover {
  border-color: #1a73e8;
  color: #1a73e8;
}

.mg-hint {
  color: #6b6560;
  font-size: 12px;
  margin: 0 0 10px;
}

.mg-source-list {
  display: grid;
  gap: 6px;
}

.mg-source-row {
  align-items: center;
  background: #fff;
  border: 1px solid #e4dfd7;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr auto;
  padding: 10px 12px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mg-source-row.is-selected {
  border-color: #1a73e8;
  background: #eef5ff;
}

.mg-source-row.is-gone {
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  border-width: 0;
  overflow: hidden;
}

.mg-source-title {
  font-size: 13px;
  font-weight: 500;
  color: #222;
}

.mg-folder-badge {
  color: #1a73e8;
  font-size: 11px;
  font-weight: 600;
  min-width: 2.5rem;
  text-align: right;
}

.mg-modal {
  background: #fff;
  border: 1px solid #e4dfd7;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  padding: 12px;
}

.mg-modal[hidden],
.mg-folder-panel[hidden] {
  display: none !important;
}

.mg-modal-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mg-count {
  color: #6b6560;
  flex: 1;
  font-size: 12px;
}

.mg-modal .mg-source-list {
  max-height: 180px;
  overflow: auto;
}

.mg-folder-panel {
  background: #f7f5f2;
  border: 1px solid #e4dfd7;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
}

.mg-folder-pill {
  background: #fff;
  border: 1px solid #d0cbc3;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  padding: 5px 10px;
}

.mg-folder-pill:hover {
  border-color: #1a73e8;
  color: #1a73e8;
}

.mg-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.mg-btn {
  background: #fff;
  border: 1px solid #d0cbc3;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
}

.mg-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mg-btn.is-danger {
  background: #c5221f;
  border-color: #c5221f;
  color: #fff;
}

.feature-master .demo-shell > .mg-demo {
  flex: 1;
  min-height: 0;
}
