:root {
    --bg: #f8f4ee;
    --bg-soft: #fdfaf6;
    --panel: rgba(255, 255, 255, 0.98);
    --panel-strong: #ffffff;
    --panel-soft: #fbf7f1;
    --panel-deep: #f1ebe2;
    --text: #312925;
    --muted: #6f645d;
    --line: rgba(197, 180, 157, 0.56);
    --line-strong: rgba(184, 155, 121, 0.42);
    --brand: #8b6a53;
    --brand-2: #c08b6d;
    --brand-soft: #f6ece3;
    --gold: #c5a16a;
    --gold-soft: #efe3d1;
    --ivory: #fffdfa;
    --shadow: 0 22px 48px rgba(101, 82, 63, 0.06);
    --shadow-soft: 0 12px 26px rgba(101, 82, 63, 0.04);
    --success: #426b59;
    --danger: #a5564f;
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --dark-panel: #e8d7c7;
    --text-on-dark: #312925;
    --font-display: "Playfair Display", "Times New Roman", serif;
    --font-body: "Inter", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font-body);
    background:
        radial-gradient(circle at top left, rgba(192, 139, 109, 0.08), transparent 24%),
        radial-gradient(circle at top right, rgba(197, 161, 106, 0.08), transparent 20%),
        linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
    overflow-x: hidden;
}

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

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.74), transparent 24%),
        radial-gradient(circle at 20% 10%, rgba(255, 250, 242, 0.56), transparent 30%);
    opacity: 0.95;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100% - 1.5rem));
    margin: 0 auto;
    padding: 1rem 0 4rem;
    overflow-x: clip;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.8rem 0 1.6rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.brand-logo {
    width: min(100%, 320px);
    height: auto;
    filter: drop-shadow(0 8px 14px rgba(112, 91, 71, 0.08));
}

.brand-copy {
    display: none;
}

