/* Idea Mixer: розмітка поверх спільної теми (theme.css, «Обсидіан і золото»). Акцент інструмента: рожева магента. */
:root { --accent: #e079a8; --accent-hi: #f2a8c8; --accent-glow: rgba(224, 121, 168, .16); }
body { min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(1200px 460px at 50% -120px, rgba(224, 121, 168, .11), transparent 70%), var(--bg); }

header.top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 18px;
  background: linear-gradient(180deg, var(--panel), var(--bg-elev)); border-bottom: 1px solid var(--line); position: relative; }
header.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .6; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--ff-ui); font-weight: 850; text-transform: uppercase; font-size: 20px;  white-space: nowrap; letter-spacing: .07em; text-shadow: 0 0 14px color-mix(in srgb, var(--accent, var(--gold)) 50%, transparent); }
.brand svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.brand span { color: var(--accent); text-shadow: 0 0 14px currentColor; }
.spacer { flex: 1; }

main.mixer { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; padding: 20px 18px 36px; align-items: start; }

/* ---------- колода ---------- */
.deck-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.title { margin: 0; font-size: clamp(34px, 5.5vw, 58px); line-height: 1.05; font-weight: 600; letter-spacing: -.005em;
  background: linear-gradient(180deg, #fbe9f1 15%, var(--accent-hi) 70%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.deck-actions { display: flex; align-items: center; gap: 10px; }
.btn-mix { padding: 12px 28px; font-size: 16px; font-weight: 650; letter-spacing: .02em; border-radius: var(--r-md); color: #2a0c1a; border-color: #f0a1c3;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent) 55%, #c2608e); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 8px 24px rgba(224, 121, 168, .25); }
.btn-mix:hover { background: linear-gradient(180deg, #ffc8dd, #ea8db6 55%, #cd6a98); color: #2a0c1a; border-color: #ffbad6; }
kbd { font-family: var(--ff-mono); font-size: 11px; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--bg-elev); color: var(--muted); }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.slot { position: relative; padding: 16px 18px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1);
  background: linear-gradient(180deg, #17151b, #0f0e13); display: flex; flex-direction: column; gap: 10px; min-height: 170px; overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.slot::before { content: attr(data-n); position: absolute; right: 14px; top: 4px; font-family: var(--ff-display); font-size: 64px; font-weight: 700; line-height: 1; color: var(--accent); opacity: .08; pointer-events: none; }
.slot.locked { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(224, 121, 168, .25), 0 0 30px rgba(224, 121, 168, .12), var(--shadow-1); }
.slot-h { display: flex; align-items: baseline; gap: 10px; }
.slot-h h3 { margin: 0; font-family: var(--ff-ui); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.slot-h small { color: var(--faint); font-size: 12px; }
.slot-t { margin: 0; font-family: var(--ff-display); font-size: 23px; line-height: 1.22; font-weight: 600; color: var(--text); text-wrap: pretty; flex: 1; }
.slot-t.flip { animation: flip .42s var(--ease) both; }
@keyframes flip { 0% { opacity: 0; transform: translateY(10px) rotateX(40deg); } 100% { opacity: 1; transform: none; } }
.src { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-height: 22px; }
.src .tag { font-size: 10.5px; }
.src .mine { color: var(--accent-hi); border-color: rgba(224, 121, 168, .45); }
.slot-f { display: flex; gap: 8px; }
.slot-f button { padding: 5px 11px; font-size: 13px; }
.slot-f button.on { background: var(--accent-glow); border-color: var(--accent); color: var(--accent-hi); }
.hint { font-size: 12px; color: var(--faint); margin: 14px 0 0; line-height: 1.5; max-width: 80ch; }

/* ---------- бічна панель ---------- */
.side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); padding: 14px 16px 16px; }
.card h2 { margin: 0 0 10px; font-family: var(--ff-ui); font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: var(--accent); font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.card h2 .n { color: var(--faint); letter-spacing: .04em; font-weight: 500; }
.pitch { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--ff-mono); font-size: 12px; line-height: 1.55; color: var(--muted); max-height: 340px; overflow: auto; }
.form { display: grid; gap: 8px; }
.form input, .form select { width: 100%; font-size: 13px; }
.empty { margin: 0; color: var(--faint); font-size: 13px; line-height: 1.5; }
.li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.li:last-child { border-bottom: 0; }
.li .tx { flex: 1; min-width: 0; line-height: 1.35; }
.li .tx b { display: block; color: var(--text); font-family: var(--ff-display); font-size: 16px; font-weight: 600; }
.li .tx small { color: var(--faint); font-size: 11px; }
.li button { padding: 3px 9px; font-size: 12px; }
.li button.x { color: var(--faint); background: transparent; }
.li button.x:hover { color: var(--danger); border-color: var(--danger); }
#customList { margin-top: 8px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--panel-3); color: var(--accent-hi); border: 1px solid var(--accent);
  font-weight: 600; padding: 10px 20px; border-radius: 99px; box-shadow: var(--shadow-2); transition: .25s var(--ease); pointer-events: none; z-index: 50; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%); }

@media (max-width: 960px) {
  main.mixer { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 28px; }
  .side { position: static; }
  header.top { padding: 12px 16px; }
}
@media (max-width: 560px) {
  header.top .spacer { display: none; }
  .deck-actions kbd { display: none; }
  .btn-mix { width: 100%; }
  .deck-actions { width: 100%; }
}
