/* ==========================================================================
   POLISH BOARD STUDIO — Bespoke Board Component System
   Faithfully extracted from polishmediaco.com/board (Alabaster Whiteboard Engine)
   ========================================================================== */

:root {
  /* POLISH Media Co. Haute Atelier Light Tokens */
  --brand-gold: #C5A880;
  --brand-gold-bright: #E2C799;
  --brand-platinum: #F5E6D3;
  --brand-noir: #080706;
  --surface-alabaster: #FAF7F2;
  --surface-white: #FFFFFF;
  --surface-subtle: #F5F1EB;
  --surface-subtle-hover: #ECE6DD;
  
  --text-ink: #1A1715;
  --text-slate: #3F3C39;
  --text-muted: #736D67;
  --text-light: #948E87;

  --border-subtle: #E8E2D8;
  --border-strong: #D5CEC4;
  --border-specular: rgba(197, 168, 128, 0.35);

  --accent-blue: #1D4ED8;
  --accent-blue-soft: #EFF6FF;
  --accent-green: #047857;
  --accent-green-soft: #ECFDF5;
  --accent-rose: #BE123C;
  --accent-rose-soft: #FFF1F2;
  --accent-gold-soft: #FEF8ED;

  --sticky-yellow: #FEF08A;
  --sticky-yellow-border: #FDE047;
  --sticky-rose: #FECDD3;
  --sticky-rose-border: #FDA4AF;
  --sticky-blue: #BAE6FD;
  --sticky-blue-border: #7DD3FC;
  --sticky-green: #BBF7D0;
  --sticky-green-border: #86EFAC;

  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Cormorant Garamond', Didot, Georgia, serif;
  --font-arabic: 'Tajawal', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-sm: 0 2px 4px rgba(26, 23, 21, 0.03);
  --shadow-frame: 0 20px 45px -10px rgba(26, 23, 21, 0.08), 0 4px 12px rgba(26, 23, 21, 0.03);
  --shadow-sticky: 0 10px 24px -4px rgba(26, 23, 21, 0.12), 0 2px 6px rgba(26, 23, 21, 0.06);
  --shadow-hover: 0 30px 60px -12px rgba(26, 23, 21, 0.14), 0 8px 20px rgba(26, 23, 21, 0.06);
}

/* ========================================================== */
/* BOARD FRAMES (MASSIVE WHITE STRATEGY CONTAINERS)           */
/* ========================================================== */
.board-frame {
  position: absolute;
  background: var(--surface-white);
  border: 1px solid var(--border-subtle);
  border-radius: 32px;
  padding: 3rem 3.25rem;
  box-shadow: var(--shadow-frame);
  user-select: text;
  transition: box-shadow 0.2s, border-color 0.2s;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  contain: layout style;
  box-sizing: border-box;
  min-width: 380px;
  min-height: 280px;
}

.board-frame:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}

.board-frame.is-selected {
  outline: 2px solid var(--brand-noir) !important;
  box-shadow: 0 0 0 4px rgba(8, 7, 6, 0.08), var(--shadow-hover) !important;
}

/* Frame Drag Handle Bar */
.frame-drag-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  cursor: move;
  border-radius: 32px 32px 0 0;
}

/* Frame Label Badge */
.frame-badge-wrap {
  position: absolute;
  top: -44px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.frame-number {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: #FFFFFF;
  background: var(--brand-noir);
  padding: 5px 12px;
  border-radius: 8px;
  letter-spacing: 0.05em;
}

.frame-title-pill {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-slate);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: 8px;
}

.frame-headline {
  font-family: var(--font-heading);
  font-size: 2.15rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-ink);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--brand-gold);
}

.frame-desc {
  font-size: 1.05rem;
  color: var(--text-slate);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 95%;
}

/* Content Boxes inside Frames */
.content-box {
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  transition: all 0.2s ease;
}

.content-box:last-child {
  margin-bottom: 0;
}

.content-box.white {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.content-box:hover {
  border-color: var(--border-strong);
}

.box-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.85rem;
  width: fit-content;
}

