/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --indigo: rgba(24, 0, 173, 1);
  --orange: rgba(253, 80, 10, 1);
  --blue-light: rgba(173, 203, 255, 1);
  --white: rgba(255, 255, 255, 1);
  --grey-light: #f5f5f5;
  --grey: #888;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --footer-height: 120px;
  --mobile-toolbar-height: 72px;
  --mobile-context-bar-height: 60px;
  --transition: 0.2s ease;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================================
   Canvas Box (aspect-ratio container)
   ============================================================ */
.canvas-box {
  aspect-ratio: 0.85;
  position: relative;
}

.editor-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.editor-canvas-wrap {
  flex-shrink: 0;
  position: relative;
  z-index: 55;
}

/* Konva fills the canvas box absolutely */
#canvas-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Konva creates a div inside container; let it fill naturally. */
#canvas-container > div {
  position: relative !important;
}

/* ============================================================
   Pill Toolbar + Exporter
   ============================================================ */
.bottom-toolbar {
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.exporter-shadow {
  box-shadow: 0 4px 6px -1px rgba(255, 87, 34, 0.3);
}

.export-error {
  position: fixed;
  left: 50%;
  bottom: calc(var(--footer-height) + 12px);
  transform: translateX(-50%);
  background: #fff0f0;
  color: #b42318;
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  z-index: 90;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  max-width: calc(100vw - 24px);
  text-align: center;
}

.upload-success {
  position: fixed;
  left: 50%;
  bottom: calc(var(--footer-height) + 12px);
  transform: translateX(-50%);
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  z-index: 90;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  max-width: calc(100vw - 24px);
  text-align: center;
}

.export-progress {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(30, 27, 75, 0.95);
  color: #ffffff;
  border-radius: 999px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  text-align: center;
  backdrop-filter: blur(8px);
}

.export-return-fallback {
  position: fixed;
  left: 50%;
  bottom: calc(var(--footer-height) + 60px);
  transform: translateX(-50%);
  z-index: 95;
  width: min(560px, calc(100vw - 24px));
  border-radius: 16px;
  border: 1px solid #d1d5db;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.export-return-fallback p {
  margin: 0;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.export-return-fallback-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  background: #1f2937;
  color: #ffffff;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.export-return-fallback-link:hover {
  background: #111827;
}

/* ============================================================
   Properties Panel — fixed bottom drawer
   ============================================================ */
#properties-panel {
  background: var(--white);
  position: fixed;
  bottom: var(--mobile-toolbar-height);
  left: 0;
  right: 0;
  height: auto;
  max-height: 60vh;
  border-top: 1px solid #e0e0e0;
  border-radius: 16px 16px 0 0;
  z-index: 60;
  transform: translateY(calc(100% + var(--mobile-toolbar-height)));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#properties-panel.open {
  transform: translateY(0);
}

#properties-drag-handle {
  display: block;
  width: 40px;
  height: 4px;
  background: #ccc;
  border-radius: 2px;
  margin: 10px auto 6px;
  cursor: grab;
  flex-shrink: 0;
}

#properties-inner {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  max-height: calc(60vh - 30px);
}

#properties-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  color: var(--grey);
  text-align: center;
  gap: 12px;
}
#properties-placeholder .placeholder-icon { font-size: 36px; }
#properties-placeholder p { font-size: 13px; max-width: 180px; line-height: 1.5; }

/* Desktop contextual properties panel */
#properties-panel-desktop {
  display: none;
  width: 320px;
  max-width: 320px;
  min-height: 520px;
  max-height: calc(100dvh - 220px);
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

#properties-desktop-inner {
  height: 100%;
  overflow-y: auto;
  padding: 16px;
}

#properties-desktop-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  color: var(--grey);
  text-align: center;
  gap: 12px;
}

#properties-desktop-placeholder .placeholder-icon {
  font-size: 36px;
}

#properties-desktop-placeholder p {
  font-size: 13px;
  max-width: 200px;
  line-height: 1.5;
}

/* Properties sections */
.prop-section { margin-bottom: 20px; }
.prop-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--grey);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}

/* Rotation buttons */
.rotation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.rotation-btn {
  padding: 8px 4px;
  border-radius: var(--radius);
  background: var(--grey-light);
  font-size: 12px;
  font-weight: 600;
  transition: background var(--transition);
  border: 1px solid transparent;
}
.rotation-btn:hover { background: var(--blue-light); border-color: var(--indigo); }

/* Font select */
.font-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  background: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
}
.font-select:focus { outline: 2px solid var(--indigo); }

/* Text content input */
.text-content-input {
  width: 100%;
  min-height: 64px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  background: var(--white);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
}
.text-content-input:focus { outline: 2px solid var(--indigo); }

/* Color swatches */
.color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

