html,
body {
    height: 100%;
}

.container {
    min-height: 95%;
}

.loader-container {
    padding: 50px;
}

.subInfoTitle {
    font-weight: bold;
    text-transform: capitalize;
}

.pieText {
    font-size: 1.5em;
    font-weight: bold;
}

.markerText {
    font-weight: bold;
}

.marker-source,
.marker-text-source,
.marker-target,
.marker-text-target,
.blockView-polylinks,
.blockView-markers {
    cursor: pointer;
}

.link {
    fill: none;
    stroke-opacity: .5;
    cursor: pointer;
}

.link-polygon {
    stroke: none;
    fill-opacity: .5;
    cursor: pointer;
}

.link.hiddenLink {
    stroke-opacity: .01;
    pointer-events: none;
}

.link-polygon.hiddenLink {
    fill-opacity: .01;
    pointer-events: none;
}

.link.activeLink.link.hiddenLink {
    stroke-opacity: .9;
    pointer-events: all;
}

.link-polygon.activeLink.link-polygon.hiddenLink {
    fill-opacity: .9;
    pointer-events: all;
}

.hover-link-polygon:hover {
    fill-opacity: .9;
}

.markersText {
    fill: white;
    font-weight: bold;
    font-size: 1.0em;
}

.darkPlot {
    background: #000000;
}

.filterContainer .select-wrapper input.select-dropdown {
    width: 95%;
}

.filterheader {
    margin-bottom: 1em;
    margin-top: 1em;
}

.darkThemeLabel {
    font-size: 1.5em;
}

.genomeViewSVG,
.dotViewSVG,
.chromosomeViewRootSVG,
.blockViewRoot {
    margin: 20px auto 40px auto;
    display: block;
    border-radius: 1em;
}

.chromosomeViewRootSVG,
.dotViewSVG,
.blockViewRoot {
    border: 2px solid silver;
}

.dot-plot-markers {
    fill: grey;
    font-weight: bold;
    font-size: 1.0em;
}

.alignment-link-lines {
    opacity: 0.5;
    cursor: pointer;
}

.footer-link {
    color: #38e346
}

.globalLegendBox {
    display: inline-block;
    min-width: 270px;
}

.brand-logo {
    margin-left: 10px;
}

#synVisio nav li>a {
    font-weight: bold;
}

#doc-root p,
#doc-root ul {
    font-size: 1.2em;
}

#doc-root ul {
    margin-left: 15px;
}

#doc-root li {
    list-style-type: disc;
}

.preloader-wrapper.active {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

.alignment-link-lines {
    stroke: blue;
}

.darkPlot .alignment-link-lines {
    stroke: #00deff;
}

#tool-root {
    width: 100%;
}

polygon.blockView-polylinks {
    opacity: 0.75;
}

polygon.blockView-polylinks:hover {
    opacity: 1;
}

.axis--x text {
    fill: grey;
}

.axis--x path {
    stroke: grey;
}

.axis--x line {
    stroke: grey;
}


/* /////////////////////////////////// */


/* styling for d3 drag */

.ticks {
    font: 10px sans-serif;
}

.track,
.track-inset,
.track-overlay {
    stroke-linecap: round;
}

.track {
    stroke: #000;
    stroke-opacity: 0.3;
    stroke-width: 10px;
}

.track-inset {
    stroke: #ddd;
    stroke-width: 8px;
}

.track-overlay {
    pointer-events: stroke;
    stroke-width: 50px;
    stroke: transparent;
    cursor: pointer;
}

.handle {
    fill: #fff;
    stroke: #000;
    stroke-opacity: 0.5;
    stroke-width: 1.25px;
}


/* //////////////////////////////////////////////// */

/* ═══════════════════════════════════════════════════
   MULTI-SYNTENY VIEWER — PGDD2 EMERALD THEME
   ═══════════════════════════════════════════════════ */

.multi-synteny-root {
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1f2937;
}

/* ── Toolbar ── */
.ms-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
    border-bottom: 2px solid #a7f3d0;
    border-radius: 0.75rem 0.75rem 0 0;
    flex-wrap: wrap;
}

