/* ═══ 책속물고기 큐레이션 허브 v3 — Premium UI ═══ */

:root {
  --ink: #1A1A2E;
  --dark: #16213E;
  --mid: #0F3460;
  --accent: #E94560;
  --warm: #F5A623;
  --cream: #FFF8F0;
  --milk: #FFFFFF;
  --ghost: #F8F9FC;
  --mist: #E8ECF1;
  --stone: #8B95A5;
  --text: #2D3748;
  --sub: #5A6577;
  --r: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: var(--accent); color: #fff; }
body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text); background: var(--ghost);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─── Animations ─── */
@keyframes fadeIn { from { opacity:0; transform:translateY(8px) } to { opacity:1; transform:translateY(0) } }
@keyframes spin { to { transform:rotate(360deg) } }
@keyframes modalIn { from { opacity:0; transform:scale(.96) } to { opacity:1; transform:scale(1) } }
@keyframes slideDown { from { opacity:0; max-height:0 } to { opacity:1; max-height:600px } }
.fade-in { animation: fadeIn .35s ease-out both; }

/* ─── Header ─── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 20px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 34px; height: 34px; background: rgba(233,69,96,.15);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.logo h1 {
  font-size: 16px; font-weight: 900; color: #fff;
  font-family: 'Noto Serif KR', serif; letter-spacing: -.5px;
}
.logo small {
  font-size: 9px; font-weight: 700; color: var(--accent);
  letter-spacing: 3px; display: block; margin-top: -2px;
}
.header-badge {
  padding: 3px 10px; background: rgba(233,69,96,.15); color: var(--accent);
  border-radius: 20px; font-size: 11px; font-weight: 800; margin-left: 8px;
}
.header-right { display: flex; align-items: center; gap: 8px; }
.btn-admin {
  padding: 7px 14px; border-radius: 10px; font-size: 12px; font-weight: 700;
  border: 1.5px solid rgba(255,255,255,.12); background: transparent;
  color: rgba(255,255,255,.5); cursor: pointer; transition: all .2s;
}
.btn-admin:hover { border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.8); }
.btn-admin.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.admin-dot {
  display: inline-block; width: 6px; height: 6px; background: #4ADE80;
  border-radius: 50%; margin-right: 4px; vertical-align: middle;
}

/* ─── Search Section ─── */
.search-section {
  background: linear-gradient(180deg, var(--ink) 0%, var(--dark) 60%, transparent 100%);
  padding: 0 20px 36px;
}
.search-inner { max-width: 640px; margin: 0 auto; padding-top: 16px; }
.search-wrap { position: relative; }
.search-svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--stone); pointer-events: none;
}
.search-input {
  width: 100%; padding: 15px 110px 15px 46px;
  background: #fff; border: 2px solid transparent;
  border-radius: 14px; font-size: 15px; font-weight: 500;
  color: var(--text); font-family: inherit; transition: all .2s;
  box-shadow: var(--shadow-lg);
}
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 8px 32px rgba(233,69,96,.15); }
.search-input::placeholder { color: var(--stone); font-weight: 400; }
.search-btn {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  padding: 10px 22px; border-radius: 10px; font-size: 13px; font-weight: 700;
  border: none; cursor: pointer; transition: all .15s;
  background: var(--accent); color: #fff;
}
.search-btn:hover { background: #D63A52; transform: translateY(-50%) translateY(-1px); }
.search-hint {
  margin-top: 12px; text-align: center; font-size: 12px; color: rgba(255,255,255,.35);
  display: flex; justify-content: center; align-items: center; gap: 12px;
}
.hint-tag {
  padding: 2px 8px; background: rgba(233,69,96,.2); color: var(--accent);
  border-radius: 6px; font-size: 10px; font-weight: 800;
}

/* ─── Main ─── */
.main { max-width: 1000px; margin: 0 auto; padding: 24px 20px; min-height: 60vh; }

/* ─── Admin Panel ─── */
.admin-panel {
  background: var(--milk); border-bottom: 1px solid var(--mist);
  animation: fadeIn .25s ease-out;
}
.admin-inner { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.admin-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--mist);
  overflow-x: auto;
}
.admin-tab {
  padding: 12px 18px; border: none; background: transparent;
  cursor: pointer; white-space: nowrap; transition: all .15s;
  border-bottom: 2px solid transparent; display: flex; flex-direction: column;
  align-items: flex-start; gap: 1px;
}
.admin-tab:hover { background: var(--ghost); }
.admin-tab.active { border-bottom-color: var(--accent); background: var(--ghost); }
.admin-tab.close {
  margin-left: auto; font-size: 16px; color: var(--stone);
  align-items: center; justify-content: center;
}
.tab-label { font-size: 13px; font-weight: 700; color: var(--text); }
.admin-tab.active .tab-label { color: var(--accent); }
.tab-desc { font-size: 10px; color: var(--stone); }
.admin-content { padding: 20px 0; }

