/* ============================================
   DR-MAS System - Light Medical Theme
   ============================================ */

:root {
    /* 仅放大文字；布局/图片保持原尺寸。调大界面字：改此值，例如 1.25、1.4、1.5 */
    --fs-scale: 1.4;
    --bg-page: #f0f2f5;
    --bg-card: #ffffff;
    --bg-input: #f7f8fa;
    --bg-hover: #f0f4ff;

    --text-primary: #1a1a2e;
    --text-secondary: #555770;
    --text-tertiary: #8e91a4;
    --text-placeholder: #b0b3c6;

    --accent: #1a5276;
    --accent-light: #2980b9;
    --accent-bg: #eaf2f8;

    --success: #27ae60;
    --success-bg: #e8f8f0;
    --warning: #e67e22;
    --warning-bg: #fef5e7;
    --error: #e74c3c;
    --error-bg: #fdedec;
    --running: #2980b9;
    --running-bg: #eaf2f8;

    --border: #e0e3eb;
    --border-light: #eef0f4;
    --shadow: 0 1px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 2px 12px rgba(0,0,0,0.08);

    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    font-size: calc(13px * var(--fs-scale));
    line-height: 1.6;
}

/* ============================================
   Header
   ============================================ */

.top-header {
    background: linear-gradient(135deg, #1a3a5c 0%, #1a5276 50%, #21618c 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 52px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: calc(17px * var(--fs-scale));
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-text {
    white-space: nowrap;
}

.hospital-info,
.hospital-info-first {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.hospital-info {
    border-left: 1px solid rgba(255,255,255,0.25);
    padding-left: 16px;
}

.hospital-info-first {
    padding-right: 16px;
    border-right: 1px solid rgba(255,255,255,0.25);
}

.hospital-name {
    font-size: calc(13px * var(--fs-scale));
    font-weight: 600;
}

.hospital-name-en,
.hospital-name-sub {
    font-size: calc(13px * var(--fs-scale));
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: calc(12px * var(--fs-scale));
    opacity: 0.9;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5dade2;
}

.status-dot.idle { background: #5dade2; }
.status-dot.running { background: #f1c40f; animation: blink 1.2s infinite; }
.status-dot.completed { background: #2ecc71; }
.status-dot.warnings { background: #e67e22; }
.status-dot.failed { background: #e74c3c; }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(13px * var(--fs-scale));
    font-weight: 600;
}

.role-selector {
    position: relative;
}

.role-select {
    appearance: none;
    -webkit-appearance: none;
    height: 30px;
    border-radius: 6px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: calc(13px * var(--fs-scale));
    font-weight: 600;
    text-align: center;
    text-align-last: center;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    padding: 0 18px 0 8px;
    outline: none;
    transition: all 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 5px center;
}

.role-select:hover {
    background-color: rgba(255,255,255,0.35);
}

.role-select option {
    background: #1a5276;
    color: #fff;
    font-size: calc(15px * var(--fs-scale));
}

.user-name {
    font-size: calc(13px * var(--fs-scale));
}

/* ============================================
   Main Layout (3-column: left stacked | control | report)
   ============================================ */

.main-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.7fr 1.2fr;
    gap: 12px;
    padding: 12px;
    height: calc(100vh - 52px);
    min-height: 0;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    overflow-y: auto;
}

@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 1fr 1fr;
        height: auto;
    }
    .left-column {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .left-column {
        grid-column: auto;
    }
}

/* ============================================
   Panel (Card)
   ============================================ */

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.panel-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    flex-shrink: 0;
}

.panel-title {
    font-size: calc(14px * var(--fs-scale));
    font-weight: 700;
    color: var(--text-primary);
}

.panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    min-height: 0;
}

/* ============================================
   EMR Panel
   ============================================ */

.emr-textarea {
    width: 100%;
    min-height: 160px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    font-size: calc(12px * var(--fs-scale));
    line-height: 1.7;
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
    color: var(--text-primary);
    background: var(--bg-input);
    transition: border-color 0.2s;
}

.emr-textarea:focus {
    outline: none;
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(41,128,185,0.1);
}

.emr-textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.panel-emr .panel-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: hidden;
}

.patient-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.patient-name-label {
    font-size: calc(13px * var(--fs-scale));
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.patient-name-input {
    flex: 1;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: calc(13px * var(--fs-scale));
    color: var(--text-primary);
    background: var(--bg-input);
    transition: border-color 0.2s;
}

.patient-name-input:focus {
    outline: none;
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(41,128,185,0.1);
}

.patient-name-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.panel-emr .emr-textarea {
    min-height: 160px;
    max-height: 300px;
    resize: vertical;
}

.char-count {
    text-align: right;
    font-size: calc(11px * var(--fs-scale));
    color: var(--text-tertiary);
    flex-shrink: 0;
}

/* ============================================
   Image Tabs
   ============================================ */

.image-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 12px;
}

.image-tab {
    flex: 1;
    padding: 8px 4px;
    text-align: center;
    font-size: calc(13px * var(--fs-scale));
    font-weight: 600;
    color: var(--text-tertiary);
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.image-tab:hover {
    color: var(--accent-light);
}

.image-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Eye Row */

.eye-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.eye-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eye-col-label {
    font-size: calc(12px * var(--fs-scale));
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    padding: 4px;
    background: var(--accent-bg);
    border-radius: var(--radius-sm);
}

/* Image Upload */

.image-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 24px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-input);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-upload-area:hover {
    border-color: var(--accent-light);
    background: var(--bg-hover);
}

.image-upload-area.has-file {
    border-color: var(--success);
    background: var(--success-bg);
}

.image-upload-area.dragover {
    border-color: var(--accent);
    background: var(--accent-bg);
}

.upload-placeholder {
    font-size: calc(11px * var(--fs-scale));
    color: var(--text-tertiary);
}

.hidden-input { display: none; }

.image-module-status {
    font-size: calc(10px * var(--fs-scale));
    text-align: center;
    padding: 2px 0;
    color: var(--text-tertiary);
}

/* Image list */

.btn-add-more {
    width: 100%;
    padding: 6px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: calc(11px * var(--fs-scale));
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-more:hover:not(:disabled) {
    background: var(--accent-bg);
    color: var(--accent);
    border-color: var(--accent-light);
}

.btn-add-more:disabled { opacity: 0.5; cursor: not-allowed; }

.image-list-container {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px;
}

.image-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: calc(11px * var(--fs-scale));
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 4px;
}

.btn-clear-all {
    padding: 2px 8px;
    background: var(--error-bg);
    border: 1px solid var(--error);
    border-radius: var(--radius-sm);
    color: var(--error);
    font-size: calc(10px * var(--fs-scale));
    font-weight: 600;
    cursor: pointer;
}

.btn-clear-all:hover { background: var(--error); color: #fff; }

.image-list {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.image-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90px;
}

.image-card-preview {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-input);
}

.image-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-card-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: calc(12px * var(--fs-scale));
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
}

.image-card-preview:hover .image-card-remove {
    opacity: 1;
}

.image-card-remove:hover {
    background: var(--error);
}

.image-card-name {
    margin-top: 4px;
    font-size: calc(10px * var(--fs-scale));
    color: var(--text-tertiary);
    text-align: center;
    width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Legacy compat */
.image-list-item { display: none; }
.image-item-header { display: none; }

.image-file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
}

.image-file-remove {
    color: var(--error);
    cursor: pointer;
    padding: 1px 6px;
    border-radius: 4px;
    border: none;
    background: none;
    font-size: calc(11px * var(--fs-scale));
}

.image-file-remove:hover {
    background: var(--error-bg);
}

/* Text description */

.text-description-section {
    margin-top: 2px;
}

.text-description-input {
    width: 100%;
    min-height: 40px;
    padding: 6px 8px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: calc(11px * var(--fs-scale));
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
    transition: border-color 0.2s;
}

.text-description-input:focus {
    outline: none;
    border-color: var(--accent-light);
    box-shadow: 0 0 0 2px rgba(41,128,185,0.08);
}

.text-description-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   Control Panel
   ============================================ */

.panel-control .panel-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.control-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: calc(12px * var(--fs-scale));
    font-weight: 700;
    color: var(--text-secondary);
}

