:root {
  --bg: #111317;
  --panel: #1a1f27;
  --panel-strong: #222936;
  --text: #f7f2e8;
  --muted: #aeb6c2;
  --line: rgba(255, 255, 255, 0.1);
  --amber: #f2a93b;
  --green: #36c98f;
  --blue: #68c7e8;
  --rose: #e86f72;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(104, 199, 232, 0.13), transparent 30rem),
    linear-gradient(135deg, #111317 0%, #171a20 48%, #0f1215 100%);
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: rgba(17, 19, 23, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.feed-item,
.progress-row,
.player-actions,
.review-actions,
.topbar,
.section-head,
.stat-item {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: #111317;
  font-weight: 800;
  background: linear-gradient(135deg, var(--amber), var(--green));
}

.brand small,
.eyebrow,
.muted,
.book-card p,
.stat-item span,
.search-card label {
  color: var(--muted);
}

.brand small {
  display: block;
  margin-top: 2px;
}

.nav-list {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.nav-list a,
.goal-box,
.panel,
.book-card,
.collection-card,
.account-card,
.plan-card,
.search-card {
  border: 1px solid var(--line);
  background: rgba(26, 31, 39, 0.78);
  box-shadow: var(--shadow);
}

.nav-list a {
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--muted);
}

.nav-list a.active,
.nav-list a:hover {
  color: var(--text);
  background: rgba(242, 169, 59, 0.13);
  border-color: rgba(242, 169, 59, 0.28);
}

.goal-box {
  margin-top: 32px;
  padding: 18px;
  border-radius: 8px;
}

.goal-box span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.goal-track,
.audio-track,
.mini-progress {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.goal-track {
  height: 8px;
  margin-top: 14px;
}

.goal-track i,
.audio-track i,
.mini-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.content {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 34px;
}

.topbar {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 800px;
  margin-bottom: 0;
  font-size: clamp(2.25rem, 5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.25;
}

.search-card {
  width: min(360px, 100%);
  padding: 14px;
  border-radius: 8px;
}

.search-card label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.search-card input {
  width: 100%;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.panel,
.book-card,
.collection-card,
.account-card,
.plan-card,
.search-card {
  border-radius: 8px;
}

.panel {
  padding: 22px;
}

.now-playing {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
}

.book-cover {
  position: relative;
  min-height: 235px;
  border-radius: 8px;
  overflow: hidden;
  background: #2b313c;
}

.book-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.2), transparent 42%),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(255, 255, 255, 0.06) 18px 19px);
}

.book-cover img,
.free-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.book-cover img + span,
.free-cover img + span {
  z-index: 2;
}

.book-cover span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #14171d;
  font-weight: 800;
  background: rgba(247, 242, 232, 0.9);
}

.cover-one {
  background: linear-gradient(145deg, #273241, #d39b37);
}

.cover-two {
  background: linear-gradient(145deg, #203b3d, #68c7e8);
}

.cover-three {
  background: linear-gradient(145deg, #32273d, #36c98f);
}

.cover-four {
  background: linear-gradient(145deg, #3d2d24, #e86f72);
}

.compact {
  margin-bottom: 12px;
}

.section-head {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #111317;
  background: var(--amber);
}

.progress-row {
  gap: 12px;
  margin: 34px 0 20px;
  color: var(--muted);
  font-weight: 700;
}

.audio-track {
  flex: 1;
  height: 10px;
}

#audioProgress {
  width: 41%;
}

.player-actions,
.review-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.player-actions button,
.review-actions button,
.segmented button,
.shelf-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.player-actions button.selected,
.segmented button.active,
.shelf-button.active {
  color: #111317;
  border-color: transparent;
  background: var(--green);
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sync-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.sync-status.success {
  color: var(--green);
}

.sync-status.error {
  color: var(--rose);
}

.stat-item {
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  min-height: 118px;
  padding: 16px;
  border-radius: 8px;
  background: var(--panel-strong);
}

.stat-item strong {
  font-size: 2rem;
}

.section,
.split-section {
  margin-top: 22px;
}

.account-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #111317;
  font-weight: 800;
  background: var(--amber);
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.account-grid.account-ready {
  grid-template-columns: 1fr;
}

.account-card,
.plan-card {
  padding: 18px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-tabs button,
.primary-action,
.ghost-action,
.plan-card button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.auth-tabs button.active,
.primary-action,
.plan-card.featured button,
.plan-card.active button {
  color: #111317;
  border-color: transparent;
  background: var(--green);
}

.auth-form {
  display: none;
  gap: 12px;
}

.auth-form.active {
  display: grid;
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-form label span {
  color: var(--muted);
  font-size: 0.86rem;
}

.auth-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  outline: 0;
}

.form-message {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.form-message.error {
  color: var(--rose);
}

.form-message.success {
  color: var(--green);
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.avatar.large {
  flex-basis: 58px;
  width: 58px;
  height: 58px;
  font-size: 1.1rem;
}

.profile-top h3 {
  margin-bottom: 4px;
}

.profile-top p {
  margin-bottom: 0;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.profile-stats div {
  min-height: 88px;
  padding: 12px;
  border-radius: 8px;
  background: var(--panel-strong);
}

.profile-stats span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.profile-stats strong {
  display: block;
  font-size: 1.1rem;
}

.profile-shelf {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.profile-shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-shelf-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

#profileShelfList {
  display: grid;
  gap: 8px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#profileShelfList li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel-strong);
}

#profileShelfList li strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

#profileShelfList li span {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.plan-card {
  display: grid;
  gap: 12px;
}

.plan-card.featured {
  border-color: rgba(54, 201, 143, 0.42);
  background: rgba(54, 201, 143, 0.08);
}

.plan-card.active {
  border-color: rgba(242, 169, 59, 0.5);
}

.plan-card span {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.plan-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.plan-card strong {
  font-size: 1.25rem;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.book-card {
  padding: 14px;
  cursor: pointer;
}

.book-card .book-cover {
  min-height: 210px;
  margin-bottom: 14px;
}

.mini-progress {
  height: 7px;
  margin: 14px 0;
}

.shelf-button {
  width: 100%;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 18px;
}

.feed-list {
  display: grid;
  gap: 14px;
}

.feed-item {
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.feed-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #101318;
  font-weight: 800;
  background: var(--blue);
}

.avatar.warm {
  background: var(--amber);
}

.avatar.green {
  background: var(--green);
}

.review-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 275px;
}

.review-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.review-form label {
  display: grid;
  gap: 7px;
}

.review-form label span {
  color: var(--muted);
  font-size: 0.86rem;
}

.review-form textarea,
.review-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  outline: 0;
}

.review-form textarea {
  resize: vertical;
  min-height: 96px;
  padding: 10px 12px;
}

.review-form select {
  min-height: 40px;
  padding: 0 10px;
}

.review-form-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.free-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.free-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(26, 31, 39, 0.78);
  box-shadow: var(--shadow);
}

.free-cover {
  position: relative;
  min-height: 205px;
  border-radius: 8px;
  overflow: hidden;
  background: #2b313c;
}

.free-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 46%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 18px);
}

.free-cover span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #101318;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(247, 242, 232, 0.92);
}

.classics-one {
  background: linear-gradient(145deg, #233640, #f2a93b);
}

.classics-two {
  background: linear-gradient(145deg, #2e2540, #68c7e8);
}

.classics-three {
  background: linear-gradient(145deg, #3c2926, #36c98f);
}

.classics-four {
  background: linear-gradient(145deg, #24332b, #e86f72);
}

.free-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
}

.free-meta,
.tag-row,
.free-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.free-meta {
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.free-body p {
  color: var(--muted);
  line-height: 1.5;
}

.tag-row span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
}

.free-actions {
  margin-top: 16px;
}

.free-actions a,
.free-actions .listen-button,
.free-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 8px;
}

.free-actions a {
  color: #101318;
  font-weight: 800;
  background: var(--amber);
}

.free-actions .listen-button {
  border: 0;
  color: #101318;
  font-weight: 800;
  background: var(--green);
}

.free-actions .shelf-button {
  width: auto;
}

.source-note {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(54, 201, 143, 0.24);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(54, 201, 143, 0.08);
}

.source-note strong {
  color: var(--text);
}

.ghost-action {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(104, 199, 232, 0.32);
  border-radius: 8px;
  color: var(--text);
  background: rgba(104, 199, 232, 0.08);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.collection-card {
  position: relative;
  overflow: hidden;
  min-height: 245px;
  padding: 18px;
}

.collection-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--amber);
}

.collection-card.accent-green::before {
  background: var(--green);
}

.collection-card.accent-blue::before {
  background: var(--blue);
}

.collection-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 46px;
  color: var(--muted);
  font-size: 0.86rem;
}

.collection-topline strong {
  color: var(--text);
}

.collection-card p {
  color: var(--muted);
  line-height: 1.55;
}

.collection-meter {
  overflow: hidden;
  height: 8px;
  margin-top: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.collection-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--green), var(--blue));
}

.reader-space .section-head {
  align-items: flex-start;
}

.reader-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.reader-grid.lower {
  margin-top: 18px;
}

.stack-form,
.calendar-form {
  display: grid;
  gap: 10px;
}

.stack-form label,
.calendar-form label {
  display: grid;
  gap: 7px;
}

.stack-form span,
.calendar-form span {
  color: var(--muted);
  font-size: 0.86rem;
}

.stack-form input,
.stack-form textarea,
.calendar-form input,
.calendar-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  outline: 0;
}

.stack-form input,
.calendar-form input,
.calendar-form select {
  min-height: 42px;
  padding: 0 12px;
}

.stack-form textarea {
  min-height: 96px;
  padding: 10px 12px;
  resize: vertical;
}

.calendar-form {
  grid-template-columns: 150px minmax(0, 1fr) 170px 120px;
  align-items: end;
}

.activity-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.activity-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.activity-item strong {
  display: block;
  margin-bottom: 6px;
}

.activity-item p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.activity-item span,
.calendar-day span {
  color: var(--muted);
  font-size: 0.82rem;
}

.quote-list .activity-item p {
  color: var(--text);
  font-size: 1.02rem;
}

.calendar-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.calendar-day {
  min-height: 112px;
  padding: 12px;
  border: 1px solid rgba(54, 201, 143, 0.22);
  border-radius: 8px;
  background: rgba(54, 201, 143, 0.08);
}

.calendar-day strong {
  display: block;
  margin: 8px 0;
}

.year-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.year-stats div {
  min-height: 84px;
  padding: 12px;
  border-radius: 8px;
  background: var(--panel-strong);
}

.year-stats span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.year-stats strong {
  font-size: 1.4rem;
}

.archive-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
}

