/* Going online as the customer watches it (editor/publish.js): Buddy, one status line, five steps, and at "online" the
   link to the site. The look of the live build's panel (editor/live.css); every target at least 44 pixels. */
.publish-watch { display: grid; gap: 12px; margin: 0 0 14px; padding: 16px; border: 2px solid var(--orange); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.publish-watch[data-step="online"] { border-color: var(--ok); }
.publish-watch[data-step="failed"] { border-color: var(--warn); }
.publish-hello { display: flex; align-items: center; gap: 12px; }
.publish-status { margin: 0; font-weight: 700; font-size: 1.05rem; }
.publish-time { margin: 2px 0 0; font-size: 0.9rem; }
.publish-time:empty { display: none; }

.publish-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.publish-steps li { display: inline-flex; gap: 8px; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 0.9rem; color: var(--muted); }
.publish-steps li[data-state="done"] { border-color: var(--ok); color: var(--text); }
.publish-steps li[data-state="busy"] { border-color: var(--orange); background: var(--orange-soft); color: var(--ink); font-weight: 700; }
.publish-steps li[data-state="failed"] { border-color: var(--warn); color: var(--warn); }
.publish-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--line); transform: rotate(14deg); }
.publish-steps li[data-state="done"] .publish-dot { background: var(--ok); }
.publish-steps li[data-state="busy"] .publish-dot { background: var(--orange); animation: publish-pulse 1.2s ease-in-out infinite; }
@keyframes publish-pulse { 50% { transform: rotate(14deg) scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .publish-steps li[data-state="busy"] .publish-dot { animation: none; } }

.publish-done p { margin: 0 0 4px; }
.publish-done .site-link { font-weight: 700; color: var(--accent); overflow-wrap: anywhere; }
.publish-watch .row { display: flex; flex-wrap: wrap; gap: 8px; }
.publish-watch .row[hidden] { display: none; }
.publish-watch a.button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--orange); background: var(--orange); color: var(--on-orange); }
.publish-watch a.button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.publish-watch .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* A refusal of "Zet online" stays in the bar until it is closed (editor/editor.js, fillPending), not three seconds. */
.pending-refusal { flex-basis: 100%; display: flex; gap: 8px; align-items: center; justify-content: space-between; margin: 0; padding: 8px 12px; border-radius: var(--radius-small); border: 1px solid var(--warn); background: var(--paper); color: var(--warn); font-weight: 700; }
/* The text gives way on a phone, the button keeps its word on one line (it broke as "Slu/ite/n" at 400 pixels). */
.pending-refusal > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.pending-refusal > button { flex: 0 0 auto; white-space: nowrap; }
.pending-refusal[hidden] { display: none; }

/* On another screen while it goes online: only Buddy and the status line, with "Toon de stappen" (finding 27). */
.publish-unfold { margin-left: auto; }
.publish-unfold[hidden] { display: none; }
.publish-watch.is-folded { padding: 8px 12px; gap: 0; }
.publish-watch.is-folded .publish-steps, .publish-watch.is-folded .publish-done, .publish-watch.is-folded .publish-time, .publish-watch.is-folded > .row { display: none; }
