/* ═══════════════════════════════════════════════════════════════════
   RNAseek – Global Theme
   Modern Scientific UI inspired by LC-AutoFit (blue-teal spectrum)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--rna-font-body);
    background: var(--rna-page-bg);
    color: var(--rna-grey-800);
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1 0 auto;
}

a {
    color: var(--rna-teal);
    text-decoration: none;
}

a:hover {
    color: var(--rna-navy);
    text-decoration: underline;
}

/* ── Navbar ── */
.rna-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0.35rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--rna-grey-200);
    box-shadow: var(--rna-shadow-sm);
    gap: 0.75rem;
    overflow: visible;
}

.rna-navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.rna-navbar-brand {
    display: flex;
    align-items: center;
    gap: .625rem;
    text-decoration: none;
    overflow: visible;
}

.rna-navbar-brand img {
    height: 88px;
    width: auto;
    margin-top: -18px;
    margin-bottom: -18px;
}

.rna-navbar-brand span {
    font-family: var(--rna-font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--rna-navy);
}

.rna-nav-links {
    display: flex;
    align-items: center;
    gap: .5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rna-nav-links a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .85rem;
    font-size: .82rem;
    font-weight: 500;
    color: var(--rna-grey-700);
    border-radius: var(--rna-radius-md);
    transition: all .2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.rna-nav-links a:hover,
.rna-nav-links a.active {
    background: rgba(5, 154, 152, .08);
    color: var(--rna-teal);
}

.rna-nav-links a.active {
    font-weight: 600;
    background: rgba(5, 154, 152, .12);
    color: var(--rna-navy);
}

/* Session badge in navbar */
.rna-session-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .65rem;
    font-size: .72rem;
    font-weight: 600;
    color: var(--rna-grey-500);
    background: var(--rna-grey-100);
    border-radius: 50px;
}

/* ── Footer ── */
.rna-footer {
    padding: .65rem 1.5rem;
    text-align: right;
    font-size: .72rem;
    color: var(--rna-grey-500);
    background: #fff;
    border-top: 1px solid var(--rna-grey-200);
}

/* ── Buttons ── */
.btn-rna {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    height: 44px;
    padding: 0 1.5rem;
    min-width: 160px;
    font-family: var(--rna-font-body);
    font-size: .88rem;
    font-weight: 600;
    border: none;
    border-radius: var(--rna-radius-md);
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: var(--rna-shadow-sm);
    text-decoration: none;
}

.btn-rna:hover {
    box-shadow: var(--rna-shadow-hover);
    transform: translateY(-1px);
}

.btn-rna:disabled {
    opacity: .35;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.btn-rna-primary {
    background: var(--rna-brand-gradient);
    color: #fff;
}

.btn-rna-primary:hover {
    color: #fff;
    filter: brightness(1.1);
}

.btn-rna-teal {
    background: var(--rna-teal);
    color: #fff;
}

.btn-rna-teal:hover {
    color: #fff;
    background: var(--rna-blue-teal);
}

.btn-rna-outline {
    background: transparent;
    color: var(--rna-navy);
    border: 1.5px solid var(--rna-grey-300);
    box-shadow: none;
}

.btn-rna-outline:hover {
    border-color: var(--rna-teal);
    color: var(--rna-teal);
    background: rgba(5, 154, 152, .04);
}

.btn-rna-sm {
    height: 34px;
    padding: 0 .9rem;
    min-width: 100px;
    font-size: .8rem;
}

.btn-rna-danger {
    background: var(--rna-accent-red);
    color: #fff;
}

/* ── Cards ── */
.rna-card {
    background: #fff;
    border: 1px solid var(--rna-grey-200);
    border-radius: var(--rna-radius-lg);
    box-shadow: var(--rna-shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease;
}

.rna-card:hover {
    box-shadow: var(--rna-shadow-md);
}

.rna-card-header {
    padding: 1rem 1.25rem;
    font-family: var(--rna-font-heading);
    font-weight: 600;
    font-size: .88rem;
    color: #fff;
    background: var(--rna-card-gradient);
    border-radius: var(--rna-radius-lg) var(--rna-radius-lg) 0 0;
}

.rna-card-body {
    padding: 1.25rem;
}

/* ── Module Cards (grid items) ── */
.rna-module-card {
    background: #fff;
    border: 1px solid var(--rna-grey-200);
    border-radius: var(--rna-radius-lg);
    padding: 1.25rem;
    transition: all .25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.rna-module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--rna-teal);
    opacity: 0;
    transition: opacity .25s ease;
}

.rna-module-card:hover {
    border-color: var(--rna-teal-light);
    box-shadow: var(--rna-shadow-md);
    transform: translateY(-2px);
}

.rna-module-card:hover::before {
    opacity: 1;
}

.rna-module-card.locked {
    opacity: .45;
    pointer-events: none;
}

.rna-module-card.locked::before {
    display: none;
}

.rna-module-card .module-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.15rem;
    margin-bottom: .75rem;
}

.rna-module-card .module-icon.cat-transcriptome {
    background: rgba(5, 154, 152, .1);
    color: var(--rna-teal);
}

.rna-module-card .module-icon.cat-systems {
    background: rgba(2, 66, 110, .1);
    color: var(--rna-navy);
}

