.rr-onboarding-open,
.rr-guide-open {
  overflow: hidden;
}

.rr-dashboard-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.rr-dashboard-guide-shell {
  position: relative;
}

.rr-dashboard-guide-shell__trigger {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(169, 123, 60, 0.26);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(250, 238, 214, 0.96));
  box-shadow: 0 14px 30px rgba(100, 63, 28, 0.12);
  color: #7d5324;
  font-family: "Fraunces", "Georgia", serif;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, color 220ms ease;
}

.rr-dashboard-guide-shell__trigger:hover,
.rr-dashboard-guide-shell__trigger:focus-visible,
.rr-dashboard-guide-shell.is-open .rr-dashboard-guide-shell__trigger {
  transform: translateY(-1px);
  border-color: rgba(169, 123, 60, 0.42);
  box-shadow: 0 18px 38px rgba(100, 63, 28, 0.16);
  color: #5a3718;
}

.rr-dashboard-guide-shell__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(320px, calc(100vw - 32px));
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(179, 137, 73, 0.24);
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.98), rgba(250, 239, 217, 0.98));
  box-shadow: 0 24px 54px rgba(93, 62, 29, 0.16);
  z-index: 4;
  animation: rr-guide-reveal-in 220ms ease both;
}

.rr-dashboard-guide-shell__eyebrow {
  margin: 0 0 8px;
  color: #9a6a2d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rr-dashboard-guide-shell__copy {
  margin: 0 0 14px;
  color: #6f5339;
  line-height: 1.5;
}

.rr-guide-button {
  border-color: color-mix(in srgb, #a36b2f 42%, var(--border) 58%);
  background: color-mix(in srgb, #fff7eb 88%, white 12%);
  box-shadow: 0 10px 24px rgba(104, 68, 33, 0.08);
}

.rr-guide-button--dashboard {
  width: 100%;
  justify-content: center;
  min-height: 44px;
  background: linear-gradient(135deg, rgba(249, 214, 119, 0.96), rgba(229, 143, 59, 0.96));
  border-color: rgba(184, 116, 49, 0.34);
  color: #35200f;
  box-shadow: 0 16px 32px rgba(154, 98, 38, 0.16);
}

.rr-guide-button:hover,
.rr-guide-button:focus-visible {
  border-color: rgba(163, 107, 47, 0.48);
  background: #fff4e1;
}

.rr-guide-button--dashboard:hover,
.rr-guide-button--dashboard:focus-visible {
  background: linear-gradient(135deg, rgba(251, 220, 132, 0.98), rgba(234, 152, 72, 0.98));
  border-color: rgba(184, 116, 49, 0.42);
}

.rr-onboarding-flow[hidden],
.rr-guide-overlay[hidden] {
  display: none !important;
}

.rr-onboarding-flow,
.rr-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.rr-onboarding-flow__backdrop,
.rr-guide-overlay__backdrop {
  position: absolute;
  inset: 0;
  animation: rr-guide-fade 240ms ease both;
}

.rr-onboarding-flow__backdrop {
  background: rgba(69, 46, 25, 0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.rr-guide-overlay__backdrop {
  background: rgba(69, 46, 25, 0.06);
}

.rr-onboarding-flow__panel,
.rr-guide-overlay__panel {
  position: fixed;
  width: min(380px, calc(100vw - 28px));
  border-radius: 24px;
  border: 1px solid rgba(179, 137, 73, 0.24);
  background: linear-gradient(180deg, rgba(255, 249, 238, 0.98), rgba(251, 242, 224, 0.98));
  box-shadow: 0 28px 56px rgba(93, 62, 29, 0.18);
}

.rr-onboarding-flow__panel {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 24px;
  animation: rr-onboarding-modal-in 260ms ease both;
}

.rr-guide-overlay__panel {
  padding: 20px 20px 18px;
  animation: rr-guide-panel-in 240ms ease both;
}

.rr-onboarding-flow__eyebrow,
.rr-guide-overlay__eyebrow,
.rr-onboarding-inline-card__eyebrow {
  margin: 0 0 10px;
  color: #9a6a2d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rr-onboarding-flow__title {
  margin: 0 0 10px;
  color: #4a2e18;
  font-family: "Fraunces", "Georgia", serif;
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  line-height: 1.15;
}

.rr-onboarding-flow__body,
.rr-guide-overlay__copy,
.rr-onboarding-inline-card__copy {
  margin: 0;
  color: #6f5339;
  line-height: 1.55;
}

.rr-onboarding-flow__actions,
.rr-guide-overlay__actions,
.rr-onboarding-inline-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.rr-guide-overlay__copy {
  display: grid;
  gap: 2px;
  max-width: 25ch;
}

.rr-guide-overlay__copy span {
  display: block;
}

.rr-guide-overlay__spotlight {
  position: fixed;
  border-radius: 26px;
  border: 1px solid rgba(208, 155, 83, 0.6);
  box-shadow: 0 0 0 9999px rgba(69, 46, 25, 0.12), 0 0 0 8px rgba(247, 206, 143, 0.24), 0 20px 42px rgba(93, 62, 29, 0.12);
  pointer-events: none;
  transition: top 240ms ease, left 240ms ease, width 240ms ease, height 240ms ease, opacity 200ms ease;
}

.rr-guide-focus-target {
  position: relative;
  box-shadow: 0 0 0 2px rgba(232, 183, 103, 0.54), 0 18px 34px rgba(98, 64, 29, 0.1);
  border-radius: 24px;
  transition: box-shadow 220ms ease;
}

.rr-onboarding-inline-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  border: 1px solid rgba(197, 145, 79, 0.22);
  background: linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(251, 241, 220, 0.96));
  box-shadow: 0 18px 38px rgba(106, 68, 31, 0.08);
}

.rr-onboarding-inline-card--success {
  border-color: rgba(146, 119, 54, 0.24);
}

.rr-selection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rr-selection-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(191, 151, 94, 0.26);
  background: rgba(255, 248, 235, 0.96);
  color: #5b3b1f;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.rr-selection-pill:hover,
.rr-selection-pill:focus-within {
  transform: translateY(-1px);
  border-color: rgba(191, 151, 94, 0.42);
  box-shadow: 0 12px 24px rgba(105, 70, 32, 0.09);
}

.rr-selection-pill__checkbox {
  width: 18px;
  height: 18px;
  accent-color: #b47731;
}

.rr-selection-pill__label {
  font-weight: 600;
}

@keyframes rr-guide-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rr-onboarding-modal-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 12px));
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes rr-guide-panel-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rr-guide-reveal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 720px) {
  .rr-dashboard-topbar {
    justify-content: flex-end;
  }

  .rr-dashboard-guide-shell__panel {
    right: 0;
    left: auto;
    width: min(280px, calc(100vw - 32px));
  }

  .rr-guide-overlay__panel {
    left: 14px !important;
    right: 14px;
    top: auto !important;
    bottom: 14px;
    width: auto !important;
    transform: none !important;
  }

  .rr-guide-overlay__spotlight {
    display: none;
  }

  .rr-onboarding-inline-card {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rr-onboarding-flow__panel,
  .rr-guide-overlay__panel,
  .rr-onboarding-flow__backdrop,
  .rr-guide-overlay__backdrop,
  .rr-guide-overlay__spotlight,
  .rr-selection-pill {
    animation: none !important;
    transition: none !important;
  }
}
