:root {
  --ebys-help-ink: #0f172a;
  --ebys-help-muted: #64748b;
  --ebys-help-line: #dbe7f7;
  --ebys-help-blue: #155eef;
  --ebys-help-cyan: #0891b2;
  --ebys-help-soft: #f5f9ff;
}

.ebys-help-launcher {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfdbfe;
  border-radius: 13px;
  color: #155eef;
  background: linear-gradient(145deg, #fff, #eef6ff);
  box-shadow: 0 13px 30px -22px rgba(21, 94, 239, .9);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  z-index: 70;
}

.ebys-help-launcher:hover {
  transform: translateY(-1px);
  border-color: #60a5fa;
  box-shadow: 0 16px 32px -20px rgba(21, 94, 239, .85);
}

.ebys-help-launcher svg { width: 19px; height: 19px; }
.ebys-help-launcher.is-floating { position: fixed; left: 18px; bottom: 18px; z-index: 2147483500; }

.ebys-help-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(15, 23, 42, .44);
  backdrop-filter: blur(4px);
  z-index: 2147483600;
}

.ebys-help-backdrop.open { display: block; animation: ebysHelpFade .18s ease-out; }

.ebys-help-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(430px, 100vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ebys-help-ink);
  background:
    radial-gradient(circle at 100% 0, rgba(14, 165, 233, .16), transparent 28%),
    linear-gradient(180deg, #f8fbff 0, #fff 38%);
  border-left: 1px solid rgba(191, 219, 254, .9);
  box-shadow: -30px 0 80px -42px rgba(15, 23, 42, .72);
  transform: translateX(104%);
  transition: transform .24s cubic-bezier(.2, .8, .2, 1);
  z-index: 2147483610;
  overflow: hidden;
}

.ebys-help-drawer.open { transform: translateX(0); }

.ebys-help-head {
  position: relative;
  padding: 24px 24px 20px;
  color: #fff;
  background: linear-gradient(135deg, #0f2f68 0%, #155eef 58%, #06a6c8 130%);
  overflow: hidden;
}

.ebys-help-head::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -62px;
  top: -78px;
  border: 30px solid rgba(255,255,255,.11);
  border-radius: 50%;
}

