/* Personal home: a warm learning studio. All rules stay inside this view. */
#libraryView {
  --home-ink: #281a45;
  --home-muted: #685e79;
  --home-purple: #5933af;
  --home-purple-deep: #301966;
  --home-lilac: #efe8fb;
  --home-gold: #ffda88;
  --home-gold-ink: #71470e;
  --home-border: #e4dced;
  --home-ease: cubic-bezier(.22, 1, .36, 1);
  color: var(--home-ink);
  animation: none;
}
#libraryView .home-heading { align-items: center; gap: 18px; margin-bottom: 18px; }
#libraryView .home-heading .eyebrow { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .16em; }
.home-eyebrow-line { display: inline-block; width: 22px; height: 2px; background: var(--home-purple); }
#libraryView .page-title { margin: 4px 0; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.045em; text-wrap: balance; overflow-wrap: anywhere; }
#libraryView .home-heading>div { min-width: 0; }
#libraryView .dashboard-intro { max-width: 620px; margin-top: 4px; font-size: 13.5px; color: var(--home-muted); }
#libraryView .home-tools { position: relative; flex-direction: column; align-items: flex-end; gap: 6px; }
.home-date { color: var(--home-muted); font-size: 12px; }
.home-account-tools { font-size: 11px; color: var(--home-muted); }
.home-account-tools summary { min-height: 30px; padding: 6px; cursor: pointer; }
.home-account-tools>div { position: absolute; z-index: 5; right: 0; top: 100%; width: min(310px, 85vw); display: grid; gap: 10px; padding: 16px; border: 1px solid var(--home-border); border-radius: 18px; background: white; box-shadow: var(--shadow-md); }
#libraryView :focus-visible { outline: 3px solid #8c6acf; outline-offset: 4px; }
#libraryView .continue-hero :focus-visible { outline-color: var(--home-gold); }
#libraryView .dash-hero-bento { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 26px; }
#libraryView .continue-hero { grid-template-columns: minmax(0, 1.35fr) minmax(170px, .9fr); gap: 10px 0; min-height: 270px; padding: 24px 28px 0; border-radius: 24px; border-color: var(--home-purple); background: radial-gradient(ellipse at 100% 0, #9b77da66, transparent 65%), linear-gradient(115deg, var(--home-purple-deep), #5734a5); box-shadow: 0 18px 42px #3d237022; animation: home-arrive 600ms var(--home-ease) both; }
#libraryView .continue-hero::before { content: ''; position: absolute; inset: 0; opacity: .1; background-image: radial-gradient(white 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 35%, black); pointer-events: none; }
#libraryView .continue-hero-copy { gap: 18px; padding: 0 0 24px; min-width: 0; }
#libraryView .continue-hero-badges { gap: 8px; }
#libraryView .continue-live-pill { padding: 0; border: 0; background: none; backdrop-filter: none; font-size: 10px; color: #e4d5fa; letter-spacing: .13em; }
#libraryView .continue-live-pill i { width: 6px; height: 6px; box-shadow: none; animation: none; }
#libraryView .continue-subject-chip { padding: 3px 8px; font-size: 10px; }
#libraryView .continue-hero h2 { font-size: clamp(29px, 3vw, 43px); line-height: 1.13; letter-spacing: -.045em; overflow-wrap: anywhere; text-wrap: balance; }
#libraryView .continue-hero-lead { font-size: 14px; line-height: 1.7; color: #e5dcf6; }
#libraryView .continue-hero-actions { gap: 10px; margin-top: 18px; }
#libraryView .continue-gold-cta { justify-content: space-between; min-height: 50px; padding: 12px 18px; border: 0; border-radius: 12px; background: var(--home-gold); color: #38224f; font-size: 13px; box-shadow: 0 5px 0 #d9ad59, 0 12px 24px #190b4033; }
#libraryView .continue-gold-cta:hover { transform: translateY(-2px); background: #ffe3a5; }
#libraryView .continue-gold-cta:active { transform: translateY(2px); box-shadow: 0 2px 0 #d9ad59; }
#libraryView .continue-ghost-cta { padding: 10px 12px; min-height: 48px; background: transparent; border-color: #ffffff4d; font-size: 12px; }
#libraryView .continue-glass-box { padding: 12px; border-radius: 12px; background: #ffffff0d; backdrop-filter: none; }
#libraryView .continue-glass-box strong { font-size: 14px; overflow-wrap: anywhere; }
#libraryView .continue-percent-badge { color: var(--home-gold); font-size: 18px; }
#libraryView .continue-progress-track { height: 5px; }
#libraryView .continue-progress-track i { background: var(--home-gold); transition: none; animation: home-progress-in 700ms var(--home-ease) both; transform-origin: left; }
#libraryView .continue-progress-track i::after { display: none; }
#libraryView .continue-hero-glow { animation: none; opacity: .5; }
#libraryView .continue-hero-mascot { align-self: center; min-height: 265px; margin: 0 -10px 0 6px; }
#libraryView .continue-hero-mascot img { z-index: 2; right: -13%; bottom: -8px; width: 125%; max-width: 315px; height: 295px; animation: home-mascot-float 4.5s ease-in-out 1; }
#libraryView #continueMascotBubble { z-index: 3; right: 1%; top: 3%; max-width: 95%; padding: 9px 12px; border-radius: 12px 12px 12px 2px; background: var(--home-gold); color: #462951; font-size: 11px; line-height: 1.4; transform: rotate(5deg); animation: none; }
#libraryView .home-orbit { position: absolute; width: 210px; height: 210px; left: 50%; top: 50%; transform: translate(-50%, -43%) rotate(-24deg); border: 1px solid #c9b5ea55; border-radius: 50%; }
#libraryView .home-orbit-inner { width: 160px; height: 160px; border-color: #c9b5ea30; background: #ffffff09; }
#libraryView .home-orbit-symbol { position: absolute; z-index: 3; top: auto; right: auto; display: grid; place-items: center; width: 40px; height: 40px; padding: 10px; border: 1px solid #ffffff55; border-radius: 12px; color: white; background: #7450b8; box-shadow: 0 8px 16px #1d0a5026; animation: none; }
#libraryView .home-orbit-symbol svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
#libraryView .home-orbit-book { left: 3%; top: 29%; transform: rotate(-14deg); }
#libraryView .home-orbit-spark { right: -3%; bottom: 13%; color: var(--home-gold); transform: rotate(12deg); }
.home-learning-path { position: relative; z-index: 2; grid-column: 1/-1; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; padding: 18px 0; list-style: none; border-top: 1px solid #ffffff26; }
.home-learning-path li { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #e7ddf7; }
.home-learning-path b { color: var(--home-gold); font-size: 10px; font-weight: 600; }
.home-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 0 0 18px; }
#libraryView .home-section-heading .eyebrow { margin: 0 0 6px; font-size: 9px; letter-spacing: .14em; color: var(--home-muted); }
.home-section-heading h2 { margin: 0; font-size: 25px; font-weight: 600; letter-spacing: -.035em; }
.home-section-heading>span { color: var(--home-muted); font-size: 12px; }
#libraryView .home-action-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0 0 38px; }
#libraryView .home-action-grid button { --action-bg: #eee8fb; --action-border: #dfd2f5; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: stretch; min-height: 180px; padding: 22px; gap: 24px; text-align: left; border: 1px solid var(--action-border); border-radius: 22px; background: var(--action-bg); color: var(--home-ink); box-shadow: none; transition: transform 220ms var(--home-ease), box-shadow 220ms ease; animation: home-arrive 600ms 120ms var(--home-ease) both; }
#libraryView .home-action-grid button:nth-child(2) { --action-bg: #e5f0f1; --action-border: #cce1e2; animation-delay: 160ms; }
#libraryView .home-action-grid button:nth-child(3) { --action-bg: #fff0d5; --action-border: #f0ddbb; animation-delay: 200ms; }
#libraryView .home-action-grid button:hover { transform: translateY(-4px); box-shadow: 0 12px 28px #34224e12; }
#libraryView .home-action-grid button:active { transform: translateY(-1px); }
#libraryView .home-action-top { display: flex; align-items: center; justify-content: space-between; width: 100%; position: relative; z-index: 2; }
#libraryView .home-action-label { font-size: 9px; letter-spacing: .12em; font-weight: 800; color: #58466e; }
#libraryView .home-action-top svg { width: 25px; height: 25px; padding: 3px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#libraryView .home-action-copy { display: grid; gap: 7px; width: 70%; position: relative; z-index: 2; }
#libraryView .home-action-copy strong { font: 600 21px/1.2 var(--font-display); letter-spacing: -.03em; }
#libraryView .home-action-copy small { max-width: 185px; font-size: 12px; line-height: 1.6; color: #584c68; }
#libraryView .home-action-grid img { position: absolute; z-index: 1; right: -8px; bottom: -18px; width: 128px; height: 145px; object-fit: contain; transform: rotate(-8deg); transition: transform 300ms var(--home-ease); pointer-events: none; }
#libraryView .home-action-grid button:hover img { transform: rotate(-3deg) translateY(-4px); }
#libraryView .home-footer-note { margin: 26px 0 0; padding: 18px 0; border-top: 1px solid var(--home-border); font-size: 12px; color: var(--home-muted); text-align: center; }
@keyframes home-arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes home-progress-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes home-mascot-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(1deg); } }
@media (min-width: 1450px) { #libraryView .continue-hero { min-height: 340px; padding: 40px 40px 0; } }
@media (max-width: 1180px) {
  #libraryView .dash-hero-bento { grid-template-columns: minmax(0, 1fr); }
  #libraryView .continue-hero { padding: 26px 24px 0; grid-template-columns: minmax(0, 1.4fr) minmax(130px, .7fr); }
  #libraryView .continue-hero h2 { font-size: 32px; }
  #libraryView .continue-hero-mascot img { height: 245px; right: -22%; width: 145%; }
  #libraryView .home-orbit-outer { width: 160px; height: 160px; }
  #libraryView .home-orbit-inner { width: 125px; height: 125px; }
  #libraryView .home-action-grid button { padding: 18px; }
  #libraryView .home-action-copy strong { font-size: 19px; }
  #libraryView .home-action-grid img { width: 105px; height: 125px; right: -15px; }
}
@media (max-width: 960px) {
  #libraryView .continue-hero { grid-template-columns: minmax(0, 1.3fr) minmax(180px, .8fr); min-height: 350px; }
  #libraryView .continue-hero-mascot img { height: 290px; right: 0; width: 100%; }
}
@media (min-width: 641px) and (max-width: 960px) {
  #libraryView .home-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #libraryView .home-action-grid button:last-child { grid-column: 1/-1; min-height: 150px; }
  #libraryView .home-action-copy { width: calc(100% - 100px); }
  #libraryView .home-action-grid img { width: 120px; height: 140px; right: 0; }
}
@media (max-width: 640px) {
  #libraryView .home-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 22px; }
  #libraryView .home-tools { width: 100%; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
  #libraryView .home-date { flex: 1; }
  .home-account-tools { width: 100%; }
  .home-account-tools>div { left: 0; right: auto; }
  #libraryView .dashboard-intro { font-size: 14px; }
  #libraryView .continue-hero { grid-template-columns: minmax(0, 1fr); padding: 24px 22px 0; gap: 0; }
  #libraryView .continue-hero-copy { padding-bottom: 0; gap: 15px; }
  #libraryView .continue-hero h2 { font-size: 34px; max-width: 420px; }
  #libraryView .continue-hero-mascot { display: block; justify-self: center; width: min(270px, 100%); min-height: 210px; margin: 14px 0 0; }
  #libraryView .continue-hero-mascot img { height: 245px; bottom: -20px; right: -5%; width: 110%; }
  #libraryView #continueMascotBubble { top: 12px; }
  .home-learning-path { gap: 8px; padding: 16px 0; }
  .home-learning-path li { flex: 1; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 10px; }
  .home-section-heading>span { display: none; }
  .home-section-heading h2 { font-size: 24px; }
  #libraryView .home-action-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 32px; }
  #libraryView .home-action-grid button { min-height: 156px; gap: 20px; padding: 20px; }
  #libraryView .home-action-grid img { width: 135px; height: 145px; right: 8px; bottom: -25px; }
  #libraryView .home-action-copy { width: calc(100% - 128px); }
  #libraryView .home-action-copy strong { font-size: 21px; }
  #libraryView .home-action-copy small { max-width: 190px; }
  #libraryView .dash-hero-bento { margin-bottom: 30px; }
}
/* A compact overview: one progress measure, one profile row, three recent steps. */
#libraryView .home-overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 24px; }
#libraryView .home-progress-panel, #libraryView .home-activity-panel { min-width: 0; padding: 26px; border: 1px solid var(--home-border); border-radius: 24px; background: #fff; box-shadow: 0 5px 20px #281a4504; }
#libraryView .home-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
#libraryView .home-panel-heading .eyebrow { margin: 0 0 7px; color: var(--home-muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
#libraryView .home-panel-heading h2 { margin: 0; color: var(--home-ink); font-size: 24px; font-weight: 600; letter-spacing: -.035em; }
#libraryView .home-text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 0 6px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--home-purple); font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: none; }
#libraryView .home-text-link:hover { color: var(--home-purple-deep); text-decoration: underline; text-underline-offset: 4px; }
#libraryView .home-completion-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
#libraryView .home-completion-heading>div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; }
#libraryView .home-completion-heading strong { font: 600 38px/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--home-purple); }
#libraryView .home-completion-heading span { color: var(--home-muted); font-size: 13px; }
#libraryView .home-completion-heading>span { flex-shrink: 0; font-size: 12px; }
#libraryView .home-completion-track { margin-top: 18px; height: 8px; border-radius: 10px; background: var(--home-lilac); overflow: hidden; }
#libraryView .home-completion-track[hidden] { display: none; }
#libraryView .home-completion-track i { display: block; width: 100%; height: 100%; background: var(--home-purple); border-radius: inherit; transform-origin: left; transition: transform 450ms var(--home-ease); }
#libraryView .home-progress-caption { margin: 12px 0 24px; color: var(--home-muted); font-size: 13px; line-height: 1.7; }
#libraryView .home-profile-summary { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #e5daf3; border-radius: 16px; background: #f7f3fd; color: var(--home-ink); text-decoration: none; transition: background-color 180ms ease, border-color 180ms ease; }
#libraryView .home-profile-summary:hover { background: var(--home-lilac); border-color: #c9b4e8; }
#libraryView .home-level-symbol { flex: 0 0 40px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #e8dcf8; color: var(--home-purple); }
#libraryView .home-level-symbol svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
#libraryView .home-level-copy { display: grid; min-width: 0; flex: 1; gap: 4px; }
#libraryView .home-level-copy strong { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
#libraryView .home-level-copy small { color: var(--home-muted); font-size: 11px; line-height: 1.5; }
#libraryView .home-points { display: grid; flex-shrink: 0; gap: 2px; text-align: right; }
#libraryView .home-points strong { font: 600 22px/1.1 var(--font-display); color: var(--home-purple); font-variant-numeric: tabular-nums; }
#libraryView .home-points small { color: var(--home-muted); font-size: 10px; }
#libraryView .home-profile-arrow { margin-left: 3px; color: var(--home-purple); }
#libraryView .home-activity-symbol { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--home-muted); background: #f6f3fa; }
#libraryView .home-activity-symbol svg, #libraryView .home-activity-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#libraryView .home-activity-list { display: grid; margin: 0; padding: 0; list-style: none; }
#libraryView .home-activity-item { position: relative; display: flex; align-items: flex-start; gap: 13px; min-width: 0; padding: 0 0 20px; }
#libraryView .home-activity-item:not(:last-child)::after { content: ''; position: absolute; top: 42px; bottom: 5px; left: 18px; width: 1px; background: var(--home-border); }
#libraryView .home-activity-item:last-child { padding-bottom: 0; }
#libraryView .home-activity-icon { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; background: var(--home-lilac); color: var(--home-purple); border-radius: 12px; }
#libraryView .home-activity-icon.achievement { background: #fff1d9; color: #875617; }
#libraryView .home-activity-icon.course-completed { background: #e6f3ee; color: #287451; }
#libraryView .home-activity-copy { min-width: 0; flex: 1; padding-top: 1px; }
#libraryView .home-activity-copy strong { display: block; font-size: 13px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
#libraryView .home-activity-copy p { margin: 4px 0 0; color: var(--home-muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
#libraryView .home-activity-item time { flex-shrink: 0; padding-top: 3px; color: var(--home-muted); font-size: 10px; }
#libraryView .home-activity-empty { display: flex; align-items: center; gap: 14px; padding: 17px 0 8px; }
#libraryView .home-activity-empty strong { font-size: 14px; font-weight: 600; }
#libraryView .home-activity-empty p { margin: 7px 0 0; color: var(--home-muted); font-size: 13px; line-height: 1.7; }
#libraryView .home-empty-icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 14px; background: var(--home-lilac); color: var(--home-purple); }
@media (min-width: 641px) {
  #libraryView .continue-hero { grid-template-columns: minmax(0, 1.6fr) minmax(220px, .8fr); min-height: 270px; }
  #libraryView .continue-hero-copy { max-width: 680px; }
  #libraryView .continue-hero-mascot { width: 250px; min-height: 215px; justify-self: center; margin-right: 0; }
  #libraryView .continue-hero-mascot img { width: 108%; height: 245px; right: -4%; bottom: -10px; }
  #libraryView .continue-hero h2 { font-size: clamp(27px, 2.6vw, 38px); }
}
@media (max-width: 960px) {
  #libraryView .home-overview-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (min-width: 641px) and (max-width: 800px) {
  #libraryView .continue-hero-mascot { width: 230px; }
}
@media (max-width: 640px) {
  #libraryView .home-progress-panel, #libraryView .home-activity-panel { padding: 22px 20px; border-radius: 22px; }
  #libraryView .home-panel-heading { gap: 8px; margin-bottom: 22px; }
  #libraryView .home-panel-heading h2 { font-size: 23px; }
  #libraryView .home-completion-heading { flex-wrap: wrap; gap: 10px; }
  #libraryView .home-profile-summary { flex-wrap: wrap; padding: 13px; gap: 10px; }
  #libraryView .home-level-symbol { flex-basis: 34px; width: 34px; height: 34px; }
  #libraryView .home-level-copy { flex-basis: calc(100% - 48px); }
  #libraryView .home-points { display: flex; align-items: baseline; gap: 5px; margin-left: 44px; text-align: left; }
  #libraryView .home-profile-arrow { margin-left: auto; }
  #libraryView .home-activity-item { gap: 10px; }
  #libraryView .home-activity-item time { font-size: 9px; }
}

/* Keep the newly added catalog shortcut alongside the restored home actions. */
.has-app-nav #libraryView .home-action-grid:has([data-home-catalog]) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.has-app-nav #libraryView .home-action-grid:has([data-home-catalog]) button:last-child { grid-column: auto; min-height: 180px; }
@media (min-width: 1280px) {
  .has-app-nav #libraryView .home-action-grid:has([data-home-catalog]) { gap: 16px; }
  .has-app-nav #libraryView .home-action-grid:has([data-home-catalog]) button { display: grid; grid-template-columns: minmax(0, 1fr) 64px; grid-template-rows: auto 1fr; min-height: 148px; padding: 16px; gap: 10px; align-items: center; text-align: left; }
  .has-app-nav #libraryView .home-action-grid:has([data-home-catalog]) button:last-child { min-height: 148px; }
  .has-app-nav #libraryView .home-action-grid:has([data-home-catalog]) .home-action-top { grid-column: 1/-1; }
  .has-app-nav #libraryView .home-action-grid:has([data-home-catalog]) .home-action-copy { grid-column: 1; grid-row: 2; width: 100%; margin-bottom: 0; justify-items: start; gap: 6px; }
  .has-app-nav #libraryView .home-action-grid:has([data-home-catalog]) .home-action-copy strong { font-size: 18px; }
  .has-app-nav #libraryView .home-action-grid:has([data-home-catalog]) .home-action-copy small { max-width: 100%; text-align: left; }
  .has-app-nav #libraryView .home-action-grid:has([data-home-catalog]) img { position: static; grid-column: 2; grid-row: 2; width: 64px; height: 84px; align-self: center; justify-self: end; transform: none; }
  .has-app-nav #libraryView .home-action-grid:has([data-home-catalog]) button:hover img { transform: translateY(-2px); }
}
@media (max-width: 1279px) {
  .has-app-nav #libraryView .home-action-grid:has([data-home-catalog]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .has-app-nav #libraryView .home-action-grid:has([data-home-catalog]) { grid-template-columns: minmax(0, 1fr); }
  .has-app-nav #libraryView .home-action-grid:has([data-home-catalog]) button:last-child { min-height: 156px; }
}
/* Keep the daily review alongside the greeting. */
#libraryView .home-heading { flex-wrap: wrap; }
#libraryView .home-heading > div:first-child { flex: 1 1 360px; }
#libraryView .due-reviews-banner { flex: 0 1 auto; max-width: 100%; }
#libraryView .due-reviews-banner button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--home-border);
  border-radius: 16px;
  background: var(--home-lilac);
  color: var(--home-purple);
  text-align: left;
  box-shadow: none;
  transform: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}
#libraryView .due-reviews-banner button:hover { background: white; border-color: var(--home-purple); }
#libraryView .due-reviews-banner button:active { background: var(--home-lilac); }
#libraryView .due-reviews-icon { display: grid; place-items: center; flex: 0 0 28px; }
#libraryView .due-reviews-icon svg { width: 24px; height: 24px; }
#libraryView .due-reviews-copy { display: grid; min-width: 0; gap: 3px; overflow-wrap: anywhere; }
#libraryView .due-reviews-copy strong { color: var(--home-ink); font-size: 13px; line-height: 1.4; }
#libraryView #dueReviewsBannerText { color: var(--home-muted); font-size: 12px; line-height: 1.4; }
#libraryView .due-reviews-arrow { margin-left: auto; font-size: 20px; }
@media (max-width: 640px) {
  #libraryView .home-heading > div:first-child { flex: 0 1 auto; }
  #libraryView .due-reviews-banner { width: 100%; }
  #libraryView .due-reviews-banner button { min-height: 56px; padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #libraryView .due-reviews-banner button { transition: none; }
}