/* Upload Modes */
.upload-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload-mode {
  background: var(--ghost); border: 1.5px solid var(--mist);
  border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 14px;
}
.mode-header { display: flex; align-items: flex-start; gap: 10px; }
.mode-icon { font-size: 22px; flex-shrink: 0; }
.mode-title { font-size: 14px; font-weight: 800; color: var(--text); }
.mode-desc { font-size: 11px; color: var(--stone); margin-top: 2px; line-height: 1.4; }
.btn-mode {
  padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--mist); background: var(--milk); color: var(--text);
  cursor: pointer; text-align: center; transition: all .15s;
}
.btn-mode:hover { border-color: var(--accent); color: var(--accent); }
.btn-mode.replace:hover { border-color: #3B82F6; color: #3B82F6; }
.btn-mode.append:hover { border-color: #10B981; color: #10B981; }
.admin-actions-row {
  display: flex; gap: 10px; margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--mist);
}

/* Add Form */
.add-form {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px;
}
.form-field { display: flex; flex-direction: column; gap: 4px; }
.form-field label {
  font-size: 11px; font-weight: 700; color: var(--sub);
  text-transform: uppercase; letter-spacing: .5px;
}
.form-field .req { color: var(--accent); }
.form-field input, .form-field textarea {
  padding: 10px 12px; border: 1.5px solid var(--mist); border-radius: 10px;
  font-size: 13px; font-family: inherit; color: var(--text);
  background: var(--milk); transition: border-color .15s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-field textarea { resize: vertical; }

/* Manage */
.manage-search {
  display: flex; gap: 8px; align-items: center; margin-bottom: 14px;
}
.manage-input {
  flex: 1; padding: 10px 14px; border: 1.5px solid var(--mist);
  border-radius: 10px; font-size: 13px; font-family: inherit; color: var(--text);
  background: var(--milk);
}
.manage-input:focus { outline: none; border-color: var(--accent); }
.manage-count { font-size: 12px; color: var(--stone); font-weight: 700; white-space: nowrap; }
.manage-list { display: flex; flex-direction: column; gap: 6px; }
.manage-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: var(--ghost); border-radius: 10px;
  border: 1px solid var(--mist); transition: all .15s;
}
.manage-row:hover { border-color: var(--accent); background: #FFF5F7; }
.manage-info { flex: 1; min-width: 0; }
.manage-title { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.manage-meta { font-size: 11px; color: var(--stone); margin-top: 2px; }
.manage-actions { display: flex; gap: 6px; flex-shrink: 0; margin-left: 10px; }
.empty-manage { text-align: center; padding: 32px; color: var(--stone); font-size: 13px; }
.empty-admin { text-align: center; padding: 32px; color: var(--stone); font-size: 14px; }

/* Buttons */
.btn-sm {
  padding: 7px 14px; border-radius: 8px; font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--mist); background: var(--milk); color: var(--text);
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.btn-sm:hover { border-color: #C8CCD3; }
.btn-sm.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-sm.primary:hover { background: #D63A52; }
.btn-sm.edit { background: #EBF5FF; color: #3B82F6; border-color: #BFDBFE; }
.btn-sm.del { background: #FFF1F2; color: #EF4444; border-color: #FECDD3; }
.btn-sm.export { background: #ECFDF5; color: #059669; border-color: #A7F3D0; }
.btn-sm.danger { background: #FFF1F2; color: #EF4444; border-color: #FECDD3; }
.btn-submit {
  padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 700;
  border: none; background: var(--accent); color: #fff; cursor: pointer;
  transition: all .15s; grid-column: 1 / -1;
}
.btn-submit:hover { background: #D63A52; }
.btn-loadmore {
  padding: 12px 28px; border-radius: 12px; font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--mist); background: var(--milk); color: var(--text);
  cursor: pointer; transition: all .15s;
}
.btn-loadmore:hover { border-color: var(--accent); color: var(--accent); }
.load-more-wrap { text-align: center; padding: 24px; }

/* ─── Timeline ─── */
.timeline {
  background: var(--milk); border-radius: var(--r);
  border: 1px solid var(--mist); padding: 14px 16px;
  margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
.timeline-header {
  display: flex; align-items: center; gap: 6px; margin-bottom: 10px;
}
.tl-icon { font-size: 14px; }
.tl-title { font-size: 12px; font-weight: 800; color: var(--text); }
.tl-sub { font-size: 10px; color: var(--stone); font-weight: 600; }
.tl-clear {
  margin-left: auto; padding: 3px 10px; border-radius: 6px;
  font-size: 10px; font-weight: 700; background: #FFF1F2; color: var(--accent);
  border: none; cursor: pointer;
}
.timeline-chips {
  display: flex; gap: 5px; overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: none;
}
.timeline-chips::-webkit-scrollbar { display: none; }
.chip {
  padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 700;
  white-space: nowrap; flex-shrink: 0; cursor: pointer; transition: all .15s;
  background: var(--ghost); color: var(--sub); border: 1px solid var(--mist);
}
.chip:hover { background: var(--mist); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip.new { border-color: #FECDD3; color: var(--accent); }
.chip .cnt { font-weight: 500; font-size: 10px; opacity: .7; }

/* ─── Filter Banner ─── */
.filter-banner {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding: 10px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 700; animation: fadeIn .2s ease-out;
}
.filter-banner.yr { background: #EBF5FF; color: #1E40AF; }
.filter-banner.kw { background: #FEF3C7; color: #7B5800; }
.filter-banner button {
  padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700;
  background: rgba(0,0,0,.06); border: none; cursor: pointer; color: inherit;
}

/* ─── Suggestion Cards ─── */
.suggest-section { margin-bottom: 22px; }
.suggest-title {
  font-size: 16px; font-weight: 900; color: var(--text); margin-bottom: 12px;
  font-family: 'Noto Serif KR', serif;
}
.suggest-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
.suggest-card {
  background: var(--milk); border: 1px solid var(--mist);
  border-radius: var(--r); padding: 14px 16px;
  box-shadow: var(--shadow-sm); transition: all .15s;
}
.suggest-card:hover { box-shadow: var(--shadow-md); }
.sc-label { font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-chip {
  padding: 7px 12px; border-radius: 8px; font-size: 11.5px; font-weight: 600;
  background: var(--ghost); color: var(--sub); border: 1px solid var(--mist);
  cursor: pointer; transition: all .15s; line-height: 1.3;
}
.sc-chip:hover { background: #FFF1F2; color: var(--accent); border-color: #FECDD3; }

/* ─── Book Grid ─── */
.book-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

/* ─── Book Card ─── */
.book-card {
  background: var(--milk); border: 1px solid var(--mist);
  border-radius: var(--r); padding: 16px 18px; cursor: pointer;
  transition: all .2s; position: relative;
  box-shadow: var(--shadow-sm);
}
.book-card:hover {
  border-color: var(--accent); box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-top { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.tag {
  padding: 2px 7px; border-radius: 5px; font-size: 10px; font-weight: 700;
}
.tag.cat { background: #FFF7ED; color: #C2410C; }
.tag.age { background: #F0FDF4; color: #15803D; }
.tag.yr { background: #EFF6FF; color: #1D4ED8; }
.card-title {
  font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.4;
  margin-bottom: 4px; font-family: 'Noto Serif KR', serif;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-author { font-size: 12px; color: var(--sub); margin-bottom: 6px; font-weight: 500; }
.card-desc {
  font-size: 11.5px; color: var(--stone); line-height: 1.55; margin-top: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  padding-top: 8px; border-top: 1px solid var(--mist);
}
.card-bottom { margin-top: 8px; }
.card-price { font-size: 12px; font-weight: 800; color: var(--accent); }

/* ─── AI Panel ─── */
.ai-panel {
  margin-bottom: 20px; border-radius: var(--r); overflow: hidden;
  background: var(--milk); border: 1px solid var(--mist);
  box-shadow: var(--shadow-md);
}
.ai-header {
  padding: 14px 18px; display: flex; align-items: center; justify-content: space-between;
  background: var(--ink); color: #fff;
}
.ai-left { display: flex; align-items: center; gap: 10px; }
.ai-icon { font-size: 20px; }
.ai-title { font-size: 13px; font-weight: 800; }
.ai-sub { font-size: 11px; color: rgba(255,255,255,.4); font-weight: 600; }
.ai-btns { display: flex; gap: 6px; }
.ai-btns button {
  padding: 5px 12px; border-radius: 8px; font-size: 11px; font-weight: 700;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); border: none; cursor: pointer;
}
.ai-btns button:hover { background: rgba(255,255,255,.15); color: #fff; }

.ai-messages {
  max-height: 420px; overflow-y: auto; padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--ghost);
}
.ai-msg { display: flex; }
.ai-msg.user { justify-content: flex-end; }
.ai-msg.assistant { justify-content: flex-start; }
.msg-bubble {
  max-width: 85%; padding: 12px 16px; font-size: 13px;
  line-height: 1.8; font-weight: 500; white-space: pre-wrap; word-break: break-word;
}
.ai-msg.user .msg-bubble {
  border-radius: 16px 16px 4px 16px;
  background: var(--accent); color: #fff;
}
.ai-msg.assistant .msg-bubble {
  border-radius: 16px 16px 16px 4px;
  background: var(--milk); color: var(--text); border: 1px solid var(--mist);
}
.msg-bubble.loading { display: flex; align-items: center; gap: 8px; color: var(--stone); }
.ai-books-row {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 18px;
  background: var(--ghost); border-top: 1px solid var(--mist);
}
.mini-card {
  flex-shrink: 0; width: 200px; padding: 10px 12px;
  background: var(--milk); border: 1px solid var(--mist);
  border-radius: 10px; cursor: pointer; transition: all .15s;
}
.mini-card:hover { border-color: var(--accent); }
.mc-title {
  font-size: 12px; font-weight: 800; color: var(--text); margin-bottom: 2px;
  font-family: 'Noto Serif KR', serif;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mc-author { font-size: 10px; color: var(--stone); }
.ai-input-wrap {
  padding: 12px 18px; border-top: 1px solid var(--mist);
  display: flex; gap: 8px; background: var(--milk);
}
.ai-input {
  flex: 1; padding: 10px 14px; background: var(--ghost); border: 1.5px solid var(--mist);
  border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--text); font-family: inherit;
}
.ai-input:focus { outline: none; border-color: var(--accent); }
.ai-send {
  padding: 10px 20px; border-radius: 10px; font-weight: 700; font-size: 13px;
  border: none; cursor: pointer; background: var(--accent); color: #fff; transition: all .15s;
}
.ai-send:hover { background: #D63A52; }
.ai-send:disabled { background: var(--mist); color: var(--stone); }

/* ─── Upload Area ─── */
.upload-area {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 80px 24px; text-align: center;
  background: var(--milk); border-radius: 20px;
  border: 2px dashed var(--mist);
}
.upload-icon { font-size: 52px; margin-bottom: 18px; }
.upload-area h2 {
  font-size: 20px; font-weight: 900; color: var(--text); margin-bottom: 8px;
  font-family: 'Noto Serif KR', serif;
}
.upload-area p { font-size: 14px; color: var(--sub); line-height: 1.7; margin-bottom: 24px; }
.upload-lock { font-size: 12px; color: var(--stone); margin-top: 12px; }
.btn-upload {
  padding: 14px 30px; border-radius: 14px; font-size: 15px; font-weight: 700;
  background: var(--accent); color: #fff;
  border: none; cursor: pointer; box-shadow: 0 6px 20px rgba(233,69,96,.25);
  transition: all .2s;
}
.btn-upload:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(233,69,96,.3); }

/* ─── Modal ─── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px); z-index: 100; display: flex;
  align-items: center; justify-content: center; padding: 16px;
}
.modal-content {
  background: var(--milk); border-radius: 18px; width: 100%; max-width: 560px;
  max-height: 85vh; overflow: auto; box-shadow: var(--shadow-lg);
  animation: modalIn .25s ease-out;
}
.modal-content.edit-modal { max-width: 640px; }
.modal-content.pin-modal { max-width: 320px; }
.modal-bar {
  height: 4px; background: linear-gradient(90deg, var(--accent), var(--warm));
  border-radius: 18px 18px 0 0;
}
.modal-bar.edit { background: linear-gradient(90deg, #3B82F6, #60A5FA); }
.modal-body { padding: 24px; }
.modal-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.modal-close {
  padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 700;
  background: var(--ghost); color: var(--sub); border: 1px solid var(--mist);
  cursor: pointer;
}
.modal-field { margin-bottom: 16px; }
.mf-label {
  font-size: 10px; font-weight: 800; color: var(--accent);
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 4px;
}
.mf-value { font-size: 14px; color: var(--text); line-height: 1.7; word-break: break-word; }
.edit-title { font-size: 16px; font-weight: 900; }
.edit-form {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
}
.edit-buttons {
  display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px;
  padding-top: 18px; border-top: 1px solid var(--mist);
}

/* ─── PIN ─── */
.pin-input {
  width: 100%; padding: 14px; background: var(--ghost);
  border: 2px solid var(--mist); border-radius: 12px;
  text-align: center; font-size: 22px; font-weight: 800;
  letter-spacing: 10px; color: var(--text); margin-bottom: 16px; font-family: inherit;
}
.pin-input:focus { outline: none; border-color: var(--accent); }

/* ─── Spinner ─── */
.spinner {
  width: 16px; height: 16px; border: 2.5px solid var(--mist);
  border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite;
  display: inline-block;
}

/* ─── Toast ─── */
.toast {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 200; padding: 12px 26px; border-radius: 12px;
  font-weight: 700; font-size: 13px; box-shadow: var(--shadow-lg);
  animation: fadeIn .3s ease-out; max-width: 90vw; text-align: center;
}
.toast.success { background: #D1FAE5; color: #065F46; }
.toast.error { background: #FEE2E2; color: #B91C1C; }
.toast.info { background: #DBEAFE; color: #1E40AF; }

/* ─── Empty State ─── */
.empty-state {
  padding: 60px 24px; text-align: center; background: var(--milk);
  border-radius: 18px; border: 1px solid var(--mist);
}
.empty-icon { font-size: 38px; margin-bottom: 12px; }
.empty-state h3 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.empty-state p { font-size: 12px; color: var(--stone); }

/* ─── Footer ─── */
.footer {
  margin-top: 48px; padding: 20px;
  background: var(--ink); color: rgba(255,255,255,.4);
}
.footer-inner {
  max-width: 1000px; margin: 0 auto; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 10px;
}
.f-brand { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.6); }
.f-lock { font-size: 10px; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--mist); border-radius: 2px; }

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .book-grid { grid-template-columns: 1fr; }
  .suggest-grid { grid-template-columns: 1fr; }
  .upload-modes { grid-template-columns: 1fr; }
  .search-input { font-size: 14px; padding-right: 90px; }
  .header-inner { height: 50px; }
  .logo h1 { font-size: 14px; }
  .add-form { grid-template-columns: 1fr; }
  .edit-form { grid-template-columns: 1fr; }
}
