:root {
  --bg: #080808;
  --panel: #0e0e0e;
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.38);
  --text-soft: rgba(255, 255, 255, 0.52);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --radius-xl: 18px;
  --radius-lg: 12px;
  --radius-md: 10px;
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.55);
}

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

html,
body {
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

.app {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.page {
  width: 100%;
  max-width: 1160px;
  min-height: min(920px, calc(100vh - 64px));
  padding: clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.shell {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-bottom-color: transparent;
  border-radius: var(--radius-xl);
  padding: 0 clamp(16px, 4vw, 48px) 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: clamp(480px, 68vh, 880px);
  min-height: clamp(480px, 68vh, 880px);
  max-height: clamp(480px, 68vh, 880px);
}

.shell::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 0;
  height: 160px;
  background: linear-gradient(
    to bottom,
    rgba(14, 14, 14, 0) 0%,
    rgba(14, 14, 14, 0.12) 28%,
    rgba(14, 14, 14, 0.45) 52%,
    rgba(14, 14, 14, 0.82) 78%,
    rgba(14, 14, 14, 0.96) 92%,
    rgba(14, 14, 14, 1) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.step-counter {
  position: relative;
  z-index: 4;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step-counter__brand,
.step-total {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.26);
}

.step-bg {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Bebas Neue", sans-serif;
  font-size: 152px;
  line-height: 1;
  letter-spacing: -4px;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 55%,
    transparent 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.header {
  text-align: center;
  padding-top: clamp(30px, 3vw, 42px);
  margin-bottom: 14px;
  position: relative;
  z-index: 4;
}

.header h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: 7px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}

.header p {
  font-size: clamp(12px, 1.4vw, 14px);
  color: var(--text-muted);
  font-weight: 300;
}

/* Elements step: filter controls live in the shell header (see index.html) */
/* [hidden] must win over display:flex — otherwise the toolbar stays visible on every step */
.header-elements-toolbar[hidden] {
  display: none !important;
}

.header-elements-toolbar:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  margin-bottom: 0;
  padding: 0 4px;
  max-width: 100%;
}

/* Tighter gap between toolbar row and content slot on Elements step only */
.shell[data-step="elements"] .header {
  margin-bottom: 6px;
}

.header-elements-toolbar .toolbar-btn {
  font-family: "DM Sans", sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.header-elements-toolbar .toolbar-btn:hover {
  color: var(--text-soft);
  border-color: rgba(255, 255, 255, 0.22);
}

.header-elements-toolbar .toolbar-btn.active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.35);
  background: var(--surface);
}

.header-elements-toolbar .elements-selection-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
}

.header-elements-toolbar .count-badge {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 5px 12px;
  transition: color 0.2s, border-color 0.2s;
}

.header-elements-toolbar .count-badge.has-selection {
  color: var(--text-soft);
  border-color: rgba(255, 255, 255, 0.22);
}

.header-elements-toolbar .elements-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s, opacity 0.15s;
}

.header-elements-toolbar .elements-clear-btn:hover:not(:disabled) {
  color: var(--text-soft);
  border-color: rgba(255, 255, 255, 0.22);
  background: var(--surface);
}

.header-elements-toolbar .elements-clear-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.content-slot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  margin-top: 22px;
}

.content-slot > * {
  min-height: 0;
  width: 100%;
}

.cards-wrap {
  position: relative;
}

/* Gleiche vertikale Ankerung auf allen Steps (kein Springen 01↔02↔03 …) */
.content-slot > .cards-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.template-frame {
  width: 100%;
  min-height: 540px;
  height: var(--template-frame-height, 620px);
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.content-slot > .cards-wrap > .cards-fade {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.cards-fade {
  position: relative;
  overflow: visible;
}

.cards-fade::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(14, 14, 14, 0.78) 0%,
    rgba(14, 14, 14, 0.68) 8%,
    rgba(14, 14, 14, 0.52) 22%,
    rgba(14, 14, 14, 0.26) 48%,
    rgba(14, 14, 14, 0.08) 72%,
    rgba(14, 14, 14, 0) 100%
  );
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 18px 10px 0;
  scrollbar-width: auto;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.cards-grid::-webkit-scrollbar {
  width: 5px;
}

.cards-grid::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
}

.cards-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  min-height: 40px;
}

.cards-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.38);
}

/* Mood / purpose / navbar / hero: extra bottom scroll space so content stays above .cards-fade::after */
.mood-template .cards-grid,
.purpose-template .cards-grid,
.navbar-template .cards-grid,
.hero-template .cards-grid {
  padding-bottom: 60px;
}

.purpose-template .purpose-entry {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cards-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.selector-card {
  border-radius: var(--radius-lg);
  overflow: visible;
  position: relative;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.24s;
  text-align: left;
  width: 100%;
}

.selector-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}

.selector-card.selected {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), var(--shadow-lg);
}

.selector-card__preview {
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #141414;
}

.selector-card__preview.short {
  height: 154px;
}

.selector-card__body {
  padding: 8px 2px 0;
}

.selector-card__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
  display: block;
}

.selector-card__subtext {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 11px;
  line-height: 1.45;
}

.selector-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.18);
}

.selector-check::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}

.selector-card.selected .selector-check {
  opacity: 1;
  transform: scale(1);
}

.preview-window {
  position: absolute;
  inset: 0;
  padding: 12px;
}

.preview-bar {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
}

