/* ─── BOARD (the canvas for placed items) ─── */
.board {
  position: relative;
  width: 100%;
  min-height: 70vh;
  margin-top: 1rem;
}

/* Each placed item */
.item {
  position: absolute;
  min-width: 80px;
  min-height: 40px;
  transition: box-shadow 0.18s;
}
.item .media-wrap {
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
}
.item img,
.item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Block media interaction only in edit mode so you can drag the item */
body.editing .item img,
body.editing .item video {
  pointer-events: none;
}
.item .text-content {
  width: 100%;
  height: 100%;
  padding: 0.6rem 0.8rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #fff;
  outline: none;
  white-space: pre-wrap;
  overflow: hidden;
  border-radius: 0;
}
.item.selected {
  outline: 2px solid #8D012F !important;
}

/* Hyperlinks added inside text boxes (via the 🔗 button) */
.text-content a {
  color: #D1617F !important;          /* matches the site's link colour */
  text-decoration: underline;
  text-underline-offset: 2px;
  pointer-events: auto;
  cursor: pointer;
}
.text-content a:hover { color: #e58aa0 !important; }

/* ── DEDICATED BACKGROUND LAYER (blobs only) ── */
.bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
/* Make blobs clickable in edit mode only */
body.editing .bg-layer { pointer-events: auto; }

/* Every other item is guaranteed above the bg layer */
.board > .item { z-index: 5; position: absolute; }
/* Blobs inside .bg-layer stay at default stacking within that layer */
.bg-layer .item { z-index: auto; }

/* ── FLUID BLOB (multi-point mesh) ── */
.item.fluidblob { pointer-events: auto; }
.item.fluidblob .blob-body {
  position: absolute;
  inset: -30%;                  /* bleed well beyond the box for blur + fade */
  border-radius: 50%;
  pointer-events: none;
  transform: rotate(var(--r, 0deg));
  transform-origin: center;
  /* Screen blend = colours ADD light to the page; dark areas become invisible */
  mix-blend-mode: screen;
  /* Wide gentle radial mask — edges always dissolve to transparent */
  -webkit-mask-image: radial-gradient(ellipse at center, #000 18%, rgba(0,0,0,0.75) 45%, transparent 88%);
          mask-image: radial-gradient(ellipse at center, #000 18%, rgba(0,0,0,0.75) 45%, transparent 88%);
}

/* draggable color point handles (edit mode only) */
.point-handle {
  position: absolute;
  width: 22px; height: 22px;
  margin-left: -11px; margin-top: -11px;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: grab;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(0,0,0,0.3);
  transition: transform 0.12s;
}
.point-handle:hover { transform: scale(1.15); }
.point-handle.active {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
body:not(.editing) .point-handle { display: none; }

/* Small popover for editing a single point */
.point-popover {
  position: fixed;
  background: rgba(20,20,22,0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  z-index: 700;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 180px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
}
.point-popover.is-open { display: flex; }
.point-popover .row { display: flex; align-items: center; gap: 0.5rem; }
.point-popover label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
  width: 50px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.point-popover input[type="color"] { width: 36px; height: 26px; border-radius: 5px; border: 1px solid rgba(255,255,255,0.15); background: none; cursor: pointer; padding: 0; }
.point-popover input[type="range"] { flex: 1; }
.point-popover .pp-del {
  background: rgba(141,1,47,0.4);
  color: #fff;
  border: 1px solid rgba(141,1,47,0.7);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  cursor: pointer;
}

/* Add-point button in main panel */
.blob-toolbar .add-point {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  cursor: pointer;
}
.blob-toolbar .add-point:hover { background: rgba(255,255,255,0.15); }

/* ── DISTORTION BLOB (legacy single-color) ── */
.item.bgblob {
  pointer-events: auto;
}
.item.bgblob .blob-body {
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--c, #dc1414) 0%, transparent var(--s, 70%));
  transform: rotate(var(--r, 0deg));
  transform-origin: center;
  pointer-events: none;
  transition: filter 0.15s;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 18%, rgba(0,0,0,0.75) 45%, transparent 88%);
          mask-image: radial-gradient(ellipse at center, #000 18%, rgba(0,0,0,0.75) 45%, transparent 88%);
}
body:not(.editing) .item.bgblob .resize-handle,
body:not(.editing) .item.bgblob .drag-handle,
body:not(.editing) .item.bgblob .delete-btn,
body:not(.editing) .item.bgblob .card-config-btn { display: none !important; }
body:not(.editing) .item.bgblob { outline: none !important; pointer-events: none; }

/* Blob settings panel (floating, like the text toolbar) */
.blob-toolbar {
  display: none;
  position: fixed;
  background: rgba(20,20,22,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  z-index: 600;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  width: 280px;
  flex-direction: column;
  gap: 0.55rem;
}
.blob-toolbar.is-open { display: flex; }
.blob-toolbar h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.2rem;
  font-weight: 500;
}
.blob-toolbar .row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.blob-toolbar label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  width: 80px;
  flex-shrink: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.blob-toolbar input[type="range"] { flex: 1; cursor: pointer; }
.blob-toolbar input[type="color"] {
  width: 38px; height: 28px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  padding: 0;
}
.blob-toolbar .val {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  width: 36px;
  text-align: right;
}
.blob-toolbar .blob-delete {
  background: rgba(141,1,47,0.4);
  color: #fff;
  border: 1px solid rgba(141,1,47,0.7);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  cursor: pointer;
  margin-top: 0.4rem;
}
.blob-toolbar .blob-delete:hover { background: #8D012F; }

/* ── FILM CARD ── */
.film-card {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 0;
  overflow: hidden;
  background: #0a0608;
  outline: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, outline-color 0.25s ease;
}
.film-card:hover {
  outline-color: rgba(255,255,255,0.15);
}
.film-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.45);
}
.film-card .film-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1d;
}
.film-card .film-img.empty::before {
  content: 'Click ⚙ to add image';
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Very dark wine overlay fades in on hover */
.film-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 2, 8, 0.97);
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 1;
}
.film-card:hover::after { opacity: 1; }

/* Title: hidden by default, centered + LARGE + transparent (image shows through letters) on hover */
.film-card .film-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  letter-spacing: -0.01em;
  line-height: 0.95;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  outline: none;
  background: transparent;
  z-index: 2;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(.4,0,.2,1);
  pointer-events: none;

  /* The letters reveal a BRIGHTENED version of the card image so contrast stays high */
  color: transparent;
  background-image:
    linear-gradient(rgba(255,255,255,0.55), rgba(255,255,255,0.55)),
    var(--card-bg, none);
  background-size: cover, cover;
  background-position: center, center;
  background-blend-mode: lighten;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Sharp letters with subtle depth */
  -webkit-text-stroke: 0;
  filter: drop-shadow(0 3px 12px rgba(0,0,0,0.7)) contrast(1.15) saturate(1.15);
}
.film-card:hover .film-title {
  opacity: 1;
  transform: scale(1);
}

/* Override for cards in masonry — make title huge AND thick */
body.gallery-page .film-card .film-title {
  font-family: 'Playfair Display', serif !important;
  font-weight: 900 !important;
  font-style: italic !important;
  font-size: clamp(2rem, 3.6vw, 3.4rem) !important;
  letter-spacing: -0.025em !important;
}

/* ── MOBILE / TOUCH: no hover, so show title always at bottom-left ── */
@media (hover: none), (pointer: coarse) {
  body.gallery-page .film-card .film-title {
    position: absolute !important;
    inset: auto !important;
    left: 1rem !important;
    bottom: 0.9rem !important;
    right: 1rem !important;
    display: block !important;
    text-align: left !important;
    opacity: 1 !important;
    transform: none !important;
    background-image: none !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 600 !important;
    font-style: italic !important;
    font-size: 1.4rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
    z-index: 2;
  }
  /* on mobile, replace the red hover overlay with a permanent dark scrim at the bottom */
  .film-card::after {
    opacity: 1 !important;
    inset: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 45% !important;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%) !important;
  }
}

