/* 피규어샵 관리·링크 모음 공통 (휴대폰 우선) */
:root {
  --ink: #17161c;
  --ink-2: #3a3846;
  --muted: #5e5a69;
  --line: #e6e2da;
  --line-2: #cfcac0;
  --bg: #f7f5f0;
  --card: #ffffff;
  --soft: #efece5;
  --accent: #f2c230;
  --dark: #121218;
  --warn-bg: #fff1d1;
  --warn-line: #d9a21b;
  --warn-ink: #4a3200;
  --ok-bg: #ddefe4;
  --ok-ink: #145c34;
  --bad-bg: #fbe0dc;
  --bad-ink: #8e1f12;
  --naver: #145c34;
  --coupang-bg: #ffe9d6;
  --coupang-ink: #8a3b00;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Noto Sans KR', system-ui, -apple-system, sans-serif; font-size: 15px; line-height: 1.5; }
a { color: var(--ink); }
img { max-width: 100%; display: block; }
.wrap { max-width: 520px; margin: 0 auto; min-height: 100vh; padding-bottom: 84px; }
.pad { padding: 16px 20px; }
h1 { margin: 0; font-size: 22px; font-weight: 900; }
h2 { margin: 0; font-size: 16px; font-weight: 900; }
.row { display: flex; align-items: center; gap: 8px; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.muted { color: var(--muted); font-size: 13px; }
.small { font-size: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.soft { background: var(--soft); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--ink-2); }
.warn { background: var(--warn-bg); border: 1px solid #e8c46a; border-radius: 10px; padding: 10px 12px; font-size: 13px; color: #6b4700; }
.warn.strong { border: 2px solid var(--warn-line); color: var(--warn-ink); }
.ok { background: var(--ok-bg); color: var(--ok-ink); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.bad { background: var(--bad-bg); color: var(--bad-ink); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #f4f1ea; }
.btn.outline { border: 2px solid var(--ink); }
.btn.big { min-height: 56px; font-size: 17px; border-radius: 12px; width: 100%; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2); text-decoration: none; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--dark); font-weight: 700; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 4px; white-space: nowrap; flex-shrink: 0; }
.badge.naver { background: #e2f1e6; color: var(--naver); }
.badge.coupang { background: var(--coupang-bg); color: var(--coupang-ink); }
.badge.dark { background: var(--ink); color: #f4f1ea; }
.badge.yellow { background: var(--accent); color: var(--dark); }
.badge.gray { background: var(--line); color: var(--ink-2); }
.badge.ok { background: var(--ok-bg); color: var(--ok-ink); }
.badge.bad { background: var(--bad-bg); color: var(--bad-ink); }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
label.field .help { font-weight: 400; font-size: 12px; color: var(--muted); }
input[type=text], input[type=number], input[type=url], input[type=date], textarea, select { width: 100%; min-height: 46px; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px; font-weight: 400; background: #fff; color: var(--ink); }
textarea { min-height: 120px; line-height: 1.6; }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--ink); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 700; }
.check-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.check-chips label { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 20px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; }
.check-chips input { width: 18px; height: 18px; }
details.fold { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
details.fold summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
details.fold > div { padding-bottom: 14px; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); }
.thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: 8px; background: var(--line); object-fit: cover; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.note { font-size: 12px; color: #8a5a00; font-weight: 500; }
.photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.photos figure { margin: 0; position: relative; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--line); }
.photos figcaption { font-size: 11px; color: var(--muted); }
.photos .x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 14px; border: 0; background: rgba(18,18,24,.7); color: #fff; font-size: 14px; cursor: pointer; }
.copybox { white-space: pre-wrap; background: var(--bg); border-radius: 8px; padding: 10px 12px; font-size: 14px; line-height: 1.65; }
.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi b { font-size: 24px; font-weight: 900; }
.kpi.empty { border: 1px dashed #b5b0a6; border-radius: 12px; padding: 10px; }
.kpi.empty b { font-size: 18px; color: #8e8a99; }
.bar { flex: 1; height: 10px; background: var(--soft); border-radius: 5px; overflow: hidden; }
.bar > i { display: block; height: 10px; background: var(--ink); border-radius: 5px; }
nav.bottom { position: fixed; left: 0; right: 0; bottom: 0; height: 68px; background: #fff; border-top: 1px solid #dcd7ce; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 520px; margin: 0 auto; padding-bottom: env(safe-area-inset-bottom); }
nav.bottom a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; color: var(--muted); text-decoration: none; }
nav.bottom a.on { color: var(--ink); font-weight: 700; }
nav.bottom svg { width: 22px; height: 22px; }
header.sub { height: 56px; padding: 0 12px 0 4px; display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); background: #fff; }
header.sub a.back { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 22px; }
.sheet-bg { min-height: 100vh; background: #5a5864; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet { background: var(--bg); border-radius: 20px 20px 0 0; padding: 16px 20px 100px; display: flex; flex-direction: column; gap: 16px; }
/* 링크 모음 (공개) */
.shop-head { background: var(--dark); color: #f4f1ea; padding: 24px 20px 20px; }
.shop-head .name { font-size: 20px; font-weight: 900; }
.shop-head .desc { font-size: 13px; color: #b9b5c4; margin-top: 6px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 20px; }
.tile { text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); }
.tile .img { position: relative; aspect-ratio: 1; background: var(--line); }
.tile .img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.tile .img .badge { position: absolute; top: 8px; left: 8px; }
.tile .body { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.tile .t { font-size: 14px; font-weight: 700; line-height: 1.35; height: 38px; overflow: hidden; }
.tile .p { font-size: 15px; font-weight: 900; }
.tile .go { font-size: 12px; font-weight: 700; color: var(--naver); }
/* 맨 위 '뒤로' 줄 */
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 12px; border-bottom: 1px solid var(--line); background: #fff; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; }
.back-link[hidden] { display: none; }
.topbar-site { margin-left: auto; font-size: 13px; color: var(--muted); text-decoration: none; padding: 12px 8px; }
header.sub { padding-left: 20px; }
.shop-head .back-link { color: #f4f1ea; padding: 0; min-height: 36px; margin-bottom: 4px; }
.shop-head .name { display: block; }
/* 사이트 방문 */
.visit-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-size: 14px; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.day .col { width: 100%; max-width: 28px; height: 64px; background: var(--soft); border-radius: 5px; display: flex; align-items: flex-end; overflow: hidden; }
.day .col i { display: block; width: 100%; background: var(--ink); border-radius: 5px; }
code { font-family: ui-monospace, monospace; font-size: 13px; min-width: 0; }
