/* DIME eclrey — 서비스 셸(clue-design kit/service-shell · 토큰 = visual.eclrey.com) 위에 DIME 시안(Claude Design 10-11)을 옮김.
   색은 토큰만(흑·백·회색 · 강조색 없음) · 모서리 0 · 그림자·그라데이션 없음 · 선 1px(선택 밑줄·초점 링만 2px).
   데스크톱(760px 이상) = Studio 3열 · My DIME · 내 모델 만들기 / 모바일(760 미만) = 520 열 안 5탭(피드 · 둘러보기 · 올리기 · My DIME · 내 정보). */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* 한글 = Pretendard 가변(300~700) 자체 서브셋 — 화면 문구 글자만(tools/make_fonts.py · 외부 요청 0). 없는 글자는 시스템 한글 글꼴 */
@font-face { font-family: 'Pretendard DIME'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/pretendard-dime.woff2') format('woff2'); }

:root {
  --page: #f7f7f6; --bg: #fff; --text-1: #1a1a1a; --text-2: #333; --text-3: #666; --border: #e4e4e4; --border-strong: #1a1a1a;
  --surface-muted: #f7f7f6;
  --veil: color-mix(in srgb, var(--bg) 72%, transparent);
  --font-sans: 'Inter', 'Pretendard DIME', 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --page: #151514; --surface-muted: #262624; --bg: #1a1a19; --text-1: #fff; --text-2: #d0d0cd; --text-3: #9a9a9a; --border: #333331; --border-strong: #fff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text-1); font-family: var(--font-sans); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; word-break: keep-all; overflow-x: hidden; }
h1, h2, p { margin: 0; }
a { color: var(--text-1); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--text-1); outline-offset: 2px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--text-1); outline-offset: 2px; }
[hidden] { display: none !important; }
.nw { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); }
.ink { color: var(--text-1); }
.kick { font-size: 11px; letter-spacing: .1em; color: var(--text-3); }
.kick--ink { color: var(--text-1); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 머리 */
.app { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.lp-top { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--border); padding: 0 24px; min-height: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.top-l, .top-r { display: flex; align-items: center; }
.top-l { gap: 28px; }
.top-r { gap: 14px; }
.lockup { display: flex; align-items: baseline; gap: 8px; }
.lockup__w { font-size: 18px; letter-spacing: -.03em; color: var(--text-1); white-space: nowrap; }
.lockup__w span { font-weight: 300; }
.lockup__w b { font-weight: 700; }
.lockup__t { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.nav { display: flex; gap: 4px; }
.nav button { padding: 6px 8px; font-size: 13px; color: var(--text-3); border-bottom: 2px solid transparent; }
.nav button[aria-current="page"] { color: var(--text-1); border-bottom-color: var(--text-1); }
.wx { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.seg { display: flex; background: var(--page); padding: 2px; }
.seg button { padding: 4px 10px; font-size: 12px; color: var(--text-3); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--bg); color: var(--text-1); }
.avatar { width: 28px; height: 28px; background: var(--page); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: 36px; z-index: 20; min-width: 180px; background: var(--bg); border: 1px solid var(--border); padding: 4px; display: flex; flex-direction: column; }
.menu button { text-align: left; padding: 9px 10px; font-size: 13px; }
.menu button:hover { background: var(--page); }

/* ── 공용 조각 */
.ph { position: relative; display: block; background: var(--page); overflow: hidden; }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph--45 { aspect-ratio: 4 / 5; }
.tag { white-space: nowrap; font-size: 10px; padding: 2px 6px; background: var(--bg); border: 1px solid var(--border-strong); color: var(--text-1); }
.arrows { display: flex; align-items: center; gap: 2px; flex: none; }
.arrows .pos { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 4px; }
.icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: var(--text-1); }
.icon[aria-disabled="true"] { color: var(--text-3); cursor: default; }
.icon:not([aria-disabled="true"]):hover { background: var(--page); }
.icon svg { width: 14px; height: 14px; }
.btn { white-space: nowrap; padding: 7px 12px; font-size: 12px; background: var(--bg); border: 1px solid var(--border-strong); color: var(--text-1); }
.btn:hover { background: var(--page); }
.btn--sm { padding: 6px 10px; }
.btn[aria-pressed="true"] { background: var(--page); }
.btn-solid { width: 100%; padding: 12px; font-size: 14px; font-weight: 500; background: var(--text-1); color: var(--bg); border: 1px solid var(--text-1); }
.btn-solid:hover { background: var(--text-2); }
.btn-solid[aria-pressed="true"] { background: var(--bg); color: var(--text-1); border-color: var(--border-strong); }
.btn-solid[aria-disabled="true"] { background: var(--border); color: var(--text-3); border-color: var(--border); cursor: default; }
.link { white-space: nowrap; padding: 4px 0; font-size: 12px; font-weight: 600; color: var(--text-1); }
.link:hover { text-decoration: underline; }
.tabs2 { display: grid; grid-template-columns: 1fr 1fr; background: var(--page); padding: 2px; }
.tabs2 button { padding: 6px; font-size: 11px; letter-spacing: .1em; color: var(--text-3); white-space: nowrap; }
.tabs2 button[aria-selected="true"] { background: var(--bg); color: var(--text-1); }
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--text-1); color: var(--bg); padding: 10px 16px; font-size: 13px; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.veil { position: absolute; inset: 0; background: var(--veil); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; pointer-events: none; text-align: center; padding: 16px; }
.bar { width: 140px; height: 2px; background: var(--page); overflow: hidden; }
.bar > i { display: block; width: 40%; height: 100%; background: var(--text-1); animation: dimeBar 1.1s linear infinite; }
@keyframes dimeBar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .bar > i { animation: none; transform: translateX(80%); } }