.book-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
}

.book-modal[hidden] {
  display: none;
}

.book-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 8, 0.72);
  backdrop-filter: blur(10px);
}

.book-modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.58fr);
  width: min(860px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.book-modal-card > img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.book-modal-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
}

.book-modal-body h2 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(17, 19, 23, 0.78);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.modal-player {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(104, 199, 232, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(104, 199, 232, 0.12), rgba(54, 201, 143, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.modal-player[hidden] {
  display: none;
}

.modal-player audio {
  display: none;
}

.custom-player {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.player-main-button {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  color: #101318;
  font-weight: 800;
  background: var(--green);
  box-shadow: 0 10px 28px rgba(54, 201, 143, 0.22);
}

.custom-player-body {
  min-width: 0;
}

.custom-player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.custom-player-top span:first-child {
  overflow: hidden;
  color: var(--text);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-player-top span:last-child {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.82rem;
}

.modal-seek {
  width: 100%;
  height: 8px;
  margin: 0;
  accent-color: var(--green);
}

.custom-player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.custom-player-actions button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.custom-player-actions button.selected {
  color: #101318;
  border-color: transparent;
  background: var(--amber);
}

.modal-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  color: #101318;
  font-weight: 800;
  background: var(--amber);
}

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .goal-box {
    display: none;
  }

  .dashboard-grid,
  .split-section,
  .free-grid,
  .collection-grid,
  .reader-grid,
  .account-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .calendar-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .content,
  .sidebar {
    padding: 20px;
  }

  .topbar,
  .now-playing,
  .section-head {
    display: block;
  }

  .search-card {
    margin-top: 18px;
  }

  .nav-list {
    grid-template-columns: 1fr 1fr;
  }

  .book-grid,
  .stats,
  .profile-stats,
  .calendar-form,
  .calendar-strip,
  .year-stats,
  .archive-row {
    grid-template-columns: 1fr;
  }

  .free-card {
    grid-template-columns: 1fr;
  }

  .source-note {
    display: block;
  }

  .now-playing .book-cover {
    margin-bottom: 18px;
  }

  .segmented {
    margin-top: 14px;
  }

  .book-modal-card {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .book-modal-card > img {
    height: 320px;
    min-height: 320px;
  }

  .book-modal-body {
    padding: 20px;
  }

  .book-modal-body h2 {
    font-size: 1.5rem;
  }
}
