:root {
  --bg: #071f1d;
  --panel: #0b3b38;
  --ink: #f4faf8;
  --muted: #9bb8b4;
  --accent: #5eead4;
  --line: #1a4f4a;
  --warn: #fde68a;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.tour-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.tour-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.tour-brand { display: flex; align-items: center; gap: 10px; }
.tour-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent); color: #042f2e;
  display: grid; place-items: center; font-weight: 800;
}
.tour-mark.lg { width: 64px; height: 64px; font-size: 32px; margin: 0 auto 8px; }
.tour-sub { color: var(--muted); font-size: 12px; }
.tour-top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tour-langs a, .tour-link, .tour-icon, .tour-btn {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}
.tour-langs a.active, .tour-btn.primary { background: var(--accent); color: #042f2e; border-color: transparent; }
.tour-progress { height: 3px; background: var(--line); }
.tour-progress i { display: block; height: 100%; width: 0; background: var(--accent); }
.tour-stage { flex: 1; position: relative; overflow: hidden; }
.tour-slide {
  display: none;
  height: calc(100vh - 132px);
  grid-template-columns: minmax(320px, 42%) 1fr;
  gap: 0;
}
.tour-slide.is-on { display: grid; }
.tour-copy { padding: 28px 32px 20px; overflow: auto; }
.tour-kicker {
  display: flex; justify-content: space-between;
  color: var(--accent); font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px;
}
.tour-num { color: var(--muted); }
.tour-copy h1 { font-size: 28px; line-height: 1.2; margin: 0 0 12px; }
.tour-roles { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tour-pill {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; color: var(--muted);
}
.tour-lead { color: #d7e5e3; font-size: 16px; line-height: 1.5; margin: 0 0 16px; }
.tour-steps { margin: 0; padding-left: 20px; }
.tour-steps li { margin: 0 0 10px; line-height: 1.45; }
.tour-tip {
  margin-top: 16px; padding: 10px 12px; border-radius: 8px;
  background: #3f2f0f; color: var(--warn); font-size: 14px;
}
.tour-shot {
  background: #041614;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-left: 1px solid var(--line);
}
.tour-shot img { width: 100%; height: 100%; object-fit: contain; background: #0f172a; }
.tour-placeholder { text-align: center; color: var(--muted); }
.tour-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 20px; background: var(--panel); border-top: 1px solid var(--line);
}
.tour-dots { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; max-width: 60%; }
.tour-dot {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: #2a5c57; cursor: pointer;
}
.tour-dot.is-on { background: var(--accent); }
.tour-keys { margin: 0; padding: 4px 20px 8px; font-size: 11px; color: var(--muted); text-align: center; }
.tour-grid {
  position: fixed; inset: 56px 0 0; background: var(--bg);
  overflow: auto; padding: 24px 28px 80px; z-index: 5;
}
.tour-grid[hidden] { display: none; }
.tour-grid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tour-card {
  text-align: left; background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer;
}
.tour-card .n { color: var(--accent); font-weight: 800; display: block; }
.tour-card .t { display: block; margin: 4px 0; }
.tour-card .k { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) {
  .tour-slide.is-on { grid-template-columns: 1fr; height: auto; min-height: calc(100vh - 140px); }
  .tour-shot { min-height: 220px; border-left: 0; border-top: 1px solid var(--line); }
  .tour-copy h1 { font-size: 22px; }
}
@media print {
  .tour-top, .tour-nav, .tour-keys, .tour-progress, .tour-grid { display: none !important; }
  .tour-slide { display: grid !important; height: auto; page-break-after: always; break-after: page; }
  .tour-shot img { max-height: 360px; }
  body { background: #fff; color: #111; }
  .tour-copy, .tour-lead { color: #111; }
}