.tag-rose { background: var(--accent-rose-soft); color: var(--accent-rose); border: 1px solid #FECDD3; }
.tag-green { background: var(--accent-green-soft); color: var(--accent-green); border: 1px solid #A7F3D0; }
.tag-blue { background: var(--accent-blue-soft); color: var(--accent-blue); border: 1px solid #BFDBFE; }
.tag-gold { background: var(--accent-gold-soft); color: #92400E; border: 1px solid #FDE68A; }
.tag-noir { background: #1A1715; color: #FFFFFF; }

.box-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.box-remove-btn {
  background: transparent;
  border: none;
  color: var(--text-light);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.15s;
}

.content-box:hover .box-remove-btn {
  opacity: 1;
}

.box-remove-btn:hover {
  background: #FEE2E2;
  color: #DC2626;
}

.content-box h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-ink);
  margin-bottom: 0.65rem;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.content-box p {
  font-size: 0.98rem;
  color: var(--text-slate);
  line-height: 1.7;
}

/* ========================================================== */
/* REAL MIRO-STYLE SCATTERED STICKY NOTES                     */
/* ========================================================== */
.sticky-note {
  position: absolute;
  width: 280px;
  min-height: 190px;
  padding: 1.5rem 1.75rem;
  border-radius: 4px;
  box-shadow: var(--shadow-sticky);
  font-size: 0.94rem;
  line-height: 1.55;
  color: #1A1715;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: move;
  box-sizing: border-box;
}

.sticky-note:hover {
  box-shadow: 0 18px 36px -6px rgba(26, 23, 21, 0.2);
  z-index: 30 !important;
}

.sticky-note.is-selected {
  outline: 2px solid var(--brand-noir) !important;
  box-shadow: 0 0 0 4px rgba(8, 7, 6, 0.15), var(--shadow-sticky) !important;
}

.sticky-yellow { background: var(--sticky-yellow); border-top: 4px solid var(--sticky-yellow-border); }
.sticky-rose { background: var(--sticky-rose); border-top: 4px solid var(--sticky-rose-border); }
.sticky-blue { background: var(--sticky-blue); border-top: 4px solid var(--sticky-blue-border); }
.sticky-green { background: var(--sticky-green); border-top: 4px solid var(--sticky-green-border); }
.sticky-noir { background: #1E1B18; color: #FAF7F2; border-top: 4px solid var(--brand-gold); }
.sticky-gold { background: #FEF8ED; color: #92400E; border-top: 4px solid #FCD34D; }

.sticky-header {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sticky-content {
  font-size: 0.94rem;
  line-height: 1.55;
  outline: none;
}

.sticky-footer {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.6;
  margin-top: 1rem;
  font-family: var(--font-mono);
}

.sticky-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(213, 206, 196, 0.6);
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

/* ========================================================== */
/* HIGH-TICKET OFFER PRICING CARDS                            */
/* ========================================================== */
.pricing-card {
  position: absolute;
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: 22px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-frame);
  box-sizing: border-box;
  cursor: move;
  min-width: 290px;
}

.pricing-card.featured {
  border: 2px solid var(--brand-noir);
  background: #FAF7F2;
  box-shadow: 0 16px 36px -8px rgba(26, 23, 21, 0.1);
}

.price-badge {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface-subtle);
  width: fit-content;
  margin-bottom: 0.75rem;
}

.pricing-card.featured .price-badge {
  background: var(--brand-noir);
  color: #FFFFFF;
}

.price-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0.5rem 0 0.5rem 0;
}

.price-currency {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-slate);
}

.price-figure {
  font-family: var(--font-mono);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--brand-noir);
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.clean-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.clean-list li {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-slate);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.clean-list li .feature-text {
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.clean-list li .feature-text::before {
  content: "✦";
  color: var(--brand-gold);
  font-size: 1.05rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.feature-remove-btn {
  background: transparent;
  border: none;
  color: var(--text-light);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.15s;
  flex-shrink: 0;
}

.clean-list li:hover .feature-remove-btn {
  opacity: 1;
}

.feature-remove-btn:hover {
  background: #FEE2E2;
  color: #DC2626;
}

.pricing-ctrl-bar {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.pricing-add-btn {
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-slate);
  cursor: pointer;
  transition: all 0.15s;
}

.pricing-add-btn:hover {
  background: var(--surface-subtle-hover);
  color: var(--brand-noir);
}
/* ========================================================== */
/* FORM & DIAGNOSTIC WORKSHEET CARDS                          */
/* ========================================================== */
.form-field-card {
  position: absolute;
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  box-shadow: var(--shadow-frame);
  cursor: move;
  min-width: 420px;
  max-width: 580px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.form-field-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}

.form-field-card.is-selected {
  outline: 2px solid var(--brand-noir) !important;
  box-shadow: 0 0 0 4px rgba(8, 7, 6, 0.08), var(--shadow-hover) !important;
}

.form-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.form-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-noir);
  letter-spacing: -0.02em;
}

.form-card-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-noir);
  background: #FEF8ED;
  border: 1px solid #FDE68A;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.form-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.form-fields-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-field-item {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.25rem;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-field-item:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 12px rgba(26, 23, 21, 0.04);
}

.field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  gap: 8px;
}

