* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "SimSun", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.nav-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 220px;
    height: 100vh;
    background: #1a365d;
    padding: 20px 0;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: width 0.3s ease, transform 0.3s ease;
}

.nav-sidebar.collapsed {
    width: 60px;
}

.nav-sidebar.collapsed .nav-logo .brand-name,
.nav-sidebar.collapsed .nav-title,
.nav-sidebar.collapsed .nav-link span,
.nav-sidebar.collapsed .submenu-arrow,
.nav-sidebar.collapsed .submenu {
    display: none;
}

.nav-sidebar.collapsed .nav-link {
    padding: 12px;
    text-align: center;
}

.nav-sidebar.collapsed .nav-link i {
    margin-right: 0;
    font-size: 18px;
}

.nav-toggle-btn {
    position: absolute;
    right: -15px;
    top: 50%;
    width: 30px;
    height: 30px;
    background: #0078d7;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    z-index: 1001;
}

.nav-toggle-btn:hover {
    background: #005a9e; transform: scale(1.1);
}

.nav-logo {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.nav-logo img {
    max-width: 120px;
    max-height: 60px;
}

.brand-name {
    color: white;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.brand-name a {
    color: white;
    text-decoration: none;
}

.brand-name a:hover {
    text-decoration: underline;
}

.nav-title {
    color: white;
    font-size: 14px;
    text-align: center;
    padding: 10px 20px;
    opacity: 0.8;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin: 5px 10px;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    font-size: 14px;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
    transform: translateX(5px);
}

.nav-link.active {
    background-color: rgba(255,255,255,0.2);
    color: white;
    font-weight: bold;
}

.nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.nav-item.has-submenu > .nav-link {
    cursor: pointer;
}

.submenu-arrow {
    float: right;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-item.has-submenu.open .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: max-height 0.4s ease-out;
    background-color: rgba(0,0,0,0.1);
}

.nav-item.has-submenu.open .submenu {
    max-height: 9999px;
    transition: max-height 0.6s ease-in;
}

.submenu-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.submenu-item:last-child {
    border-bottom: none;
}

.submenu-link {
    display: block;
    padding: 10px 20px 10px 45px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 13px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.submenu-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
    padding-left: 50px;
}

.submenu-link.active {
    background-color: rgba(255,255,255,0.15);
    color: white;
    font-weight: bold;
}

.submenu-link[title] {
    position: relative;
}

.submenu-link:hover::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-content {
    margin-left: 220px;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 60px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.logo {
    max-width: 180px;
    max-height: 80px;
    margin-bottom: 15px;
}

.header {
    text-align: center;
    border-bottom: 3px solid #0078d7;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.header h1 {
    color: #0078d7;
    font-size: 28px;
    margin-bottom: 10px;
}

.header .subtitle {
    color: #666;
    font-size: 14px;
}

.section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 18px;
    color: #0078d7;
    border-left: 4px solid #0078d7;
    padding-left: 10px;
    margin-bottom: 15px;
}

.subsection-title {
    font-size: 16px;
    color: #1e40af;
    border-left: 3px solid #60a5fa;
    padding-left: 10px;
    margin-bottom: 12px;
    margin-top: 5px;
}

.module-status {
    text-align: center;
    padding: 30px 20px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px dashed #d1d5db;
    margin: 15px 0;
}

.module-status .status-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.module-status .status-text {
    font-size: 14px;
    color: #6b7280;
}

.module-status .status-text strong {
    color: #374151;
}

.module-status.status-disabled {
    background: #f9fafb;
    border-color: #d1d5db;
}

.module-status.status-ok {
    background: #f0fdf4;
    border-color: #86efac;
}

.module-status.status-error {
    background: #fef2f2;
    border-color: #fca5a5;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.info-label {
    width: 120px;
    color: #666;
    flex-shrink: 0;
}

.info-value {
    flex: 1;
    font-weight: bold;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: #667eea;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.stat-card:hover {
}

.stat-card-link {
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.stat-card-link:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.table-container {
    overflow-x: auto;
    margin-top: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1100px;
    table-layout: fixed;
}

th, td {
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    text-align: left;
    vertical-align: top;
    word-wrap: break-word;
    word-break: break-all;
}

th {
    background: #0078d7;
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
    font-size: 14px;
}

td {
    font-size: 13px;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #e8f4fd;
}

.highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}

.similar-text {
    color: #dc3545;
    background-color: #ffe6e6;
    padding: 2px 4px;
}

.warning {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: #666;
    font-size: 12px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: white;
    background: #6b7280;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.filter-btn:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.filter-btn.active {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-weight: bold;
}

.filter-btn-danger {
    background: #dc3545;
}

.filter-btn-danger:hover,
.filter-btn-danger.active {
    background: #c82333;
}

.filter-btn-warning {
    background: #ffc107;
    color: #333;
}

.filter-btn-warning:hover,
.filter-btn-warning.active {
    background: #e0a800;
}

.filter-btn-success {
    background: #28a745;
}

.filter-btn-success:hover,
.filter-btn-success.active {
    background: #218838;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: #0078d7;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.back-to-top.show {
    display: flex;
}

.page-compare-modal {
    display: none;
    position: fixed;
    z-index: 2600;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

.page-compare-modal.show {
    display: flex;
}

.page-compare-container {
    background: #1a1a2e;
    border-radius: 12px;
    width: 96%;
    max-width: 1800px;
    height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.page-compare-header {
    padding: 12px 20px;
    background: #1a365d;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.page-compare-header h3 {
    margin: 0;
    font-size: 16px;
    white-space: nowrap;
}

.page-compare-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    flex: 1;
    justify-content: center;
}

.pc-file-name {
    font-weight: 600;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-separator {
    color: #a0aec0;
    font-style: italic;
}

.pc-divider {
    color: #4a5568;
    margin: 0 4px;
}

.pc-meta {
    color: #e2e8f0;
}

.page-compare-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #2d2d44;
}

.page-compare-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.page-compare-divider {
    width: 2px;
    background: #4a5568;
    flex-shrink: 0;
}

.page-compare-panel-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #374151;
    color: #e5e7eb;
    font-size: 13px;
    gap: 8px;
    flex-shrink: 0;
}

.pc-panel-file {
    font-weight: 600;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-panel-page {
    color: #9ca3af;
    margin-right: 8px;
}

.pc-panel-nav {
    display: flex;
    gap: 4px;
}

.pc-nav-btn {
    background: #4b5563;
    border: none;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.pc-nav-btn:hover {
    background: #6b7280;
}

.page-compare-viewer {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-compare-img-wrapper {
    position: relative;
    display: inline-block;
    transform-origin: center center;
    cursor: grab;
}

.page-compare-img-wrapper img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    user-select: none;
    -webkit-user-drag: none;
}

.page-compare-highlight {
    position: absolute;
    background: rgba(255, 200, 0, 0.3);
    border: 2px solid #FFD700;
    pointer-events: none;
    display: none;
    z-index: 10;
}

.page-compare-placeholder {
    display: none;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 16px;
    height: 100%;
    width: 100%;
}

.page-compare-footer {
    padding: 10px 20px;
    background: #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.page-compare-zoom {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e5e7eb;
    font-size: 13px;
}

.pc-zoom-btn {
    background: #4b5563;
    border: none;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.pc-zoom-btn:hover {
    background: #6b7280;
}

.page-compare-actions {
    display: flex;
    gap: 8px;
}

.page-compare-actions .btn-secondary {
    background: #4b5563;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.page-compare-actions .btn-secondary:hover {
    background: #6b7280;
}

@media screen and (max-width: 1600px) {
    .container {
        max-width: 100%;
        margin: 0;
        padding: 30px;
    }
}

@media screen and (max-width: 1200px) {
    .nav-sidebar {
        width: 180px;
    }
    
    .main-content {
        margin-left: 180px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 20px;
    }
}

@media screen and (max-width: 768px) {
    .nav-sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        margin: 15px -20px;
        border-radius: 0;
    }
    
    table {
        min-width: 1200px;
    }
}

.statistics-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.stat-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
}

.stat-section-title {
    font-size: 16px;
    color: #1f2937;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.stat-icon {
    font-size: 20px;
}

.stat-cards-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.stat-mini-card {
    background: #667eea;
    border-radius: 10px;
    padding: 15px 20px;
    min-width: 140px;
    text-align: center;
    color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.stat-mini-card:hover {
}

.stat-mini-card.high-risk {
    background: #dc2626;
}

.stat-mini-card.medium-risk {
    background: #f59e0b;
}

.stat-mini-card.low-risk {
    background: #3b82f6;
}

.stat-mini-card.info-risk {
    background: #6b7280;
}

.stat-mini-value {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 3px;
}

.stat-mini-label {
    font-size: 12px;
    opacity: 0.9;
}

.stat-mini-percent {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 3px;
}

.pair-statistics-table {
    margin-top: 15px;
    overflow-x: auto;
}

.pair-statistics-table table {
    min-width: 600px;
    font-size: 13px;
}

.pair-statistics-table th {
    background: #4b5563;
    font-size: 13px;
}

.stat-conclusion {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 10px;
}

.conclusion-label {
    color: #6b7280;
    font-size: 13px;
}

.conclusion-value {
    color: #1f2937;
    font-size: 13px;
}

.overall-conclusion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.conclusion-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 15px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #e5e7eb;
}

.conclusion-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.conclusion-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.final-conclusion {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.final-conclusion h4 {
    color: #1e293b;
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
}

.risk-indicator {
    text-align: center;
    padding: 15px 30px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: bold;
}

.risk-indicator.high {
    background: #dc2626;
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.risk-indicator.medium {
    background: #f59e0b;
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.risk-indicator.low {
    background: #22c55e;
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.risk-level-text {
    font-size: 22px;
    letter-spacing: 2px;
}

.risk-description {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.image-modal.show {
    display: flex;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.zoomable-image {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.image-modal-controls {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 25px;
    z-index: 3001;
}

.zoom-reset-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.zoom-reset-btn:hover {
    background: #45a049;
    transform: scale(1.05);
}

.zoom-hint {
    color: #f1f1f1;
    font-size: 13px;
    opacity: 0.9;
}

.conclusion-section {
    background: #ffffff;
    border: 2px solid #e2e8f0;
}

.score-high {
    color: #f44336;
    font-weight: bold;
}

.score-medium {
    color: #ff9800;
    font-weight: bold;
}

.score-low {
    color: #4caf50;
}

.detail-scores {
    display: block;
}

.detail-scores small {
    display: block;
    margin-bottom: 2px;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.row-danger {
    background-color: #ffebee !important;
}

.row-warning {
    background-color: #fff3e0 !important;
}

.overview-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.card {
    background: #667eea;
    border-radius: 10px;
    padding: 20px;
    min-width: 120px;
    text-align: center;
    color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.card:hover {
}

.card-danger {
    background: #dc2626;
}

.card-warning {
    background: #f59e0b;
}

.card-success {
    background: #22c55e;
}

.card-title {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.card-value {
    font-size: 32px;
    font-weight: bold;
}

.card-unit {
    font-size: 12px;
    opacity: 0.8;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-danger {
    background-color: #fee2e2;
    color: #dc2626;
}

.badge-warning {
    background-color: #fef3c7;
    color: #d97706;
}

.badge-success {
    background-color: #d1fae5;
    color: #059669;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

.note {
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding: 15px 20px;
    margin-top: 20px;
    border-radius: 0 8px 8px 0;
}

.note p {
    margin: 0 0 10px 0;
    color: #1f2937;
}

.note ul {
    margin: 0;
    padding-left: 20px;
    color: #4b5563;
}

.note li {
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.6;
}

.text-muted {
    color: #9ca3af;
}

.section-header {
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 18px;
    color: #1f2937;
    border-left: 4px solid #3b82f6;
    padding-left: 12px;
    margin: 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #4b5563;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background-color: #f3f4f6;
}

.score-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.score-modal.show {
    display: flex;
}

.score-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #333;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.score-modal .close-modal:hover,
.score-modal .close-modal:focus {
    color: #666;
}

.score-modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    max-height: 70%;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}

.score-modal-content h3 {
    margin-top: 0;
    color: #1f2937;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.score-info {
    background: #f8fafc;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.score-info p {
    margin: 5px 0;
    font-size: 14px;
}

.score-info strong {
    color: #374151;
}

.score-details {
    line-height: 1.6;
    font-size: 13px;
}

.score-details p {
    margin: 8px 0;
}

.score-details pre {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 6px;
    font-size: 12px;
    overflow-x: auto;
    max-height: 300px;
    margin-top: 15px;
}

.score-item {
    cursor: pointer;
    text-decoration: underline;
    color: #3b82f6;
    transition: color 0.2s ease;
}

.score-item:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.score-item:active {
    color: #1e40af;
}

.risk-high {
    color: #dc3545;
    font-weight: bold;
}

.risk-medium {
    color: #ffc107;
    font-weight: bold;
}

.risk-low {
    color: #28a745;
}

.risk-badge {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.risk-badge.risk-high {
    background-color: #dc3545;
    color: white;
}

.risk-badge.risk-medium {
    background-color: #ffc107;
    color: #333;
}

.risk-badge.risk-low {
    background-color: #28a745;
    color: white;
}

tr.risk-high {
    background-color: #fff5f5;
}

tr.risk-medium {
    background-color: #fffef5;
}

.chain-match-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chain-match-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.chain-match-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chain-match-card.risk-high {
    border-left: 4px solid #dc3545;
    background: #fff5f5;
}

.chain-match-card.risk-medium {
    border-left: 4px solid #ffc107;
    background: #fffef5;
}

.chain-match-card.risk-low {
    border-left: 4px solid #28a745;
    background: #f5fff5;
}

.chain-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.chain-match-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.chain-match-right {
    flex-shrink: 0;
    margin-left: 12px;
}

.chain-match-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #eef2ff;
    color: #4338ca;
    white-space: nowrap;
}

.chain-match-value {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chain-match-body {
    padding: 12px 16px;
}

.chain-match-file-row {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.chain-match-file-item {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.7);
}

.chain-match-source {
    border: 1px solid #dbeafe;
}

.chain-match-target {
    border: 1px solid #fce7f3;
}

.chain-match-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    font-size: 20px;
    color: #94a3b8;
    flex-shrink: 0;
}

.chain-match-file-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chain-match-file-name {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
    word-break: break-all;
    line-height: 1.4;
}

.chain-match-file-pages {
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .chain-match-file-row {
        flex-direction: column;
    }
    
    .chain-match-arrow {
        padding: 4px 0;
        transform: rotate(90deg);
    }
    
    .chain-match-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .chain-match-right {
        margin-left: 0;
    }
}

.progress-indicator {
    position: fixed;
    top: 0;
    left: 220px;
    right: 0;
    height: 4px;
    background: #e5e7eb;
    z-index: 999;
    transition: left 0.3s ease;
}

.progress-indicator.expanded {
    left: 60px;
}

.progress-bar {
    height: 100%;
    background: #0078d7;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    position: fixed;
    top: 8px;
    right: 20px;
    font-size: 12px;
    color: #6b7280;
    background: white;
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 998;
}

.quick-nav-panel {
    position: fixed;
    right: 20px;
    top: 50%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 900;
}

.quick-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.quick-nav-btn:hover {
    transform: scale(1.1);
}

.quick-nav-btn.high {
    background: #dc2626;
}

.quick-nav-btn.medium {
    background: #f59e0b;
}

.quick-nav-btn.low {
    background: #3b82f6;
}

.quick-nav-btn.info {
    background: #6b7280;
}

.quick-nav-btn .count {
    font-size: 16px;
    font-weight: bold;
}

.quick-nav-btn .label {
    font-size: 9px;
    opacity: 0.9;
}

.table-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 8px 12px 8px 35px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #0078d7;
    box-shadow: 0 0 0 3px rgba(0,120,215,0.1);
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    color: #9ca3af;
}

.toolbar-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.toolbar-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.toolbar-btn.active {
    background: #0078d7;
    color: white;
    border-color: #0078d7;
}

.sortable {
    cursor: pointer;
    user-select: none;
}

.sortable:hover {
    background: rgba(255,255,255,0.1);
}

.sort-icon {
    margin-left: 5px;
    opacity: 0.5;
}

.sort-icon.active {
    opacity: 1;
}

.column-config-dropdown {
    position: relative;
    display: inline-block;
}

.column-config-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 100;
    padding: 10px 0;
}

.column-config-menu.show {
    display: block;
}

.column-config-item {
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.column-config-item:hover {
    background: #f3f4f6;
}

.column-config-item input {
    width: 16px;
    height: 16px;
}

.column-config-item label {
    font-size: 13px;
    cursor: pointer;
}

.compare-modal {
    display: none;
    position: fixed;
    z-index: 2500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.compare-modal.show {
    display: flex;
}

.compare-container {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.compare-header {
    padding: 15px 20px;
    background: #1a365d;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compare-header h3 {
    margin: 0;
    font-size: 16px;
}

.compare-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.compare-close:hover {
    opacity: 1;
}

.compare-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.compare-panel {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    border-right: 1px solid #e5e7eb;
}

.compare-panel:last-child {
    border-right: none;
}

.compare-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.compare-panel-header .file-icon {
    font-size: 24px;
}

.compare-panel-header .file-info {
    flex: 1;
}

.compare-panel-header .file-name {
    font-weight: bold;
    color: #1f2937;
    font-size: 14px;
}

.compare-panel-header .file-page {
    font-size: 12px;
    color: #6b7280;
}

.compare-content {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-all;
}

.compare-content .highlight-same {
    background: #dcfce7;
    padding: 2px 0;
}

.compare-content .highlight-diff {
    background: #fee2e2;
    padding: 2px 0;
}

.compare-footer {
    padding: 15px 20px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compare-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

.compare-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.compare-actions {
    display: flex;
    gap: 10px;
}

.compare-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background: #0078d7;
    color: white;
}

.btn-primary:hover {
    background: #005a9e;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

.image-compare-modal {
    display: none;
    position: fixed;
    z-index: 2600;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.image-compare-modal.show {
    display: flex;
}

.image-compare-container {
    width: 90%;
    max-width: 1400px;
    background: #1f2937;
    border-radius: 12px;
    overflow: hidden;
}

.image-compare-header {
    padding: 15px 20px;
    background: #111827;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-compare-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.image-compare-nav button {
    background: #374151;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.image-compare-nav button:hover {
    background: #4b5563;
}

.image-compare-counter {
    font-size: 14px;
}

.image-compare-modes {
    display: flex;
    gap: 10px;
}

.mode-btn {
    padding: 6px 12px;
    border: 1px solid #4b5563;
    background: transparent;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.mode-btn.active {
    background: #0078d7;
    border-color: #0078d7;
}

.image-compare-body {
    display: flex;
    min-height: 500px;
}

.image-compare-side {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-compare-side img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.image-compare-side .image-label {
    color: white;
    margin-top: 10px;
    font-size: 13px;
    text-align: center;
}

.image-slider-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.image-slider-container img {
    width: 100%;
    display: block;
}

.image-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: white;
    cursor: ew-resize;
    left: 50%;
}

.image-slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.image-overlay-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-overlay-container img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.image-overlay-container img:first-child {
    position: relative;
    z-index: 1;
}

.image-overlay-container .overlay-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0.5;
}

.overlay-slider {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    border-radius: 20px;
}

.overlay-slider input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    outline: none;
}

.overlay-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #0078d7;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.overlay-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #0078d7;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.bookmark-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #d1d5db;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    position: relative;
}

.bookmark-btn:hover {
    color: #fbbf24;
    transform: scale(1.2);
}

.bookmark-btn.active {
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.bookmark-btn.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

@keyframes bookmark-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.annotation-popup {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 15px;
    width: 280px;
    z-index: 100;
}

.annotation-popup.show {
    display: block;
}

.annotation-popup textarea {
    width: 100%;
    height: 80px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px;
    font-size: 13px;
    resize: none;
    margin-bottom: 10px;
}

.annotation-popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.annotation-popup-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.chart-container {
    margin: 20px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
}

.chart-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.chart-box {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.chart-title {
    font-size: 14px;
    font-weight: bold;
    color: #374151;
    margin-bottom: 15px;
    text-align: center;
}

.pie-chart {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.pie-chart svg {
    transform: rotate(-90deg);
}

.pie-chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.pie-chart-center .value {
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
}

.pie-chart-center .label {
    font-size: 12px;
    color: #6b7280;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar-label {
    width: 80px;
    font-size: 12px;
    color: #6b7280;
}

.bar-track {
    flex: 1;
    height: 24px;
    background: #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.5s ease;
}

.bar-fill.high {
    background: #dc2626;
}

.bar-fill.medium {
    background: #f59e0b;
}

.bar-fill.low {
    background: #3b82f6;
}

.bar-fill.info {
    background: #6b7280;
}

.bar-value {
    width: 50px;
    text-align: right;
    font-size: 12px;
    font-weight: bold;
    color: #374151;
}

.heatmap-container {
    overflow-x: auto;
}

.heatmap {
    display: inline-grid;
    gap: 2px;
    background: #e5e7eb;
    padding: 2px;
    border-radius: 4px;
}

.heatmap-cell {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.heatmap-cell:hover {
    transform: scale(1.1);
    z-index: 1;
}

.heatmap-cell.high {
    background: #dc2626;
    color: white;
}

.heatmap-cell.medium {
    background: #f59e0b;
    color: white;
}

.heatmap-cell.low {
    background: #fef3c7;
    color: #92400e;
}

.heatmap-cell.none {
    background: #f3f4f6;
    color: #6b7280;
}

.heatmap-cell.diagonal {
    background: #1f2937;
    color: white;
}

.heatmap-legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    font-size: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.collapsible-section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8fafc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.collapsible-header:hover {
    background: #f3f4f6;
}

.collapsible-header h4 {
    margin: 0;
    font-size: 14px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.collapsible-arrow {
    transition: transform 0.3s ease;
}

.collapsible-section.open .collapsible-arrow {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-section.open .collapsible-content {
    max-height: 2000px;
}

.collapsible-body {
    padding: 20px;
}

.detail-row {
    display: flex;
    border-bottom: 1px solid #f3f4f6;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    width: 120px;
    padding: 10px 15px;
    background: #f8fafc;
    font-size: 13px;
    color: #6b7280;
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
    padding: 10px 15px;
    font-size: 13px;
}

.expandable-row {
    background: #f8fafc;
}

.expandable-content {
    display: none;
    padding: 15px 20px;
    border-top: 1px solid #e5e7eb;
}

.expandable-row.expanded .expandable-content {
    display: block;
}

.expandable-row.expanded .expand-toggle {
    transform: rotate(180deg);
}

.expand-toggle {
    transition: transform 0.3s ease;
}

.context-view {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    border-left: 3px solid #0078d7;
}

.context-before,
.context-after {
    color: #6b7280;
    font-size: 13px;
    font-style: italic;
}

.context-main {
    background: white;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.8;
}

.context-main .highlight-same {
    background: #dcfce7;
    padding: 2px 0;
}

.print-options {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.print-options.show {
    display: flex;
}

.print-options-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.print-options-content h3 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 18px;
}

.print-options-group {
    margin-bottom: 20px;
}

.print-options-group label {
    display: block;
    font-size: 13px;
    color: #374151;
    margin-bottom: 8px;
    font-weight: 500;
}

.print-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.print-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.print-checkbox-item input {
    width: 18px;
    height: 18px;
}

.print-checkbox-item label {
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
}

.print-options-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.keyboard-shortcuts-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 12px;
    display: flex;
    gap: 20px;
    z-index: 900;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.keyboard-shortcuts-hint.show {
    opacity: 1;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.shortcut-key {
    background: #374151;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.core-risk-indicator {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.core-risk-indicator.high {
    background: #fef2f2;
    border-color: #fca5a5;
}

.core-risk-indicator.medium {
    background: #fffbeb;
    border-color: #fcd34d;
}

.core-risk-indicator.low {
    background: #f0fdf4;
    border-color: #86efac;
}

.core-risk-title {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
}

.core-risk-level {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.core-risk-indicator.high .core-risk-level {
    color: #dc2626;
}

.core-risk-indicator.medium .core-risk-level {
    color: #d97706;
}

.core-risk-indicator.low .core-risk-level {
    color: #16a34a;
}

.core-risk-desc {
    font-size: 14px;
    color: #4b5563;
}

.detailed-stats {
    display: none;
}

.detailed-stats.show {
    display: block;
}

.toggle-details-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #f3f4f6;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #6b7280;
    margin-top: 15px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.toggle-details-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    margin-top: 8px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.pagination-btn {
    padding: 6px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-page-info {
    font-size: 13px;
    color: #6b7280;
    min-width: 100px;
    text-align: center;
}

.pagination-info {
    font-size: 12px;
    color: #9ca3af;
    margin-left: 8px;
}

tr.filtered-out {
    display: none !important;
}

@media print {
    .pagination-bar {
        display: none !important;
    }

    tr.filtered-out {
        display: table-row !important;
    }
    /* 1. 隐藏所有交互元素 */
    .nav-sidebar,
    .nav-toggle-btn,
    .back-to-top,
    .progress-indicator,
    .progress-text,
    .quick-nav-panel,
    .keyboard-shortcuts-hint,
    .filter-buttons,
    .table-toolbar,
    .search-box,
    .toolbar-btn,
    .bookmark-btn,
    .bookmark-float-btn,
    .bookmark-panel,
    .compare-modal,
    .image-compare-modal,
    .page-compare-modal,
    .score-modal,
    .image-modal,
    .print-options,
    .annotation-popup,
    .column-config-dropdown,
    .submenu-arrow,
    .nav-toggle-btn {
        display: none !important;
    }

    /* 2. 页面布局 */
    @page {
        margin: 15mm;
    }
    
    body {
        background-color: white !important;
        padding: 0 !important;
        font-size: 11px;
        line-height: 1.5;
        color: #000 !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    /* 3. 大章节分页控制 */
    .section {
        page-break-inside: avoid;
    }
    
    #text-results,
    #image-results,
    #statistics,
    #author-consistency,
    #key-info,
    #typo-results,
    #tamper-results,
    #methodology {
        page-break-before: always;
    }
    
    #overview {
        page-break-before: avoid;
    }
    
    #text-results .section,
    #image-results .section {
        page-break-before: auto;
        page-break-inside: avoid;
    }

    /* 4. 页眉优化 */
    .header {
        border-bottom: 2px solid #333 !important;
        padding-bottom: 10px !important;
        margin-bottom: 15px !important;
    }
    
    .header h1 {
        color: #000 !important;
        font-size: 20px !important;
    }
    
    .header .subtitle {
        color: #333 !important;
        font-size: 12px !important;
    }
    
    .logo {
        max-width: 120px !important;
        max-height: 50px !important;
    }

    /* 5. 表格打印优化 */
    .table-container {
        overflow: visible !important;
    }
    
    table {
        min-width: 100% !important;
        font-size: 10px !important;
        table-layout: auto !important;
    }
    
    th, td {
        padding: 4px 6px !important;
        border: 1px solid #999 !important;
        font-size: 10px !important;
    }
    
    th {
        background: #e0e0e0 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    /* 隐藏操作列和隐藏文本列 */
    table th:last-child,
    table td:last-child,
    .highlighted-text1,
    .highlighted-text2 {
        display: none !important;
    }
    
    /* 文本预览展开 */
    .text-preview {
        max-height: none !important;
        overflow: visible !important;
    }
    
    .text-preview span {
        display: none !important;
    }

    /* 6. 统计卡片打印优化 */
    .stat-card,
    .stat-mini-card,
    .card,
    .overview-cards .card {
        background: white !important;
        border: 1px solid #ccc !important;
        border-left: 4px solid #999 !important;
        color: #000 !important;
        box-shadow: none !important;
        padding: 8px 12px !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .stat-card.high-risk,
    .stat-mini-card.high-risk,
    .card-danger {
        border-left-color: #dc2626 !important;
    }
    
    .stat-card.medium-risk,
    .stat-mini-card.medium-risk,
    .card-warning {
        border-left-color: #f59e0b !important;
    }
    
    .stat-card.low-risk,
    .stat-mini-card.low-risk,
    .card-success {
        border-left-color: #3b82f6 !important;
    }
    
    .stat-value,
    .stat-mini-value,
    .card-value {
        color: #000 !important;
        font-size: 22px !important;
    }
    
    .stat-label,
    .stat-mini-label,
    .card-title {
        color: #333 !important;
    }

    /* 7. 折叠区域展开 */
    .collapsible-content {
        max-height: none !important;
        overflow: visible !important;
    }
    
    .expandable-content {
        display: block !important;
    }
    
    .collapsible-arrow {
        display: none !important;
    }

    /* 8. 风险指示器和徽章 */
    .risk-badge,
    .risk-indicator,
    .core-risk-indicator {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .risk-badge.risk-high,
    .risk-indicator.high,
    .core-risk-indicator.high .core-risk-level {
        color: #dc2626 !important;
        border-color: #dc2626 !important;
    }
    
    .risk-badge.risk-medium,
    .risk-indicator.medium,
    .core-risk-indicator.medium .core-risk-level {
        color: #d97706 !important;
        border-color: #d97706 !important;
    }
    
    .risk-badge.risk-low,
    .risk-indicator.low,
    .core-risk-indicator.low .core-risk-level {
        color: #16a34a !important;
        border-color: #16a34a !important;
    }

    /* 9. 页脚优化 */
    .footer {
        border-top: 1px solid #999 !important;
        padding-top: 10px !important;
        margin-top: 20px !important;
    }
    
    .footer p {
        font-size: 10px !important;
        color: #666 !important;
    }
    
    /* 10. 其他优化 */
    .note {
        border-left: 3px solid #333 !important;
        background: #f5f5f5 !important;
    }
    
    .section-title {
        color: #000 !important;
        border-left-color: #333 !important;
        font-size: 15px !important;
    }
    
    .subsection-title {
        color: #333 !important;
        border-left-color: #999 !important;
        font-size: 13px !important;
    }
    
    .chart-container {
        background: white !important;
    }
    
    .chart-box {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .bar-fill {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
    
    .module-status {
        border-style: solid !important;
    }
    
    .detail-row {
        display: flex !important;
    }
    
    /* 11. 图片打印优化 */
    img {
        max-width: 100% !important;
    }
    
    .zoomable-image {
        cursor: default !important;
    }

    /* 12. 打印选项控制 - 配合JS使用 */
    body.print-hide-overview #overview,
    body.print-hide-high [data-risk="high"],
    body.print-hide-medium [data-risk="medium"],
    body.print-hide-low [data-risk="low"],
    body.print-hide-charts .chart-container {
        display: none !important;
    }
}

.bookmark-float-btn {
    position: fixed;
    bottom: 140px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #fbbf24;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.bookmark-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.bookmark-float-btn .bookmark-icon {
    font-size: 24px;
}

.bookmark-float-btn .bookmark-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc2626;
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.bookmark-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bookmark-panel.show {
    right: 0;
}

.bookmark-panel-header {
    padding: 20px;
    background: #fbbf24;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bookmark-panel-header h3 {
    margin: 0;
    font-size: 18px;
}

.bookmark-panel-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.bookmark-panel-close:hover {
    opacity: 0.8;
}

.bookmark-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.bookmark-empty {
    text-align: center;
    color: #9ca3af;
    padding: 40px 20px;
}

.bookmark-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bookmark-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    position: relative;
}

.bookmark-item:hover {
    background: #f1f5f9;
    border-color: #fbbf24;
}

.bookmark-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.bookmark-item-icon {
    font-size: 16px;
}

.bookmark-item-type {
    font-size: 12px;
    color: #6b7280;
}

.bookmark-item-risk {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #fee2e2;
    color: #dc2626;
}

.bookmark-item-sim {
    font-size: 12px;
    font-weight: bold;
    color: #374151;
    margin-left: auto;
}

.bookmark-item-preview {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bookmark-item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fee2e2;
    border: none;
    color: #dc2626;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.bookmark-item:hover .bookmark-item-remove {
    opacity: 1;
}

.bookmark-item-remove:hover {
    background: #dc2626;
    color: white;
}

.bookmark-panel-footer {
    padding: 15px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
}

.bookmark-panel-footer .btn-secondary,
.bookmark-panel-footer .btn-primary {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bookmark-panel-footer .btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.bookmark-panel-footer .btn-secondary:hover {
    background: #e5e7eb;
}

.bookmark-panel-footer .btn-primary {
    background: #fbbf24;
    color: white;
}

.bookmark-panel-footer .btn-primary:hover {
    opacity: 0.9;
}

.methodology-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.methodology-item {
    padding: 15px 20px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #0078d7;
}

.methodology-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.methodology-item-desc {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.7;
}

.criteria-list {
    margin: 0;
    padding-left: 18px;
    color: #374151;
}

.criteria-list li {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 4px;
}

.risk-criteria-table {
    overflow-x: auto;
}

.risk-criteria-table table {
    min-width: 500px;
}

/* ==================== Data-Driven Mode Styles ==================== */

.dd-container {
    min-height: 60px;
}

.dd-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #e5e7eb;
    margin-top: 0;
    flex-wrap: wrap;
}

.dd-pagination-btn {
    padding: 6px 16px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dd-pagination-btn:hover:not(:disabled) {
    background: #1a237e;
    color: white;
    border-color: #1a237e;
}

.dd-pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.dd-pagination-info {
    font-size: 13px;
    color: #6b7280;
}

.dd-pagination-page {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.dd-lazy-img {
    background: #f0f0f0;
    min-width: 60px;
    min-height: 40px;
}

/* 数据驱动模式下打印隐藏分页控件 */
@media print {
    .dd-pagination {
        display: none !important;
    }
}

/* ==================== Metadata Extended Sections (RSID / Comment / Revision) ==================== */

.metadata-section {
    margin-top: 25px;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.metadata-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.metadata-section .section-desc {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 18px;
    line-height: 1.6;
}

/* --- RSID Section (purple) --- */
.rsid-section {
    border-left: 4px solid #7c3aed;
}

.rsid-section h4 {
    color: #7c3aed;
}

.rsid-pair-card {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s ease;
}

.rsid-pair-card:hover {
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12);
}

.rsid-pair-card:last-child {
    margin-bottom: 0;
}

.rsid-pair-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.rsid-file {
    font-size: 13px;
    font-weight: 600;
    color: #5b21b6;
    background: #ede9fe;
    padding: 3px 10px;
    border-radius: 4px;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rsid-vs {
    font-size: 18px;
    color: #a78bfa;
    flex-shrink: 0;
}

.rsid-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.rsid-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #ede9fe;
}

.rsid-stat .stat-label {
    font-size: 12px;
    color: #7c3aed;
    margin-bottom: 4px;
}

.rsid-stat .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.rsid-stat .stat-value.high {
    color: #dc2626;
}

.rsid-stat .stat-value.medium {
    color: #d97706;
}

.rsid-bar-container {
    height: 8px;
    background: #ede9fe;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.rsid-bar {
    height: 100%;
    border-radius: 4px;
    background: #7c3aed;
    min-width: 2px;
    transition: width 0.5s ease;
}

.rsid-conclusion {
    text-align: center;
}

.conclusion-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.conclusion-badge.high-risk {
    background: #dc2626;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.conclusion-badge.medium-risk {
    background: #f59e0b;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

/* --- Comment Section (orange) --- */
.comment-section {
    border-left: 4px solid #ea580c;
}

.comment-section h4 {
    color: #ea580c;
}

.comment-card {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s ease;
}

.comment-card:hover {
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.12);
}

.comment-card:last-child {
    margin-bottom: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-file {
    font-size: 13px;
    font-weight: 600;
    color: #9a3412;
    background: #ffedd5;
    padding: 3px 10px;
    border-radius: 4px;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comment-count {
    font-size: 13px;
    font-weight: 600;
    color: #ea580c;
    background: #ffffff;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid #fed7aa;
}

.comment-authors,
.comment-samples {
    margin-bottom: 8px;
}

.comment-authors .label,
.comment-samples .label {
    font-size: 12px;
    color: #9a3412;
    font-weight: 500;
}

.author-tag {
    display: inline-block;
    font-size: 12px;
    background: #ffedd5;
    color: #9a3412;
    padding: 2px 8px;
    border-radius: 4px;
    margin: 2px 4px 2px 0;
}

.comment-sample-item {
    font-size: 13px;
    color: #374151;
    padding: 6px 10px;
    margin-top: 4px;
    background: #ffffff;
    border-radius: 4px;
    border-left: 3px solid #ea580c;
    line-height: 1.5;
}

.comment-author {
    font-weight: 600;
    color: #9a3412;
}

/* --- Revision Section (yellow/amber) --- */
.revision-section {
    border-left: 4px solid #d97706;
}

.revision-section h4 {
    color: #d97706;
}

.revision-card {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s ease;
}

.revision-card:hover {
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.12);
}

.revision-card:last-child {
    margin-bottom: 0;
}

.revision-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.revision-file {
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
    background: #fef3c7;
    padding: 3px 10px;
    border-radius: 4px;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.revision-count {
    font-size: 13px;
    font-weight: 600;
    color: #d97706;
    background: #ffffff;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid #fde68a;
}

.revision-authors,
.revision-samples {
    margin-bottom: 8px;
}

.revision-authors .label,
.revision-samples .label {
    font-size: 12px;
    color: #92400e;
    font-weight: 500;
}

.revision-sample-item {
    font-size: 13px;
    color: #374151;
    padding: 6px 10px;
    margin-top: 4px;
    background: #ffffff;
    border-radius: 4px;
    border-left: 3px solid #d97706;
    line-height: 1.5;
}

.revision-type {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 3px;
    margin-right: 4px;
}

.revision-type.insert {
    background: #dcfce7;
    color: #166534;
}

.revision-type.delete {
    background: #fee2e2;
    color: #991b1b;
}

.revision-author {
    font-weight: 600;
    color: #92400e;
}

/* --- Responsive for metadata sections --- */
@media screen and (max-width: 768px) {
    .rsid-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .rsid-pair-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rsid-vs {
        display: none;
    }
}

/* --- Print for metadata sections --- */
@media print {
    .metadata-section {
        page-break-inside: avoid;
        border-left-width: 2px !important;
    }

    .rsid-pair-card,
    .comment-card,
    .revision-card {
        box-shadow: none !important;
    }

    .conclusion-badge {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
