.onb-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1050;
  width: 292px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: inherit;
}

/* ── Pill toggle button ──────────────────────────────────────────────────── */
.onb-widget-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: background 0.15s, box-shadow 0.15s;
  text-align: left;
}

.onb-widget-pill:hover {
  background: color-mix(in srgb, var(--accent) 85%, #000);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.onb-widget-pill span {
  flex: 1;
}

.onb-widget-chevron {
  transition: transform 0.2s;
}

.onb-widget-pill[aria-expanded="true"] .onb-widget-chevron {
  transform: rotate(180deg);
}

/* ── Expandable card panel ───────────────────────────────────────────────── */
.onb-widget-panel {
  background: var(--ivory);
  border: 1px solid var(--sand);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  animation: onb-widget-in 0.18s ease;
}

@keyframes onb-widget-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.onb-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--sand);
}

.onb-widget-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.onb-widget-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--stone);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 2px;
  transition: color 0.15s;
}

.onb-widget-close:hover {
  color: var(--ink);
}

/* ── Dismiss-forever footer ──────────────────────────────────────────────── */
.onb-widget-footer {
  padding: 8px 16px 12px;
  border-top: 1px solid var(--sand);
  text-align: center;
}

.onb-widget-dismiss {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--stone);
  font-size: 0.75rem;
  padding: 0;
  transition: color 0.15s;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.onb-widget-dismiss:hover {
  color: var(--ink);
}

/* ── Progress bar ────────────────────────────────────────────────────────── */
.onb-widget-bar {
  height: 3px;
  background: var(--sand);
}

.onb-widget-bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.4s ease;
}

/* ── Checklist ───────────────────────────────────────────────────────────── */
.onb-widget-list {
  list-style: none;
  margin: 0;
  padding: 6px 0 10px;
}

.onb-widget-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 0.875rem;
  color: var(--ink);
}

.onb-widget-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.6rem;
  color: transparent;
  transition: background 0.2s, border-color 0.2s;
}

.onb-widget-item.is-done .onb-widget-check {
  background: var(--color-success);
  border-color: var(--color-success);
  color: #fff;
}

.onb-widget-item.is-done > span:last-child {
  color: var(--stone);
  text-decoration: line-through;
}

.onb-widget-item a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.onb-widget-item a:hover {
  text-decoration: underline;
}

/* ── Hide on mobile (revisit when mobile UX is designed) ─────────────────── */
@media (max-width: 768px) {
  .onb-widget {
    display: none;
  }
}
