/* ==========================================================================
   MumuDesk Guide Page — Minimalist Content-First Video Workbench (Deep-Polished)
   - Desktop: Single-row toolbar + quiet left index + above-the-fold video & steps
   - Tablet / Mobile: Category rail + compact top item rail (with edge scroll fades)
     above video, fullscreen expand button, zero scroll hijacking
   - Concentric radii (20px outer / 8px pad / 12px inner), warm dual-layer shadows
   ========================================================================== */

.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;
}

.guide-body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  line-break: strict;
  text-spacing-trim: space-all;
}

.guide-body .site-header,
.guide-body .site-footer {
  width: 100%;
  max-width: 1120px;
}

.nav-links .nav-active {
  color: var(--ink);
  position: relative;
}

.nav-links .nav-active::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.guide-body .site-header {
  padding-top: 14px;
  height: 50px;
}

.guide-main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 28px 36px;
}

/* ==========================================================================
   Single-Row Compact Toolbar + Horizontal Scroll Overflow Fades
   ========================================================================== */
.guide-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0 11px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(21, 20, 18, 0.09);
}

.guide-page-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 4px;
}

.guide-scroll-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.guide-scroll-wrap::before,
.guide-scroll-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.16s ease;
}

.guide-scroll-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-canvas) 0%, rgba(251, 247, 237, 0));
}

.guide-scroll-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-canvas) 0%, rgba(251, 247, 237, 0));
}

.guide-scroll-wrap.can-scroll-left::before {
  opacity: 1;
}

.guide-scroll-wrap.can-scroll-right::after {
  opacity: 1;
}

.guide-cat-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.guide-cat-bar::-webkit-scrollbar {
  display: none;
}

.guide-cat-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.guide-cat-tab:hover {
  background: rgba(21, 20, 18, 0.05);
  color: var(--ink);
}

.guide-cat-tab.active {
  background: var(--ink);
  color: #fbf7ed;
}

.guide-cat-num {
  font-size: 11px;
  font-weight: 800;
  opacity: 0.52;
  font-variant-numeric: tabular-nums;
}

.guide-cat-tab.active .guide-cat-num {
  color: var(--accent);
  opacity: 1;
}

.guide-search-wrap {
  position: relative;
  width: 196px;
  flex-shrink: 0;
}

.guide-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--ink-muted);
  pointer-events: none;
}

.guide-search-input {
  width: 100%;
  height: 36px;
  padding: 0 30px 0 34px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(21, 20, 18, 0.14);
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.guide-search-input::placeholder {
  color: #8c8478;
}

.guide-search-input:focus {
  outline: none;
  background: #fffdf8;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(243, 156, 43, 0.16);
}

.guide-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.guide-search-clear {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--bg-surface);
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.guide-search-clear:hover {
  background: var(--ink);
  color: #fffdf8;
}

/* ==========================================================================
   Two-Column Workbench (Quiet Left Index + Dominant Right Stage)
   ========================================================================== */
.guide-workbench {
  display: grid;
  grid-template-columns: 274px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

/* Left Pane: Clean Scannable Single-Line Index */
.guide-list-pane {
  padding-top: 2px;
  min-width: 0;
  max-width: 100%;
}

.guide-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 9px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(21, 20, 18, 0.08);
}

.guide-list-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

.guide-list-count {
  font-size: 11.5px;
  font-weight: 700;
  color: #8c8478;
  font-variant-numeric: tabular-nums;
}

.guide-item-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guide-item-btn {
  width: 100%;
  min-height: 44px;
  text-align: left;
  padding: 8px 11px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.guide-item-btn:hover {
  background: rgba(21, 20, 18, 0.045);
}

.guide-item-btn.active {
  background: #fffdf8;
  border-color: rgba(21, 20, 18, 0.18);
  box-shadow:
    0 1px 2px rgba(28, 22, 14, 0.05),
    0 6px 16px rgba(28, 22, 14, 0.05);
}

.guide-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.guide-item-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.guide-item-idx {
  font-size: 11px;
  font-weight: 800;
  color: #968e82;
  font-variant-numeric: tabular-nums;
  width: 16px;
  flex-shrink: 0;
}

.guide-item-btn.active .guide-item-idx {
  color: var(--accent-text);
}

.guide-item-title {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink-soft);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guide-item-btn.active .guide-item-title {
  font-weight: 750;
  color: var(--ink);
}

.guide-item-tags {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.mini-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: var(--radius-pill);
  line-height: 1.35;
  white-space: nowrap;
}

.mini-tag-pro {
  background: rgba(243, 156, 43, 0.16);
  color: #8f4f05;
}

.mini-tag-os {
  background: rgba(21, 20, 18, 0.07);
  color: var(--ink-muted);
}

.mini-tag-audio {
  background: rgba(76, 125, 96, 0.14);
  color: #2f5e43;
}

.guide-item-cat-pill {
  padding-left: 24px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-text);
}

/* Sidebar empty state kept hidden since main stage shows unified empty state with suggestion chips */
.guide-empty-state {
  display: none !important;
}

.guide-pill-btn {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--ink);
  color: #fbf7ed;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.14s ease;
}

