/* ============================================================
   AXIONOVA first-visit UI tour
   Coach-marks layer over the chart screen. Pairs with
   components/ui-tour.js. Does not touch the chart bundle.
   ============================================================ */

html.axn-tour-lock,
html.axn-tour-lock body {
  overflow: hidden !important;
}

.axn-tour-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #d8e5ea;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #14383f;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(14, 42, 51, 0.06);
  cursor: pointer;
}

.axn-tour-btn:hover {
  background: #f2f8fa;
}

.axn-tour-btn:active {
  background: #e8fafd;
  border-color: #00c8e0;
}

.axn-tour-btn:focus-visible {
  outline: 2px solid #00c8e0;
  outline-offset: 2px;
}

.axn-tour-btn svg {
  color: #0090a3;
}

.axn-tour-root {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}

.axn-tour-backdrop,
.axn-tour-catcher {
  position: absolute;
  inset: 0;
  pointer-events: auto;
}

.axn-tour-backdrop {
  background: rgba(14, 42, 51, 0.48);
}

.axn-tour-spot {
  position: fixed;
  border-radius: 14px;
  box-shadow:
    0 0 0 2px #00c8e0,
    0 0 0 9999px rgba(14, 42, 51, 0.52);
  pointer-events: none;
  transition:
    top 0.28s ease,
    left 0.28s ease,
    width 0.28s ease,
    height 0.28s ease;
}

.axn-tour-card {
  position: fixed;
  z-index: 2;
  pointer-events: auto;
  width: min(360px, calc(100vw - 24px));
  padding: 18px 18px 14px;
  border: 1px solid #d8e5ea;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 60px rgba(14, 42, 51, 0.22);
  color: #0e2a33;
}

.axn-tour-card[data-centered='true'] {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.axn-tour-kicker {
  margin: 0 0 6px;
  font-family: 'Sora', ui-sans-serif, system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0090a3;
}

.axn-tour-title {
  margin: 0;
  font-family: 'Sora', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #0e2a33;
}

.axn-tour-body {
  margin: 8px 0 0;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #41626d;
}

.axn-tour-progress {
  display: flex;
  gap: 5px;
  margin-top: 14px;
}

.axn-tour-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #d8e5ea;
}

.axn-tour-dot[data-active='true'] {
  width: 16px;
  background: #00c8e0;
}

.axn-tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.axn-tour-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.axn-tour-skip,
.axn-tour-back,
.axn-tour-next {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
}

.axn-tour-skip,
.axn-tour-back {
  border: 1px solid #d8e5ea;
  background: #ffffff;
  color: #0e2a33;
  padding: 8px 12px;
}

.axn-tour-skip:hover,
.axn-tour-back:hover {
  background: #f2f8fa;
}

.axn-tour-back:disabled {
  opacity: 0.38;
  cursor: default;
}

.axn-tour-next {
  border: 0;
  background: #00c8e0;
  color: #ffffff;
  padding: 8px 14px;
}

.axn-tour-next:hover {
  background: #00b4ca;
}

.axn-tour-skip:focus-visible,
.axn-tour-back:focus-visible,
.axn-tour-next:focus-visible {
  outline: 2px solid #b794ff;
  outline-offset: 2px;
}

.axn-tool-tour-item {
  list-style: none;
}

.axn-tool-tour-btn {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  width: 100%;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.axn-tool-tour-btn:hover {
  background: #f0fbfd;
}

.axn-tool-tour-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  border-radius: 8px;
  background: #e8fafd;
  color: #0090a3;
}

.axn-tool-tour-copy {
  min-width: 0;
}

.axn-guided-tours-list {
  padding: 8px 12px 10px !important;
}

.axn-guided-tours-list > li {
  list-style: none;
}

.axn-guided-tours-list > li > button {
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  width: 100% !important;
  align-items: flex-start !important;
  gap: 16px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
}

.axn-guided-tours-list > li > button > span:first-child {
  width: 28px !important;
  height: 28px !important;
  margin-top: 2px !important;
}

.axn-guided-tours-list > li > button > span:nth-child(2) {
  min-width: 0 !important;
}

.axn-tool-tour-title {
  display: block;
  font-family: 'Sora', ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #0e2a33;
}

.axn-tool-tour-summary {
  display: block;
  margin-top: 2px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  line-height: 1.35;
  color: #5c7a84;
}

.axn-tool-tour-meta {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8aa4ad;
}

@media (max-width: 767px) {
  .axn-tour-card:not([data-centered='true']) {
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    top: auto !important;
    bottom: 12px !important;
  }

  .axn-tour-btn span {
    display: none;
  }
}
