/* 프로토그로스 AI 디자인 시스템 v2
   방향: 따뜻한 아이보리 바탕 + 잉크색 타이포 + 클레이 오렌지 포인트의 '에디토리얼 SaaS'.
   참고: Claude·Linear·Toss의 절제된 정보 밀도, 레드닷 수상작 Adform FLOW(과업 중심 대시보드),
        OpusClip(점수로 보여주는 AI 큐레이션), Colossyan(좌 편집·우 미리보기).
   원칙: 색은 상태와 행동에만, 장식은 타이포와 여백으로. 모든 색은 토큰으로, 다크 모드는 토큰 재정의로. */
:root {
  --bg: #faf9f5;
  --bg-tint: #f4f1e8;
  --surface: #ffffff;
  --surface-2: #f3f1ea;
  --surface-3: #ebe8de;
  --line: #e7e3d8;
  --line-strong: #d6d1c3;
  --text: #1f1e1b;
  --text-2: #3d3b36;
  --muted: #6f6c63;
  --faint: #8a867b;
  --ink: #1f1e1b;
  --on-ink: #faf9f5;
  --accent: #d4622f;
  --accent-ink: #a9481d;
  --accent-soft: #f9e9df;
  --accent-line: #f0cdb9;
  --ok: #1d7f55;
  --ok-soft: #e3f2ea;
  --warn: #8a5a00;
  --warn-soft: #fbf0d4;
  --danger: #c2372b;
  --danger-soft: #fbe5e2;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --shadow-sm: 0 1px 2px rgba(31, 30, 27, .05);
  --shadow: 0 1px 2px rgba(31, 30, 27, .04), 0 8px 24px -12px rgba(31, 30, 27, .12);
  --shadow-lg: 0 2px 4px rgba(31, 30, 27, .04), 0 24px 60px -24px rgba(31, 30, 27, .25);
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161513; --bg-tint: #1c1b18; --surface: #1f1e1b; --surface-2: #272622; --surface-3: #312f2a;
    --line: #34322c; --line-strong: #46433b; --text: #f3f1ea; --text-2: #d9d6cc; --muted: #a5a194; --faint: #8c887c;
    --ink: #f3f1ea; --on-ink: #1a1916; --accent: #e57b4b; --accent-ink: #f09a70; --accent-soft: #3a2519; --accent-line: #5a3624;
    --ok: #5cc596; --ok-soft: #173226; --warn: #e3b35a; --warn-soft: #362a12; --danger: #ef7d71; --danger-soft: #3b1d1a;
    --shadow-sm: none; --shadow: 0 0 0 1px rgba(255,255,255,.02); --shadow-lg: 0 24px 60px -24px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161513; --bg-tint: #1c1b18; --surface: #1f1e1b; --surface-2: #272622; --surface-3: #312f2a;
  --line: #34322c; --line-strong: #46433b; --text: #f3f1ea; --text-2: #d9d6cc; --muted: #a5a194; --faint: #8c887c;
  --ink: #f3f1ea; --on-ink: #1a1916; --accent: #e57b4b; --accent-ink: #f09a70; --accent-soft: #3a2519; --accent-line: #5a3624;
  --ok: #5cc596; --ok-soft: #173226; --warn: #e3b35a; --warn-soft: #362a12; --danger: #ef7d71; --danger-soft: #3b1d1a;
  --shadow-sm: none; --shadow: 0 0 0 1px rgba(255,255,255,.02); --shadow-lg: 0 24px 60px -24px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 3px; }