/* Circular palette wrapper (mobile infinite-scroll) */
.color-palette-circular-wrap {
  overflow: hidden;
  width: 100%;
  margin-bottom: 10px;
}

.color-palette--circular {
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  margin-bottom: 0;
}

.color-palette--circular::-webkit-scrollbar {
  display: none;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.selected { border-color: var(--indigo); transform: scale(1.15); }
.color-swatch.white-swatch { border-color: #ddd; }
.bg-transparent-swatch {
  background: repeating-conic-gradient(#ccc 0% 25%, #fff 0% 50%) 0 0 / 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gradient mode toggle */
.gradient-toggle-row {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
.gradient-toggle-btn {
  flex: 1;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: var(--grey-light);
  font-size: 12px;
  font-weight: 600;
  color: var(--grey);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.gradient-toggle-btn.active {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
}

/* Gradient pickers */
.gradient-pickers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gradient-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gradient-color-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--grey);
  min-width: 64px;
}
.gradient-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ddd;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.gradient-color-swatch:hover { transform: scale(1.12); }

.gradient-angle-row {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}
.gradient-angle-btn {
  flex: 1;
  padding: 5px 0;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: var(--grey-light);
  font-size: 15px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  color: var(--grey);
}
.gradient-angle-btn.active {
  background: var(--blue-light);
  border-color: var(--indigo);
  color: var(--indigo);
}

/* Corner radius slider */
.corner-radius-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.corner-radius-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--grey);
  min-width: 52px;
  flex-shrink: 0;
}
.corner-radius-slider {
  flex: 1;
  height: 4px;
  appearance: none;
  background: var(--blue-light);
  border-radius: 2px;
  cursor: pointer;
  accent-color: var(--indigo);
}
.corner-radius-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--indigo);
  min-width: 20px;
  text-align: right;
}

/* Custom color picker */
.custom-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.btn-add-color {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px dashed var(--grey);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--transition), color var(--transition);
}
.btn-add-color:hover { border-color: var(--indigo); color: var(--indigo); }

.btn-add-color .multicolor-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: conic-gradient(
    #ff3b30 0deg,
    #ff9500 60deg,
    #ffcc00 120deg,
    #34c759 180deg,
    #0a84ff 240deg,
    #af52de 300deg,
    #ff3b30 360deg
  );
  box-shadow: 0 0 0 1px #ffffff, 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.inline-color-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  border: 0;
  padding: 0;
}

.inline-color-input::-webkit-color-swatch-wrapper { padding: 0; }
.inline-color-input::-webkit-color-swatch {
  border: none;
  border-radius: 999px;
}

.inline-color-input::-moz-color-swatch {
  border: none;
  border-radius: 999px;
}

.color-picker-popup {
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  margin-top: 8px;
}
.color-picker-popup label { display: block; font-size: 12px; color: var(--grey); margin-bottom: 4px; }
.color-picker-popup input[type="color"] { width: 100%; height: 36px; border: none; cursor: pointer; border-radius: 4px; padding: 0; }
.btn-apply-color {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  background: var(--indigo);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
}
.btn-apply-color:hover { opacity: 0.9; }

/* Delete button */
.btn-delete {
  width: 100%;
  padding: 9px;
  background: #fff0f0;
  color: #c0392b;
  border: 1px solid #fcc;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  transition: background var(--transition);
}
.btn-delete:hover { background: #fdd; }

/* Locked badge */
.locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--grey-light);
  color: var(--grey);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 12px;
  margin-bottom: 12px;
}

/* ============================================================
   Image Library Modal
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-box {
  position: relative;
  background: var(--white);
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}
.modal-title { font-size: 16px; font-weight: 700; color: var(--indigo); }
.modal-close {
  font-size: 18px;
  color: var(--grey);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--grey-light); }

.modal-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
  padding: 0 20px;
}
.tab-btn {
  padding: 10px 16px;
  font-weight: 600;
  font-size: 13px;
  color: var(--grey);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.tab-btn.active { color: var(--indigo); border-bottom-color: var(--indigo); }

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.image-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: var(--grey-light);
}
.image-grid-item:hover { border-color: var(--indigo); background: var(--blue-light); }
.image-grid-item img { width: 60px; height: 60px; object-fit: contain; }
.image-grid-item span { font-size: 11px; font-weight: 500; color: #555; text-align: center; }

/* Upload area */
.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 20px;
  border: 2px dashed #ccc;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  text-align: center;
  color: var(--grey);
}
.upload-area:hover { border-color: var(--indigo); background: var(--grey-light); }
.upload-icon { font-size: 36px; }

/* ============================================================
   Canvas Text Editor (textarea overlay)
   ============================================================ */
