/* 아하브 AI 사진 */
:root {
  --bg: #FCF4F9; --surface: #FFFFFF; --sunk: #F7E7F1; --ink: #2A1024; --muted: #7A5670; --line: #F0DCE9;
  --accent: #C2338F; --accent-2: #E0559F; --accent-ink: #FFFFFF; --accent-soft: #FBE3F1;
  --in: #1C6FD1; --out: #D6402F; --gold: #E0A92E; --ok: #0F7B5F; --bad: #C2362B; --new: #E8590C; --hl: #FFF4D1;
  --shadow: 0 1px 2px rgba(42,16,36,.04), 0 8px 24px rgba(42,16,36,.06);
  --hero: radial-gradient(120% 120% at 100% 0%, #FFB3DE 0%, transparent 55%), linear-gradient(135deg, #4A0E3A 0%, #C2338F 60%, #F472B6 100%);
  --hero-shadow: 0 12px 32px rgba(194,51,143,.28); --hero-ink: #7A1A5A;
  --font-ui: "Pretendard", "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; --radius: 18px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #160B13; --surface: #22121D; --sunk: #2E1A28; --ink: #F8E9F3; --muted: #C9A3BC; --line: #42263A;
  --accent: #FF8CCB; --accent-2: #E0559F; --accent-ink: #2A0A1E; --accent-soft: #4A1C3A; --hl: #3D3418;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
} }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.pick label { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px; border-radius: 16px; background: rgba(255,255,255,.14); color: #fff; font-weight: 800; cursor: pointer; border: 1px solid rgba(255,255,255,.25); }
.pick label.main { background: #fff; color: var(--hero-ink); }
.pick label span { font-size: 30px; line-height: 1; } .pick input { display: none; }
.stage { position: relative; background: repeating-conic-gradient(var(--sunk) 0 25%, var(--surface) 0 50%) 50% / 20px 20px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.stage canvas, .stage img { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: contain; margin: 0 auto; }
.cmp { position: relative; user-select: none; -webkit-user-select: none; touch-action: pan-y; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.cmp img { display: block; width: 100%; height: auto; }
.cmp .before { position: absolute; inset: 0; overflow: hidden; }
.cmp .before img { position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none; }
.cmp .bar { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.4); margin-left: -1.5px; }
.cmp .bar::after { content: "◀ ▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: #fff; color: var(--accent); font-size: 11px; font-weight: 900; padding: 6px 8px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.cmp .lb { position: absolute; top: 8px; font-size: 11px; font-weight: 800; color: #fff; background: rgba(0,0,0,.5); padding: 2px 8px; border-radius: 999px; }
.presets { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 6px; scrollbar-width: none; }
.presets::-webkit-scrollbar { display: none; }
.presets button { flex: none; border: 2px solid transparent; background: var(--surface); border-radius: 14px; padding: 4px; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; box-shadow: var(--shadow); }
.presets button canvas { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; display: block; }
.presets button.on { border-color: var(--accent); color: var(--accent); }
.sl { display: grid; grid-template-columns: 76px 1fr 38px; gap: 10px; align-items: center; margin: 8px 0; font-size: 14px; font-weight: 700; }
.sl b { font-size: 12.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.ratios { display: flex; gap: 6px; flex-wrap: wrap; }
.ratios button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.ratios button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tasks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tasks button { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.tasks button span { font-size: 24px; line-height: 1.1; } .tasks button b { font-size: 14.5px; } .tasks button small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.tasks button.on { border-color: var(--accent); background: var(--accent-soft); }
.meter { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; }
.meter .mb { flex: 1; height: 8px; background: var(--sunk); border-radius: 4px; overflow: hidden; }
.meter .mb i { display: block; height: 100%; background: var(--accent); }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gal button { border: 0; padding: 0; background: var(--sunk); border-radius: 10px; overflow: hidden; aspect-ratio: 1; position: relative; }
.gal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal button small { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.55); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 6px; }
.chips2 { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips2 button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 11px; font-size: 13px; }
.chips2 button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