.live-badge {
    font-size: calc(10px * var(--fs-scale));
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
    background: var(--success-bg);
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-badge.running {
    background: var(--warning-bg);
    color: var(--warning);
    animation: blink 1.2s infinite;
}

.live-badge.completed {
    background: var(--success-bg);
    color: var(--success);
}

.live-badge.warnings {
    background: var(--warning-bg);
    color: var(--warning);
}

.live-badge.failed {
    background: var(--error-bg);
    color: var(--error);
}

/* Buttons */

.btn {
    padding: 9px 16px;
    border: none;
    border-radius: var(--radius);
    font-size: calc(13px * var(--fs-scale));
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-block { width: 100%; }

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-light);
    box-shadow: 0 2px 8px rgba(41,128,185,0.25);
}

.btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn:disabled {
    pointer-events: auto !important;
}

.btn-outline {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-outline:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: var(--accent-light);
    color: var(--accent);
}

.btn-outline:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

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

.btn-success:hover:not(:disabled) {
    background: #219a52;
    box-shadow: 0 2px 8px rgba(39,174,96,0.25);
}

.btn-success:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-hover);
}

/* Analyzer Status List (compact) */

.analyzer-status-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    background: var(--bg-input);
}

.analyzer-status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
    border-left: 3px solid var(--border);
}