#canvas-text-editor {
  position: fixed;
  border: 1px solid var(--indigo);
  border-radius: 4px;
  padding: 0;
  box-sizing: border-box;
  background: rgba(255,255,255,0.92);
  resize: none;
  overflow: hidden;
  z-index: 500;
  outline: none;
  line-height: 1.2;
  transform-origin: top left;
}

/* ============================================================
   Mobile Drawer Overlay
   ============================================================ */
#drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 50;
}

/* ============================================================
   Utility Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  transition: opacity var(--transition);
}
.btn:hover { opacity: 0.88; }
.btn-export { background: var(--orange); color: var(--white); }
.btn-primary { background: var(--indigo); color: var(--white); }
.btn-icon { font-size: 16px; }

/* Disabled button state */
#tool-undo:disabled,
#tool-redo:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Desktop breakpoint aligned with Tailwind lg (1024px) */
@media (min-width: 1024px) {
  .editor-shell {
    align-items: stretch;
    justify-content: center;
  }

  #properties-panel-desktop {
    display: block;
  }

  #properties-panel,
  #drawer-overlay {
    display: none !important;
  }
}

@media (max-width: 1023.98px) {
  #properties-panel-desktop {
    display: none !important;
  }

  /* Keep the mobile sub-panel docked above the toolbars, not over the canvas. */
  #properties-panel {
    max-height: min(180px, 28dvh);
    border-radius: 14px 14px 0 0;
  }

  #properties-inner {
    max-height: calc(min(180px, 28dvh) - 24px);
    padding: 10px 12px;
  }

  #properties-drag-handle {
    margin: 6px auto 4px;
  }

  body.mobile-context-open #properties-panel {
    max-height: min(180px, 28dvh);
  }

  body.mobile-context-open .prop-section {
    margin-bottom: 10px;
  }

  body.mobile-context-open .prop-section-title {
    margin-bottom: 6px;
    padding-bottom: 4px;
  }

  body.mobile-context-open .color-palette:not(.color-palette--circular) {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 6px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  body.mobile-context-open .color-palette:not(.color-palette--circular)::-webkit-scrollbar {
    display: none;
  }

  body.mobile-context-open .custom-color-row {
    margin-top: 2px;
  }

  .export-return-fallback {
    bottom: calc(var(--footer-height) + 66px);
    align-items: stretch;
    flex-direction: column;
  }

  .export-return-fallback-link {
    width: 100%;
  }
}



/* ============================================================
   Face Toggle — Segmented Control (feature 009)
   ============================================================ */
#face-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(241, 240, 251, 0.85);
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.face-toggle-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 18px;
  border: none;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
  background-color: #D8D4F5; /* brandBorder */
  color: #1E1B4B;            /* brandDark */
  white-space: nowrap;
}

.face-toggle-btn[aria-pressed="true"] {
  background-color: #FF5722; /* brandAccent */
  color: #ffffff;
}

.face-toggle-btn:focus-visible {
  outline: 2px solid #FF5722;
  outline-offset: 2px;
}


/* ============================================================
   Mobile Context Toolbar (feature: mobile tool bar)
   Appears at the bottom of the footer when an element is selected on mobile.
   ============================================================ */
#mobile-context-bar {
  height: var(--mobile-context-bar-height);
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding: 0 8px;
  gap: 2px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.07);
  scrollbar-width: none;
}

#mobile-context-bar::-webkit-scrollbar {
  display: none;
}

/* Shift properties sub-panel above the context bar when it is visible */
body.mobile-context-open #properties-panel {
  bottom: var(--mobile-toolbar-height);
  transform: translateY(calc(100% + var(--mobile-toolbar-height)));
}
body.mobile-context-open #properties-panel.open {
  transform: translateY(0);
}

/* Tool button */
.mobile-tool-btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 14px;
  min-width: 56px;
  border-radius: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.mobile-tool-btn:hover,
.mobile-tool-btn.active {
  background: #F1F0FB;
  color: #1E1B4B;
}

.mobile-tool-btn--delete {
  color: #c0392b;
}

.mobile-tool-btn--delete:hover {
  background: #fff0f0;
  color: #991b1b;
}

.mobile-tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  line-height: 1;
}

.mobile-tool-label {
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  color: inherit;
}

/* "Aa" glyph used as the font/police icon */
.mobile-tool-font-glyph {
  font-size: 16px;
  font-weight: 700;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  color: currentColor;
}

/* Rainbow circle used as the colour icon */
.mobile-tool-color-circle {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(
    #ff3b30 0deg, #ff9500 60deg, #ffcc00 120deg,
    #34c759 180deg, #0a84ff 240deg, #af52de 300deg, #ff3b30 360deg
  );
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

/* Hide context bar on desktop — properties-panel-desktop takes over */
@media (min-width: 1024px) {
  #mobile-context-bar {
    display: none !important;
  }
}