.topnav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.topnav a {
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    color: var(--text);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.topnav a:hover {
    background: rgba(255, 255, 255, 0.96);
    color: var(--brand);
    transform: translateY(-1px);
}

.topnav-soft {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    color: var(--brand) !important;
}

.main-content {
    display: grid;
    gap: 1.35rem;
}

.hero,
.search-panel,
.panel,
.auth-card,
.empty-state,
.book-card,
.detail-hero,
.admin-book-row,
.mini-panel,
.spotlight-card,
.recommendation-card,
.brianas-card,
.shelf-book {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.hero,
.detail-hero {
    border-radius: calc(var(--radius-xl) + 4px);
}

.hero-home {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1.5rem;
    padding: 1.8rem;
    overflow: hidden;
    position: relative;
}

.hero-home::after {
    content: "";
    position: absolute;
    inset: auto -10% -40% 28%;
    height: 280px;
    background: radial-gradient(circle, rgba(192, 139, 109, 0.16), transparent 58%);
    pointer-events: none;
}

.hero-copy-stack,
.hero-aside,
.spotlight-copy,
.shelf-copy,
.recommendation-copy,
.footer-brand {
    display: grid;
    gap: 0.95rem;
}

.hero-copy-stack {
    align-content: start;
    position: relative;
    z-index: 1;
}

.hero-aside {
    align-content: start;
    padding: 1.2rem;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(247, 241, 233, 0.98));
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hero-logo {
    width: min(100%, 240px);
    margin: 0 auto;
}

.hero-note {
    padding: 1rem 1.05rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line);
}

.hero-note p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.reader-shell {
    display: grid;
    gap: 1rem;
    max-width: 72rem;
    margin: 0 auto;
}

.reader-topbar,
.reader-controls {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.reader-heading h1 {
    margin-bottom: 0.25rem;
}

.reader-subtitle,
.reader-progress,
.reader-help p {
    margin: 0;
    color: var(--muted);
}

.reader-top-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.reader-select {
    display: grid;
    gap: 0.35rem;
    min-width: min(100%, 280px);
}

.reader-select span {
    color: var(--muted);
    font-size: 0.92rem;
}

.reader-select select {
    min-height: 2.75rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0.65rem 0.9rem;
    color: var(--ink);
}

.reader-stage-wrap {
    min-height: 72vh;
    padding: 0.75rem;
    display: flex;
    justify-content: center;
}

.reader-stage {
    min-height: 68vh;
    height: 72vh;
    width: 100%;
    max-width: 56rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #fffdf9;
    border: 1px solid var(--line);
}

.hero-actions,
.pill-group,
.subject-filter-row,
.badge-row,
.format-row,
.card-actions,
.file-actions,
.admin-book-actions,
.hero-highlights,
.author-cloud,
.corner-list {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.hero-highlights span,
.badge,
.format-badge,
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.2rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #f8f0e8;
    color: #5f4d42;
    font-size: 0.92rem;
}

.hero-highlights span {
    background: rgba(192, 139, 109, 0.14);
    color: var(--brand);
    border-color: rgba(192, 139, 109, 0.28);
}

.home-band,
.about-grid,
.recommendation-grid {
    display: grid;
    gap: 1.2rem;
}

.home-band,
.about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-panel,
.panel,
.search-panel,
.book-card,
.admin-book-row,
.auth-card,
.empty-state,
.recommendation-card,
.spotlight-card,
.brianas-card,
.shelf-book {
    border-radius: var(--radius-lg);
}

.mini-panel,
.panel,
.search-panel,
.auth-card,
.empty-state,
.detail-hero {
    padding: 1.3rem;
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.74rem;
    font-weight: 700;
    color: #b58468;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.55rem, 5vw, 4.7rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h3 {
    font-size: 1.45rem;
}

.hero-copy,
.description,
.meta-block,
.section-copy,
.footer-brand p,
.mini-panel p,
.recommendation-card p,
.hero-note p,
.brianas-card p,
.empty-copy,
.file-row p,
.modal-copy,
.kindle-note,
.author,
.meta-line,
.topnav,
.description-snippet {
    color: var(--muted);
}

.book-card h2 a,
.spotlight-copy h3 a,
.shelf-copy h3 a,
.recommendation-copy h3 a {
    color: var(--text);
}

.hero-copy,
.section-copy,
.description {
    line-height: 1.7;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.section-heading > div {
    display: grid;
    gap: 0.4rem;
}

.section-copy {
    max-width: 42rem;
    margin: 0;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.hero-stat-card {
    display: block;
    padding: 1rem 1.05rem;
    border-radius: var(--radius-md);
    background: #fffdfa;
    border: 1px solid var(--line);
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.hero-stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(48, 28, 28, 0.07);
    border-color: rgba(192, 139, 109, 0.48);
}

.hero-stat-card.is-active {
    background: #fbf0ea;
    border-color: rgba(192, 139, 109, 0.48);
}

.hero-stat-static:hover {
    transform: none;
    box-shadow: none;
}

.hero-stats strong {
    display: block;
    font-size: 1.8rem;
    color: var(--brand);
}

.hero-stat-card span {
    color: var(--muted);
}

.spotlight-grid,
.card-grid,
.detail-grid,
.admin-grid {
    display: grid;
    gap: 1.2rem;
}

.spotlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spotlight-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 180px 1fr;
}

.spotlight-cover img,
.cover-link img,
.detail-cover img,
.admin-book-main img,
.shelf-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: var(--panel-strong);
}

.spotlight-cover img {
    height: 100%;
}

.spotlight-copy {
    padding: 1.15rem;
}

.shelf-section,
.spotlight-section,
.reader-favorites,
.library-results,
.about-section,
.brianas-corner {
    display: grid;
    gap: 1rem;
}

.compact-section {
    gap: 0.75rem;
}

.shelf-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.shelf-book {
    overflow: hidden;
}

.shelf-copy {
    padding: 0.95rem;
}

.author-cloud {
    gap: 0.85rem;
}

.author-chip {
    display: inline-grid;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    min-width: 170px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: #fffdfa;
    box-shadow: var(--shadow-soft);
}

.author-chip strong {
    color: var(--brand);
}

.author-chip span {
    color: var(--muted);
    font-size: 0.94rem;
}

.search-panel {
    position: relative;
}

.search-panel-inner {
    display: grid;
    gap: 1rem;
}

.search-box input,
.stack-form input[type="text"],
.stack-form input[type="url"],
.stack-form input[type="file"],
.stack-form input[type="password"],
.stack-form input[type="email"],
.stack-form select,
.stack-form textarea,
.auth-card input,
.sort-select select,
.kindle-form input {
    width: 100%;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--text);
    border-radius: 18px;
    padding: 0.95rem 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.search-box input::placeholder,
.auth-card input::placeholder,
.kindle-form input::placeholder,
.stack-form input::placeholder,
.stack-form textarea::placeholder {
    color: #9b8d82;
}

.search-box input:focus,
.stack-form input:focus,
.stack-form select:focus,
.stack-form textarea:focus,
.auth-card input:focus,
.sort-select select:focus,
.kindle-form input:focus {
    outline: 2px solid rgba(139, 106, 83, 0.22);
    outline-offset: 0;
    border-color: rgba(139, 106, 83, 0.35);
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.pill.active,
.badge-ebook {
    background: var(--brand);
    border-color: var(--brand);
    color: #ffffff;
}

.subtle-badge {
    background: #f8f0e8;
    color: #5f4d42;
}

.sort-select {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--muted);
}

.recommendation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recommendation-card {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
}

.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.book-card {
    overflow: hidden;
}

.book-card-body {
    display: grid;
    gap: 0.78rem;
    padding: 1rem 1rem 1.15rem;
}

.book-card h2 {
    font-size: 1.55rem;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.95rem;
    padding: 0.78rem 1.05rem;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.primary-button {
    background: linear-gradient(135deg, #9d775d, #c99676);
    color: #fff;
    box-shadow: 0 8px 18px rgba(157, 119, 93, 0.18);
}

.primary-button:hover {
    background: #b68466;
    color: #fff;
}

.secondary-button {
    background: #fffdfa;
    color: var(--brand);
    border: 1px solid var(--line);
}

.ghost-button {
    background: rgba(255, 255, 255, 0.96);
    color: var(--brand);
    border: 1px solid var(--line);
}

.danger-button,
.text-button {
    background: transparent;
    color: var(--danger);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.danger-button:hover,
.text-button:hover,
.author-chip:hover,
.topnav a:hover,
.spotlight-card:hover,
.book-card:hover,
.recommendation-card:hover,
.shelf-book:hover {
    transform: translateY(-2px);
}

.is-disabled {
    pointer-events: none;
    opacity: 0.48;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    align-items: center;
    gap: 1.5rem;
}

.detail-grid,
.admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel h2 {
    margin-bottom: 0.9rem;
}

.file-list,
.admin-book-list {
    display: grid;
    gap: 1rem;
}

.file-row,
.admin-file-row,
.admin-book-row {
    border: 1px solid var(--line);
    background: #fffdfa;
}

.file-row-emphasis {
    border: 1px solid rgba(184, 155, 94, 0.3);
    background: linear-gradient(135deg, rgba(239, 227, 209, 0.86), rgba(255, 255, 255, 0.92));
}

.file-row,
.admin-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
}

.audio-player {
    display: grid;
    gap: 0.6rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fffdfa;
}

.audio-player audio {
    width: 100%;
}

.auth-wrap {
    display: grid;
    place-items: center;
    min-height: 68vh;
}

.auth-card {
    width: min(34rem, 100%);
    display: grid;
    gap: 1rem;
    text-align: center;
}

.auth-logo {
    width: min(100%, 190px);
    margin: 0 auto 0.25rem;
}

.full-width {
    width: 100%;
}

.stack-form {
    display: grid;
    gap: 1rem;
}

.stack-form label,
.auth-card label,
.kindle-form label {
    display: grid;
    gap: 0.5rem;
    text-align: left;
}

.stack-form textarea {
    min-height: 10rem;
    resize: vertical;
}

.kindle-form {
    display: grid;
    gap: 0.8rem;
    padding: 0.9rem 1rem 1rem;
    margin-top: -0.35rem;
    margin-bottom: 0.4rem;
    border-radius: 18px;
    border: 1px dashed var(--line-strong);
    background: rgba(255, 255, 255, 0.94);
}

.kindle-note {
    margin: -0.2rem 0 0;
    font-size: 0.92rem;
    line-height: 1.5;
}

.modal-open {
    overflow: hidden;
}

.modal-shell {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(96, 78, 63, 0.18);
    backdrop-filter: blur(6px);
}

.modal-card {
    position: relative;
    width: min(30rem, calc(100% - 1.5rem));
    margin: min(10vh, 4rem) auto 0;
    padding: 1.3rem;
    border-radius: 26px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    display: grid;
    gap: 0.9rem;
}

.modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--text);
    cursor: pointer;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 0 0.3rem;
}

.admin-book-row {
    padding: 1rem;
    display: grid;
    gap: 1rem;
}

.admin-book-main {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 1rem;
    align-items: center;
}

.admin-book-main img {
    border-radius: 18px;
}

.cover-placeholder {
    width: 84px;
    aspect-ratio: 2 / 3;
    display: grid;
    place-items: center;
    border-radius: 18px;
    border: 1px solid var(--line-soft);
    background: var(--panel-soft);
    color: var(--muted);
    font-size: 0.82rem;
    text-align: center;
    padding: 0.75rem;
}

.admin-file-list {
    display: grid;
    gap: 0.7rem;
}

.mini-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.inline-form {
    display: inline;
}

.alert {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--line-strong);
}

.alert-success {
    background: rgba(44, 109, 82, 0.12);
    color: var(--success);
}

.alert-error {
    background: rgba(159, 49, 72, 0.12);
    color: var(--danger);
}

.empty-state {
    padding: 2rem;
    text-align: center;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    flex-wrap: wrap;
    padding: 0.25rem 0 0.5rem;
}

.pagination-copy {
    margin: 0;
    color: var(--muted);
}

.brianas-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 1.2rem;
    padding: 1.3rem;
    background:
        linear-gradient(135deg, rgba(192, 139, 109, 0.14), rgba(239, 227, 209, 0.58)),
        var(--panel);
}

