.cm-mobile-note {
  --cm-dark: #1d1d1f;
  --cm-mid: #6e6e73;
  --cm-accent: #0066cc;
  --cm-line: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto 22px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--cm-line);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--cm-dark);
  position: relative;
  z-index: 2;
}

.cm-mobile-note__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0, 102, 204, 0.08);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--cm-accent);
}

.cm-mobile-note__icon svg { width: 20px; height: 20px; }

.cm-mobile-note__body { flex: 1; min-width: 0; }

.cm-mobile-note__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 3px;
}

.cm-mobile-note__text {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--cm-mid);
}

.cm-mobile-note__cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cm-accent);
  text-decoration: none;
}

.cm-mobile-note__cta:hover { text-decoration: underline; }

.cm-mobile-note__close {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: var(--cm-mid);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
}

.cm-mobile-note__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--cm-dark);
}

.cm-account {
  position: relative;
  display: inline-flex;
  align-items: center;
}

button.nav-user-pill,
button.user-pill {
  font-family: inherit;
  cursor: pointer;
}

.cm-account-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 260;
  min-width: 190px;
  padding: 6px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.cm-account-menu.is-open { display: block; }

.cm-account-menu a,
.cm-account-menu button {
  display: block;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #1d1d1f;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.cm-account-menu a:hover,
.cm-account-menu button:hover { background: #f2f2f4; }

.cm-account-menu .cm-account-menu__danger { color: #c0392b; }

.cm-toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 400;
  width: min(440px, calc(100vw - 32px));
  transform: translate(-50%, 14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  font-family: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

.cm-toast.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.cm-toast--confirm {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: #1d1d1f;
  color: #fff;
}

.cm-toast__body { flex: 1; min-width: 0; }

.cm-toast__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
}

.cm-toast__text {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.cm-toast__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.cm-toast__btn {
  border: 0;
  border-radius: 9px;
  padding: 8px 13px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.cm-toast__btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.cm-toast__btn--ghost:hover { background: rgba(255, 255, 255, 0.2); }

.cm-toast__btn--danger {
  background: #ff453a;
  color: #fff;
}

.cm-toast__btn--danger:hover { background: #e03a30; }
.cm-toast__btn:disabled { opacity: 0.6; cursor: default; }

.cm-toast--welcome {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 16px;
  background: #fff;
  border: 1px solid rgba(0, 102, 204, 0.22);
  color: #1d1d1f;
}

.cm-toast--welcome .cm-toast__title { color: #1d1d1f; }
.cm-toast--welcome .cm-toast__text { color: #6e6e73; }

.cm-toast--welcome .cm-toast__text a {
  color: #0066cc;
  font-weight: 600;
  text-decoration: none;
}

.cm-toast--welcome .cm-toast__text a:hover { text-decoration: underline; }

.cm-toast__close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6e6e73;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.cm-toast__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1d1d1f;
}

.cm-callout {
  --cm-dark: #1d1d1f;
  --cm-mid: #6e6e73;
  --cm-accent: #0066cc;
  --cm-accent-h: #0055aa;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  margin: 0 auto 20px;
  padding: 16px 18px;
  background: #f7fbff;
  border: 1px solid rgba(0, 102, 204, 0.22);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--cm-dark);
  text-align: left;
  position: relative;
  animation: cm-callout-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cm-callout-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cm-callout__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(0, 102, 204, 0.1);
  color: var(--cm-accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cm-callout__icon svg { width: 20px; height: 20px; }

.cm-callout__body { flex: 1; min-width: 0; }

.cm-callout__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 3px;
}

.cm-callout__text {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--cm-mid);
}

.cm-callout__cta {
  align-self: center;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--cm-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25);
  transition: background 0.12s, box-shadow 0.12s;
}

.cm-callout__cta:hover {
  background: var(--cm-accent-h);
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.3);
}

.cm-callout__close {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: var(--cm-mid);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
}

.cm-callout__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--cm-dark);
}

@media (max-width: 620px) {
  .cm-callout { flex-wrap: wrap; }
  .cm-callout__body { flex-basis: calc(100% - 78px); }
  .cm-callout__close { order: 3; }
  .cm-callout__cta { order: 4; width: 100%; }
}

@media (max-width: 560px) {
  .cm-mobile-note { gap: 10px; padding: 12px; }

  .cm-toast--confirm { flex-direction: column; }

  .cm-toast__actions {
    flex-direction: row;
    width: 100%;
  }

  .cm-toast__btn { flex: 1; }
}

@media (max-width: 800px) {
  body.cm-sticky-cta .cm-toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
}