.ms-toolbar-title {
    font-size: 22px;
    font-weight: 700;
    color: #065f46;
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ms-toolbar-title i { color: #10b981; }

.ms-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 2rem;
    letter-spacing: 0.3px;
}

.ms-clear-btn {
    color: #dc2626 !important;
    font-size: 12px !important;
    text-transform: none !important;
    padding: 0 12px !important;
    height: 32px !important;
    line-height: 32px !important;
    border-radius: 6px !important;
}

.ms-clear-btn:hover {
    background: #fee2e2 !important;
}

.ms-clear-btn i {
    margin-right: 4px;
    vertical-align: middle;
}

/* ── Search bar ── */
.ms-search-wrapper {
    position: relative;
    margin: 0 0 16px;
}

.ms-search-row {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #d1fae5;
    border-radius: 0.75rem;
    padding: 0 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ms-search-row:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.ms-search-icon {
    color: #10b981;
    margin-right: 10px;
    font-size: 22px;
}

.ms-search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    padding: 13px 8px !important;
    font-size: 15px !important;
    background: transparent !important;
    box-shadow: none !important;
    height: auto !important;
    margin: 0 !important;
    color: #1f2937 !important;
}

.ms-search-input::placeholder { color: #9ca3af; }

.ms-search-dropdown {
    display: none;
    position: absolute;
    z-index: 1000;
    left: 0; right: 0;
    background: #fff;
    border: 1px solid #d1fae5;
    border-top: none;
    border-radius: 0 0 0.75rem 0.75rem;
    max-height: 480px;
    overflow-y: auto;
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

.ms-search-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    cursor: pointer;
    border-bottom: 1px solid #f0fdf4;
    transition: background 0.10s;
}

.ms-search-option:hover {
    background: #ecfdf5;
}

.ms-search-option-added {
    opacity: 0.4;
    cursor: default;
    background: #f9fafb;
}

.ms-search-option-added:hover { background: #f9fafb; }

.ms-search-option-nodata {
    opacity: 0.6;
    background: #fefce8;
}

.ms-search-option-nodata:hover {
    background: #fef9c3;
    cursor: pointer;
}

.ms-search-opt-badge-warn {
    background: #f59e0b !important;
    font-size: 10px;
    cursor: help;
}

.ms-search-opt-name {
    font-weight: 600;
    font-size: 13px;
    color: #1f2937;
    font-style: italic;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ms-search-opt-meta {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
}

.ms-search-opt-badge {
    font-size: 10px;
    color: #fff;
    background: #10b981;
    padding: 2px 10px;
    border-radius: 2rem;
    white-space: nowrap;
}

.ms-search-opt-add {
    color: #10b981;
    display: flex;
    align-items: center;
}

.ms-search-empty {
    padding: 16px;
    color: #9ca3af;
    text-align: center;
    font-size: 13px;
}

/* ── Species stack panel ── */
.ms-species-panel {
    background: #fff;
    border: 1px solid #d1fae5;
    border-radius: 0.75rem;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.ms-species-panel-header {
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 18px 8px;
    background: #f0fdf4;
    border-bottom: 1px solid #d1fae5;
}

.ms-species-list {
    padding: 6px 10px;
}

.ms-species-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin: 5px 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    transition: all 0.2s ease;
    cursor: default;
    user-select: none;
}

.ms-species-card:hover {
    background: #f0fdf4;
    border-color: #a7f3d0;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

.ms-species-card.ms-dragging {
    opacity: 0.35;
    border-style: dashed;
    border-color: #10b981;
}

.ms-species-card.ms-drag-over {
    border-color: #10b981;
    border-width: 2px;
    background: #ecfdf5;
}

.ms-drag-handle {
    cursor: grab;
    color: #d1d5db;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.ms-drag-handle:hover { color: #10b981; }
.ms-drag-handle:active { cursor: grabbing; }

.ms-species-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.ms-species-info {
    flex: 1;
    min-width: 0;
}

.ms-species-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ms-species-meta {
    font-size: 11px;
    color: #6b7280;
}

/* ── Per-species stats chips ── */
.ms-stats-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.ms-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 2rem;
    white-space: nowrap;
}

.ms-stat-chip-green {
    background: #d1fae5;
    color: #065f46;
}

.ms-stat-chip-blue {
    background: #dbeafe;
    color: #1e40af;
}

.ms-stat-chip-amber {
    background: #fef3c7;
    color: #92400e;
}

.ms-stat-chip-gray {
    background: #f3f4f6;
    color: #4b5563;
}

.ms-pair-status {
    display: inline-flex;
    align-items: center;
    margin: 0 2px;
}

.ms-pair-ok { color: #10b981; }
.ms-pair-missing { color: #f59e0b; }

.ms-move-btn {
    padding: 0 6px !important;
    min-width: 0 !important;
    height: 28px !important;
    line-height: 28px !important;
    color: #9ca3af !important;
    border-radius: 4px !important;
}

.ms-move-btn:hover {
    color: #059669 !important;
    background: #ecfdf5 !important;
}

.ms-remove-btn {
    padding: 0 6px !important;
    min-width: 0 !important;
    height: 28px !important;
    line-height: 28px !important;
    color: #d1d5db !important;
    border-radius: 4px !important;
}

.ms-remove-btn:hover {
    color: #dc2626 !important;
    background: #fee2e2 !important;
}

/* ── Visualization container ── */
.ms-viz-container {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border: 1px solid #d1fae5;
    border-radius: 0.75rem;
    min-height: 120px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.multi-synteny-svg {
    display: block;
    margin: 0 auto;
}

.multi-synteny-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    color: #6b7280;
    text-align: center;
}

.ms-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    color: #6b7280;
    text-align: center;
    font-size: 15px;
    gap: 10px;
}

.ms-hint-empty { padding: 64px 20px; }
.ms-hint i { color: #a7f3d0; }

/* ── Loading overlay ── */
.ms-loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.88);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.ms-loading-overlay p {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

/* ── SVG species rows ── */
.species-row-bg { transition: fill 0.15s; }
.species-row:hover .species-row-bg { fill: rgba(16, 185, 129, 0.03); }
.species-label { user-select: none; }
.multi-chr-marker { transition: stroke-width 0.12s, filter 0.12s; }
.multi-chr-label { user-select: none; }
.multi-link { transition: stroke-opacity 0.12s, fill-opacity 0.12s; }

/* ── Chromosome reorder buttons (in SVG via foreignObject) ── */
.chr-reorder-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 4px;
    cursor: pointer;
    color: #059669;
    font-size: 14px;
    padding: 0;
    transition: all 0.15s;
}

.chr-reorder-btn:hover {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

/* ── Search section header ── */
.ms-search-section-header {
    padding: 8px 18px;
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    background: #f0fdf4;
    border-bottom: 1px solid #d1fae5;
    letter-spacing: 0.3px;
}

/* ── Content row: viz + detail panel side by side ── */
.ms-content-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
}

.ms-content-row .ms-viz-container {
    flex: 1;
    min-width: 0;
}

/* ── Right-side detail panel ── */
.ms-detail-panel {
    width: 0;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border-left: 1px solid #d1fae5;
    border-radius: 0 0.75rem 0.75rem 0;
    box-shadow: -4px 0 16px rgba(0,0,0,0.04);
    transition: width 0.3s ease, min-width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    flex-shrink: 0;
    max-height: 80vh;
    overflow-y: auto;
}

.ms-detail-panel.ms-detail-panel-open {
    width: 340px;
    min-width: 340px;
    opacity: 1;
}

.ms-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0fdf4, #d1fae5);
    border-bottom: 1px solid #a7f3d0;
    position: sticky;
    top: 0;
    z-index: 2;
}

.ms-detail-title {
    font-size: 14px;
    font-weight: 700;
    color: #065f46;
    display: flex;
    align-items: center;
}

.ms-detail-close {
    background: none;
    border: 1px solid #a7f3d0;
    border-radius: 4px;
    cursor: pointer;
    color: #6b7280;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    transition: all 0.15s;
}

.ms-detail-close:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

.ms-detail-body {
    padding: 0;
}

.ms-detail-placeholder {
    padding: 40px 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

.ms-detail-placeholder p {
    margin-top: 8px;
}

.ms-detail-section {
    padding: 14px 16px;
    border-bottom: 1px solid #f0fdf4;
}

.ms-detail-section:last-child {
    border-bottom: none;
}

.ms-detail-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.ms-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.ms-detail-table tr {
    border-bottom: 1px solid #f3f4f6;
}

.ms-detail-table tr:last-child {
    border-bottom: none;
}

.ms-detail-label {
    color: #6b7280;
    font-weight: 600;
    padding: 5px 8px 5px 0;
    white-space: nowrap;
    width: 90px;
}

.ms-detail-value {
    color: #1f2937;
    font-weight: 500;
    padding: 5px 0;
    word-break: break-all;
}

/* ── Gene pair list ── */
.ms-detail-gene-list {
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fafafa;
}

.ms-detail-gene-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    font-size: 11px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.1s;
}

.ms-detail-gene-row:last-child {
    border-bottom: none;
}

.ms-detail-gene-row:hover {
    background: #ecfdf5;
}

.ms-detail-gene-idx {
    width: 22px;
    text-align: center;
    font-weight: 700;
    color: #9ca3af;
    font-size: 10px;
    flex-shrink: 0;
}

.ms-detail-gene-src {
    flex: 1;
    color: #059669;
    font-weight: 600;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 10.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ms-detail-gene-arrow {
    color: #d1d5db;
    flex-shrink: 0;
    font-size: 10px;
}

.ms-detail-gene-tgt {
    flex: 1;
    color: #3b82f6;
    font-weight: 600;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 10.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ms-detail-gene-eval {
    color: #9ca3af;
    font-size: 9px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .ms-detail-panel.ms-detail-panel-open {
        width: 260px;
        min-width: 260px;
    }
    .ms-toolbar { padding: 12px 14px; }
    .ms-toolbar-title { font-size: 17px; }
    .ms-species-card { padding: 8px 10px; gap: 6px; }
    .ms-species-name { font-size: 12px; }
    .ms-species-meta { font-size: 10px; }
    .ms-stats-chips { display: none; }
    .ms-move-btn, .ms-remove-btn { display: none !important; }
}

@media (max-width: 480px) {
    .ms-species-panel-header { font-size: 10px; padding: 8px 12px 4px; }
    .ms-drag-handle { display: none; }
}
/* ── Dark mode: only the plotting/visualization area ── */
body.ms-dark-mode .ms-viz-container {
    background: #000000 !important;
    border-color: #1a1a1a;
}
body.ms-dark-mode .multi-synteny-svg {
    background: #000000 !important;
}

/* ── Chromosome selector ── */
.ms-chr-toggle-btn {
    color: #6b7280;
    font-size: 11px;
    padding: 0 8px;
    height: 28px;
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
    white-space: nowrap;
}
.ms-chr-toggle-btn:hover { color: #10b981; background: #ecfdf5; }
.ms-chr-hidden-count {
    font-size: 10px;
    color: #f59e0b;
    background: #fef3c7;
    padding: 1px 6px;
    border-radius: 3px;
}
.ms-chr-selector-panel {
    background: #f0fdf4;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 4px 0 8px 0;
    max-width: 100%;
}
.ms-chr-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #374151;
    font-weight: 600;
}
.ms-chr-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.ms-chr-chip {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid;
    cursor: pointer;
    transition: opacity 0.1s, background 0.1s;
}
.ms-chr-chip-visible {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
}
.ms-chr-chip-visible:hover { background: #a7f3d0; }
.ms-chr-chip-hidden {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #d1d5db;
    text-decoration: line-through;
    opacity: 0.7;
}
.ms-chr-chip-hidden:hover { background: #e5e7eb; opacity: 1; }

/* ── Toolbar buttons ── */
.ms-dark-btn {
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 6px;
}
.ms-dark-btn:hover { background: #f3f4f6 !important; color: #1f2937 !important; }
.ms-dark-active { color: #7c3aed !important; }

.ms-inversion-btn {
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 6px;
}
.ms-inversion-btn:hover { background: #fee2e2 !important; color: #b91c1c !important; }
.ms-inversion-active {
    color: #ef4444 !important;
    background: #fee2e2 !important;
    font-weight: 600;
}

/* ── Toolbar inline controls (merge + score) ── */
.ms-ctrl-label {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Merge slider */
.ms-merge-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding: 0 8px;
    border-left: 1px solid #e5e7eb;
}
.ms-merge-val {
    font-size: 11px;
    color: #10b981;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}
.ms-merge-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 90px;
    height: 4px;
    background: linear-gradient(to right, #10b981 0%, #10b981 var(--val, 50%), #d1d5db var(--val, 50%), #d1d5db 100%);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    margin: 0;
}
.ms-merge-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    transition: background 0.15s;
}
.ms-merge-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
    border: none;
}
.ms-merge-slider:hover::-webkit-slider-thumb { background: #059669; }

/* Score filter */
.ms-score-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid #e5e7eb;
}
.ms-score-input {
    width: 78px;
    padding: 3px 7px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    color: #374151;
    background: #fff;
    height: 28px;
    box-shadow: none !important;
    margin: 0 !important;
}
.ms-score-input:focus { border-color: #10b981; outline: none; }

/* ── Upload dialog ── */
.ms-upload-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ms-upload-dialog {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    width: 520px;
    max-width: 95vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.ms-upload-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}
.ms-upload-body label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 4px;
    margin-top: 12px;
}
.ms-upload-body input[type="text"],
.ms-upload-body input[type="file"] {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 13px;
    box-sizing: border-box;
    margin-bottom: 4px;
}
.ms-upload-status {
    margin-top: 10px;
    font-size: 12px;
    color: #059669;
    min-height: 18px;
}
.ms-upload-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
/* upload dialog dark mode removed — dark mode only affects plotting area */
