/* 로고 스튜디오 — 위저드 UI. homepage tokens.css 를 상속하되(크로스서빙),
   토큰 미로딩 시에도 동작하도록 폴백 변수를 :root 에 함께 둔다. */
:root{
  --st-bg:#0e0d13; --st-surface:#17151f; --st-surface2:#211d2c; --st-line:#2b2639;
  --st-ink:#efecf7; --st-ink2:#b4aecb; --st-ink3:#847e98;
  --st-violet:#8b5cf6; --st-cyan:#22d3ee; --st-good:#34d399; --st-bad:#f87171;
  --st-grad:linear-gradient(100deg,var(--st-violet),var(--st-cyan));
  --st-radius:16px; --st-font:"Pretendard",-apple-system,BlinkMacSystemFont,
    "Apple SD Gothic Neo","Segoe UI","Malgun Gothic",system-ui,sans-serif;
}
*{box-sizing:border-box}
body{margin:0;background:var(--st-bg);color:var(--st-ink);font-family:var(--st-font);
  line-height:1.6;-webkit-font-smoothing:antialiased;letter-spacing:-.01em}
.st-wrap{max-width:960px;margin:0 auto;padding:0 20px}
a{color:var(--st-cyan)}

/* header */
.st-header{padding:22px 0;border-bottom:1px solid var(--st-line);position:sticky;top:0;
  background:rgba(14,13,19,.82);backdrop-filter:blur(10px);z-index:10}
.st-header .st-wrap{display:flex;align-items:center;justify-content:space-between}
.st-brand{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:-.02em}
.st-brand .dot{width:26px;height:26px;border-radius:8px;background:var(--st-grad)}
.st-nav a{color:var(--st-ink2);text-decoration:none;font-size:.9rem;font-weight:600}
.st-nav a:hover{color:var(--st-ink)}

/* hero */
.st-hero{padding:52px 0 20px;text-align:center}
.st-hero h1{font-size:clamp(1.9rem,4.4vw,3rem);line-height:1.1;letter-spacing:-.03em;
  font-weight:800;margin:.2rem 0;text-wrap:balance}
