.viewer-container {
            max-width: 1560px;
            margin: 20px auto 48px;
            padding: 0 20px;
            width: 100%;
        }

        .viewer-stage {
            background: var(--bg-viewer-frame);
            border: 1px solid var(--border-medium);
            border-radius: var(--radius-sharp);
            display: flex;
            flex-direction: column;
            height: calc(100vh - 110px);
            min-height: 820px;
            overflow: hidden;
            box-shadow: 0 32px 80px rgba(0, 0, 0, 0.95);
        }

        .viewer-header-bar {
            height: 56px;
            background: var(--bg-surface);
            border-bottom: 1px solid var(--border-hairline);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 16px;
            gap: 12px;
            flex-shrink: 0;
            z-index: 20;
        }

        .viewer-doc-identity {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }

        .btn-viewer-exit {
            background: transparent;
            border: 1px solid var(--border-hairline);
            color: var(--text-secondary);
            padding: 0 12px;
            height: 34px;
            font-family: var(--font-sans);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: var(--trans-fast);
            border-radius: var(--radius-sharp);
        }

        .btn-viewer-exit:hover {
            color: var(--text-pure);
            border-color: var(--vintage-gold);
            background: var(--bg-card);
        }

        .viewer-doc-select-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .viewer-select-tag {
            font-family: var(--font-mono);
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 1.5px;
            color: var(--vintage-gold);
            text-transform: uppercase;
        }

        .viewer-doc-dropdown {
            background: var(--bg-card);
            border: 1px solid var(--border-medium);
            color: var(--text-pure);
            font-family: var(--font-sans);
            font-size: 12px;
            font-weight: 600;
            padding: 0 12px;
            height: 34px;
            border-radius: var(--radius-sharp);
            cursor: pointer;
            outline: none;
            transition: var(--trans-fast);
            max-width: 380px;
        }

        .viewer-doc-dropdown:hover, .viewer-doc-dropdown:focus {
            border-color: var(--vintage-gold);
        }

        .viewer-pagination {
            display: flex;
            align-items: center;
            gap: 8px;
            background: var(--bg-card);
            border: 1px solid var(--border-hairline);
            padding: 2px 8px;
            height: 34px;
            box-sizing: border-box;
            border-radius: var(--radius-sharp);
        }

        .page-arrow-btn {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 4px;
            display: flex;
            align-items: center;
            transition: var(--trans-fast);
        }

        .page-arrow-btn:hover:not(:disabled) {
            color: var(--text-pure);
        }

        .page-arrow-btn:disabled {
            opacity: 0.25;
            cursor: not-allowed;
        }

        .page-jump-box {
            display: flex;
            align-items: center;
            gap: 6px;
            font-family: var(--font-mono);
            font-size: 11px;
            color: var(--text-muted);
        }

        .page-jump-input {
            width: 44px;
            height: 24px;
            background: var(--bg-surface);
            border: 1px solid var(--border-hairline);
            color: var(--text-pure);
            font-family: var(--font-mono);
            font-size: 12px;
            font-weight: 700;
            text-align: center;
            border-radius: var(--radius-sharp);
            outline: none;
        }

        .page-jump-input:focus {
            border-color: var(--vintage-gold);
        }

        .viewer-toolbar-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }

        .btn-viewer-mode-pill {
            background: var(--bg-card);
            border: 1px solid var(--border-hairline);
            color: var(--text-muted);
            padding: 0 10px;
            height: 34px;
            font-family: var(--font-sans);
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: var(--trans-fast);
            border-radius: var(--radius-sharp);
        }

        .btn-viewer-mode-pill:hover, .btn-viewer-mode-pill.active {
            color: var(--text-pure);
            border-color: var(--vintage-gold);
            background: var(--vintage-gold-soft);
        }

        .viewer-zoom-controls {
            display: flex;
            align-items: center;
            gap: 2px;
            background: var(--bg-card);
            border: 1px solid var(--border-hairline);
            border-radius: var(--radius-sharp);
            height: 34px;
            padding: 0 4px;
        }

        .btn-viewer-tool {
            background: transparent;
            border: none;
            color: var(--text-secondary);
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--trans-fast);
            border-radius: var(--radius-sharp);
        }

        .btn-viewer-tool:hover {
            color: var(--text-pure);
            background: var(--bg-surface);
        }

        .zoom-readout {
            font-family: var(--font-mono);
            font-size: 11px;
            color: var(--text-muted);
            min-width: 44px;
            text-align: center;
            user-select: none;
        }

        .viewer-drm-badge {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            background: var(--vintage-gold-soft);
            border: 1px solid var(--vintage-gold-border);
            color: var(--vintage-gold);
            font-family: var(--font-sans);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            padding: 0 14px;
            height: 34px;
            box-sizing: border-box;
            border-radius: var(--radius-sharp);
            user-select: none;
            cursor: default;
        }

        .viewer-stage,
        .scribd-viewport-scroller,
        .scribd-document-canvas-wrap,
        .scribd-page-slot canvas,
        .scribd-page-slot img.scribd-streamed-page-img {
            -webkit-user-select: none !important;
            -moz-user-select: none !important;
            -ms-user-select: none !important;
            user-select: none !important;
            -webkit-user-drag: none !important;
            pointer-events: auto;
        }
        .page-stream-container {
            position: relative;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            background: #ffffff;
        }
        .page-protect-overlay {
            position: absolute;
            inset: 0;
            z-index: 5;
            background: transparent;
            cursor: default;
            user-select: none !important;
            -webkit-user-select: none !important;
            pointer-events: auto;
        }
        .thumb-protect-overlay {
            position: absolute;
            inset: 0;
            z-index: 5;
            background: transparent;
            cursor: pointer;
            user-select: none !important;
            -webkit-user-select: none !important;
            pointer-events: auto;
        }
        .scribd-streamed-page-img,
        .thumb-canvas-wrap img {
            user-select: none !important;
            -webkit-user-select: none !important;
            -webkit-user-drag: none !important;
            -webkit-touch-callout: none !important;
            pointer-events: none !important;
        }
        .scribd-page-slot canvas {
            -webkit-user-select: none !important;
            -moz-user-select: none !important;
            -ms-user-select: none !important;
            user-select: none !important;
            -webkit-user-drag: none !important;
            -webkit-touch-callout: none !important;
        }

        .page-placeholder-ghost {
            width: 100%;
            min-height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #ffffff;
            border: 1px dashed var(--border-hairline);
        }

        .ghost-page-label {
            font-family: var(--font-mono);
            font-size: 13px;
            font-weight: 700;
            color: var(--text-muted);
            letter-spacing: 2px;
            opacity: 0.4;
        }

        .thumb-placeholder-ghost {
            width: 100%;
            height: 100%;
            min-height: 110px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.04);
            font-family: var(--font-mono);
            font-size: 11px;
            font-weight: 700;
            color: var(--text-muted);
            opacity: 0.5;
        }

        .scribd-page-slot {
            position: relative;
        }

        .scribd-page-slot::after {
            content: "MASTERMANUALS • ARCHIVO TÉCNICO DE MOTOCICLETAS";
            position: absolute;
            bottom: 14px;
            right: 20px;
            font-family: var(--font-mono);
            font-size: 10px;
            letter-spacing: 1.5px;
            color: rgba(120, 100, 80, 0.32);
            pointer-events: none;
            user-select: none;
        }

        .drm-toast-notice {
            display: none !important;
        }

        .admin-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.88);
            backdrop-filter: blur(10px);
            z-index: 5000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        .admin-modal-overlay.active {
            display: flex;
        }

        .admin-modal-window {
            background: var(--bg-surface);
            border: 1px solid var(--vintage-gold-border);
            border-radius: var(--radius-md);
            width: 100%;
            max-width: 680px;
            box-shadow: 0 32px 80px rgba(0, 0, 0, 0.9);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            animation: fadeIn 0.2s ease-out;
        }

        .admin-modal-header {
            padding: 20px 28px;
            background: var(--bg-card);
            border-bottom: 1px solid var(--border-hairline);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .admin-modal-title {
            font-family: var(--font-editorial);
            font-size: 22px;
            font-weight: 800;
            letter-spacing: 1px;
            color: var(--vintage-gold);
            text-transform: uppercase;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .admin-modal-body {
            padding: 28px;
            display: flex;
            flex-direction: column;
            gap: 18px;
            max-height: 75vh;
            overflow-y: auto;
        }

        .admin-field-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .admin-label {
            font-family: var(--font-sans);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: var(--text-secondary);
        }

        .admin-select, .admin-input {
            background: var(--bg-card);
            border: 1px solid var(--border-medium);
            color: var(--text-pure);
            font-family: var(--font-sans);
            font-size: 13px;
            padding: 12px 14px;
            border-radius: var(--radius-sharp);
            outline: none;
            transition: var(--trans-fast);
        }

        .admin-select:focus, .admin-input:focus {
            border-color: var(--vintage-gold);
        }

        .admin-code-box {
            background: #000;
            border: 1px solid var(--border-medium);
            border-radius: var(--radius-sharp);
            padding: 12px 16px;
            font-family: var(--font-mono);
            font-size: 12px;
            color: var(--vintage-gold);
            word-break: break-all;
        }

        .admin-modal-footer {
            padding: 18px 28px;
            background: var(--bg-card);
            border-top: 1px solid var(--border-hairline);
            display: flex;
            justify-content: flex-end;
            gap: 14px;
        }

        .viewer-core-viewport {
            flex: 1;
            display: flex;
            overflow: hidden;
            position: relative;
        }

        .viewer-sidebar-panel {
            width: 320px;
            background: var(--bg-surface);
            border-right: 1px solid var(--border-hairline);
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
            overflow: hidden;
        }

        .sidebar-tabs-bar {
            display: flex;
            border-bottom: 1px solid var(--border-hairline);
            background: var(--bg-card);
        }

        .sidebar-tab-btn {
            flex: 1;
            background: transparent;
            border: none;
            border-bottom: 2px solid transparent;
            color: var(--text-muted);
            font-family: var(--font-sans);
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            padding: 12px 6px;
            cursor: pointer;
            transition: var(--trans-fast);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }

        .sidebar-tab-btn:hover {
            color: var(--text-pure);
        }

        .sidebar-tab-btn.active {
            color: var(--vintage-gold);
            border-bottom-color: var(--vintage-gold);
            background: var(--bg-surface);
        }

        .sidebar-content-pane {
            flex: 1;
            overflow-y: auto;
            display: none;
            padding: 12px;
        }

        .sidebar-content-pane.active {
            display: block;
        }

        .thumbs-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }

        .thumb-page-card {
            background: var(--bg-card);
            border: 1px solid var(--border-hairline);
            border-radius: var(--radius-sharp);
            padding: 6px;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: var(--trans-fast);
            position: relative;
        }

        .thumb-page-card:hover, .thumb-page-card.active {
            border-color: var(--vintage-gold);
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
        }

        .thumb-page-card.active {
            border-color: var(--brand-red);
        }

        .thumb-canvas-wrap {
            width: 100%;
            height: 140px;
            background: #100f0e;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .thumb-canvas-wrap canvas {
            max-width: 100%;
            max-height: 100%;
            display: block;
        }

        .thumb-page-num {
            font-family: var(--font-mono);
            font-size: 10px;
            font-weight: 700;
            color: var(--text-muted);
            margin-top: 6px;
        }

        .toc-tree-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .toc-tree-node {
            padding: 10px 14px;
            border-radius: var(--radius-sharp);
            cursor: pointer;
            font-size: 12px;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: var(--trans-fast);
            border-left: 2px solid transparent;
        }

        .toc-tree-node:hover {
            background: var(--bg-card);
            color: var(--text-pure);
            border-left-color: var(--vintage-gold);
        }

        .toc-tree-node.active {
            background: var(--bg-card);
            color: var(--text-pure);
            border-left-color: var(--brand-red);
            font-weight: 600;
        }

        .toc-node-level-2 {
            padding-left: 26px;
            font-size: 11px;
            color: var(--text-muted);
        }

        .toc-page-pill {
            font-family: var(--font-mono);
            font-size: 10px;
            color: var(--vintage-gold);
        }

        .sidebar-specs-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 12px;
        }

        .sidebar-specs-table tr {
            border-bottom: 1px solid var(--border-hairline);
        }

        .sidebar-specs-table td {
            padding: 10px 8px;
        }

        .sidebar-specs-table td.spec-k {
            color: var(--text-muted);
            font-weight: 600;
            width: 40%;
        }

        .sidebar-specs-table td.spec-v {
            color: var(--text-pure);
            font-family: var(--font-mono);
            font-weight: 600;
        }

        .scribd-viewport-scroller {
            flex: 1;
            background: var(--bg-viewer-sheet);
            overflow-y: auto;
            overflow-x: auto;
            position: relative;
            padding: 36px 0;
            display: block;
        }

        .scribd-viewport-scroller.is-zoomable,
        .scribd-viewport-scroller.is-zoomable * {
            cursor: grab;
        }

        .scribd-viewport-scroller.is-panning,
        .scribd-viewport-scroller.is-panning * {
            cursor: grabbing;
            user-select: none !important;
            -webkit-user-select: none !important;
        }

        .scribd-document-canvas-wrap {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 28px;
            box-sizing: border-box;
            transition: none;
        }

        .scribd-page-slot {
            width: 100%;
            min-height: 400px;
            background: #ffffff;
            box-shadow: 0 16px 54px rgba(0, 0, 0, 0.85);
            border-radius: var(--radius-sharp);
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            justify-content: flex-start;
            overflow: hidden;
            box-sizing: border-box;
        }

        .scribd-page-header-bar {
            width: 100%;
            background: #11100f;
            color: #8c857b;
            font-family: var(--font-mono);
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            padding: 6px 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            user-select: none;
        }

        .scribd-page-canvas {
            display: block;
            max-width: 100%;
            height: auto;
            background: #ffffff;
        }

        .scribd-page-loading-state {
            position: absolute;
            inset: 30px 0 0 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 12px;
            background: #151413;
            color: var(--text-muted);
            font-family: var(--font-sans);
            font-size: 12px;
        }

        .scribd-page-loading-state.hidden {
            display: none !important;
        }

        .doc-spinner {
            width: 28px;
            height: 28px;
            border: 2px solid rgba(200, 162, 101, 0.2);
            border-top-color: var(--vintage-gold);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .scribd-viewport-scroller.single-mode .scribd-page-slot {
            display: none;
        }

        .scribd-viewport-scroller.single-mode .scribd-page-slot.active-single {
            display: flex;
        }

        .pricing-section-wrap {
            max-width: 1200px;
            margin: 64px auto 96px;
            padding: 0 32px;
            text-align: center;
        }

        .pricing-triptych {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 28px;
            margin-top: 48px;
            text-align: left;
        }

        .pricing-tier-card {
            background: var(--bg-surface);
            border: 1px solid var(--border-hairline);
            padding: 40px 32px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
        }

        .pricing-tier-card.featured {
            border-color: var(--vintage-gold-border);
            background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-card) 100%);
        }

        .pricing-tier-card.featured::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: var(--vintage-gold);
        }

        .tier-label {
            font-family: var(--font-sans);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 2.5px;
            text-transform: uppercase;
            color: var(--vintage-gold);
        }

        .tier-cost {
            font-family: var(--font-editorial);
            font-size: 52px;
            font-weight: 900;
            line-height: 1;
            color: var(--text-pure);
            margin: 16px 0 6px;
        }

        .tier-cost span {
            font-size: 16px;
            font-family: var(--font-sans);
            font-weight: 400;
            color: var(--text-muted);
        }

        .tier-features-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 14px;
            margin: 32px 0 40px;
        }

        .tier-features-list li {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 13px;
            color: var(--text-lead);
        }

