#app .book3d { box-sizing:border-box; flex-shrink:0; padding:0; background:transparent; border:0; border-radius:0; box-shadow:none; overflow:visible; --book-thickness:20px; }
#app .book3d-spine { left:100%; transform:translateX(-50%) rotateY(90deg); }
#app .book3d-pages { left:0; transform:translateX(-50%) rotateY(-90deg); }
#app .book3d-face img { width:100%; height:100%; margin:0; padding:0; border-radius:0; transform:none; object-fit:fill; box-shadow:none; }
#app .book3d-front { box-shadow:-6px 10px 16px #03314b26; }
#app .book3d.is-static .book3d-volume { transform:rotateX(3deg) rotateY(-24deg); }
#app .book3d.is-static { margin:16px auto 22px; }
#app .book-card .book-cover.book3d { width:132px!important; height:192px!important; max-width:132px!important; --book-thickness:20px; }
#app .related-book-card .related-book-cover.book3d { width:115px !important; height:167px !important; max-width:115px !important; aspect-ratio:69/100 !important; margin:16px auto !important; --book-thickness:16px; }
#app .shelf-cover.book3d { width:116px; height:168px; --book-thickness:18px; }
#app .continue-cover.book3d,#app .offline-row-cover.book3d { width:64px; height:93px; margin:4px auto; --book-thickness:10px; }
#app .notfound-cover.book3d { width:80px; height:116px; --book-thickness:12px; }
#app .book-cover-stage .book3d { --book-thickness:28px; }
#app .laptop-books .device-cover { width:58px; height:84px; margin:0 4px; --book-thickness:8px; }
#app .hero-phone-listen .phone-cover { width:82px; height:119px; margin:8px auto 14px; --book-thickness:12px; }
#app .persona-art .persona-cover { width:82px; height:119px; margin:0 7px; --book-thickness:12px; }
#app .persona-art .persona-cover:nth-child(2) { transform:translateY(-22px); }
#app .book-card,#app .related-book-card { min-width:0; }
#app .related-book-card { overflow:hidden; }
.cover-placeholder-title { display:grid; place-items:center; height:100%; padding:16px; color:#03314b; text-align:center; font-weight:800; background:#dbe8f8; }
#app :is(.btn,.blinkist-btn-primary,.blinkist-btn-outline,.daily-play-btn,.daily-teaser-btn,.daily-read-btn,.load-more-books,.collection-offline) { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:11px 18px; border-radius:8px; font-family:inherit; font-weight:700; line-height:1.6; text-align:center; cursor:pointer; transition:background .18s ease,box-shadow .18s ease; }
#app :is(.btn-primary,.blinkist-btn-primary,.daily-play-btn) { border:1px solid #2ce080; background:#2ce080; color:#03314b; box-shadow:none; }
#app :is(.btn-secondary,.blinkist-btn-outline,.daily-teaser-btn,.collection-offline) { border:1px solid #bdcdd4; background:#fff; color:#03314b; }
#app :is(.btn-ghost,.daily-read-btn) { border:1px solid #dce5e9; background:#f3f7f8; color:#365564; }
#app :is(.btn-primary,.blinkist-btn-primary,.header-premium):hover { background:#20c971; }
#app :is(.btn-secondary,.blinkist-btn-outline,.btn-ghost):hover { background:#eaf4ef; border-color:#8ba89c; }
#app :is(button,a,input,select):focus-visible { outline:3px solid #087baf; outline-offset:3px; }
#app button:disabled { opacity:.5; cursor:not-allowed; }
#app .inline-actions { flex-wrap:wrap; }
#app .book-card .favorite { display:grid; place-items:center; width:36px; height:36px; border:1px solid #d4dfe0; border-radius:50%; background:#fff; color:#45616c; z-index:3; cursor:pointer; }
#app .book-card .favorite.active { color:#b42348; background:#fff1f4; }
@media(prefers-reduced-motion:reduce) { #app .book3d-volume,#app button { transition:none; } }
.back-to-top {
  position: fixed;
  z-index: 9850;
  left: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: linear-gradient(135deg, #1f5a47 0%, #123e2f 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(18, 62, 47, 0.32), 0 2px 6px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.25s ease,
              background 0.2s ease,
              box-shadow 0.2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: linear-gradient(135deg, #276d56 0%, #174b39 100%);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(18, 62, 47, 0.42), 0 4px 10px rgba(0, 0, 0, 0.12);
  color: #ffffff;
}
.back-to-top:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(18, 62, 47, 0.28);
}
.back-to-top > span:first-child {
  font-size: 18px;
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s ease;
}
.back-to-top:hover > span:first-child {
  transform: translateY(-2px);
}
.back-to-top-label {
  font-size: 11px;
  font-weight: 800;
}
body:has(.mini-player:not([hidden])) .back-to-top {
  bottom: 96px;
}
@media (max-width: 640px) {
  .back-to-top {
    left: 16px;
    bottom: 16px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
  }
  .back-to-top-label {
    display: none;
  }
  body:has(.mini-player:not([hidden])) .back-to-top {
    bottom: 92px;
  }
}
.personal-notes-box {
  margin-top: 26px;
  padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdfa 0%, #faf6ef 100%);
  border: 1.5px solid #ebd9c5;
  box-shadow: 0 4px 18px rgba(160, 120, 80, 0.06);
}
.personal-notes-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.personal-notes-head h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: #3b2a1a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.personal-notes-head .mini-badge {
  background: #f4eae0;
  color: #8c5828;
  border: 1px solid #e3d0bd;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 11px;
  border-radius: 999px;
}
.personal-notes-textarea {
  width: 100%;
  min-height: 100px;
  max-height: 260px;
  padding: 14px 16px;
  border: 1.5px solid #dfcebe;
  border-radius: 14px;
  background: #ffffff;
  color: #243b2f;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.8;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
  scrollbar-width: thin;
  scrollbar-color: #d1c0af transparent;
}
.personal-notes-textarea::placeholder {
  color: #9f8f80;
  font-size: 12.5px;
  line-height: 1.7;
}
.personal-notes-textarea:focus {
  border-color: #1f5a47;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(31, 90, 71, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
}
.note-status-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef7f2;
  color: #008751;
  border: 1px solid #bce1ce;
  transition: all 0.25s ease;
}
.note-status-badge:empty {
  display: none;
}
.note-status-badge.is-editing {
  background: #fff6e8;
  color: #a05e03;
  border-color: #f0d5a3;
}
.personal-notes-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.note-info-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: #7b6d60;
  font-weight: 600;
}
.note-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
#app #saveBookNoteBtn {
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  padding: 9px 20px !important;
  background: linear-gradient(135deg, #1f5a47 0%, #154434 100%) !important;
  color: #ffffff !important;
  border: 1px solid #143e30 !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 14px rgba(20, 62, 48, 0.22) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
#app #saveBookNoteBtn:hover {
  background: linear-gradient(135deg, #256a54 0%, #194e3c 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1.5px) !important;
  box-shadow: 0 6px 18px rgba(20, 62, 48, 0.3) !important;
}
#app #saveBookNoteBtn.btn-saved-success {
  background: linear-gradient(135deg, #00af6a 0%, #008751 100%) !important;
  border-color: #00af6a !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(0, 175, 106, 0.45) !important;
  transform: scale(1.02) !important;
}
#app #clearBookNoteBtn {
  font-size: 11.5px !important;
  padding: 6px 12px !important;
  color: #8c5828 !important;
  background: #fbf6ee !important;
  border: 1px solid #ebd9c5 !important;
  border-radius: 8px !important;
}
#app #clearBookNoteBtn:hover {
  background: #f4eae0 !important;
  color: #bd2121 !important;
  border-color: #e2c0b0 !important;
}
.leitner-bar-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 14px;
  background: rgba(245, 248, 245, 0.7);
  border: 1px dashed #cfe0d4;
  border-radius: 16px;
}
.leitner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 42px;
  box-sizing: border-box;
}
.leitner-btn-known {
  background: linear-gradient(135deg, #f0fdf4 0%, #e2f8eb 100%);
  color: #166534;
  border: 1.5px solid #a7f3d0;
  box-shadow: 0 2px 8px rgba(22, 101, 52, 0.08);
}
.leitner-btn-known:hover {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border-color: #34d399;
  color: #14532d;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(22, 101, 52, 0.16);
}
.leitner-btn-known:active {
  transform: translateY(0);
}
.leitner-btn-review {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
  border: 1.5px solid #bfdbfe;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.08);
}
.leitner-btn-review:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #60a5fa;
  color: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.16);
}
.leitner-btn-review:active {
  transform: translateY(0);
}
@media (max-width: 520px) {
  .leitner-bar-actions {
    flex-direction: column;
    width: 100%;
  }
  .leitner-btn {
    width: 100%;
  }
}
.assessment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
}
.assessment-opt-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: right;
  width: 100%;
  padding: 13px 18px;
  border-radius: 14px;
  background: #ffffff;
  border: 1.5px solid #dce8df;
  color: #243b2f;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.assessment-opt-btn:hover {
  border-color: #1f5a47;
  background: #f2f8f4;
  color: #174c3a;
  transform: translateX(-4px);
  box-shadow: 0 6px 16px rgba(31, 90, 71, 0.12);
}
.assessment-opt-btn.active,
.assessment-opt-btn:active {
  border-color: #1f5a47;
  background: linear-gradient(135deg, #e7f5ed 0%, #dbf0e3 100%);
  color: #123e2f;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(31, 90, 71, 0.16);
  transform: translateX(-2px);
}
.assessment-result {
  margin-top: 16px;
  padding: 15px 20px;
  border-radius: 14px;
  background: #f3f9f5;
  border: 1.5px solid #bce1ce;
  color: #174e3a;
  font-size: 13px;
  line-height: 1.7;
}
.action-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1.5px solid #e1ebe4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  margin-bottom: 11px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.action-item:hover {
  border-color: #a3c9b2;
  background: #f9fcf9;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(31, 90, 71, 0.08);
}
.action-item.done {
  background: #f2f8f4;
  border-color: #b7ddc5;
}
.action-item.done .action-copy strong {
  text-decoration: line-through;
  color: #6b8475;
}
.action-item input[type="checkbox"] {
  display: none;
}
.action-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid #a4c5b3;
  background: #ffffff;
  display: inline-grid;
  place-items: center;
  margin-top: 2px;
  transition: all 0.2s ease;
}
.action-item.done .action-check {
  background: #1f5a47;
  border-color: #1f5a47;
}
.action-item.done .action-check::after {
  content: "✓";
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}
.action-copy strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e3629;
  line-height: 1.5;
  margin-bottom: 4px;
}
.action-copy small {
  display: block;
  font-size: 12px;
  color: #5c7467;
  line-height: 1.7;
}
.flashcard-shell {
  max-width: 600px;
  margin: 0 auto;
}
.flashcard-card {
  width: 100%;
  min-height: 220px;
  padding: 28px 24px;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f6faf7 100%);
  border: 1.5px solid #dbe8e0;
  box-shadow: 0 8px 26px rgba(24, 60, 45, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.flashcard-card:hover {
  transform: translateY(-3px);
  border-color: #9ccbb0;
  box-shadow: 0 12px 32px rgba(24, 60, 45, 0.12);
}
.flashcard-card.showing-back {
  background: linear-gradient(145deg, #f2faf4 0%, #e5f5eb 100%);
  border-color: #95d5ad;
}
.flashcard-label {
  font-size: 15px !important;
  font-weight: 800 !important;
  padding: 6px 18px !important;
  border-radius: 999px !important;
  background: #e4efe7 !important;
  color: #1b6342 !important;
  letter-spacing: 0.02em !important;
  display: inline-block !important;
  box-shadow: 0 2px 6px rgba(27, 99, 66, 0.08) !important;
  transition: all 0.2s ease !important;
}
.flashcard-card.showing-back .flashcard-label {
  background: #cfeedb !important;
  color: #115332 !important;
}
.leitner-side-pill {
  font-size: 14px !important;
  font-weight: 800 !important;
  padding: 5px 16px !important;
  border-radius: 999px !important;
}
.flashcard-card strong {
  font-size: clamp(16px, 2.5vw, 21px);
  font-weight: 700;
  color: #1a3327;
  line-height: 1.7;
  margin: 16px 0;
  max-width: 480px;
}
.flashcard-hint {
  font-size: 11px;
  color: #728c7d;
  font-weight: 600;
}
.quiz-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: 14px;
  background: #ffffff;
  border: 1.5px solid #dce8df;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 13px;
  font-weight: 600;
  color: #243b2f;
  line-height: 1.5;
}
.quiz-option:hover {
  border-color: #1f5a47;
  background: #f4faf6;
  transform: translateX(-3px);
  box-shadow: 0 4px 14px rgba(31, 90, 71, 0.08);
}
.quiz-option:has(input:checked) {
  border-color: #1f5a47;
  background: linear-gradient(135deg, #ebf7f0 0%, #e0f2e8 100%);
  color: #144936;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(31, 90, 71, 0.12);
}
.quiz-option.quiz-is-correct {
  border-color: #16a34a !important;
  background: #f0fdf4 !important;
  color: #15803d !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.15) !important;
}
.quiz-option.quiz-is-correct::after {
  content: " ✓ پاسخ صحیح";
  margin-inline-start: auto;
  font-size: 11px;
  font-weight: 800;
  color: #16a34a;
}
.quiz-option.quiz-is-wrong {
  border-color: #dc2626 !important;
  background: #fef2f2 !important;
  color: #b91c1c !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.12) !important;
}
.quiz-option.quiz-is-wrong::after {
  content: " ✕ پاسخ نادرست";
  margin-inline-start: auto;
  font-size: 11px;
  font-weight: 800;
  color: #dc2626;
}
.quiz-explanation {
  margin-top: 10px;
  padding: 10px 14px;
  background: #fbf8f0;
  border-right: 3px solid #d49f69;
  border-radius: 8px;
  font-size: 12px;
  color: #5a432b;
  line-height: 1.8;
  animation: fadeIn 0.3s ease;
}
.quiz-result.is-evaluated {
  margin-top: 16px;
  animation: fadeIn 0.35s ease;
}
.quiz-result-card {
  padding: 16px 20px;
  border-radius: 16px;
  border: 1.5px solid #dce8df;
  background: #fafcfb;
}
.quiz-result.is-perfect .quiz-result-card {
  border-color: #16a34a;
  background: #f0fdf4;
}
.quiz-result.is-good .quiz-result-card {
  border-color: #245944;
  background: #f2f8f5;
}
.quiz-result.is-retry .quiz-result-card {
  border-color: #d49f69;
  background: #fdfaf4;
}
.quiz-result-score {
  font-size: 15px;
  font-weight: 800;
  color: #183e30;
  margin-bottom: 6px;
}
.quiz-result.is-perfect .quiz-result-score {
  color: #15803d;
}
.quiz-result-card p {
  margin: 0 !important;
  font-size: 12.5px !important;
  color: #556c62 !important;
  line-height: 1.8 !important;
}
.faq-item {
  border-radius: 16px;
  background: #ffffff;
  border: 1.5px solid #e1ebe4;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.faq-item:hover {
  border-color: #b5d5c0;
  box-shadow: 0 6px 16px rgba(31, 90, 71, 0.06);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e3b2e;
  user-select: none;
}
.faq-question span {
  display: inline-block;
  transition: transform 0.22s ease;
}
.faq-item.open .faq-question span {
  transform: rotate(180deg);
}
.faq-item:not(.open) .faq-answer {
  display: none;
}
.faq-answer {
  padding: 0 20px 18px;
  font-size: 13px;
  line-height: 1.8;
  color: #496355;
  border-top: 1px solid #edf4ef;
  margin-top: -2px;
  padding-top: 14px;
}
.offline-box {
  padding: 20px 22px;
  border-radius: 18px;
  background: #fbf9f4;
  border: 1.5px solid #e5dcce;
  margin-top: 20px;
}
.offline-status {
  font-size: 12.5px;
  color: #556c5f;
  margin-bottom: 10px;
  font-weight: 600;
}
#app .offline-list {
  display: grid !important;
  gap: 16px !important;
}
#app .offline-row {
  display: grid !important;
  grid-template-columns: 88px minmax(0, 1fr) auto !important;
  gap: 22px !important;
  align-items: center !important;
  padding: 18px 24px !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1px solid #e2ece5 !important;
  box-shadow: 0 4px 18px rgba(25, 55, 37, 0.04) !important;
  overflow: visible !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
}
#app .offline-row:hover {
  border-color: #bcd5c5 !important;
  box-shadow: 0 8px 26px rgba(25, 55, 37, 0.08) !important;
  transform: translateY(-2px) !important;
}
#app .offline-row-cover.book3d {
  width: 64px !important;
  height: 93px !important;
  margin: 4px auto !important;
  --book-thickness: 10px !important;
  flex-shrink: 0 !important;
}
#app .offline-row > div:not(.inline-actions) {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 6px !important;
}
#app .offline-row h3 {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #1e3827 !important;
  line-height: 1.5 !important;
}
#app .offline-row p {
  margin: 0 !important;
  color: #647a6c !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}