.guide-pill-btn:hover {
  opacity: 0.88;
}

/* ==========================================================================
   Right Pane: Video Hero + Crisp Structured Steps + Synchronized Empty State
   ========================================================================== */
.guide-stage-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.guide-stage-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-stage-content.is-switching {
  animation: guideFadeIn 0.18s var(--ease-key);
}

@keyframes guideFadeIn {
  from {
    opacity: 0.55;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Synchronized Search Empty Stage */
.guide-stage-empty {
  background: #fffdf8;
  border: 1px solid rgba(21, 20, 18, 0.1);
  border-radius: 20px;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 24px;
  box-shadow: 0 2px 8px rgba(28, 22, 14, 0.03);
}

.gse-inner {
  max-width: 420px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gse-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gse-icon svg {
  width: 20px;
  height: 20px;
}

.gse-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.gse-sub {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.gse-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 2px 0 6px;
}

.gse-chip {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(21, 20, 18, 0.14);
  background: var(--bg-canvas);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}

.gse-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: #ffffff;
}

/* Video Card: Concentric radii (20px outer / 8px padding -> 12px inner frame) */
.guide-video-card {
  background: #fffdf8;
  border: 1px solid rgba(21, 20, 18, 0.11);
  border-radius: 20px;
  padding: 8px;
  box-shadow:
    0 2px 6px rgba(28, 22, 14, 0.04),
    0 14px 32px rgba(28, 22, 14, 0.055);
}

.guide-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #f3ece0;
}

.guide-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #f3ece0;
  cursor: pointer;
}

.guide-center-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  background: rgba(21, 20, 18, 0.78);
  backdrop-filter: blur(6px);
  color: #fffdf8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease;
}

.guide-center-play svg {
  width: 24px;
  height: 24px;
  margin-left: 2px;
}

.guide-center-play:hover {
  transform: translate(-50%, -50%) scale(1.05);
  background: #151412;
}

/* Dedicated Slim Controls Strip Below Video */
.guide-controls {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(241, 233, 220, 0.65);
  color: var(--ink);
}

.gctl-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.13s ease;
}

.gctl-btn:hover {
  background: rgba(21, 20, 18, 0.08);
}

.gctl-btn svg {
  width: 15px;
  height: 15px;
}

.gctl-progress-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Generous 24px vertical hit target for effortless pointer scrubbing */
.gctl-scrubber {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 48px;
  height: 24px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.gctl-scrubber::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(21, 20, 18, 0.16);
}

.gctl-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid #fffdf8;
  box-shadow: 0 1px 3px rgba(21, 20, 18, 0.25);
  margin-top: -4px;
}

.gctl-scrubber::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(21, 20, 18, 0.16);
}

.gctl-scrubber::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid #fffdf8;
}

.gctl-time {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* Unified Audio Pill inside Controls Strip (zero overlap with video frame!) */
.gctl-audio-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(21, 20, 18, 0.16);
  background: #fffdf8;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.gctl-audio-pill:hover {
  border-color: var(--ink);
}

.gctl-audio-pill:active {
  transform: scale(0.96);
}

.gctl-audio-pill svg {
  width: 14px;
  height: 14px;
}

.gctl-audio-pill[aria-pressed="true"] {
  background: var(--focus-green);
  border-color: var(--focus-green);
  color: #fffdf8;
}

.gctl-chip {
  height: 26px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid rgba(21, 20, 18, 0.14);
  background: #fffdf8;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  flex-shrink: 0;
}

.gctl-chip:hover {
  border-color: var(--ink);
}

/* ==========================================================================
   End-User System Settings Illustrations (macOS / Windows OS Guides)
   Matches the exact visual craft of the 14 side-by-side tutorial videos
   ========================================================================== */