.field-label {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--brand-noir);
  flex-grow: 1;
}

.field-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.field-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-gold);
  background: #FEF8ED;
  border: 1px solid #FDE68A;
  padding: 2px 7px;
  border-radius: 5px;
}

.field-remove-btn {
  background: transparent;
  border: none;
  color: var(--text-light);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
}

.field-remove-btn:hover {
  background: #FEE2E2;
  color: #DC2626;
}

.field-instructions {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.field-input, .field-textarea {
  width: 100%;
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-ink);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s, background 0.15s;
}

.field-textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.55;
}

.field-input:focus, .field-textarea:focus {
  background: #FFFFFF;
  border-color: var(--brand-noir);
}

.form-ctrl-bar {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.form-add-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-slate);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.form-add-btn:hover {
  background: var(--surface-subtle-hover);
  color: var(--brand-noir);
  border-color: var(--border-strong);
  transform: translateY(-0.5px);
}

/* ========================================================== */
/* SCRIPT BUBBLES                                             */
/* ========================================================== */
.script-bubble {
  position: absolute;
  background: var(--surface-subtle);
  border-left: 4px solid var(--brand-gold);
  border-radius: 0 16px 16px 0;
  padding: 1.5rem 1.75rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-ink);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  cursor: move;
  min-width: 300px;
}

/* ========================================================== */
/* CONNECTOR PORTS & RESIZE HANDLES                           */
/* ========================================================== */
.card-port {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  border: 2px solid var(--brand-noir);
  border-radius: 50%;
  cursor: crosshair;
  z-index: 50;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s, background 0.15s;
}

.board-frame:hover .card-port,
.sticky-note:hover .card-port,
.pricing-card:hover .card-port,
.form-field-card:hover .card-port,
.is-connecting .card-port {
  opacity: 1;
}

.card-port:hover {
  transform: scale(1.35);
  background: var(--brand-gold);
  border-color: var(--brand-gold);
}

.card-port.port-top { top: -7px; left: 50%; transform: translateX(-50%); }
.card-port.port-right { right: -7px; top: 50%; transform: translateY(-50%); }
.card-port.port-bottom { bottom: -7px; left: 50%; transform: translateX(-50%); }
.card-port.port-left { left: -7px; top: 50%; transform: translateY(-50%); }

.card-port.port-top:hover { transform: translateX(-50%) scale(1.35); }
.card-port.port-right:hover { transform: translateY(-50%) scale(1.35); }
.card-port.port-bottom:hover { transform: translateX(-50%) scale(1.35); }
.card-port.port-left:hover { transform: translateY(-50%) scale(1.35); }

/* Corner Resize Handles */
.resize-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #FFFFFF;
  border: 2px solid var(--brand-noir);
  border-radius: 2px;
  z-index: 45;
  opacity: 0;
  transition: opacity 0.15s;
}

.board-frame.is-selected .resize-handle,
.table-card.is-selected .resize-handle {
  opacity: 1;
}

.resize-handle.rh-se { right: -6px; bottom: -6px; cursor: se-resize; }
.resize-handle.rh-sw { left: -6px; bottom: -6px; cursor: sw-resize; }
.resize-handle.rh-ne { right: -6px; top: -6px; cursor: ne-resize; }
.resize-handle.rh-nw { left: -6px; top: -6px; cursor: nw-resize; }

/* Inline Edit Highlight */
[contenteditable="true"]:focus {
  outline: 2px solid var(--brand-gold) !important;
  background: rgba(226, 199, 153, 0.15) !important;
  border-radius: 4px !important;
}

/* ========================================================== */
/* LUXURY STRATEGY TABLE & MATRIX CARDS                       */
/* ========================================================== */
.table-card {
  position: absolute;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-frame);
  box-sizing: border-box;
  user-select: text;
  min-width: 480px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.table-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}

.table-card.is-selected {
  outline: 2px solid var(--brand-noir) !important;
  box-shadow: 0 0 0 4px rgba(8, 7, 6, 0.08), var(--shadow-hover) !important;
}

.table-card:hover .card-port {
  opacity: 1;
}

.table-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.table-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-noir);
  letter-spacing: -0.02em;
}

.table-card-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-noir);
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.luxury-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.luxury-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  color: var(--text-ink);
}

.luxury-table th {
  background: var(--surface-subtle);
  color: var(--text-slate);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  border-top: none;
}

.luxury-table td {
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  line-height: 1.5;
  background: #FFFFFF;
}

