/* Admin live-edit affordances — only active when the admin live-edit
 * script enables them on this page (by adding .admin-live-edit to body).
 *
 * Slice 4X — extracted from index.html so every public page can share
 * the same look-and-feel without duplicating 100+ lines of CSS.
 */

body.admin-live-edit [data-content-slot] {
  outline: 1px dashed var(--purple-300);
  outline-offset: 4px;
  transition: outline-color var(--d-fast) var(--e-out), background var(--d-fast) var(--e-out);
  cursor: text;
}
body.admin-live-edit [data-content-slot]:hover {
  outline-color: var(--purple-500);
  background: rgba(123, 94, 167, .04);
}
body.admin-live-edit [data-content-slot][contenteditable="true"] {
  outline: 2px solid var(--purple-500);
  background: rgba(123, 94, 167, .08);
}

/* Admin-mode banner — injected into .header-actions between the
 * primary nav and the Sign-in pill so it sits naturally in the
 * header layout (no fixed-position overlap with the login button). */
.ale-banner {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--purple-500); color: #fff;
  font-family: var(--font-document-sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: .04em;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(123, 94, 167, .25);
  white-space: nowrap;
}
.ale-banner .ale-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4cdf95;
  box-shadow: 0 0 6px rgba(76, 223, 149, .8);
}
.ale-banner .ale-toggle {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  padding: 3px 10px;
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.ale-banner .ale-toggle:hover { background: rgba(255, 255, 255, .25); }

/* External admin quick-link pill — links the master from any public
 * page to clearing.256bank.com/admin in a new tab. Sits to the left
 * of the live-edit banner. */
.ale-extlink {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  background: var(--t-text-1, #0B0E14); color: #fff;
  font-family: var(--font-document-sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: .04em;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(11, 14, 20, .25);
  white-space: nowrap;
  transition: filter .15s;
}
.ale-extlink:hover { filter: brightness(1.12); color: #fff; }
.ale-extlink-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4F7CFF;
  box-shadow: 0 0 6px rgba(79, 124, 255, .8);
}
.ale-extlink-arrow {
  font-size: 11px; opacity: .75; margin-left: -2px;
}

/* Floating Save/Cancel bar — appears next to the slot being edited */
.ale-bar {
  position: fixed;
  z-index: 9999;
  display: flex; gap: 6px; align-items: center;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid var(--purple-300);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.ale-bar button {
  padding: 5px 10px;
  border-radius: 6px;
  font-family: var(--font-document-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}
.ale-bar .ale-save  { background: var(--purple-500); color: #fff; border-color: var(--purple-500); }
.ale-bar .ale-save:hover { background: var(--purple-600); border-color: var(--purple-600); }
.ale-bar .ale-cancel { background: transparent; color: #333; border-color: #ddd; }
.ale-bar .ale-cancel:hover { background: #f5f5f5; }
.ale-bar .ale-key {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: #888;
  padding: 0 4px;
}