.ebys-help-head-row { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 14px; }
.ebys-help-mark { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 17px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.26); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.ebys-help-mark svg { width: 24px; height: 24px; }
.ebys-help-title { min-width: 0; flex: 1; }
.ebys-help-title small { display: block; margin-bottom: 4px; color: #bae6fd; font: 850 10px/1.2 inherit; letter-spacing: .12em; text-transform: uppercase; }
.ebys-help-title h2 { margin: 0; color: #fff; font: 850 22px/1.15 inherit; letter-spacing: -.025em; }
.ebys-help-title p { margin: 7px 0 0; color: #dbeafe; font: 650 12px/1.5 inherit; }
.ebys-help-close { position: relative; z-index: 2; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; font-size: 22px; cursor: pointer; }

.ebys-help-role {
  position: relative;
  z-index: 1;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(4, 24, 61, .24);
  color: #fff;
  font: 800 11px/1 inherit;
}
.ebys-help-role-dot { width: 7px; height: 7px; border-radius: 50%; background: #67e8f9; box-shadow: 0 0 0 4px rgba(103,232,249,.14); }

.ebys-help-body { min-height: 0; flex: 1; overflow: auto; padding: 18px; }
.ebys-help-primary {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  color: #0f2f68;
  background: linear-gradient(145deg, #fff, #eef6ff);
  box-shadow: 0 18px 38px -30px rgba(21,94,239,.75);
  text-align: left;
  cursor: pointer;
}
.ebys-help-primary-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(135deg, #155eef, #06a6c8); box-shadow: 0 14px 26px -18px rgba(21,94,239,.9); }
.ebys-help-primary-icon svg { width: 21px; height: 21px; }
.ebys-help-primary strong { display: block; font-size: 14px; }
.ebys-help-primary span { display: block; margin-top: 3px; color: var(--ebys-help-muted); font: 650 11px/1.4 inherit; }
.ebys-help-primary-arrow { color: #155eef !important; font-size: 20px !important; }

.ebys-help-section-label { margin: 20px 4px 9px; color: #64748b; font: 900 10px/1.2 inherit; letter-spacing: .1em; text-transform: uppercase; }
.ebys-help-topic-list { display: grid; gap: 9px; }
.ebys-help-topic {
  display: grid;
  grid-template-columns: 36px minmax(0,1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
}
.ebys-help-topic-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 13px; color: #155eef; background: #eff6ff; }
.ebys-help-topic-icon svg { width: 18px; height: 18px; }
.ebys-help-topic strong { display: block; color: #172033; font-size: 12px; }
.ebys-help-topic p { margin: 4px 0 0; color: #64748b; font: 650 11px/1.45 inherit; }

.ebys-help-callout { margin-top: 14px; padding: 12px 13px; border: 1px solid #fde68a; border-radius: 15px; color: #854d0e; background: #fffbeb; font: 700 11px/1.5 inherit; }
.ebys-help-callout strong { display: block; margin-bottom: 3px; font-size: 12px; }

.ebys-help-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 14px 18px 18px; border-top: 1px solid #e2e8f0; background: rgba(255,255,255,.92); }
.ebys-help-footer a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 9px 12px; border: 1px solid #dbe7f7; border-radius: 13px; color: #1e40af; background: #fff; text-decoration: none; font: 850 11px/1.2 inherit; }
.ebys-help-footer a.primary { border-color: #155eef; color: #fff; background: #155eef; }

.ebys-help-nudge {
  position: fixed;
  right: 18px;
  top: 66px;
  width: min(310px, calc(100vw - 36px));
  display: none;
  grid-template-columns: 34px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 17px;
  background: rgba(255,255,255,.97);
  color: #0f172a;
  box-shadow: 0 24px 60px -32px rgba(15,23,42,.72);
  z-index: 2147483500;
}
.ebys-help-nudge.show { display: grid; animation: ebysHelpSlide .25s ease-out; }
.ebys-help-nudge-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg,#155eef,#06a6c8); }
.ebys-help-nudge strong { display: block; font-size: 11px; }
.ebys-help-nudge span { display: block; margin-top: 2px; color: #64748b; font-size: 10px; line-height: 1.35; }
.ebys-help-nudge button { border: 0; background: transparent; color: #64748b; cursor: pointer; font-size: 18px; }

.ebys-tour-backdrop { position: fixed; inset: 0; background: rgba(2, 6, 23, .68); backdrop-filter: blur(2px); z-index: 2147483620; }
.ebys-tour-target { position: relative !important; z-index: 2147483622 !important; border-radius: 14px !important; box-shadow: 0 0 0 4px #38bdf8, 0 0 0 10px rgba(56,189,248,.24), 0 25px 70px rgba(2,6,23,.34) !important; }
.ebys-tour-tooltip {
  position: fixed;
  width: min(390px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 32px 90px -35px rgba(2,6,23,.86);
  overflow: hidden;
  z-index: 2147483635;
}
.ebys-tour-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; color: #fff; background: linear-gradient(135deg,#0f2f68,#155eef); }
.ebys-tour-progress { font: 850 10px/1 inherit; letter-spacing: .08em; text-transform: uppercase; }
.ebys-tour-skip { border: 0; color: #dbeafe; background: transparent; font: 800 11px/1 inherit; cursor: pointer; }
.ebys-tour-content { padding: 17px; }
.ebys-tour-content h3 { margin: 0; color: #0f172a; font: 850 18px/1.2 inherit; letter-spacing: -.02em; }
.ebys-tour-content p { margin: 8px 0 0; color: #52637a; font: 650 12px/1.55 inherit; }
.ebys-tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 0 17px 17px; }
.ebys-tour-dots { display: flex; gap: 5px; }
.ebys-tour-dots i { width: 6px; height: 6px; border-radius: 99px; background: #cbd5e1; transition: width .18s ease, background .18s ease; }
.ebys-tour-dots i.active { width: 20px; background: #155eef; }
.ebys-tour-buttons { display: flex; gap: 7px; }
.ebys-tour-buttons button { min-height: 36px; padding: 8px 13px; border: 1px solid #dbe7f7; border-radius: 11px; color: #334155; background: #fff; font: 850 11px/1 inherit; cursor: pointer; }
.ebys-tour-buttons button.primary { border-color: #155eef; color: #fff; background: #155eef; }
.ebys-tour-announcer { position: fixed; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes ebysHelpFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ebysHelpSlide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 700px) {
  .ebys-help-launcher { width: 38px; height: 38px; flex-basis: 38px; border-radius: 50%; }
  .ebys-help-launcher.is-floating { left: 12px; bottom: 12px; }
  .ebys-help-drawer { width: 100vw; }
  .ebys-help-head { padding: 18px 16px 16px; }
  .ebys-help-title h2 { font-size: 19px; }
  .ebys-help-body { padding: 14px; }
  .ebys-help-footer { padding: 11px 14px 14px; }
  .ebys-help-nudge { right: 8px; top: 56px; width: calc(100vw - 16px); }
  .ebys-tour-tooltip { left: 8px !important; right: 8px !important; bottom: 8px !important; top: auto !important; width: auto; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .ebys-help-drawer, .ebys-help-launcher, .ebys-help-nudge, .ebys-tour-dots i { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto !important; }
}
