.tt-guide-dock {
  position: fixed;
  left: 18px;
  bottom: max(18px, calc(var(--demo-bar-height, 0px) + 14px));
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tt-guide-trigger,
.tt-guide-home {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: #152a24;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  font: 700 14px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-decoration: none;
}

@media (max-width: 640px) {
  .tt-guide-dock {
    left: 8px;
    bottom: max(8px, calc(var(--demo-bar-height, 0px) + 8px));
    gap: 6px;
  }
  .tt-guide-trigger,
  .tt-guide-home {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  }
}

.tt-guide-trigger {
  cursor: pointer;
}

.tt-guide-home { display: inline-flex; align-items: center; }
.tt-guide-trigger:hover,
.tt-guide-home:hover { background: #23473c; color: #fff; }
.tt-guide-trigger:focus-visible,
.tt-guide-home:focus-visible,
.tt-guide-close:focus-visible { outline: 3px solid #75bda6; outline-offset: 3px; }

.tt-guide-backdrop[hidden] { display: none; }
.tt-guide-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 16, 14, .72);
  backdrop-filter: blur(8px);
}

.tt-guide-dialog {
  position: relative;
  width: min(100%, 640px);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 20px;
  background: #fbfaf7;
  color: #202622;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.tt-guide-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid #d7d9d5;
  border-radius: 50%;
  background: transparent;
  color: #202622;
  font-size: 24px;
  cursor: pointer;
}

.tt-guide-kicker { margin: 0 48px 10px 0; color: #356956; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tt-guide-dialog h2 { margin: 0 48px 14px 0; color: #17201b; font: 600 clamp(28px, 5vw, 42px)/1.12 Georgia, serif; }
.tt-guide-intro { margin: 0; color: #58615b; font-size: 17px; line-height: 1.7; }
.tt-guide-dialog h3 { margin: 28px 0 10px; color: #17201b; font-size: 16px; }
.tt-guide-list { margin: 0; padding-left: 1.2em; color: #414b44; line-height: 1.75; }
.tt-guide-note { margin: 28px 0 0; padding: 16px 18px; border-left: 3px solid #356956; background: #eef2ef; color: #46514a; line-height: 1.65; }

@media (max-width: 640px) {
  .tt-guide-dock { left: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .tt-guide-trigger,
  .tt-guide-home { min-height: 44px; padding-inline: 14px; font-size: 13px; }
  .tt-guide-backdrop { padding: 12px; }
  .tt-guide-dialog { max-height: calc(100vh - 24px); border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .tt-guide-backdrop { backdrop-filter: none; }
}
