/* 정보 구조 C1: 아래 탭(오늘 · 입혀 보기 · 옷장 · 나), 입혀 보기 시트, 옷장 분절, 나 탭 머리. style.css 뒤에 읽는다(색·크기 토큰은 style.css). */

/* ---- 아래 탭: 네 칸을 똑같이 나눈다. 입혀 보기는 줄 위로 띄우지 않고 한 칸 안에 둔다(본문을 덮지 않고, 칸 폭이 같아 치우쳐 보이지 않는다) ---- */
.nav-try { display: flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1rem; border: 0; border-radius: var(--pill); background: var(--ink); color: var(--on-brand); box-shadow: none; font-size: .95rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.nav-try:hover { background: var(--btn-hover, var(--ink)); }
.nav-try .nav-disc { display: inline-grid; place-items: center; }
.nav-try .ic { width: 20px; height: 20px; }
.top nav a:focus-visible, .nav-try:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
@media all { /* 모든 폭에서 아래 탭(넓은 화면은 style.css 끝의 폰 폭 기둥 안에) */
  /* :where 로 우선순위를 낮춰, style.css 의 '탭 숨기기'(로그인 전·시작 화면·설문)가 그대로 이기게 */
  :where(.top) nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; justify-content: stretch; }
  .top nav a, .top nav .nav-try { flex-direction: column; justify-content: center; align-items: center; gap: 3px; min-width: 0; min-height: var(--nav-h); padding: 0; font-size: 13px; font-weight: 700; }
  .top nav a { box-shadow: none; }
  /* 떠 있는 유리 탭바(앱 v4): 화면 양옆·아래에서 10px 띄우고 흐림. 홈 표시줄 아래를 칠하던 띠는 필요 없다 */
  :where(.top) nav { padding: 0 6px; -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); }
  .top nav::after { content: none; }
  .top nav a, .top nav .nav-try { gap: 2px; font-size: 12px; font-weight: 600; }
  /* 지금 탭: 아이콘 뒤 검은 알약(머티리얼식 표시) + 굵은 글자. 모든 탭이 같은 알약 자리를 가져 고를 때 흔들리지 않는다 */
  .top nav a .ic { width: 50px; height: 30px; padding: 4px 14px; border-radius: var(--pill); stroke-width: 1.8; }
  .top nav a[aria-current="page"] { color: var(--nav-on-fg); font-weight: 800; box-shadow: none; }
  .top nav a[aria-current="page"] .ic { background: var(--brand-soft); color: var(--brand); stroke-width: 2.2; }
  .top nav a:active .ic, .top nav .nav-try:active .nav-disc { transform: scale(.92); }
  .top nav .nav-try, .top nav .nav-try:hover { background: none; color: var(--ink); border-radius: var(--nav-r); }
  /* 가운데 '입혀 보기': 포인트 색 알약(쇼핑 앱의 가운데 동작) */
  .top nav .nav-try .nav-disc { width: 50px; height: 30px; border-radius: var(--pill); background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(190, 24, 93, .3); transition: transform var(--t-fast) var(--spring); }
  .top nav .nav-try .ic { display: block; width: 19px; height: 19px; stroke: currentColor; }
  .top nav .nav-try[aria-current] { box-shadow: none; font-weight: 800; } .top nav .nav-try[aria-current] .nav-disc { box-shadow: 0 0 0 3px var(--accent-soft); }
}

/* ---- 시트 공통 ---- */
.sheet-lead { margin: 0 0 12px; color: var(--sub); font-size: 14px; line-height: 1.5; }

/* ---- 입혀 보기 시트 ---- */
.try-cost { display: flex; flex-direction: column; gap: 2px; margin: 0 0 12px; padding: 10px 12px; border-radius: var(--r-md); background: var(--panel); font-size: 14px; }
.try-cost span { color: var(--sub); font-size: 13px; }
.try-where { display: flex; margin: 0 0 8px; }
.try-where button { flex: 1; min-height: 44px; }
.try-link > summary { list-style: none; cursor: pointer; }
.try-link > summary::-webkit-details-marker { display: none; }
.try-link form { display: flex; gap: 8px; margin: 4px 12px 8px; }
.try-link input { flex: 1; min-width: 0; min-height: 48px; }