#app .offline-row .inline-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
}
#app .offline-row .inline-actions .btn {
  min-height: 40px !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}
#app .continue-card {
  grid-template-columns: 88px minmax(0, 1fr) !important;
  gap: 18px !important;
}
#app .continue-cover.book3d {
  width: 64px !important;
  height: 93px !important;
  margin: 4px auto !important;
  --book-thickness: 10px !important;
}
@media (max-width: 640px) {
  #app .offline-row {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 14px 16px !important;
  }
  #app .offline-row .inline-actions {
    grid-column: 1 / -1 !important;
    justify-content: flex-end !important;
    margin-top: 6px !important;
  }
}
.leitner-dialog {
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #dce8df;
  box-shadow: 0 20px 50px rgba(18, 50, 38, 0.22);
  padding: 30px;
  max-width: 440px;
  width: 90%;
  position: relative;
  text-align: center;
}
.library-app .collection-frame .book-card,
.collection-frame .book-card,
#app .book-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  position: relative !important;
  box-sizing: border-box !important;
  min-height: 400px !important;
  padding: 18px 16px 16px !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  border: 1px solid #e2ebe5 !important;
  box-shadow: 0 4px 16px rgba(3, 49, 75, 0.04) !important;
  text-decoration: none !important;
  overflow: visible !important;
}
.library-app .collection-frame .book-card:hover,
.collection-frame .book-card:hover,
#app .book-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 24px rgba(29, 54, 36, 0.1) !important;
  border-color: #b7d6c2 !important;
}
.collection-frame .book-card .favorite,
#app .book-card .favorite {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  z-index: 10 !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid #d4dfe0 !important;
  display: grid !important;
  place-items: center !important;
  color: #45616c !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  cursor: pointer !important;
}
.collection-frame .book-card .favorite.active,
#app .book-card .favorite.active {
  color: #b42348 !important;
  background: #fff1f4 !important;
  border-color: #f7c5d0 !important;
}
