:root {
  --bg-app: #0f1218;
  --bg-panel: #171b24;
  --bg-card: #1e2430;
  --bg-card-hover: #252c3b;
  --bg-input: #12161f;
  --border-color: #2c3446;
  --border-focus: #3b82f6;
  --text-main: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #3b82f6;
  --accent-hover: #2563eb;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --c-cyan: #00aeef;
  --c-magenta: #ec008c;
  --c-yellow: #fff200;
  --c-black: #64748b;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
}

/* Header Bar - Responsive & Never Clips */
.app-header {
  min-height: 52px;
  height: auto;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, #00aeef 0%, #ec008c 50%, #fff200 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  color: #0f1218;
  box-shadow: 0 2px 10px rgba(0, 174, 239, 0.3);
  flex-shrink: 0;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.badge-pro {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
  font-weight: 600;
  white-space: nowrap;
}

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

.header-actions .btn {
  padding: 5px 10px;
  font-size: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: #475569;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: #60a5fa;
}

.btn-emerald {
  background: linear-gradient(135deg, #059669, #047857);
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.btn-emerald:hover:not(:disabled) {
  background: linear-gradient(135deg, #10b981, #059669);
}

.btn-sm {
  padding: 4px 8px;
  font-size: 11px;
}

.btn-icon {
  padding: 4px 6px;
}

/* Main Workspace Layout */
.workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr) 410px;
  overflow: hidden;
  min-height: 0;
}

.panel {
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  min-width: 0;
}

.panel-left {
  border-right: 1px solid var(--border-color);
}

.panel-right {
  border-left: 1px solid var(--border-color);
}

.panel-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-scroll::-webkit-scrollbar {
  width: 6px;
}
.panel-scroll::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}

.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  flex-wrap: wrap;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.section-title span:last-child {
  line-height: 1.3;
}

.section-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  flex-shrink: 0;
}

/* Upload Dropzone */
.dropzone {
  border: 2px dashed #3b465e;
  border-radius: var(--radius-md);
  background: rgba(15, 18, 24, 0.55);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.08);
}

.dropzone-icon {
  font-size: 24px;
  line-height: 1;
  color: #60a5fa;
}

.dropzone-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.dropzone-sub {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* File Queue List */
.file-queue {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 130px;
  overflow-y: auto;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 12px;
  gap: 8px;
  min-width: 0;
}

.file-item:hover {
  border-color: #334155;
}

.file-item.active {
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.14);
}

.file-item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.file-item-meta {
  font-size: 11px;
  color: var(--text-secondary);
  font-family: Consolas, monospace;
  flex-shrink: 0;
}

.file-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 0 3px;
  flex-shrink: 0;
}

.file-item-remove:hover {
  color: var(--accent-rose);
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  min-width: 0;
}

.info-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  min-width: 0;
}

.info-label {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-val {
  font-size: 12.5px;
  font-weight: 700;
  font-family: Consolas, monospace;
  color: var(--text-main);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Form Controls - Zero Overflow Grid Layout */
.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  min-width: 0;
}

.form-label {
  color: var(--text-secondary);
  font-size: 11.5px;
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: break-word;
}

.input-text,
.input-num,
.select-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 4px 7px;
  font-size: 11.5px;
  outline: none;
  transition: border-color 0.15s;
  max-width: 100%;
  min-width: 0;
}

.form-row > .select-box {
  width: 145px;
  text-overflow: ellipsis;
}

.input-text:focus,
.input-num:focus,
.select-box:focus {
  border-color: var(--border-focus);
}

.input-num {
  width: 70px;
  font-family: Consolas, monospace;
  text-align: right;
}

.dpi-quick-btns {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.chip-btn {
  padding: 3px 7px;
  font-size: 11px;
  border-radius: 4px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
}

.chip-btn:hover,
.chip-btn.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--accent-primary);
  color: #93c5fd;
}

