.tf-guided-toggle {
  position: fixed;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 110;
  border: 1px solid rgba(140, 106, 62, 0.45);
  background: rgba(15, 17, 20, 0.94);
  color: #e6ddcf;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.tf-guided-toggle:focus-visible {
  outline: 2px solid rgba(140, 106, 62, 0.72);
  outline-offset: 2px;
}

.tf-guided-launcher {
  z-index: 120;
}

.tf-guided-walkthrough {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(64px + env(safe-area-inset-bottom));
  z-index: 121;
  margin: 0 auto;
  max-width: 620px;
  border: 1px solid rgba(140, 106, 62, 0.5);
  border-radius: 12px;
  background: rgba(15, 17, 20, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  padding: 12px;
}

.tf-guided-walkthrough-kicker {
  margin: 0 0 3px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze, #8c6a3e);
  font-weight: 700;
}

.tf-guided-walkthrough-title {
  margin: 0;
  font-size: 15px;
  color: #f2e6d7;
}

.tf-guided-walkthrough-body {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted, #b5b7b9);
}

.tf-guided-walkthrough-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tf-guided-walkthrough-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tf-guided-btn {
  border-radius: 8px;
  border: 1px solid rgba(181, 183, 185, 0.24);
  background: rgba(38, 40, 45, 0.72);
  color: #e6ddcf;
  font-size: 12px;
  font-weight: 650;
  padding: 8px 12px;
  cursor: pointer;
}

.tf-guided-btn--ghost {
  background: transparent;
  color: var(--muted, #b5b7b9);
}

.tf-guided-btn--primary {
  border-color: rgba(140, 106, 62, 0.65);
  background: rgba(140, 106, 62, 0.18);
  color: #f6ede2;
}

.tf-guided-btn:focus-visible {
  outline: 2px solid rgba(140, 106, 62, 0.72);
  outline-offset: 2px;
}

.tf-guided-panel {
  margin: 14px auto;
  max-width: 1160px;
  border: 1px solid rgba(140, 106, 62, 0.32);
  border-radius: 12px;
  background: rgba(22, 24, 27, 0.92);
  padding: 12px;
}

.tf-guided-title {
  margin: 0;
  font-size: 14px;
  color: #f2e6d7;
}

.tf-guided-subtitle {
  margin: 4px 0 10px;
  font-size: 12px;
  color: var(--muted, #b5b7b9);
}

.tf-guided-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.tf-guided-step {
  border: 1px solid rgba(181, 183, 185, 0.2);
  background: rgba(43, 46, 51, 0.68);
  border-radius: 10px;
  padding: 10px;
  text-decoration: none;
  color: #e6ddcf;
  font-size: 12px;
  font-weight: 650;
  display: block;
}

.tf-guided-step:hover,
.tf-guided-step:focus-visible {
  border-color: rgba(140, 106, 62, 0.5);
  color: #ffffff;
  outline: none;
}

.tf-guided-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: var(--muted, #b5b7b9);
}

.tf-guided-focus a {
  color: var(--bronze, #8c6a3e);
  text-decoration: none;
  font-weight: 700;
}

.tf-guided-target {
  position: relative;
  border-color: rgba(140, 106, 62, 0.7) !important;
  box-shadow: 0 0 0 2px rgba(140, 106, 62, 0.24);
}

.tf-guided-target::after {
  content: attr(data-guided-label);
  position: absolute;
  left: 8px;
  top: -11px;
  background: #8c6a3e;
  color: #16181b;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  pointer-events: none;
}

body:not(.tf-guided-on) .tf-guided-panel {
  display: none;
}

@media (max-width: 768px) {
  .tf-guided-toggle {
    bottom: calc(72px + env(safe-area-inset-bottom));
    right: 10px;
    font-size: 11px;
    padding: 8px 12px;
  }

  .tf-guided-panel {
    margin: 10px auto;
    border-radius: 10px;
    padding: 10px;
  }

  .tf-guided-steps {
    grid-template-columns: 1fr;
  }

  .tf-guided-walkthrough {
    left: 10px;
    right: 10px;
    bottom: calc(118px + env(safe-area-inset-bottom));
    padding: 10px;
  }

  .tf-guided-walkthrough-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tf-guided-walkthrough-nav {
    justify-content: space-between;
  }
}
