:root {
  --bg: #f6f5fb;
  --bg2: #efeafc;
  --card: #ffffff;
  --ink: #1c1830;
  --muted: #6b6580;
  --line: #e9e5f5;
  --accent: #7c5cff;
  --accent2: #ff5ca8;
  --accent-soft: #f0ebff;
  --ok: #16b981;
  --shadow: 0 18px 50px -24px rgba(60, 40, 120, .45);
  --radius: 20px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', 'Apple SD Gothic Neo',
    'Malgun Gothic', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 12% -10%, #efe7ff 0%, transparent 55%),
    radial-gradient(1000px 500px at 100% 0%, #ffe7f3 0%, transparent 50%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 20px 60px;
}

/* ---------- header ---------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 2px 22px;
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 20px; }
.brand b { letter-spacing: -.02em; }
.logo {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 800; font-size: 20px;
  box-shadow: 0 8px 20px -6px rgba(124, 92, 255, .6);
}
.tag {
  font-size: 13px; color: var(--muted);
  background: #fff; border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 999px;
}

/* ---------- hero ---------- */
.hero {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 20px;
}
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .18em;
  color: var(--accent); margin: 0 0 6px;
}
.hero h1 { margin: 0; font-size: clamp(28px, 4.6vw, 46px); line-height: 1.05; letter-spacing: -.03em; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero > p { margin: 0; color: var(--muted); font-size: 15px; max-width: 320px; }

/* ---------- mode tabs ---------- */
.mode-tabs {
  display: inline-flex; gap: 6px; padding: 5px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; margin-bottom: 20px;
}
.mode-tabs button {
  border: 0; background: transparent; cursor: pointer;
  padding: 9px 18px; border-radius: 10px; font: inherit; font-weight: 600;
  color: var(--muted); transition: .18s;
}
.mode-tabs button.active { background: var(--accent-soft); color: var(--accent); }

/* ---------- workspace ---------- */
.workspace {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 18px; align-items: start;
}
@media (max-width: 880px) { .workspace { grid-template-columns: 1fr; } }

.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.panel-title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel-title > span {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  color: var(--accent); background: var(--accent-soft);
}
.panel-title b { display: block; font-size: 15px; }
.panel-title small { color: var(--muted); font-size: 12px; }

/* ---------- preview / upload ---------- */
.preview-panel { position: sticky; top: 18px; }
.stage {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  border-radius: 16px; overflow: hidden;
  background:
    conic-gradient(#eee 90deg, #f7f7f7 90deg 180deg, #eee 180deg 270deg, #f7f7f7 270deg) 0 0 / 22px 22px;
  border: 1px solid var(--line); display: grid; place-items: center;
}
.stage canvas { max-width: 100%; max-height: 100%; image-rendering: auto; }
.stage .empty { color: var(--muted); font-size: 13px; text-align: center; padding: 20px; }

.dropzone {
  width: 100%; border: 2px dashed #d7cff2; background: #faf9ff;
  border-radius: 16px; padding: 30px 18px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--ink); font: inherit; transition: .16s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.compact { padding: 16px; }
.dropzone b { font-size: 14px; }
.dropzone small { color: var(--muted); font-size: 12px; }
.upload-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.preview-meta {
  display: flex; justify-content: space-between; gap: 10px; margin-top: 12px;
  font-size: 12px; color: var(--muted);
}
.preview-actions { display: flex; gap: 8px; margin-top: 12px; }
.ghost {
  flex: 1; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-weight: 600; padding: 10px; border-radius: 11px; cursor: pointer;
  transition: .15s;
}
.ghost:hover { background: #f6f4ff; border-color: #d9d0f5; }
.ghost:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- motion picker ---------- */
.motion-tools {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.motion-tools input {
  flex: 1; border: 1px solid var(--line); border-radius: 11px;
  padding: 10px 13px; font: inherit; background: #fbfaff;
}
.motion-tools input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.motion-tools > span { font-size: 12px; color: var(--muted); white-space: nowrap; }

.motion-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  max-height: 260px; overflow: auto; padding: 2px; margin-bottom: 18px;
}
@media (max-width: 460px) { .motion-grid { grid-template-columns: repeat(3, 1fr); } }
.motion-grid button {
  border: 1px solid var(--line); background: #fff; border-radius: 13px;
  padding: 11px 6px; cursor: pointer; font: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: .14s; color: var(--ink);
}
.motion-grid button:hover { border-color: #cdbff5; transform: translateY(-1px); }
.motion-grid button.active {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: 0 6px 16px -8px rgba(124, 92, 255, .7);
}
.motion-grid button i { font-style: normal; font-size: 19px; line-height: 1; }
.motion-grid button span { font-size: 11.5px; color: var(--muted); text-align: center; }
.motion-grid button.active span { color: var(--accent); font-weight: 600; }
.motion-grid .group-label {
  grid-column: 1 / -1; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  color: var(--muted); padding: 8px 4px 2px; text-transform: uppercase;
}

/* ---------- sticker maker ---------- */
.opt-row { margin-bottom: 13px; }
.opt-row > small {
  display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--muted); margin-bottom: 7px; text-transform: uppercase;
}
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 13px; font: inherit; font-size: 12.5px; color: var(--ink);
  cursor: pointer; transition: .14s;
}
.pill:hover { border-color: #cdbff5; }
.pill.active {
  border-color: var(--accent); background: var(--accent-soft);
  color: var(--accent); font-weight: 700;
}
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(0,0,0,.08); transition: .14s; padding: 0;
}
.swatch.active { outline: 3px solid var(--accent); outline-offset: 2px; }
.swatch-custom {
  width: 28px; height: 28px; border-radius: 50%; border: 2px dashed #c9c0e8;
  background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
  cursor: pointer; padding: 0; overflow: hidden;
}
.swatch-custom input { opacity: 0; width: 100%; height: 100%; cursor: pointer; }

/* ---------- prompt workshop (inline) ---------- */
.pw-group { margin-bottom: 12px; }
.pw-inline { display: flex; gap: 8px; }
.pw-inline .text-input { flex: 1; min-width: 0; }
.pw-step {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--ink);
  margin: 16px 0 9px;
}
.pw-step:first-child { margin-top: 0; }
.pw-step > span {
  width: 20px; height: 20px; border-radius: 6px; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.pw-step small { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.pw-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.pw-head b { font-size: 13px; }
.pw-head small { color: var(--muted); font-size: 11.5px; }
.pw-mini {
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 4px 10px; font: inherit; font-size: 11.5px; color: var(--accent);
  cursor: pointer; white-space: nowrap; font-weight: 600;
}
.pw-mini:hover { border-color: var(--accent); background: var(--accent-soft); }
.pw-colors {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-bottom: 12px;
}
.pw-colors label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--muted); white-space: nowrap;
}
.pw-colors select {
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px;
  font: inherit; font-size: 12px; background: #fff; cursor: pointer;
}
.pw-colors input[type=color] {
  width: 24px; height: 24px; border: 1px solid var(--line);
  border-radius: 6px; padding: 1px; cursor: pointer; background: none;
}

/* sticker mini preview (right panel) */
.sticker-mini-preview { display: flex; justify-content: center; margin-bottom: 14px; }
.sticker-mini-preview canvas {
  width: 200px; height: 200px; border-radius: 14px;
  background:
    conic-gradient(#eee 90deg,#f7f7f7 90deg 180deg,#eee 180deg 270deg,#f7f7f7 270deg) 0 0/14px 14px;
  border: 1px solid var(--line);
}

/* remove sticky on preview-panel when prompt workshop is visible */
.preview-panel.no-sticky { position: static; }

/* ── 만들기 버튼 위 "빠른 동작 바꾸기" ── */
.motion-requick {
  margin: 14px 0 10px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.mr-label {
  display: block; font-size: 11px; color: var(--muted);
  font-weight: 700; letter-spacing: .03em; margin-bottom: 7px;
}
.mr-current {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 11px; margin-bottom: 9px; cursor: pointer;
  border: 1px solid var(--accent); border-radius: 10px;
  background: var(--accent-soft); font: inherit; text-align: left;
}
.mr-current i { font-style: normal; font-size: 18px; line-height: 1; }
.mr-current b { font-size: 13px; color: var(--accent); }
.mr-current small { margin-left: auto; font-size: 10.5px; color: var(--muted); }
.mr-current:hover { filter: brightness(.98); }

.mr-row {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: thin;
}
.mr-row button {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 60px; padding: 7px 4px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 9px; background: #fff; font: inherit;
  transition: border-color .12s, background .12s;
}
.mr-row button i { font-style: normal; font-size: 17px; line-height: 1; }
.mr-row button span {
  font-size: 9.5px; color: var(--muted); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.mr-row button:hover { border-color: var(--accent); }
.mr-row button.on { border-color: var(--accent); background: var(--accent-soft); }
.mr-row button.on span { color: var(--accent); font-weight: 700; }

/* ── 미캔 파이프라인 네비 ── */
.pipeline {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 18px; padding: 12px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.pipe-label {
  font-size: 11.5px; font-weight: 700; color: var(--muted);
  letter-spacing: .04em; white-space: nowrap;
}
.pipe-steps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pipe-step {
  display: flex; flex-direction: column; gap: 1px;
  padding: 6px 11px; border-radius: 10px; text-decoration: none;
  border: 1px solid transparent; background: var(--bg, #f7f8fb);
  transition: background .15s, border-color .15s;
}
.pipe-step b { font-size: 12px; color: var(--ink); font-weight: 700; }
.pipe-step small { font-size: 10.5px; color: var(--muted); }
.pipe-step:hover { border-color: var(--accent); background: var(--accent-soft); }
.pipe-step.here { background: var(--accent-soft); border-color: var(--accent); }
.pipe-step.here b { color: var(--accent); }
.pipe-arrow { color: var(--muted); font-size: 13px; }

/* ── 배경 따낸 뒤 다음 단계로 넘기는 출구 ── */
.cut-export {
  margin-top: 10px; padding: 12px 14px; border-radius: 12px;
  background: var(--accent-soft); border: 1px dashed var(--accent);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.cut-export-head {
  width: 100%; font-size: 12.5px; font-weight: 600; color: var(--accent);
}
.cut-export .ghost { flex: 1; min-width: 140px; }
a.ghost.pipe-next {
  display: grid; place-items: center; text-decoration: none;
}

/* ── 배경 감지 결과 · 수동 조절 ── */
.cut-panel {
  margin-top: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.cut-status {
  display: flex; flex-direction: column; gap: 3px;
  padding: 9px 11px; border-radius: 9px; margin-bottom: 11px;
  font-size: 12px; line-height: 1.5;
}
.cut-status b { font-size: 12.5px; }
.cut-status span { color: var(--muted); }
.cut-status.ok { background: var(--accent-soft); }
.cut-status.ok b { color: var(--accent); }
.cut-status.skip { background: #f5f6f8; }
.cut-status.skip b { color: var(--muted); }
.cut-sw {
  display: inline-block; width: 10px; height: 10px; border-radius: 3px;
  border: 1px solid var(--line); margin-right: 4px; vertical-align: -1px;
}
.cut-opts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.cut-opts label {
  display: flex; align-items: center; gap: 6px; flex: 1; min-width: 150px;
  font-size: 12px; color: var(--muted); white-space: nowrap;
}
.cut-opts select {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px;
  padding: 5px 7px; font: inherit; font-size: 11.5px; background: #fff; cursor: pointer;
}
.cut-range small { font-weight: 400; color: var(--muted); font-size: 10.5px; }
.cut-check { margin: 2px 0 0; }
.cut-check small { color: var(--muted); font-weight: 400; font-size: 10.5px; }
.cut-export .cut-revert { flex: 0 0 auto; min-width: 0; }

/* 원본 ↔ 결과 비교 */
.cut-compare {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 11px;
}
.cut-compare figure { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cut-compare figcaption { font-size: 11px; color: var(--muted); }
.cut-compare canvas {
  width: 96px; height: 96px; border-radius: 10px; border: 1px solid var(--line);
  background:
    conic-gradient(#eee 90deg,#f7f7f7 90deg 180deg,#eee 180deg 270deg,#f7f7f7 270deg) 0 0/12px 12px;
}
.cut-cmp-arrow { color: var(--muted); font-size: 15px; }

/* 미캔 색상수 예측 배지 */
.cut-palette {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 11px; border-radius: 9px; margin-bottom: 11px; font-size: 12px;
}
.cut-palette b { font-weight: 700; }
.cut-palette.good { background: #E5F6EA; color: #1e7a3a; }
.cut-palette.warn { background: #FFF4E0; color: #a86a12; }
.cut-palette.bad  { background: #FCE8E6; color: #c0392b; }
.cut-pal-dots { display: inline-flex; gap: 3px; }
.cut-pal-dots i {
  width: 13px; height: 13px; border-radius: 4px; border: 1px solid rgba(0,0,0,.12);
}

/* 빠른 설정 프리셋 */
.cut-presets { margin-bottom: 6px; }
.cut-presets > small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.cut-adv { margin-top: 8px; }
.cut-adv > summary {
  cursor: pointer; font-size: 12px; color: var(--accent); font-weight: 600;
  padding: 4px 0; user-select: none;
}
.cut-adv[open] > summary { margin-bottom: 6px; }

/* prompt card 얼굴/오브젝트 태그 */
.pw-face-tag {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; color: var(--muted);
  background: var(--accent-soft); vertical-align: middle;
}

/* 얼굴 없는 요소 안내 박스 */
.pw-faceless {
  margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  background: var(--accent-soft); border: 1px dashed var(--accent);
  font-size: 12.5px; color: var(--ink);
}
.pw-faceless-head { line-height: 1.6; margin-bottom: 8px; }
.pw-faceless-head b { color: var(--accent); }
.pw-faceless-chips {
  display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 8px;
  padding: 8px; background: #fff; border-radius: 8px;
}
.pw-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; cursor: pointer;
}
.pw-faceless-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- tools page ---------- */
.tools-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
@media (max-width: 880px) { .tools-grid { grid-template-columns: 1fr; } }
.text-input {
  width: 100%; border: 1px solid var(--line); border-radius: 11px;
  padding: 10px 13px; font: inherit; background: #fbfaff;
}
.text-input:focus, .text-area:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.text-area {
  width: 100%; border: 1px solid var(--line); border-radius: 11px;
  padding: 11px 13px; font: inherit; font-size: 13px; line-height: 1.55;
  background: #fbfaff; resize: vertical;
}
.text-area.mono { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; white-space: pre; overflow-x: auto; }
.hint { font-size: 12px; color: var(--muted); margin: 7px 0 0; line-height: 1.5; }
.prompt-list { margin-top: 16px; }
/* 누끼 최적화 체크박스 */
.pw-cutout {
  display: flex; align-items: flex-start; gap: 9px; cursor: pointer;
  padding: 10px 12px; margin-bottom: 12px;
  border: 1px solid var(--line); border-radius: 11px; background: #f6fbf7;
}
.pw-cutout input { margin-top: 2px; flex: 0 0 auto; accent-color: var(--accent); }
.pw-cutout b { font-size: 13px; }
.pw-cutout small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; line-height: 1.5; }

/* 공통 스타일 헤더 */
.pw-common {
  border: 1px dashed var(--accent); border-radius: 13px; padding: 11px 14px;
  margin-bottom: 12px; background: #fffdf6;
}
.pw-common-head { margin-bottom: 6px; }
.pw-common-head b { font-size: 13px; }
.pw-common-head small { color: var(--muted); font-size: 11.5px; margin-left: 4px; }
.pw-common pre {
  margin: 0; font-family: inherit; font-size: 12px; color: var(--muted);
  white-space: pre-wrap; word-break: break-word; line-height: 1.55;
}

.prompt-card {
  border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px;
  margin-bottom: 9px; background: #fbfaff;
}
.prompt-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.prompt-card-head b { font-size: 13.5px; }
.prompt-card pre {
  margin: 0; font-family: inherit; font-size: 12.5px; color: var(--muted);
  white-space: pre-wrap; word-break: break-word; line-height: 1.55;
}
a.tag { text-decoration: none; }
a.tag:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- ranges & rows ---------- */
.range-label { display: block; margin-bottom: 16px; }
.range-label > span { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 7px; }
.range-label b { color: var(--accent); }
input[type=range] {
  width: 100%; -webkit-appearance: none; appearance: none; height: 6px;
  border-radius: 999px; background: var(--line); outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent); cursor: pointer;
  box-shadow: 0 3px 8px -2px rgba(124, 92, 255, .6);
}
.range-presets { display: flex; gap: 6px; margin-top: 9px; }
.range-presets button {
  flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 9px;
  padding: 6px 4px; font: inherit; font-size: 11.5px; color: var(--muted); cursor: pointer;
}
.range-presets button:hover { border-color: var(--accent); color: var(--accent); }

.row { display: flex; gap: 12px; margin-bottom: 14px; }
.row > label { flex: 1; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.row select {
  border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px;
  font: inherit; background: #fff; cursor: pointer;
}
.color {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  border-radius: 11px; padding: 6px 10px; background: #fff;
}
.color input[type=color] {
  width: 28px; height: 28px; border: none; background: none; padding: 0; cursor: pointer;
}
.color span { font-size: 13px; color: var(--muted); font-variant: tabular-nums; }

.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; margin-bottom: 16px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }

.make {
  width: 100%; border: 0; border-radius: 14px; padding: 15px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 14px 30px -12px rgba(124, 92, 255, .8); transition: .16s;
}
.make:hover:not(:disabled) { transform: translateY(-1px); }
.make:disabled { background: #d9d3ee; box-shadow: none; cursor: not-allowed; color: #fff; }
.make span { transition: transform .16s; }
.make:hover:not(:disabled) span { transform: translateX(3px); }

.progress {
  height: 6px; border-radius: 999px; background: var(--line); overflow: hidden;
  margin-top: 12px; display: none;
}
.progress.on { display: block; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .2s; }

/* ---------- sequence mode ---------- */
.seq-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.seq-thumb {
  position: relative; width: 74px; height: 74px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
  background: conic-gradient(#eee 90deg,#f7f7f7 90deg 180deg,#eee 180deg 270deg,#f7f7f7 270deg) 0 0/14px 14px;
}
.seq-thumb img { width: 100%; height: 100%; object-fit: contain; }
.seq-thumb button {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border: 0;
  border-radius: 6px; background: rgba(28,24,48,.72); color: #fff; cursor: pointer; font-size: 13px;
  display: grid; place-items: center;
}
.seq-thumb .n { position: absolute; bottom: 2px; left: 4px; font-size: 10px; color: #fff;
  background: rgba(28,24,48,.6); border-radius: 5px; padding: 0 5px; }

footer {
  margin-top: 26px; font-size: 13px; color: var(--muted);
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
}
footer b { color: var(--accent); }

.hidden { display: none !important; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-size: 13.5px; opacity: 0; pointer-events: none; transition: .28s; z-index: 50;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.5);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