/* Center Canvas Viewport */
.canvas-panel {
  background: #0b0d12;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.canvas-toolbar {
  min-height: 42px;
  height: auto;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.view-mode-group {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--bg-input);
  padding: 2px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.view-tab {
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.view-tab:hover {
  color: var(--text-main);
}

.view-tab.active {
  background: var(--accent-primary);
  color: #ffffff;
}

/* Channel Filter Pills Bar */
.channel-pills-bar {
  min-height: 36px;
  background: #131720;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
  gap: 8px;
  flex-wrap: wrap;
}

.channel-pills-left {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.ch-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.12s;
  white-space: nowrap;
}

.ch-pill.active {
  color: var(--text-main);
  border-color: #60a5fa;
  background: rgba(59, 130, 246, 0.18);
}

.ch-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Viewport Area */
.canvas-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-stage.dragging {
  cursor: grabbing;
}

/* Substrate Background Styles */
.bg-checkerboard {
  background-color: #181c24;
  background-image:
    linear-gradient(45deg, #232936 25%, transparent 25%),
    linear-gradient(-45deg, #232936 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #232936 75%),
    linear-gradient(-45deg, transparent 75%, #232936 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

.bg-dark-garment {
  background: radial-gradient(circle at center, #1a1d24 0%, #090b0e 100%);
}

.bg-white-paper {
  background: #f8fafc;
}

#previewCanvas {
  image-rendering: pixelated;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.55);
  transform-origin: center center;
}

/* Floating HUD inside Canvas */
.canvas-hud-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  pointer-events: none;
}

.hud-badge {
  background: rgba(15, 18, 24, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

/* Bottom Eyedropper & Status Bar */
.eyedropper-bar {
  min-height: 34px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px;
  gap: 8px;
  font-size: 11px;
  font-family: Consolas, monospace;
  color: var(--text-secondary);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.ink-readouts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ink-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ink-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

/* Right Panel: Spot Channel Cards */
.preset-bar {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.spot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
  min-width: 0;
}

.spot-card:hover {
  border-color: #3f4c66;
}

.spot-card.focused {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.spot-card-header {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.spot-index-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-family: Consolas, monospace;
  white-space: nowrap;
  flex-shrink: 0;
}

.spot-name-input {
  flex: 1;
  min-width: 48px;
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  padding: 4px 7px;
  font-size: 12.5px;
  font-weight: 700;
}

.spot-name-input:focus {
  border-color: var(--accent-primary);
  outline: none;
}

.color-picker-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.spot-color-input {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: none;
  cursor: pointer;
  padding: 0;
}

.spot-quick-names {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* Choke / Shrink Control Box - Stacked Clean Layout */
.choke-plan-box {
  background: var(--bg-input);
  border: 1px solid #262f40;
  border-radius: var(--radius-sm);
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.choke-header-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}

.mode-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #181e29;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 2px;
  gap: 2px;
  width: 100%;
}

.mode-seg-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 4px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mode-seg-btn.active-choke {
  background: rgba(244, 63, 94, 0.22);
  color: #fb7185;
}

.mode-seg-btn.active-none {
  background: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

.mode-seg-btn.active-spread {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
}

.choke-inputs-row {
  display: grid;
  grid-template-columns: minmax(60px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.range-slider {
  width: 100%;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.dual-unit-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.unit-field {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2px 5px;
}

.unit-field input {
  width: 44px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: Consolas, monospace;
  font-size: 11.5px;
  text-align: right;
  outline: none;
}

.unit-tag {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: 3px;
  font-family: Consolas, monospace;
}

/* Summary Table of Planned Chokes */
.plan-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  table-layout: fixed;
}

.plan-summary-table th,
.plan-summary-table td {
  padding: 5px 5px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-summary-table th {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Modal / Inspector Drawer */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 640px;
  max-width: 94vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.modal-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.modal-body {
  padding: 14px 16px;
  overflow-y: auto;
  font-size: 12.5px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.code-block {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: Consolas, monospace;
  font-size: 11.5px;
  color: #93c5fd;
  white-space: pre-wrap;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 44px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
}

.toast {
  background: #1e293b;
  border: 1px solid #3b82f6;
  color: #f8fafc;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 0.2s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Top Module Switcher Tabs - Single Line Never Wraps */
.module-switcher {
  display: inline-flex;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2px;
  gap: 3px;
  flex-shrink: 0;
}

.module-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.module-tab:hover {
  color: var(--text-main);
}

.module-tab.active {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

/* HiPrint PDF Workspace Layout */
.hiprint-workspace {
  flex: 1;
  display: none;
  grid-template-columns: minmax(0, 1fr) 360px;
  overflow: hidden;
  min-height: 0;
  background: var(--bg-app);
}

.hiprint-workspace.active {
  display: grid;
}

.hiprint-main {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.hiprint-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  flex-wrap: wrap;
}

.step-node {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.step-node.active {
  color: #60a5fa;
}

.step-node.done {
  color: var(--accent-emerald);
}

.step-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.step-node.active .step-circle {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.step-line {
  flex: 1;
  height: 1px;
  background: var(--border-color);
  max-width: 40px;
  min-width: 12px;
}

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

.tpl-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}

.tpl-card:hover,
.tpl-card.selected {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.tpl-shape-preview {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.tpl-shape-preview.circle {
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

.tpl-shape-preview.rectangle {
  border-radius: 10px;
}

.pdf-preview-sheet {
  width: 100%;
  max-width: 260px;
  background: #ffffff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #1e293b;
}