.btn-mobile-drawer-toggle {
    display: none;
    align-items: center;
    gap: 5px;
    background: rgba(200, 162, 101, 0.14);
    border: 1px solid var(--vintage-gold, #c8a265);
    color: var(--vintage-gold, #c8a265);
    height: 30px;
    padding: 0 8px;
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--font-editorial, 'Barlow Condensed', sans-serif);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.viewer-floating-drawer-pill {
    display: none;
    position: fixed;
    top: 96px;
    left: 0;
    z-index: 1050;
    align-items: center;
    gap: 6px;
    background: #141312;
    border: 1px solid var(--vintage-gold, #c8a265);
    border-left: none;
    border-radius: 0 4px 4px 0;
    color: var(--vintage-gold, #c8a265);
    padding: 7px 11px;
    cursor: pointer;
    font-family: var(--font-editorial, 'Barlow Condensed', sans-serif);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 2px 4px 15px rgba(0, 0, 0, 0.6);
    transition: all 0.2s ease;
}

.viewer-floating-drawer-pill:hover {
    background: rgba(200, 162, 101, 0.18);
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .btn-mobile-drawer-toggle {
        display: inline-flex !important;
    }
    .viewer-floating-drawer-pill {
        display: inline-flex !important;
    }

    .viewer-sidebar-panel {
        display: flex;
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 85vw;
        max-width: 330px;
        height: 100vh;
        z-index: 999999;
        background: #141312;
        border-right: 2px solid var(--vintage-gold, #c8a265);
        box-shadow: 10px 0 50px rgba(0, 0, 0, 0.95);
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
        overflow: hidden;
    }
    .viewer-sidebar-panel.mobile-drawer-open {
        transform: translateX(0);
    }

    .mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        background: #0e0d0b;
        border-bottom: 1px solid var(--vintage-gold, #c8a265);
        flex-shrink: 0;
    }
    .mobile-drawer-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        font-family: var(--font-editorial, 'Barlow Condensed', sans-serif);
        font-size: 13.5px;
        font-weight: 800;
        letter-spacing: 1px;
        color: var(--text-pure, #faf8f5);
    }
    .btn-close-drawer {
        display: inline-flex !important;
        align-items: center;
        gap: 5px;
        background: rgba(200, 162, 101, 0.12);
        border: 1px solid var(--vintage-gold, #c8a265);
        color: var(--vintage-gold, #c8a265);
        padding: 5px 10px;
        border-radius: 2px;
        font-family: var(--font-editorial, 'Barlow Condensed', sans-serif);
        font-size: 11.5px;
        font-weight: 800;
        letter-spacing: 1px;
        cursor: pointer;
    }

    .viewer-drawer-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 999998;
    }
}

@media (min-width: 769px) {
    .mobile-drawer-header {
        display: none !important;
    }
    .viewer-drawer-backdrop {
        display: none !important;
    }
    .btn-mobile-drawer-toggle {
        display: none !important;
    }
    .viewer-floating-drawer-pill {
        display: none !important;
    }
}

@media (max-width: 580px) {
    .viewer-header-bar {
        height: 48px;
        padding: 0 8px;
        flex-wrap: nowrap;
        overflow: hidden;
        justify-content: space-between;
        gap: 6px;
    }

    .viewer-doc-identity {
        gap: 6px;
        flex-shrink: 1;
        min-width: 0;
    }

    .btn-viewer-exit {
        height: 30px;
        min-width: 30px;
        padding: 0 6px;
    }
    .btn-viewer-exit span {
        display: none !important;
    }

    .viewer-select-tag {
        display: none !important;
    }

    .viewer-doc-dropdown {
        max-width: 95px;
        height: 30px;
        font-size: 11px;
        padding: 2px 6px;
        text-overflow: ellipsis;
    }

    .viewer-pagination {
        gap: 3px;
        flex-shrink: 0;
    }

    .page-jump-box {
        height: 30px;
        padding: 2px 4px;
        gap: 3px;
    }

    .page-jump-label {
        display: none !important;
    }

    .page-jump-input {
        width: 32px;
        height: 24px;
        font-size: 12px;
        padding: 0;
        text-align: center;
    }

    .page-total-label {
        font-size: 11px;
        white-space: nowrap;
    }

    .page-arrow-btn {
        width: 26px;
        height: 26px;
        padding: 0;
    }

    .viewer-toolbar-actions .btn-viewer-mode-pill {
        display: none !important;
    }
    .viewer-toolbar-actions {
        gap: 4px;
    }
    .viewer-zoom-controls {
        display: none !important;
    }
}

@media (max-width: 380px) {
    .viewer-doc-dropdown {
        max-width: 78px;
    }
}

.sidebar-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    table-layout: fixed;
    margin-bottom: 16px;
}
.sidebar-specs-table tr {
    border-bottom: 1px solid rgba(255, 240, 220, 0.07);
}
.sidebar-specs-table td {
    padding: 9px 8px;
    vertical-align: top;
}
.sidebar-specs-table td.spec-k {
    color: var(--text-muted, #8e877d);
    font-weight: 600;
    width: 40%;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    word-break: break-word;
}
.sidebar-specs-table td.spec-v {
    color: var(--vintage-gold, #c8a265);
    font-family: var(--font-mono, monospace);
    font-weight: 600;
    font-size: 11.5px;
    line-height: 1.4;
    text-align: right;
    word-break: break-word;
}

.sidebar-tabs-bar {
    display: flex;
    border-bottom: 1px solid var(--border-hairline, rgba(255, 240, 220, 0.1));
    background: var(--bg-card, #121316);
    flex-shrink: 0;
}
.sidebar-tab-btn {
    flex: 1;
    padding: 11px 4px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted, #8e877d);
    font-family: var(--font-sans, "Inter", sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}
.sidebar-tab-btn:hover {
    color: var(--text-lead, #ede8e1);
    background: rgba(200, 162, 101, 0.05);
}
.sidebar-tab-btn.active {
    color: var(--vintage-gold, #c8a265);
    border-bottom-color: var(--vintage-gold, #c8a265);
    background: rgba(200, 162, 101, 0.08);
}

@media (max-width: 480px) {
    .btn-viewer-exit span {
        display: none !important;
    }
    .btn-viewer-exit {
        padding: 0 8px;
        height: 32px;
        min-width: 32px;
        justify-content: center;
    }
    .viewer-doc-dropdown {
        max-width: 120px;
        font-size: 11px;
        height: 32px;
        padding: 0 4px;
    }
    .viewer-pagination {
        gap: 2px;
        padding: 0 2px;
        height: 32px;
    }
    .page-arrow-btn {
        width: 24px;
        height: 28px;
    }
    .page-jump-box {
        gap: 2px;
        font-size: 11px;
    }
    .page-jump-input {
        width: 26px;
        height: 24px;
        font-size: 11px;
    }
}

.sidebar-dossier-wrap {
    color: var(--text-lead, #ede8e1);
    font-family: var(--font-sans, "Inter", sans-serif);
    padding: 12px 14px;
}
.sidebar-dossier-header {
    border-bottom: 1px solid var(--border-hairline, rgba(255, 240, 220, 0.1));
    margin-bottom: 14px;
    padding-bottom: 12px;
}
.dossier-tag-pill {
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--vintage-gold, #c8a265);
    background: rgba(200, 162, 101, 0.12);
    border: 1px solid rgba(200, 162, 101, 0.35);
    border-radius: 2px;
    margin-bottom: 8px;
    padding: 3px 8px;
    font-size: 9.5px;
    font-weight: 800;
    display: inline-block;
}
.sidebar-dossier-h3 {
    font-family: var(--font-editorial, "Barlow Condensed", sans-serif);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-pure, #faf8f5);
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}
.sidebar-dossier-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 11px;
}
.s-badge {
    border: 1px solid var(--border-hairline, rgba(255, 240, 220, 0.12));
    font-family: var(--font-mono, monospace);
    color: var(--text-secondary, #a8a29a);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    padding: 3px 7px;
    font-size: 10.5px;
    display: inline-block;
}
.sidebar-dossier-block {
    margin-bottom: 16px;
}
.sidebar-dossier-h4 {
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--vintage-gold, #c8a265);
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
}
.sidebar-dossier-p {
    color: var(--text-secondary, #a8a29a);
    text-align: left;
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
}
.sidebar-toc-container {
    border: 1px solid var(--border-hairline, rgba(255, 240, 220, 0.1));
    background: rgba(0, 0, 0, 0.35);
    border-radius: 3px;
    max-height: 280px;
    margin-top: 10px;
    overflow-y: auto;
}
.sidebar-toc-row {
    border-bottom: 1px solid rgba(255, 240, 220, 0.06);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 10px;
    font-size: 11.5px;
    transition: all 0.15s ease;
    text-decoration: none;
}
.sidebar-toc-row:hover {
    color: var(--vintage-gold, #c8a265);
    background: rgba(200, 162, 101, 0.12);
}
.toc-col-title {
    color: var(--text-lead, #ede8e1);
    font-size: 11.5px;
    line-height: 1.35;
    flex: 1;
    padding-right: 10px;
    word-break: break-word;
    display: block;
}
.toc-col-page {
    font-family: var(--font-mono, monospace);
    color: var(--vintage-gold, #c8a265);
    background: rgba(200, 162, 101, 0.1);
    border: 1px solid rgba(200, 162, 101, 0.25);
    border-radius: 2px;
    padding: 2px 6px;
    font-size: 10.5px;
    font-weight: 700;
    flex-shrink: 0;
    display: inline-block;
}
.sidebar-dossier-block.preservation {
    border: 1px solid var(--border-hairline, rgba(255, 240, 220, 0.1));
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2px;
    padding: 10px 12px;
}
.sidebar-dossier-note {
    color: var(--text-muted, #8e877d);
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
}