.analyzer-status-item:hover {
    background: var(--bg-hover);
}

.analyzer-status-item.status-running { border-left-color: var(--running); }
.analyzer-status-item.status-completed { border-left-color: var(--success); }
.analyzer-status-item.status-warnings { border-left-color: var(--warning); }
.analyzer-status-item.status-failed { border-left-color: var(--error); }

.analyzer-status-name {
    font-size: calc(12px * var(--fs-scale));
    font-weight: 600;
    color: var(--text-primary);
    min-width: 48px;
}

.analyzer-status-badge {
    font-size: calc(10px * var(--fs-scale));
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 8px;
    flex: 1;
}

.analyzer-status-badge.not-provided { background: var(--bg-input); color: var(--text-tertiary); }
.analyzer-status-badge.running { background: var(--running-bg); color: var(--running); }
.analyzer-status-badge.completed { background: var(--success-bg); color: var(--success); }
.analyzer-status-badge.warnings { background: var(--warning-bg); color: var(--warning); }
.analyzer-status-badge.failed { background: var(--error-bg); color: var(--error); }

.btn-view-sm {
    padding: 2px 10px;
    font-size: calc(10px * var(--fs-scale));
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.btn-view-sm:hover:not(:disabled) {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-view-sm:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ============================================
   Log Section
   ============================================ */

.log-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 120px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
}

.log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-input);
}

.log-title {
    font-size: calc(12px * var(--fs-scale));
    font-weight: 700;
    color: var(--text-secondary);
}

.log-controls {
    display: flex;
    gap: 4px;
}

.btn-log-control {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-tertiary);
    font-size: calc(11px * var(--fs-scale));
    cursor: pointer;
    transition: all 0.15s;
}

.btn-log-control:hover {
    background: var(--accent-bg);
    color: var(--accent);
    border-color: var(--accent-light);
}

.log-content {
    flex: 1;
    overflow-y: auto;
    padding: 6px 8px;
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: calc(10px * var(--fs-scale));
    line-height: 1.6;
    background: #fafbfc;
    color: var(--text-secondary);
}