.guide-os-stage {
  position: absolute;
  inset: 0;
  z-index: 8;
  padding: 20px 24px;
  background:
    radial-gradient(circle at 82% 16%, rgba(243, 156, 43, 0.13), transparent 44%),
    radial-gradient(circle at 16% 86%, rgba(76, 125, 96, 0.09), transparent 46%),
    linear-gradient(135deg, #fbf7ed 0%, #f1e9da 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.os-mock-window {
  width: min(590px, 100%);
  background: #fffdf8;
  border: 1.3px solid rgba(21, 20, 18, 0.14);
  border-radius: 16px;
  box-shadow:
    0 2px 6px rgba(28, 22, 14, 0.05),
    0 18px 40px rgba(28, 22, 14, 0.09);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.os-mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(21, 20, 18, 0.08);
  background: rgba(251, 247, 237, 0.85);
  font-size: 12px;
  font-weight: 750;
  color: var(--ink-soft);
}

.os-dots {
  display: inline-flex;
  gap: 5px;
}

.os-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.os-dot.r { background: #ee6a5f; }
.os-dot.y { background: #f4be50; }
.os-dot.g { background: #62c554; }

.os-mock-bar-win {
  padding: 8px 12px 8px 14px;
}

.os-win-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 750;
  color: var(--ink);
}

.os-win-title img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.os-win-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  line-height: 1;
  color: var(--ink-muted);
}

.os-win-ctl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.os-mock-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.os-crumb {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.os-crumb strong {
  color: var(--ink);
}

.os-list-box {
  border: 1px solid rgba(21, 20, 18, 0.1);
  border-radius: 12px;
  background: #fcf8ee;
  overflow: hidden;
}

.os-app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
}

.os-app-row + .os-app-row {
  border-top: 1px solid rgba(21, 20, 18, 0.07);
}

.os-app-row.is-target {
  background: #fffdf8;
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--accent);
}

.os-app-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.os-app-left img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.os-app-glyph {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(21, 20, 18, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-muted);
}

.os-switch {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: rgba(21, 20, 18, 0.16);
  position: relative;
  flex-shrink: 0;
}

.os-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.os-switch.is-on {
  background: var(--focus-green);
}

.os-switch.is-on::after {
  left: 18px;
}

.os-foot-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.os-action-pill {
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--ink);
  color: #fffdf8;
  font-size: 11.5px;
  font-weight: 750;
  white-space: nowrap;
}

.os-status-ok {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(76, 125, 96, 0.14);
  color: #2f5e43;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.os-win-banner {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.2px solid rgba(243, 156, 43, 0.45);
  background: rgba(255, 245, 222, 0.82);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.os-win-banner-txt {
  font-size: 12.5px;
  line-height: 1.5;
  color: #4f3a18;
}

.os-win-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 11px;
  border: 1px solid rgba(21, 20, 18, 0.1);
  background: #fcf8ee;
  font-size: 12.5px;
  font-weight: 750;
  color: var(--ink);
}

/* ==========================================================================
   Crisp Detail Card (Tight vertical rhythm so desktop fits in 880px viewport)
   ========================================================================== */
.guide-detail-card {
  background: #fffdf8;
  border: 1px solid rgba(21, 20, 18, 0.1);
  border-radius: 18px;
  padding: 15px 20px 13px;
  box-shadow: 0 2px 6px rgba(28, 22, 14, 0.03);
}

.guide-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guide-title-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  min-width: 0;
}

.detail-title {
  margin: 0;
  font-size: 18.5px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}

.guide-badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.gbadge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 750;
  background: var(--bg-surface);
  color: var(--ink-soft);
}

.gbadge-pro {
  background: rgba(243, 156, 43, 0.16);
  color: #8f4f05;
}

.gbadge-free {
  background: rgba(76, 125, 96, 0.12);
  color: #2f5e43;
}

/* Subtle tactile light keycap style — never competes with solid black CTAs */
.gbadge-kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 750;
  border-radius: 6px;
  padding: 2px 8px;
  background: rgba(21, 20, 18, 0.05);
  border: 1px solid rgba(21, 20, 18, 0.16);
  box-shadow: inset 0 -1px 0 rgba(21, 20, 18, 0.12);
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.guide-copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(21, 20, 18, 0.14);
  background: transparent;
  color: var(--ink-muted);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}

.guide-copy-btn svg {
  width: 13px;
  height: 13px;
}

.guide-copy-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.guide-copy-btn.copied {
  border-color: var(--focus-green);
  background: rgba(76, 125, 96, 0.1);
  color: #2f5e43;
}

/* Instant-locate entry path strip */
.guide-where-row {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(241, 233, 220, 0.52);
  font-size: 12.5px;
}

.guide-where-label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-text);
  letter-spacing: 0.02em;
}

.guide-where-path {
  font-weight: 650;
  color: var(--ink);
}

/* Crisp Scannable Steps */
.guide-steps {
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.guide-step-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  align-items: start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.guide-step-item strong {
  color: var(--ink);
  font-weight: 750;
}

.guide-step-item code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  background: rgba(21, 20, 18, 0.06);
  border: 1px solid rgba(21, 20, 18, 0.12);
  color: var(--ink);
  padding: 1px 5px;
  border-radius: 5px;
  white-space: nowrap;
}

.guide-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(21, 20, 18, 0.07);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}

/* Quiet Inline Tip */
.guide-tip-inline {
  margin: 10px 0 0;
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 12.2px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.guide-tip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transform: translateY(-2px);
}

