/* ── Editor Layout ───────────────────────────── */
.editor-layout {
  display: flex;
  height: calc(100vh - 56px);
  overflow: hidden;
}

.editor-sidebar-left {
  width: 72px;
  background: var(--panel-bg);
  border-right: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 4px;
  flex-shrink: 0;
}

.editor-canvas-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: auto;
  /* Subtle dot-grid pattern like Canva/Figma */
  background-color: #1e1e2e;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  min-height: 0;
}

.editor-sidebar-right {
  width: 300px;
  background: var(--panel-bg);
  border-left: 1px solid var(--panel-border);
  overflow-y: auto;
  flex-shrink: 0;
  box-shadow: -4px 0 24px rgba(0,0,0,0.25);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.editor-sidebar-right::-webkit-scrollbar {
  width: 6px;
}

.editor-sidebar-right::-webkit-scrollbar-track {
  background: transparent;
}

.editor-sidebar-right::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

.editor-sidebar-right::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.2);
}

/* ── Welcome Screen ─────────────────────────── */
.editor-welcome {
  text-align: center;
  padding: 60px 24px;
  max-width: 600px;
  margin: 0 auto;
}

.editor-welcome h1 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.editor-welcome h1 span {
  background: linear-gradient(135deg, #F20000, #BC0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.editor-welcome p {
  font-size: 16px;
  color: var(--panel-text-muted);
  margin-bottom: 32px;
  line-height: 1.5;
}

.welcome-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.welcome-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 170px;
  cursor: pointer;
  transition: all 250ms;
  text-align: center;
}

.welcome-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-brand);
  transform: translateY(-2px);
}

.welcome-card svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-brand);
  margin-bottom: 12px;
}

.welcome-card .card-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.welcome-card .card-desc {
  font-size: 12px;
  color: var(--panel-text-muted);
}

/* ── Size Picker Modal ──────────────────────── */
.size-picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.size-picker {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 420px;
  max-width: 90vw;
}

.size-picker h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.size-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.size-preset {
  padding: 10px;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 200ms;
  font-size: 13px;
}

.size-preset:hover {
  border-color: var(--color-brand);
  background: var(--color-brand-light);
}

.size-preset.active {
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: #fff;
}

.size-preset .preset-name {
  font-weight: 600;
  display: block;
}

.size-preset .preset-dims {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.size-preset.active .preset-dims { color: rgba(255,255,255,0.7); }

.size-custom {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.size-custom input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
}

.size-custom input:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(219,39,119,0.1);
}

.size-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
