/* ============================================================
   iter22K — Onboarding Checklist Pill + Drawer
   Namespaced under .mi-onboard-pill and .mi-onboard-drawer
   Dark-theme colours to match Market Insight dashboard.
   ============================================================ */

/* ---------- Pill (collapsed state) ---------- */
.mi-onboard-pill {
  position: fixed;
  top: 72px;          /* sit below the 2-row nav (~64px) with 8px gap */
  right: 16px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 8px;
  background: #1a1f2e;
  border: 1px solid #2a3146;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mi-onboard-pill:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 20px rgba(59,130,246,0.18);
}

/* SVG ring container */
.mi-onboard-pill__ring {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.mi-onboard-pill__ring-bg {
  fill: none;
  stroke: #2a3146;
  stroke-width: 3;
}

.mi-onboard-pill__ring-fill {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 3;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.4s ease;
}

.mi-onboard-pill__ring-fill--done {
  stroke: #22c55e;
}

.mi-onboard-pill__label {
  font-size: 12px;
  font-weight: 600;
  color: #c8d0e4;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.mi-onboard-pill__chev {
  width: 12px;
  height: 12px;
  color: #6b7a99;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.mi-onboard-pill--open .mi-onboard-pill__chev {
  transform: rotate(180deg);
}

/* ---------- Drawer (expanded state) ---------- */
.mi-onboard-drawer {
  position: fixed;
  top: 108px;         /* pill top + pill height + 4px gap */
  right: 16px;
  z-index: 8999;
  width: 280px;
  background: #1a1f2e;
  border: 1px solid #2a3146;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
  overflow: hidden;
  animation: mi-onboard-slide-in 0.18s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@keyframes mi-onboard-slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mi-onboard-drawer__header {
  padding: 12px 16px 10px;
  border-bottom: 1px solid #212840;
}

.mi-onboard-drawer__title {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 2px;
}

.mi-onboard-drawer__subtitle {
  font-size: 11px;
  color: #6b7a99;
  margin: 0;
}

.mi-onboard-drawer__steps {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.mi-onboard-drawer__step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.1s ease;
  text-decoration: none;
  color: inherit;
}

.mi-onboard-drawer__step:hover {
  background: #212840;
}

.mi-onboard-drawer__step-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #3b82f6;
  color: #3b82f6;
  font-size: 10px;
  font-weight: 700;
  transition: border-color 0.15s, background 0.15s;
}

.mi-onboard-drawer__step-icon--done {
  background: #22c55e;
  border-color: #22c55e;
  color: #0f1115;
}

.mi-onboard-drawer__step-label {
  flex: 1;
  font-size: 13px;
  color: #c8d0e4;
  line-height: 1.3;
}

.mi-onboard-drawer__step-label--done {
  color: #6b7a99;
  text-decoration: line-through;
  text-decoration-color: #4a5568;
}

.mi-onboard-drawer__step-chev {
  width: 10px;
  height: 10px;
  color: #4a5568;
  flex-shrink: 0;
}

.mi-onboard-drawer__footer {
  padding: 10px 16px 12px;
  border-top: 1px solid #212840;
  display: flex;
  justify-content: center;
}

.mi-onboard-drawer__hide-link {
  font-size: 12px;
  color: #6b7a99;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
  font-family: inherit;
}

.mi-onboard-drawer__hide-link:hover {
  color: #c8d0e4;
}
