:root {
    --prism-violet: #4066CC;
    --prism-purple: #2E5FB8;
    --prism-pink: #4EADE4;
    --prism-orange: #1E88E5;
    --prism-cyan: #0288D1;
    --prism-green: #0277BD;
}

html {
    scrollbar-gutter: stable;
    overflow-x: hidden;
}

body {
    background: #F5F7FA;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    scrollbar-gutter: stable;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

*:hover {
    outline: none;
}

.dashboard-header {
    --gradient-x: 8%;
    background: conic-gradient(from 180deg at var(--gradient-x) -5%, 
        #FF0000 0deg,
        #FF7F00 51deg,
        #FFFF00 102deg,
        #00FF00 153deg,
        #0000FF 204deg,
        #4B0082 255deg,
        #8B00FF 306deg,
        #FF0000 360deg);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: visible;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 4px 8px rgba(0,0,0,0.2);
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at var(--gradient-x) 0%, rgba(255,255,255,0.2) 0%, transparent 40%);
    pointer-events: none;
}

.prism-logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 4px 8px rgba(0,0,0,0.2);
    letter-spacing: 3px;
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
    padding-top: 0;
}

.pm-super {
    position: relative;
    width: 120px;
    height: 100px;
    flex-shrink: 0;
    margin-top: -15px;
}

.pm-super::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-top: 100px solid #20558a;
    z-index: 1;
    filter: drop-shadow(3px 3px 8px rgba(0,0,0,0.4));
}

.pm-super span {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.1rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 8px rgba(0,0,0,0.6), 0 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 2px;
    z-index: 2;
}

.prism-text {
    display: inline;
    margin-top: 12px;
    margin-left: -10px;
}

.dashboard-header a {
    cursor: pointer;
    position: relative;
    z-index: 10;
    display: block;
    transition: all 0.3s ease;
}

.dashboard-header a .prism-logo {
    transition: all 0.3s ease;
}

.dashboard-header a:hover .prism-logo {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.dashboard-header a:hover .prism-subtitle {
    opacity: 0.8;
}

.prism-subtitle {
    opacity: 1;
    font-size: 1rem;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.stat-card, .prism-card {
    background: #FFFFFF;
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #E0E7FF;
}

.stat-card::before, .prism-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0288D1, #1E88E5, #2E5FB8, #4066CC);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #1E88E5, #0288D1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chart-container {
    background: #FFFFFF;
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    height: 400px;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    border: 1px solid #E0E7FF;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0288D1, #1E88E5, #2E5FB8);
}

.article-card {
    background: #FFFFFF;
    border-left: none;
    padding: 0.35rem 0.75rem;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
    clip-path: none;
    position: relative;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    transition: background 0.2s ease;
    cursor: pointer;
}

.article-card:last-child {
    border-bottom: 1px solid #f0f0f0;
}

.article-card:hover {
    background: #f8f9fa;
}

.article-card::before {
    display: none;
}

.article-left {
    flex: 1;
    min-width: 0;
    padding-right: 0.5rem;
}

.article-right {
    flex: 0 0 40%;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-left: 1px solid #E0E7FF;
    padding-left: 0.5rem;
}

.article-card:hover .article-right {
    opacity: 1;
}

.article-abstract {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    max-height: 280px;
    overflow-y: auto;
}

.article-title {
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.25;
    display: inline;
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    margin-bottom: 0.05rem;
}

.article-title-row .badge-treatment,
.article-title-row .badge-condition {
    font-size: 0.65rem;
    padding: 0.1rem 0.35rem;
    margin: 0;
}

.article-title a {
    color: var(--prism-violet);
    text-decoration: none;
    transition: all 0.2s;
}

.article-title a:hover {
    color: var(--prism-purple);
    text-decoration: underline;
}

.article-meta {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.25;
}

.article-meta-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.05rem;
}

.article-meta-row i {
    font-size: 0.7rem;
    color: #94a3b8;
}

.article-meta-row .badge {
    font-size: 0.55rem;
    padding: 0.1rem 0.25rem;
}

.abstract-panel-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.abstract-panel-date {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    margin-left: 2px;
}

