/* ============================================================
   Design Studio (Phase IV, 2026-05-25)
   Atakan: "futuristik + minimalist + estetik, monoton reklam YOK"
   ============================================================ */

#page-design-studio {
  position: relative;
  padding: 24px 28px;
  isolation: isolate;
  overflow: hidden;
}
.ds-bg-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(47, 92, 168,0.06), transparent 60%),
    radial-gradient(ellipse 40% 30% at 90% 100%, rgba(125, 200, 176, 0.05), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.ds-toolbar {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0;
  padding: 10px 14px;
  background: rgba(20, 12, 11, 0.45);
  border: 1px solid rgba(47, 92, 168, 0.10);
  border-radius: 12px;
  backdrop-filter: blur(6px);
}
.ds-status { display: flex; align-items: center; gap: 8px; font-size: 11px; color: rgba(255,255,255,0.65); }
.ds-status-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.30); }
.ds-status-dot.ds-status-ok    { background: #7DC8B0; box-shadow: 0 0 8px rgba(125,200,176,0.6); }
.ds-status-dot.ds-status-error { background: #ff6b6b; box-shadow: 0 0 8px rgba(255,107,107,0.6); }
.ds-status-dot.ds-status-idle  { background: rgba(255,255,255,0.30); }
.ds-spacer { flex: 1; }
.ds-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(47, 92, 168,0.20);
  border-radius: 999px;
  color: rgba(255,255,255,0.78);
  font-size: 11px; font-weight: 600; font-family: inherit;
  cursor: pointer;
  transition: background 160ms, border-color 160ms, color 160ms, transform 160ms;
}
.ds-btn:hover { background: rgba(47, 92, 168,0.10); border-color: rgba(47, 92, 168,0.40); color: #fff; transform: translateY(-1px); }
.ds-btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-hover)); color: #fff; border-color: var(--accent); }
.ds-btn-primary:hover { background: linear-gradient(135deg, var(--accent-hover), var(--accent)); }
.ds-btn:disabled { opacity: 0.6; cursor: wait; }

.ds-rows { display: flex; flex-direction: column; gap: 24px; }
.ds-row {
  background: rgba(14, 9, 10, 0.55);
  border: 1px solid rgba(47, 92, 168, 0.08);
  border-radius: 16px;
  padding: 14px 0 18px;
}
.ds-row-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px 12px;
  border-bottom: 1px solid rgba(47, 92, 168, 0.06);
  margin-bottom: 14px;
}
.ds-row-label {
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: rgba(255, 255, 255, 0.85);
}
.ds-row-count {
  font-size: 10px; font-weight: 700;
  color: var(--accent);
  background: rgba(47, 92, 168, 0.10);
  padding: 3px 9px; border-radius: 999px;
}
.ds-row-track {
  display: flex; gap: 12px;
  padding: 4px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.ds-row-track::-webkit-scrollbar { height: 6px; }
.ds-row-track::-webkit-scrollbar-thumb { background: rgba(47, 92, 168,0.20); border-radius: 999px; }
.ds-row-empty {
  padding: 32px 18px;
  color: rgba(255,255,255,0.40); font-size: 12px; font-style: italic;
  text-align: center; width: 100%;
}

.ds-skel-card, .ds-card {
  flex: 0 0 200px; width: 200px; aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
}
.ds-skel-card {
  background: linear-gradient(110deg, rgba(255,255,255,0.03), rgba(47, 92, 168,0.05), rgba(255,255,255,0.03));
  background-size: 200% 100%;
  animation: ds-skel-shimmer 1.6s ease-in-out infinite;
}
@keyframes ds-skel-shimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -200% 0; }
}
.ds-row-skeleton { display: flex; gap: 12px; padding: 4px 18px; }