.rna-module-card .module-icon.cat-clinical {
    background: rgba(22, 163, 74, .1);
    color: var(--rna-accent-green);
}

.rna-module-card .module-icon.cat-multiomics {
    background: rgba(245, 158, 11, .1);
    color: var(--rna-accent-amber);
}

.rna-module-card .module-icon.cat-advanced {
    background: rgba(127, 207, 193, .15);
    color: var(--rna-teal);
}

.rna-module-card h3 {
    font-family: var(--rna-font-heading);
    font-size: .88rem;
    font-weight: 600;
    color: var(--rna-grey-900);
    margin: 0 0 .35rem;
}

.rna-module-card p {
    font-size: .78rem;
    color: var(--rna-grey-600);
    margin: 0;
    line-height: 1.45;
}

/* ── Tables ── */
.rna-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.rna-table-fixed {
    table-layout: fixed;
    word-wrap: break-word;
}

.rna-table thead th {
    background: var(--rna-navy);
    color: #fff;
    padding: .75rem 1rem;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
    vertical-align: middle;
}

.rna-table thead th:first-child {
    border-radius: var(--rna-radius-md) 0 0 0;
}

.rna-table thead th:last-child {
    border-radius: 0 var(--rna-radius-md) 0 0;
}

.rna-table tbody td {
    padding: .75rem 1rem;
    font-size: .84rem;
    color: var(--rna-grey-800);
    border-bottom: 1px solid var(--rna-grey-100);
    vertical-align: middle;
}

.rna-table tbody td:last-child {
    text-align: right;
}

.rna-table-fixed tbody td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rna-table tbody tr:hover {
    background: rgba(59, 173, 174, .04);
}

/* ── Status Badges ── */
.rna-badge {
    display: inline-flex;
    align-items: center;
    padding: .25rem .7rem;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.rna-badge-pending {
    background: rgba(245, 158, 11, .12);
    color: #b45309;
}

.rna-badge-running {
    background: rgba(5, 154, 152, .12);
    color: var(--rna-navy);
}

.rna-badge-success {
    background: rgba(22, 163, 74, .12);
    color: #15803d;
}

.rna-badge-failed {
    background: rgba(239, 68, 68, .12);
    color: #b91c1c;
}

/* ── Forms ── */
.rna-input {
    width: 100%;
    padding: .55rem .85rem;
    font-size: .84rem;
    font-family: var(--rna-font-body);
    background: var(--rna-grey-50);
    border: 1.5px solid var(--rna-grey-300);
    border-radius: var(--rna-radius-md);
    transition: all .2s ease;
    color: var(--rna-grey-800);
}

.rna-input:focus {
    outline: none;
    border-color: var(--rna-teal);
    box-shadow: 0 0 0 3px rgba(5, 154, 152, .12);
    background: #fff;
}

.rna-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23757575' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    padding-right: 2.2rem;
}

.rna-label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--rna-grey-700);
    margin-bottom: .35rem;
}

/* ── File Drop Zone ── */
.rna-drop-zone {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: var(--rna-grey-50);
    border: 2px dashed var(--rna-grey-400);
    border-radius: var(--rna-radius-md);
    color: var(--rna-grey-600);
    font-weight: 600;
    font-size: .88rem;
    cursor: pointer;
    transition: all .25s ease;
}

.rna-drop-zone:hover,
.rna-drop-zone.drag-over {
    border-color: var(--rna-teal);
    background: rgba(5, 154, 152, .04);
    color: var(--rna-teal);
}

.rna-drop-zone.has-files {
    border-style: solid;
    border-color: var(--rna-accent-emerald);
    background: rgba(127, 207, 193, .06);
}

.rna-drop-zone i {
    font-size: 2rem;
    opacity: .5;
}

/* ── Section Headers ── */
.rna-section-title {
    font-family: var(--rna-font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--rna-navy);
    margin: 0 0 .35rem;
}

.rna-section-subtitle {
    font-size: .82rem;
    color: var(--rna-grey-500);
    margin: 0 0 1.5rem;
}

/* ── Progress Steps ── */
.rna-steps {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.rna-step {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .75rem;
    font-size: .75rem;
    font-weight: 600;
    border-radius: var(--rna-radius-md);
    background: var(--rna-grey-100);
    color: var(--rna-grey-600);
    transition: all .2s ease;
}

.rna-step.active {
    background: rgba(5, 154, 152, .12);
    color: var(--rna-teal);
    border: 1px solid rgba(5, 154, 152, .25);
}

.rna-step.completed {
    background: rgba(22, 163, 74, .1);
    color: var(--rna-accent-green);
}

.rna-step-arrow {
    color: var(--rna-grey-400);
    font-size: .6rem;
}

/* ── Warning Banner ── */
.rna-banner-warn {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem 1.15rem;
    background: rgba(245, 158, 11, .08);
    border: 1px solid rgba(245, 158, 11, .25);
    border-radius: var(--rna-radius-md);
    font-size: .82rem;
    color: #92400e;
}

.rna-banner-warn i {
    font-size: 1.1rem;
}

/* ── Download list ── */
.rna-download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .65rem 1rem;
    border-bottom: 1px solid var(--rna-grey-100);
}

.rna-download-item:last-child {
    border-bottom: none;
}

