:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --border: #e3e6eb;
  --border-strong: #cdd3dc;
  --text: #1a1d23;
  --text-muted: #5b6471;
  --text-faint: #8a93a1;
  --accent: #1f5dd6;
  --accent-2: #163f93;
  --accent-soft: #e8f0ff;
  --danger: #d83a3a;
  --warn: #f6a623;
  --green: #2ea44f;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 1px rgba(15,23,42,.04);
  --shadow-md: 0 6px 16px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.06);
  --shadow-lg: 0 24px 48px rgba(15,23,42,.16);
  --rail-w: 92px;
  --panel-w: 320px;
  --topbar-h: 56px;
  --bottombar-h: 64px;
  --radius: 10px;
  --radius-sm: 6px;
  --fast: 120ms ease;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

/* ---------- TOPBAR ---------- */
.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.topbar-actions { display: flex; gap: 4px; }
.tb-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px; font-weight: 500;
  transition: var(--fast);
}
.tb-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.tb-btn:disabled { opacity: .4; cursor: not-allowed; }
.tb-btn svg { color: currentColor; }
.tb-btn-accent {
  background: var(--accent-soft);
  color: var(--accent) !important;
  margin-left: 8px;
}
.tb-btn-accent:hover:not(:disabled) { background: #d8e6ff; color: var(--accent-2) !important; }

/* ---------- APP LAYOUT ---------- */
.app {
  display: grid;
  grid-template-columns: var(--rail-w) var(--panel-w) 1fr;
  height: calc(100vh - var(--topbar-h) - var(--bottombar-h));
  overflow: hidden;
}
.app.panel-collapsed { grid-template-columns: var(--rail-w) 0 1fr; }
.app.panel-collapsed .panel { transform: translateX(-100%); pointer-events: none; }

/* ---------- RAIL ---------- */
.rail {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  transition: var(--fast);
}
.rail-btn:hover { background: var(--surface-2); color: var(--text); }
.rail-btn.active { background: var(--accent-soft); color: var(--accent); }
/* "More" tabbar button is mobile-only — secondary tools live directly in
 * the rail on desktop, so the More button has nothing to show there. */
.rail-btn-more { display: none; }
.rail-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: var(--fast);
}
.rail-btn.active .rail-icon {
  background: white;
  border-color: var(--accent);
}
.rail-icon svg { width: 18px; height: 18px; }

.rail-btn-ai .rail-icon-ai {
  background: linear-gradient(135deg, #1f5dd6, #8a3fd6);
  border-color: transparent;
  color: white;
}
.rail-btn-ai.active { background: linear-gradient(135deg, rgba(31,93,214,.08), rgba(138,63,214,.08)); }
.rail-btn-ai.active .rail-icon-ai { background: linear-gradient(135deg, #1f5dd6, #8a3fd6); border-color: transparent; }
.rail-btn-ai .rail-icon-ai::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(138,63,214,.55);
  animation: ai-pulse 2.4s ease-out infinite;
}
.rail-btn-ai .rail-icon-ai { position: relative; overflow: visible; }
@keyframes ai-pulse {
  0% { box-shadow: 0 0 0 0 rgba(138,63,214,.45); }
  70% { box-shadow: 0 0 0 12px rgba(138,63,214,0); }
  100% { box-shadow: 0 0 0 0 rgba(138,63,214,0); }
}

/* AI chat panel */
.ai-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-msg {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  max-width: 100%;
  word-break: break-word;
}
.ai-msg-user {
  background: var(--accent);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.ai-msg-assistant {
  background: var(--surface-2);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.ai-msg-error {
  background: rgba(216,58,58,0.08);
  color: var(--danger);
  align-self: stretch;
  border: 1px solid rgba(216,58,58,0.25);
}
.ai-msg-meta {
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 4px;
}
.ai-thinking {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 12px;
}
.ai-thinking .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: ai-bounce 1.2s ease-in-out infinite; }
.ai-thinking .dot:nth-child(2) { animation-delay: .15s; }
.ai-thinking .dot:nth-child(3) { animation-delay: .3s; }
@keyframes ai-bounce { 0%,80%,100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ai-empty {
  text-align: center;
  padding: 20px 8px;
  color: var(--text-muted);
}
.ai-empty-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #1f5dd6, #8a3fd6);
  color: white;
  border-radius: 50%;
}
.ai-empty h4 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.ai-empty p { margin: 0; font-size: 12px; }
.ai-suggestions {
  display: flex; flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  text-align: left;
}
.ai-suggestion {
  padding: 8px 10px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: var(--fast);
}
.ai-suggestion:hover { border-color: var(--accent); color: var(--accent); border-style: solid; }

.ai-input-wrap {
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.ai-input {
  width: 100%;
  min-height: 64px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
}
.ai-input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.ai-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.ai-send {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1f5dd6, #8a3fd6);
  color: white;
  font-weight: 600;
  font-size: 13px;
  transition: var(--fast);
}
.ai-send:hover:not(:disabled) { filter: brightness(1.08); }
.ai-send:disabled { opacity: .5; cursor: not-allowed; }
.ai-clear {
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 6px;
}
.ai-clear:hover { background: var(--surface-2); color: var(--text); }

/* Icon search panel */
.icon-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  transition: var(--fast);
}
.icon-chip:hover { background: var(--accent-soft); color: var(--accent); }
.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.icon-tile {
  aspect-ratio: 1;
  background: var(--surface-2);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 8px;
  display: grid; place-items: center;
  transition: var(--fast);
  overflow: hidden;
}
.icon-tile:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.04);
}
.icon-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(0);
}
.icon-tile:hover img { filter: none; }