.preview-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.preview-line {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.preview-chip {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.mood-template .card-entry { display: flex; flex-direction: column; min-width: 0; }
.mood-template .card {
  border-radius: 12px;
  overflow: visible;
  height: 200px;
  position: relative;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.24s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.24s;
}
.mood-template .card-inner { border-radius: 10px; overflow: hidden; width: 100%; height: 100%; }
.mood-template .card:hover { transform: translateY(-7px); box-shadow: 0 16px 36px rgba(0,0,0,0.55); }
.mood-template .check {
  position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; z-index: 10; opacity: 0; transform: scale(0.5);
  transition: opacity 0.2s, transform 0.2s; pointer-events: none;
}
.mood-template .check::after {
  content: ""; width: 7px; height: 4px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translateY(-1px); display: block;
}
.mood-template .card.selected .check { opacity: 1; transform: scale(1); }
.mood-template .card-label { padding: 8px 2px 0; }
.mood-template .card-name {
  font-size: 10px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
  color: rgba(255,255,255,0.45); transition: color 0.2s;
}
.mood-template .ln { height: 3.5px; border-radius: 2px; margin-bottom: 4px; }
.mood-template .ln4 { height: 4px; border-radius: 2px; margin-bottom: 4px; }
.mood-template .d5 { width: 5px; height: 5px; border-radius: 50%; }
.mood-template .b3 { height: 3px; border-radius: 2px; }

.mood-template .t-light{background:#e8edf5}
.mood-template .t-light .ch{background:#cdd8ea;height:24px;display:flex;align-items:center;padding:0 8px;gap:4px}
.mood-template .t-light .hero{background:linear-gradient(135deg,#dae5f8,#c5d8f5);height:68px;display:flex;align-items:center;padding:9px;position:relative;overflow:hidden}
.mood-template .t-light .body{padding:7px 8px 4px}
.mood-template .t-light .blks{display:flex;gap:4px;padding:0 8px 8px}
.mood-template .t-synth{background:#1a0d2e}
.mood-template .t-synth .ch{background:#120921;height:24px;display:flex;align-items:center;padding:0 8px;gap:4px}
.mood-template .t-synth .grid-bg{position:absolute;inset:24px 0 0 0;background-image:linear-gradient(rgba(150,50,255,0.16) 1px,transparent 1px),linear-gradient(90deg,rgba(150,50,255,0.16) 1px,transparent 1px);background-size:17px 17px}
.mood-template .t-synth .cnt{position:relative;z-index:2;padding:10px}
.mood-template .t-synth .bot{display:flex;gap:6px;position:absolute;bottom:10px;left:10px;right:10px;z-index:2}
.mood-template .t-retro{background:#d4b896;display:flex;flex-direction:column}
.mood-template .t-retro .ch{background:#2a2018;height:24px;display:flex;align-items:center;padding:0 8px;gap:4px}
.mood-template .t-retro .ban{background:#c0392b;height:58px;padding:8px;position:relative;overflow:hidden;flex-shrink:0}
.mood-template .t-retro .ban::before{content:"";position:absolute;inset:0;background-image:repeating-linear-gradient(45deg,rgba(0,0,0,0.08) 0,rgba(0,0,0,0.08) 2px,transparent 2px,transparent 7px)}
.mood-template .t-retro .grd{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:8px}
.mood-template .cr-gc{border:1.5px solid #8b7355;border-radius:4px;padding:5px;background:rgba(255,255,255,0.15);height:38px}
.mood-template .t-val{background:#fce4ec}
.mood-template .t-val .ch{background:#f8bbd0;height:24px;display:flex;align-items:center;padding:0 8px;gap:4px}
.mood-template .t-val .cnt{padding:10px}
.mood-template .t-val .circ{display:flex;gap:5px;margin-top:4px}
.mood-template .t-val .cc{flex:1;height:42px;border-radius:6px;background:rgba(244,143,177,0.25);border:1px solid rgba(233,30,99,0.2);display:flex;align-items:center;justify-content:center}
.mood-template .t-min{background:#f5f5f5}
.mood-template .t-min .ch{background:#e0e0e0;height:24px;display:flex;align-items:center;padding:0 8px;gap:4px}
.mood-template .t-min .hero{background:#fff;height:68px;display:flex;align-items:center;padding:9px;border-bottom:1px solid #e8e8e8}
.mood-template .t-min .body{padding:7px 8px 4px}
.mood-template .t-min .blks{display:flex;gap:4px;padding:0 8px 8px}
.mood-template .t-corp{background:#f0f4ff}
.mood-template .t-corp .ch{background:#1a237e;height:24px;display:flex;align-items:center;padding:0 8px;gap:4px}
.mood-template .t-corp .hero{background:linear-gradient(135deg,#1a237e,#283593);height:68px;display:flex;align-items:center;padding:9px;position:relative;overflow:hidden}
.mood-template .t-corp .body{padding:7px 8px 4px}
.mood-template .t-corp .blks{display:flex;gap:4px;padding:0 8px 8px}
.mood-template .t-dark{background:#111118}
.mood-template .t-dark .ch{background:#090910;height:24px;display:flex;align-items:center;padding:0 8px;gap:4px}
.mood-template .t-dark .cnt{padding:10px}
.mood-template .t-dark .bot{display:flex;gap:6px;position:absolute;bottom:10px;left:10px;right:10px;z-index:2}
.mood-template .t-forest{background:#0d1f10}
.mood-template .t-forest .ch{background:#081209;height:24px;display:flex;align-items:center;padding:0 8px;gap:4px}
.mood-template .t-forest .hero{background:linear-gradient(135deg,#1a3a1e,#0f2a12);height:68px;display:flex;align-items:center;padding:9px;position:relative;overflow:hidden}
.mood-template .t-forest .body{padding:7px 8px 4px}
.mood-template .t-forest .blks{display:flex;gap:4px;padding:0 8px 8px}
.mood-template .t-pastel{background:#fef9ff}
.mood-template .t-pastel .ch{background:#f3e5f5;height:24px;display:flex;align-items:center;padding:0 8px;gap:4px}
.mood-template .t-pastel .hero{background:linear-gradient(135deg,#fce4ec,#f3e5f5,#e8eaf6);height:68px;display:flex;align-items:center;padding:9px;position:relative;overflow:hidden}
.mood-template .t-pastel .body{padding:7px 8px 4px}
.mood-template .t-pastel .blks{display:flex;gap:4px;padding:0 8px 8px}
.mood-template .t-ocean{background:#0a1628}
.mood-template .t-ocean .ch{background:#060e1a;height:24px;display:flex;align-items:center;padding:0 8px;gap:4px}
.mood-template .t-ocean .wave{position:absolute;inset:24px 0 0 0;background:linear-gradient(180deg,#0a2040 0%,#0d3060 60%,#0a1628 100%)}
.mood-template .t-ocean .cnt{position:relative;z-index:2;padding:10px}
.mood-template .t-ocean .bot{display:flex;gap:6px;position:absolute;bottom:10px;left:10px;right:10px;z-index:2}
.mood-template .t-sunset{background:#1a0800}
.mood-template .t-sunset .ch{background:#120500;height:24px;display:flex;align-items:center;padding:0 8px;gap:4px}
.mood-template .t-sunset .hero{background:linear-gradient(180deg,#ff6b1a 0%,#c62828 100%);height:68px;display:flex;align-items:center;padding:9px;position:relative;overflow:hidden}
.mood-template .t-sunset .body{padding:7px 8px 4px}
.mood-template .t-sunset .blks{display:flex;gap:4px;padding:0 8px 8px}
.mood-template .t-terra{background:#f6efea}
.mood-template .t-terra .ch{background:#e8d8cf;height:24px;display:flex;align-items:center;padding:0 8px;gap:4px}
.mood-template .t-terra .hero{background:linear-gradient(135deg,#f0d9c8,#e8c4b0);height:68px;display:flex;align-items:center;padding:9px;position:relative;overflow:hidden}
.mood-template .t-terra .body{padding:7px 8px 4px}
.mood-template .t-terra .blks{display:flex;gap:4px;padding:0 8px 8px}
.mood-template .t-ink{background:#f7f6f3}
.mood-template .t-ink .ch{background:#1e3a5f;height:24px;display:flex;align-items:center;padding:0 8px;gap:4px}
.mood-template .t-ink .hero{background:#fff;height:68px;display:flex;align-items:center;padding:9px;border-bottom:1px solid rgba(30,58,95,0.1);position:relative;overflow:hidden}
.mood-template .t-ink .body{padding:7px 8px 4px}
.mood-template .t-ink .blks{display:flex;gap:4px;padding:0 8px 8px}

.preview-box {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.preview-stat {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.palette-card .selector-card__preview,
.element-card .selector-card__preview {
  height: 180px;
}

.purpose-card .selector-card__preview.purpose-tile {
  height: 200px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background:
    radial-gradient(
      ellipse 130% 90% at 50% -20%,
      color-mix(in srgb, var(--purpose-accent, #fff) 28%, transparent),
      transparent 52%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.42) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.purpose-card.selected .selector-card__preview.purpose-tile {
  border-color: color-mix(in srgb, var(--purpose-accent, #fff) 50%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--purpose-accent, #fff) 24%, transparent),
    0 14px 32px color-mix(in srgb, var(--purpose-accent, #000) 38%, transparent);
}

.purpose-tile__chrome {
  height: 26px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.32);
}

.purpose-tile__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--purpose-accent, #fff) 55%, rgba(255, 255, 255, 0.12));
}

.purpose-tile__mock {
  padding: 10px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.purpose-tile__mock-line {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.purpose-tile__mock-line:nth-child(1) {
  width: 74%;
}

.purpose-tile__mock-line:nth-child(2) {
  width: 52%;
  opacity: 0.72;
}

.purpose-tile__mock-line:nth-child(3) {
  width: 62%;
  opacity: 0.5;
}

.purpose-tile__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 10px 14px 16px;
  min-height: 0;
}

.purpose-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(30px, 4.2vw, 40px);
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
  transition: color 0.2s;
}

.purpose-meta {
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
  max-width: 15rem;
}

.colors-template .cards-fade {
  padding-right: 8px;
}

/* Hide fade gradients on colors step — they cover the swatches */
.colors-template .cards-fade::after {
  display: none;
}

.shell[data-step="colors"]::after {
  display: none;
}

.colors-template .colors-surface {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
  padding: 16px 18px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.colors-template .colors-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 4px;
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 10px 8px 0;
  scrollbar-width: auto;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.colors-template .colors-grid::-webkit-scrollbar {
  width: 5px;
}

.colors-template .colors-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 99px;
}

.colors-template .colors-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

.colors-template .color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.colors-template .color-swatch-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.colors-template .color-swatch {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 24px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.colors-template .color-swatch:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.colors-template .color-lock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
}

.colors-template .color-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 0 2px;
}

.colors-template .color-label small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.6);
}

.colors-template .swatch-pop {
  animation: swatch-pop 0.24s ease;
}

.colors-template .colors-hint {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
  padding-bottom: 6px;
}

.colors-template .colors-hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 7px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 2px;
}

@keyframes swatch-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

.colors-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(5px);
  transition: opacity 0.2s ease;
}

.colors-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.colors-modal {
  width: min(340px, calc(100vw - 24px));
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #121212;
  padding: 20px;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.colors-modal-overlay.open .colors-modal {
  transform: scale(1) translateY(0);
}

.colors-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.colors-modal__role {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.colors-modal__close {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  cursor: pointer;
}

.colors-modal__preview {
  height: 96px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 36px;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}


.colors-modal__hex-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.colors-modal__hex-input {
  flex: 1;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
  font-family: "DM Mono", monospace;
  letter-spacing: 0.06em;
  font-size: 13px;
  padding: 10px 12px;
  outline: none;
}

.colors-modal__hex-input:focus {
  border-color: rgba(255, 255, 255, 0.34);
}

.colors-modal__copy,
.colors-modal__lock {
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.colors-modal__copy {
  padding: 0 14px;
  min-width: 76px;
}

.colors-modal__lock {
  width: 100%;
  padding: 10px 12px;
}

.colors-modal__lock.active {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

/* ── Add-color button ───────────────────────────────────────────── */
.colors-template .color-add-btn {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.colors-template .color-add-btn:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-4px);
}

.colors-template .color-add-icon {
  font-size: 32px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 300;
  transition: color 0.2s;
}

.colors-template .color-add-btn:hover .color-add-icon {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Custom HSV picker ──────────────────────────────────────────── */
.colors-custom-picker {
  margin-bottom: 14px;
}

.picker-sv-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  cursor: crosshair;
}

.picker-sv-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.picker-sv-cursor {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
  pointer-events: none;
  top: 0;
  left: 0;
}

.picker-hue-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.picker-hue-wrap {
  flex: 1;
  position: relative;
  height: 18px;
}

.picker-hue-canvas {
  display: block;
  width: 100%;
  height: 18px;
  border-radius: 99px;
  cursor: pointer;
}

.picker-hue-thumb {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 20px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -50%);
  pointer-events: none;
  left: 0;
}

.picker-eyedropper {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.picker-eyedropper:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* ── Navbar step 04 — wie Mood/Purpose (01/02): fluides Grid, kein Abschneiden rechts ─ */
.navbar-template .cards-grid {
  /* erbt .cards-grid: repeat(4, minmax(0,1fr)), max-height 420px, overflow-y auto, overflow-x hidden */
  grid-auto-rows: minmax(min-content, auto);
  align-content: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Wie templates/navbar.html — .card, aber Breite wie 01/02 (Zellen teilen sich die Shell) */
.navbar-template .navbar-card.selector-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: min-content;
  background: #181818;
  border-radius: 7px !important;
  overflow: hidden;
  border: 1.5px solid #232323;
  box-shadow: none;
  transition: transform 0.18s, box-shadow 0.18s;
}

.navbar-template .navbar-card.selector-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
}

.navbar-template .navbar-card.selector-card.selected {
  border-color: #fff !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
}

.navbar-template .navbar-card.selector-card.selected:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.6),
    0 0 0 3px rgba(255, 255, 255, 0.1) !important;
}

.navbar-card .selector-card__preview.navbar-tile {
  height: auto;
  /* Kein min-height:0 — sonst kollabiert die Preview in der Flex-Kette (Karten „ohne Höhe“). */
  min-height: min-content;
  flex: 0 0 auto;
  padding: 0;
  background: #131313;
  overflow: hidden;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: stretch;
}

.navbar-preview {
  position: relative;
  background: #131313;
  flex: 0 0 auto;
  min-height: min-content;
  width: 100%;
}

/* Etwas kleiner als 236px-Original, passt besser in die Shell */
.navbar-template .navbar-preview {
  zoom: 0.88;
}

.navbar-preview .L {
  height: 5px;
  border-radius: 1px;
  background: #d8d8d8;
  flex-shrink: 0;
}
.navbar-preview .L.sm { width: 18px; }
.navbar-preview .L.md { width: 28px; }
.navbar-preview .L.lg { width: 40px; }
.navbar-preview .L.circ { width: 11px; height: 11px; border-radius: 50%; }
.navbar-preview .L.sq { width: 11px; height: 11px; border-radius: 3px; }

.navbar-preview .K {
  height: 3px;
  border-radius: 1px;
  background: #2e2e2e;
  flex-shrink: 0;
}
.navbar-preview .K.hi { background: #888; }
.navbar-preview .K.w8 { width: 8px; }
.navbar-preview .K.w10 { width: 10px; }
.navbar-preview .K.w12 { width: 12px; }
.navbar-preview .K.w14 { width: 14px; }
.navbar-preview .K.w16 { width: 16px; }
.navbar-preview .K.w20 { width: 20px; }

.navbar-preview .B {
  height: 10px;
  border-radius: 2px;
  background: #d8d8d8;
  flex-shrink: 0;
}
.navbar-preview .B.pill { border-radius: 10px; }
.navbar-preview .B.ghost { background: transparent; border: 1px solid #404040; }
.navbar-preview .B.w20 { width: 20px; }
.navbar-preview .B.w26 { width: 26px; }
.navbar-preview .B.w32 { width: 32px; }

.navbar-preview .V {
  width: 1px;
  height: 12px;
  background: #2a2a2a;
  flex-shrink: 0;
}

.navbar-preview .caret {
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 3.5px solid #555;
  flex-shrink: 0;
}

/* Wie Template: Flex-Zeilen ohne align-items:stretch → K/L/B nicht zur Zeilenhöhe strecken */
.navbar-preview .L,
.navbar-preview .K,
.navbar-preview .B {
  align-self: center;
}

/* Check wie templates/navbar.html / hero.html — weißer Kreis, dunkles Häkchen */
.navbar-template .navbar-card .selector-check,
.hero-template .hero-card .selector-check {
  top: 7px;
  right: 7px;
  width: 15px;
  height: 15px;
  background: #fff;
  transform: scale(0.3);
  transition: opacity 0.2s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 30;
}

.navbar-template .navbar-card .selector-check::after,
.hero-template .hero-card .selector-check::after {
  width: 4px;
  height: 6px;
  border-left: none;
  border-bottom: none;
  border-right: 1.5px solid #111;
  border-bottom: 1.5px solid #111;
  transform: rotate(45deg) translate(-1px, -1px);
}

.navbar-template .navbar-card.selected .selector-check,
.hero-template .hero-card.selected .selector-check {
  opacity: 1;
  transform: scale(1);
}

.navbar-preview.nw-sidebar {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 90px;
  width: 100%;
  flex: 0 0 auto;
  min-width: 0;
}

.navbar-preview.nw-floating-pill {
  height: 98px;
  position: relative;
}

.navbar-preview.nw-boxed {
  background: #0e0e0e;
  padding: 12px 12px 0;
}

.navbar-preview.nw-mega-menu {
  position: relative;
}

.navbar-preview.nw-glass {
  position: relative;
  height: 98px;
}

.navbar-preview.nw-hybrid-rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: min-content;
  flex: 0 0 auto;
}

/* Wireframe-Root: Höhe aus Inhalt, nicht 0 (Flex-Eltern) */
.navbar-preview > .nw {
  flex: 0 0 auto;
  min-height: min-content;
  width: 100%;
}

/* Wireframes (.nw-*) — ehemals inline style */
.nw-classic__bar {
  height: 46px;
  background: #1e1e1e;
  border-bottom: 1px solid #272727;
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
}

.nw-classic__center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
}

.nw-classic__right {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.nw-logo-center__bar {
  height: 46px;
  background: #1e1e1e;
  border-bottom: 1px solid #272727;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  position: relative;
}

.nw-logo-center__left,
.nw-logo-center__right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nw-logo-center__abs {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nw-double-row__wrap {
  background: #1e1e1e;
}

.nw-double-row__row1 {
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #2a2a2a;
}

.nw-double-row__row1-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nw-double-row__row2 {
  height: 24px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 14px;
  border-bottom: 1px solid #272727;
}

.nw-sidebar {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  min-height: 90px;
  flex: 1 1 auto;
}

.nw-sidebar__rail {
  width: 52px;
  background: #1e1e1e;
  border-right: 1px solid #272727;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 9px;
}

.nw-sidebar__logo-gap {
  margin-bottom: 4px;
}

.nw-sidebar__rule {
  width: 30px;
  height: 1px;
  background: #252525;
}

.nw-sidebar__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.nw-sidebar__tile {
  width: 26px;
  height: 19px;
  background: #222;
  border-radius: 4px;
}

.nw-sidebar__tile--on {
  background: #2e2e2e;
  border: 1px solid #3a3a3a;
}

.nw-sidebar__cap {
  height: 2.5px;
  width: 18px;
  background: #2d2d2d;
  border-radius: 1px;
}

.nw-sidebar__cap--on {
  background: #555;
}

.nw-sidebar__foot {
  margin-top: auto;
}

.nw-sidebar__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #252525;
  border: 1px solid #333;
}

.nw-sidebar__main {
  flex: 1;
  background: #131313;
}

.nw-bottom-bar__spacer {
  height: 56px;
  background: #131313;
}

.nw-bottom-bar__bar {
  height: 42px;
  background: #1e1e1e;
  border-top: 1px solid #272727;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}

.nw-bottom-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
}

.nw-bottom-bar__ico {
  width: 15px;
  height: 12px;
  border-radius: 3px;
  background: #2a2a2a;
}

.nw-bottom-bar__item--active .nw-bottom-bar__ico {
  background: #ccc;
}

.nw-bottom-bar__cap {
  height: 2.5px;
  width: 15px;
  background: #2a2a2a;
  border-radius: 1px;
}

.nw-bottom-bar__item--active .nw-bottom-bar__cap {
  background: #aaa;
}

.nw-bottom-bar__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ddd;
}

.nw-floating-pill__pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 32px;
  background: #242424;
  border: 1px solid #383838;
  border-radius: 40px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7);
}

.nw-floating-pill__sep {
  width: 1px;
  height: 10px;
  background: #333;
}

.nw-hamburger-only__bar {
  height: 46px;
  background: #1e1e1e;
  border-bottom: 1px solid #272727;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
}

.nw-hamburger-only__bun {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nw-hamburger-only__line {
  width: 22px;
  height: 2px;
  background: #bbb;
  border-radius: 1px;
}

.nw-hamburger-only__line--short {
  width: 14px;
}

.nw-tab-strip__bar {
  height: 46px;
  background: #1e1e1e;
  border-bottom: 1px solid #272727;
  display: flex;
  align-items: flex-end;
  padding: 0 10px;
}

.nw-tab-strip__tab {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.nw-tab-strip__tab--active {
  border-bottom: 2.5px solid #dfdfdf;
}

.nw-tab-strip__end {
  margin-left: auto;
  height: 100%;
  display: flex;
  align-items: center;
}

.nw-brand-banner__bar {
  height: 64px;
  background: #1e1e1e;
  border-bottom: 1px solid #272727;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
}

.nw-brand-banner__avatar {
  width: 34px;
  height: 34px;
  background: #252525;
  border-radius: 7px;
  border: 1px solid #333;
  flex-shrink: 0;
}

.nw-brand-banner__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nw-brand-banner__line1 {
  width: 46px;
  height: 5px;
  background: #d8d8d8;
  border-radius: 1px;
}

.nw-brand-banner__line2 {
  width: 28px;
  height: 3px;
  background: #333;
  border-radius: 1px;
}

.nw-brand-banner__right {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.nw-brand-banner__search {
  width: 60px;
  height: 18px;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 3px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 5px;
}

.nw-brand-banner__search-dot {
  width: 9px;
  height: 9px;
  border: 1px solid #333;
  border-radius: 50%;
}

.nw-brand-banner__search-line {
  flex: 1;
  height: 2px;
  background: #252525;
  border-radius: 1px;
}

.nw-angled-split__bar {
  height: 46px;
  background: #1e1e1e;
  border-bottom: 1px solid #272727;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.nw-angled-split__wedge {
  width: 70px;
  height: 100%;
  background: #282828;
  clip-path: polygon(0 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
  display: flex;
  align-items: center;
  padding: 0 14px;
  position: absolute;
  left: 0;
  top: 0;
}

.nw-angled-split__mid {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: 80px;
}

.nw-angled-split__end {
  margin-left: auto;
  padding-right: 16px;
}

.nw-breadcrumb__wrap {
  background: #1e1e1e;
}

.nw-breadcrumb__crumbs {
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 5px;
  border-bottom: 1px solid #222;
}

.nw-breadcrumb__crumb {
  height: 2.5px;
  width: 12px;
  border-radius: 1px;
  background: #444;
}

.nw-breadcrumb__crumb--mid {
  width: 18px;
  background: #555;
}

.nw-breadcrumb__crumb--hi {
  width: 28px;
  background: #aaa;
}

.nw-breadcrumb__chev {
  font-size: 8px;
  color: #2a2a2a;
  line-height: 1;
}

.nw-breadcrumb__crumbs-end {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.nw-breadcrumb__crumbs-end .nw-breadcrumb__dot {
  height: 2.5px;
  width: 10px;
  border-radius: 1px;
  background: #2a2a2a;
}

.nw-breadcrumb__row2 {
  height: 24px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  border-bottom: 1px solid #272727;
}

.nw-breadcrumb__push {
  margin-left: auto;
}

.nw-step-wizard__bar {
  height: 58px;
  background: #1e1e1e;
  border-bottom: 1px solid #272727;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.nw-step-wizard__steps {
  display: flex;
  align-items: center;
}

.nw-step-wizard__node {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d8d8d8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nw-step-wizard__node--ring {
  background: #252525;
  border: 2px solid #aaa;
}

.nw-step-wizard__node--ghost {
  background: #1e1e1e;
  border: 1px solid #2e2e2e;
}

.nw-step-wizard__node-in {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #111;
}

.nw-step-wizard__node-in--mid {
  background: #aaa;
}

.nw-step-wizard__node-in--ghost {
  background: #2e2e2e;
}

.nw-step-wizard__bridge {
  width: 24px;
  height: 1.5px;
  background: #666;
}

.nw-step-wizard__bridge--dim {
  background: #282828;
}

.nw-step-wizard__track {
  width: 148px;
  height: 2.5px;
  background: #1a1a1a;
  border-radius: 2px;
  overflow: hidden;
}

.nw-step-wizard__fill {
  width: 55%;
  height: 100%;
  background: #444;
}

.nw-icon-label__bar {
  height: 50px;
  background: #1e1e1e;
  border-bottom: 1px solid #272727;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.nw-icon-label__logo {
  margin-right: auto;
}

.nw-icon-label__tabs {
  display: flex;
}

.nw-icon-label__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0 10px;
}

.nw-icon-label__ico {
  width: 15px;
  height: 12px;
  border-radius: 3px;
  background: #2a2a2a;
}

.nw-icon-label__tab--on .nw-icon-label__ico {
  background: #888;
}

.nw-icon-label__cap {
  height: 2.5px;
  width: 15px;
  background: #2a2a2a;
  border-radius: 1px;
}

.nw-icon-label__tab--on .nw-icon-label__cap {
  background: #888;
}

.nw-icon-label__cap--w13 {
  width: 13px;
}

.nw-boxed-inner__bar {
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-bottom: none;
  border-radius: 7px 7px 0 0;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
}

.nw-boxed-inner__right {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.nw-boxed-inner__hair {
  height: 1px;
  background: #2a2a2a;
}

.nw-boxed-inner__foot {
  height: 10px;
  background: #131313;
  border-radius: 0 0 4px 4px;
}

.nw-split-bg__bar {
  height: 46px;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #272727;
}

.nw-split-bg__left {
  width: 74px;
  background: #282828;
  display: flex;
  align-items: center;
  padding: 0 14px;
  flex-shrink: 0;
}

.nw-split-bg__right {
  flex: 1;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
}

.nw-split-bg__push {
  margin-left: auto;
}

.nw-all-left__bar {
  height: 46px;
  background: #1e1e1e;
  border-bottom: 1px solid #272727;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 7px;
}

.nw-multi-level__wrap {
  background: #1e1e1e;
}

.nw-multi-level__row1 {
  height: 24px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  border-bottom: 1px solid #2a2a2a;
}

.nw-multi-level__row1-right {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.nw-multi-level__row2 {
  height: 22px;
  background: #191919;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  border-bottom: 1px solid #272727;
}

.nw-multi-level__tab {
  position: relative;
}

.nw-multi-level__underline {
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: #bbb;
  border-radius: 1px;
}

.nw-mega-menu__bar {
  height: 28px;
  background: #1e1e1e;
  border-bottom: 1px solid #272727;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  z-index: 10;
  position: relative;
}

.nw-mega-menu__right {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

.nw-mega-menu__with-caret {
  display: flex;
  align-items: center;
  gap: 3px;
}

.nw-mega-menu__panel {
  background: #202020;
  border-bottom: 1px solid #2a2a2a;
  padding: 10px 14px;
  display: flex;
  gap: 12px;
}

.nw-mega-menu__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nw-mega-menu__h {
  height: 3px;
  width: 28px;
  background: #aaa;
  border-radius: 1px;
  margin-bottom: 2px;
}

.nw-mega-menu__h--w24 {
  width: 24px;
}

.nw-mega-menu__h--w22 {
  width: 22px;
}

.nw-mega-menu__line {
  height: 2.5px;
  width: 22px;
  border-radius: 1px;
  background: #2a2a2a;
}

.nw-mega-menu__line--short {
  width: 18px;
}

.nw-mega-menu__line--w18 {
  width: 18px;
}

.nw-mega-menu__line--w14 {
  width: 14px;
}

.nw-mega-menu__line--w16 {
  width: 16px;
}

.nw-mega-menu__line--w16b {
  width: 16px;
}

.nw-mega-menu__line--w22 {
  width: 22px;
}

.nw-glass-inner {
  position: relative;
  height: 100%;
}

.nw-glass-inner__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e1e1e 0%, #131313 60%, #1a1a1a 100%);
}

.nw-glass-inner__blob {
  position: absolute;
  border-radius: 50%;
}

.nw-glass-inner__blob--a {
  top: -15px;
  left: 20px;
  width: 85px;
  height: 85px;
  background: rgba(255, 255, 255, 0.022);
}

.nw-glass-inner__blob--b {
  top: 20px;
  right: 15px;
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.016);
}

.nw-glass-inner__bar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 34px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
}

.nw-glass-inner__right {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.nw-glass-inner__pill {
  width: 26px;
  height: 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nw-hybrid-rail-inner {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: min-content;
}

.nw-hybrid-rail-inner__top {
  height: 20px;
  background: #222;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}

.nw-hybrid-rail-inner__top-right {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}

.nw-hybrid-rail-inner__body {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  min-height: min-content;
}

.nw-hybrid-rail-inner__rail {
  width: 40px;
  background: #1a1a1a;
  border-right: 1px solid #252525;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 8px;
  min-height: 78px;
}

.nw-hybrid-rail-inner__icon {
  width: 20px;
  height: 16px;
  background: #202020;
  border-radius: 4px;
}

.nw-hybrid-rail-inner__icon--on {
  background: #3a3a3a;
  border: 1px solid #484848;
}

.nw-hybrid-rail-inner__rail-dot {
  margin-top: auto;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d8d8d8;
}

.nw-hybrid-rail-inner__canvas {
  flex: 1;
  background: #131313;
}

.navbar-card .selector-card__body,
.hero-card .selector-card__body {
  display: block;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border-top: 1px solid #1e1e1e;
  background: #181818;
}

/* Wie Template .label-name — auch bei Auswahl #888 */
.navbar-card .selector-card__label,
.hero-card .selector-card__label {
  display: block;
  font-family: "DM Mono", monospace;
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #888;
}

/* ── Hero step — templates/hero.html (Preview-Root-Styles aus Template) ─ */
.hero-template .cards-grid {
  grid-auto-rows: minmax(min-content, auto);
  align-content: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-template .hero-card.selector-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: min-content;
  background: #181818;
  border-radius: 7px !important;
  overflow: hidden;
  border: 1.5px solid #232323;
  box-shadow: none;
  transition: transform 0.18s, box-shadow 0.18s;
}

.hero-template .hero-card.selector-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
}

.hero-template .hero-card.selector-card.selected {
  border-color: #fff !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
}

.hero-template .hero-card.selector-card.selected:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.6),
    0 0 0 3px rgba(255, 255, 255, 0.1) !important;
}

.hero-card .selector-card__preview.hero-tile {
  height: auto;
  min-height: min-content;
  flex: 0 0 auto;
  padding: 0;
  background: #131313;
  overflow: hidden;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: stretch;
}

.hero-preview {
  position: relative;
  flex: 0 0 auto;
  min-height: min-content;
  width: 100%;
  box-sizing: border-box;
}

.hero-template .hero-preview {
  zoom: 0.88;
}

/* Auto-generated preview roots — siehe templates/hero.html */
.hero-template .hero-preview.hp-fullBleed {
  height: 120px;
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
}
.hero-template .hero-preview.hp-splitLeft {
  height: 120px;
  background: #131313;
  display: flex;
  overflow: hidden;
}
.hero-template .hero-preview.hp-simpleTextImage {
  height: 120px;
  background: #131313;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
}
.hero-template .hp-sti-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 12px;
  gap: 6px;
}
.hero-template .hp-sti-img {
  width: 76px;
  flex-shrink: 0;
  background: #3c3c3c;
  border-left: 1px solid #252525;
  border-radius: 0;
}
.hero-template .hero-preview.hp-announcementBanner {
  height: 120px;
  background: #131313;
  display: flex;
  flex-direction: column;
}
.hero-template .hero-preview.hp-editorial {
  height: 120px;
  background: #131313;
  display: flex;
  flex-direction: column;
  padding: 12px;
}
.hero-template .hero-preview.hp-stats {
  height: 120px;
  background: #131313;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  gap: 7px;
}
.hero-template .hero-preview.hp-spotlight {
  height: 120px;
  background: #0f0f0f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-template .hero-preview.hp-code {
  height: 120px;
  background: #0c0c0c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  gap: 5px;
}
.hero-template .hero-preview.hp-bento {
  height: 120px;
  background: #0f0f0f;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}
.hero-template .hero-preview.hp-interactive3d {
  height: 120px;
  background: #0c0c0c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.hero-template .hero-preview.hp-glassmorphism {
  height: 120px;
  background: #0d0d0d;
  position: relative;
  overflow: hidden;
}
.hero-template .hero-preview.hp-overflowImageRight {
  height: 120px;
  background: #0f0f0f;
  display: flex;
  overflow: hidden;
  position: relative;
}
.hero-template .hero-preview.hp-imageLeftFullHeight {
  height: 120px;
  background: #0f0f0f;
  display: flex;
  overflow: hidden;
}
.hero-template .hero-preview.hp-stackedPortraitCards {
  height: 120px;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 12px;
  overflow: hidden;
}
.hero-template .hero-preview.hp-scatteredPhotos {
  height: 120px;
  background: #0c0c0c;
  position: relative;
  overflow: hidden;
}
.hero-template .hero-preview.hp-imageStrip {
  height: 120px;
  background: #131313;
  display: flex;
  flex-direction: column;
}
.hero-template .hero-preview.hp-centeredWideImage {
  height: 120px;
  background: #0f0f0f;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 10px 0;
  gap: 6px;
}
.hero-template .hero-preview.hp-portraitRightBleed {
  height: 120px;
  background: #0f0f0f;
  display: flex;
  overflow: hidden;
  position: relative;
}
.hero-template .hero-preview.hp-floatingImageBadge {
  height: 120px;
  background: #0f0f0f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  gap: 5px;
  position: relative;
}
.hero-template .hero-preview.hp-masonryCollage {
  height: 120px;
  background: #0c0c0c;
  display: flex;
  gap: 6px;
  padding: 10px;
}
.hero-template .hero-preview.hp-beforeAfterSplit {
  height: 120px;
  background: #0f0f0f;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* templates/hero.html atoms (scoped) */
.hero-preview .K {
  height: 3px;
  border-radius: 1px;
  background: #2e2e2e;
  flex-shrink: 0;
}
.hero-preview .K.hi {
  background: #888;
}
.hero-preview .K.mhi {
  background: #555;
}
.hero-preview .K.w8 { width: 8px; }
.hero-preview .K.w10 { width: 10px; }
.hero-preview .K.w12 { width: 12px; }
.hero-preview .K.w14 { width: 14px; }
.hero-preview .K.w16 { width: 16px; }
.hero-preview .K.w20 { width: 20px; }
.hero-preview .K.w24 { width: 24px; }
.hero-preview .K.w28 { width: 28px; }
.hero-preview .K.w32 { width: 32px; }
.hero-preview .K.w40 { width: 40px; }
.hero-preview .K.w48 { width: 48px; }
.hero-preview .K.w50 { width: 50px; }
.hero-preview .K.w60 { width: 60px; }
.hero-preview .K.w70 { width: 70px; }
.hero-preview .K.w80 { width: 80px; }
.hero-preview .K.w90 { width: 90px; }

.hero-preview .B {
  height: 10px;
  border-radius: 2px;
  background: #d8d8d8;
  flex-shrink: 0;
}
.hero-preview .B.pill {
  border-radius: 10px;
}
.hero-preview .B.ghost {
  background: transparent;
  border: 1px solid #404040;
}
.hero-preview .B.sm {
  height: 8px;
}
.hero-preview .B.w20 { width: 20px; }
.hero-preview .B.w26 { width: 26px; }
.hero-preview .B.w32 { width: 32px; }
.hero-preview .B.w40 { width: 40px; }
.hero-preview .B.w44 { width: 44px; }
.hero-preview .B.w50 { width: 50px; }

.hero-preview .HL {
  height: 9px;
  border-radius: 2px;
  background: #d0d0d0;
  flex-shrink: 0;
}
.hero-preview .HL.dim {
  background: #aaa;
}
.hero-preview .HL.w50 { width: 50px; }
.hero-preview .HL.w60 { width: 60px; }
.hero-preview .HL.w70 { width: 70px; }
.hero-preview .HL.w80 { width: 80px; }
.hero-preview .HL.w90 { width: 90px; }
.hero-preview .HL.w100 { width: 100px; }
.hero-preview .HL.w110 { width: 110px; }
.hero-preview .HL.w120 { width: 120px; }
.hero-preview .HL.w130 { width: 130px; }
.hero-preview .HL.w140 { width: 140px; }

.hero-preview .TAG {
  height: 7px;
  border-radius: 10px;
  background: #2a2a2a;
  flex-shrink: 0;
}
.hero-preview .TAG.w24 { width: 24px; }
.hero-preview .TAG.w32 { width: 32px; }
.hero-preview .TAG.w40 { width: 40px; }

.hero-preview .DOT {
  border-radius: 50%;
}

.hero-preview .K,
.hero-preview .B,
.hero-preview .HL,
.hero-preview .TAG {
  align-self: center;
}

/* ── Hero wireframes: inline → classes (hp-st-*) ─ */
.hero-template .hp-st-1 {
  position:absolute;
  inset:0;
  background-image:radial-gradient(circle,#282828 1px,transparent 1px);
  background-size:8px 8px;
  z-index:1;
  opacity:0.5;
}
.hero-template .hp-st-2 {
  position:absolute;
  inset:0;
  background:linear-gradient(to right,rgba(0,0,0,0.9) 0%,rgba(0,0,0,0.45) 55%,rgba(0,0,0,0.1) 100%);
  z-index:2;
}
.hero-template .hp-st-3 {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:14px 16px;
  gap:5px;
  z-index:3;
}
.hero-template .hp-st-4 {
  margin-top:3px;
}
.hero-template .hp-st-5 {
  margin-top:8px;
}
.hero-template .hp-st-6 {
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:14px 12px;
  gap:6px;
}
.hero-template .hp-st-7 {
  margin-bottom:1px;
}
.hero-template .hp-st-8 {
  margin-top:2px;
}
.hero-template .hp-st-9 {
  display:flex;
  gap:6px;
  margin-top:6px;
}
.hero-template .hp-st-10 {
  width:80px;
  background:#1a1a1a;
  display:flex;
  align-items:center;
  justify-content:center;
  border-left:1px solid #222;
}
.hero-template .hp-st-11 {
  width:58px;
  height:78px;
  background:#222;
  border-radius:4px;
  border:1px solid #2a2a2a;
}
.hero-template .hp-st-12 {
  height:16px;
  background:#222;
  border-bottom:1px solid #2a2a2a;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
}
.hero-template .hp-st-13 {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#d8d8d8;
}
.hero-template .hp-st-14 {
  width:6px;
  height:6px;
  border:1px solid #555;
  border-radius:1px;
}
.hero-template .hp-st-15 {
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:0 16px;
}
.hero-template .hp-st-16 {
  display:flex;
  gap:8px;
  margin-top:4px;
}
.hero-template .hp-st-17 {
  display:flex;
  align-items:center;
  gap:5px;
  margin-bottom:8px;
}
.hero-template .hp-st-18 {
  height:1px;
  flex:1;
  background:#222;
}
.hero-template .hp-st-19 {
  height:1px;
  flex:1;
  background:#222;
}
.hero-template .hp-st-20 {
  display:flex;
  gap:8px;
  flex:1;
}
.hero-template .hp-st-21 {
  flex:1;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.hero-template .hp-st-22 {
  height:36px;
  background:#1e1e1e;
  border-radius:3px;
  border:1px solid #252525;
}
.hero-template .hp-st-23 {
  width:55px;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.hero-template .hp-st-24 {
  height:52px;
  background:#1e1e1e;
  border-radius:3px;
  border:1px solid #252525;
}
.hero-template .hp-st-25 {
  display:flex;
  justify-content:center;
  margin-top:8px;
}
.hero-template .hp-st-26 {
  display:flex;
  gap:8px;
  margin-top:4px;
}
.hero-template .hp-st-27 {
  display:flex;
  gap:12px;
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid #1e1e1e;
  width:100%;
}
.hero-template .hp-st-28 {
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
}
.hero-template .hp-st-29 {
  height:10px;
  width:28px;
  border-radius:2px;
  background:#d8d8d8;
}
.hero-template .hp-st-30 {
  height:3px;
  width:32px;
  border-radius:1px;
  background:#2a2a2a;
  margin-top:2px;
}
.hero-template .hp-st-31 {
  width:1px;
  background:#1e1e1e;
}
.hero-template .hp-st-32 {
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
}
.hero-template .hp-st-33 {
  height:10px;
  width:24px;
  border-radius:2px;
  background:#d8d8d8;
}
.hero-template .hp-st-34 {
  height:3px;
  width:28px;
  border-radius:1px;
  background:#2a2a2a;
  margin-top:2px;
}
.hero-template .hp-st-35 {
  width:1px;
  background:#1e1e1e;
}
.hero-template .hp-st-36 {
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
}
.hero-template .hp-st-37 {
  height:10px;
  width:26px;
  border-radius:2px;
  background:#d8d8d8;
}
.hero-template .hp-st-38 {
  height:3px;
  width:30px;
  border-radius:1px;
  background:#2a2a2a;
  margin-top:2px;
}
.hero-template .hp-st-39 {
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:80px;
  height:80px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,0.04) 0%,transparent 70%);
  z-index:1;
}
.hero-template .hp-st-40 {
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
}
.hero-template .hp-st-41 {
  width:48px;
  height:60px;
  background:#1e1e1e;
  border-radius:5px;
  border:1px solid #2e2e2e;
  box-shadow:0 4px 20px rgba(0,0,0,0.6);
  margin-bottom:4px;
}
.hero-template .hp-st-42 {
  margin-top:4px;
}
.hero-template .hp-st-43 {
  width:100%;
  background:#161616;
  border:1px solid #222;
  border-radius:5px;
  padding:8px 10px;
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom:6px;
}
.hero-template .hp-st-44 {
  display:flex;
  gap:3px;
  margin-bottom:3px;
}
.hero-template .hp-st-45 {
  width:5px;
  height:5px;
  border-radius:50%;
  background:#2a2a2a;
}
.hero-template .hp-st-46 {
  width:5px;
  height:5px;
  border-radius:50%;
  background:#2a2a2a;
}
.hero-template .hp-st-47 {
  width:5px;
  height:5px;
  border-radius:50%;
  background:#2a2a2a;
}
.hero-template .hp-st-48 {
  display:flex;
  gap:5px;
  align-items:center;
}
.hero-template .hp-st-49 {
  background:#555;
}
.hero-template .hp-st-50 {
  background:#333;
}
.hero-template .hp-st-51 {
  width:1.5px;
  height:8px;
  background:#aaa;
  border-radius:1px;
}
.hero-template .hp-st-52 {
  background:#2a2a2a;
}
.hero-template .hp-st-53 {
  background:#2a2a2a;
}
.hero-template .hp-st-54 {
  margin-top:4px;
}
.hero-template .hp-st-55 {
  background:#1c1c1c;
  border:1px solid #252525;
  border-radius:5px;
  padding:8px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:3px;
  grid-row:span 2;
}
.hero-template .hp-st-56 {
  margin-top:3px;
}
.hero-template .hp-st-57 {
  background:#1c1c1c;
  border:1px solid #252525;
  border-radius:5px;
  padding:6px;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.hero-template .hp-st-58 {
  width:8px;
  height:8px;
  border-radius:50%;
  background:#d8d8d8;
}
.hero-template .hp-st-59 {
  background:#1c1c1c;
  border:1px solid #252525;
  border-radius:5px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-template .hp-st-60 {
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  height:50px;
  overflow:hidden;
}
.hero-template .hp-st-61 {
  position:absolute;
  bottom:0;
  left:50%;
  transform:translateX(-50%) perspective(100px) rotateX(60deg);
  width:220px;
  height:100px;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  grid-template-rows:repeat(3,1fr);
  border:1px solid #1a1a1a;
}
.hero-template .hp-st-62 {
  border:1px solid #1a1a1a;
}
.hero-template .hp-st-63 {
  border:1px solid #1a1a1a;
}
.hero-template .hp-st-64 {
  border:1px solid #1a1a1a;
}
.hero-template .hp-st-65 {
  border:1px solid #1a1a1a;
}
.hero-template .hp-st-66 {
  border:1px solid #1a1a1a;
}
.hero-template .hp-st-67 {
  border:1px solid #1a1a1a;
}
.hero-template .hp-st-68 {
  border:1px solid #1a1a1a;
}
.hero-template .hp-st-69 {
  border:1px solid #1a1a1a;
}
.hero-template .hp-st-70 {
  border:1px solid #1a1a1a;
}
.hero-template .hp-st-71 {
  border:1px solid #1a1a1a;
}
.hero-template .hp-st-72 {
  border:1px solid #1a1a1a;
}
.hero-template .hp-st-73 {
  border:1px solid #1a1a1a;
}
.hero-template .hp-st-74 {
  border:1px solid #1a1a1a;
}
.hero-template .hp-st-75 {
  border:1px solid #1a1a1a;
}
.hero-template .hp-st-76 {
  border:1px solid #1a1a1a;
}
.hero-template .hp-st-77 {
  background:#1a1a1a;
  border:1px solid #2e2e2e;
  border-radius:6px;
  padding:6px 10px;
  transform:perspective(300px) rotateX(3deg) rotateY(-4deg);
  box-shadow:4px 6px 20px rgba(0,0,0,0.7);
  z-index:2;
  margin-bottom:4px;
}
.hero-template .hp-st-78 {
  margin-bottom:3px;
}
.hero-template .hp-st-79 {
  z-index:2;
}
.hero-template .hp-st-80 {
  position:absolute;
  top:-20px;
  left:-20px;
  width:100px;
  height:100px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(80,80,80,0.2) 0%,transparent 70%);
}
.hero-template .hp-st-81 {
  position:absolute;
  bottom:-20px;
  right:-10px;
  width:80px;
  height:80px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(100,100,100,0.12) 0%,transparent 70%);
}
.hero-template .hp-st-82 {
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:170px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:10px;
  padding:14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
}
.hero-template .hp-st-83 {
  display:flex;
  gap:7px;
  margin-top:4px;
}
.hero-template .hp-st-84 {
  width:44px;
  height:11px;
  border-radius:10px;
  background:rgba(255,255,255,0.18);
  border:1px solid rgba(255,255,255,0.2);
}
.hero-template .hp-st-85 {
  width:44px;
  height:11px;
  border-radius:10px;
  background:transparent;
  border:1px solid rgba(255,255,255,0.12);
}
.hero-template .hp-st-86 {
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:14px 8px 14px 14px;
  gap:5px;
  z-index:2;
}
.hero-template .hp-st-87 {
  margin-bottom:2px;
}
.hero-template .hp-st-88 {
  margin-top:2px;
}
.hero-template .hp-st-89 {
  margin-top:7px;
}
.hero-template .hp-st-90 {
  position:absolute;
  right:-12px;
  bottom:-8px;
  width:100px;
  height:106px;
  background:#1d1d1d;
  border-radius:8px 8px 0 0;
  border:1px solid #2a2a2a;
  transform:rotate(5deg);
  z-index:1;
}
.hero-template .hp-st-91 {
  position:absolute;
  right:4px;
  bottom:-4px;
  width:82px;
  height:98px;
  background:#222;
  border-radius:8px 8px 0 0;
  border:1px solid #2e2e2e;
  z-index:2;
}
.hero-template .hp-st-92 {
  width:88px;
  background:#1c1c1c;
  border-right:1px solid #232323;
  flex-shrink:0;
  position:relative;
  overflow:hidden;
}
.hero-template .hp-st-93 {
  position:absolute;
  inset:0;
  background:linear-gradient(to right,transparent 65%,rgba(15,15,15,0.95) 100%);
  z-index:1;
}
.hero-template .hp-st-94 {
  position:absolute;
  inset:0;
  background-image:radial-gradient(circle,#252525 1px,transparent 1px);
  background-size:7px 7px;
  opacity:0.6;
}
.hero-template .hp-st-95 {
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:12px 14px;
  gap:5px;
}
.hero-template .hp-st-96 {
  margin-bottom:2px;
}
.hero-template .hp-st-97 {
  margin-top:2px;
}
.hero-template .hp-st-98 {
  margin-top:6px;
}
.hero-template .hp-st-99 {
  position:relative;
  width:60px;
  height:88px;
  flex-shrink:0;
}
.hero-template .hp-st-100 {
  position:absolute;
  left:8px;
  top:4px;
  width:52px;
  height:80px;
  background:#1a1a1a;
  border:1px solid #232323;
  border-radius:5px;
  transform:rotate(7deg);
}
.hero-template .hp-st-101 {
  position:absolute;
  left:4px;
  top:2px;
  width:52px;
  height:80px;
  background:#1e1e1e;
  border:1px solid #2a2a2a;
  border-radius:5px;
  transform:rotate(2deg);
}
.hero-template .hp-st-102 {
  position:absolute;
  left:0;
  top:0;
  width:52px;
  height:80px;
  background:#252525;
  border:1px solid #2e2e2e;
  border-radius:5px;
}
.hero-template .hp-st-103 {
  display:flex;
  flex-direction:column;
  gap:5px;
}
.hero-template .hp-st-104 {
  margin-top:2px;
}
.hero-template .hp-st-105 {
  margin-top:6px;
}
.hero-template .hp-st-106 {
  position:absolute;
  top:8px;
  right:14px;
  width:50px;
  height:62px;
  background:#1e1e1e;
  border:1px solid #2a2a2a;
  border-radius:3px;
  transform:rotate(7deg);
  box-shadow:0 3px 12px rgba(0,0,0,0.5);
}
.hero-template .hp-st-107 {
  position:absolute;
  top:18px;
  right:46px;
  width:44px;
  height:56px;
  background:#1a1a1a;
  border:1px solid #252525;
  border-radius:3px;
  transform:rotate(-5deg);
  box-shadow:0 3px 12px rgba(0,0,0,0.5);
}
.hero-template .hp-st-108 {
  position:absolute;
  bottom:6px;
  right:22px;
  width:40px;
  height:50px;
  background:#222;
  border:1px solid #2e2e2e;
  border-radius:3px;
  transform:rotate(3deg);
  box-shadow:0 3px 12px rgba(0,0,0,0.5);
}
.hero-template .hp-st-109 {
  position:absolute;
  top:0;
  left:0;
  bottom:0;
  width:106px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:14px;
  gap:5px;
}
.hero-template .hp-st-110 {
  margin-top:2px;
}
.hero-template .hp-st-111 {
  margin-top:7px;
}
.hero-template .hp-st-112 {
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:14px 16px 8px;
  gap:5px;
}
.hero-template .hp-st-113 {
  margin-top:4px;
  display:flex;
  gap:7px;
}
.hero-template .hp-st-114 {
  display:flex;
  gap:4px;
  padding:0 10px;
  margin-top:auto;
  padding-bottom:8px;
}
.hero-template .hp-st-115 {
  flex:1;
  height:28px;
  background:#1e1e1e;
  border-radius:3px;
  border:1px solid #252525;
}
.hero-template .hp-st-116 {
  flex:1;
  height:28px;
  background:#1c1c1c;
  border-radius:3px;
  border:1px solid #252525;
}
.hero-template .hp-st-117 {
  flex:1;
  height:28px;
  background:#202020;
  border-radius:3px;
  border:1px solid #252525;
}
.hero-template .hp-st-118 {
  flex:1;
  height:28px;
  background:#1a1a1a;
  border-radius:3px;
  border:1px solid #252525;
}
.hero-template .hp-st-119 {
  margin-top:2px;
}
.hero-template .hp-st-120 {
  width:calc(100% + 2px);
  margin-top:6px;
  height:36px;
  background:#1c1c1c;
  border-radius:6px 6px 0 0;
  border:1px solid #252525;
  border-bottom:none;
  position:relative;
  overflow:hidden;
}
.hero-template .hp-st-121 {
  position:absolute;
  inset:0;
  background-image:radial-gradient(circle,#272727 1px,transparent 1px);
  background-size:7px 7px;
  opacity:0.6;
}
.hero-template .hp-st-122 {
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:14px 8px 14px 14px;
  gap:5px;
}
.hero-template .hp-st-123 {
  margin-bottom:2px;
}
.hero-template .hp-st-124 {
  margin-top:2px;
}
.hero-template .hp-st-125 {
  margin-top:7px;
  display:flex;
  gap:6px;
}
.hero-template .hp-st-126 {
  width:72px;
  flex-shrink:0;
  position:relative;
  overflow:hidden;
}
.hero-template .hp-st-127 {
  position:absolute;
  top:-8px;
  left:-8px;
  right:-4px;
  bottom:-8px;
  background:#1c1c1c;
  border-radius:12px 0 0 12px;
  border:1px solid #2a2a2a;
}
.hero-template .hp-st-128 {
  position:absolute;
  inset:0;
  background:linear-gradient(to right,rgba(15,15,15,0.7) 0%,transparent 40%);
  z-index:1;
}
.hero-template .hp-st-129 {
  position:relative;
  width:100%;
  height:52px;
  margin-bottom:6px;
}
.hero-template .hp-st-130 {
  width:100%;
  height:100%;
  background:#1c1c1c;
  border-radius:6px;
  border:1px solid #252525;
}
.hero-template .hp-st-131 {
  position:absolute;
  top:-7px;
  right:-2px;
  background:#222;
  border:1px solid #333;
  border-radius:20px;
  padding:3px 7px;
  display:flex;
  align-items:center;
  gap:4px;
}
.hero-template .hp-st-132 {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#d8d8d8;
}
.hero-template .hp-st-133 {
  position:absolute;
  bottom:-7px;
  left:6px;
  background:#1e1e1e;
  border:1px solid #2a2a2a;
  border-radius:5px;
  padding:4px 8px;
  display:flex;
  align-items:center;
  gap:5px;
}
.hero-template .hp-st-134 {
  margin-top:4px;
}
.hero-template .hp-st-135 {
  width:90px;
  flex-shrink:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
}
.hero-template .hp-st-136 {
  margin-top:2px;
}
.hero-template .hp-st-137 {
  margin-top:6px;
}
.hero-template .hp-st-138 {
  flex:1;
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-template-rows:auto auto;
  gap:3px;
  align-content:start;
}
.hero-template .hp-st-139 {
  height:58px;
  background:#1e1e1e;
  border:1px solid #252525;
  border-radius:3px;
  grid-row:span 2;
}
.hero-template .hp-st-140 {
  height:28px;
  background:#1c1c1c;
  border:1px solid #252525;
  border-radius:3px;
}
.hero-template .hp-st-141 {
  height:28px;
  background:#202020;
  border:1px solid #252525;
  border-radius:3px;
}
.hero-template .hp-st-142 {
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:10px 16px 6px;
  gap:4px;
}
.hero-template .hp-st-143 {
  flex:1;
  display:flex;
  margin:0 10px 8px;
  border-radius:5px;
  overflow:hidden;
  border:1px solid #252525;
  position:relative;
}
.hero-template .hp-st-144 {
  flex:1;
  background:#1a1a1a;
}
.hero-template .hp-st-145 {
  position:absolute;
  left:50%;
  top:0;
  bottom:0;
  width:1px;
  background:#444;
  z-index:2;
}
.hero-template .hp-st-146 {
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:10px;
  height:10px;
  border-radius:50%;
  background:#555;
  border:1.5px solid #777;
  z-index:3;
}
.hero-template .hp-st-147 {
  flex:1;
  background:#252525;
}
.hero-template .hp-st-148 {
  display:flex;
  justify-content:center;
  padding-bottom:8px;
}
/* ── end Hero wireframes hp-st ─ */

.palette-card .selector-card__preview {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.palette-swatches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.palette-swatch {
  min-height: 58px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

.palette-swatch span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.palette-swatch input[type="color"] {
  appearance: none;
  width: 100%;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.palette-swatch input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 2px;
  border-radius: 6px;
}

.palette-swatch input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}

.palette-note {
  font-size: 11px;
  color: var(--text-soft);
  line-height: 1.45;
}

.element-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.toolbar-btn {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.toolbar-btn.active,
.toolbar-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
}

.toolbar-count {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.element-card .selector-card__preview {
  padding: 12px;
}

.element-card[data-hidden="true"] {
  display: none;
}

.prompt-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 8px;
  scrollbar-width: auto;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.prompt-toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.prompt-layout::-webkit-scrollbar {
  width: 5px;
}

.prompt-layout::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.prompt-panel {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  padding: 18px;
}

.prompt-panel h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 12px;
}

.prompt-output {
  overflow: visible;
  white-space: pre-wrap;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  margin: 0;
  padding: 14px;
  box-sizing: border-box;
}

.prompt-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}

.action-btn {
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.action-btn:hover {
  transform: scale(1.03);
}

.action-btn.primary {
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.36);
}

.action-btn.secondary {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
}

.action-btn.ghost {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.16);
}

.prompt-hint {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.42);
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  width: max-content;
  min-height: clamp(48px, 5vw, 56px);
  margin-top: clamp(10px, 2vh, 18px);
  margin-inline: auto;
}

.nav__group {
  --nav-gap: 14px;
  --nav-btn-size: clamp(52px, 11vw, 64px);
  position: relative;
  width: calc((var(--nav-btn-size) * 2) + var(--nav-gap));
  display: block;
  min-height: clamp(46px, 5vw, 56px);
}

.nav-btn {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--nav-btn-size);
  height: clamp(46px, 5vw, 56px);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  --nav-x: 0px;
  --nav-y: 0px;
  --nav-scale: 1;
  transform: translate3d(calc(-50% + var(--nav-x)), var(--nav-y), 0) scale(var(--nav-scale));
  transition:
    transform 0.46s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.34s cubic-bezier(0.25, 0.1, 0.25, 1),
    background 0.38s cubic-bezier(0.25, 0.1, 0.25, 1),
    border-color 0.38s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.38s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nav-btn.back {
  --nav-x: calc((var(--nav-btn-size) + var(--nav-gap)) * -0.5);
}

.nav-btn.fwd {
  --nav-x: calc((var(--nav-btn-size) + var(--nav-gap)) * 0.5);
}

.nav__group.nav-layout-only-next .nav-btn.fwd,
.nav__group.nav-layout-only-back .nav-btn.back {
  --nav-x: 0px;
}

.nav-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
  --nav-scale: 0.92;
}

.nav-btn__icon {
  display: block;
  width: 22px;
  height: 22px;
}

.nav-btn.back {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.nav-btn.back:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.22);
  --nav-y: -1px;
  --nav-scale: 1.035;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

/* Forward: im Normalzustand wie Back gedämpft — heller nur bei Hover / Klick */
.nav-btn.fwd {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.nav-btn.fwd:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.34);
  --nav-y: -1px;
  --nav-scale: 1.035;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.nav-btn.fwd:active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-btn:active {
  --nav-y: 0px;
  --nav-scale: 0.97;
  transition-duration: 0.12s;
}

.nav-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  margin-top: 0;
  border-radius: 0 0 calc(var(--radius-xl) - 1px) calc(var(--radius-xl) - 1px);
  overflow: hidden;
  z-index: 3;
  background: #000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.progress-track.progress-track--visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .progress-track {
    transition-duration: 0.01ms;
  }

  .progress-fill {
    transition: none;
  }
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  /* Aus Schwarz kommend, nach rechts klarer sichtbar — weiterhin weich */
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(255, 255, 255, 0.12) 45%,
    rgba(255, 255, 255, 0.28) 100%
  );
  box-shadow: none;
  transition: width 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.status-note {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.42);
  padding: 10px 0 0;
}

.step-loading {
  flex: 1 1 auto;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

@media (max-width: 1024px) {
  .cards-grid,
  .cards-grid.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .cards-grid,
  .cards-grid.three-up,
  .cards-grid.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 400px;
  }

  .step-bg {
    font-size: 112px;
  }

  .step-counter {
    gap: 12px;
  }

  .colors-template .colors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 388px;
  }
}

@media (max-width: 520px) {
  .app {
    padding: 18px 12px;
  }

  .page {
    padding: 12px;
  }

  .cards-grid,
  .cards-grid.three-up,
  .cards-grid.two-up {
    grid-template-columns: 1fr;
    max-height: 380px;
  }

  .colors-template .colors-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 320px;
  }

  .colors-template .colors-hint {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .step-bg {
    font-size: 88px;
  }

  .shell {
    border-radius: 14px;
  }

  .nav {
    width: 100%;
  }

  .nav-btn {
    flex: 0 0 auto;
  }
}