.badge-treatment {
    background: linear-gradient(135deg, var(--prism-violet), var(--prism-purple));
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-right: 0.25rem;
    border-radius: 0;
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.badge-condition {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0;
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.badge-elite {
    background: linear-gradient(135deg, #d4af37, #f0d94d);
    color: #333;
    font-weight: 600;
}

.badge-high-quality {
    background: linear-gradient(135deg, var(--prism-violet), var(--prism-purple));
    color: white;
}

.badge-mid-tier {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

.badge-low-tier {
    background: linear-gradient(135deg, #a5a5a5, #9a9a9a);
    color: white;
}

.badge-unknown {
    background: linear-gradient(135deg, #ccc, #bbb);
    color: #333;
}

.badge-no-ranking {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    font-weight: 600;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.spinner-border {
    color: var(--prism-violet);
}

.treatment-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.parallelogram-card {
    display: block;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 1.5rem 2rem;
    transform: skewX(-5deg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    text-decoration: none;
}

.parallelogram-card:hover {
    transform: skewX(-5deg) translateY(-5px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.3);
}

.parallelogram-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--prism-cyan), var(--prism-violet), var(--prism-pink));
}

.parallelogram-card .card-content {
    transform: skewX(5deg);
}

.parallelogram-card .treatment-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.parallelogram-card .treatment-count {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--prism-violet), var(--prism-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.parallelogram-card .treatment-trend {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.parallelogram-card .trend-up { color: #11998e; }
.parallelogram-card .trend-down { color: #f64f59; }

.parallelogram-card .emerging-trend {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--prism-orange), var(--prism-pink));
    color: white;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: skewX(5deg);
    border-radius: 2px;
}

.parallelogram-card-small {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 1rem 1.25rem;
    transform: skewX(-5deg);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem 0.5rem 0.5rem 0;
}

.parallelogram-card-small:hover {
    box-shadow: 0 6px 20px rgba(102,126,234,0.3);
}

.parallelogram-card-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--prism-cyan), var(--prism-violet), var(--prism-pink));
}

.parallelogram-card-small .card-content {
    transform: skewX(5deg);
}

.parallelogram-card-small .treatment-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
}

.parallelogram-card-small .treatment-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

.parallelogram-card-wrapper {
    position: relative;
}

.parallelogram-card-wrapper .save-treatment-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6c757d;
}

.parallelogram-card-wrapper .save-treatment-btn:hover {
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.parallelogram-card-wrapper .save-treatment-btn.saved {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.15);
}

.parallelogram-card-wrapper .save-treatment-btn.saved:hover {
    background: rgba(212, 175, 55, 0.3);
}

.related-term-nolink {
    display: inline-block;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    margin: 0.5rem 0.5rem 0.5rem 0;
    opacity: 0.7;
    cursor: default;
}

.related-term-nolink .term-name {
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.related-term-nolink .term-meta {
    font-size: 0.8rem;
    color: #999;
}

.prism-divider {
    width: 3px;
    background: linear-gradient(180deg, 
        var(--prism-violet) 0%, 
        var(--prism-purple) 25%, 
        var(--prism-pink) 50%, 
        var(--prism-orange) 75%, 
        var(--prism-cyan) 100%);
    min-height: 100%;
    border-radius: 2px;
}

.trending-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
}

.back-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    transition: all 0.2s;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

.mesh-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}

h4 {
    color: #333;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.filter-section {
    background: white;
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 2rem;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    border: 1px solid #E0E7FF;
}

.filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E088C8, #E6B892, #E6E680, #80D980, #80B8E6, #C880E6);
}

.total-articles-badge {
    background: linear-gradient(135deg, var(--prism-violet), var(--prism-purple));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 15px rgba(64,102,204,0.3);
}

.total-articles-badge small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Articles Navigation Panel */
.articles-nav-panel {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0.75rem;
    background: white;
    border: 1px solid #E0E7FF;
    border-radius: 4px;
    width: 70px;
    flex-shrink: 0;
}

.article-nav-btn {
    background: linear-gradient(135deg, var(--prism-violet), var(--prism-purple)) !important;
    color: white !important;
    border: none !important;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.25rem;
    flex-shrink: 0;
    padding: 0;
    position: relative;
    z-index: 10;
}

.article-nav-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64,102,204,0.3);
}

.article-nav-btn:active:not(:disabled) {
    transform: translateY(0);
}

.article-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed !important;
}

.article-nav-btn i {
    pointer-events: none;
}

.article-page-info {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-direction: column;
    text-align: center;
}

.article-page-input {
    width: 50px;
    padding: 0.5rem;
    text-align: center;
    border: 1px solid #E0E7FF;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.article-page-input:focus {
    outline: none;
    border-color: var(--prism-violet);
    box-shadow: 0 0 0 3px rgba(64,102,204,0.1);
}

.article-page-total {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

/* Articles container with side nav */
.articles-container {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.articles-list {
    flex: 1;
    min-width: 0;
    user-select: none;
    height: 800px;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-behavior: smooth;
    border: 1px solid #E0E7FF;
    border-radius: 4px;
    scrollbar-width: thin;
    scrollbar-color: #4066CC #f1f1f1;
}

/* Webkit scrollbar styling */
.articles-list::-webkit-scrollbar {
    width: 12px;
}

.articles-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
    margin: 2px 0;
}

.articles-list::-webkit-scrollbar-thumb {
    background: #4066CC;
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

.articles-list::-webkit-scrollbar-thumb:hover {
    background: #2E5FB8;
    border: 2px solid #f1f1f1;
}

.articles-list.dragging {
    opacity: 0.8;
}

.abstract-panel {
    flex: 0 0 40%;
    max-width: 40%;
    overflow-y: auto;
    height: 800px;
    border-left: 2px solid #E0E7FF;
    padding: 0 5px;
    background: white;
    box-sizing: border-box;
}

.abstract-panel-content {
    padding: 1rem 0;
    min-height: 100%;
}

.abstract-panel-content.active {
    padding: 0.75rem;
    animation: fadeIn 0.3s ease-in;
}

.abstract-panel-text {
    margin-left: 2px;
}

.abstract-panel-placeholder {
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
}

.article-row {
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.25rem;
    background: white;
    border: 1px solid #E0E7FF;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.article-row:hover {
    background: #f8f9fa;
}

/* Article page flip animations */
@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-40px);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(40px);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#recent-articles.slide-up {
    animation: slideOutUp 0.4s ease-out;
}

