.book-page-lede {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--vtt-ink-muted, #6e5745);
}

.book-page-section {
    margin-bottom: 1rem;
}

.book-page-section:last-child {
    margin-bottom: 0;
}

.book-page-section-title {
    margin: 0 0 0.5rem;
    color: var(--vtt-plum-deep, #2f1638);
    font-size: 1rem;
}

.book-page-note {
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(130, 89, 52, 0.14);
    background: rgba(255, 252, 246, 0.62);
    color: var(--vtt-ink-muted, #6e5745);
    line-height: 1.5;
}

.book-ledger {
    display: grid;
    gap: 0.75rem;
}

.book-ledger-row {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(130, 89, 52, 0.12);
}

.book-ledger-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.book-ledger-label {
    color: var(--vtt-ink-muted, #6e5745);
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.book-ledger-value {
    color: var(--vtt-plum-deep, #2f1638);
    font-weight: 700;
    text-align: right;
}

.book-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.book-hero-actions .btn {
    min-height: 42px;
}

.book-guide-list {
    display: grid;
    gap: 0.6rem;
}

.book-guide-item {
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    background: rgba(255, 252, 246, 0.62);
    border: 1px solid rgba(130, 89, 52, 0.14);
}

.book-guide-title {
    font-weight: 700;
    color: var(--vtt-plum-deep, #2f1638);
    margin-bottom: 0.2rem;
}

.book-guide-copy {
    color: var(--vtt-ink-muted, #6e5745);
    line-height: 1.45;
    font-size: 0.92rem;
}

.book-form-banner {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(130, 89, 52, 0.14);
    background: rgba(255, 252, 246, 0.62);
    color: var(--vtt-ink-muted, #6e5745);
    line-height: 1.5;
}

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

.book-form-banner.is-error {
    border-color: rgba(169, 74, 69, 0.28);
    background: rgba(169, 74, 69, 0.08);
    color: var(--vtt-error-ink, #a94a45);
}

.book-form-banner.is-success {
    border-color: rgba(78, 117, 80, 0.24);
    background: rgba(78, 117, 80, 0.08);
    color: var(--vtt-success-ink, #4e7550);
}

.book-form-banner.is-info {
    border-color: rgba(202, 163, 59, 0.26);
    background: rgba(202, 163, 59, 0.08);
    color: var(--vtt-plum-deep, #2f1638);
}

.book-auth-form {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.book-auth-form .form-group {
    margin-bottom: 1rem;
}

.book-auth-form .btn {
    width: 100%;
}

.book-auth-actions {
    display: grid;
    gap: 0.75rem;
}

.book-callout-stack {
    display: grid;
    gap: 0.75rem;
}

.book-callout {
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(255, 252, 246, 0.62);
    border: 1px solid rgba(130, 89, 52, 0.14);
}

.book-callout-title {
    margin: 0 0 0.22rem;
    color: var(--vtt-plum-deep, #2f1638);
    font-weight: 700;
}

.book-callout-copy {
    color: var(--vtt-ink-muted, #6e5745);
    line-height: 1.45;
    font-size: 0.92rem;
}

.book-password-list {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.book-password-item {
    padding: 0.68rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(130, 89, 52, 0.12);
    background: rgba(255, 252, 246, 0.58);
    color: var(--vtt-ink-muted, #6e5745);
    font-size: 0.9rem;
}

.book-password-item.is-met {
    border-color: rgba(78, 117, 80, 0.18);
    background: rgba(78, 117, 80, 0.08);
    color: var(--vtt-success-ink, #4e7550);
}

.book-inline-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.book-toolbar {
    display: grid;
    gap: 0.75rem;
}

.book-toolbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.book-lobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.book-lobby-card {
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 252, 246, 0.74);
    border: 1px solid rgba(130, 89, 52, 0.18);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.book-lobby-title {
    margin: 0;
    color: var(--vtt-plum-deep, #2f1638);
    font-size: 1.08rem;
}

.book-lobby-meta {
    color: var(--vtt-ink-muted, #6e5745);
    line-height: 1.45;
    font-size: 0.92rem;
}

.book-lobby-role {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: rgba(75, 35, 90, 0.09);
    border: 1px solid rgba(75, 35, 90, 0.14);
    color: var(--vtt-plum-deep, #2f1638);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.book-lobby-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: auto;
}

.book-lobby-actions .btn {
    flex: 1 1 140px;
}

.book-empty-shell {
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px dashed rgba(130, 89, 52, 0.26);
    background: rgba(255, 252, 246, 0.58);
    color: var(--vtt-ink-muted, #6e5745);
    text-align: center;
}

@media (max-width: 720px) {
    .book-inline-fields,
    .book-toolbar-actions {
        grid-template-columns: 1fr;
    }
}

body.book-shell-app .stats-row,
body.book-shell-app .grid {
    gap: 1rem;
}

body.book-shell-app .stat-card,
body.book-shell-app .card,
body.book-shell-app .campaign-card,
body.book-shell-app .char-card,
body.book-shell-app .detail-panel,
body.book-shell-app .message {
    border-radius: 16px;
    border: 1px solid rgba(130, 89, 52, 0.18) !important;
    background: rgba(255, 252, 246, 0.74) !important;
    color: var(--vtt-ink, #2a1a12) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 14px 24px rgba(42, 26, 18, 0.08);
}

body.book-shell-app .stat-value,
body.book-shell-app .card-title,
body.book-shell-app .campaign-name,
body.book-shell-app .char-name,
body.book-shell-app .detail-panel h2,
body.book-shell-app .section-header h2 {
    color: var(--vtt-plum-deep, #2f1638) !important;
}

body.book-shell-app .stat-label,
body.book-shell-app .card-meta,
body.book-shell-app .meta-label,
body.book-shell-app .char-race,
body.book-shell-app .char-class,
body.book-shell-app .empty-state,
body.book-shell-app .empty-state p,
body.book-shell-app .detail-panel,
body.book-shell-app .message {
    color: var(--vtt-ink-muted, #6e5745) !important;
}

body.book-shell-app .section {
    margin-bottom: 1rem;
}

body.book-shell-app .section-header {
    border-bottom: 1px solid rgba(130, 89, 52, 0.14) !important;
    padding-bottom: 0.7rem;
}

body.book-shell-app .section-header a {
    color: var(--vtt-plum, #4b235a) !important;
}

body.book-shell-app .card:hover,
body.book-shell-app .campaign-card:hover,
body.book-shell-app .char-card:hover {
    border-color: rgba(202, 163, 59, 0.48) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 18px 28px rgba(42, 26, 18, 0.12) !important;
}

body.book-shell-app .card-image,
body.book-shell-app .campaign-banner,
body.book-shell-app .char-portrait {
    border-bottom: 1px solid rgba(130, 89, 52, 0.14) !important;
    background:
        radial-gradient(circle at top, rgba(202, 163, 59, 0.18), transparent 48%),
        linear-gradient(135deg, rgba(75, 35, 90, 0.18) 0%, rgba(255, 252, 246, 0.82) 100%) !important;
    color: var(--vtt-plum-deep, #2f1638) !important;
}

body.book-shell-app .tabs,
body.book-shell-app .filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.8rem;
    border-radius: 14px;
    border: 1px solid rgba(130, 89, 52, 0.14);
    background: rgba(255, 252, 246, 0.62);
}

body.book-shell-app .tab,
body.book-shell-app .tab-btn {
    min-height: 44px;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(130, 89, 52, 0.16);
    background: rgba(255, 252, 246, 0.7);
    color: var(--vtt-ink-muted, #6e5745);
}

body.book-shell-app .tab.active,
body.book-shell-app .tab-btn.active {
    color: var(--vtt-plum-deep, #2f1638);
    border-color: rgba(202, 163, 59, 0.48);
    background: rgba(202, 163, 59, 0.12);
}

body.book-shell-app .detail-panel.hidden,
body.book-shell-app .message:empty {
    display: none;
}

@media (max-width: 900px) {
    body.book-shell-app .stats-row,
    body.book-shell-app .grid,
    body.book-shell-app .filter-bar {
        grid-template-columns: 1fr;
    }
}