.rna-download-item .file-info {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 1 1 auto;
    /* ADDED: Allows text area to take available space */
    min-width: 0;
    /* ADDED: Prevents long text from pushing the button out */
}

.rna-download-item .file-info i {
    color: var(--rna-teal);
}

.rna-download-item .file-name {
    font-size: .84rem;
    font-weight: 500;
    color: var(--rna-grey-800);
}

.rna-download-item .file-desc {
    font-size: .72rem;
    color: var(--rna-grey-500);
}

.rna-icon-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rna-radius-sm);
    border: none;
    cursor: pointer;
    transition: all .2s ease;
    font-size: .9rem;
    flex-shrink: 0;
    /* ADDED: Locks the button size so it never squishes */
}

.rna-icon-btn-download {
    background: rgba(5, 154, 152, .1);
    color: var(--rna-teal);
}

.rna-icon-btn-download:hover {
    background: var(--rna-teal);
    color: #fff;
}

/* ── Viz Plot Container ── */
.rna-plot-container {
    width: 100%;
    height: 420px;
    background: #fff;
    border: 1px solid var(--rna-grey-200);
    border-radius: var(--rna-radius-lg);
    overflow: hidden;
    position: relative;
    color: var(--rna-grey-400);
    font-size: .82rem;
}

.rna-plot-container .js-plotly-plot,
.rna-plot-container .plot-container,
.rna-plot-container .svg-container {
    width: 100% !important;
    height: 100% !important;
}