.st-hero .grad{background:var(--st-grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.st-hero p{color:var(--st-ink2);font-size:1.08rem;max-width:34em;margin:.6rem auto 0}

/* steps indicator */
.st-steps{display:flex;gap:8px;justify-content:center;margin:26px 0 8px}
.st-steps .s{display:flex;align-items:center;gap:8px;color:var(--st-ink3);font-size:.85rem;font-weight:600}
.st-steps .s .n{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;
  background:var(--st-surface2);color:var(--st-ink3);font-size:.78rem;border:1px solid var(--st-line)}
.st-steps .s.active{color:var(--st-ink)}
.st-steps .s.active .n{background:var(--st-grad);color:#0b0a10;border:none}
.st-steps .sep{width:26px;height:1px;background:var(--st-line);align-self:center}

/* panels */
.st-panel{display:none;padding:24px 0 60px}
.st-panel.active{display:block}
.st-card{background:var(--st-surface);border:1px solid var(--st-line);border-radius:var(--st-radius);padding:24px}

/* form */
.st-field{margin-bottom:16px}
.st-field label{display:block;font-size:.85rem;font-weight:700;margin-bottom:6px;color:var(--st-ink2)}
.st-field .hint{color:var(--st-ink3);font-weight:400}
.st-field input,.st-field select,.st-field textarea{width:100%;background:var(--st-bg);
  border:1px solid var(--st-line);border-radius:10px;padding:11px 13px;color:var(--st-ink);
  font-family:inherit;font-size:.98rem}
.st-field input:focus,.st-field select:focus,.st-field textarea:focus{outline:none;
  border-color:var(--st-violet);box-shadow:0 0 0 3px rgba(139,92,246,.18)}
.st-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media(max-width:560px){.st-row{grid-template-columns:1fr}}
.st-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* buttons */
.st-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:none;
  border-radius:11px;padding:13px 22px;font-family:inherit;font-size:1rem;font-weight:700;
  cursor:pointer;transition:transform .12s,filter .12s}
.st-btn.primary{background:var(--st-grad);color:#0b0a10}
.st-btn.primary:hover{filter:brightness(1.08)}
.st-btn.ghost{background:transparent;color:var(--st-ink2);border:1px solid var(--st-line)}
.st-btn.ghost:hover{color:var(--st-ink);border-color:var(--st-ink3)}
.st-btn:active{transform:translateY(1px)}
.st-btn:disabled{opacity:.5;cursor:not-allowed}
.st-btn.block{width:100%}
.st-actions{display:flex;gap:12px;margin-top:18px}

/* spam indicator */
.st-spam{font-size:.78rem;color:var(--st-ink3);min-height:20px;margin-top:4px}
.st-spam.ready{color:var(--st-good)}

/* concepts grid */
.st-concepts{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media(max-width:760px){.st-concepts{grid-template-columns:1fr}}
.concept{background:var(--st-surface);border:1px solid var(--st-line);border-radius:var(--st-radius);
  overflow:hidden;display:flex;flex-direction:column;transition:border-color .15s,transform .15s}
.concept:hover{border-color:var(--st-violet);transform:translateY(-3px)}
.concept .shot{aspect-ratio:1;background:#0b0a10;display:block}
.concept .shot img{width:100%;height:100%;object-fit:cover;display:block}
.concept .body{padding:16px;display:flex;flex-direction:column;gap:10px;flex:1}
.concept h3{margin:0;font-size:1.05rem;letter-spacing:-.01em}
.concept .swatches{display:flex;gap:6px}
.concept .swatches i{width:22px;height:22px;border-radius:6px;border:1px solid rgba(255,255,255,.12)}
.concept .why{font-size:.85rem;color:var(--st-ink2);flex:1}
.concept .st-btn{margin-top:auto}

/* loading */
.st-loading{text-align:center;padding:56px 0;color:var(--st-ink2)}
.st-spinner{width:42px;height:42px;border-radius:50%;border:3px solid var(--st-line);
  border-top-color:var(--st-violet);margin:0 auto 16px;animation:st-spin 1s linear infinite}
@keyframes st-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.st-spinner{animation:none}}

/* checkout */
.st-selected{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.st-selected .shot{width:150px;height:150px;border-radius:12px;overflow:hidden;background:#0b0a10;flex:0 0 auto}
.st-selected .shot img{width:100%;height:100%;object-fit:cover}
.st-price{font-size:2rem;font-weight:800;letter-spacing:-.02em}
.st-price small{font-size:.9rem;color:var(--st-ink3);font-weight:600}
.st-kitlist{font-size:.86rem;color:var(--st-ink2);margin:10px 0 0;padding-left:18px}
.st-note{font-size:.8rem;color:var(--st-ink3);margin-top:14px}
.st-err{color:var(--st-bad);font-size:.9rem;margin-top:10px;min-height:18px}
.wm-badge{display:inline-block;font-size:.7rem;font-weight:700;color:var(--st-cyan);
  background:rgba(34,211,238,.1);padding:3px 8px;border-radius:6px}

/* ── 갤러리(쇼케이스, 무한스크롤) ── */
.gl-tools{display:flex;gap:12px;flex-wrap:wrap;margin:22px 0 20px}
.gl-tools input,.gl-tools select{background:var(--st-surface);border:1px solid var(--st-line);
  border-radius:10px;padding:11px 14px;color:var(--st-ink);font-family:inherit;font-size:.95rem}
.gl-tools input{flex:1;min-width:200px}
.gl-tools input:focus,.gl-tools select:focus{outline:none;border-color:var(--st-violet)}
.gl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}
.gl-item{background:var(--st-surface);border:1px solid var(--st-line);border-radius:14px;
  overflow:hidden;transition:transform .15s,border-color .15s}
.gl-item:hover{transform:translateY(-3px);border-color:var(--st-violet)}
.gl-item .shot{aspect-ratio:1;background:#0b0a10}
.gl-item .shot img{width:100%;height:100%;object-fit:cover;display:block}
.gl-item .meta{padding:11px 13px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.gl-item .meta b{font-size:.9rem;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gl-item .sw{display:flex;gap:3px;flex:0 0 auto}
.gl-item .sw i{width:12px;height:12px;border-radius:3px;border:1px solid rgba(255,255,255,.14)}
.gl-sentinel{height:40px;margin:20px 0}
.gl-end,.gl-empty{text-align:center;color:var(--st-ink3);padding:30px 0;font-size:.9rem}

/* 공개 동의 체크박스 */
.st-consent{display:flex;gap:10px;align-items:flex-start;margin:2px 0 16px;
  font-size:.85rem;color:var(--st-ink2);cursor:pointer}
.st-consent input{margin-top:3px;accent-color:var(--st-violet);width:16px;height:16px;flex:0 0 auto}
.st-consent b{color:var(--st-ink)}

/* 상세보기 모달 — 입력 브리프 + 생성 프롬프트(무료 축약). */
.gl-modal{position:fixed;inset:0;z-index:100;background:rgba(6,8,14,.72);backdrop-filter:blur(4px);
  display:flex;align-items:center;justify-content:center;padding:20px}
.gl-modal[hidden]{display:none}
.gl-modal-card{position:relative;background:#12151d;border:1px solid #2a3142;border-radius:16px;
  max-width:560px;width:100%;max-height:86vh;overflow:auto;padding:22px}
.gl-modal-x{position:absolute;top:12px;right:14px;background:none;border:none;color:#aab2c5;font-size:1.5rem;cursor:pointer;line-height:1}
.gl-modal-top{display:flex;gap:14px;align-items:flex-start;margin-bottom:6px}
.gl-modal-top img{width:96px;height:96px;border-radius:12px;object-fit:cover;background:#fff;flex:0 0 auto}
.gl-modal-top h3{margin:0 0 4px;color:#eef1f7;font-size:1.15rem}
.gl-rat{margin:0;color:#aab2c5;font-size:.9rem}
.gl-modal-card h4{margin:18px 0 8px;color:#eef1f7;font-size:.9rem}
.gl-kvs{display:flex;flex-direction:column;gap:6px}
.gl-kv{display:flex;gap:10px;font-size:.9rem}
.gl-kv span{color:#727c93;min-width:72px}
.gl-kv b{color:#dfe4ee;font-weight:600}
.gl-dim{color:#727c93;font-size:.88rem}
.gl-prompt{white-space:pre-wrap;background:#0c0e14;border:1px solid #2a3142;border-radius:10px;
  padding:12px;color:#c7cede;font-size:.84rem;line-height:1.5;font-family:ui-monospace,monospace;margin:0}
.gl-lock{margin-top:10px;background:#1b2130;border:1px dashed #3a4256;border-radius:10px;
  padding:11px 13px;color:#aab2c5;font-size:.85rem}
.gl-lock a{color:#f2b45c}
.gl-load{color:#aab2c5;text-align:center;padding:30px 0}

/* 스타일 선택기 — 브리프 폼. */
.st-styles{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.st-style{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;
  background:var(--st-surf2,#1b2130);border:1.5px solid var(--st-line,#2a3142);border-radius:11px;
  padding:9px 11px;cursor:pointer;font-family:inherit;transition:.14s;color:var(--st-ink,#eef1f7)}
.st-style:hover{border-color:#4a5578}
.st-style.on{border-color:var(--st-accent,#6aa2ff);background:rgba(106,162,255,.10)}
.st-style .ico{font-size:1.15rem;line-height:1}
.st-style b{font-size:.86rem}
.st-style small{color:var(--st-ink3,#8791a6);font-size:.7rem;line-height:1.25}
@media(max-width:620px){.st-styles{grid-template-columns:repeat(2,1fr)}}