/* Compact Footer Action Row */
.guide-detail-foot {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(21, 20, 18, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.guide-pager-btn {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(21, 20, 18, 0.14);
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.guide-pager-btn:hover:not(:disabled) {
  background: rgba(21, 20, 18, 0.05);
  border-color: var(--ink);
  color: var(--ink);
}

.guide-pager-btn:disabled {
  opacity: 0.36;
  cursor: default;
}

.guide-try-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fbf7ed;
  font-size: 12.5px;
  font-weight: 750;
  transition: opacity 0.14s ease;
}

.guide-try-btn:hover {
  opacity: 0.88;
}

/* ==========================================================================
   Responsive Layout: Tablet & Mobile (Item Rail ABOVE Video, Zero Buried List)
   ========================================================================== */
@media (max-width: 960px) {
  .guide-main {
    padding: 10px 18px 40px;
  }

  .guide-toolbar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 6px 0 12px;
    margin-bottom: 12px;
  }

  .guide-page-title {
    order: 1;
  }

  .guide-search-wrap {
    order: 2;
    margin-left: auto;
    width: 186px;
  }

  #guide-cat-wrap {
    order: 3;
    flex-basis: 100%;
  }

  .guide-workbench {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  /* Keep list pane ABOVE video as a crisp horizontal quick-switch chip rail */
  .guide-list-pane {
    padding-top: 0;
  }

  .guide-list-head {
    padding: 0 2px 6px;
    margin-bottom: 6px;
    border-bottom: none;
  }

  .guide-item-list {
    flex-direction: row;
    gap: 7px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .guide-item-list::-webkit-scrollbar {
    display: none;
  }

  .guide-item-btn {
    width: auto;
    min-height: 38px;
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(21, 20, 18, 0.12);
    background: rgba(255, 253, 248, 0.78);
  }

  .guide-item-btn.active {
    background: #fffdf8;
    border-color: var(--ink);
    box-shadow: 0 2px 8px rgba(28, 22, 14, 0.08);
  }

  .guide-item-cat-pill {
    display: none;
  }

  /* Hide sidebar empty-state box on small screens because main stage shows unified empty panel */
  .guide-empty-state {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .guide-body .site-header {
    padding: 10px 14px 0;
    height: 44px;
  }

  .guide-main {
    padding: 6px 14px 32px;
  }

  .guide-toolbar {
    gap: 8px;
    padding: 4px 0 9px;
    margin-bottom: 9px;
  }

  .guide-page-title {
    font-size: 16.5px;
  }

  .guide-cat-tab {
    height: 32px;
    padding: 0 11px;
    font-size: 12.5px;
  }

  .guide-search-wrap {
    width: 156px;
  }

  .guide-search-input {
    height: 32px;
    font-size: 12.5px;
  }

  .guide-workbench {
    gap: 9px;
  }

  .guide-list-head {
    padding: 0 2px 4px;
    margin-bottom: 3px;
  }

  .guide-item-btn {
    min-height: 34px;
    padding: 5px 11px;
  }

  .guide-item-title {
    font-size: 13px;
  }

  .guide-stage-content {
    gap: 9px;
  }

  .guide-video-card {
    padding: 4px;
    border-radius: 14px;
  }

  .guide-video-frame {
    border-radius: 10px;
  }

  .guide-controls {
    margin-top: 5px;
    padding: 3px 6px;
  }

  .guide-detail-card {
    padding: 12px 13px 11px;
    border-radius: 14px;
  }

  .guide-detail-head {
    align-items: flex-start;
  }

  .detail-title {
    font-size: 16.5px;
  }

  .guide-where-row {
    margin-top: 7px;
    padding: 5px 9px;
    font-size: 12px;
  }

  .guide-steps {
    margin-top: 9px;
    gap: 5px;
  }

  .guide-step-item {
    font-size: 13px;
    line-height: 1.45;
  }

  .guide-tip-inline {
    margin-top: 8px;
    font-size: 11.8px;
  }

  .guide-detail-foot {
    margin-top: 9px;
    padding-top: 9px;
  }

  .gctl-time {
    display: none;
  }

  .guide-os-stage {
    padding: 10px;
  }

  .os-mock-bar {
    padding: 7px 10px;
    font-size: 11px;
  }

  .os-mock-body {
    padding: 10px 11px 11px;
    gap: 8px;
  }

  .os-app-row {
    padding: 7px 9px;
    font-size: 11.5px;
  }

  .os-foot-note {
    flex-wrap: wrap;
    font-size: 10.5px;
  }

  .guide-stage-empty {
    min-height: 300px;
    padding: 24px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-cat-tab,
  .guide-item-btn,
  .guide-try-btn,
  .gctl-audio-pill,
  .guide-stage-content.is-switching {
    transition: none;
    animation: none;
  }
}