/* placeholder text centered until plot loads */
.rna-plot-container>span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ── Container Widths ── */
.rna-container {
    width: 100%;
    max-width: 98%;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.rna-container-wide {
    max-width: 99%;
}

/* ── Utility ── */
.rna-mt-1 {
    margin-top: .5rem;
}

.rna-mt-2 {
    margin-top: 1rem;
}

.rna-mt-3 {
    margin-top: 1.5rem;
}

.rna-mt-4 {
    margin-top: 2rem;
}

.rna-mb-1 {
    margin-bottom: .5rem;
}

.rna-mb-2 {
    margin-bottom: 1rem;
}

.rna-mb-3 {
    margin-bottom: 1.5rem;
}

.rna-mb-4 {
    margin-bottom: 2rem;
}

.rna-gap-2 {
    gap: 1rem;
}

.rna-gap-3 {
    gap: 1.5rem;
}

.rna-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.rna-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.rna-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.rna-flex {
    display: flex;
}

.rna-flex-col {
    flex-direction: column;
}

.rna-flex-center {
    align-items: center;
    justify-content: center;
}

.rna-flex-between {
    justify-content: space-between;
}

.rna-flex-wrap {
    flex-wrap: wrap;
}

.rna-text-sm {
    font-size: .82rem;
}

.rna-text-xs {
    font-size: .72rem;
}

.rna-text-muted {
    color: var(--rna-grey-500);
}

.rna-text-center {
    text-align: center;
}

.rna-hidden {
    display: none !important;
}

/* ── Modal ── */
.rna-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.rna-modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.rna-modal {
    background: #fff;
    border-radius: var(--rna-radius-lg);
    box-shadow: var(--rna-shadow-lg);
    max-width: 560px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

.rna-modal-header {
    padding: 1rem 1.25rem;
    background: var(--rna-card-gradient);
    color: #fff;
    border-radius: var(--rna-radius-lg) var(--rna-radius-lg) 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rna-modal-header h3 {
    font-family: var(--rna-font-heading);
    font-size: .95rem;
    font-weight: 600;
    margin: 0;
}

.rna-modal-close {
    background: rgba(255, 255, 255, .2);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: var(--rna-radius-sm);
    cursor: pointer;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rna-modal-body {
    padding: 1.25rem;
}

.rna-modal-footer {
    padding: .85rem 1.25rem;
    border-top: 1px solid var(--rna-grey-200);
    background: var(--rna-grey-50);
    border-radius: 0 0 var(--rna-radius-lg) var(--rna-radius-lg);
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
}

/* ── Progress bar ── */
.rna-progress {
    width: 100%;
    height: 8px;
    background: var(--rna-grey-200);
    border-radius: 4px;
    overflow: hidden;
}

.rna-progress-bar {
    height: 100%;
    background: var(--rna-brand-gradient);
    border-radius: 4px;
    transition: width .3s ease;
}

.rna-progress-bar.animated {
    background-size: 30px 30px, auto;
    background-image:
        linear-gradient(135deg,
            rgba(255, 255, 255, .15) 25%, transparent 25%,
            transparent 50%, rgba(255, 255, 255, .15) 50%,
            rgba(255, 255, 255, .15) 75%, transparent 75%, transparent),
        var(--rna-brand-gradient);

    /* Layer 1 (stripes) starts at 0 0, Layer 2 (gradient) starts at 0 0 */
    background-position: 0 0, 0 0;
    animation: rna-progress-stripe 1s linear infinite;
}

@keyframes rna-progress-stripe {
    from {
        /* Move ONLY the top layer (stripes) by 30px. Keep bottom layer at 0 0 */
        background-position: 30px 0, 0 0;
    }

    to {
        background-position: 0 0, 0 0;
    }
}

/* ── Hero Section (old centered style, kept for inner pages) ── */
.rna-hero-simple {
    position: relative;
    padding: 4rem 0 3rem;
    text-align: center;
    background: var(--rna-brand-gradient);
    color: #fff;
    overflow: hidden;
}

.rna-hero-simple::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--rna-page-bg);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.rna-hero-simple h1 {
    font-family: var(--rna-font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0 0 .5rem;
}

.rna-hero-simple p {
    font-size: 1rem;
    opacity: .85;
    max-width: 650px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* ── Dashboard Hero Banner (LC-AutoFit style) ── */
@keyframes heroSlideIn {
    from {
        opacity: 0;
        transform: translateX(80px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dash-container {
    width: 100%;
    max-width: 98%;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.dash-welcome-banner {
    background: var(--rna-brand-gradient);
    border-radius: var(--rna-radius-lg);
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.dash-greeting {
    font-size: .88rem;
    color: rgba(255, 255, 255, .85);
    margin: 0 0 .1rem;
}

.dash-tagline {
    font-family: var(--rna-font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.dash-stats-banner {
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: var(--rna-radius-lg);
    padding: .55rem 1.25rem;
}

.dash-stats-inner {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .35rem;
    flex-wrap: wrap;
}

.dash-stat-number {
    display: inline-block;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.dash-stat-label {
    font-size: .85rem;
    color: rgba(255, 255, 255, .85);
    font-weight: 500;
}

/* Hero banner with slideshow */
.dash-hero-banner {
    position: relative;
    border-radius: var(--rna-radius-lg);
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
}

.dash-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.dash-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.dash-slide.active {
    opacity: 1;
}

.dash-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(10, 22, 40, .30) 0%,
            rgba(10, 22, 40, .12) 40%,
            rgba(10, 22, 40, .04) 100%);
    z-index: 1;
    pointer-events: none;
}

.dash-hero-logo {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    padding: 2rem 2.5rem;
}

.dash-hero-logo-img {
    height: 22.5rem;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .3)) brightness(0) invert(1);
}

/* Staircase Action Buttons */
.dash-hero-actions {
    position: relative;
    z-index: 2;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .65rem;
    padding: 2rem 0 2rem 2rem;
}

.dash-hero-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    border: none;
    transition: filter .2s ease, box-shadow .2s ease, padding-right .2s ease;
    opacity: 0;
    transform: translateX(80px);
    animation: heroSlideIn .6s ease forwards;
}

.dash-hero-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
    padding-right: 1.2rem;
    color: #fff;
    text-decoration: none;
}

.dash-hero-btn:hover i {
    transform: translateX(4px);
}

.dash-hero-btn i {
    font-size: .9rem;
    transition: transform .2s ease;
}

.dash-btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.dash-btn-title {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.dash-btn-desc {
    font-size: .75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, .85);
    margin-top: .15rem;
    white-space: nowrap;
}

/* Staircase widths + gradient colors + staggered delays */
.dash-hero-btn-1 {
    background: linear-gradient(135deg, var(--rna-navy) 0%, var(--rna-blue-mid) 100%);
    animation-delay: .1s;
    width: 520px;
}

.dash-hero-btn-2 {
    background: linear-gradient(135deg, var(--rna-blue-mid) 0%, var(--rna-blue-teal) 100%);
    animation-delay: .25s;
    width: 470px;
}

.dash-hero-btn-3 {
    background: linear-gradient(135deg, var(--rna-blue-teal) 0%, var(--rna-teal) 100%);
    animation-delay: .4s;
    width: 420px;
}

.dash-hero-btn-4 {
    background: linear-gradient(135deg, var(--rna-teal) 0%, var(--rna-teal-light) 100%);
    animation-delay: .55s;
    width: 370px;
}

/* Slideshow dots */
.dash-hero-banner .dash-slideshow-dots {
    position: absolute;
    bottom: .75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.dash-slideshow-dots {
    display: flex;
    gap: .4rem;
}

.dash-sdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
    transition: background .2s ease, width .2s ease, border-radius .2s ease;
}

.dash-sdot.active {
    background: #fff;
    width: 22px;
    border-radius: 4px;
}

.dash-sdot:hover:not(.active) {
    background: rgba(255, 255, 255, .7);
}

/* ── Navbar Step Progress Bar ── */
.rna-navbar-steps {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rna-step-bar {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: nowrap;
}

.rna-nav-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    border-radius: var(--rna-radius-md);
    font-size: .75rem;
    font-weight: 600;
    padding: 0 .7rem;
    line-height: 1;
    white-space: nowrap;
    transition: all .25s ease;
}

.rna-nav-step.step-active {
    background: rgba(2, 66, 110, .12);
    color: var(--rna-navy);
    border: 1px solid rgba(2, 66, 110, .25);
    box-shadow: 0 0 8px rgba(5, 154, 152, .3);
}

.rna-nav-step.step-inactive {
    background: var(--rna-grey-100);
    color: var(--rna-grey-600);
    border: 1px solid transparent;
}

.rna-step-arrow-icon {
    color: var(--rna-grey-400);
    font-size: .65rem;
}

/* ── Feature Grid (Home) ── */
.rna-feature-card {
    text-align: center;
    padding: 1.5rem 1.25rem;
}

.rna-feature-card i:not(.step-badge) {
    font-size: 1.8rem;
    color: var(--rna-teal);
    margin-bottom: .75rem;
    display: block;
}

/* Step badge used in 'How It Works' to match feature-card visuals */
.rna-feature-card .step-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--rna-brand-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: .75rem;
    line-height: 1;
    font-style: normal;
    padding: 0;
    box-sizing: border-box;
}

.rna-feature-card h3 {
    font-family: var(--rna-font-heading);
    font-size: .88rem;
    font-weight: 600;
    color: var(--rna-grey-900);
    margin: 0 0 .4rem;
}

.rna-feature-card p {
    font-size: .78rem;
    color: var(--rna-grey-600);
    margin: 0;
    line-height: 1.45;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    .dash-hero-btn-1 {
        width: 420px;
    }

    .dash-hero-btn-2 {
        width: 380px;
    }

    .dash-hero-btn-3 {
        width: 340px;
    }

    .dash-hero-btn-4 {
        width: 300px;
    }

    .rna-navbar-steps {
        display: none;
    }
}

@media (max-width: 991px) {
    .rna-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .rna-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .rna-hero-simple h1 {
        font-size: 1.75rem;
    }

    .dash-hero-banner {
        flex-direction: column;
        min-height: auto;
    }

    .dash-hero-actions {
        align-items: stretch;
        padding: 1rem 1.5rem 1.5rem;
        margin-left: 0;
    }

    .dash-hero-btn-1,
    .dash-hero-btn-2,
    .dash-hero-btn-3,
    .dash-hero-btn-4 {
        width: 100%;
    }

    .dash-hero-logo {
        padding: 1.5rem 1.5rem .5rem;
    }

    .dash-hero-logo-img {
        height: 12rem;
    }
}

@media (max-width: 575px) {

    .rna-grid-2,
    .rna-grid-3,
    .rna-grid-4 {
        grid-template-columns: 1fr;
    }

    .rna-plot-container {
        height: 300px;
    }

    .rna-navbar {
        padding: 0 .75rem;
    }

    .rna-nav-links {
        display: none;
    }

    .rna-container {
        padding: 0 0.35rem;
    }

    .rna-hero-simple {
        padding: 2.5rem 0 2rem;
    }

    .rna-hero-simple h1 {
        font-size: 1.5rem;
    }

    .dash-hero-logo-img {
        height: 8rem;
    }
}

/* ── Animated pulse for processing ── */
@keyframes rna-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

.rna-processing {
    animation: rna-pulse 2s ease-in-out infinite;
}

/* ── Deconvolution gateway card special styling ── */
.rna-gateway-card {
    background: linear-gradient(135deg, rgba(2, 66, 110, .03) 0%, rgba(5, 154, 152, .05) 100%);
    border: 2px solid var(--rna-teal-light);
}

.rna-gateway-card:hover {
    border-color: var(--rna-teal);
    box-shadow: 0 6px 24px rgba(5, 154, 152, .15);
}

/* ── Tab Bar ── */
.rna-tab-bar {
    display: flex;
    gap: .5rem;
    border-bottom: 2px solid var(--rna-grey-200);
    padding-bottom: 0;
}

.rna-tab {
    padding: .65rem 1.25rem;
    font-family: var(--rna-font-heading);
    font-size: .85rem;
    font-weight: 600;
    color: var(--rna-grey-500);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.rna-tab:hover {
    color: var(--rna-teal);
}

.rna-tab.active {
    color: var(--rna-teal);
    border-bottom-color: var(--rna-teal);
}

.rna-tab-panel {
    display: none;
}

.rna-tab-panel.active {
    display: block;
}

/* ── Module Status Badges ── */
.rna-module-status-badge {
    position: absolute;
    top: .6rem;
    right: .6rem;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: .15rem .5rem;
    border-radius: 999px;
    display: none;
}

.rna-module-status-badge.status-running {
    display: inline-block;
    background: rgba(245, 158, 11, .15);
    color: var(--rna-accent-amber);
    animation: rna-pulse 2s ease-in-out infinite;
}

.rna-module-status-badge.status-done {
    display: inline-block;
    background: rgba(22, 163, 74, .12);
    color: var(--rna-accent-green);
}

.rna-module-status-badge.status-failed {
    display: inline-block;
    background: rgba(231, 76, 60, .12);
    color: #e74c3c;
}

.rna-module-card.rna-module-running {
    border-color: var(--rna-accent-amber);
}

.rna-module-card.rna-module-done {
    border-color: var(--rna-accent-green);
}

.rna-module-card.rna-module-done::before {
    opacity: 1;
    background: var(--rna-accent-green);
}

.rna-module-card.rna-module-failed {
    border-color: #e74c3c;
}

.rna-module-card.rna-module-failed::before {
    opacity: 1;
    background: #e74c3c;
}

/* ═══════════════════════════════════════════════════════════════════
   Master-Detail Layout – Modules Tab
   ═══════════════════════════════════════════════════════════════════ */

/* ── Split Pane Container ── */
.md-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.25rem;
    min-height: 600px;
    align-items: start;
}

@media (max-width: 900px) {
    .md-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

/* ── Master Pane ── */
.md-master {
    background: #fff;
    border: 1px solid var(--rna-grey-200);
    border-radius: var(--rna-radius-lg);
    box-shadow: var(--rna-shadow-sm);
    overflow: hidden;
    position: sticky;
    top: 68px;
    max-height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
}

.md-master-header {
    padding: .75rem 1rem;
    font-family: var(--rna-font-heading);
    font-weight: 600;
    font-size: .82rem;
    color: #fff;
    background: var(--rna-card-gradient);
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
}

.md-master-list {
    overflow-y: auto;
    flex: 1;
    padding: .35rem 0;
}

/* ── Category Labels ── */
.md-category-label {
    font-family: var(--rna-font-heading);
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--rna-grey-400);
    padding: .65rem .85rem .25rem;
}

.md-category-label:first-child {
    padding-top: .35rem;
}

/* ── Module List Items ── */
.md-module-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .85rem;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all .2s ease;
    position: relative;
}

.md-module-item:hover {
    background: rgba(5, 154, 152, .04);
    border-left-color: var(--rna-teal-light);
}

.md-module-item.active {
    background: rgba(5, 154, 152, .08);
    border-left-color: var(--rna-teal);
}

.md-module-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: .9rem;
    flex-shrink: 0;
}

.md-module-icon.cat-transcriptome {
    background: rgba(5, 154, 152, .1);
    color: var(--rna-teal);
}

.md-module-icon.cat-systems {
    background: rgba(2, 66, 110, .1);
    color: var(--rna-navy);
}

.md-module-icon.cat-clinical {
    background: rgba(22, 163, 74, .1);
    color: var(--rna-accent-green);
}

.md-module-icon.cat-multiomics {
    background: rgba(245, 158, 11, .1);
    color: var(--rna-accent-amber);
}

.md-module-info {
    flex: 1;
    min-width: 0;
}

.md-module-info h4 {
    font-family: var(--rna-font-heading);
    font-size: .78rem;
    font-weight: 600;
    color: var(--rna-grey-900);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.md-module-info p {
    font-size: .68rem;
    color: var(--rna-grey-500);
    margin: 0;
}

/* ── Locked Module Items (Single-Cell spokes) ── */
.md-module-item.locked {
    opacity: .45;
    pointer-events: none;
}

/* ── Master Badge (aggregate status) ── */
.md-module-badge {
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: .15rem .45rem;
    border-radius: 999px;
    white-space: nowrap;
    display: none;
    flex-shrink: 0;
}

.md-module-badge.badge-running {
    display: inline-block;
    background: rgba(245, 158, 11, .15);
    color: var(--rna-accent-amber);
    animation: rna-pulse 2s ease-in-out infinite;
}

.md-module-badge.badge-done {
    display: inline-block;
    background: rgba(22, 163, 74, .12);
    color: var(--rna-accent-green);
}

.md-module-badge.badge-failed {
    display: inline-block;
    background: rgba(231, 76, 60, .12);
    color: #e74c3c;
}

/* ── Detail Pane ── */
.md-detail {
    background: #fff;
    border: 1px solid var(--rna-grey-200);
    border-radius: var(--rna-radius-lg);
    box-shadow: var(--rna-shadow-sm);
    min-height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

#md-detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.md-detail-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    color: var(--rna-grey-400);
    text-align: center;
    padding: 2rem;
}

.md-detail-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: .4;
}

.md-detail-empty h3 {
    font-family: var(--rna-font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--rna-grey-500);
    margin: 0 0 .5rem;
}

.md-detail-empty p {
    font-size: .82rem;
    max-width: 320px;
    margin: 0;
}

/* ── Detail Header ── */
.md-detail-header {
    padding: 1rem 1.25rem;
    background: var(--rna-card-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.md-detail-header h3 {
    font-family: var(--rna-font-heading);
    font-size: .95rem;
    font-weight: 600;
    margin: 0;
}

.md-detail-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ── History List ── */
.md-history-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.md-history-toolbar h4 {
    font-family: var(--rna-font-heading);
    font-size: .88rem;
    font-weight: 600;
    color: var(--rna-navy);
    margin: 0;
}

.md-history-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.md-history-entry {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    background: var(--rna-grey-50);
    border: 1px solid var(--rna-grey-200);
    border-radius: var(--rna-radius-md);
    cursor: pointer;
    transition: all .2s ease;
}

.md-history-entry:hover {
    border-color: var(--rna-teal-light);
    box-shadow: var(--rna-shadow-sm);
}

.md-history-entry.entry-completed {
    border-left: 3px solid var(--rna-accent-green);
}

.md-history-entry.entry-running {
    border-left: 3px solid var(--rna-accent-amber);
}

.md-history-entry.entry-failed {
    border-left: 3px solid var(--rna-accent-red);
}

.md-history-entry-info {
    flex: 1;
    min-width: 0;
}

.md-history-entry-info .entry-label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--rna-grey-800);
}

.md-history-entry-info .entry-date {
    font-size: .72rem;
    color: var(--rna-grey-500);
}

.md-history-badge {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: .2rem .55rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.md-history-badge.hb-completed {
    background: rgba(22, 163, 74, .12);
    color: var(--rna-accent-green);
}

.md-history-badge.hb-running {
    background: rgba(245, 158, 11, .15);
    color: var(--rna-accent-amber);
    animation: rna-pulse 2s ease-in-out infinite;
}

.md-history-badge.hb-failed {
    background: rgba(231, 76, 60, .12);
    color: #e74c3c;
}

.md-history-badge.hb-pending {
    background: rgba(158, 158, 158, .12);
    color: var(--rna-grey-600);
}

/* ── New Run Form ── */
.md-form-section {
    margin-bottom: 1.25rem;
}

.md-form-section:last-child {
    margin-bottom: 0;
}

.md-form-footer {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rna-grey-200);
    margin-top: auto;
}

/* ── Drag & Drop Zone ── */
.md-dropzone {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: var(--rna-grey-50);
    border: 2px dashed var(--rna-grey-400);
    border-radius: var(--rna-radius-md);
    color: var(--rna-grey-600);
    font-weight: 600;
    font-size: .82rem;
    cursor: pointer;
    transition: all .25s ease;
    position: relative;
    text-align: center;
    padding: 1rem;
}

.md-dropzone:hover,
.md-dropzone.drag-over {
    border-color: var(--rna-teal);
    background: rgba(5, 154, 152, .04);
    color: var(--rna-teal);
}

.md-dropzone.has-file {
    border-style: solid;
    border-color: var(--rna-accent-green);
    background: rgba(22, 163, 74, .04);
}

.md-dropzone i {
    font-size: 1.8rem;
    opacity: .5;
}

.md-dropzone .dz-hint {
    font-size: .72rem;
    font-weight: 400;
    color: var(--rna-grey-500);
}

.md-dropzone .dz-filename {
    font-size: .78rem;
    font-weight: 600;
    color: var(--rna-accent-green);
    margin-top: .25rem;
}

.md-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* ── Upload Progress Bar ── */
.md-upload-progress {
    margin-top: .5rem;
    display: none;
}

.md-upload-progress.active {
    display: block;
}

.md-upload-bar {
    width: 100%;
    height: 6px;
    background: var(--rna-grey-200);
    border-radius: 3px;
    overflow: hidden;
}

.md-upload-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--rna-brand-gradient);
    border-radius: 3px;
    transition: width .25s ease;
}

.md-upload-label {
    font-size: .7rem;
    color: var(--rna-grey-500);
    margin-top: .25rem;
    text-align: right;
}

/* ── Data Input Tabs (Upload / Example / Manual) ── */
.md-data-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--rna-grey-200);
    margin-bottom: 1rem;
}