.brianas-actions {
    display: grid;
    align-content: center;
    gap: 0.9rem;
}

.corner-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.corner-list li {
    padding: 0.25rem 0;
    color: var(--muted);
}

.site-footer {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
    padding: 1.2rem 0 0;
    border-top: 1px solid var(--line);
}

.footer-logo {
    width: min(100%, 260px);
}

.footer-links {
    display: grid;
    gap: 0.6rem;
}

.footer-links a {
    color: var(--brand-2);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

code {
    word-break: break-word;
}

@media (max-width: 1100px) {
    .spotlight-grid,
    .recommendation-grid,
    .home-band,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .spotlight-card,
    .brianas-card {
        grid-template-columns: 1fr;
    }

    .shelf-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero-home,
    .detail-hero,
    .detail-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .page-shell {
        width: min(100% - 1rem, 1280px);
    }

    .brand-logo {
        width: min(100%, 260px);
    }

    .section-heading {
        align-items: start;
    }
}

@media (max-width: 720px) {
    .topbar,
    .toolbar,
    .file-row,
    .admin-file-row,
    .admin-header,
    .site-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-stats,
    .shelf-row {
        grid-template-columns: 1fr;
    }

    .reader-topbar,
    .reader-controls {
        align-items: stretch;
    }

    .reader-top-actions {
        width: 100%;
    }

    .reader-top-actions .primary-button,
    .reader-top-actions .ghost-button,
    .reader-controls .secondary-button {
        flex: 1 1 180px;
    }

    .topnav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
        justify-content: stretch;
    }

    .topnav a {
        min-width: 0;
        text-align: center;
        white-space: normal;
        line-height: 1.2;
        padding: 0.72rem 0.75rem;
    }

    .topnav-soft {
        grid-column: 1 / -1;
    }

    .brand {
        width: 100%;
        justify-content: center;
    }

    .brand-logo {
        width: min(100%, 220px);
    }

    .hero-home {
        padding: 1.25rem;
    }

    h1 {
        font-size: clamp(2.15rem, 10vw, 3.25rem);
    }

    .hero-copy {
        font-size: 1rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-highlights {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-highlights span {
        width: 100%;
        min-width: 0;
        text-align: center;
    }

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

@media (max-width: 640px) {
    .card-grid,
    .recommendation-grid {
        grid-template-columns: 1fr;
    }

    .reader-stage-wrap {
        padding: 0.5rem;
        min-height: 60vh;
    }

    .reader-stage {
        min-height: 58vh;
        height: 60vh;
    }

    .page-shell {
        width: calc(100% - 0.8rem);
    }

    .topbar {
        padding-bottom: 1rem;
    }

    .topnav {
        grid-template-columns: 1fr;
    }

    .brand-logo {
        width: min(100%, 200px);
    }

    .hero-home,
    .detail-hero,
    .panel,
    .search-panel,
    .auth-card,
    .empty-state {
        padding: 1rem;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .section-heading {
        margin-bottom: 0.7rem;
    }

    .primary-button,
    .secondary-button,
    .ghost-button,
    .danger-button,
    .text-button {
        width: 100%;
    }

    .pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .file-row,
    .admin-file-row,
    .admin-book-main {
        display: grid;
    }

    .admin-book-main {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .admin-book-main img {
        width: 84px;
    }

    .author-chip {
        min-width: 0;
        width: 100%;
    }
}