#recent-articles.slide-up-in {
    animation: slideInUp 0.4s ease-out;
}

#recent-articles.slide-down {
    animation: slideOutDown 0.4s ease-out;
}

#recent-articles.slide-down-in {
    animation: slideInDown 0.4s ease-out;
}

/* Enhanced Article Browsing UX */
.article-row.keyboard-selected {
    background: #ffffff;
    border-color: var(--prism-violet);
    box-shadow: 0 0 0 2px rgba(64, 102, 204, 0.3);
    border-left: 3px solid var(--prism-violet);
}

.article-row.active {
    background: #ffffff;
    border-left: 3px solid var(--prism-violet);
    box-shadow: inset 0 0 0 2px rgba(64, 102, 204, 0.2);
}

.article-row.saved {
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
}

.article-row.saved.active,
.article-row.saved.keyboard-selected {
    background: linear-gradient(135deg, #fff3cc 0%, #ffeebb 100%);
    border-left: 3px solid #d4af37;
}

.article-row.extreme-effectiveness {
    background: linear-gradient(135deg, #f0fdf4 0%, #e0f9f1 100%);
    border: 1.5px solid #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.1);
}

.article-row.extreme-effectiveness:hover {
    background: linear-gradient(135deg, #dcfce7 0%, #c7f0d8 100%);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.extreme-effectiveness-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #22c55e;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

/* Save button enhancements */
.save-article-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: #94a3b8;
    margin-left: auto;
    flex-shrink: 0;
}

.save-article-btn:hover {
    background: rgba(64, 102, 204, 0.1);
    color: var(--prism-violet);
    transform: scale(1.1);
}

.save-article-btn.saved {
    color: #d4af37;
}

.save-article-btn.saved:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #c9a227;
}

@keyframes savePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.save-article-btn.save-pulse {
    animation: savePulse 0.3s ease-out;
}

/* Shortcut bar */
.article-shortcut-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border: 1px solid #e0e7ff;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
}

.shortcut-hints {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.shortcut-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    background: white;
    border: 1px solid #d0d7de;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
    font-size: 0.7rem;
    color: #333;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.shortcut-label {
    color: #64748b;
    margin-right: 0.75rem;
}

.shortcut-status {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.saved-counter {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #d4af37;
    font-weight: 600;
}

.page-indicator {
    color: #64748b;
}

/* Abstract panel actions */
.abstract-panel-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.abstract-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: linear-gradient(135deg, var(--prism-violet), var(--prism-purple));
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.abstract-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(64, 102, 204, 0.3);
}

.abstract-save-btn.saved {
    background: linear-gradient(135deg, #d4af37, #f0d94d);
    color: #333;
}

.abstract-pubmed-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: white;
    border: 1px solid #e0e7ff;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #0284c7;
    text-decoration: none;
    transition: all 0.2s ease;
}

.abstract-pubmed-link:hover {
    background: #f0f4ff;
    border-color: var(--prism-violet);
}

/* Article badges styling */
.article-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.1rem;
}

.abstract-panel-header-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.abstract-panel-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.article-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
}

.badge-cancer {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
    clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
}

.badge-treatment {
    background: linear-gradient(135deg, var(--prism-violet), var(--prism-purple));
    color: white;
    clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
}

.badge-study {
    background: linear-gradient(135deg, #ff9a56, #ff6b6b);
    color: white;
    clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
}

/* Abstract panel title styling */
.abstract-panel-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    color: #1a1a2e;
    margin-left: 2px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
}

.filter-column {
    flex: 1;
    min-width: 200px;
    padding: 0 10px;
}

.filters-card-container {
    position: relative;
}

.filters-card-container .stat-card {
    padding-bottom: 4rem;
}

.filters-badge {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--prism-violet), var(--prism-pink));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    text-align: center;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
    min-width: 140px;
}

.filters-badge .badge-number {
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.filters-badge .badge-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .prism-divider {
        display: none;
    }
    .filter-column {
        border-bottom: 2px solid;
        border-image: linear-gradient(90deg, var(--prism-cyan), var(--prism-violet), var(--prism-pink)) 1;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    .filter-column:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

.spinner-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.stat-card.loading .stat-number {
    color: #ccc;
}

.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
}

.global-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: #e0e0e0;
    z-index: 9999;
    display: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.global-progress-container.active {
    display: block;
}

.global-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f64f59 100%);
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.8), inset 0 0 5px rgba(255,255,255,0.3);
}

.global-progress-container.active .global-progress-bar {
    animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.loading-overlay {
    display: none;
}

.loading-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    z-index: 9999;
    display: none;
    text-align: center;
    border-left: 4px solid #667eea;
}

.loading-status.active {
    display: flex;
    align-items: center;
    gap: 15px;
}

.loading-status .progress-text {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(90deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-status .loading-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}
