.guide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px max(var(--page-pad), calc((100% - 1040px) / 2));
  background: var(--ink);
  color: #fff6ea;
}
.guide-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 760; }
.guide-brand img { object-fit: contain; }
.guide-return { font-size: .875rem; font-weight: 650; }
.guide-return:hover { text-decoration: underline; }
.guide-main { width: min(100%, 1112px); margin-inline: auto; padding: clamp(24px, 4vw, 48px) var(--page-pad); }
.guide-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.guide-heading h1 { font-size: clamp(1.8rem, 4.2vw, 3.35rem); line-height: 1.1; letter-spacing: -.048em; }
.guide-heading h1 span { white-space: nowrap; }
.guide-heading p { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.guide-heading a { flex: none; }
.guide-stage { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.guide-scene { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); }
.guide-visual {
  display: grid;
  grid-template-columns: minmax(0, 290px);
  justify-content: center;
  align-items: stretch;
  min-height: 498px;
  padding: clamp(12px, 2.5vw, 30px);
  background: radial-gradient(ellipse at 76% 12%, #654126 0, #33271e 52%, #231d19 92%);
}
.guide-phone {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 474px;
  border: 2px solid #a8876a;
  border-radius: 26px;
  background: #f7ead9;
  box-shadow: 0 10px 22px #1c19175b;
  padding: 7px;
  font-size: .8125rem;
  animation: guide-screen-in .24s ease-out both;
}
.guide-screen-title {
  display: grid;
  grid-template-columns: minmax(16px, 1fr) auto minmax(16px, 1fr);
  align-items: center;
  gap: 3px;
  min-height: 35px;
  border-radius: 10px 10px 0 0;
  padding: 4px;
  background: #5a3927;
  color: #fff7ec;
}
.guide-screen-title > span { justify-self: start; font-size: .86em; white-space: nowrap; }
.guide-screen-title > span:last-child { justify-self: end; }
.guide-screen-title > strong { font-weight: 750; }
.guide-screen-body { display: grid; flex: 1; min-height: 0; align-content: start; gap: 5px; padding: 8px; background: #fcf5eb; }
.guide-screen-dialog { align-content: center; background: #eee0d0; }
.guide-site-body-scroll { grid-template-rows: auto minmax(0, 1fr); align-content: stretch; }
.guide-site-brand { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 10px 10px 0 0; background: var(--ink); color: #fff6ea; }
.guide-site-brand img { object-fit: contain; }
.guide-site-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; font-size: .86em; }
.guide-site-nav strong { color: var(--accent); }
.guide-site-body h3 { margin-top: 8px; font-size: 1.06rem; }
.guide-site-overview { display: grid; gap: 8px; padding-bottom: 20px; }
.guide-site-downloads { padding-bottom: 140px; }
.guide-site-downloads .guide-site-card + .guide-site-card { margin-top: 6px; }
.guide-site-card { display: grid; gap: 6px; padding: 8px; border: 1px solid #ead9c7; border-radius: 8px; background: #fffaf3; }
.guide-site-import { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; font-size: .72rem; }
.guide-site-button { background: var(--orange); border-color: #e97916; }
.guide-address { padding: 6px; border-radius: 0 0 10px 10px; background: #ead8c1; text-align: center; color: #634a36; }
.guide-scroll-viewport { position: relative; overflow: hidden; min-height: 0; }
.guide-scroll-track { position: relative; padding-right: 6px; }
.guide-swipe-cursor {
  position: absolute;
  z-index: 2;
  right: 21%;
  bottom: 20%;
  width: 26px;
  height: 26px;
  border: 2px solid #d28237;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: guide-swipe 2.15s ease-in-out .55s both paused;
}
.guide-node-body { grid-template-rows: repeat(3, auto) minmax(0, 1fr); align-content: stretch; }
.guide-node-list { display: grid; gap: 4px; }
.guide-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3px;
  min-height: 30px;
  padding: 3px 4px;
  border: 1px solid #eee1d0;
  border-radius: 4px;
  background: #fffaf3;
  line-height: 1.25;
}
.guide-row > span:last-child:not(.guide-switch) { color: #655449; }
.guide-row small { font-size: .72rem; }
.guide-route-option { min-height: 40px; }
.guide-route-option small { display: block; margin-top: 3px; }
.guide-wrap { overflow-wrap: anywhere; }
.guide-screen-label { padding: 4px 4px 0; color: #6f5644; font-size: .92em; }
.guide-overlay { display: grid; gap: 3px; border: 1px dashed #c69d77; border-radius: 7px; padding: 5px; background: #f5eadb; }
.guide-options { margin-top: 3px; }
.guide-options .guide-row { min-height: 19px; }
.guide-dialog-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.guide-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; text-align: center; padding: 5px 2px; border-radius: 0 0 10px 10px; background: #ead8c1; color: #634a36; }
.guide-tabs > * { min-width: 0; padding: 2px 0; white-space: nowrap; }
.guide-tabs > strong { color: #69350f; text-decoration: underline; text-underline-offset: 2px; }
.guide-target { position: relative; outline: 1px solid #c77236; outline-offset: -1px; border-radius: 5px; background: #ffebd2; color: #552b10; }
.guide-target[data-tap]::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 13px;
  width: 25px;
  height: 25px;
  border: 2px solid #ed9b4e;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: guide-contact .92s ease-out var(--tap-delay, .95s) both paused;
}
.guide-target[data-follow] { --tap-delay: 2.2s; }
.guide-target[data-after-scroll] { --tap-delay: 2.9s; }
.guide-connect-switch { --tap-delay: 4.35s; }
.guide-screen-title .guide-target, .guide-dialog-actions .guide-target { padding: 2px 4px; }
.guide-switch { position: relative; flex: none; width: 27px; height: 15px; border-radius: 999px; background: #b9a894; }
.guide-switch::before { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.guide-switch-on { background: #26694d; }
.guide-switch-on::before { left: auto; right: 2px; }
.guide-phone-client { border-color: #6d8580; background: #102d2b; color: #e0f0eb; }
.guide-phone-client .guide-screen-title { background: #214944; }
.guide-phone-client .guide-screen-body { background: #142f2e; }
.guide-phone-client .guide-tabs { background: #234642; color: #c4d9d2; }
.guide-phone-client .guide-tabs > strong { color: #f4bb79; }
.guide-phone-client .guide-row { border-color: #345650; background: #1f3e3b; }
.guide-phone-client .guide-screen-label, .guide-phone-client .guide-row > span:last-child:not(.guide-switch), .guide-phone-client .guide-row small { color: #b0c9bf; }
.guide-phone-client .guide-overlay { border-color: #57746b; background: #193836; }
.guide-phone-client .guide-target { outline-color: #e9a763; background: #395346; color: #fff5df; }
.guide-screen-with-feedback { position: relative; --guide-loading-duration: 1.65s; }
.guide-connection-feedback { --guide-loading-duration: 1.8s; }
.guide-import-results { display: grid; gap: inherit; }
.guide-reveal-after-loading { animation: guide-feedback-reveal var(--guide-loading-duration) step-end both paused; }
.guide-feedback { display: grid; position: absolute; inset: 0; z-index: 3; place-items: center; pointer-events: none; }
.guide-feedback-notice {
  display: grid;
  grid-area: 1 / 1;
  min-width: 116px;
  gap: 8px;
  justify-items: center;
  padding: 16px;
  border: 1px solid #587e70;
  border-radius: 12px;
  background: #163733;
  box-shadow: 0 6px 20px #091d1bcc;
  color: #f4fff9;
  visibility: hidden;
  animation: guide-feedback-notice 1.65s step-end paused;
}
.guide-feedback-loading { animation-duration: var(--guide-loading-duration); }
.guide-import-success { animation-delay: var(--guide-loading-duration); }
.guide-feedback-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #547c70;
  border-top-color: #d2f6df;
  border-radius: 50%;
  animation: guide-feedback-spin .8s linear infinite paused;
}
.guide-import-check { color: #b3ebc8; font-size: 1.45rem; line-height: 24px; }
.guide-connected-label { color: #b3ebc8; margin-inline-start: auto; margin-inline-end: 6px; }
.guide-copy { align-self: center; display: grid; gap: 10px; padding: clamp(17px, 3vw, 34px); }
.guide-copy h2 { font-size: clamp(1.3rem, 2.3vw, 1.7rem); }
.guide-copy p { color: var(--muted); }
.guide-copy strong { color: var(--ink); }
.guide-links { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.guide-text-link { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; color: var(--accent); font-size: .875rem; font-weight: 720; }
.guide-text-link:hover { text-decoration: underline; }
.guide-controls { display: flex; justify-content: center; gap: 8px; border-bottom: 1px solid var(--line); padding: 12px; }
.guide-controls button { min-width: 108px; }
.guide-noscript { margin-top: 12px; color: var(--muted); }
.guide-noscript a { text-decoration: underline; }
@keyframes guide-contact {
  0% { opacity: 0; transform: translate(13px, 3px) scale(.9); }
  40% { opacity: 1; transform: translate(0, -50%) scale(.76); }
  100% { opacity: 0; transform: translate(0, -50%) scale(1.36); }
}
@keyframes guide-swipe {
  0% { opacity: 0; transform: translateY(12px); }
  24% { opacity: .9; }
  100% { opacity: 0; transform: translateY(-88px); }
}
@keyframes guide-screen-in {
  from { opacity: .5; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes guide-feedback-reveal {
  from { visibility: hidden; }
  to { visibility: visible; }
}
@keyframes guide-feedback-notice {
  from { visibility: visible; }
  to { visibility: hidden; }
}
@keyframes guide-feedback-spin {
  to { transform: rotate(1turn); }
}
@media (max-width: 650px) {
  .guide-heading { align-items: start; flex-direction: column; }
  .guide-scene { grid-template-columns: minmax(0, 1fr); }
  .guide-visual { min-height: auto; }
}
@media (max-width: 390px) {
  .guide-controls button { font-size: .75rem; }
  .guide-controls button { padding-inline: 10px; }
  .guide-site-nav { font-size: .74em; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-phone, .guide-target[data-tap]::before, .guide-swipe-cursor, .guide-feedback-spinner { animation: none; }
}