.md-data-tab {
    padding: .45rem .85rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--rna-grey-500);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all .2s ease;
}

.md-data-tab:hover {
    color: var(--rna-teal);
}

.md-data-tab.active {
    color: var(--rna-teal);
    border-bottom-color: var(--rna-teal);
}

.md-data-panel {
    display: none;
}

.md-data-panel.active {
    display: block;
}

/* ── Example Table ── */
.md-example-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .78rem;
    margin-top: .5rem;
}

.md-example-table thead th {
    background: var(--rna-navy);
    color: #fff;
    padding: .5rem .75rem;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.md-example-table thead th:first-child {
    border-radius: var(--rna-radius-sm) 0 0 0;
}

.md-example-table thead th:last-child {
    border-radius: 0 var(--rna-radius-sm) 0 0;
}

.md-example-table tbody td {
    padding: .45rem .75rem;
    border-bottom: 1px solid var(--rna-grey-100);
    color: var(--rna-grey-700);
}

.md-example-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 var(--rna-radius-sm);
}

.md-example-table tbody tr:last-child td:last-child {
    border-radius: 0 0 var(--rna-radius-sm) 0;
}

.md-example-note {
    font-size: .72rem;
    color: var(--rna-grey-500);
    margin-top: .5rem;
    font-style: italic;
}

