/* Save-for-later: heart button injected into article cards + saved page styles. */
.wb-save-btn {
  position: absolute; top: 8px; right: 8px; z-index: 5;
  width: 32px; height: 32px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,.08); border-radius: 50%;
  cursor: pointer; color: #6B7280;
  transition: transform .15s, color .15s, background .15s, box-shadow .15s;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.wb-save-btn svg { width: 16px; height: 16px; }
.wb-save-btn:hover { transform: scale(1.08); color: #DC2626; background: #fff; }
.wb-save-btn.saved { color: #DC2626; }
.wb-save-btn.pulse { animation: wb-heart-pulse .42s ease-out; }
@keyframes wb-heart-pulse {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Nav link counter (mobile drawer + saved page) */
.wb-saved-count { font-size: 0.85em; color: var(--soft, #9CA3AF); margin-left: 4px; font-weight: 600; }
.mob-menu a.wb-saved-link.active .wb-saved-count { color: inherit; opacity: .7; }

/* Desktop nav: calendar icon right after "Various" */
.hdr-nav a.wb-cal-link.wb-cal-icon {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 10px !important;
  color: var(--muted, #6B7280);
}
.hdr-nav a.wb-cal-link.wb-cal-icon svg { width: 16px; height: 16px; }
.hdr-nav a.wb-cal-link.wb-cal-icon:hover { color: var(--text, #0A0A14); background: var(--surface, #F7F8FF); }
.hdr-nav a.wb-cal-link.wb-cal-icon.active { color: var(--accent, #5B4EFA); }
.hdr-nav a.wb-cal-link.wb-cal-icon.active::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 3px;
  height: 2px; background: var(--accent, #5B4EFA); border-radius: 2px;
  display: block;
}

/* Desktop nav: profile icon at the far right with a notification balloon */
.hdr-nav a.wb-saved-link.wb-saved-icon {
  margin-left: 8px;
  position: relative;
  padding: 8px 10px !important;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted, #6B7280);
}
.hdr-nav a.wb-saved-link.wb-saved-icon svg { width: 18px; height: 18px; }
.hdr-nav a.wb-saved-link.wb-saved-icon:hover { color: var(--text, #0A0A14); background: var(--surface, #F7F8FF); }
.hdr-nav a.wb-saved-link.wb-saved-icon.active { color: var(--accent, #5B4EFA); }
.hdr-nav a.wb-saved-link.wb-saved-icon.active::after { display: none; }

.wb-saved-badge {
  position: absolute;
  top: -3px; right: -4px;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #DC2626; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(220,38,38,.4);
  pointer-events: none;
  letter-spacing: 0;
  box-sizing: content-box;
}
.wb-saved-badge[hidden] { display: none; }
.hdr.scrolled .wb-saved-badge { border-color: rgba(255,255,255,.92); }

/* Mobile-only saved icon: lives in the header bar right next to the search
   bar (and before the hamburger) so the count balloon is visible without
   opening the drawer. */
.wb-saved-mobile { display: none; }
@media (max-width: 768px) {
  .wb-saved-mobile {
    display: inline-flex; align-items: center; justify-content: center;
    position: relative;
    width: 34px; height: 34px;
    border-radius: 8px;
    color: var(--muted, #6B7280);
    margin: 0 2px 0 0;
    flex-shrink: 0;
    transition: color .15s, background .15s;
  }
  /* Match the search-toggle's 22px glyph so the two icons read as siblings. */
  .wb-saved-mobile svg { width: 22px; height: 22px; }
  .wb-saved-mobile:hover { color: var(--text, #0A0A14); background: var(--surface, #F7F8FF); }
  .wb-saved-mobile.active { color: var(--accent, #5B4EFA); }
  .wb-saved-mobile .wb-saved-count { display: none; }
  /* Compact balloon badge sized for the mobile icon; overrides the desktop
     sizing in .wb-saved-badge above. */
  .wb-saved-mobile .wb-saved-badge {
    top: -3px; right: -4px;
    min-width: 16px; height: 16px;
    padding: 0 4px;
    font-size: 9.5px;
    border-width: 1.5px;
  }
}

/* Brand/wiki-hero save icon: white-circle button matching the article-card
   .wb-save-btn so the save affordance is consistent everywhere. Sized in em
   so it scales with the heading. */
/* Make the heading itself a flex row so the icon stays vertically centered
   with the text at any font-size, without relying on vertical-align math.
   Block-level (display:flex) so it stacks correctly under sibling elements
   like .watch-badge or .brand-eyebrow. */
.brand-name-h {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.brand-name-h .wb-save-brand,
.cal-q .wb-save-brand {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: .7em;
  width: 2.6em; height: 2.6em;
  padding: 0;
  vertical-align: middle;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 50%;
  color: #6B7280;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  transition: color .15s, background .15s, transform .15s, box-shadow .15s;
  font-family: inherit;
  line-height: 1;
  flex-shrink: 0;
}
.brand-name-h .wb-save-brand svg,
.cal-q .wb-save-brand svg {
  width: 60%; height: 60%;
  stroke-width: 2.2;
}
.brand-name-h .wb-save-brand:hover,
.cal-q .wb-save-brand:hover {
  color: #DC2626; background: #fff; transform: scale(1.08);
}
.brand-name-h .wb-save-brand.is-saved,
.cal-q .wb-save-brand.is-saved {
  color: #DC2626; background: #fff;
}
.brand-name-h .wb-save-brand.is-saved:hover,
.cal-q .wb-save-brand.is-saved:hover {
  color: #DC2626; background: #fff; transform: scale(1.08);
}
.brand-name-h .wb-save-brand.pulse,
.cal-q .wb-save-brand.pulse { animation: wb-heart-pulse .42s ease-out; }

@media (max-width: 768px) {
  .brand-name-h .wb-save-brand,
  .cal-q .wb-save-brand { width: 2.3em; height: 2.3em; margin-left: .55em; }
}
@media (max-width: 540px) {
  .brand-name-h .wb-save-brand,
  .cal-q .wb-save-brand { width: 2em; height: 2em; margin-left: .5em; }
}

/* /saved/ page sections + grid */
.wb-saved-grid { margin-top: 20px; }
.wb-saved-section { margin-bottom: 36px; }
.wb-saved-section:last-child { margin-bottom: 0; }
.wb-saved-h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 800; letter-spacing: -.2px;
  color: var(--text, #0A0A14);
  margin: 0 0 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border, #E4E7EE);
}
.wb-saved-h2-count {
  font-size: 12px; font-weight: 700;
  color: var(--muted, #6B7280); background: var(--surface, #F7F8FF);
  border: 1px solid var(--border, #E4E7EE);
  padding: 2px 9px; border-radius: 999px;
}
.wb-saved-grid-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1024px) { .wb-saved-grid-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .wb-saved-grid-inner { grid-template-columns: 1fr; } }

/* Compact "chip" sections (brands + wikis): denser layout than articles. */
.wb-saved-section.has-chips .wb-saved-grid-inner {
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 1180px) { .wb-saved-section.has-chips .wb-saved-grid-inner { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 900px)  { .wb-saved-section.has-chips .wb-saved-grid-inner { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px)  { .wb-saved-section.has-chips .wb-saved-grid-inner { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px)  { .wb-saved-section.has-chips .wb-saved-grid-inner { grid-template-columns: repeat(2, 1fr); } }

/* Brand and Wiki saved cards share the same compact chip layout. */
.wb-saved-card.is-brand,
.wb-saved-card.is-wiki,
.wb-saved-card.is-icon,
.wb-saved-card.is-caliber { border-radius: 10px; }
.wb-saved-card.is-brand .wb-saved-card-link,
.wb-saved-card.is-wiki .wb-saved-card-link,
.wb-saved-card.is-icon .wb-saved-card-link,
.wb-saved-card.is-caliber .wb-saved-card-link {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  height: 100%;
}
.wb-saved-card.is-brand .wb-saved-card-img,
.wb-saved-card.is-wiki .wb-saved-card-img,
.wb-saved-card.is-icon .wb-saved-card-img,
.wb-saved-card.is-caliber .wb-saved-card-img {
  width: 44px; height: 44px;
  aspect-ratio: 1;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border, #E4E7EE);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  overflow: hidden;
}
.wb-saved-card.is-brand .wb-saved-card-img { padding: 6px; }
.wb-saved-card.is-brand .wb-saved-card-img img {
  width: 100%; height: 100%; object-fit: contain;
  background: transparent; box-shadow: none; padding: 0; border-radius: 0;
}
.wb-saved-card.is-wiki .wb-saved-card-img img,
.wb-saved-card.is-icon .wb-saved-card-img img,
.wb-saved-card.is-caliber .wb-saved-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  background: transparent; box-shadow: none; padding: 0; border-radius: 0;
}
.wb-saved-card.is-brand .wb-saved-card-body,
.wb-saved-card.is-wiki .wb-saved-card-body,
.wb-saved-card.is-icon .wb-saved-card-body,
.wb-saved-card.is-caliber .wb-saved-card-body {
  padding: 0; gap: 1px;
  display: flex; flex-direction: column; min-width: 0;
}
.wb-saved-card.is-brand .wb-saved-card-source,
.wb-saved-card.is-wiki .wb-saved-card-source,
.wb-saved-card.is-icon .wb-saved-card-source,
.wb-saved-card.is-caliber .wb-saved-card-source { display: none; }
.wb-saved-card.is-brand .wb-saved-card-title,
.wb-saved-card.is-wiki .wb-saved-card-title,
.wb-saved-card.is-icon .wb-saved-card-title,
.wb-saved-card.is-caliber .wb-saved-card-title {
  font-size: 12.5px; font-weight: 700; letter-spacing: -.1px; line-height: 1.25;
  display: block; -webkit-line-clamp: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wb-saved-card.is-brand .wb-saved-card-meta,
.wb-saved-card.is-wiki .wb-saved-card-meta,
.wb-saved-card.is-icon .wb-saved-card-meta,
.wb-saved-card.is-caliber .wb-saved-card-meta {
  margin-top: 0; padding-top: 0;
  font-size: 10px; line-height: 1.2;
  gap: 6px;
}
.wb-saved-card.is-brand .wb-saved-card-meta > span,
.wb-saved-card.is-wiki .wb-saved-card-meta > span,
.wb-saved-card.is-icon .wb-saved-card-meta > span,
.wb-saved-card.is-caliber .wb-saved-card-meta > span {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wb-saved-card.is-brand .wb-saved-remove,
.wb-saved-card.is-wiki .wb-saved-remove,
.wb-saved-card.is-icon .wb-saved-remove,
.wb-saved-card.is-caliber .wb-saved-remove { padding: 4px; }
.wb-saved-card.is-brand .wb-saved-remove svg,
.wb-saved-card.is-wiki .wb-saved-remove svg,
.wb-saved-card.is-icon .wb-saved-remove svg,
.wb-saved-card.is-caliber .wb-saved-remove svg { width: 14px; height: 14px; }

/* Wiki cards: full-size like articles, fall back to a book illustration if
   the rendered page didn't expose a hero/article thumb to grab at save time. */
.wb-saved-card.is-wiki .wb-saved-card-img:empty,
.wb-saved-card.is-wiki .wb-saved-card-img-fallback {
  background:
    linear-gradient(135deg, rgba(91,78,250,.12) 0%, rgba(220,38,38,.10) 100%),
    var(--surface, #F7F8FF);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.wb-saved-card.is-wiki .wb-saved-card-img:empty::after,
.wb-saved-card.is-wiki .wb-saved-card-img-fallback::after {
  content: '';
  width: 38%; height: 60%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B4EFA' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><path d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/><path d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/></svg>");
  background-repeat: no-repeat; background-position: center; background-size: contain;
  opacity: .55;
}
.wb-saved-card.is-wiki .wb-saved-card-source,
.wb-saved-card.is-icon .wb-saved-card-source,
.wb-saved-card.is-caliber .wb-saved-card-source {
  display: inline-block;
  background: var(--accent-bg, #EEF0FF);
  color: var(--accent, #5B4EFA);
  padding: 2px 7px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
}
.wb-saved-card.is-icon .wb-saved-card-source {
  background: rgba(124, 58, 237, .12); color: #7C3AED;
}
.wb-saved-card.is-caliber .wb-saved-card-source {
  background: rgba(14, 165, 233, .12); color: #0EA5E9;
}

/* Icon + Caliber: same fallback treatment as Wiki when no thumb is captured. */
.wb-saved-card.is-icon .wb-saved-card-img:empty,
.wb-saved-card.is-icon .wb-saved-card-img-fallback,
.wb-saved-card.is-caliber .wb-saved-card-img:empty,
.wb-saved-card.is-caliber .wb-saved-card-img-fallback {
  background:
    linear-gradient(135deg, rgba(91,78,250,.12) 0%, rgba(220,38,38,.10) 100%),
    var(--surface, #F7F8FF);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.wb-saved-card.is-icon .wb-saved-card-img:empty::after,
.wb-saved-card.is-icon .wb-saved-card-img-fallback::after {
  content: '';
  width: 50%; height: 60%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C3AED' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 3'/></svg>");
  background-repeat: no-repeat; background-position: center; background-size: contain;
  opacity: .55;
}
.wb-saved-card.is-caliber .wb-saved-card-img:empty::after,
.wb-saved-card.is-caliber .wb-saved-card-img-fallback::after {
  content: '';
  width: 50%; height: 60%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230EA5E9' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='3'/><path d='M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z'/></svg>");
  background-repeat: no-repeat; background-position: center; background-size: contain;
  opacity: .55;
}

/* Video cards: full-size like articles, with a red play-overlay matching
   the home-feed video cards so they read as "play" at a glance. */
.wb-saved-card.is-video { border-color: rgba(220,38,38,.28); }
.wb-saved-card.is-video:hover { border-color: rgba(220,38,38,.5); box-shadow: 0 10px 24px rgba(220,38,38,.18); }
.wb-saved-card.is-video .wb-saved-card-img { background: #0A0A14; position: relative; }
.wb-saved-card.is-video .wb-saved-card-source {
  display: inline-block;
  background: #FEF2F2;
  color: #DC2626;
  padding: 2px 7px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
}
.wb-saved-card-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(220,38,38,.92); color: #fff;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transition: transform .2s, background .2s;
}
.wb-saved-card-play svg { width: 20px; height: 20px; margin-left: 2px; }
.wb-saved-card.is-video:hover .wb-saved-card-play { transform: translate(-50%, -50%) scale(1.06); background: #DC2626; }
.wb-saved-card { position: relative; border: 1px solid var(--border, #E4E7EE); border-radius: 12px; overflow: hidden; background: #fff; transition: transform .18s, box-shadow .18s; }
.wb-saved-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(91,78,250,.10); }
.wb-saved-card-link { display: block; color: inherit; text-decoration: none; }
.wb-saved-card-img { aspect-ratio: 16/9; background: #F7F8FF; overflow: hidden; }
.wb-saved-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wb-saved-card-body { padding: 12px 14px 14px; }
.wb-saved-card-source {
  display: inline-block;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--accent, #5B4EFA);
  background: var(--accent-bg, #EEF0FF);
  padding: 3px 8px; border-radius: 6px;
  margin-bottom: 8px;
  max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wb-saved-card-title { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--text, #0A0A14); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wb-saved-card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; color: var(--soft, #9CA3AF); }
.wb-saved-remove {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0;
  color: var(--soft, #9CA3AF);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: color .15s, background .15s;
  flex-shrink: 0;
}
.wb-saved-remove svg { width: 16px; height: 16px; display: block; }
.wb-saved-remove:hover { color: #DC2626; background: #FEF2F2; }

.wb-saved-empty { text-align: center; padding: 80px 20px; color: var(--muted, #6B7280); }
.wb-saved-empty h2 { font-size: 22px; font-weight: 700; color: var(--text, #0A0A14); margin-bottom: 10px; }
.wb-saved-empty p { font-size: 14px; max-width: 480px; margin: 0 auto; }

.wb-saved-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 12px; flex-wrap: wrap; }
.wb-saved-count-display { font-size: 13.5px; color: var(--muted, #6B7280); }
.wb-saved-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wb-saved-action,
.wb-saved-clear { font-family: inherit; background: none; border: 1px solid var(--border, #E4E7EE); color: var(--muted, #6B7280); padding: 7px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; transition: color .15s, border-color .15s, background .15s; display: inline-flex; align-items: center; gap: 6px; }
.wb-saved-action:hover { color: var(--accent, #5B4EFA); border-color: rgba(91,78,250,.4); background: var(--accent-bg, #EEF0FF); }
.wb-saved-action:disabled { opacity: .55; cursor: progress; }
.wb-saved-clear:hover { color: #DC2626; border-color: #FCA5A5; background: #FEF2F2; }

/* --- Sync modal (QR + URL) --- */
.wb-sync-modal { position: fixed; inset: 0; background: rgba(10,10,20,.6); backdrop-filter: blur(4px); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 18px; }
.wb-sync-modal[hidden] { display: none; }
.wb-sync-box { position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 16px; box-shadow: 0 30px 80px rgba(10,10,20,.45); padding: 28px 24px 22px; animation: wb-sync-pop .18s ease-out; }
@keyframes wb-sync-pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.wb-sync-close { position: absolute; top: 10px; right: 10px; background: none; border: 0; color: var(--soft, #9CA3AF); padding: 8px; border-radius: 8px; cursor: pointer; transition: color .15s, background .15s; }
.wb-sync-close:hover { color: var(--text, #0A0A14); background: var(--surface, #F7F8FF); }
.wb-sync-body h2 { font-size: 19px; font-weight: 800; letter-spacing: -.3px; color: var(--text, #0A0A14); margin: 0 0 6px; }
.wb-sync-sub { font-size: 13px; color: var(--muted, #6B7280); margin: 0 0 18px; line-height: 1.5; }
.wb-sync-qr { display: flex; justify-content: center; align-items: center; min-height: 240px; padding: 12px; background: #fff; border: 1px solid var(--border, #E4E7EE); border-radius: 14px; margin-bottom: 14px; }
.wb-sync-qr img { width: 220px; height: 220px; display: block; image-rendering: pixelated; }
.wb-sync-qr.is-loading { color: var(--soft, #9CA3AF); font-size: 12px; }
.wb-sync-qr.is-error { color: #DC2626; font-size: 12px; text-align: center; flex-direction: column; gap: 4px; padding: 14px; }
.wb-sync-url { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11.5px; word-break: break-all; background: var(--surface, #F7F8FF); border: 1px solid var(--border, #E4E7EE); border-radius: 10px; padding: 10px 12px; color: var(--muted, #6B7280); margin-bottom: 12px; min-height: 1.5em; }
.wb-sync-actions { display: flex; gap: 8px; margin-bottom: 14px; }
.wb-sync-copy { flex: 1; font-family: inherit; background: var(--accent, #5B4EFA); color: #fff; border: 0; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background .15s; }
.wb-sync-copy:hover { background: var(--accent-h, #4338E8); }
.wb-sync-copy.is-copied { background: #16A34A; }
.wb-sync-note { font-size: 11.5px; color: var(--soft, #9CA3AF); line-height: 1.5; margin: 0; }
.wb-sync-disconnect {
  margin-top: 14px;
  font-family: inherit;
  background: none; border: 1px solid var(--border, #E4E7EE);
  color: var(--muted, #6B7280);
  padding: 8px 14px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
  width: 100%;
}
.wb-sync-disconnect:hover { color: #DC2626; border-color: #FCA5A5; background: #FEF2F2; }
.wb-sync-disconnect[hidden] { display: none; }

/* Import banner shown after a successful ?sync= load */
.wb-sync-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--text, #0A0A14); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 13.5px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.3); z-index: 10000; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.wb-sync-toast.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); }
.wb-sync-toast .wb-sync-toast-count { color: #C9A96E; font-weight: 800; margin: 0 4px; }