/* In edit mode, show title at bottom-left in normal style so you can edit it */
body.editing .film-card .film-title {
  position: absolute !important;
  inset: auto !important;
  left: 1rem !important;
  bottom: 0.8rem !important;
  right: 1rem !important;
  display: block !important;
  text-align: left !important;
  opacity: 1 !important;
  transform: none !important;
  color: #fff !important;
  background: transparent !important;
  background-image: none !important;
  -webkit-text-fill-color: #fff !important;
  -webkit-background-clip: border-box !important;
          background-clip: border-box !important;
  filter: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95);
  z-index: 3;
  pointer-events: auto !important;   /* allow click/dblclick to edit */
  cursor: text;
}
body.editing .film-card { pointer-events: auto; }
body.editing .film-card::after { display: none; }

/* Edit-mode "configure" button on a film card */
.card-config-btn { display: none; }
body.editing .card-config-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -10px; left: -10px;
  width: 26px; height: 26px;
  background: #fff;
  color: #8D012F;
  border: 2px solid #8D012F;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  z-index: 6;
  font-weight: 700;
}
body.editing .card-config-btn:hover { background: #8D012F; color: #fff; }

/* In edit mode, navigation is intercepted via JS preventDefault (the card stays fully interactive for editing) */

/* ── EMBED (iframe — Google Slides, YouTube, Vimeo, etc.) ── */
.item.embed-item .embed-wrap {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  position: relative;
}
.item.embed-item iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.item.embed-item .embed-empty {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding: 1rem;
  text-align: center;
}
/* Block iframe interactions in edit mode so you can drag the card */
body.editing .item.embed-item iframe { pointer-events: none; }

/* Vimeo / YouTube / Slides embeds always sit above photos & text, so they
   stay fully visible and remain clickable (and draggable in edit mode)
   even when a photo overlaps them. */
.board > .item.embed-item { z-index: 12; }
/* While editing, the selected embed lifts a little higher so its drag
   handle is never trapped under a neighbouring item. */
body.editing .board > .item.embed-item.selected { z-index: 14; }

/* ── MOBILE ORDER BADGE (visible only in edit mode) ── */
.mob-order-badge {
  display: none;
  position: absolute;
  top: 4px; left: 4px;
  background: rgba(0,0,0,0.82);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  padding: 2px 5px 2px 4px;
  gap: 3px;
  align-items: center;
  z-index: 30;
  pointer-events: none;
  user-select: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}
body.editing .mob-order-badge {
  display: flex;
  pointer-events: auto;
}
.mob-order-badge .mob-icon { font-size: 0.7rem; margin-right: 1px; }
.mob-order-badge .mob-pos {
  font-weight: 600;
  min-width: 12px;
  text-align: center;
  color: #fff;
}
.mob-order-badge button {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  cursor: pointer;
  width: 17px; height: 17px;
  border-radius: 3px;
  font-size: 0.6rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.mob-order-badge button:hover { background: #8D012F; border-color: #8D012F; }

/* 📌 Pin-as-subtitle button for text items */
.pin-credit-btn {
  position: absolute;
  top: -32px;
  left: 90px;
  background: rgba(20,20,22,0.92);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 0.85rem;
  cursor: pointer;
  display: none;
  z-index: 30;
}
body.editing .pin-credit-btn { display: inline-block; }
.pin-credit-btn:hover { background: #8D012F; border-color: #8D012F; }
.pin-credit-btn.unpinned { background: rgba(141,1,47,0.6); border-color: #8D012F; }

/* ── SOCIAL LINKS WIDGET ── */
.social-widget {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem;
}
.social-widget a {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s, background 0.2s;
}
.social-widget a:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.2);
}
.social-widget a.linkedin:hover { background: #0a66c2; }
.social-widget a.imdb:hover { background: #f5c518; }
.social-widget a.resume:hover { background: #8D012F; }
.social-widget svg { width: 24px; height: 24px; fill: #fff; }
.social-widget a.imdb .imdb-text {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  letter-spacing: -0.02em;
}
body.editing .social-widget a { pointer-events: none; }

/* ── CONTACT WIDGET ── */
.contact-widget {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.3rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.15);
}
.contact-widget h3 {
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
  color: #fff;
}
.contact-widget input,
.contact-widget textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  outline: none;
  resize: none;
}
.contact-widget textarea { flex: 1; min-height: 60px; }
.contact-widget input::placeholder,
.contact-widget textarea::placeholder { color: rgba(255,255,255,0.4); }
.contact-widget button {
  background: #8D012F;
  color: #fff;
  border: none;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
}
.contact-widget button:hover { background: #a8023b; }
body.editing .contact-widget input,
body.editing .contact-widget textarea,
body.editing .contact-widget button { pointer-events: none; }

/* In edit mode, pinned items (the title) always sit on top so they're clickable */
body.editing .item.pinned-title {
  z-index: 50;
}
body.editing .item.pinned-title::after {
  content: 'PAGE TITLE';
  position: absolute;
  top: -18px; left: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(141, 1, 47, 0.9);
  background: rgba(255,255,255,0.95);
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 600;
  pointer-events: none;
}

/* ─── EDIT MODE STYLES (only active when body has .editing) ─── */
body.editing .item {
  cursor: grab;
  outline: 1px dashed rgba(255,255,255,0.25);
}
body.editing .item:hover {
  outline-color: rgba(255,255,255,0.7);
  box-shadow: 0 0 0 2px rgba(141,1,47,0.4);
}
/* Text items: cursor changes to "text" inside, "grab" stays on the edge */
body.editing .item .text-content {
  cursor: text;
}
body.editing .item.dragging {
  cursor: grabbing;
  z-index: 999;
}

/* Resize handle (only in edit mode) */
.resize-handle,
.delete-btn {
  display: none;
}
body.editing .resize-handle {
  display: block;
  position: absolute;
  right: -6px; bottom: -6px;
  width: 14px; height: 14px;
  background: #8D012F;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: nwse-resize;
  z-index: 5;
}

/* Dedicated drag handle — bottom-LEFT circle */
.drag-handle { display: none; }
body.editing .drag-handle {
  display: block;
  position: absolute;
  left: -6px; bottom: -6px;
  width: 14px; height: 14px;
  background: #fff;
  border: 2px solid #8D012F;
  border-radius: 50%;
  cursor: grab;
  z-index: 5;
}
body.editing .drag-handle:active { cursor: grabbing; }
body.editing .delete-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -10px; right: -10px;
  width: 22px; height: 22px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  z-index: 6;
}
body.editing .delete-btn:hover { background: #8D012F; }

/* Make text editable in edit mode */
body.editing .text-content {
  cursor: text;
}

/* ─── BOTTOM TOOLBAR (only visible in edit mode) ─── */
.editor-toolbar {
  display: none;
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(20,20,22,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  padding: 0.5rem 0.7rem;
  gap: 0.35rem;
  z-index: 500;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-height: 30vh;
  overflow-y: auto;
}
body.editing .editor-toolbar { display: flex; }

.editor-toolbar button {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  font-weight: 500;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.editor-toolbar button:hover { background: rgba(255,255,255,0.15); }
.editor-toolbar .publish-btn {
  background: #8D012F;
  border-color: #8D012F;
}
.editor-toolbar .publish-btn:hover { background: #a30137; }

/* hidden file picker */
.editor-toolbar input[type="file"] { display: none; }

/* ─── FLOATING TEXT FORMAT TOOLBAR ─── */
.text-toolbar {
  display: none;
  position: fixed;
  background: rgba(20,20,22,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  gap: 0.45rem;
  z-index: 600;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  align-items: center;
}
.text-toolbar.is-open { display: flex; }

.text-toolbar select,
.text-toolbar input[type="number"] {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 0.3rem 0.45rem;
  outline: none;
}
.text-toolbar input[type="number"] { width: 56px; }
.text-toolbar input[type="color"] {
  width: 30px; height: 30px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  padding: 0;
}
.text-toolbar .tt-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.text-toolbar .tt-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  min-width: 30px;
}
.text-toolbar .tt-btn.active { background: #8D012F; border-color: #8D012F; }

/* Edit-mode badge in top right */
.edit-badge {
  display: none;
  position: fixed;
  top: 5rem;
  right: 2.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8D012F;
  background: rgba(255,255,255,0.95);
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  z-index: 500;
  font-weight: 600;
}
body.editing .edit-badge { display: block; }

/* Helper text when board is empty in edit mode */
.empty-hint {
  display: none;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.4);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  text-align: center;
  pointer-events: none;
}
body.editing .board:empty + .empty-hint,
body.editing .board:has(.item:only-child) ~ .empty-hint { display: block; }