/* ── Manual Table Builder ── */
.md-builder-controls {
    display: flex;
    gap: .5rem;
    margin-bottom: .5rem;
}

.md-builder-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .65rem;
    font-size: .72rem;
    font-weight: 600;
    color: var(--rna-navy);
    background: rgba(2, 66, 110, .06);
    border: 1px solid rgba(2, 66, 110, .18);
    border-radius: var(--rna-radius-sm);
    cursor: pointer;
    transition: all .2s ease;
}

.md-builder-btn:hover {
    background: var(--rna-navy);
    color: #fff;
}

.md-builder-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--rna-grey-200);
    border-radius: var(--rna-radius-sm);
}

.md-builder-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .78rem;
}

.md-builder-table th {
    background: var(--rna-grey-100);
    padding: .4rem .5rem;
    font-size: .72rem;
    font-weight: 600;
    color: var(--rna-grey-700);
    border-bottom: 1px solid var(--rna-grey-200);
    min-width: 100px;
}

.md-builder-table th input {
    width: 100%;
    font-size: .72rem;
    font-weight: 600;
    padding: .2rem .3rem;
    border: 1px solid var(--rna-grey-300);
    border-radius: 4px;
    background: #fff;
}

.md-builder-table td {
    padding: .25rem .35rem;
    border-bottom: 1px solid var(--rna-grey-100);
}