/* ── Studio 3열 */
.studio { width: 100%; max-width: 1480px; margin: 0 auto; padding: 24px; display: grid; gap: 32px; align-items: start; grid-template-columns: minmax(240px, 20fr) minmax(0, 54fr) minmax(280px, 26fr); grid-template-areas: "left center right"; }
@media (max-width: 1199px) { .studio { grid-template-columns: minmax(200px, 22fr) minmax(0, 52fr) minmax(240px, 26fr); } }
/* 태블릿(시안 tablet 배치) — 왼쪽 | 가운데 위 · 오른쪽 아래 */
@media (max-width: 1099px) { .studio { grid-template-columns: minmax(220px, 32fr) minmax(0, 68fr); grid-template-areas: "left center" "left right"; } }
.col-l { grid-area: left; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.col-c { grid-area: center; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.col-r { grid-area: right; display: flex; flex-direction: column; gap: 22px; min-width: 0; }

.prompt { display: flex; flex-direction: column; gap: 8px; }
.prompt label { font-size: 11px; letter-spacing: .1em; color: var(--text-3); padding-top: 4px; }
.prompt__box { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border-strong); }
.prompt__box textarea { resize: none; border: 0; background: transparent; padding: 10px 12px 4px; font-size: 13px; line-height: 1.5; color: var(--text-1); }
.prompt__box textarea:focus-visible { outline: none; }
.prompt__box:focus-within { outline: 2px solid var(--text-1); outline-offset: 2px; }
.prompt__go { display: flex; justify-content: flex-end; padding: 4px 6px 6px; }
.prompt__go button { white-space: nowrap; padding: 6px 10px; font-size: 12px; font-weight: 600; color: var(--text-1); }
.prompt__go button:hover { text-decoration: underline; }
.answer { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--page); }
.answer__l { font-size: 13px; line-height: 1.6; text-wrap: pretty; }
.answer__ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 2px; }
.answer__ask b { font-size: 13px; font-weight: 600; }
.answer__ask div { display: flex; gap: 6px; }
.answer__retry { white-space: nowrap; padding: 7px 10px; font-size: 12px; color: var(--text-3); }
.answer__retry:hover { color: var(--text-1); }
.answer__try { white-space: nowrap; padding: 7px 14px; font-size: 12px; font-weight: 600; background: var(--text-1); color: var(--bg); }
.answer__note { font-size: 12px; line-height: 1.5; color: var(--text-3); }