.ds-card {
  position: relative;
  cursor: pointer;
  background: rgba(20, 12, 11, 0.8);
  border: 1px solid rgba(47, 92, 168, 0.10);
  transition: transform 240ms cubic-bezier(.18,.85,.3,1), border-color 240ms, box-shadow 240ms;
  opacity: 0; transform: translateY(8px);
  animation: ds-card-in 420ms cubic-bezier(.18,.85,.3,1) forwards;
}
@keyframes ds-card-in { to { opacity: 1; transform: translateY(0); } }
.ds-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(47, 92, 168, 0.36);
  box-shadow: 0 12px 32px rgba(47, 92, 168, 0.16);
}
.ds-card-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  background: rgba(20, 12, 11, 0.6);
  transition: opacity 240ms;
}
.ds-card-img.failed {
  background: linear-gradient(135deg, rgba(47, 92, 168,0.06), rgba(0,0,0,0.4));
  opacity: 0.3;
}
.ds-card-meta {
  position: absolute; bottom: 8px; left: 8px; right: 8px;
  display: flex; gap: 6px;
  pointer-events: none;
}
.ds-card-kind {
  font-size: 9px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: rgba(10, 6, 6, 0.78);
  color: rgba(255, 255, 255, 0.85);
  padding: 3px 8px; border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* Modal */
.ds-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 6, 6, 0.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
  animation: ds-modal-fade 220ms ease;
  padding: 20px;
}
@keyframes ds-modal-fade { from { opacity: 0; } to { opacity: 1; } }
.ds-modal {
  background: linear-gradient(180deg, #1A0E0C 0%, #14090A 100%);
  border: 1px solid rgba(47, 92, 168, 0.22);
  border-radius: 16px;
  width: min(900px, 92vw);
  max-height: 88vh;
  display: grid; grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
  animation: ds-modal-rise 320ms cubic-bezier(.18,.85,.3,1);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
@keyframes ds-modal-rise { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 768px) {
  .ds-modal { grid-template-columns: 1fr; max-height: 90vh; }
}
.ds-modal-close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(10, 6, 6, 0.65); border: 1px solid rgba(255,255,255,0.10);
  color: #fff; font-size: 24px; line-height: 1;
  width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: background 140ms;
}
.ds-modal-close:hover { background: rgba(47, 92, 168, 0.30); }
.ds-modal-image-wrap {
  background: #000;
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
}
.ds-modal-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ds-modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
}
.ds-modal-tag {
  font-size: 9px; font-weight: 800; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(47, 92, 168, 0.10);
  padding: 3px 9px; border-radius: 999px;
  align-self: flex-start;
}
.ds-modal-title { font-size: 18px; font-weight: 700; color: #fff; margin: 0; }
.ds-modal-meta-row {
  display: flex; gap: 6px;
  font-size: 10.5px; color: rgba(255, 255, 255, 0.45);
}
/* --- 2026-06-01 — per-image action bar (regenerate / download / variations) --- */
.ds-modal-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 2px;
}
.ds-modal-action {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 8px 13px;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, transform 0.12s;
}
.ds-modal-action:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-1px); }
.ds-modal-action--primary {
  color: #fff;
  background: rgba(47, 92, 168, 0.16);
  border-color: rgba(47, 92, 168, 0.40);
}
.ds-modal-action--primary:hover { background: rgba(47, 92, 168, 0.26); }
.ds-modal-action:disabled { opacity: 0.55; cursor: wait; transform: none; }
.ds-modal-action svg { flex-shrink: 0; }
.ds-modal-variations {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  margin-top: 2px;
}
.ds-modal-variations-label {
  width: 100%;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.40);
  margin-bottom: 2px;
}
.ds-modal-vchip {
  font-size: 11.5px; font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(47, 92, 168, 0.06);
  border: 1px solid rgba(47, 92, 168, 0.16);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}