/* Templates panel — pre-made design cards. Thumbnail-led grid; empty thumbs
   fall back to a large letter glyph so the grid stays visually consistent. */
.template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.template-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: var(--fast);
}
.template-tile:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.template-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  background: var(--surface-2);
  border-radius: 6px;
  overflow: hidden;
}
.template-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.template-thumb-empty {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-muted);
}
.template-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.template-meta {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Symbols catalogue (Shapes panel → Symbols section). Uses the same tile look
   as the icons grid but with collapsible category headers + depth indent. */
.symbol-cat { margin-bottom: 6px; }
.symbol-cat-toggle {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  transition: var(--fast);
  text-align: left;
}
.symbol-cat-toggle:hover { background: var(--surface-2); }
.symbol-cat-caret { width: 14px; color: var(--text-muted); font-size: 10px; }
.symbol-cat-name { flex: 1; }
.symbol-cat-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 0 8px;
  line-height: 18px;
}
.symbol-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 4px 0 8px 22px;
}
.symbol-tile {
  aspect-ratio: 1;
  background: var(--surface-2);
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 6px;
  display: grid; place-items: center;
  transition: var(--fast);
  overflow: hidden;
}
.symbol-tile:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.04);
}
.symbol-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Locked-colour panel for fixed-finish materials */
.locked-color {
  text-align: center;
  padding: 20px 12px;
}
.locked-color-swatch {
  width: 96px; height: 96px;
  border-radius: 16px;
  margin: 0 auto 14px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
}
.locked-color-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.locked-color-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.locked-color-hint {
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.locked-color-hint strong { color: var(--text); }

/* ---------- PANEL ---------- */
.panel {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease;
  overflow: hidden;
}
.panel-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.panel-close {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 14px;
}
.panel-close:hover { background: var(--surface-2); color: var(--text); }
.panel-header h2 { margin: 0; font-size: 16px; font-weight: 600; }
.panel-body { padding: 16px 18px; overflow-y: auto; flex: 1; }

/* Panel widgets */
.section-title { margin: 4px 0 10px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }

.option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  background: var(--surface);
  transition: var(--fast);
}
.option:hover { border-color: var(--border-strong); }
.option.selected { border-color: var(--accent); background: var(--accent-soft); }
.option.option-disabled { opacity: 0.45; cursor: not-allowed; }
.option.option-disabled:hover { border-color: var(--border); }
.option-thumb {
  width: 56px; height: 42px;
  border-radius: 6px;
  display: grid; place-items: center;
  background: var(--surface-2);
  flex-shrink: 0;
}
.option-thumb svg { width: 100%; height: 100%; }
.option-body { flex: 1; }
.option-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.option-desc { font-size: 11px; color: var(--text-muted); line-height: 1.35; }
.option-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: grid; place-items: center;
  font-size: 10px;
  color: transparent;
  flex-shrink: 0;
}
.option.selected .option-check {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.field { margin-bottom: 14px; }
.field-label { display: block; font-size: 12px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }
.field-row { display: flex; gap: 8px; align-items: center; }
.input, .select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
}
.input:focus, .select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.input-with-suffix { position: relative; }
.input-with-suffix .suffix { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--text-faint); pointer-events: none; }
.input-with-suffix .input { padding-right: 30px; }

