/* Home presentation only: no shared card or image-loading changes. */
#page-home {
  --home-editorial-gold:var(--aeon-gold, #cdb978);
  --home-year-line:rgba(181,170,127,.2);
  --home-icon-open-book:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D'M3%204h6c2%200%203%201%203%202%200-1%201-2%203-2h6v15h-6c-2%200-3%201-3%202%200-1-1-2-3-2H3zM12%206v15'%2F%3E%3C%2Fsvg%3E");
  --home-icon-bookshelf:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D'M3%203v18m18-18v18M3%2011h18M3%2020h18M6%204v7m4-7v7m4-6%203%206M6%2014v6m4-6v6m4-6v6m3-6%202%206'%2F%3E%3C%2Fsvg%3E");
  --home-icon-bookmark:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D'M6%203h12v18l-6-4-6%204z'%2F%3E%3C%2Fsvg%3E");
  --home-icon-calendar:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D'3'%20y%3D'5'%20width%3D'18'%20height%3D'16'%20rx%3D'2'%2F%3E%3Cpath%20d%3D'M7%203v4m10-4v4M3%2011h18m-13%204h2m4%200h2'%2F%3E%3C%2Fsvg%3E");
  --home-icon-document:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D'M5%203h9l5%205v13H5zM14%203v5h5M8%2012h8m-8%204h8'%2F%3E%3C%2Fsvg%3E");
  --home-icon-feather:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D'M20%203c-5-2-13%205-13%2011v3h3c6%200%2013-9%2010-14zM3%2021%2016%208m-9%206h5'%2F%3E%3C%2Fsvg%3E");
  --home-icon-bar-chart:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D'M4%203v18h17M8%2017v-5m5%205V8m5%209V4'%2F%3E%3C%2Fsvg%3E");
  --home-icon-star:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D'm12%203%202.8%205.7%206.3.9-4.5%204.4%201.1%206.2-5.7-3-5.7%203%201.1-6.2-4.5-4.4%206.3-.9z'%2F%3E%3C%2Fsvg%3E");
  --home-icon-check-circle:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'9'%2F%3E%3Cpath%20d%3D'm7.5%2012%203%203%206-6'%2F%3E%3C%2Fsvg%3E");
  --home-icon-heart:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D'M20%205c-3-3-6-1-8%201-2-2-5-4-8-1-5%205%203%2011%208%2015%205-4%2013-10%208-15z'%2F%3E%3C%2Fsvg%3E");
}
body[data-theme="light"] #page-home { --home-year-line:rgba(49,79,61,.2); }
#page-home #homeKpiGrid > :has(#homeKpiBooksRead) { --home-icon:var(--home-icon-open-book); }
#page-home #homeKpiGrid > :has(#homeKpiBooksInLibrary) { --home-icon:var(--home-icon-bookshelf); }
#page-home #homeKpiGrid > :has(#homeKpiTbr) { --home-icon:var(--home-icon-bookmark); }
#page-home #homeKpiGrid > :has(#homeKpiWishlist) { --home-icon:var(--home-icon-calendar); }
#page-home #homeKpiGrid > :has(#homeKpiPagesRead) { --home-icon:var(--home-icon-document); }
#page-home #homeKpiGrid > :has(#homeKpiUniqueAuthors) { --home-icon:var(--home-icon-feather); }
#page-home #homeYearInBooks { --home-icon:var(--home-icon-bar-chart); }
#page-home #homeCurrentSection { --home-icon:var(--home-icon-open-book); }
#page-home #homePrioritySection { --home-icon:var(--home-icon-star); }
#page-home #homeNextReleasesSection { --home-icon:var(--home-icon-calendar); }
#page-home #homeCompletedSection { --home-icon:var(--home-icon-check-circle); }
#page-home #homeWishlistSection { --home-icon:var(--home-icon-heart); }
#page-home > div:first-child h2,
#page-home #homeYearInBooks h3,
#page-home > section:not(#homeRouletteSection) > .home-section-heading h3 {
  font-family:Georgia, "Times New Roman", serif; font-size:20px; font-weight:600; line-height:1.4;
}
#page-home #homeYearInBooks h3::before,
#page-home > section:not(#homeRouletteSection) > .home-section-heading h3::before,
#page-home #homeKpiGrid > :is(div,a) > p:first-child::before {
  content:""; display:inline-block; width:18px; height:18px; margin-right:8px; vertical-align:-3px;
  background:var(--home-editorial-gold);
  mask:var(--home-icon) center / contain no-repeat;
}
#page-home #homeKpiGrid > :is(div,a) > p:first-child::before { width:14px; height:14px; margin-right:6px; vertical-align:-2px; }
#page-home #homeYearInBooks { position:relative; }
#page-home #homeCurrentSection .home-section-heading > .quickNav { margin-left:auto; }
body[data-theme="dark"] #page-home > .calendar-panel:not(#homeRouletteSection),
body[data-theme="dark"] #page-home #homeYearInBooks,
body[data-theme="dark"] #page-home #homeKpiGrid > :is(div,a) {
  background:#0b1d18 !important; border-color:rgba(181,170,127,.14) !important;
}
body[data-theme="dark"] #page-home :is(#homePrioritySection, #homeNextReleasesSection, #homeCompletedSection, #homeWishlistSection) :is(.dashRelCard, [data-home-book-open].snap-start) {
  background:#10251e !important; border-color:rgba(181,170,127,.12) !important;
}
@media(max-width:768px) {
  #page-home #homeKpiGrid > :is(div,a) > p:first-child::before { width:12px; height:12px; margin-right:4px; }
}
#page-home .home-section-heading {
  display:flex; flex-direction:row; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:8px 12px;
}
#page-home .home-section-heading h3 { line-height:1.4; }
#page-home .home-section-heading .quickNav { min-height:44px; }
#page-home #homeKpiGrid > :is(div,a) { padding-block:10px; }
#page-home #homeKpiGrid > a { display:block; text-decoration:none; color:inherit; }
#page-home #homeKpiGrid > a:hover { border-color:var(--aeon-control-border); }
#page-home #homeYearInBooks { padding:14px 12px; }
#page-home .home-year-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; }
#page-home .home-year-heading h3 { min-width:0; }
#page-home .home-year-heading .quickNav { flex-shrink:0; min-height:44px; padding:0; font-size:14px; }
#page-home #homeYearSelect { min-height:44px; height:44px; width:100%; padding:10px 28px 10px 0; border:1px solid transparent; border-radius:4px; background:transparent; color:var(--aeon-text, #20382b); font:inherit; font-size:18px; line-height:22px; }
#page-home #homeYearSelect:hover { border-color:var(--home-year-line); }
body[data-theme] #page-home #homeYearSelect { background:transparent !important; border-color:var(--home-year-line) !important; }
body[data-theme] #page-home #homeYearInBooks .home-year-summary { border:1px solid var(--home-year-line); border-color:var(--home-year-line) !important; border-radius:6px; background:transparent !important; padding:8px; box-shadow:none; }
/* Paint separators without adding layout height or reducing touch targets. */
#page-home .home-year-months { position:relative; }
#page-home .home-year-months::before { content:""; position:absolute; inset:0 0 auto; height:1px; background:var(--home-year-line); pointer-events:none; }
#page-home .home-year-month { position:relative; }
#page-home .home-year-month::before { content:""; position:absolute; left:-4px; top:8px; bottom:8px; width:1px; background:var(--home-year-line); pointer-events:none; }
#page-home .home-year-month:nth-child(4n + 1)::before { display:none; }
@media(min-width:640px) {
  #page-home .home-year-month:nth-child(4n + 1)::before { display:block; }
  #page-home .home-year-month:nth-child(6n + 1)::before { display:none; }
}
@media(min-width:1280px) {
  #page-home .home-year-month:nth-child(6n + 1)::before { display:block; }
  #page-home .home-year-month:first-child::before { display:none; }
}
#page-home .home-year-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px 16px; }
#page-home .home-year-metrics .home-year-summary { display:grid; grid-template-rows:20px 44px; align-items:start; min-width:0; gap:5px; font-size:18px; }
#page-home .home-year-summary > :first-child { align-self:end; font-size:14px; line-height:20px; white-space:normal; overflow:visible; }
#page-home .home-year-summary > span:last-child { display:flex; align-items:center; height:44px; line-height:22px; }
body[data-theme] #page-home .home-year-month { min-height:48px; padding:6px; border:0 !important; border-radius:4px; background:transparent !important; box-shadow:none !important; --tw-ring-shadow:0 0 transparent; }
body[data-theme] #page-home .home-year-month.is-current-month { background:var(--aeon-control-hover, #e1eddf) !important; }
body[data-theme] #page-home .home-year-month:hover { background:var(--aeon-control-hover, #e1eddf) !important; }
#page-home #homeCurrentSection > .home-section-heading #homeAddBook {
  min-height:44px; font-size:14px; background:transparent !important;
  color:var(--aeon-secondary, #46544b) !important; border-color:var(--aeon-control-border, #73897a) !important;
}
#page-home #homeCurrentSection > .home-section-heading #homeAddBook:hover { background:var(--aeon-control-hover, #e2e9e4) !important; }
#page-home #homeTbrRoulette .home-more-button { align-self:center; }
body[data-theme] #page-home #homeCurrentlyReading { padding:0; border:0; background:transparent !important; box-shadow:none; }
#page-home #homeCurrentlyReading > article { padding:0; border:0; background:transparent !important; box-shadow:none; }
#page-home .home-current-layout { display:grid; grid-template-columns:144px minmax(0,1fr); gap:16px; align-items:start; }
#page-home .home-current-cover { width:144px; height:216px; }
#page-home .home-current-position { justify-content:flex-start; gap:12px; }
#page-home .home-current-info { min-width:0; overflow-wrap:anywhere; }
#page-home .home-current-info h4 { overflow-wrap:anywhere; }
#page-home .home-current-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
#page-home .home-current-actions > button { min-height:44px; font-size:14px; }
body[data-theme] #page-home #homePriorityReads [data-priority-group] { padding:0; border:0; background:transparent !important; box-shadow:none; }
#page-home #homePriorityCount { display:none; }
#page-home #homePriorityView { min-height:44px; max-width:100%; border:0; border-radius:4px; background:transparent; color:var(--aeon-secondary); font:inherit; font-size:14px; padding:4px; }
#page-home .home-priority-cover-column { flex:0 0 104px; }
#page-home .home-priority-cover-column > .mt-2 { display:flex; flex-wrap:nowrap; align-items:center; gap:0; margin-top:6px; }
#page-home .home-priority-cover-column .priority-start-btn { width:60px; padding:2px 4px; line-height:1.3; }
#page-home .home-wishlist-cover-column { flex:0 0 64px; }
#page-home .home-wishlist-cover-actions { margin-top:4px; }
#page-home #homeWishlist .dashRelCard { align-items:flex-start; }
#page-home #homeWishlist .dashRelRail { align-items:flex-start; }
#page-home .home-carousel-hint { margin:6px 0 0; font-size:12px; color:var(--aeon-secondary, #46544b); }
#page-home .home-wishlist-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:4px; }
#page-home :is(.dashRelCard, [data-home-book-open].snap-start) { box-shadow:none; }
#page-home .dashRelCover { flex-shrink:0; }
#page-home #homeNextReleases .dashRelRail > article { display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
#page-home .dashRelBtn { display:block; }
#page-home :is(.priority-action-btn, .priority-start-btn, .grimoire-book-action, #homeRoulettePick, [data-home-roulette-start], [data-home-roulette-skip], [data-home-roulette-reset], [data-home-roulette-clear-limit]) { min-height:44px; min-width:44px; }
#page-home :is(button, a, input, select, summary, [role="button"]):focus-visible, .home-action-popover :is(button, a):focus-visible {
  outline:2px solid var(--aeon-action, #276943); outline-offset:2px;
}
#page-home .home-more-button {
  width:44px; min-width:44px; height:44px; padding:0; border:0; border-radius:12px;
  background:transparent; color:var(--aeon-secondary, #46544b); font-size:24px; line-height:1;
}
#page-home .home-more-button:hover, #page-home .home-more-button[aria-expanded="true"] { background:var(--aeon-control-hover, #e2e9e4); }
.home-action-popover {
  position:fixed; inset:auto; margin:0; z-index:100; padding:6px; width:240px;
  max-width:calc(100vw - 16px); max-height:calc(100dvh - 16px); overflow-y:auto;
  background:var(--aeon-dialog, #fff); color:var(--aeon-text, #1c3024);
  border:1px solid var(--aeon-border-inset, #ccd7ce); border-radius:14px;
  box-shadow:0 8px 24px rgba(0,0,0,.22);
}
.home-action-popover :is(button, a) {
  display:flex; width:100%; min-height:44px; align-items:center; justify-content:flex-start;
  padding:10px 12px; margin:0; border:0 !important; border-radius:8px; background:transparent !important;
  color:inherit !important; font-size:14px; line-height:1.4; text-align:left; text-decoration:none;
}
.home-action-popover :is(button, a):hover { background:var(--aeon-control-hover, #e2e9e4) !important; }
.home-action-popover :is(#homeMoveToDnf, #homeRemoveFromCurrent, [data-next-priority=""]) { color:var(--aeon-danger, #933c3c) !important; }
.home-action-popover button:disabled { opacity:.55; }
/* Existing light hooks changed text but left Home's old dark gradients intact. */
body[data-theme="light"] #page-home :is(.calendar-panel, #homeKpiGrid > :is(div,a), #homeYearInBooks) {
  background:#fff !important; border-color:rgba(31,67,47,.12) !important; box-shadow:none;
}
body[data-theme="light"] #page-home :is(.dashRelCard, #homePriorityReads [data-home-book-open].snap-start, #homeRecentlyCompleted [data-home-book-open].snap-start, .home-roulette-book) {
  background:#f0f4ef !important; border-color:rgba(31,67,47,.12) !important;
}
body[data-theme="light"] #page-home :is(.dashRelTitle, .text-white, .text-white\/90, .text-white\/85, .text-white\/80, .text-white\/75) { color:#20382b !important; }
body[data-theme="light"] #page-home :is(.dashRelDate, .dashRelAuthor, .text-white\/70, .text-white\/60, .text-white\/55, .text-white\/50, .text-white\/45, .text-white\/40, .text-white\/35) { color:#52675b !important; }
body[data-theme="light"] #page-home :is(.priority-action-btn, .priority-start-btn, [data-home-roulette-start], [data-home-roulette-skip], [data-home-roulette-reset]) { color:#244c3a; }
body[data-theme="light"] #page-home .home-progress-track { background:#dce6de; }
body[data-theme="light"] #page-home .home-progress-fill { background:#315d43; }
body[data-theme="light"] #page-home .home-progress-fill--audio { background:#a17721; }
body[data-theme="light"] #page-home .dashRelCover--empty { color:#52675b; background:#e2e9e4; }
body[data-theme="light"] #page-home :is(.text-gold-500, [class~="text-[#f2e6b2]"]) { color:#735916 !important; }
body[data-theme="light"] #page-home .priority-action-btn:disabled { background:#e1eddf; color:#244c3a !important; border-color:#315d43 !important; }
body[data-theme="light"] #page-home .home-year-month.is-current-month { background:#e1eddf !important; }
body[data-theme="light"] #page-home .home-month-label { color:#52675b !important; }
body[data-theme="light"] #page-home .home-month-value { color:#20382b !important; }
body[data-theme="light"] #page-home #homeYearSelect { background:transparent; color:#20382b; }
/* Restrained action treatment, exclusively Home. Dialogs and navigation untouched. */
body[data-theme] #page-home :is(.quickNav, .grimoire-book-action, .priority-start-btn, #homeCurrentPrev, #homeCurrentNext, #homeEditActivity, #homeEditReread, #homeAddBook, #homeAddBookEmpty, #homeRoulettePick, [data-home-roulette-start], [data-home-roulette-skip], [data-home-roulette-clear-limit]) {
  min-height:44px; border-radius:8px !important; font-size:14px; line-height:1.4;
}
body[data-theme] #page-home :is(.grimoire-book-action, #homeCurrentPrev, #homeCurrentNext, [data-home-roulette-skip], [data-home-roulette-clear-limit]) {
  border-color:transparent !important; background:transparent !important; color:var(--aeon-secondary, #52675b) !important;
}
body[data-theme] #page-home :is(#homeEditActivity, #homeEditReread, .priority-start-btn, #homeRoulettePick, [data-home-roulette-start]) {
  padding:8px 6px; border:0 !important;
  background:transparent !important; color:var(--aeon-action, #315d43) !important;
}
#page-home :is(#homeEditActivity, #homeEditReread, .priority-start-btn, #homeRoulettePick, [data-home-roulette-start]):hover { text-decoration:underline; }
body[data-theme] #page-home :is(#homeAddBook, #homeAddBookEmpty, #homeCurrentPrev, #homeCurrentNext) { border:0 !important; background:transparent !important; }
/* The empty-state action is a text link, not a filled primary button. */
body[data-theme="dark"] #page-home #homeAddBookEmpty { color:var(--aeon-gold, #dfc77f) !important; }
body[data-theme="light"] #page-home #homeAddBookEmpty { color:#735916 !important; }
#page-home #homeAddBookEmpty:hover { text-decoration:underline; }
body[data-theme] #page-home :is(.grimoire-book-action, #homeCurrentPrev, #homeCurrentNext, [data-home-roulette-skip], [data-home-roulette-clear-limit]):hover { background:var(--aeon-control-hover, #e1eddf) !important; }
#page-home :is(#homeCurrentPrev, #homeCurrentNext) { width:44px; padding:0; font-size:20px !important; }
#page-home button:disabled { opacity:.45; cursor:default; }
#page-home #homeRoulettePick { display:inline-flex; align-items:center; gap:8px; }
#page-home #homeRoulettePick svg { width:18px; height:18px; }
#page-home #homeTbrRoulette { display:grid; grid-template-columns:minmax(180px,.6fr) minmax(0,1.4fr); align-items:start; gap:24px; }
#page-home .home-roulette-controls { display:grid; gap:8px; min-width:0; }
#page-home .home-roulette-controls label { font-size:14px; color:var(--aeon-secondary, #52675b); }
#page-home .home-roulette-controls :is(input, select) { width:100%; min-width:0; min-height:44px; padding:6px; border:0; border-bottom:1px solid var(--aeon-control-border, #72877b); border-radius:0; background:transparent !important; color:var(--aeon-text, #20382b); font:inherit; font-size:16px; }
#page-home .home-roulette-page-limit { display:flex; align-items:center; gap:6px; }
#page-home .home-roulette-controls-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; }
#page-home [data-home-roulette-count] { font-size:14px; color:var(--aeon-secondary, #52675b); }
#page-home .home-roulette-error { font-size:14px; color:var(--aeon-danger, #933c3c); }
#page-home .home-roulette-controls input[aria-invalid="true"] { border-color:var(--aeon-danger, #933c3c); }
#page-home .home-roulette-book > div { display:flex; flex-direction:row; gap:16px; }
#page-home .home-roulette-cover { padding:0; border:0; background:none; width:112px; align-self:flex-start; }
#page-home .home-roulette-cover > :is(img, div) { width:112px; height:160px; }
/* Compact normal-content rails; long values wrap rather than being clipped. */
#page-home :is(.dashRelCard, .home-priority-card, #homeRecentlyCompleted [data-home-book-open]) { min-width:270px; max-width:300px; padding:10px; }
#page-home .dashRelCard { flex-direction:row; gap:12px; }
#page-home .dashRelBtn { width:auto; }
#page-home .dashRelCover { width:64px; height:96px; }
#page-home :is(.dashRelTitle, .dashRelAuthor, .home-priority-card h3, .home-priority-card p, #homeRecentlyCompleted h3, #homeRecentlyCompleted p) { display:block !important; -webkit-line-clamp:unset !important; overflow:visible !important; white-space:normal; overflow-wrap:anywhere; }
#page-home :is(.home-priority-card, #homeRecentlyCompleted [data-home-book-open]) { display:flex; flex-direction:column; align-items:stretch; }
#page-home #homeNextReleases .dashRelRail > article { min-width:270px; max-width:300px; }
#page-home .grimoire-book-action { padding:4px 6px; font-size:13px; }
#page-home #homeRecentlyCompleted .mt-3 > span { border:0; background:transparent; padding:0; border-radius:0; }
#page-home .home-carousel-controls, #page-home .home-current-nav { display:flex; gap:0; }
#page-home .home-carousel-controls { margin-left:auto; }
#page-home .home-carousel-controls button { min-width:44px; height:44px; font-size:28px; padding:0; border:0; background:transparent; color:var(--aeon-secondary); }
#page-home #homeCurrentSection { position:relative; isolation:isolate; }
#page-home #homeCurrentSection::before {
  content:""; display:none; position:absolute; inset:0; z-index:0; border-radius:inherit; pointer-events:none;
  background:url("../assets/images/home/currently-reading/seasonal/currently-reading-march-wallpaper.png.png") right center / cover no-repeat;
  mask-image:linear-gradient(to right, rgba(0,0,0,.02) 0%, rgba(0,0,0,.06) 35%, rgba(0,0,0,.18) 50%, rgba(0,0,0,.7) 65%, #000 82%);
}
#page-home #homeCurrentSection > * { position:relative; z-index:1; }
body[data-theme="light"] #page-home #homeCurrentSection::before { opacity:.24; }
#page-home #homeCurrentlyReading > article { position:relative; }
#page-home .home-current-info { position:relative; z-index:1; }
#page-home .home-current-info .home-current-progress { margin-top:8px; gap:8px; }
#page-home .home-current-info .home-current-remaining { margin-top:6px; }
#page-home .home-current-actions { margin-top:4px; }
@media (max-width:768px) {
  #page-home .home-year-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 16px; }
  #page-home #homeTbrRoulette { grid-template-columns:minmax(0,1fr); gap:16px; }
  #page-home > .calendar-panel { padding:12px; margin-top:16px; }
  #page-home .home-current-layout { grid-template-columns:92px minmax(0,1fr); gap:12px; }
  #page-home .home-current-cover { width:92px; height:138px; }
  #page-home .home-current-info h4 { font-size:18px; line-height:1.35; }
  #page-home .home-current-info > div > p { font-size:14px; }
  #page-home .home-current-info .home-current-progress { margin-top:8px; }
  #page-home .home-current-info .home-current-remaining { margin-top:6px; gap:8px; }
  #page-home .home-current-actions { margin-top:4px; }
  #page-home .home-current-actions > button:not(.home-more-button) { padding:8px 12px; }
  #page-home #homeCurrentlyReading > article > div:first-child { margin-bottom:12px; }
  #page-home :is(#homeCurrentPrev, #homeCurrentNext) { min-height:44px; padding-inline:10px; }
  #page-home .dashRelRail { gap:10px; }
  #page-home .dashRelCard { min-width:240px; max-width:260px; padding:10px; border-radius:14px; flex-direction:row; }
  #page-home #homeWishlist .dashRelCard { min-width:240px; max-width:260px; }
  #page-home :is(#homePriorityReads, #homeRecentlyCompleted) [data-home-book-open].snap-start { min-width:240px; max-width:260px; padding:10px; }
  #page-home .home-roulette-book { padding:12px; }
  #page-home .home-roulette-book > div { gap:12px; }
  #page-home .home-roulette-cover, #page-home .home-roulette-cover > :is(img, div) { width:76px; }
  #page-home .home-roulette-cover > :is(img, div) { height:114px; }
  #page-home #homeTbrRoulette h4 { font-size:18px; overflow-wrap:anywhere; }
}
/* Preserve the information width; the wallpaper does not participate in layout. */
@media (min-width:1024px) {
  #page-home .home-current-layout { grid-template-columns:144px minmax(0,1fr) clamp(300px,44%,520px); }
  #page-home #homeCurrentSection::before { display:block; }
}
@media print { .home-action-popover, #page-home .home-more-button { display:none !important; } }