.log-content::-webkit-scrollbar { width: 4px; }
.log-content::-webkit-scrollbar-track { background: transparent; }
.log-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.log-empty {
    color: var(--text-tertiary);
    font-style: italic;
    text-align: center;
    padding: 20px;
    font-size: calc(11px * var(--fs-scale));
}

.log-entry {
    padding: 2px 0 2px 8px;
    border-left: 2px solid transparent;
    margin-bottom: 1px;
    word-wrap: break-word;
}

.log-entry.info { border-left-color: var(--accent-light); color: var(--accent); }
.log-entry.warning { border-left-color: var(--warning); color: #b7791f; }
.log-entry.error { border-left-color: var(--error); color: var(--error); }
.log-entry.debug { border-left-color: var(--border); color: var(--text-tertiary); }

.log-timestamp { color: var(--text-tertiary); margin-right: 6px; font-size: calc(9px * var(--fs-scale)); }
.log-module { color: var(--accent); font-weight: 600; margin-right: 4px; }
.log-message { color: inherit; }

/* ============================================
   Report Panel
   ============================================ */

.panel-report {
    display: flex;
    flex-direction: column;
}

.panel-body-report {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-height: 0;
}

.result-content {
    font-size: calc(13px * var(--fs-scale));
    line-height: 1.7;
    color: var(--text-primary);
}

.result-content.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-style: italic;
    min-height: 100px;
    font-size: calc(12px * var(--fs-scale));
}

.report-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg-input);
    flex-shrink: 0;
}

.report-actions .btn {
    flex: 1;
}

/* Input Snapshot */

.input-snapshot {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    margin-bottom: 12px;
}

.input-snapshot-title {
    font-size: calc(11px * var(--fs-scale));
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}

.input-snapshot-content {
    font-size: calc(11px * var(--fs-scale));
    color: var(--text-secondary);
    line-height: 1.5;
}

.snapshot-item {
    margin-bottom: 2px;
    font-family: 'Menlo', 'Monaco', monospace;
}

.snapshot-item strong {
    color: var(--accent);
    margin-right: 4px;
}

/* ============================================
   Report Rendering
   ============================================ */

.report-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

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

.report-section-title {
    font-size: calc(14px * var(--fs-scale));
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--accent-bg);
}

.report-section-subtitle {
    font-size: calc(13px * var(--fs-scale));
    font-weight: 600;
    color: var(--text-primary);
    margin: 12px 0 6px;
}

.report-text {
    font-size: calc(13px * var(--fs-scale));
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.report-text-content {
    font-size: calc(13px * var(--fs-scale));
    line-height: 1.8;
    color: var(--text-primary);
}

.report-text-content p {
    margin: 6px 0;
}

.report-list-item {
    margin: 4px 0;
    padding-left: 16px;
    color: var(--text-secondary);
}

.report-list {
    list-style: none;
    padding-left: 0;
    margin: 8px 0;
}

.report-list li {
    padding: 4px 0 4px 16px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.report-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.report-card {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 10px;
}

.report-card-title {
    font-size: calc(13px * var(--fs-scale));
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.report-card-content {
    font-size: calc(12px * var(--fs-scale));
    color: var(--text-secondary);
    line-height: 1.6;
}

.report-card-content p {
    margin: 4px 0;
}

/* Error / Warning Messages */

.error-message {
    background: var(--error-bg);
    border: 1px solid var(--error);
    border-radius: var(--radius);
    padding: 12px;
    color: var(--error);
    font-size: calc(12px * var(--fs-scale));
    margin-bottom: 12px;
}

.warning-message {
    background: var(--warning-bg);
    border-left: 4px solid var(--warning);
    border-radius: var(--radius);
    padding: 12px;
    color: #7d5a29;
    font-size: calc(12px * var(--fs-scale));
    margin-bottom: 12px;
}

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* ============================================
   Compatibility: old class names used in JS
   ============================================ */

.analyzer-card { display: none; }
.analyzer-status { display: none; }
.analyzer-info { display: none; }
.analyzer-actions { display: none; }