.md-builder-table td input {
    width: 100%;
    font-size: .75rem;
    padding: .25rem .35rem;
    border: 1px solid var(--rna-grey-300);
    border-radius: 4px;
    background: #fff;
    transition: border-color .2s ease;
}

.md-builder-table td input:focus {
    outline: none;
    border-color: var(--rna-teal);
    box-shadow: 0 0 0 2px rgba(5, 154, 152, .12);
}

.md-builder-table .row-delete {
    width: 24px;
    padding: .25rem;
    text-align: center;
}

.md-builder-table .row-delete button {
    background: none;
    border: none;
    color: var(--rna-grey-400);
    cursor: pointer;
    font-size: .75rem;
    padding: .15rem .3rem;
    border-radius: 4px;
    transition: all .15s ease;
}

.md-builder-table .row-delete button:hover {
    color: var(--rna-accent-red);
    background: rgba(239, 68, 68, .08);
}

/* ── Result View ── */
.md-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: .75rem;
}

.md-result-header h4 {
    font-family: var(--rna-font-heading);
    font-size: .95rem;
    font-weight: 600;
    color: var(--rna-navy);
    margin: 0;
}

.md-result-meta {
    font-size: .78rem;
    color: var(--rna-grey-500);
    margin-bottom: 1rem;
}