img, svg, video, canvas { max-width: 100%; }
::selection { background: var(--accent-soft); color: var(--accent-ink); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: 8px; text-decoration: none; font-weight: 650; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

h1 { font-size: 28px; line-height: 1.25; letter-spacing: -.035em; margin: 0 0 6px; font-weight: 750; }
h2 { font-size: 17px; line-height: 1.4; margin: 0 0 14px; letter-spacing: -.02em; font-weight: 700; }
h3 { letter-spacing: -.02em; }
.sub { color: var(--muted); margin: 0 0 28px; max-width: 68ch; }

/* ---------- 앱 레이아웃 ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 18px 12px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; background: var(--bg-tint); overflow-y: auto; }
.side-top { display: flex; flex-direction: column; gap: 10px; }
.logo { font-weight: 800; font-size: 17px; letter-spacing: -.035em; display: inline-flex; align-items: center; gap: 9px; padding: 4px 8px; text-decoration: none; color: var(--text); }
.mark { width: 24px; height: 24px; border-radius: 7px; background: var(--accent); display: inline-grid; place-items: center; flex: none; box-shadow: inset 0 -2px 0 rgba(0,0,0,.14); }
.mark::after { content: ''; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8'/%3E%3Cpath d='M15 7h6v6'/%3E%3C/svg%3E") center / contain no-repeat; }
.side-label { font-size: 11px; font-weight: 700; color: var(--faint); letter-spacing: .06em; padding: 14px 10px 4px; }
.side nav > .side-label:first-of-type { padding-top: 4px; }
.nav-sheet-head, .tabbar { display: none; }
.brand-select { width: 100%; padding: 8px 30px 8px 10px; min-height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a867b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; font-weight: 650; font-size: 14px; cursor: pointer; transition: border-color .15s; }
.brand-select:hover { border-color: var(--line-strong); }
.ws-select { font-size: 12.5px; font-weight: 550; color: var(--muted); background-color: transparent; border-color: transparent; min-height: 30px; padding-left: 8px; }
.side nav { display: flex; flex-direction: column; gap: 1px; }
.side nav a { text-decoration: none; padding: 7px 10px; min-height: 36px; border-radius: 9px; color: var(--text-2); display: flex; align-items: center; gap: 10px; font-weight: 550; font-size: 14px; transition: background .15s, color .15s; }
.side nav a svg { width: 18px; height: 18px; flex: none; color: var(--faint); transition: color .15s; }
.side nav a:hover { background: var(--surface-2); color: var(--text); }
.side nav a { position: relative; }
.side nav a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); font-weight: 700; }
.side nav a.active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.side nav a.active svg { color: var(--accent); }
.side nav a .badge { margin-left: auto; }
.badge { background: var(--accent); color: #fff; font-size: 11px; border-radius: 99px; padding: 0 7px; line-height: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.badge:empty { display: none; }
.side-foot { margin-top: auto; font-size: 12px; color: var(--muted); padding: 12px 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.side-foot #aiStatus { font-size: 11.5px; color: var(--faint); }

.main { padding: 36px clamp(16px, 4vw, 56px) 96px; max-width: 1280px; width: 100%; outline: none; }
.main > * { animation: fade .28s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }

/* ---------- 카드 ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); min-width: 0; }
.card.flat { box-shadow: none; background: transparent; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat b { display: block; font-size: 28px; line-height: 1.15; letter-spacing: -.035em; font-weight: 750; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- 버튼 ---------- */
a.btn { text-decoration: none; }
.btn { --b: var(--line); border: 1px solid var(--b); background: var(--surface); padding: 8px 14px; min-height: 38px; border-radius: 10px; cursor: pointer; font-weight: 650; font-size: 14px; display: inline-flex; gap: 7px; align-items: center; justify-content: center; letter-spacing: -.01em; transition: background .15s, border-color .15s, transform .08s, box-shadow .15s; box-shadow: var(--shadow-sm); white-space: nowrap; color: var(--text); }
.btn:hover { background: var(--surface-2); --b: var(--line-strong); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); --b: var(--ink); color: var(--on-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 84%, var(--accent)); }
.btn.accent { background: var(--accent); --b: var(--accent); color: #fff; }
.btn.accent:hover { background: var(--accent-ink); --b: var(--accent-ink); }
.btn.ghost { --b: transparent; background: transparent; color: var(--muted); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.danger { color: var(--danger); }
.btn.sm { padding: 5px 11px; min-height: 32px; font-size: 13px; border-radius: 9px; }
.btn.lg { padding: 13px 22px; min-height: 50px; font-size: 16px; border-radius: 13px; }
.btn:disabled { opacity: .55; cursor: progress; }

/* ---------- 폼 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 650; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--faint); }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=number], input[type=datetime-local], input[type=search], textarea, select.input {
  width: 100%; padding: 10px 12px; min-height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, textarea:hover, select.input:hover { border-color: var(--line-strong); }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: var(--ring); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; }
textarea { resize: vertical; min-height: 96px; line-height: 1.65; }
.drop { border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); padding: 32px; text-align: center; color: var(--muted); cursor: pointer; background: var(--surface); transition: .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- 칩·배너·상태 ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; min-height: 22px; border-radius: 99px; font-size: 12px; font-weight: 650; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip.accent { background: var(--accent-soft); color: var(--accent-ink); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.danger { background: var(--danger-soft); color: var(--danger); }
.chip.ok::before, .chip.warn::before, .chip.danger::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.banner { padding: 12px 16px; border-radius: var(--r); margin-bottom: 16px; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; border: 1px solid transparent; }
.banner.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 18%, transparent); }
.banner.info { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-line); }
.banner .btn { box-shadow: none; }
.insight { display: flex; gap: 16px; align-items: center; justify-content: space-between; background: linear-gradient(100deg, var(--accent-soft), var(--surface) 70%); border: 1px solid var(--accent-line); border-radius: var(--r-lg); padding: 16px 20px; margin-bottom: 24px; flex-wrap: wrap; }
.empty { text-align: center; color: var(--muted); padding: 56px 20px; }
.empty b, .empty h2 { color: var(--text); }
.spin { width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: s .7s linear infinite; display: inline-block; vertical-align: -2px; }
@keyframes s { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(16px); background: var(--ink); color: var(--on-ink); padding: 12px 18px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .22s var(--ease); font-weight: 600; font-size: 14px; max-width: min(92vw, 520px); box-shadow: var(--shadow-lg); z-index: 50; }
.toast.show { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.toast a { color: inherit; }

/* ---------- 오늘: 기획안 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.steps div { padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.steps b { color: var(--accent-ink); display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; letter-spacing: .02em; }
.idea { display: flex; flex-direction: column; gap: 12px; transition: border-color .15s, box-shadow .2s, transform .2s var(--ease); }
.idea:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.idea .bridge { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.idea .bridge i { font-style: normal; color: var(--accent); font-weight: 800; }
.idea h3 { font-size: 17px; margin: 0; line-height: 1.45; font-weight: 700; }
.idea p { margin: 0; color: var(--muted); font-size: 13.5px; }
.idea .foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- 승인함: 목록 · 편집 · 미리보기 ---------- */
.review { display: grid; grid-template-columns: 272px minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.list { display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 150px); overflow: auto; padding: 3px; }
.list button { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 11px 13px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, box-shadow .15s; }
.list button:hover { border-color: var(--line-strong); }
.list button.on { border-color: var(--accent); box-shadow: var(--ring); }
.list .t { font-size: 13.5px; font-weight: 650; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.editor textarea { min-height: 72px; }
.editor .block { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 10px; background: var(--surface); }
.editor .block small { color: var(--muted); font-weight: 700; font-size: 12px; display: block; margin-bottom: 8px; }
.preview { position: sticky; top: 24px; }
.score { display: flex; align-items: center; gap: 12px; }
.score b { font-variant-numeric: tabular-nums; }
.meter { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter > div { height: 100%; background: var(--ok); border-radius: 99px; transition: width .4s var(--ease); }
.meter.mid > div { background: var(--warn); }
.meter.low > div { background: var(--danger); }
.issues { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; }

.phone { width: 100%; max-width: 330px; margin: 0 auto; border-radius: 36px; border: 8px solid #141413; background: #000; overflow: hidden; aspect-ratio: 9 / 18.5; position: relative; box-shadow: var(--shadow-lg); }
.phone::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 99px; background: #000; z-index: 3; }
.phone .screen { position: absolute; inset: 0; background: #fff; color: #111; overflow: auto; font-size: 13.5px; padding-top: 34px; }
.thr { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.thr .p { display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.thr .av { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #d4622f, #f2a65a); }
.thr .nm { font-weight: 700; font-size: 13px; }
.thr .tx { white-space: pre-wrap; line-height: 1.55; }
.ig img, .ig canvas { width: 100%; display: block; }
.ig .cap { padding: 10px 12px; white-space: pre-wrap; font-size: 12.5px; line-height: 1.55; }
.ig .dots { display: flex; justify-content: center; gap: 4px; padding: 8px; }
.ig .dots span { width: 6px; height: 6px; border-radius: 50%; background: #ccc; }
.ig .dots span.on { background: #3897f0; }
.phone .screen.yt { padding-top: 0; }
.yt video, .yt canvas { width: 100%; height: 100%; object-fit: cover; background: #000; }
.phone .btn { color: #111; background: #fff; }
.yt .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; padding: 24px; text-align: center; background: #111; flex-direction: column; gap: 10px; }

/* ---------- 표·정의 목록 ---------- */
.card:has(> table), .card:has(> .table-wrap) { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 650; font-size: 12px; background: var(--bg-tint); white-space: nowrap; }
th:first-child { border-top-left-radius: 8px; } th:last-child { border-top-right-radius: 8px; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--bg-tint); }
td input { width: 76px; padding: 5px 7px; min-height: 30px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.kv { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 10px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 650; }
.kv dd { margin: 0; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.credit-meter { font-size: 12px; color: var(--text-2); }
.credit-meter b { font-variant-numeric: tabular-nums; }
.credit-meter .meter { margin-top: 6px; height: 5px; }
.credit-meter a { color: var(--accent-ink); font-weight: 650; text-decoration: none; }

/* ---------- 플랜·결제 ---------- */
.plan-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.plan-grid .card { display: flex; flex-direction: column; gap: 8px; position: relative; }
.plan-grid .card.current { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.plan-grid .price { font-size: 26px; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; margin: 2px 0; }
.plan-grid .price small { font-size: 13px; color: var(--muted); font-weight: 550; letter-spacing: 0; }
.plan-grid ul { list-style: none; padding: 0; margin: 4px 0 8px; font-size: 13px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.plan-grid li, .lp-pricing li { display: flex; gap: 8px; }
.plan-grid li::before, .lp-pricing li::before { content: ''; flex: none; width: 15px; height: 15px; margin-top: 3px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d7f55' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 9px no-repeat; }
.plan-grid .btn { width: 100%; margin-top: auto; }
.pay-note { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }

/* ---------- 로그인 ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 400px; border: 0; box-shadow: none; background: transparent; padding: 0; }
.auth-card h1 { font-size: 30px; margin: 28px 0 6px; }
.auth-card .sub { margin-bottom: 24px; }
.auth-card .btn.primary { width: 100%; padding: 12px; min-height: 46px; margin-top: 6px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 18px; font-size: 14px; gap: 12px; flex-wrap: wrap; }
.auth-links a { color: var(--muted); }
.auth-links a:hover { color: var(--text); }
.auth-aside { position: relative; overflow: hidden; background: #191814; color: #f3f1ea; padding: clamp(32px, 6vw, 72px); display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; }
.auth-aside::before { content: ''; position: absolute; inset: -20% -30% auto auto; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(212, 98, 47, .55), transparent); }
.auth-aside > * { position: relative; }
.auth-aside blockquote { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.45; letter-spacing: -.03em; font-weight: 650; max-width: 22ch; }
.auth-aside .who { color: #a5a194; font-size: 14px; }
.auth-aside .mini { display: grid; gap: 10px; max-width: 400px; }
.auth-aside .mini div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; display: flex; justify-content: space-between; gap: 10px; }
.auth-aside .mini span { color: #a5a194; white-space: nowrap; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 8px 0; line-height: 1.5; }
.check input { margin-top: 2px; flex: none; }

/* ---------- 반응형(앱) ---------- */
@media (max-width: 1180px) { .review { grid-template-columns: 240px minmax(0, 1fr); } .review .preview { grid-column: 1 / -1; position: static; } }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-aside { display: none; } }
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .side, .main { min-width: 0; }
  .side { position: sticky; top: 0; z-index: 20; height: auto; padding: 10px 12px 8px; gap: 8px; border-right: 0; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg-tint) 94%, transparent); backdrop-filter: blur(12px); overflow: visible; }
  .side-top { flex-direction: row; align-items: center; gap: 8px; }
  .side-top .logo { padding: 4px 2px; font-size: 0; gap: 0; }
  .side-top .brand-select { flex: 1; min-width: 0; }
  .side-top .ws-select { display: none; }
  .side-label { display: none; }
  .side nav { display: none; }
  .menu-open .side nav { scroll-padding-top: 72px; display: flex; position: fixed; inset: 0; z-index: 60; background: var(--bg); padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; gap: 2px; }
  .menu-open .side nav a { min-height: 48px; font-size: 16px; padding: 10px 12px; }
  .menu-open .side nav a.active::before { display: none; }
  .menu-open .side-label { display: block; font-size: 12px; padding: 16px 12px 4px; }
  .nav-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 4px 12px; font-size: 17px; position: sticky; top: -12px; background: var(--bg); z-index: 1; margin: -12px -4px 0; padding-top: 12px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 50px; border: 0; background: none; font: inherit; font-size: 11px; font-weight: 650; color: var(--muted); text-decoration: none; border-radius: 12px; cursor: pointer; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar .active { color: var(--accent-ink); background: var(--accent-soft); }
  .tabbar .badge { position: absolute; top: 4px; left: calc(50% + 6px); }
  .main { padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important; }
  .chat-fab { bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
  .side-foot { display: none; }
  .review { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .main { padding: 22px 16px 72px; }
  h1 { font-size: 24px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 10px; }
  .card { padding: 16px; border-radius: var(--r); }
}

/* =====================================================================
   랜딩
   ===================================================================== */
.landing { background: var(--bg); overflow-x: hidden; }
.lp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.lp-nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.lp-nav.scrolled { border-bottom-color: var(--line); }
.lp-nav .lp-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.lp-links { display: flex; gap: 4px; flex-direction: row; }
.lp-links a { text-decoration: none; color: var(--muted); font-weight: 550; font-size: 14px; padding: 6px 12px; border-radius: 8px; transition: .15s; }
.lp-links a:hover { color: var(--text); background: var(--surface-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-2); box-shadow: var(--shadow-sm); }
.eyebrow b { background: var(--accent); color: #fff; border-radius: 99px; padding: 1px 8px; font-size: 11.5px; }

.lp-hero { padding: clamp(56px, 9vw, 104px) 0 0; text-align: center; position: relative; }
.lp-hero::before { content: ''; position: absolute; inset: 0 0 auto; height: 620px; background: radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); pointer-events: none; }
.lp-hero > * { position: relative; }
.lp-hero h1 { font-size: clamp(40px, 7.4vw, 84px); line-height: 1.08; letter-spacing: -.055em; margin: 22px auto 20px; font-weight: 800; max-width: 14ch; text-wrap: balance; }
.lp-hero h1 em { font-style: normal; color: var(--accent); }
.lp-lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 600px; margin: 0 auto 32px; line-height: 1.7; text-wrap: pretty; }
.lp-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.lp-trust { margin-top: 18px; font-size: 13px; color: var(--faint); display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.lp-trust span::before { content: '✓'; color: var(--ok); font-weight: 800; margin-right: 6px; }

/* 제품 화면 목업 */
.lp-shot { margin: 64px auto 0; max-width: 1080px; border-radius: var(--r-xl) var(--r-xl) 0 0; border: 1px solid var(--line); border-bottom: 0; background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; }
.lp-shot-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-tint); }
.lp-shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.lp-shot-body { display: grid; grid-template-columns: 200px minmax(0, 1fr) 270px; min-height: 420px; }
.lp-shot-side { border-right: 1px solid var(--line); padding: 16px 12px; background: var(--bg-tint); display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.lp-shot-side span { padding: 7px 10px; border-radius: 8px; color: var(--muted); }
.lp-shot-side span.on { background: var(--surface); color: var(--text); font-weight: 650; box-shadow: inset 0 0 0 1px var(--line); }
.lp-shot-main { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.lp-shot-main h4 { margin: 0; font-size: 18px; letter-spacing: -.03em; }
.lp-shot-main .meta { font-size: 12.5px; color: var(--muted); margin: -6px 0 4px; }
.lp-idea { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.lp-idea.on { border-color: var(--accent); box-shadow: var(--ring); }
.lp-idea small { color: var(--muted); font-size: 12px; } .lp-idea small i { font-style: normal; color: var(--accent); font-weight: 800; }
.lp-idea b { font-size: 15px; line-height: 1.45; letter-spacing: -.02em; }
.lp-idea .row { justify-content: space-between; }
.lp-shot-prev { border-left: 1px solid var(--line); padding: 18px; background: var(--bg-tint); display: flex; flex-direction: column; gap: 12px; }
.lp-post { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: 13px; line-height: 1.6; }
.lp-post .who { display: flex; gap: 8px; align-items: center; font-weight: 700; margin-bottom: 8px; }
.lp-post .who i { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #d4622f, #f2a65a); }
.lp-score { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); }
.lp-score b { color: var(--ok); font-size: 20px; letter-spacing: -.03em; }

.lp-sec { padding: clamp(72px, 10vw, 120px) 0; }
.lp-sec.alt { background: var(--bg-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-head { max-width: 640px; margin-bottom: 44px; }
.lp-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lp-kicker { font-size: 13px; font-weight: 700; color: var(--accent-ink); letter-spacing: .02em; margin-bottom: 10px; display: block; }
.lp-sec h2 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.2; letter-spacing: -.045em; margin: 0 0 14px; font-weight: 800; text-wrap: balance; }
.lp-sec .lp-head p { color: var(--muted); font-size: 17px; margin: 0; line-height: 1.7; }
.lp-sec h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.025em; }
.lp-sec p { margin: 0; color: var(--muted); }

.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-step { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.lp-num { font-size: 13px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.lp-num::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento > div { grid-column: span 2; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-height: 230px; position: relative; overflow: hidden; }
.bento > .wide { grid-column: span 3; }
.bento > .dark { background: #191814; color: #f3f1ea; border-color: #191814; }
.bento > .dark p { color: #a5a194; }
.bento .visual { margin-top: auto; padding-top: 18px; }
.ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 12px; }
.ic svg { width: 20px; height: 20px; }
.dark .ic { background: rgba(255,255,255,.08); color: #f2a65a; }
.formula { display: flex; flex-wrap: wrap; gap: 6px; }
.formula span { font-size: 12.5px; padding: 5px 10px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); font-weight: 600; }
.dark .formula span { background: rgba(255,255,255,.07); color: #d9d6cc; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--surface-3); }
.bars i.hi { background: var(--accent); }
.human { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.human .ln { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); }
.human .ln.bad span { text-decoration: line-through; color: var(--faint); }
.human .ln b { color: var(--ok); font-variant-numeric: tabular-nums; white-space: nowrap; }
.human .ln.bad b { color: var(--danger); }

.lp-pricing { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.lp-pricing .card { display: flex; flex-direction: column; gap: 10px; padding: 26px 22px; border-radius: var(--r-lg); position: relative; }
.lp-pricing .card.featured { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow-lg); }
.lp-pricing .card.featured .chip { position: absolute; top: -11px; left: 22px; background: var(--ink); color: var(--on-ink); }
.lp-pricing h3 { font-size: 16px; margin: 0; }
.lp-pricing .price { font-size: 34px; font-weight: 800; color: var(--text); letter-spacing: -.045em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lp-pricing .price small { font-size: 14px; color: var(--muted); font-weight: 550; letter-spacing: 0; }
.lp-pricing .desc { font-size: 13.5px; min-height: 42px; }
.lp-pricing ul { list-style: none; padding: 16px 0 0; margin: 6px 0 16px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.lp-pricing .btn { width: 100%; }
.lp-fine { font-size: 13px; color: var(--faint) !important; margin-top: 18px !important; text-align: center; }

.lp-faq { max-width: 760px; margin: 0 auto; }
.lp-faq details { border-bottom: 1px solid var(--line); }
.lp-faq summary { cursor: pointer; font-weight: 700; font-size: 16px; padding: 20px 36px 20px 0; list-style: none; position: relative; letter-spacing: -.02em; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s var(--ease); }
.lp-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.lp-faq details p { padding: 0 0 20px; line-height: 1.75; }

.lp-final { text-align: center; padding: clamp(64px, 9vw, 104px) 24px; border-radius: var(--r-xl); background: #191814; color: #f3f1ea; position: relative; overflow: hidden; }
.lp-final::before { content: ''; position: absolute; left: 50%; top: -60%; width: 900px; height: 600px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(212, 98, 47, .45), transparent); }
.lp-final > * { position: relative; }
.lp-final h2 { color: #f3f1ea; }
.lp-final p { color: #a5a194 !important; margin: 0 auto 28px !important; max-width: 520px; }
.lp-final .btn.accent { color: #fff; }
.lp-final .btn.ghost { color: #f3f1ea; --b: rgba(255,255,255,.2); }
.lp-final .btn.ghost:hover { background: rgba(255,255,255,.08); }

.lp-foot { padding: 48px 0 64px; font-size: 13px; border-top: 1px solid var(--line); margin-top: clamp(64px, 9vw, 104px); }
.lp-foot .lp-wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.lp-foot nav { flex-direction: row; gap: 18px; }
.lp-foot nav a { padding: 0; min-height: 0; color: var(--muted); font-size: 13px; }
.lp-foot nav a:hover { background: none; color: var(--text); }
.biz { font-size: 12px; line-height: 1.85; margin-top: 12px; color: var(--faint); }

/* 등장 애니메이션(스크립트가 있을 때만 숨김) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* 약관·방침 */
.legal { max-width: 780px; margin: 0 auto; padding: 56px 24px 96px; line-height: 1.85; }
.legal h1 { font-size: 32px; margin-bottom: 8px; }
.legal h2 { margin-top: 36px; font-size: 18px; }
.legal .note { background: var(--warn-soft); color: var(--warn); padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.legal table { margin: 12px 0; }

@media (max-width: 980px) {
  .lp-shot-body { grid-template-columns: minmax(0, 1fr) 250px; } .lp-shot-side { display: none; }
  .lp-pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > div, .bento > .wide { grid-column: span 3; }
}
@media (max-width: 720px) {
  .lp-links, .lp-nav .btn.ghost { display: none; }
  .lp-shot { margin-top: 48px; } .lp-shot-body { grid-template-columns: minmax(0, 1fr); min-height: 0; } .lp-shot-prev { display: none; }
  .lp-steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; } .bento > div, .bento > .wide { grid-column: auto; min-height: 0; }
  .lp-pricing { grid-template-columns: 1fr; }
  .lp-wrap { padding: 0 16px; }
  .lp-final { border-radius: var(--r-lg); }
}
.lp-final h2 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.2; letter-spacing: -.045em; margin: 0 0 14px; font-weight: 800; }

/* =====================================================================
   만들기 · 그로스 도구 · AI 도우미
   ===================================================================== */
.g2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.gi { width: 16px; height: 16px; flex: none; }
.side nav a.nav-create { background: var(--ink); color: var(--on-ink); font-weight: 700; margin-bottom: 4px; }
.side nav a.nav-create svg { color: var(--on-ink); }
.side nav a.nav-create:hover, nav a.nav-create.active { background: color-mix(in srgb, var(--ink) 88%, var(--accent)); color: var(--on-ink); box-shadow: none; }
.side nav a.nav-create.active svg { color: var(--on-ink); }

.create { max-width: 860px; margin: 0 auto; }
.create-head { text-align: center; margin: 12px 0 26px; }
.create-head h1 { font-size: clamp(28px, 3.6vw, 40px); margin: 12px 0 8px; }
.create-head .sub { margin: 0 auto; }
.composer { position: relative; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 16px 16px 12px; transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: var(--accent-line); box-shadow: var(--shadow-lg), var(--ring); }
.composer.over { border-color: var(--accent); border-style: dashed; }
.composer-brand { font-size: 13px; color: var(--muted); padding: 2px 6px 8px; }
.composer-brand a { margin-left: 8px; color: var(--accent-ink); }
.composer-name { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 6px 6px 10px; font-weight: 650; font-size: 15px; background: transparent; box-shadow: none; }
.composer textarea { width: 100%; border: 0; resize: none; min-height: 110px; padding: 10px 6px; font-size: 16px; line-height: 1.6; background: transparent; box-shadow: none; }
.composer textarea:focus, .composer-name:focus { outline: none; box-shadow: none; }
.composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.composer-bar .row { gap: 6px; flex-wrap: wrap; }
.composer-bar #cGo { min-height: 42px; padding: 8px 20px; border-radius: 12px; }
.bar-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.toggle { position: relative; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.toggle span { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line); font-size: 13px; font-weight: 650; color: var(--muted); background: var(--surface); transition: .15s; }
.toggle input:checked + span { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.toggle input:focus-visible + span { box-shadow: var(--ring); }
.drop-hint { display: none; position: absolute; inset: 0; border-radius: inherit; background: color-mix(in srgb, var(--accent-soft) 85%, transparent); color: var(--accent-ink); font-weight: 700; place-items: center; pointer-events: none; }
.composer.over .drop-hint { display: grid; }
.attach-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px 10px; }
.attach-list:empty { display: none; }
.attach { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; max-width: 100%; }
.attach img { width: 32px; height: 32px; object-fit: cover; border-radius: 7px; }
.attach > .gi { margin-left: 6px; color: var(--muted); }
.attach span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.attach button { border: 0; background: none; cursor: pointer; font-size: 16px; color: var(--muted); width: 24px; height: 24px; border-radius: 6px; }
.attach button:hover { background: var(--surface-3); color: var(--text); }
.examples { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0 0; }
.chip-btn { border: 1px solid var(--line); background: var(--surface); color: var(--text-2); border-radius: 99px; padding: 7px 13px; font-size: 13px; cursor: pointer; text-align: left; line-height: 1.4; transition: .15s; }
.chip-btn:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--text); }
.progress { list-style: none; padding: 16px 18px; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.progress li { display: flex; gap: 10px; align-items: center; color: var(--faint); font-size: 14px; }
.progress li > :first-child:not(span:last-child) { width: 18px; text-align: center; }
.progress li.done { color: var(--ok); }
.progress li.now { color: var(--text); font-weight: 650; }
.create-more { margin: 44px 0 12px; font-size: 15px; color: var(--muted); }
.short { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.short:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.short .gi { width: 20px; height: 20px; color: var(--accent); margin-bottom: 6px; }
.short span { font-size: 13px; color: var(--muted); }

.tool-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.tool-list { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 20px; }
.tool-group { display: flex; flex-direction: column; gap: 2px; }
.tool-group .side-label { padding-left: 12px; }
.tool-list button { text-align: left; border: 1px solid transparent; background: none; border-radius: 10px; padding: 9px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; color: var(--text-2); }
.tool-list button b { font-size: 14px; font-weight: 650; }
.tool-list button span { font-size: 12px; color: var(--faint); }
.tool-list button:hover { background: var(--surface-2); }
.tool-list button.on { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); color: var(--text); }
.tool-list button.on b { color: var(--accent-ink); }
.tool-panel { padding: 26px; min-height: 420px; }
.tool-panel .sub { margin-bottom: 20px; }
.tool-result { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.md { line-height: 1.7; font-size: 14.5px; color: var(--text-2); overflow-wrap: anywhere; }
.md h2, .md h3, .md h4 { margin: 18px 0 8px; font-size: 16px; color: var(--text); }
.md h3 { font-size: 15px; } .md h4 { font-size: 14px; }
.md p { margin: 0 0 10px; }
.md ul, .md ol { margin: 0 0 12px; padding-left: 20px; }
.md li { margin: 3px 0; }
.md b { color: var(--text); }
.md code { background: var(--surface-2); padding: 1px 5px; border-radius: 5px; font-size: .92em; }
.md-table { overflow-x: auto; margin: 8px 0 14px; border: 1px solid var(--line); border-radius: 10px; }
.md table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.md th, .md td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.md th { background: var(--surface-2); font-weight: 700; color: var(--text); white-space: nowrap; }
.md tr:last-child td { border-bottom: 0; }
.calc-out { margin-top: 8px; padding: 16px; border-radius: var(--r); background: var(--surface-2); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.calc-out .link { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--text); background: none; font-size: 13px; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; width: 100%; }
.calc-grid div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.calc-grid span { font-size: 12px; color: var(--faint); }
.calc-grid b { font-size: 20px; color: var(--text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.verdict { margin: 4px 0 0; width: 100%; color: var(--text-2); }
.verdict.ok { color: var(--ok); } .verdict.warn { color: var(--danger); }

.chat { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.chat.full { height: min(72vh, 760px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 14px; }
.chat-tabs { display: flex; gap: 4px; padding: 3px; background: var(--surface-2); border-radius: 11px; margin-bottom: 10px; }
.chat-tabs button { flex: 1; border: 0; background: none; padding: 7px 10px; border-radius: 8px; font-weight: 650; font-size: 13px; color: var(--muted); cursor: pointer; }
.chat-tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 12px; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.msg.user { align-self: flex-end; background: var(--ink); color: var(--on-ink); border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: var(--surface-2); color: var(--text-2); border-bottom-left-radius: 4px; }
.msg.assistant.md, .msg.assistant > :last-child { margin-bottom: 0; }
.msg.assistant p:last-child, .msg.assistant ul:last-child, .msg.assistant ol:last-child { margin-bottom: 0; }
.msg.assistant h2, .msg.assistant h3 { font-size: 14.5px; margin: 8px 0 4px; color: var(--text); }
.msg.assistant ul, .msg.assistant ol { padding-left: 18px; margin: 4px 0 8px; }
.msg.assistant p { margin: 0 0 6px; }
.msg.typing { display: flex; gap: 4px; padding: 14px; }
.msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: blink 1.2s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .2s; } .msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-empty { margin: auto 0; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 16px 4px; }
.chat-empty span { font-size: 13px; color: var(--muted); }
.chat-empty .examples { margin-top: 12px; }
.chat-input { display: flex; gap: 8px; align-items: flex-end; border: 1px solid var(--line-strong); border-radius: 14px; padding: 6px 6px 6px 12px; background: var(--surface); }
.chat-input:focus-within { box-shadow: var(--ring); border-color: var(--accent-line); }
.chat-input textarea { flex: 1; border: 0; resize: none; min-height: 34px; max-height: 140px; padding: 7px 0; background: transparent; font-size: 14.5px; line-height: 1.45; box-shadow: none; }
.chat-input textarea:focus { outline: none; box-shadow: none; }
.chat-input .btn { min-width: 36px; height: 36px; padding: 0; border-radius: 10px; }
.chat-note { font-size: 11.5px; color: var(--faint); margin: 6px 4px 0; text-align: center; }
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--ink); color: var(--on-ink); padding: 12px 18px 12px 15px; border-radius: 99px; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: var(--shadow-lg); transition: transform .15s; }
.chat-fab:hover { transform: translateY(-2px); }
.chat-fab .gi { width: 18px; height: 18px; }
.chat-panel { position: fixed; right: 22px; bottom: 22px; z-index: 41; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 44px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; padding: 12px 14px 12px; }
.chat-panel[hidden] { display: none; }
.chat-panel header { display: flex; justify-content: space-between; align-items: center; padding: 2px 2px 10px; }
.chat-panel header .btn { font-size: 18px; width: 32px; padding: 0; }
#chatBox { flex: 1; min-height: 0; }
@media (max-width: 860px) {
  .tool-layout { grid-template-columns: minmax(0, 1fr); }
  .tool-list { position: static; flex-direction: row; overflow-x: auto; gap: 12px; padding-bottom: 4px; }
  .tool-group { flex-direction: row; gap: 6px; align-items: stretch; }
  .tool-group .side-label { display: none; }
  .tool-list button { min-width: 170px; border-color: var(--line); background: var(--surface); }
}
@media (max-width: 760px) {
  .create-head { margin-top: 0; }
  .composer { padding: 12px 12px 10px; border-radius: var(--r-lg); }
  .bar-sep { display: none; }
  .composer-bar #cGo { width: 100%; }
  .examples { justify-content: flex-start; }
  .tool-panel { padding: 18px; }
  .chat-fab { right: 14px; bottom: 14px; padding: 11px 14px; }
  .chat-fab span { display: none; }
  .chat-panel { right: 0; bottom: 0; width: 100vw; height: 86vh; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .chat.full { height: 70vh; padding: 10px; }
}
.create .shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .create .shortcuts { grid-template-columns: minmax(0, 1fr); } }

/* AI 피드백 */
.mode-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; }
.mode-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px; border-radius: 99px; font-size: 13.5px; font-weight: 650; color: var(--muted); text-decoration: none; transition: .15s; }
.mode-tabs a:hover { color: var(--text); }
.mode-tabs a[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.mode-tabs a[aria-selected="true"] .gi { color: var(--accent); }
.composer-goal { width: 100%; border: 0; border-top: 1px dashed var(--line); border-radius: 0; padding: 10px 6px; font-size: 14px; background: transparent; box-shadow: none; margin-bottom: 8px; }
.composer-goal:focus { outline: none; box-shadow: none; }
.fb { margin-top: 22px; padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.fb h3 { font-size: 14px; margin: 0 0 10px; color: var(--text); }
.fb-top { display: flex; gap: 20px; align-items: center; }
.fb-top h2 { margin: 8px 0 4px; font-size: 18px; }
.fb-top .muted { margin: 2px 0 0; font-size: 13px; }
.fb-ring { --c: var(--accent); flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, var(--surface) 78%, transparent 80% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-3) 0); }
.fb-ring.ok { --c: var(--ok); } .fb-ring.mid { --c: #c98a12; } .fb-ring.low { --c: var(--danger); }
.fb-ring b { font-size: 28px; line-height: 1; letter-spacing: -.03em; }
.fb-ring span { font-size: 11px; color: var(--faint); }
.fb-bars { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px 22px; }
.fb-bar { display: grid; grid-template-columns: 82px 1fr 28px; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.fb-bar b { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.fb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 22px; }
.fb-list { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14px; line-height: 1.65; }
.fb-list.ok li::marker { color: var(--ok); }
.fb-where h3, .fb-issues h3 { margin-top: 0; }
.fb-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fb-area { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--surface); min-width: 0; }
.fb-area.main { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.fb-area.off { background: var(--surface-2); border-style: dashed; }
.fb-area-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; flex-wrap: wrap; }
.fb-area-score { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.fb-area-score b { font-variant-numeric: tabular-nums; }
.fb-area p { margin: 6px 0 0; font-size: 13px; }
.fb-sum { margin: 12px 0 0; font-size: 15px; line-height: 1.65; color: var(--text); }
.fb-tip { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.fb-issue { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 10px; background: var(--surface); }
.fb-issue header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-issue header b { font-size: 14px; }
.fb-no { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--ink); color: var(--on-ink); }
.fb-prio { margin-left: auto; font-size: 12px; font-weight: 650; color: var(--muted); }
.fb-prio.high { color: var(--danger); }
.fb-issue blockquote { margin: 10px 0 0; padding: 8px 12px; border-left: 3px solid var(--danger); background: var(--surface-2); border-radius: 0 8px 8px 0; font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.fb-issue.image blockquote { border-left-color: var(--warn); }
.fb-issue dl { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 6px 10px; margin: 10px 0 0; font-size: 14px; line-height: 1.6; }
.fb-issue dt { color: var(--muted); font-weight: 650; font-size: 13px; padding-top: 1px; }
.fb-issue dd { margin: 0; color: var(--text-2); }
.fb-issue dd.fix { color: var(--text); font-weight: 600; }
.fb-ex { position: relative; margin-top: 10px; padding: 10px 64px 10px 12px; border-radius: 10px; background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 30%, var(--line)); }
.fb-ex p { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.fb-ex .btn { position: absolute; top: 6px; right: 6px; }
.fb-refs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; font-size: 13px; }
.fb-refs a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-ink, var(--accent)); text-underline-offset: 3px; min-width: 0; }
.fb-refs a .gi { width: 13px; height: 13px; flex: none; }
.fb-reflist { border-top: 1px solid var(--line); padding-top: 18px; }
.fb-reflist ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.fb-reflist li { display: grid; gap: 2px; font-size: 14px; }
.fb-reflist li span { color: var(--muted); font-size: 13px; }
.fb-reflist p { font-size: 12.5px; margin: 0; }
.fb-risk { margin: 0; display: block; line-height: 1.6; }
.fb-risk b { margin-right: 8px; }
.fb-hooks { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fb-compare > div { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--surface-2); min-width: 0; }
.fb-compare .after { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); }
.fb-compare pre { margin: 6px 0 0; white-space: pre-wrap; font-family: var(--font); font-size: 14px; line-height: 1.65; color: var(--text); overflow-wrap: anywhere; }
.fb-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.fb-actions { gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .fb { padding: 18px; }
  .fb-top { align-items: flex-start; gap: 14px; }
  .fb-ring { width: 76px; height: 76px; } .fb-ring b { font-size: 23px; }
  .fb-grid, .fb-compare, .fb-areas { grid-template-columns: minmax(0, 1fr); }
  .mode-tabs a { padding: 7px 12px; }
  .fb-actions .btn { width: 100%; }
}

/* ---------- 브랜드 필요 · 핫이슈 ---------- */
.need-brand { display: flex; gap: 20px; align-items: flex-start; padding: 28px; max-width: 760px; }
.need-brand h2 { margin: 0 0 6px; font-size: 18px; }
.need-ic { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.need-ic .gi { width: 24px; height: 24px; }
.need-list { margin: 14px 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; }
.need-list li { position: relative; padding-left: 22px; color: var(--text-2); }
.need-list li::before { content: ''; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .6; }
.need-brand .row { flex-wrap: wrap; gap: 8px; }
.page-head { justify-content: space-between; align-items: flex-start; gap: 16px; }
.page-head .btn { flex: none; margin-top: 6px; }
.hot-tabs { display: flex; gap: 4px; margin: 4px 0 20px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.hot-tabs button { background: none; border: 0; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.hot-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.hot-h { font-size: 15px; margin: 24px 0 10px; }
.hot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.hot-grid .hot-h { margin-top: 0; }
.hot-rank, .hot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hot-rank li, .hot-list li { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 12px; min-width: 0; }
.hot-rank li:hover, .hot-list li:hover { background: var(--surface-2); }
.rk { width: 26px; flex: none; text-align: center; font-weight: 750; color: var(--muted); font-variant-numeric: tabular-nums; }
.rk.top { color: var(--accent); }
.hot-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hot-main b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hot-main span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-act { display: flex; gap: 4px; flex: none; opacity: .0; transition: opacity .15s; }
li:hover > .hot-act, li:focus-within > .hot-act, .hot-card .hot-act { opacity: 1; }
.hot-news { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hot-card { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 18px; }
.hot-card h3 { margin: 0; font-size: 15px; line-height: 1.45; flex: 1; }
.hot-card .hot-act { margin-top: 4px; }
.hot-strip { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin-top: 18px; }
.hot-label { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 650; color: var(--accent); margin-right: 4px; }
.hot-label .gi { width: 15px; height: 15px; }
.hot-more { font-size: 13px; font-weight: 600; margin-left: 4px; }
@media (hover: none) { .hot-act { opacity: 1; } }
@media (max-width: 900px) {
  .hot-grid { grid-template-columns: 1fr; }
  .hot-rank li, .hot-list li { flex-wrap: wrap; }
  .hot-act { opacity: 1; width: 100%; padding-left: 38px; }
  .hot-list .hot-act, .hot-card .hot-act { padding-left: 0; }
  .need-brand { flex-direction: column; padding: 22px; }
}
.fb-ko { color: var(--muted) !important; font-size: 13px !important; }
.fb-compare pre.fb-ko { margin-bottom: 0; }
.fb-hooks small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.fb-hooks .chip-btn { height: auto; min-height: 34px; white-space: normal; text-align: left; }

/* ---------- 크레딧 ---------- */
.credit-pill { display: flex; flex-direction: column; gap: 6px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); transition: border-color .15s, background .3s; }
.credit-pill:hover { border-color: var(--line-strong); }
.credit-pill .cp-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.credit-pill .cp-label { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.credit-pill b { font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.credit-pill .meter { height: 4px; display: block; flex: none; }
.credit-pill .meter > span { display: block; height: 100%; border-radius: 99px; background: var(--ok); transition: width .5s var(--ease); }
.credit-pill .meter.mid > span { background: var(--warn); } .credit-pill .meter.low > span { background: var(--danger); }
.credit-pill.low b { color: var(--danger); }
.credit-pill .cp-cta { font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.credit-pill.bump { background: var(--accent-soft); }
.credit-panel { padding: 24px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 20px; }
.cr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.cr-label { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.cr-num { font-size: 44px; line-height: 1.1; letter-spacing: -.04em; font-weight: 750; font-variant-numeric: tabular-nums; margin-right: 8px; }
.cr-of { color: var(--muted); font-size: 14px; }
.cr-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 4px 10px; border-radius: 99px; background: var(--surface-2); white-space: nowrap; }
.cr-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: crpulse 2s infinite; }
@keyframes crpulse { 50% { opacity: .35; } }
.cr-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cr-split > div { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); min-width: 0; }
.cr-split b { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cr-split b small { font-size: 14px; color: var(--muted); font-weight: 600; }
.cr-split .muted, .cr-cost { font-size: 13px; }
.cr-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cr-cols h3 { margin: 0 0 8px; font-size: 14px; }
.cr-list { list-style: none; margin: 0; padding: 0; }
.cr-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cr-list li:last-child { border-bottom: 0; }
.cr-list small { color: var(--faint); margin-left: 6px; }
.cr-list b { font-variant-numeric: tabular-nums; } .cr-list b.plus { color: var(--ok); }
.cr-cost { margin: 10px 0 0; }
@media (max-width: 1100px) { .cr-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .side-top .credit-pill { flex: none; flex-direction: row; align-items: center; padding: 0 12px; min-height: 38px; gap: 6px; }
  .side-top .credit-pill .cp-label, .side-top .credit-pill .meter { display: none; }
  .side-top .credit-pill .cp-top::before { content: '크레딧'; font-size: 12px; color: var(--muted); font-weight: 600; }
  .side-top .credit-pill .cp-top { gap: 6px; }
  .credit-panel { padding: 18px; }
  .cr-num { font-size: 36px; }
  .cr-split { grid-template-columns: minmax(0, 1fr); }
}

.fb-box { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; background: var(--surface); }
.fb-box h3 { margin: 0 0 10px; }
.fb-box p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.fb-dl { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 12px; margin: 0; font-size: 14px; line-height: 1.6; }
.fb-dl dt { color: var(--muted); font-weight: 650; font-size: 13px; } .fb-dl dd { margin: 0; color: var(--text-2); } .fb-dl dd.fix { color: var(--text); font-weight: 600; }
.fb-checks { list-style: none; margin: 0; padding: 0; }
.fb-checks li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.fb-checks li:last-child { border-bottom: 0; padding-bottom: 0; }
.fb-checks i { width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--warn); }
.fb-checks li.good i { background: var(--ok); } .fb-checks li.bad i { background: var(--danger); }
.fb-checks div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fb-checks b { font-weight: 600; } .fb-checks span { color: var(--muted); font-size: 13px; }
.fb-checks em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--warn); flex: none; }
.fb-checks li.good em { color: var(--ok); } .fb-checks li.bad em { color: var(--danger); }
.fb-tagline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fb-rule { font-size: 13px !important; }
@media (max-width: 760px) { .fb-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .fb-dl dd { margin-bottom: 8px; } }

.fb-imgrow { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 18px; margin: 14px 0; align-items: start; }
.fb-img { position: relative; margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.fb-img img { display: block; width: 100%; height: auto; }
.fb-img figcaption { position: absolute; left: 8px; bottom: 8px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; }
.fb-noimg { padding: 40px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.fb-pin { position: absolute; transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; text-decoration: none; background: #b7791f; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.fb-pin.good { background: #1f8a5b; } .fb-pin.bad { background: #c93c37; }
.fb-pin:hover, .fb-pin:focus-visible { transform: translate(-50%, -50%) scale(1.15); }
.fb-pts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fb-pts li { display: flex; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: 14px; scroll-margin-top: 120px; }
.fb-pts li:target { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.fb-pts li.bad .fb-no { background: #c93c37; color: #fff; } .fb-pts li.warn .fb-no { background: #b7791f; color: #fff; } .fb-pts li.good .fb-no { background: #1f8a5b; color: #fff; }
.fb-pts div { flex: 1; min-width: 0; }
.fb-pts em { font-style: normal; font-size: 12px; font-weight: 700; margin-left: 8px; color: var(--muted); }
.fb-pts p { margin: 4px 0 0 !important; } .fb-pts p.fix { color: var(--text); font-weight: 600; }
.fb-image .fb-sum { margin-top: 0; }
@media (max-width: 760px) { .fb-imgrow { grid-template-columns: minmax(0, 1fr); } .fb-img { max-width: 360px; } }

/* ---------- 페이지 머리말 · 다듬기 ---------- */
.main[data-group]:not([data-group=""])::before { content: attr(data-group); display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--accent-ink); margin-bottom: 6px; }
.main > h1, .main .page-head h1 { letter-spacing: -.035em; }
.side { box-shadow: inset -1px 0 0 var(--line); border-right: 0; }
.side nav a { border-radius: 10px; }
.card { transition: border-color .15s, box-shadow .2s; }
a.card:hover, .shortcuts .card:hover, .hot-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }

@media (max-width: 760px) { .menu-open .side { backdrop-filter: none; -webkit-backdrop-filter: none; z-index: 60; } }

/* ---------- 상단 메뉴바(GNB): PC 한 줄 · 태블릿 두 줄 · 모바일은 하단 탭 + 전체 메뉴 ---------- */
:root { --top-h: 0px; }
.nav-break { display: none; }
.nav-group-btn { font: inherit; border: 0; background: none; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav-group-btn .chev { width: 13px; height: 13px; color: var(--faint); transition: transform .18s var(--ease); }
.nav-group-btn .acct-ic { width: 18px; height: 18px; }
.nav-note { font-size: 11.5px; color: var(--faint); padding: 8px 12px 4px; }
.nav-note:empty { display: none; }
.side nav a small { display: none; }
.side-top .credit-pill { flex: none; flex-direction: row; align-items: center; padding: 0 12px; min-height: 38px; gap: 8px; }
.side-top .credit-pill .meter { display: none; }
.side-top .credit-pill .cp-top { gap: 8px; }

@media (min-width: 761px) {
  :root { --top-h: 60px; }
  .app { display: block; }
  .side { position: sticky; top: 0; z-index: 30; height: auto; min-height: var(--top-h); flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 4px; padding: 0 clamp(16px, 3vw, 36px); overflow: visible; border: 0; box-shadow: inset 0 -1px 0 var(--line); background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
  .side-top, .side nav { display: contents; }
  .side-top .logo { order: 0; margin-right: 18px; padding-left: 0; }
  .nav-group { order: 1; position: relative; display: flex; align-items: center; height: 60px; }
  .side-top .brand-select { order: 2; margin-left: auto; width: auto; min-width: 132px; max-width: 220px; text-overflow: ellipsis; }
  .side-top .credit-pill { order: 3; margin-left: 6px; }
  .nav-account { order: 4; margin-left: 2px; }
  .nav-group-btn { height: 38px; padding: 0 12px; border-radius: 10px; font-size: 14.5px; font-weight: 650; white-space: nowrap; transition: background .15s, color .15s; }
  .nav-group-btn:hover, .nav-group.open .nav-group-btn { background: var(--surface-2); color: var(--text); }
  .nav-group.current .nav-group-btn { color: var(--text); font-weight: 750; }
  .nav-group.current::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); }
  .nav-account.current::after { left: 10px; right: 10px; }
  .nav-group.open .chev { transform: rotate(180deg); }
  .nav-account .nav-group-btn { border: 1px solid var(--line); background: var(--surface); padding: 0 10px; }
  .nav-menu { display: none; position: absolute; top: calc(100% - 4px); left: -6px; z-index: 40; width: 292px; padding: 6px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 18px 48px -12px rgba(0,0,0,.28), var(--shadow-sm); animation: fade .16s var(--ease); }
  .nav-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
  .nav-account .nav-menu { left: auto; right: 0; }
  .nav-group.open .nav-menu { display: block; }
  .nav-group.shut .nav-menu { display: none !important; }
  .side nav a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 0; padding: 9px 10px; min-height: 0; border-radius: 11px; font-size: 14.5px; font-weight: 650; color: var(--text); line-height: 1.35; }
  .side nav a svg { grid-row: 1 / span 2; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); box-sizing: border-box; }
  .side nav a .badge { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
  .side nav a small { display: block; grid-column: 2; grid-row: 2; font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .side nav a.active { background: var(--accent-soft); box-shadow: none; }
  .side nav a.active svg { background: var(--accent); color: #fff; }
  .side nav a.active::before { display: none; }
  .nav-menu .ws-select { width: 100%; margin-bottom: 4px; border-color: var(--line); background-color: var(--surface-2); color: var(--text-2); min-height: 36px; }
  .nav-note { border-top: 1px solid var(--line); margin-top: 4px; }
  .main { margin: 0 auto; }
  .preview { top: calc(var(--top-h) + 20px); }
  .tool-list { top: calc(var(--top-h) + 16px); }
}
@media (min-width: 761px) and (hover: hover) { .nav-group:hover .nav-menu { display: block; } .nav-group:hover .chev { transform: rotate(180deg); } }
@media (min-width: 1100px) { .side-top .credit-pill .cp-top::before { content: none; } }
@media (max-width: 1099px) { .side-top .credit-pill .cp-label { display: none; } .side-top .credit-pill .cp-top::before { content: '크레딧'; font-size: 12px; color: var(--muted); font-weight: 600; } }

/* 태블릿: 윗줄은 로고·브랜드·크레딧·계정, 아랫줄은 메뉴 그룹 */
@media (min-width: 761px) and (max-width: 1099px) {
  :root { --top-h: 106px; }
  .side { padding: 0 20px; }
  .side-top .logo, .side-top .brand-select, .side-top .credit-pill { margin-top: 9px; margin-bottom: 9px; }
  .nav-account { height: 56px; }
  .nav-break { display: block; order: 5; flex: 0 0 calc(100% + 40px); margin: 0 -20px; height: 1px; background: var(--line); }
  .nav-group:not(.nav-account) { order: 6; height: 48px; flex: 1 1 0; justify-content: center; }
  .nav-group:not(.nav-account) .nav-group-btn { width: 100%; justify-content: center; height: 40px; font-size: 15px; }
  .nav-group:not(.nav-account) .nav-menu { left: 0; top: calc(100% - 2px); }
  .nav-group:not(.nav-account):nth-last-of-type(2) .nav-menu { left: auto; right: 0; }
  .nav-group.current::after { left: 18%; right: 18%; }
  .side nav a { min-height: 52px; }
}

/* 모바일: 전체 메뉴 시트 안에서는 그룹 이름이 제목 역할 */
@media (max-width: 760px) {
  .nav-group { display: flex; flex-direction: column; }
  .nav-group-btn { pointer-events: none; font-size: 12px; font-weight: 700; color: var(--faint); letter-spacing: .06em; padding: 16px 12px 4px; }
  .nav-group-btn .chev, .nav-group-btn .acct-ic { display: none; }
  .nav-menu { display: flex; flex-direction: column; gap: 2px; }
  .menu-open .side nav a small { display: block; margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52%; }
  .nav-menu .ws-select { display: block; width: auto; margin: 4px 0; padding-left: 12px; border-color: var(--line); background-color: var(--surface); color: var(--text-2); min-height: 44px; font-size: 14px; }
  .menu-open .side nav a .badge { margin-left: 0; }
}