.ds-modal-vchip:hover { background: rgba(47, 92, 168, 0.16); border-color: rgba(47, 92, 168, 0.34); color: #fff; }
.ds-modal-vchip:disabled { opacity: 0.5; cursor: wait; }
.ds-spin {
  display: inline-block; width: 12px; height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ds-spin 0.7s linear infinite;
}
@keyframes ds-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ds-spin { animation-duration: 1.6s; }
  .ds-modal-action:hover { transform: none; }
}

.ds-modal-details {
  background: rgba(47, 92, 168, 0.04);
  border: 1px solid rgba(47, 92, 168, 0.10);
  border-radius: 10px;
  padding: 10px 12px;
}
.ds-modal-details summary {
  cursor: pointer;
  font-size: 11px; font-weight: 700;
  color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.06em;
  list-style: none;
}
.ds-modal-details summary::-webkit-details-marker { display: none; }
.ds-modal-details[open] summary { margin-bottom: 8px; }
.ds-modal-strategy {
  font-size: 12.5px; color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}
.ds-modal-strategy strong { color: #fff; }
.ds-modal-prompt {
  font-family: 'SF Mono', 'Monaco', monospace;
  font-size: 11px; color: rgba(255, 255, 255, 0.55);
  background: rgba(0,0,0,0.45);
  padding: 10px;
  border-radius: 6px;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.ds-modal-product {
  display: inline-block;
  color: var(--accent);
  font-size: 11px;
  cursor: pointer; text-decoration: underline;
}

@media (max-width: 768px) {
  #page-design-studio { padding: 14px 16px; }
  .ds-toolbar { padding: 8px 10px; gap: 6px; flex-wrap: wrap; }
  .ds-btn { padding: 6px 10px; font-size: 10px; }
  .ds-row-header { padding: 0 14px 10px; }
  .ds-row-track { padding: 4px 14px; gap: 8px; }
  .ds-skel-card, .ds-card { flex: 0 0 150px; width: 150px; }
}

/* ============================================================
   Design Your Clothes (Phase IV.B, 2026-05-25)
   ============================================================ */
#page-design-your-clothes { padding: 24px 28px; }
.dyc-grid { display: grid; grid-template-columns: 320px 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 1024px) { .dyc-grid { grid-template-columns: 1fr; } }
.dyc-col-insights, .dyc-col-lab { display: flex; flex-direction: column; gap: 14px; }
.dyc-card {
  background: rgba(20, 12, 11, 0.55);
  border: 1px solid rgba(47, 92, 168, 0.10);
  border-radius: 14px;
  padding: 16px;
}
.dyc-card-header {
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(47, 92, 168, 0.10);
}
.dyc-card-body { display: flex; flex-direction: column; gap: 10px; }
.dyc-input {
  width: 100%;
  background: rgba(0,0,0,0.32); border: 1px solid rgba(47, 92, 168,0.18); border-radius: 8px;
  padding: 8px 12px; color: #fff; font-family: inherit; font-size: 12px; outline: none;
  resize: vertical;
}
.dyc-input:focus { border-color: var(--accent); }
.dyc-row-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.dyc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff; border: none; border-radius: 999px;
  font-family: inherit; font-size: 11px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(47, 92, 168,0.20);
  transition: transform 160ms, box-shadow 160ms;
}
.dyc-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(47, 92, 168,0.36); }
.dyc-btn:disabled { opacity: 0.7; cursor: wait; }
.dyc-loading, .dyc-empty { color: rgba(255,255,255,0.42); font-size: 12px; font-style: italic; padding: 14px 0; text-align: center; }
.dyc-stat { display: flex; align-items: baseline; gap: 8px; }
.dyc-stat-num { font-size: 28px; font-weight: 800; color: #fff; }
.dyc-stat-label { font-size: 11px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.04em; }
.dyc-section { margin-top: 8px; }
.dyc-section-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.55); margin-bottom: 6px; }
.dyc-bars { display: flex; flex-direction: column; gap: 4px; }
.dyc-bar { display: grid; grid-template-columns: 80px 1fr 30px; align-items: center; gap: 6px; font-size: 11px; }
.dyc-bar-label { color: rgba(255,255,255,0.65); text-transform: capitalize; }
.dyc-bar-fill { height: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-hover)); border-radius: 999px; min-width: 4px; }
.dyc-bar-count { color: rgba(255,255,255,0.5); text-align: right; }
.dyc-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.dyc-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600;
  background: rgba(47, 92, 168,0.10); color: var(--accent);
  padding: 3px 8px; border-radius: 999px;
}
.dyc-pill-n { background: rgba(0,0,0,0.4); color: rgba(255,255,255,0.6); padding: 0 4px; border-radius: 4px; font-size: 9px; }
.dyc-swatches { display: flex; gap: 6px; }
.dyc-swatch { width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.10); cursor: help; }
.dyc-rate { font-size: 20px; font-weight: 800; color: #fff; }
.dyc-demand-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dyc-demand-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; background: rgba(47, 92, 168,0.04); border-radius: 8px; }
.dyc-demand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 4px; }
.dyc-demand-title { font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.dyc-demand-body { font-size: 11px; color: rgba(255,255,255,0.55); line-height: 1.4; }
.dyc-inspire-output { margin-top: 8px; }
.dyc-inspire-md { font-size: 12.5px; color: rgba(255,255,255,0.85); line-height: 1.55; }
.dyc-inspire-md h3 { font-size: 13px; color: var(--accent); margin: 8px 0 4px; }
.dyc-inspire-md ul { padding-left: 18px; margin: 4px 0; }
.dyc-inspire-md p { margin: 4px 0; }
.dyc-inspire-md strong { color: #fff; }
.dyc-inspire-sources { font-size: 10px; margin-top: 8px; color: rgba(255,255,255,0.4); }
.dyc-inspire-sources a { color: var(--accent); text-decoration: none; margin-right: 8px; }
.dyc-sketches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.dyc-sketch-card { aspect-ratio: 1; border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; border: 1px solid rgba(47, 92, 168,0.10); transition: transform 160ms, border-color 160ms; }
.dyc-sketch-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.dyc-sketch-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Linked product row in modal (Atakan: clickable + name + URL) */
.ds-modal-product-row {
  display: flex; gap: 12px; align-items: center;
  margin-top: 8px;
}
.ds-modal-product-thumb {
  width: 56px; height: 56px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid rgba(47, 92, 168,0.16);
  background: rgba(255,255,255,0.04);
}
.ds-modal-product-body { flex: 1; min-width: 0; }
.ds-modal-product-name {
  font-size: 13px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ds-modal-product-cat {
  font-size: 10px; color: rgba(255,255,255,0.45);
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-top: 2px;
}
.ds-modal-product-link {
  display: inline-block; margin-top: 6px;
  font-size: 11px; font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 92, 168,0.40);
  transition: color 140ms, border-color 140ms;
}
.ds-modal-product-link:hover { color: var(--accent-hover); border-color: var(--accent-hover); }
.ds-modal-product-nolink {
  display: inline-block; margin-top: 6px;
  font-size: 10px; color: rgba(255,255,255,0.35);
  font-style: italic;
}

/* DYC chat (Phase IV.B item 1 — vault-style designer) */
.dyc-card-chat {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(47, 92, 168,0.06), transparent 70%),
    linear-gradient(180deg, rgba(20,12,11,0.6), rgba(14,9,10,0.85));
  border-color: rgba(47, 92, 168,0.18);
}
.dyc-chat-pulse {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px rgba(47, 92, 168,0.6);
  margin-right: 6px; vertical-align: middle;
  animation: dyc-chat-pulse 1.6s ease-in-out infinite;
}
@keyframes dyc-chat-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.7); } }
.dyc-chat-stream {
  max-height: 280px; min-height: 120px;
  overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
  padding: 4px 0 8px;
}
.dyc-chat-bubble {
  max-width: 88%; padding: 10px 12px; border-radius: 12px;
  font-size: 12.5px; line-height: 1.45; word-wrap: break-word;
  animation: dyc-chat-bubble-in 240ms ease;
}
@keyframes dyc-chat-bubble-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.dyc-chat-bubble.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.dyc-chat-bubble.bot { align-self: flex-start; background: rgba(47, 92, 168,0.10); color: rgba(255,255,255,0.92); border: 1px solid rgba(47, 92, 168,0.18); border-bottom-left-radius: 4px; }
.dyc-chat-typing { display: flex; gap: 4px; padding: 14px 12px; }
.dyc-chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: dyc-typing 1.2s infinite; }
.dyc-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.dyc-chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dyc-typing { 0%,80%,100% { opacity: 0.3; } 40% { opacity: 1; } }
.dyc-chat-draw-btn {
  display: inline-block; margin-top: 8px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(63, 111, 187,0.18); border: 1px solid rgba(63, 111, 187,0.40);
  color: var(--accent); font-size: 11px; font-weight: 700; cursor: pointer;
  font-family: inherit;
}
.dyc-chat-draw-btn:hover { background: rgba(63, 111, 187,0.30); }
.dyc-chat-draw-btn:disabled { opacity: 0.7; cursor: wait; }
.dyc-chat-insight {
  margin-top: 6px;
  font-size: 11px; color: rgba(255,255,255,0.55); font-style: italic;
  padding: 6px 8px; border-left: 2px solid rgba(47, 92, 168,0.40);
}
.dyc-chat-input-row {
  display: flex; gap: 6px; align-items: flex-end; margin-top: 8px;
}
.dyc-chat-input { flex: 1; resize: none; }
.dyc-chat-send {
  width: 36px; height: 36px; padding: 0;
  display: flex; align-items: center; justify-content: center;
}

