/* 묘수 책장 — 종이 바탕, 초록 책등. 뼈대는 /shared/myosu.css, 여기는 색과 책장 전용 모양만. */
:root {
  --c: #2e8b62;
  --c-deep: #1f6b4a;
  --c-soft: #e2f1e9;
  --bg: #f6f3ee;
}

/* 첫 화면 책장 그림 */
.shelf-art { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 92px; padding: 0 0 8px; border-bottom: 6px solid #c9b79c; width: 220px; margin: 8px auto 0; border-radius: 2px; }
.shelf-art i { display: block; width: 22px; border-radius: 4px 4px 2px 2px; background: var(--c); }
.shelf-art i:nth-child(1) { height: 70px; background: #e9a55b; }
.shelf-art i:nth-child(2) { height: 82px; }
.shelf-art i:nth-child(3) { height: 62px; background: #6f8fd8; }
.shelf-art i:nth-child(4) { height: 76px; background: #d9665b; }
.shelf-art i:nth-child(5) { height: 84px; background: #8a7a68; }
.shelf-art i:nth-child(6) { height: 58px; background: #f0c64f; transform: rotate(-12deg); transform-origin: bottom left; margin-left: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .shelf-art i { animation: rise .5s cubic-bezier(.3,1.4,.5,1) both; }
  .shelf-art i:nth-child(2) { animation-delay: .05s } .shelf-art i:nth-child(3) { animation-delay: .1s }
  .shelf-art i:nth-child(4) { animation-delay: .15s } .shelf-art i:nth-child(5) { animation-delay: .2s }
  @keyframes rise { from { transform: translateY(20px); opacity: 0 } }
}
.quota { margin: 12px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.quota b { color: var(--c-deep); }
.quota--off { color: var(--danger); }

/* 처리 중 */
.busy h2 { font-size: 24px; letter-spacing: -0.03em; margin: 18px 0 4px; }
.busy > p { color: var(--muted); margin: 0 0 14px; }
.busy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.busy li { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 16px; padding: 10px; box-shadow: var(--shadow); }
.busy li img, .busy li .ph { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; background: var(--c-soft); flex: none; }
.busy li div { display: flex; flex-direction: column; }
.busy li span { font-size: 14px; color: var(--c-deep); font-weight: 600; }
.busy li.err span { color: var(--danger); }

/* 서재 요약 */
.summary { background: var(--surface); border-radius: var(--r); padding: 18px 18px 16px; box-shadow: var(--shadow); margin-top: 6px; }
.summary .who { margin: 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.summary .count { margin: 2px 0 0; font-size: 18px; font-weight: 700; }
.summary .count b { font-size: 46px; color: var(--c); letter-spacing: -0.04em; margin-right: 3px; font-variant-numeric: tabular-nums; }
.summary .sub { margin: 0; color: var(--ink-2); font-size: 14px; }

.save-card { display: flex; flex-direction: column; gap: 3px; text-align: left; width: 100%; border: 0; margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: #fee500; color: #191600; }
.save-card b { font-size: 16px; }
.save-card span { font-size: 14px; opacity: .8; }
.inapp, .bad { font-size: 14px; color: var(--ink-2); background: var(--c-soft); border-radius: 14px; padding: 12px 14px; margin: 12px 0 0; }
.bad { background: #fdf0e6; }

.find { width: 100%; height: 50px; margin-top: 16px; border: 0; border-radius: 14px; padding: 0 16px; background: var(--surface); box-shadow: var(--shadow); font-size: 16px; }
.tabs .tab-check { background: #fff3d6; color: #8a5a00; }
.tabs .tab-check.on { background: #8a5a00; color: #fff; }

/* 책 목록 */
.books { list-style: none; margin: 8px 0 0; padding: 0; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.book { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); }
.book:first-child { border-top: 0; }
.cover { width: 40px; height: 58px; border-radius: 4px; object-fit: cover; background: var(--c-soft); flex: none; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.cover--none { display: inline-block; }
.meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.meta b { font-size: 15px; line-height: 1.35; }
.meta span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x { border: 0; background: none; color: #b9bec7; font-size: 22px; width: 36px; height: 36px; flex: none; }
.group { margin-top: 18px; }
.group h3 { margin: 0 2px; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.group h3 small { color: var(--muted); font-weight: 600; font-size: 13px; }
.rename { display: flex; gap: 6px; }
.rename input { height: 34px; border: 0; border-radius: 10px; padding: 0 10px; box-shadow: var(--shadow); width: 150px; }
.rename button { height: 34px; border: 0; border-radius: 10px; padding: 0 12px; background: var(--c); color: #fff; font-weight: 700; }

/* 이 책이 맞나요? */
.check { background: var(--surface); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); margin-top: 10px; }
.check .read { margin: 0 2px 8px; font-size: 14px; color: var(--ink-2); }
.check .read b { color: var(--ink); }
.shelf-tag { font-size: 12px; color: var(--muted); background: var(--bg); padding: 2px 8px; border-radius: 999px; }
.cands { display: grid; gap: 6px; }
.cand { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; padding: 8px 10px; border-radius: 14px; background: var(--bg); }
.check .none { margin: 4px 2px; color: var(--muted); font-size: 14px; }
.check .row { justify-content: flex-end; }
.search { display: flex; gap: 6px; margin: 10px 0 6px; }
.search input { flex: 1; min-width: 0; height: 44px; border: 0; border-radius: 12px; padding: 0 12px; background: var(--bg); font-size: 16px; }
.search button { height: 44px; border: 0; border-radius: 12px; padding: 0 16px; background: var(--c); color: #fff; font-weight: 700; }