.luxury-table tr:nth-child(even) td {
  background: #FCFAF8;
}

.table-ctrl-bar {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
  justify-content: flex-end;
}

.table-btn {
  background: var(--surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-slate);
  cursor: pointer;
  transition: all 0.15s ease;
}

.table-btn:hover {
  background: var(--surface-subtle-hover);
  color: var(--brand-noir);
  border-color: var(--border-strong);
}

/* ========================================================== */
/* FRAME MEDIA & IMAGE BANNERS                                */
/* ========================================================== */
.frame-banner-image {
  width: 100%;
  height: 200px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
}

.frame-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========================================================== */
/* FONT UTILITIES FOR BOARD ELEMENTS                          */
/* ========================================================== */
.font-sans { font-family: var(--font-body) !important; }
.font-serif { font-family: var(--font-serif) !important; }
.font-mono { font-family: var(--font-mono) !important; }
.font-arabic { font-family: var(--font-arabic) !important; }

/* ========================================================== */
/* BASIC SHAPES (RECT, CIRCLE, DIAMOND, TRIANGLE, ARROW)      */
/* ========================================================== */
.studio-shape {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.studio-shape:active {
  cursor: grabbing;
}

.studio-shape.is-selected {
  outline: 2px solid var(--brand-gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.studio-shape.shape-circle.is-selected {
  border-radius: 50%;
}

.shape-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: auto;
  filter: drop-shadow(0 4px 12px rgba(26, 23, 21, 0.05));
}

.shape-content-text {
  position: relative;
  z-index: 3;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  color: var(--text-ink);
  outline: none;
  word-break: break-word;
  max-width: 85%;
  pointer-events: auto;
  cursor: text;
}

.shape-line .shape-content-text {
  display: none;
}

/* ========================================================== */
/* STANDALONE FLOATING TEXT                                   */
/* ========================================================== */
.floating-text-element {
  position: absolute;
  min-width: 120px;
  max-width: 750px;
  background: transparent;
  cursor: grab;
  user-select: text;
  touch-action: none;
}

.floating-text-element:active {
  cursor: grabbing;
}

.floating-text-element.is-selected .floating-text-inner {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

.floating-text-inner {
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-ink);
  outline: none;
  padding: 6px 10px;
  border-radius: 8px;
  word-break: break-word;
  cursor: text;
  transition: background 0.15s ease;
}

.floating-text-inner:hover {
  background: rgba(226, 199, 153, 0.08);
}

/* ========================================================== */
/* FREEHAND PEN VECTOR STROKES                                */
/* ========================================================== */
#svg-drawings {
  position: absolute;
  top: 0;
  left: 0;
  width: 14000px;
  height: 6000px;
  pointer-events: none;
  z-index: 6;
}

.freehand-stroke {
  pointer-events: stroke;
  cursor: pointer;
  transition: filter 0.15s ease, stroke-width 0.15s ease;
}

.freehand-stroke:hover {
  filter: drop-shadow(0 0 5px rgba(226, 199, 153, 0.7));
}

.freehand-stroke.is-selected {
  stroke: var(--brand-gold) !important;
  filter: drop-shadow(0 0 6px rgba(226, 199, 153, 0.9));
}

/* ========================================================== */
/* EXPANDED STICKY NOTE PALETTES (MINT, LAVENDER, OBSIDIAN)   */
/* ========================================================== */
.sticky-mint {
  background: #DCFCE7 !important;
  border-color: #86EFAC !important;
  color: #14532D !important;
}
.sticky-mint .sticky-header,
.sticky-mint .sticky-content,
.sticky-mint .sticky-footer {
  color: #14532D !important;
}
.sticky-mint .sticky-tape {
  background: rgba(134, 239, 172, 0.55) !important;
}

.sticky-lavender {
  background: #F3E8FF !important;
  border-color: #D8B4FE !important;
  color: #581C87 !important;
}
.sticky-lavender .sticky-header,
.sticky-lavender .sticky-content,
.sticky-lavender .sticky-footer {
  color: #581C87 !important;
}
.sticky-lavender .sticky-tape {
  background: rgba(216, 180, 254, 0.55) !important;
}

.sticky-obsidian {
  background: #181614 !important;
  border-color: rgba(226, 199, 153, 0.45) !important;
  color: #F5E6D3 !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4) !important;
}
.sticky-obsidian .sticky-header,
.sticky-obsidian .sticky-content,
.sticky-obsidian .sticky-footer {
  color: #F5E6D3 !important;
}
.sticky-obsidian .sticky-tape {
  background: rgba(226, 199, 153, 0.3) !important;
}