/* Multi-step lab controls (Item 3) */
.dyc-lab-controls {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 0; border-top: 1px solid rgba(47, 92, 168,0.08);
  margin-top: 8px;
}
.dyc-lab-row {
  display: grid; grid-template-columns: 80px 1fr 50px; gap: 8px; align-items: center;
  font-size: 11px;
}
.dyc-lab-label { color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.dyc-lab-select { font-size: 11px; padding: 5px 8px; }
.dyc-lab-slider { width: 100%; accent-color: var(--accent); }
.dyc-lab-slider-val { font-size: 10px; color: var(--accent); text-align: center; font-weight: 700; text-transform: uppercase; }

/* ============================================================
   Design Lab redesign (Task #57) — guided steps, product picker,
   0→100 effect sliders, live recipe preview.
   ============================================================ */
.dyc-lab-step {
  padding: 12px 0;
  border-top: 1px solid rgba(47, 92, 168,0.08);
}
.dyc-lab-step:first-child { border-top: none; padding-top: 4px; }
.dyc-step-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.dyc-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 800; flex-shrink: 0;
}
.dyc-step-title { font-size: 12px; font-weight: 700; color: #fff; }
.dyc-step-hint { font-size: 11px; color: rgba(255,255,255,0.5); line-height: 1.4; margin: 0 0 10px; }

/* Product picker — horizontal scroll of clickable thumbnails */
.dyc-product-picker {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px;
  scrollbar-width: thin;
}
.dyc-product-picker::-webkit-scrollbar { height: 6px; }
.dyc-product-picker::-webkit-scrollbar-thumb { background: rgba(47, 92, 168,0.30); border-radius: 999px; }
.dyc-product-chip {
  flex: 0 0 auto; width: 76px; cursor: pointer;
  border: 2px solid transparent; border-radius: 10px;
  background: rgba(0,0,0,0.25); padding: 4px;
  transition: border-color 140ms, transform 140ms;
  position: relative;
}
.dyc-product-chip:hover { transform: translateY(-2px); border-color: rgba(47, 92, 168,0.35); }
.dyc-product-chip.selected { border-color: var(--accent); background: rgba(47, 92, 168,0.12); }
.dyc-product-chip-img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px;
  background: #fff; display: block;
}
.dyc-product-chip-ph {
  width: 100%; aspect-ratio: 1; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(47, 92, 168,0.08); color: rgba(47, 92, 168,0.5); font-size: 22px;
}
.dyc-product-chip-label {
  font-size: 9px; color: rgba(255,255,255,0.7); margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
}
.dyc-product-chip-check {
  position: absolute; top: 6px; right: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: none; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.dyc-product-chip.selected .dyc-product-chip-check { display: flex; }

/* Mix board — effect sliders (per-source + global) */
.dyc-mix-board { display: flex; flex-direction: column; gap: 8px; }
.dyc-mix-row {
  display: grid; grid-template-columns: 26px 1fr 110px 36px; gap: 8px; align-items: center;
}
.dyc-mix-row.global { grid-template-columns: 26px 1fr 110px 36px; }
.dyc-mix-thumb {
  width: 26px; height: 26px; border-radius: 6px; object-fit: cover;
  background: #fff; flex-shrink: 0;
}
.dyc-mix-icon {
  width: 26px; height: 26px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(47, 92, 168,0.12); color: var(--accent);
}
.dyc-mix-label {
  font-size: 11px; color: rgba(255,255,255,0.8); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dyc-mix-label small { display: block; font-size: 9px; color: rgba(255,255,255,0.4); font-weight: 400; }
.dyc-mix-slider { width: 100%; accent-color: var(--accent); cursor: pointer; }
.dyc-mix-val { font-size: 11px; font-weight: 800; color: var(--accent); text-align: right; }

/* Live recipe preview */
.dyc-recipe {
  margin-top: 10px; padding: 12px 14px;
  border-radius: 10px;
  background: rgba(47, 92, 168,0.06);
  border: 1px dashed rgba(47, 92, 168,0.30);
}
.dyc-recipe-head {
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.dyc-recipe-body { font-size: 12px; color: rgba(255,255,255,0.82); line-height: 1.5; }
.dyc-recipe-body strong { color: #fff; font-weight: 700; }
.dyc-recipe-tag {
  display: inline-block; margin: 2px 4px 2px 0; padding: 2px 8px;
  border-radius: 999px; background: rgba(47, 92, 168,0.14); color: var(--accent);
  font-size: 10px; font-weight: 700;
}
.dyc-btn-lg { padding: 11px 20px; font-size: 12px; }

/* ============================================================
   Faz L Tier 1.c — DS Card hover overlay (product name reveal)
   ============================================================ */
.ds-card { position: relative; overflow: hidden; }
.ds-card-back-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 6, 6, 0.0) 0%, rgba(10, 6, 6, 0.92) 55%, rgba(10, 6, 6, 0.98) 100%);
  opacity: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px 14px 12px;
  transition: opacity 220ms cubic-bezier(.18,.85,.3,1);
  pointer-events: none;
}
.ds-card:hover .ds-card-back-overlay,
.ds-card:focus-within .ds-card-back-overlay {
  opacity: 1;
  pointer-events: auto;
}
.ds-card-back-product {
  font-size: 13px; font-weight: 700; color: #fff;
  margin-bottom: 6px; letter-spacing: -0.005em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  word-break: break-word;
}
.ds-card-back-meta {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px;
}
.ds-card-back-theme,
.ds-card-back-kind {
  font-size: 10px; padding: 2px 8px; border-radius: 999px;
  background: rgba(47, 92, 168, 0.18);
  color: var(--accent, #2f5ca8);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.ds-card-back-kind { background: rgba(255, 255, 255, 0.10); color: rgba(255, 255, 255, 0.78); }
.ds-card-back-link {
  font-size: 11px; color: var(--accent, #2f5ca8);
  text-decoration: none; font-weight: 600;
  align-self: flex-start;
}
.ds-card-back-link:hover { text-decoration: underline; }