.cats-wrap { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--border); padding-top: 20px; }
.cats { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.cats button { padding: 4px 0; font-size: 13px; color: var(--text-3); border-bottom: 2px solid transparent; }
.cats button:hover { color: var(--text-1); }
.cats button[aria-current="true"] { color: var(--text-1); font-weight: 600; border-bottom-color: var(--text-1); }
.reco-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.reco-h b { display: block; font-size: 13px; font-weight: 600; }
.reco-h small { display: block; font-size: 11px; color: var(--text-3); }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.pcard { display: flex; flex-direction: column; gap: 6px; min-width: 0; text-align: left; }
.pcard .ph { outline-offset: 2px; }
.pcard[aria-pressed="true"] .ph { outline: 2px solid var(--text-1); }
.pcard__tags { position: absolute; top: 6px; left: 6px; display: flex; gap: 4px; pointer-events: none; }
.pcard__b { font-size: 10px; letter-spacing: .08em; color: var(--text-3); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard__n { font-size: 12px; line-height: 1.35; text-wrap: pretty; }
.pcard__f { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; }
.pcard--ph { visibility: hidden; }

.strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.strip__t { display: flex; align-items: baseline; gap: 2px 8px; flex-wrap: wrap; flex: 1 1 0; min-width: 0; overflow: hidden; }
.strip__k { font-size: 10px; letter-spacing: .12em; white-space: nowrap; }
.strip__n { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 100%; }
.strip__m { font-size: 12px; font-variant-numeric: tabular-nums; }
.strip__meta { flex-basis: 100%; font-size: 12px; line-height: 1.4; color: var(--text-3); }
.stage-row { display: flex; gap: 12px; align-items: flex-start; flex-direction: column; }
.stage { position: relative; aspect-ratio: 4 / 5; height: 640px; max-width: 100%; margin: 0 auto; background: var(--page); overflow: hidden; }
.stage__cam { position: absolute; inset: 0; transition: transform 700ms cubic-bezier(.2,.7,.2,1), transform-origin 700ms cubic-bezier(.2,.7,.2,1); }
.stage__cam img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage__k { position: absolute; top: 18px; left: 20px; font-size: 10px; letter-spacing: .14em; pointer-events: none; }
.stage__lbl { position: absolute; bottom: 18px; left: 20px; font-size: 11px; letter-spacing: .1em; color: var(--text-3); pointer-events: none; }
.stage__none { position: absolute; inset: 0; background: var(--page); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.stage__none b { font-size: 15px; font-weight: 600; }
.stage__none span { font-size: 13px; color: var(--text-3); max-width: 260px; }
.stage__none .btn-solid { width: auto; padding: 11px 18px; }
.thumbs-wrap { display: flex; justify-content: center; width: 100%; }
.thumbs { display: grid; gap: 12px 10px; grid-template-columns: repeat(auto-fill, 72px); justify-content: center; width: 100%; }
.thumb { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.thumb__img { position: relative; display: block; width: 72px; height: 72px; overflow: hidden; background: var(--page); outline-offset: 2px; }
.thumb[aria-selected="true"] .thumb__img { outline: 2px solid var(--text-1); }
.thumb__img > span { position: absolute; inset: 0; }
.thumb__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb small { font-size: 11px; white-space: nowrap; color: var(--text-3); }
.thumb[aria-selected="true"] small { color: var(--text-1); }
@media (min-width: 1360px) {
  .stage-row { flex-direction: row; }
  .stage { margin: 0; flex: 0 1 auto; }
  .thumbs-wrap { flex: 1 1 0; width: auto; }
  .thumbs { grid-template-columns: repeat(2, 88px); width: auto; }
  .thumb__img { width: 88px; height: 88px; }
}

.rtabs { min-height: 56px; padding-bottom: 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.rtabs .tabs2 { flex: 1; }
.rtabs .tabs2 button { padding: 9px 6px; }
.lp-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lp-head > div:first-child { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.h2 { font-size: 18px; line-height: 1.25; font-weight: 600; text-wrap: pretty; }
.item { display: flex; flex-direction: column; border-bottom: 1px solid var(--border); }
.item__row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; color: var(--text-3); padding: 10px 6px; margin: 0 -6px; }
.item__row:hover, .item__row[aria-expanded="true"] { color: var(--text-1); }
.item__row .ph { width: 44px; height: 44px; }
.item__mid { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.item__mid small { font-size: 10px; }
.item__mid b { font-size: 13px; color: var(--text-1); font-weight: 400; }
.item__row[aria-expanded="true"] .item__mid b { font-weight: 600; }
.item__mid i { font-size: 11px; font-style: normal; }
.item__end { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.item__end span { font-size: 12px; white-space: nowrap; }
.item__end b { font-size: 11px; font-weight: 400; color: var(--text-1); font-variant-numeric: tabular-nums; }
.item__body { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 16px 56px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.metrics--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric { display: flex; flex-direction: column; gap: 2px; }
.metric small { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.metric b { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.metric:first-child b { font-size: 16px; font-weight: 600; }
.metric b.low { color: var(--text-3); }
.why { display: flex; flex-direction: column; }
.why span { font-size: 12px; line-height: 1.5; text-wrap: pretty; }
.note { font-size: 11px; line-height: 1.5; color: var(--text-3); text-wrap: pretty; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.alts { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.alts__h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.alts__h small { font-size: 11px; color: var(--text-3); }
.alts__g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.alt { display: flex; flex-direction: column; gap: 3px; min-width: 0; text-align: left; }
.alt small { font-size: 10px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alt span { font-size: 11px; line-height: 1.3; }
.alt b { font-size: 11px; font-weight: 400; font-variant-numeric: tabular-nums; }
.look-foot { display: flex; flex-direction: column; gap: 8px; }
.look-foot__l { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ord-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ord-row .ph { width: 44px; height: 44px; }
.ord-row__m { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ord-row__m small, .ord-row__m i { font-size: 10px; color: var(--text-3); font-style: normal; }
.ord-row__m i { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord-row__m b { font-size: 13px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ord-row.is-owned b, .ord-row.is-owned .ord-row__p { color: var(--text-3); }
.ord-row__p { font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.total span { font-size: 13px; color: var(--text-3); }
.total b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.soon { width: 100%; max-width: 1480px; margin: 0 auto; padding: 8px 24px 0; }
.soon div { border-top: 1px solid var(--border); height: 240px; display: flex; align-items: center; justify-content: center; font-size: 13px; letter-spacing: .08em; color: var(--text-3); }

/* ── My DIME (데스크톱) */
.mine { width: 100%; max-width: 1280px; margin: 0 auto; padding: 32px 24px 56px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.mine__l { flex: 1 1 280px; max-width: 400px; display: flex; flex-direction: column; gap: 10px; }
.mine__r { flex: 2 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.best { position: relative; }
.best__pos { position: absolute; top: 14px; right: 14px; font-size: 11px; padding: 3px 8px; background: var(--bg); font-variant-numeric: tabular-nums; }
.best__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--bg); border: 1px solid var(--border); }
.best__nav svg { width: 16px; height: 16px; }
.best__cap { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; background: var(--bg); pointer-events: none; }
.best__cap b { font-size: 13px; font-weight: 600; }
.best__cap small { font-size: 11px; color: var(--text-3); }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.kv b { font-size: 13px; font-weight: 600; }
.kv small { font-size: 11px; color: var(--text-3); }
.keep { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--border); padding: 10px 0 0; font-size: 12px; text-align: left; }
.ai { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 6px; }
.ai__h { font-size: 15px; font-weight: 600; line-height: 1.4; text-wrap: pretty; }
.swatches { display: flex; gap: 8px; }
.swatch { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.swatch i { width: 28px; height: 28px; border: 1px solid var(--border); display: block; }
.swatch small { font-size: 10px; color: var(--text-3); white-space: nowrap; }
.pct { display: flex; flex-direction: column; gap: 4px; }
.pct__l { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.pct__t { display: block; height: 4px; background: var(--border); overflow: hidden; }
.pct__t i { display: block; height: 100%; background: var(--text-1); }
.ai-row { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ai-row small { font-size: 11px; color: var(--text-3); }
.ai-row span { font-size: 13px; line-height: 1.55; text-wrap: pretty; }
.h1 { font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; }
.stat small { font-size: 11px; color: var(--text-3); }
.stat b { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sugs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.sug { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--border); }
.sug__h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sug__h b { font-size: 14px; font-weight: 600; }
.sug__h span { font-size: 12px; font-variant-numeric: tabular-nums; }
.sug p { font-size: 12px; line-height: 1.5; color: var(--text-3); flex: 1; }
.sug .btn { align-self: flex-start; }
.lists { display: flex; flex-wrap: wrap; gap: 28px 32px; }
.lists > div { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; }
.lists h3 { margin: 0; font-size: 13px; font-weight: 600; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.lrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; text-align: left; border-bottom: 1px solid var(--border); padding: 12px 6px; margin: 0 -6px; }
.lrow:hover { background: var(--page); }
.lrow span { font-size: 13px; }
.lrow b { font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.lrow small { grid-column: 1 / -1; font-size: 11px; color: var(--text-3); }
.igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px 12px; }
.icard { display: flex; flex-direction: column; gap: 5px; min-width: 0; text-align: left; }
.icard small { font-size: 10px; letter-spacing: .08em; color: var(--text-3); text-transform: uppercase; }
.icard span { font-size: 12px; line-height: 1.35; }
.icard i { font-size: 11px; color: var(--text-3); font-style: normal; }
.sec { display: flex; flex-direction: column; gap: 14px; }
.sec > h3 { margin: 0; font-size: 13px; font-weight: 600; }

/* ── 내 모델 만들기 */
.ob { width: 100%; max-width: 980px; margin: 0 auto; padding: 40px 24px 64px; display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.ob__l { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.ob__r { flex: 1 1 300px; max-width: 400px; width: 100%; }
.ob__bars { display: flex; gap: 4px; }
.ob__bars i { flex: 1; height: 2px; background: var(--border); }
.ob__bars i.on { background: var(--text-1); }
.ob h1 { font-size: 24px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.ob__d { font-size: 14px; line-height: 1.6; color: var(--text-3); text-wrap: pretty; }
.tip { display: grid; grid-template-columns: 20px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 1.5; }
.tip span:first-child { color: var(--text-3); font-variant-numeric: tabular-nums; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-3); }
.field input, .field select { width: 100%; font-size: 14px; color: var(--text-1); background: var(--bg); border: 1px solid var(--border-strong); padding: 9px 10px; height: 40px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23666'/%3E%3C/svg%3E");
  background-position: right 16px center; background-size: 10px 6px; background-repeat: no-repeat; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.sum-row span:first-child { color: var(--text-3); }
.sum-row .skip { color: var(--text-3); }
.ob__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ob__acts .btn-solid { width: auto; padding: 11px 18px; }
.ob__acts .btn { padding: 11px 18px; font-size: 14px; }
.ob__back { white-space: nowrap; padding: 11px 8px; font-size: 13px; color: var(--text-3); }
.ob__back:hover { color: var(--text-1); }
.drop { position: absolute; inset: 14px; border: 1px dashed var(--text-3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px; }
.drop span { font-size: 13px; color: var(--text-3); }
.drop .btn { padding: 11px 18px; font-size: 14px; }
.ob__change { position: absolute; right: 12px; bottom: 12px; }

/* ── 바닥 */
.foot { margin-top: auto; border-top: 1px solid var(--border); background: var(--bg); }
.foot__in { width: 100%; max-width: 1480px; margin: 0 auto; padding: 28px 24px 36px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px 40px; font-size: 12px; color: var(--text-3); }
.foot__b { display: flex; flex-direction: column; gap: 6px; }
.foot__b b { font-weight: 600; letter-spacing: .1em; color: var(--text-1); }
.foot__b b + span { font-weight: 500; color: var(--text-1); }
.foot__legal { font-size: 11px; line-height: 1.6; max-width: 60ch; }

/* ── 모바일(760 미만) — 520 열 안 · 아래 5탭 */
.m { width: 100%; max-width: 520px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.m .lp-top { padding: 0 16px; min-height: 52px; gap: 8px; flex-wrap: nowrap; }
.m .lockup__t { display: none; }
.m .top-r { gap: 8px; }
.m__body { flex: 1; padding-bottom: 88px; }
.m__pad { display: flex; flex-direction: column; gap: 16px; padding: 12px 16px 24px; }
.m__title { font-size: 20px; font-weight: 600; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: center; background: var(--bg); border-top: 1px solid var(--border); }
.tabbar__in { width: 100%; max-width: 520px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.tabbar button { height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3); }
.tabbar button[aria-current="page"] { color: var(--text-1); }
.tabbar svg { width: 22px; height: 22px; }
.tabbar small { font-size: 10px; }
.m .toast { bottom: 96px; }
.post { display: flex; flex-direction: column; gap: 10px; padding-bottom: 22px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.post__h { display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.av { width: 32px; height: 32px; background: var(--page); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex: none; }
.av--lg { width: 64px; height: 64px; font-size: 18px; }
.post__who { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; text-align: left; }
.post__who b { font-size: 13px; font-weight: 600; }
.post__who small { font-size: 11px; color: var(--text-3); }
.post__m { font-size: 11px; font-variant-numeric: tabular-nums; }
.post__acts { display: flex; align-items: center; gap: 16px; padding: 0 16px; }
.post__acts button { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.post__acts svg { width: 20px; height: 20px; }
.post__acts .link { margin-left: auto; }
.post__cap { padding: 0 16px; font-size: 13px; line-height: 1.55; text-wrap: pretty; }
.post__cap b { font-weight: 600; }
.mitems { display: flex; flex-direction: column; margin: 0 16px; border-top: 1px solid var(--border); }
.mitem { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.mitem__m { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mitem__m small { font-size: 11px; color: var(--text-3); }
.mitem__m span { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mitem__e { display: flex; align-items: center; gap: 10px; flex: none; }
.mitem__e > span { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mitem__e .btn { min-width: 44px; height: 32px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; white-space: nowrap; height: 34px; padding: 0 14px; font-size: 13px; border: 1px solid var(--border); color: var(--text-3); }
.chip[aria-pressed="true"] { border-color: var(--border-strong); color: var(--text-1); font-weight: 600; }
.lgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
.lcard { display: flex; flex-direction: column; gap: 5px; text-align: left; min-width: 0; }
.lcard b { font-size: 13px; font-weight: 600; }
.lcard small { font-size: 11px; color: var(--text-3); }
.prof { display: flex; align-items: center; gap: 16px; }
.prof__t { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.prof__t b { font-size: 17px; font-weight: 600; }
.prof__t small { font-size: 12px; color: var(--text-3); }
.mstats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mstats div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 0; }
.mstats b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mstats small { font-size: 11px; color: var(--text-3); }
.tabs3 { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--page); padding: 2px; }
.tabs3 button { height: 38px; font-size: 13px; color: var(--text-3); }
.tabs3 button[aria-selected="true"], .tabs3 button[aria-checked="true"] { background: var(--bg); color: var(--text-1); }
.orow { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.orow .ph { width: 48px; height: 48px; }
.orow__m { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.orow__m small { font-size: 11px; color: var(--text-3); }
.orow__m span { font-size: 13px; }
.orow > span:last-child { font-size: 12px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mback { width: 44px; height: 44px; margin-left: -12px; display: flex; align-items: center; justify-content: center; }
.mback svg { width: 20px; height: 20px; }
.dhead { display: flex; align-items: center; gap: 8px; padding: 4px 4px 0; }
.dhead b { font-size: 15px; font-weight: 600; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair .btn-solid, .pair .btn { height: 48px; font-size: 14px; padding: 0 12px; }
.picks { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.picks::-webkit-scrollbar { display: none; }
.pick { flex: none; width: 76px; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.pick .ph { width: 76px; height: 95px; outline-offset: 2px; }
.pick[aria-pressed="true"] .ph { outline: 2px solid var(--text-1); }
.pick small { font-size: 11px; line-height: 1.3; }
.mfield { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-3); }
.mfield textarea { resize: none; font-size: 16px; line-height: 1.5; color: var(--text-1); background: var(--bg); border: 1px solid var(--border-strong); padding: 10px 12px; }
.check { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.check input { width: 20px; height: 20px; accent-color: var(--text-1); }
.mcard { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--page); }
.mcard .btn { align-self: flex-start; height: 36px; padding: 0 14px; font-size: 13px; }
.kvrow { display: flex; justify-content: space-between; align-items: center; min-height: 48px; border-bottom: 1px solid var(--border); gap: 12px; font-size: 14px; }
.kvrow span:first-child { color: var(--text-3); }
.kvrow span:last-child { text-align: right; }
.kvrow .pending { color: var(--text-3); }

/* ── 한 줄 보정(인라인 style 대신 · CSP style-src 'self') — 컴포넌트 규칙 뒤에 둬서 이긴다 */
.u-start-b { align-self:flex-start;font-weight:600; }
.u-block-pb6 { display:block;padding-bottom:6px; }
.u-col10 { display:flex;flex-direction:column;gap:10px; }
.u-col10-pt4 { display:flex;flex-direction:column;gap:10px;padding-top:4px; }
.u-col14 { display:flex;flex-direction:column;gap:14px; }
.u-col14-pb24 { display:flex;flex-direction:column;gap:14px;padding-bottom:24px; }
.u-col6 { display:flex;flex-direction:column;gap:6px; }
.u-col8 { display:flex;flex-direction:column;gap:8px; }
.u-fs11 { font-size:11px; }
.u-fs12 { font-size:12px; }
.u-fs12-note { font-size:12px;line-height:1.6;margin-top:10px; }
.u-fs13 { font-size:13px; }
.u-fs13-block { font-size:13px;display:block; }
.u-fs14 { font-size:14px; }
.u-gap20 { gap:20px; }
.u-btn-tall { height:50px;font-size:15px;font-weight:600; }
.u-left12 { left:12px; }
.u-lh16 { line-height:1.6; }
.u-ml0 { margin-left:0; }
.u-pt12 { padding-top:12px; }
.u-px16 { padding:0 16px; }
.u-msg { padding:24px;font-size:13px; }
.u-right12 { right:12px; }
.u-btn-compact { width:auto;height:36px;padding:0 14px;font-size:13px;font-weight:600; }

/* 빈 그림 자리 = 1px 틀(clue-design 표준) — 다크에서 바탕과 구분되게 · 선택 표시는 outline 이라 겹치지 않음 */
.ph, .stage, .thumb__img { border: 1px solid var(--border); background: var(--surface-muted); }