.md-result-section {
    margin-bottom: 1.25rem;
}

.md-result-section h5 {
    font-family: var(--rna-font-heading);
    font-size: .82rem;
    font-weight: 600;
    color: var(--rna-grey-800);
    margin: 0 0 .5rem;
}

.md-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--rna-grey-50);
    border: 1px solid var(--rna-grey-200);
    border-radius: var(--rna-radius-md);
    padding: .75rem 1.25rem;
    min-width: 7rem;
}

.md-stat-value {
    font-family: var(--rna-font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rna-teal);
}

.md-stat-label {
    font-size: .72rem;
    color: var(--rna-grey-500);
    margin-top: .15rem;
}

.btn-rna-download {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .9rem;
    font-size: .78rem;
    font-weight: 600;
    color: #fff;
    background: var(--rna-teal);
    border: none;
    border-radius: var(--rna-radius-md);
    cursor: pointer;
    transition: all .2s ease;
}

.btn-rna-download:hover {
    background: var(--rna-navy);
    box-shadow: var(--rna-shadow-sm);
}

.btn-rna-back {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .35rem .75rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--rna-grey-600);
    background: var(--rna-grey-100);
    border: 1px solid var(--rna-grey-300);
    border-radius: var(--rna-radius-sm);
    cursor: pointer;
    transition: all .2s ease;
}

.btn-rna-back:hover {
    color: var(--rna-navy);
    border-color: var(--rna-navy);
    background: rgba(2, 66, 110, .04);
}

/* ── Toast Notifications ── */
.rna-toast-container {
    position: fixed;
    top: 68px;
    right: 1.25rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    pointer-events: none;
}

.rna-toast {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .75rem 1.15rem;
    background: #fff;
    border: 1px solid var(--rna-grey-200);
    border-left: 4px solid var(--rna-accent-green);
    border-radius: var(--rna-radius-md);
    box-shadow: var(--rna-shadow-lg);
    font-size: .82rem;
    color: var(--rna-grey-800);
    pointer-events: auto;
    animation: rna-toast-in .35s ease;
    max-width: 380px;
}

.rna-toast.toast-error {
    border-left-color: var(--rna-accent-red);
}

.rna-toast i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.rna-toast .toast-msg {
    flex: 1;
    font-weight: 500;
}

.rna-toast .toast-close {
    background: none;
    border: none;
    color: var(--rna-grey-400);
    cursor: pointer;
    font-size: .85rem;
    padding: .15rem .3rem;
}

@keyframes rna-toast-in {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rna-toast-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

/* ╔══════════════════════════════════════════════════════════════════╗
   ║  Alt Splicing – Input Mode Toggle Cards                        ║
   ╚══════════════════════════════════════════════════════════════════╝ */

.splicing-mode-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.splicing-mode-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    background: var(--rna-grey-50);
    border: 2px solid var(--rna-grey-200);
    border-radius: var(--rna-radius-md);
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.splicing-mode-card:hover {
    border-color: var(--rna-teal-light);
    background: rgba(5, 154, 152, .04);
}

.splicing-mode-card.active {
    border-color: var(--rna-teal);
    background: rgba(5, 154, 152, .06);
    box-shadow: 0 0 0 3px rgba(5, 154, 152, .12);
}

.splicing-mode-card input[type="radio"] {
    display: none;
}

.splicing-mode-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--rna-radius-sm);
    background: var(--rna-grey-200);
    color: var(--rna-grey-600);
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}

.splicing-mode-card.active .splicing-mode-icon {
    background: var(--rna-teal);
    color: #fff;
}

.splicing-mode-content {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.splicing-mode-title {
    font-family: var(--rna-font-heading);
    font-weight: 600;
    font-size: .875rem;
    color: var(--rna-grey-800);
}

.splicing-mode-desc {
    font-size: .75rem;
    color: var(--rna-grey-500);
    line-height: 1.3;
}

.splicing-mode-desc code {
    background: var(--rna-grey-200);
    padding: .1rem .3rem;
    border-radius: 3px;
    font-size: .7rem;
}

.splicing-bam-name {
    font-family: 'Roboto Mono', monospace;
    font-size: .8rem;
    color: var(--rna-grey-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}