:root {
  --peach-help-surface: #fffdfb;
  --peach-help-ink: #26322d;
  --peach-help-muted: #66736d;
  --peach-help-line: #d9e0dc;
  --peach-help-accent: #ad4932;
  --peach-help-soft: #fff0e8;
  --peach-help-shadow: 0 24px 64px rgba(42, 31, 27, .2);
}
[data-theme="dark"] {
  --peach-help-surface: #17201c;
  --peach-help-ink: #f5f7f5;
  --peach-help-muted: #a9b4ae;
  --peach-help-line: #39463f;
  --peach-help-soft: #35251f;
  --peach-help-shadow: 0 24px 64px rgba(0, 0, 0, .46);
}
.peach-help-trigger {
  width: 38px; height: 38px; display: inline-grid; place-items: center; flex: 0 0 auto;
  border: 1px solid var(--peach-help-line); border-radius: 6px; background: var(--peach-help-surface);
  color: var(--peach-help-ink); font: 700 16px/1 system-ui, sans-serif; cursor: pointer;
}
.peach-help-trigger:hover { border-color: var(--peach-help-accent); color: var(--peach-help-accent); }
.peach-help-trigger:active { transform: translateY(1px); }
.peach-help-trigger:focus-visible, .peach-onboarding button:focus-visible, .peach-help-panel button:focus-visible,
.peach-checklist button:focus-visible, .peach-tour-controls button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--peach-help-accent) 55%, white); outline-offset: 2px;
}
.studio-header .peach-help-trigger, .shell-topbar .peach-help-trigger, .topbar .peach-help-trigger { margin-left: 8px; }
.peach-demo-banner {
  position: fixed; z-index: 820; top: 0; left: var(--shell-rail, 52px); right: 0; min-height: 44px;
  display: flex; align-items: center; justify-content: center; gap: 16px; padding: 8px 16px;
  background: #2d453a; color: #fff; box-shadow: 0 3px 14px rgba(20, 36, 29, .2); font-size: 14px;
}
.peach-demo-banner button { background: transparent; border: 1px solid rgba(255,255,255,.58); color: #fff; }
body.peach-demo { padding-top: 44px; }
.peach-onboarding {
  color: var(--peach-help-ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.peach-onboarding::backdrop { background: rgba(18, 25, 22, .64); backdrop-filter: blur(3px); }
.peach-onboarding[open] { border: 0; border-radius: 8px; padding: 0; width: min(760px, calc(100vw - 32px)); max-height: min(760px, calc(100dvh - 32px)); background: var(--peach-help-surface); box-shadow: var(--peach-help-shadow); }
.peach-welcome-head, .peach-tip-head { padding: 26px 28px 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.peach-welcome-head h2, .peach-tip-head h2 { margin: 0; font-size: clamp(24px, 4vw, 38px); line-height: 1.05; letter-spacing: 0; }
.peach-dialog-close { width: 36px; height: 36px; border: 0; background: transparent; color: var(--peach-help-muted); font-size: 23px; cursor: pointer; }
.peach-welcome-panels { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--peach-help-line); }
.peach-welcome-panels article { padding: 24px; min-height: 190px; }
.peach-welcome-panels article + article { border-left: 1px solid var(--peach-help-line); }
.peach-welcome-panels strong { display: block; margin-bottom: 12px; font-size: 16px; }
.peach-welcome-panels p, .peach-tip-copy { color: var(--peach-help-muted); line-height: 1.55; }
.peach-start-links { display: grid; gap: 7px; margin-top: 12px; }
.peach-start-links a { color: var(--peach-help-ink); font-weight: 650; }
.peach-dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 20px 28px 26px; }
.peach-onboarding button, .peach-help-panel button, .peach-checklist button {
  min-height: 38px; border: 1px solid var(--peach-help-line); border-radius: 6px; padding: 9px 14px;
  background: var(--peach-help-surface); color: var(--peach-help-ink); font: 650 14px/1.2 inherit; cursor: pointer;
}
.peach-onboarding button.primary, .peach-help-panel button.primary, .peach-checklist button.primary { background: var(--peach-help-accent); border-color: var(--peach-help-accent); color: #fff; }
.peach-tip-body { padding: 0 28px 8px; }
.peach-tip-choice { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; color: var(--peach-help-muted); }
.peach-tip-choice input { margin-top: 3px; }
.peach-help-panel {
  position: fixed; z-index: 850; top: 0; right: 0; bottom: 0; width: min(430px, 92vw); display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto; background: var(--peach-help-surface); color: var(--peach-help-ink);
  border-left: 1px solid var(--peach-help-line); box-shadow: var(--peach-help-shadow); transform: translateX(105%); transition: transform .24s ease;
}
.peach-help-panel.open { transform: translateX(0); }
.peach-help-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 12px; }
.peach-help-head h2 { margin: 0; font-size: 22px; }
.peach-help-tabs { display: flex; gap: 2px; padding: 0 16px 12px; border-bottom: 1px solid var(--peach-help-line); overflow-x: auto; }
.peach-help-tabs button { border-color: transparent; background: transparent; color: var(--peach-help-muted); white-space: nowrap; }
.peach-help-tabs button[aria-selected="true"] { color: var(--peach-help-accent); border-bottom-color: var(--peach-help-accent); }
.peach-help-content { overflow: auto; padding: 22px 22px 50px; }
.peach-help-content h1 { display: none; }
.peach-help-content h2 { margin: 26px 0 8px; font-size: 18px; }
.peach-help-content h2:first-child { margin-top: 0; }
.peach-help-content p, .peach-help-content li { color: var(--peach-help-muted); line-height: 1.55; }
.peach-help-content ol, .peach-help-content ul { padding-left: 22px; }
.peach-help-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 18px; }
.peach-help-footer { padding: 14px 20px; border-top: 1px solid var(--peach-help-line); color: var(--peach-help-muted); font-size: 13px; }
.peach-help-footer div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.peach-help-footer button { min-height: 30px; padding: 5px 9px; }
.peach-help-footer a { color: var(--peach-help-accent); }
.peach-shortcuts { display: grid; gap: 10px; }
.peach-shortcuts div { display: flex; justify-content: space-between; gap: 20px; padding-block: 8px; border-bottom: 1px solid var(--peach-help-line); }
.peach-shortcuts kbd { font: 600 12px/1 system-ui; border: 1px solid var(--peach-help-line); border-bottom-width: 2px; border-radius: 4px; padding: 4px 7px; }
.peach-tooltip {
  position: fixed; z-index: 920; max-width: 260px; padding: 8px 10px; border-radius: 5px;
  background: #1f2b25; color: #fff; font: 500 12px/1.4 system-ui, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.24);
  pointer-events: none;
}
.peach-checklist { margin: 26px 0; padding: 22px; border: 1px solid var(--peach-help-line); border-radius: 8px; background: var(--peach-help-surface); color: var(--peach-help-ink); }
.peach-checklist-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.peach-checklist h2 { margin: 0 0 4px; font-size: 20px; }
.peach-checklist p { margin: 0; color: var(--peach-help-muted); }
.peach-checklist ul { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; list-style: none; padding: 0; margin: 18px 0 0; background: var(--peach-help-line); border: 1px solid var(--peach-help-line); }
.peach-checklist li { min-height: 76px; padding: 13px; background: var(--peach-help-surface); color: var(--peach-help-muted); font-size: 13px; }
.peach-checklist li.done { color: var(--peach-help-ink); background: color-mix(in srgb, #d8efe2 44%, var(--peach-help-surface)); }
.peach-checklist li.done::before { content: "✓ "; color: #23764c; font-weight: 800; }
.peach-tour-layer { position: fixed; z-index: 900; inset: 0; pointer-events: none; }
.peach-tour-dim { position: absolute; inset: 0; background: rgba(12, 18, 15, .68); opacity: .96; }
.peach-tour-spotlight { position: fixed; border: 3px solid #fff; border-radius: 8px; box-shadow: 0 0 0 9999px rgba(12,18,15,.68), 0 8px 30px rgba(0,0,0,.2); transition: transform .26s ease, width .26s ease, height .26s ease; }
.peach-tour-cursor { position: fixed; width: 25px; height: 31px; filter: drop-shadow(0 3px 5px rgba(0,0,0,.3)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.peach-tour-cursor svg { width: 100%; height: 100%; }
.peach-tour-ripple { position: fixed; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; opacity: 0; transform: translate(-50%, -50%); }
.peach-tour-ripple.show { animation: peach-tour-ripple .42s ease-out; }
.peach-tour-trail { position: fixed; height: 5px; border-radius: 3px; opacity: 0; transform-origin: left center; background: rgba(255,255,255,.72); }
.peach-tour-trail.show { animation: peach-tour-trail .55s ease-out; }
@keyframes peach-tour-ripple { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.3); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(5); } }
@keyframes peach-tour-trail { 0% { opacity: 0; transform: scaleX(.08); } 35% { opacity: 1; } 100% { opacity: 0; transform: scaleX(1); } }
.peach-tour-caption {
  position: fixed; width: min(330px, calc(100vw - 32px)); padding: 16px; border-radius: 8px; background: var(--peach-help-surface);
  color: var(--peach-help-ink); box-shadow: var(--peach-help-shadow); pointer-events: auto;
}
.peach-tour-caption small { display: block; color: var(--peach-help-accent); font-weight: 700; margin-bottom: 6px; }
.peach-tour-caption p { margin: 0; line-height: 1.45; }
.peach-tour-controls {
  position: fixed; z-index: 905; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  width: min(900px, calc(100vw - 24px)); padding: 9px; border: 1px solid var(--peach-help-line); border-radius: 8px; background: var(--peach-help-surface);
  color: var(--peach-help-ink); box-shadow: var(--peach-help-shadow); pointer-events: auto;
}
.peach-tour-transport, .peach-tour-options { display: flex; align-items: center; gap: 5px; }
.peach-tour-options { margin-left: auto; }
.peach-tour-controls button, .peach-tour-controls select { min-height: 38px; border: 1px solid var(--peach-help-line); border-radius: 5px; background: var(--peach-help-surface); color: var(--peach-help-ink); padding: 7px 10px; white-space: nowrap; }
.peach-tour-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-weight: 700; }
.peach-tour-controls button.primary { min-width: 94px; background: var(--peach-help-accent); border-color: var(--peach-help-accent); color: white; }
.peach-tour-controls button:disabled { opacity: .42; cursor: not-allowed; }
.peach-tour-controls button svg, .peach-tour-finish button svg { width: 16px; height: 16px; }
.peach-tour-speed, .peach-tour-step-toggle { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; color: var(--peach-help-muted); }
.peach-tour-step-toggle { min-height: 38px; padding: 0 7px; }
.peach-tour-progress { min-width: 58px; text-align: center; color: var(--peach-help-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.peach-tour-finish { position: fixed; z-index: 906; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 32px)); padding: 26px; border-radius: 8px; background: var(--peach-help-surface); color: var(--peach-help-ink); box-shadow: var(--peach-help-shadow); pointer-events: auto; }
.peach-tour-finish h2 { margin-top: 0; }
.peach-tour-layer.finished .peach-tour-spotlight, .peach-tour-layer.finished .peach-tour-cursor,
.peach-tour-layer.finished .peach-tour-caption, .peach-tour-layer.finished .peach-tour-controls,
.peach-tour-layer.finished .peach-tour-ripple, .peach-tour-layer.finished .peach-tour-trail { display: none !important; }
.peach-tour-practice { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.peach-context-hint { position: fixed; z-index: 840; right: 20px; bottom: 22px; width: min(390px, calc(100vw - 32px)); padding: 16px 44px 16px 16px; border-radius: 7px; background: #2d453a; color: white; box-shadow: var(--peach-help-shadow); }
.peach-context-hint button { position: absolute; top: 6px; right: 6px; color: white; border: 0; background: transparent; font-size: 20px; }
.peach-static-help { max-width: 850px; margin: 0 auto; padding: 70px 24px 90px; color: var(--peach-help-ink); }
.peach-static-help h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1; letter-spacing: 0; }
.peach-static-help h2 { margin-top: 38px; }
.peach-static-help p, .peach-static-help li { color: var(--peach-help-muted); line-height: 1.65; }
.peach-help-hub-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; padding: 0; list-style: none; background: var(--peach-help-line); border: 1px solid var(--peach-help-line); }
.peach-help-hub-list a { display: block; min-height: 92px; padding: 18px; background: var(--peach-help-surface); color: var(--peach-help-ink); text-decoration: none; font-weight: 700; }
@media (max-width: 700px) {
  .peach-welcome-panels { grid-template-columns: 1fr; }
  .peach-welcome-panels article { min-height: 0; }
  .peach-welcome-panels article + article { border-left: 0; border-top: 1px solid var(--peach-help-line); }
  .peach-help-panel { top: auto; width: 100%; height: min(82dvh, 720px); border-left: 0; border-top: 1px solid var(--peach-help-line); transform: translateY(105%); }
  .peach-help-panel.open { transform: translateY(0); }
  .peach-checklist ul { grid-template-columns: 1fr; }
  .peach-tour-caption { left: 12px !important; right: 12px !important; bottom: 132px !important; top: auto !important; width: auto; }
  .peach-tour-controls { bottom: 8px; display: grid; grid-template-columns: 1fr auto; gap: 7px; padding: 7px; }
  .peach-tour-transport { grid-column: 1; }
  .peach-tour-transport button { flex: 1; }
  .peach-tour-progress { grid-column: 2; grid-row: 1; }
  .peach-tour-options { grid-column: 1 / -1; grid-row: 2; margin-left: 0; overflow-x: auto; }
  .peach-tour-step-toggle { display: none; }
  .peach-tour-cursor { display: none; }
  .peach-help-hub-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .peach-help-panel, .peach-tour-spotlight, .peach-tour-cursor { transition: none !important; }
  .peach-tour-cursor, .peach-tour-ripple, .peach-tour-trail { display: none !important; animation: none !important; }
}
[data-motion="reduced"] .peach-help-panel, [data-motion="reduced"] .peach-tour-spotlight, [data-motion="reduced"] .peach-tour-cursor { transition: none !important; }
[data-motion="reduced"] .peach-tour-cursor, [data-motion="reduced"] .peach-tour-ripple, [data-motion="reduced"] .peach-tour-trail { display: none !important; animation: none !important; }
