/* Unpublished-changes guard (portal-unpublished.js): banner, preview pill,
   dialogs and the Gemma "not live yet" line. Shared by both portals; colours
   come from each portal's own tokens with safe fallbacks. */
.unpub-banner {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; border: 1px solid var(--warning, #bf6c0a); border-radius: var(--radius-card, 10px);
  background: var(--accent, #fef0c3); color: var(--accent-foreground, #7a4a05); font-size: 13.5px; line-height: 1.35;
}
.unpub-banner[hidden] { display: none; }
.unpub-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warning, #bf6c0a); flex: 0 0 auto; }
.unpub-msg { flex: 1 1 200px; min-width: 0; }
.unpub-msg strong { font-weight: 650; }
.unpub-btn { flex: 0 0 auto; min-height: 36px; padding: 0 18px; font-weight: 650; }
.is-pulsing { animation: unpubPulse 1.8s ease-in-out infinite; }
@keyframes unpubPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, .75); }
  50% { box-shadow: 0 0 0 7px rgba(250, 204, 21, 0); }
}
@media (prefers-reduced-motion: reduce) { .is-pulsing { animation: none; } }
.ws-preview-shell.has-unpub { grid-template-rows: auto minmax(0, 1fr); }
/* Phones / tablets: a bottom action bar pinned to the screen, so Publish is on
   screen at ALL times while anything is unpublished (the editor's own Publish sits
   inside a pane that scrolls away - Aleka could not find it, 2026-10-31). */
@media (max-width: 899px) {
  .unpub-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; flex-wrap: nowrap;
    border-radius: 0; border-width: 1px 0 0; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .14);
  }
  .unpub-sub { display: none; }
  .unpub-msg { flex: 1 1 auto; }
  .unpub-btn { min-height: 44px; padding: 0 22px; }
  body.unpub-bar-on .main-wrapper, body.unpub-bar-on main { padding-bottom: 84px; }
}
.ws-pv-pill {
  position: absolute; left: 10px; bottom: 10px; z-index: 3; pointer-events: none;
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: var(--card, #fff); color: var(--foreground, #111); border: 1px solid var(--border, #ddd);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.ws-pv-pill.is-draft { background: var(--accent, #fef0c3); color: var(--accent-foreground, #7a4a05); border-color: var(--warning, #bf6c0a); }
.ws-pv-pill.is-live { background: var(--success-weak, #d2f0df); color: var(--success, #15803d); border-color: var(--success, #15803d); }
.unpub-modal-back {
  position: fixed; inset: 0; z-index: 10000; background: rgba(0, 0, 0, .5);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.unpub-modal {
  width: 100%; max-width: 440px; background: var(--card, #fff); color: var(--foreground, #111);
  border-radius: 14px; padding: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.unpub-modal h2 { margin: 0 0 8px; font-size: 18px; }
.unpub-modal p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.5; color: var(--secondary-foreground, #444); }
.unpub-modal-btns { display: flex; flex-direction: column; gap: 8px; }
.unpub-modal-btns .btn { width: 100%; min-height: 42px; justify-content: center; }
@media (min-width: 520px) { .unpub-modal-btns { flex-direction: row; flex-wrap: wrap; } .unpub-modal-btns .btn { width: auto; } }
.gm-publine {
  align-self: flex-start; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 0.88rem; padding: 6px 2px;
}
.gm-publine.is-done { color: var(--success, #15803d); font-weight: 600; }
.gm-pub-btn { min-height: 32px; padding: 0 14px; font-weight: 650; }
