/* Website editor — live in-place WYSIWYG (Brett 2026-07-04).
   Scoped to the .we-panel; the floating .we-toolbar is position:fixed. */

.we-panel .we-page-picker {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 14px 0 12px;
}
.we-pill {
  appearance: none;
  border: 1px solid rgba(12, 33, 38, 0.16);
  background: #fff;
  color: #0c2126;
  font: 700 12px/1 'Montserrat', sans-serif;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 120ms, background 120ms, color 120ms;
}
.we-pill:hover { border-color: rgba(0, 127, 134, 0.6); color: #007f86; }
.we-pill--active {
  background: #007f86; border-color: #007f86; color: #fff;
}

/* Stage + live frame */
.we-stage { margin: 0 0 14px; }
.we-frame-wrap {
  position: relative;
  border: 1px solid rgba(12, 33, 38, 0.14);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(12, 33, 38, 0.06);
}
.we-frame {
  display: block;
  width: 100%;
  height: 72vh;
  min-height: 460px;
  border: 0;
  background: #fff;
}
.we-frame-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font: 700 13px 'Montserrat', sans-serif;
  letter-spacing: 0.02em;
  color: #6b7f83;
  background: #fff;
}
.we-frame-wrap.is-ready .we-frame-loading { display: none; }

/* Footer */
.we-footer { display: flex; align-items: center; gap: 14px; }
.we-editcount {
  font: 800 12px 'Montserrat', sans-serif;
  letter-spacing: 0.02em;
  color: #007f86;
}
.we-editcount:empty { display: none; }
.we-save-btn {
  appearance: none; border: 0;
  background: #007f86; color: #fff;
  font: 800 13px 'Montserrat', sans-serif;
  letter-spacing: 0.03em;
  padding: 11px 20px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 120ms, transform 120ms, opacity 120ms;
}
.we-save-btn:hover:not(:disabled) { background: #00929a; transform: translateY(-1px); }
.we-save-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.we-status { font: 600 12px 'Montserrat', sans-serif; }
.we-status--ok  { color: #0a8f4d; }
.we-status--err { color: #c0392b; }

/* Floating format toolbar */
.we-toolbar {
  position: fixed; z-index: 99999;
  display: flex; align-items: center; gap: 2px;
  padding: 5px;
  background: #0c2126;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
  animation: we-tb-in 100ms ease-out;
}
.we-toolbar[hidden] { display: none; }
@keyframes we-tb-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.we-tb-btn {
  appearance: none; border: 0;
  background: transparent;
  color: #e8f0f1;
  font: 600 12px 'Montserrat', sans-serif;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 110ms, color 110ms;
}
.we-tb-btn:hover { background: rgba(255, 255, 255, 0.12); }
.we-tb-btn.is-active { background: #007f86; color: #fff; }
.we-tb-bold  { font-weight: 700; }
.we-tb-black { font-weight: 900; }
.we-tb-italic { font-style: italic; }
.we-tb-div {
  width: 1px; align-self: stretch;
  margin: 3px 4px;
  background: rgba(255, 255, 255, 0.18);
}

/* ── Preview-before-apply review panel ─────────────────────────────── */
.we-review {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.we-review[hidden] { display: none; }
.we-review-backdrop {
  position: absolute; inset: 0;
  background: rgba(12, 33, 38, 0.55);
  backdrop-filter: blur(2px);
}
.we-review-card {
  position: relative;
  width: min(720px, 100%);
  max-height: 88vh;
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: we-review-in 140ms ease-out;
}
@keyframes we-review-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.we-review-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid rgba(12, 33, 38, 0.1);
}
.we-review-title { margin: 0; font: 900 18px 'Montserrat', sans-serif; color: #0c2126; letter-spacing: -0.01em; }
.we-review-sub   { margin: 4px 0 0; font: 600 13px 'Montserrat', sans-serif; color: #6b7f83; }
.we-review-close {
  appearance: none; border: 0; background: transparent;
  font-size: 18px; line-height: 1; color: #6b7f83; cursor: pointer;
  padding: 6px; border-radius: 6px;
}
.we-review-close:hover { background: rgba(12, 33, 38, 0.06); color: #0c2126; }

.we-review-list { padding: 8px 22px; overflow-y: auto; flex: 1 1 auto; }
.we-review-empty { color: #6b7f83; font: 600 13px 'Montserrat', sans-serif; text-align: center; padding: 24px; }

.we-change { padding: 16px 0; border-bottom: 1px solid rgba(12, 33, 38, 0.08); }
.we-change:last-child { border-bottom: 0; }
.we-change-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.we-change-label {
  font: 800 11px 'Montserrat', sans-serif; letter-spacing: 0.1em; text-transform: uppercase;
  color: #007f86;
}
.we-change-revert {
  appearance: none; border: 1px solid rgba(12, 33, 38, 0.16); background: #fff;
  font: 700 11px 'Montserrat', sans-serif; color: #0c2126;
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
  transition: border-color 120ms, color 120ms, background 120ms;
}
.we-change-revert:hover { border-color: rgba(192, 57, 43, 0.6); color: #c0392b; background: rgba(192, 57, 43, 0.05); }

.we-change-diff { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 10px; }
@media (max-width: 560px) { .we-change-diff { grid-template-columns: 1fr; } .we-change-arrow { display: none; } }
.we-change-side {
  border: 1px solid rgba(12, 33, 38, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfcfc;
  min-width: 0;
}
.we-change-after { border-color: rgba(0, 127, 134, 0.5); background: rgba(0, 127, 134, 0.05); }
.we-change-tag {
  display: block;
  font: 800 9px 'Montserrat', sans-serif; letter-spacing: 0.14em; text-transform: uppercase;
  color: #98a9ac; margin: 0 0 6px;
}
.we-change-tag--new { color: #007f86; }
.we-change-html {
  font-family: 'Montserrat', sans-serif; font-size: 14px; line-height: 1.4; color: #0c2126;
  word-break: break-word; overflow-wrap: anywhere;
}
.we-change-before .we-change-html { color: #6b7f83; }
.we-change-html * { max-width: 100%; }
.we-change-arrow { align-self: center; color: #98a9ac; font-size: 18px; font-weight: 700; }

.we-review-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px;
  border-top: 1px solid rgba(12, 33, 38, 0.1);
}
.we-review-foot-right { display: flex; align-items: center; gap: 10px; }
.we-review-discard {
  appearance: none; border: 0; background: transparent;
  font: 700 12px 'Montserrat', sans-serif; color: #c0392b; cursor: pointer;
  padding: 8px 6px; border-radius: 6px;
}
.we-review-discard:hover { background: rgba(192, 57, 43, 0.07); }
.we-review-keep {
  appearance: none; border: 1px solid rgba(12, 33, 38, 0.18); background: #fff;
  font: 700 13px 'Montserrat', sans-serif; color: #0c2126;
  padding: 10px 16px; border-radius: 7px; cursor: pointer;
}
.we-review-keep:hover { border-color: rgba(12, 33, 38, 0.35); }
.we-review-apply {
  appearance: none; border: 0; background: #3ad27a; color: #062012;
  font: 900 13px 'Montserrat', sans-serif; letter-spacing: 0.02em;
  padding: 11px 20px; border-radius: 7px; cursor: pointer;
  transition: background 120ms, transform 120ms, opacity 120ms;
}
.we-review-apply:hover:not(:disabled) { background: #5aff9e; transform: translateY(-1px); }
.we-review-apply:disabled { opacity: 0.45; cursor: not-allowed; }
.we-review-note {
  margin: 0; padding: 0 22px 18px;
  font: 600 11px 'Montserrat', sans-serif; color: #98a9ac; text-align: center;
}

