* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #0d1117; color: #c9d1d9; font-family: 'JetBrains Mono', monospace; overflow: hidden; height: 100vh; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #161b22; }
::-webkit-scrollbar-thumb { background: #30363d; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #484f58; }

.pixel-font { font-family: 'Press Start 2P', monospace; }
.mono-font { font-family: 'JetBrains Mono', monospace; }

/* ─── Animations ─── */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(57, 255, 20, 0.4), 0 0 16px rgba(57, 255, 20, 0.2); }
  50% { box-shadow: 0 0 16px rgba(57, 255, 20, 0.6), 0 0 32px rgba(57, 255, 20, 0.3); }
}
@keyframes glow-blue {
  0%, 100% { box-shadow: 0 0 6px rgba(0, 212, 255, 0.3); }
  50% { box-shadow: 0 0 12px rgba(0, 212, 255, 0.5); }
}
@keyframes fade-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.glow-green { animation: glow-pulse 2s ease-in-out infinite; }
.glow-blue-anim { animation: glow-blue 2s ease-in-out infinite; }
.fade-in { animation: fade-in 0.3s ease-out; }
.slide-up { animation: slide-up 0.4s ease-out; }
.hidden { display: none !important; }

/* ─── Layout ─── */
.app-layout { display: flex; flex-direction: column; height: 100vh; }
.app-body { display: flex; flex: 1; overflow: hidden; }

/* ─── Header ─── */
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; height: 48px; min-height: 48px;
  background: linear-gradient(180deg, #1a1a2e 0%, #16162a 100%);
  border-bottom: 1px solid #21262d;
  gap: 12px;
}
.header-title { color: #00d4ff; letter-spacing: 0.5px; }
.version-badge {
  font-size: 9px; padding: 2px 6px; border-radius: 4px;
  background: rgba(0,212,255,0.12); color: #00d4ff;
  font-family: 'JetBrains Mono', monospace;
}
.toolbar-buttons { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.toolbar-btn {
  padding: 5px 10px; border-radius: 5px; font-size: 11px;
  border: 1px solid #30363d; background: #21262d; color: #c9d1d9;
  cursor: pointer; transition: all 0.15s ease;
  font-family: 'JetBrains Mono', monospace; white-space: nowrap;
}
.toolbar-btn:hover { border-color: #00d4ff; color: #e6edf3; background: #262c36; }
.toolbar-btn.disabled { opacity: 0.35; cursor: default; }
.toolbar-btn.disabled:hover { border-color: #30363d; background: #21262d; color: #c9d1d9; }
.toolbar-divider { width: 1px; height: 24px; background: #30363d; margin: 0 2px; }

.render-btn {
  padding: 5px 14px; border-radius: 5px; font-size: 11px;
  border: 2px solid #39ff14; background: linear-gradient(135deg, #0a2e0a, #0d3d0d);
  color: #39ff14; cursor: pointer; font-weight: 700;
  font-family: 'JetBrains Mono', monospace; transition: all 0.2s ease;
}
.render-btn:hover {
  background: linear-gradient(135deg, #0d3d0d, #1a5a1a);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
}

.header-stats {
  display: flex; align-items: center; gap: 12px; font-size: 11px; color: #6e7681;
  white-space: nowrap;
}
.shortcuts-trigger { cursor: pointer; transition: color 0.15s; }
.shortcuts-trigger:hover { color: #00d4ff; }

/* ─── Left Panel ─── */
.left-panel {
  width: 250px; min-width: 200px; display: flex; flex-direction: column;
  background: #161b22; border-right: 1px solid #21262d; overflow: hidden;
}

/* ─── Right Panel ─── */
.right-panel {
  width: 290px; min-width: 250px; display: flex; flex-direction: column;
  background: #161b22; border-left: 1px solid #21262d; overflow: hidden;
}

/* ─── Panel Tabs ─── */
.panel-tabs { display: flex; border-bottom: 1px solid #21262d; flex-shrink: 0; }
.panel-tab {
  flex: 1; padding: 8px 0; font-size: 11px; text-align: center;
  background: transparent; border: none; border-bottom: 2px solid transparent;
  color: #6e7681; cursor: pointer; transition: all 0.2s ease;
  font-family: 'JetBrains Mono', monospace;
}
.panel-tab:hover { color: #8b949e; background: rgba(0,212,255,0.03); }
.panel-tab.active { color: #00d4ff; border-bottom-color: #00d4ff; background: rgba(0,212,255,0.06); }

.panel-content { flex: 1; overflow-y: auto; padding: 12px; }

/* ─── Section Styles ─── */
.section-header {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px;
  color: #6e7681; margin-bottom: 8px; font-weight: 600;
}
.section-divider { height: 1px; background: #21262d; margin: 12px 0; }

/* ─── Config Section ─── */
.config-section { display: flex; flex-direction: column; gap: 2px; }

.size-inputs { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 8px; }
.size-input-group { display: flex; flex-direction: column; gap: 3px; }
.size-input-group label { font-size: 10px; color: #6e7681; }
.size-input-group input[type="number"] {
  width: 70px; padding: 6px 8px; text-align: center;
  background: #0d1117; border: 1px solid #30363d; border-radius: 4px;
  color: #e6edf3; font-family: 'JetBrains Mono', monospace; font-size: 13px;
}
.size-input-group input[type="number"]:focus { outline: none; border-color: #00d4ff; box-shadow: 0 0 0 2px rgba(0,212,255,0.15); }
.size-x { color: #484f58; font-size: 14px; margin-bottom: 4px; }

.create-map-btn {
  width: 100%; padding: 8px; border-radius: 5px; font-size: 11px; font-weight: 600;
  border: 1px solid #00d4ff; background: rgba(0,212,255,0.1); color: #00d4ff;
  cursor: pointer; transition: all 0.2s; font-family: 'JetBrains Mono', monospace;
}
.create-map-btn:hover { background: rgba(0,212,255,0.2); box-shadow: 0 0 12px rgba(0,212,255,0.2); }

.render-size-info { font-size: 10px; color: #6e7681; text-align: center; margin-top: 4px; }

/* ─── Tools Grid ─── */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 4px; margin-bottom: 8px; }
.tool-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 4px; border-radius: 5px; font-size: 10px;
  border: 1px solid #30363d; background: #21262d; color: #8b949e;
  cursor: pointer; transition: all 0.15s ease; position: relative;
}
.tool-btn:hover { border-color: #484f58; color: #c9d1d9; background: #262c36; transform: translateY(-1px); }
.tool-btn.active {
  border-color: #00d4ff; color: #00d4ff;
  background: rgba(0,212,255,0.12);
  box-shadow: 0 0 8px rgba(0,212,255,0.15);
}
.tool-btn.active::after {
  content: ''; position: absolute; bottom: -1px; left: 25%; right: 25%;
  height: 2px; background: #00d4ff; border-radius: 1px;
}
.tool-icon { font-size: 14px; line-height: 1; }
.tool-label { font-size: 9px; font-family: 'JetBrains Mono', monospace; }

/* ─── Brush Size ─── */
.brush-size-control { margin: 4px 0 8px; }
.brush-size-control label { font-size: 10px; color: #6e7681; display: block; margin-bottom: 4px; }
.brush-slider {
  flex: 1; -webkit-appearance: none; appearance: none; height: 4px;
  background: #30363d; border-radius: 2px; outline: none;
}
.brush-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px;
  border-radius: 50%; background: #00d4ff; cursor: pointer;
  box-shadow: 0 0 6px rgba(0,212,255,0.4);
}
.brush-size-val { font-size: 10px; color: #8b949e; min-width: 30px; text-align: right; }

/* ─── Options ─── */
.options-list { display: flex; flex-direction: column; gap: 6px; }
.option-checkbox {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 11px; color: #8b949e;
}
.option-checkbox input[type="checkbox"] { accent-color: #00d4ff; }

/* ─── Symmetry ─── */
.symmetry-buttons { display: flex; gap: 4px; }
.sym-btn {
  flex: 1; padding: 5px 0; border-radius: 4px; font-size: 11px;
  border: 1px solid #30363d; background: #21262d; color: #8b949e;
  cursor: pointer; transition: all 0.15s; text-align: center;
  font-family: 'JetBrains Mono', monospace;
}
.sym-btn:hover { border-color: #484f58; }
.sym-btn.active { border-color: #ff4da6; color: #ff4da6; background: rgba(255,77,166,0.1); }

/* ─── Templates ─── */
.template-card {
  padding: 10px; border-radius: 6px; border: 1px solid #21262d;
  background: #0d1117; cursor: pointer; transition: all 0.15s; margin-bottom: 6px;
}
.template-card:hover { border-color: #00d4ff; background: rgba(0,212,255,0.04); }
.template-name { font-size: 12px; font-weight: 600; color: #e6edf3; margin-bottom: 4px; }
.template-meta { display: flex; align-items: center; gap: 8px; }
.template-size {
  font-size: 10px; padding: 1px 6px; border-radius: 3px;
  background: rgba(0,212,255,0.12); color: #00d4ff;
}
.template-desc { font-size: 10px; color: #6e7681; }

.quick-sizes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.quick-size-btn {
  padding: 6px; border-radius: 4px; font-size: 10px; text-align: center;
  border: 1px solid #21262d; background: #0d1117; color: #8b949e;
  cursor: pointer; transition: all 0.15s; font-family: 'JetBrains Mono', monospace;
}
.quick-size-btn:hover { border-color: #00d4ff; color: #c9d1d9; }
.quick-size-btn.active { border-color: #00d4ff; color: #00d4ff; background: rgba(0,212,255,0.08); }

/* ─── Category & Color Palette ─── */
.cat-input {
  width: 100px; padding: 3px 6px; font-size: 9px;
  background: #0d1117; border: 1px solid #30363d; border-radius: 3px;
  color: #e6edf3; font-family: 'JetBrains Mono', monospace;
}
.cat-input:focus { outline: none; border-color: #00d4ff; }
.cat-add-btn {
  width: 22px; height: 22px; border-radius: 3px; font-size: 13px;
  border: 1px solid #30363d; background: #21262d; color: #39ff14;
  cursor: pointer; transition: all 0.15s; display: flex; align-items: center; justify-content: center;
}
.cat-add-btn:hover { border-color: #39ff14; background: rgba(57,255,20,0.1); }

.category-group { margin-bottom: 8px; }
.category-header {
  display: flex; align-items: center; gap: 6px; padding: 5px 8px;
  border-radius: 4px; background: rgba(33,38,45,0.6); cursor: pointer;
  transition: background 0.15s; margin-bottom: 4px;
}
.category-header:hover { background: rgba(33,38,45,0.9); }
.cat-collapse { font-size: 10px; color: #484f58; width: 12px; }
.cat-name { font-size: 11px; color: #8b949e; font-weight: 600; flex: 1; }
.cat-name:hover { color: #c9d1d9; }
.cat-count { font-size: 9px; color: #484f58; padding: 1px 5px; border-radius: 3px; background: rgba(13,17,23,0.6); }
.cat-remove-btn {
  font-size: 10px; color: #484f58; background: none; border: none;
  cursor: pointer; padding: 0 2px; transition: color 0.15s;
}
.cat-remove-btn:hover { color: #f85149; }
.cat-rename-input {
  flex: 1; font-size: 11px; padding: 1px 4px; border-radius: 3px;
  background: #0d1117; border: 1px solid #00d4ff; color: #e6edf3;
  font-family: 'JetBrains Mono', monospace; outline: none;
}

.category-colors { padding-left: 4px; }

.color-row {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 6px; border-radius: 4px; border: 1px solid transparent;
  cursor: pointer; transition: all 0.15s; margin-bottom: 2px;
}
.color-row:hover { background: rgba(33,38,45,0.5); border-color: #21262d; }
.color-row.selected { background: rgba(0,212,255,0.06); border-color: #00d4ff; box-shadow: 0 0 8px rgba(0,212,255,0.12); }

.color-swatch-wrap { position: relative; flex-shrink: 0; }
.color-swatch {
  width: 24px; height: 24px; border-radius: 4px;
  border: 2px solid #30363d; transition: all 0.15s;
}
.color-row.selected .color-swatch { border-color: #00d4ff; box-shadow: 0 0 6px rgba(0,212,255,0.3); }
.color-input-overlay {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
  width: 24px; height: 24px; border: none; background: none;
}

.color-info { flex: 1; min-width: 0; }
.color-label-input {
  width: 100%; background: transparent; border: none; padding: 0;
  font-size: 11px; color: #e6edf3; outline: none;
  font-family: 'JetBrains Mono', monospace;
}
.color-label-input:focus { color: #fff; }
.color-meta { font-size: 9px; color: #484f58; margin-top: 1px; }

.color-cat-select {
  font-size: 9px; padding: 1px 4px; border-radius: 3px;
  background: #0d1117; border: 1px solid #30363d; color: #6e7681;
  font-family: 'JetBrains Mono', monospace; cursor: pointer;
  max-width: 60px;
}
.color-cat-select:focus { outline: none; border-color: #00d4ff; }

.color-remove-btn {
  font-size: 10px; color: #484f58; background: none; border: none;
  cursor: pointer; padding: 2px 4px; transition: all 0.15s;
  opacity: 0; border-radius: 3px;
}
.color-row:hover .color-remove-btn { opacity: 0.6; }
.color-remove-btn:hover { opacity: 1 !important; color: #f85149; background: rgba(248,81,73,0.1); }

.add-color-to-cat-btn {
  width: 100%; padding: 4px 0; margin-top: 2px;
  font-size: 10px; text-align: center; color: #484f58;
  background: transparent; border: 1px dashed #21262d; border-radius: 4px;
  cursor: pointer; transition: all 0.15s;
  font-family: 'JetBrains Mono', monospace;
}
.add-color-to-cat-btn:hover { border-color: #00d4ff; color: #00d4ff; background: rgba(0,212,255,0.04); }

/* ─── Preset Grid ─── */
.preset-grid { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 4px; }
.preset-btn {
  padding: 3px 7px; font-size: 9px; border-radius: 3px;
  border: 1px solid #21262d; background: #0d1117; color: #6e7681;
  cursor: pointer; transition: all 0.15s; font-family: 'JetBrains Mono', monospace;
}
.preset-btn:hover { border-color: #00d4ff; color: #00d4ff; }

/* ─── Sprites Tab ─── */
.empty-state { text-align: center; padding: 32px 0; font-size: 11px; color: #484f58; }

.sprite-card {
  margin-bottom: 10px; padding: 10px; border-radius: 6px;
  border: 1px solid #21262d; background: #0d1117; transition: border-color 0.15s;
}
.sprite-card:hover { border-color: #30363d; }
.sprite-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sprite-color-dot { width: 16px; height: 16px; border-radius: 3px; border: 1px solid #30363d; flex-shrink: 0; }
.sprite-card-label { font-size: 11px; font-weight: 600; color: #e6edf3; flex: 1; }
.sprite-tile-count { font-size: 9px; color: #484f58; }

.sprite-card-body { display: flex; gap: 10px; margin-bottom: 8px; }
.sprite-preview-box {
  width: 64px; height: 64px; border-radius: 4px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #161b22; border: 1px solid #30363d;
}
.sprite-preview-img { width: 64px; height: 64px; image-rendering: pixelated; }
.sprite-empty { color: #30363d; font-size: 18px; }

.sprite-actions { flex: 1; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.sprite-warning { font-size: 9px; color: #ffab00; margin-bottom: 2px; }
.sprite-upload-btn {
  display: block; text-align: center; padding: 5px 8px; border-radius: 4px;
  font-size: 10px; border: 1px dashed #30363d; color: #8b949e;
  cursor: pointer; transition: all 0.15s; font-family: 'JetBrains Mono', monospace;
}
.sprite-upload-btn:hover { border-color: #00d4ff; color: #00d4ff; }
.sprite-remove-btn {
  padding: 4px 8px; border-radius: 4px; font-size: 10px;
  border: 1px solid #30363d; background: transparent; color: #8b949e;
  cursor: pointer; transition: all 0.15s; text-align: center;
  font-family: 'JetBrains Mono', monospace;
}
.sprite-remove-btn:hover { border-color: #f85149; color: #f85149; }

.sprite-ai-row { display: flex; gap: 4px; }
.sprite-ai-input {
  flex: 1; padding: 5px 8px; font-size: 10px; border-radius: 4px;
  background: #161b22; border: 1px solid #30363d; color: #e6edf3;
  font-family: 'JetBrains Mono', monospace;
}
.sprite-ai-input:focus { outline: none; border-color: #39ff14; }
.sprite-ai-input::placeholder { color: #30363d; }
.sprite-ai-btn {
  padding: 5px 10px; border-radius: 4px; font-size: 10px;
  border: 1px solid #39ff14; background: rgba(57,255,20,0.08); color: #39ff14;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
}
.sprite-ai-btn:hover { background: rgba(57,255,20,0.15); }
.sprite-ai-btn.loading { opacity: 0.5; cursor: wait; }

/* ─── Center Panel ─── */
.center-panel { flex: 1; position: relative; overflow: hidden; background: #0a0e14; }
.center-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.main-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ─── Zoom Controls ─── */
.zoom-controls {
  position: absolute; top: 12px; right: 12px; z-index: 10;
  display: flex; flex-direction: column; gap: 3px; align-items: center;
}
.zoom-btn {
  width: 32px; height: 32px; border-radius: 5px; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #30363d; background: #21262d; color: #c9d1d9;
  cursor: pointer; transition: all 0.15s;
}
.zoom-btn:hover { border-color: #00d4ff; color: #00d4ff; }
.zoom-btn.fit { font-size: 12px; margin-top: 2px; }
.zoom-level { font-size: 9px; color: #6e7681; padding: 2px 0; }

/* ─── Active Tool Indicator ─── */
.active-tool-indicator {
  position: absolute; top: 12px; left: 12px; z-index: 10;
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 5px;
  background: rgba(22,27,34,0.92); border: 1px solid #21262d;
  font-size: 11px; color: #8b949e; backdrop-filter: blur(4px);
}

/* ─── Coordinate Display ─── */
.coord-display {
  position: absolute; bottom: 12px; left: 12px; z-index: 10;
  padding: 4px 10px; border-radius: 4px;
  background: rgba(22,27,34,0.92); border: 1px solid #21262d;
  font-size: 10px; color: #6e7681; backdrop-filter: blur(4px);
}

/* ─── Minimap ─── */
.minimap-container {
  position: absolute; bottom: 10px; right: 10px; z-index: 10;
  background: #0d1117; border: 1px solid #21262d; border-radius: 5px;
  overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* ─── Render Overlay ─── */
.render-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.94); backdrop-filter: blur(10px);
  display: flex; flex-direction: column;
}
.render-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; height: 48px;
  background: linear-gradient(180deg, #1a1a2e 0%, #16162a 100%);
  border-bottom: 1px solid #21262d;
}
.render-export-btn {
  padding: 5px 10px; border-radius: 5px; font-size: 11px;
  border: 1px solid #39ff14; background: rgba(57,255,20,0.1); color: #39ff14;
  cursor: pointer; transition: all 0.15s; font-family: 'JetBrains Mono', monospace;
}
.render-export-btn:hover { background: rgba(57,255,20,0.2); }
.back-btn:hover { border-color: #f85149; color: #f85149; }

.render-content {
  flex: 1; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.render-loading { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.render-progress-bar {
  width: 280px; height: 6px; border-radius: 3px; overflow: hidden;
  background: #21262d; border: 1px solid #30363d;
}
.render-progress-fill {
  height: 100%; border-radius: 3px; transition: width 0.3s ease;
  background: linear-gradient(90deg, #39ff14, #00d4ff);
}

.render-image-container { position: relative; }
.render-grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(48,54,61,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48,54,61,0.5) 1px, transparent 1px);
}

.render-zoom-controls {
  position: absolute; bottom: 20px; right: 20px;
  display: flex; align-items: center; gap: 6px;
}

/* ─── Onboarding ─── */
.onboarding-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(6px);
}
.onboarding-card {
  max-width: 440px; padding: 28px; border-radius: 10px;
  background: linear-gradient(135deg, #1a1a2e, #161b22);
  border: 1px solid #00d4ff; box-shadow: 0 0 30px rgba(0,212,255,0.15);
}
.onboarding-footer { display: flex; align-items: center; justify-content: space-between; }
.onboarding-dots { display: flex; gap: 5px; }
.onboarding-dot { width: 8px; height: 8px; border-radius: 50%; background: #30363d; transition: background 0.2s; }
.onboarding-dot.active { background: #00d4ff; box-shadow: 0 0 6px rgba(0,212,255,0.4); }
.onboarding-skip {
  padding: 6px 12px; border-radius: 5px; font-size: 11px;
  background: transparent; border: none; color: #6e7681;
  cursor: pointer; font-family: 'JetBrains Mono', monospace;
}
.onboarding-skip:hover { color: #8b949e; }
.onboarding-next {
  padding: 6px 16px; border-radius: 5px; font-size: 11px; font-weight: 600;
  background: #00d4ff; border: none; color: #0d1117;
  cursor: pointer; font-family: 'JetBrains Mono', monospace;
  transition: box-shadow 0.2s;
}
.onboarding-next:hover { box-shadow: 0 0 12px rgba(0,212,255,0.4); }
.onboarding-go {
  padding: 6px 16px; border-radius: 5px; font-size: 11px; font-weight: 600;
  background: #39ff14; border: none; color: #0d1117;
  cursor: pointer; font-family: 'JetBrains Mono', monospace;
  transition: box-shadow 0.2s;
}
.onboarding-go:hover { box-shadow: 0 0 12px rgba(57,255,20,0.4); }

/* ─── Shortcuts Panel ─── */
.shortcuts-panel {
  position: fixed; top: 52px; right: 12px; z-index: 50;
  width: 280px; padding: 14px; border-radius: 8px;
  background: linear-gradient(135deg, #1a1a2e, #161b22);
  border: 1px solid #21262d; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.shortcuts-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #21262d;
}
.shortcuts-header span { font-size: 10px; color: #6e7681; font-weight: 600; letter-spacing: 1px; }
.shortcuts-header button {
  font-size: 12px; color: #484f58; background: none; border: none;
  cursor: pointer; transition: color 0.15s;
}
.shortcuts-header button:hover { color: #c9d1d9; }

.shortcut-row { display: flex; align-items: center; justify-content: space-between; padding: 3px 0; }
.shortcut-key {
  display: inline-block; padding: 2px 7px; border-radius: 3px;
  background: #21262d; border: 1px solid #30363d;
  font-size: 10px; color: #8b949e; font-family: 'JetBrains Mono', monospace;
}
.shortcut-desc { font-size: 10px; color: #484f58; }

/* ─── Toast ─── */
.toast-bubble {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: linear-gradient(135deg, #1a1a2e, #161b22);
  border: 1px solid #00d4ff; border-radius: 8px;
  padding: 12px 20px; color: #e6edf3;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  animation: slide-up 0.3s ease-out;
  max-width: 360px; box-shadow: 0 4px 20px rgba(0,212,255,0.15);
}
.toast-bubble::after {
  content: ''; position: absolute; bottom: -7px; right: 20px;
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-top: 7px solid #00d4ff;
}

/* ─── Footer ─── */
.app-footer {
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px; height: 28px;
  background: #0d1117; border-top: 1px solid #161b22;
  font-size: 10px; color: #30363d;
}
.footer-link { color: #00d4ff; text-decoration: none; transition: color 0.15s; }
.footer-link:hover { color: #4dd9ff; }

/* ─── Global Inputs ─── */
input[type="number"] {
  background: #0d1117; border: 1px solid #30363d; border-radius: 4px;
  color: #e6edf3; padding: 6px 10px; font-family: 'JetBrains Mono', monospace;
  font-size: 13px; width: 70px; text-align: center;
}
input[type="number"]:focus { outline: none; border-color: #00d4ff; box-shadow: 0 0 0 2px rgba(0,212,255,0.15); }
input[type="text"] {
  background: #0d1117; border: 1px solid #30363d; border-radius: 4px;
  color: #e6edf3; padding: 6px 10px; font-family: 'JetBrains Mono', monospace; font-size: 12px;
}
input[type="text"]:focus { outline: none; border-color: #00d4ff; }
input[type="color"] { cursor: pointer; border: none; background: none; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .left-panel { width: 200px; min-width: 160px; }
  .right-panel { width: 240px; min-width: 200px; }
  .header-stats { display: none; }
}
@media (max-width: 700px) {
  .app-body { flex-direction: column; }
  .left-panel, .right-panel { width: 100%; min-width: auto; max-height: 200px; border: none; border-bottom: 1px solid #21262d; }
  .center-panel { min-height: 300px; }
}