/* ---- 옷장: 머리(＋)와 분절 옷 / 코디 / 살까 말까 ---- */
.closet-head .icon-btn.add-btn { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: var(--grad); color: var(--on-brand); box-shadow: none; }
.closet-head .add-btn .ic { width: 22px; height: 22px; stroke: currentColor; }
.closet-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: .2rem 0 1rem; padding: 4px; border-radius: var(--pill); background: var(--card); }
.closet-seg a { display: grid; place-items: center; min-height: 44px; border-radius: var(--pill); color: var(--sub); font-size: .92rem; font-weight: 700; text-decoration: none; }
.closet-seg a[aria-current="page"] { background: var(--brand); color: var(--on-brand); }
.closet-seg a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.seg-hint { margin: -.4rem 0 .8rem; }
.looks-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 0 0 1rem; }
.looks-bar .hint { margin: 0; flex: 1 1 12rem; }
/* 저장한 코디 카드 이름: 누르는 곳을 44px 높이로 */
.card.outfit h3 a.name-link { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- 오늘: 다른 날 칩 · 물어보기 한 줄 ---- */
.home-more { margin: 1.5rem 0; }
.home-more .sec { margin: 1.2rem 0 .6rem; }
.ask-line { display: flex; gap: 8px; }
.ask-line input { flex: 1; min-width: 0; min-height: 48px; }
.ask-line button { flex: none; min-height: 48px; }

/* ---- 나: 맨 위 내 모델 ---- */
.me-card { display: flex; gap: 14px; align-items: center; margin: 0 0 1.5rem; padding: 14px; border-radius: var(--r-lg); background: var(--panel); }
.me-face { position: relative; flex: none; width: 84px; height: 104px; overflow: hidden; border-radius: var(--r-md); background: var(--soft); display: grid; place-items: center; }
.me-face img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.me-face .src-tag { top: auto; bottom: 6px; left: 6px; }
.me-card strong { font-size: 1.05rem; } .me-card p { margin: 2px 0 8px; font-size: 13px; color: var(--sub); }

/* ---- 고정 버튼(옷 등록)이 탭바 위에 오고, 입력 칸으로 옮겨 갈 때 그 버튼 뒤로 숨지 않게 ---- */
@media all {
  html { scroll-padding-bottom: calc(var(--nav-h) + 112px + env(safe-area-inset-bottom)); } /* 고정 버튼 줄(약 72px) + 여유 */
  .sticky-actions { bottom: calc(var(--nav-h) + var(--nav-gap) + env(safe-area-inset-bottom)); flex-wrap: nowrap; }
  .card .row.sticky-actions > button, .card .row.sticky-actions > button.primary { flex: 1 1 0; min-width: 0; padding-inline: .6rem; white-space: nowrap; }
}

/* 예시 사진(AI가 그린 옷 사진)이 낀 코디 보드의 'AI 생성' 표시 자리 */
.card.outfit .thumb, .cmp-board { position: relative; }

/* ---- 옷 추가 › 이름으로: 종류별 묶음, 눌린 칩은 ✓, 고른 수·횟수를 보여 주는 고정 버튼 ---- */
.name-group h3 { margin: .8rem 0 .4rem; font-size: .9rem; color: var(--sub); }
.name-group button[aria-pressed="true"]::before { content: "✓ "; }
.names-bar .hint { margin: 0 0 6px; padding-inline: 12px; }
.names-bar button { width: 100%; }
/* 옷 등록 › 정보 입력의 버튼 줄(폼 밖에 둔 고정 줄) */
.add-go > button { flex: 1 1 0; min-width: 0; white-space: nowrap; }