.radius-row { display: flex; align-items: center; gap: 10px; }
.radius-row .radius-range { flex: 1; min-width: 0; }
.radius-row .radius-num-wrap { flex: 0 0 80px; }
.radius-row .radius-num { width: 100%; padding-right: 28px; }

.btn-group { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 6px; overflow: hidden; }
.btn-group button {
  padding: 8px 10px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  transition: var(--fast);
  min-width: 36px;
}

/* Size panel tabs are a btn-group that spans the panel width — long German
 * labels (Hochformat, Querformat, Quadratisch) used to clip at the right edge
 * because min-width: 36px stops flex from shrinking them. Let the tabs share
 * the row equally and ellipsis-truncate any overflow that still doesn't fit
 * (e.g. extra-narrow panels). */
.size-tabs { width: 100%; }
.size-tabs.btn-group button {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 6px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-group button:last-child { border-right: 0; }
.btn-group button:hover { background: var(--surface-2); color: var(--text); }
.btn-group button.active { background: var(--accent); color: white; }

.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.swatch {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 2px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: var(--fast);
}
.swatch:hover { transform: scale(1.05); }
.swatch.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.swatch.selected::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 6px rgba(255,255,255,.95);
}

/* Palette + CMYK picker — reused for text fill, shape fill/stroke, icon tint.
   The full palette is shown as 8 sections (5 swatches each) followed by a
   compact CMYK input + hex field. Keeps the picker visually consistent across
   every "pick a colour" surface in the editor. */
.palette-picker { display: flex; flex-direction: column; gap: 10px; padding: 6px 0; }
.pal-section { display: flex; flex-direction: column; gap: 6px; }
.pal-section-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pal-swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pal-swatch {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 2px solid var(--border);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: var(--fast);
}
.pal-swatch:hover { transform: scale(1.06); border-color: var(--accent); }
.pal-swatch.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.pal-swatch.selected::after {
  content: '✓';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  text-shadow: 0 0 4px rgba(255,255,255,.95);
}
/* CMYK colour wheel — sits at the top of the picker. Centre swatch shows the
   live colour; the marker tracks the chosen hue/saturation position. */
.cmyk-wheel-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 10px;
}
.cmyk-wheel {
  display: block;
  width: 180px;
  height: 180px;
  cursor: crosshair;
  user-select: none;
  touch-action: none;
}
.cmyk-wheel-marker {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 1px rgba(0,0,0,.45);
  pointer-events: none;
  background: transparent;
}
.cmyk-wheel-center {
  position: absolute;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
  pointer-events: none;
}

/* C/M/Y/K sliders — single column with a coloured channel label. */
.cmyk-sliders { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.cmyk-slider-row {
  display: grid;
  grid-template-columns: 20px 1fr 40px;
  align-items: center;
  gap: 8px;
}
.cmyk-slider-label {
  font-weight: 700;
  font-size: 12px;
  text-align: center;
}
.cmyk-slider-c { color: #00aeef; }
.cmyk-slider-m { color: #ec008c; }
.cmyk-slider-y { color: #f3c300; }
.cmyk-slider-k { color: #1a1a1a; }
.cmyk-slider-pct {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.cmyk-slider-row input[type=range] {
  width: 100%;
  accent-color: var(--accent);
}

.cmyk-row {
  display: flex; align-items: center; gap: 6px;
}
.cmyk-preview {
  width: 32px; height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.cmyk-field { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.cmyk-field span { font-size: 10px; color: var(--text-muted); font-weight: 600; }
.cmyk-field input {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  text-align: center;
  -moz-appearance: textfield;
}
.cmyk-field input::-webkit-outer-spin-button,
.cmyk-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cmyk-hex { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.cmyk-hex span { font-size: 10px; color: var(--text-muted); font-weight: 600; }
.cmyk-hex input {
  flex: 1;
  padding: 4px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 600;
  transition: var(--fast);
  width: 100%;
}
.btn-primary:hover { background: var(--accent-2); }

.btn-ghost {
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  transition: var(--fast);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { color: var(--danger); border-color: rgba(216,58,58,.3); background: rgba(216,58,58,.04); }
.btn-danger:hover { background: rgba(216,58,58,.08); }

.list-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  background: var(--surface);
  transition: var(--fast);
}
.list-item:hover { background: var(--surface-2); }
.list-item.selected { border-color: var(--accent); background: var(--accent-soft); }
.list-item .li-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: var(--surface-2); flex-shrink: 0; }
.list-item .li-label { flex: 1; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .li-del {
  width: 24px; height: 24px;
  border-radius: 4px;
  color: var(--text-faint);
  display: grid; place-items: center;
  font-size: 14px;
}
.list-item .li-del:hover { color: var(--danger); background: rgba(216,58,58,.08); }

/* Layers panel action buttons (move up / down / delete). Sit at the right edge
   of each row, share the .li-del visual language but stay neutral until hover. */
.list-item .li-act {
  width: 26px; height: 26px;
  border-radius: 6px;
  color: var(--text-muted);
  background: transparent;
  display: grid; place-items: center;
  font-size: 12px;
  border: 1px solid transparent;
  transition: var(--fast);
}
.list-item .li-act:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.list-item .li-act:disabled { opacity: .3; cursor: not-allowed; }
.list-item .li-act[data-action="del"]:hover { color: var(--danger); border-color: rgba(216,58,58,.25); background: rgba(216,58,58,.08); }

.divider { height: 1px; background: var(--border); margin: 16px 0; }

.dual-input { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- STAGE ---------- */
.stage {
  position: relative;
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(0,0,0,.015) 10px 11px),
    linear-gradient(180deg, #eef0f4 0%, #e6e9ee 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.canvas-wrap {
  position: relative;
  padding: 36px 56px 44px 36px;
}
.canvas-frame {
  position: relative;
  background: transparent;
}
#c { display: block; }

.dim {
  position: absolute;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.dim-top {
  bottom: 18px;
  left: 36px;
  right: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 16px;
}
.dim-top::before, .dim-top::after {
  content: ''; flex: 1; height: 1px; background: var(--border-strong);
}
.dim-top span { padding: 0 8px; background: var(--bg); position: relative; z-index: 1; }
.dim-right {
  right: 12px;
  top: 36px;
  bottom: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 16px;
}
.dim-right::before, .dim-right::after {
  content: ''; flex: 1; width: 1px; background: var(--border-strong);
}
.dim-right span {
  padding: 8px 0; background: transparent;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  position: relative; z-index: 1;
}

.thickness {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-faint);
}

.sel-info {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  box-shadow: var(--shadow-md);
  min-width: 220px;
}
.sel-info div { display: flex; justify-content: space-between; gap: 8px; }
.sel-info div + div { margin-top: 4px; }
.sel-info .lbl { color: var(--text-faint); font-weight: 500; }
.sel-info span:not(.lbl) { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }

/* Floating per-object toolbar that follows the selected object on the canvas. */
.obj-toolbar {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 6px;
  box-shadow: 0 6px 20px rgba(15,23,42,0.15);
  z-index: 50;
  /* JS positions us at the object's top-centre and applies a translate
   * that horizontally re-centres + lifts above the bbox. */
  transform: translate(-50%, -100%);
  white-space: nowrap;
  pointer-events: auto;
  user-select: none;
}
.obj-toolbar[hidden] { display: none; }
.ot-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  transition: var(--fast);
}
.ot-btn:hover { background: var(--surface-2); }
.ot-btn.ot-icononly { padding: 6px; }
.ot-btn.ot-danger { color: #c53030; }
.ot-btn.ot-danger:hover { background: rgba(197, 48, 48, 0.08); }
.ot-sep {
  display: inline-block;
  width: 1px;
  align-self: stretch;
  background: var(--border);
  margin: 4px 2px;
}

.zoom {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.zoom button {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  font-size: 16px;
  color: var(--text-muted);
  transition: var(--fast);
}
.zoom button:hover { background: var(--surface-2); color: var(--text); }
.zoom span { padding: 0 10px; font-size: 12px; font-weight: 500; color: var(--text-muted); font-variant-numeric: tabular-nums; min-width: 48px; text-align: center; }

/* ---------- BOTTOMBAR ---------- */
.bottombar {
  height: var(--bottombar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.bb-left { display: flex; align-items: center; gap: 18px; }
.bb-product { font-weight: 600; font-size: 14px; }
.bb-price { font-size: 18px; font-weight: 700; }
.bb-price small { font-size: 11px; font-weight: 500; color: var(--text-faint); margin-left: 6px; }
.bb-right { display: flex; align-items: center; gap: 10px; }
.bb-qty {
  width: 32px; height: 32px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  transition: var(--fast);
}
.bb-qty:hover { background: var(--surface-2); }
#qty {
  width: 50px;
  text-align: center;
  padding: 7px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  -moz-appearance: textfield;
}
#qty::-webkit-outer-spin-button, #qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bb-cart, .bb-checkout {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: var(--fast);
}
.bb-cart {
  background: var(--warn);
  color: white;
}
.bb-cart:hover { background: #db8c12; }
/* "Update in cart" — only visible when the editor was opened via a cart
   Edit-design link. Uses the accent palette to read as the primary "save my
   changes" action, while the original orange "Add to cart" stays for cloning. */
.bb-cart-update {
  background: var(--accent);
}
.bb-cart-update:hover { background: var(--accent-2); }
.bb-cart-update[hidden] { display: none; }
.bb-checkout {
  background: var(--accent);
  color: white;
}
.bb-checkout:hover { background: var(--accent-2); }

/* ---------- MINI CART ---------- */
.bb-mini {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: white;
  display: grid; place-items: center;
  cursor: pointer;
  transition: var(--fast);
}
.bb-mini:hover { background: var(--surface-2); }
.bb-mini-icon { font-size: 18px; line-height: 1; }
.bb-mini-count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: white;
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 0 0 2px white;
}
.mini-cart {
  position: fixed;
  right: 16px; bottom: 76px;
  width: 340px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 120px);
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15,23,42,0.18);
  display: flex; flex-direction: column;
  z-index: 90;
  overflow: hidden;
}
.mini-cart[hidden] { display: none; }
.mini-cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.mini-cart-title { font-weight: 700; font-size: 14px; }
.mini-cart-close {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
}
.mini-cart-close:hover { background: var(--surface-2); }
.mini-cart-body {
  flex: 1; min-height: 0;
  overflow-y: auto;
  padding: 8px 12px;
}
.mini-cart-empty {
  padding: 24px 8px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.mini-cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.mini-cart-item:last-child { border-bottom: none; }
.mini-cart-thumb {
  width: 56px; height: 42px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fafafa;
  display: grid; place-items: center;
  overflow: hidden;
}
.mini-cart-thumb img { max-width: 100%; max-height: 100%; }
.mini-cart-meta { min-width: 0; }
.mini-cart-meta-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-cart-meta-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.mini-cart-meta-price { font-size: 12px; font-weight: 600; margin-top: 4px; }
.mini-cart-item-actions { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.mini-cart-qty {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
}
.mini-cart-remove {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  padding: 2px 4px;
}
.mini-cart-remove:hover { color: var(--danger, #c53030); }
.mini-cart-footer {
  border-top: 1px solid var(--border);
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.mini-cart-total {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px;
}
.mini-cart-total strong { font-size: 15px; }
.mini-cart-checkout {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-size: 13px; font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--fast);
}
.mini-cart-checkout:hover { background: var(--accent-2); }
.mini-cart-checkout:disabled { background: var(--surface-2); color: var(--text-muted); cursor: not-allowed; }

/* ---------- OVERLAY ---------- */
.overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  z-index: 100;
  padding: 24px;
}
.overlay[hidden] { display: none; }
.overlay-inner {
  background: white;
  border-radius: 12px;
  padding: 22px 26px;
  max-width: min(640px, 92vw);
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.overlay-close {
  position: absolute;
  top: 10px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 16px;
  color: var(--text-muted);
  transition: var(--fast);
}
.overlay-close:hover { background: var(--surface-2); color: var(--text); }
.sel-info[hidden] { display: none; }

/* ---------- Saving overlay (add-to-cart progress) ---------- */
.overlay-saving { z-index: 150; }
.overlay-saving-inner {
  background: white;
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  box-shadow: var(--shadow-lg);
}
.overlay-saving-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}
.overlay-saving-title { font-size: 15px; font-weight: 600; color: var(--text); }
.overlay-saving-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
/* Determinate progress bar for the saving overlay. Width animates as the
   editor + storefront pass milestones (rasterize → save → cart add). */
.overlay-saving-bar {
  width: 100%;
  height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.overlay-saving-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: inherit;
  transition: width 280ms ease-out;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Read more (material + mount) ---------------------------------- */
.option-readmore {
  display: inline-block;
  margin-top: 4px;
  padding: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  background: transparent;
  cursor: pointer;
}
.option-readmore:hover { color: var(--accent-2); }
.read-more-inner h3 { margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.read-more-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.read-more-image,
.read-more-video {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  display: block;
  background: var(--surface-2);
}
.read-more-video {
  aspect-ratio: 16 / 9;
  border: 0;
}
.read-more-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.pdf-row { margin-bottom: 16px; }
.pdf-row .btn-group { display: inline-flex; margin-top: 6px; }
.pdf-hint { margin-top: 6px; font-size: 11px; color: var(--text-muted); }
.checkbox-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  padding: 4px 0;
  cursor: pointer;
}
.checkbox-row input { width: 16px; height: 16px; cursor: pointer; }
.pdf-summary {
  margin: 12px 0 16px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
.pdf-summary strong { color: var(--text); }
.pdf-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ============================================================ *
 *  RESPONSIVE BREAKPOINTS
 *  The editor's default layout (rail 92 + panel 320 + canvas)
 *  needs ~720px of horizontal room. Below that, progressively
 *  collapse to icons-only rail, then overlay the panel above
 *  the canvas. The full-bleed Shopify embed handles wide screens
 *  by spanning 100vw; this block makes narrow iframes / mobile
 *  viewports usable without things stacking on top of each other.
 * ============================================================ */

/* 900px — tighten chrome paddings so the topbar/bottombar fit. */
@media (max-width: 900px) {
  .topbar { padding: 0 10px; }
  .bottombar { padding: 0 12px; }
  .tb-btn { padding: 6px 8px; font-size: 12px; gap: 4px; }
  .tb-btn-accent { margin-left: 4px; }
  .bb-left { gap: 10px; }
  .bb-cart, .bb-checkout { padding: 8px 12px; font-size: 12px; }
}

/* 720px — collapse the rail to icons-only, narrow the panel. */
@media (max-width: 720px) {
  :root {
    --rail-w: 56px;
    --panel-w: 260px;
    --topbar-h: 48px;
    --bottombar-h: 56px;
  }
  .rail { padding: 8px 4px; }
  .rail-btn { padding: 6px 2px; font-size: 0; }   /* hide labels */
  .rail-btn .rail-icon { width: 30px; height: 30px; }
  .rail-btn .rail-icon svg { width: 16px; height: 16px; }
  .brand-name { display: none; }                  /* drop wordmark, keep glyph */
  .tb-btn span:not(.rail-icon) { display: none; } /* topbar icons only */
  .bb-product { font-size: 12px; }
  .bb-price { font-size: 15px; }
  .bb-price small { display: none; }
}

/* 680px — full mobile reflow.  Side rail moves to the bottom as a horizontal
 * scrolling strip ABOVE the bottombar, and the contextual panel becomes a
 * bottom sheet that slides up over the canvas.  The canvas now owns the
 * whole horizontal width so designs are actually usable on phones.
 *
 * Stacking (bottom → top): bottombar | rail strip | bottom-sheet panel
 * Z-order: rail z:6, panel z:7, bottombar z:8 (always on top).
 */
@media (max-width: 680px) {
  :root {
    --rail-h: 56px;             /* horizontal-rail height on mobile */
    --bottombar-h: 60px;
    --panel-w: 0px;
  }
  .app,
  .app.panel-collapsed {
    /* single column; rail + panel are positioned absolutely over the canvas.
     * Override BOTH the default and the panel-collapsed grid template — the
     * latter is the desktop "panel slides left" reset, which would otherwise
     * keep the stage in a 56px rail column on mobile. */
    grid-template-columns: 1fr;
    position: relative;
  }
  /* Tabbar layout: 6 equal columns (5 primary tools + "More"). Hide secondary
   * rail buttons on mobile — they appear inside the More sheet instead. */
  .rail {
    position: absolute;
    left: 0; right: 0;
    /* Rail sits at the bottom of .app; .bottombar is a separate sibling
     * outside .app (in the <body> flow), so the rail doesn't need to leave
     * room for it inside .app's coordinate space. */
    bottom: 0;
    height: var(--rail-h);
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    flex-direction: initial;
    padding: 6px 4px;
    gap: 0;
    border-right: none;
    border-top: 1px solid var(--border);
    background: var(--surface);
    z-index: 6;
  }
  .rail-btn { display: none; }                    /* hide secondary tools */
  .rail-btn[data-primary="1"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 4px 2px;
    font-size: 10px;
    gap: 3px;
  }
  .rail-btn .rail-icon { width: 26px; height: 26px; }
  .rail-btn .rail-icon svg { width: 14px; height: 14px; }
  .rail-btn span:not(.rail-icon) { display: block; }
  /* "More" rail button — only ever visible on mobile (display:none on desktop
   * via the rule below the media query). */
  .rail-btn-more { display: flex; }

  .panel {
    position: absolute;
    left: 0; right: 0;
    /* Panel slides up above the rail (which now sits at .app bottom). */
    bottom: var(--rail-h);
    width: 100%;
    height: min(60vh, 460px);
    z-index: 7;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-right: none;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -8px 28px rgba(15,23,42,0.18);
    transform: translateY(0);
    transition: transform 200ms ease;
  }
  /* Sheet drag handle: 36×4 pill at top, signals draggability the way native
   * iOS / Android bottom-sheets do. Purely visual — we don't wire a drag
   * gesture; tap the X to close. */
  .panel::before {
    content: '';
    position: absolute;
    top: 6px; left: 50%; transform: translateX(-50%);
    width: 36px; height: 4px; border-radius: 999px;
    background: var(--border-strong);
    pointer-events: none;
  }
  .panel-header { padding-top: 18px; }
  /* Slide the panel past its own height AND past the rail/bottombar stack so
   * the header doesn't poke out between them. The desktop rule uses
   * translateX(-100%) which would be wrong here. */
  .app.panel-collapsed .panel {
    transform: translateY(calc(100% + var(--rail-h)));
    pointer-events: none;
  }

  /* Give the canvas room: leave space at the bottom for rail+bottombar. */
  /* Symmetric padding on mobile — desktop has 56px on the right to leave room
   * for the zoom widget, which we relocated above the tabbar on phones. */
  .canvas-wrap { padding: 24px 24px calc(var(--rail-h) + 8px); }

  /* Lift the zoom controls above the rail so they don't sit on top of it. */
  .zoom { bottom: calc(var(--rail-h) + 8px); right: 8px; }

  .bottombar {
    position: relative;          /* keep above rail/panel via z-index */
    z-index: 8;
    padding: 0 8px env(safe-area-inset-bottom, 0);
    height: calc(var(--bottombar-h) + env(safe-area-inset-bottom, 0));
    flex-wrap: nowrap;
  }
  /* Shrink .app by the iOS home-indicator inset so the bottombar's bottom
   * edge lands above it, not behind it. 100vh on iOS Safari includes the
   * area below the home indicator, which is why the bottombar otherwise
   * gets clipped on iPhone X+ devices. */
  .app {
    height: calc(100vh - var(--topbar-h) - var(--bottombar-h) - env(safe-area-inset-bottom, 0));
  }
  .bb-left { gap: 6px; min-width: 0; flex: 1 1 auto; overflow: hidden; }
  .bb-product { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bb-price { font-size: 14px; white-space: nowrap; }
  .bb-price small { display: none; }
  .bb-right { gap: 6px; flex-shrink: 0; }
  #qty { width: 36px; padding: 6px 4px; font-size: 12px; }
  .bb-qty { width: 28px; height: 28px; }
  .bb-checkout { display: none; }   /* mini-cart Checkout covers this on mobile */

  /* The mini-cart drawer should sit clear of the new mobile layers. */
  .mini-cart {
    right: 8px;
    bottom: calc(var(--bottombar-h) + var(--rail-h) + 8px);
    max-height: calc(100vh - var(--topbar-h) - var(--bottombar-h) - var(--rail-h) - 24px);
  }
}

/* ---------- "More" mobile sheet ---------- */
.more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.more-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 4px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  cursor: pointer;
  color: var(--text-muted);
  font: inherit;
  transition: var(--fast);
}
.more-tile:hover,
.more-tile:focus-visible { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.more-tile-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface-2);
  display: grid; place-items: center;
  color: var(--text);
}
.more-tile-label { font-size: 11px; font-weight: 600; }
@media (max-width: 380px) {
  .more-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all 200ms ease;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- SCROLLBAR ---------- */
.panel-body::-webkit-scrollbar, .rail::-webkit-scrollbar { width: 8px; }
.panel-body::-webkit-scrollbar-track, .rail::-webkit-scrollbar-track { background: transparent; }
.panel-body::-webkit-scrollbar-thumb, .rail::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.panel-body::-webkit-scrollbar-thumb:hover, .rail::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }
