/* === 全局 === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
       background: #f5f5f5; color: #333; }
.container { max-width: 800px; margin: 0 auto; padding: 20px; }

/* === 入口页 === */
.entry-page { text-align: center; margin-top: 15vh; }
.entry-page h1 { font-size: 28px; margin-bottom: 8px; }
.subtitle { color: #666; margin-bottom: 30px; }
.entry-form { display: flex; gap: 10px; justify-content: center; }
.entry-form input { padding: 12px 16px; font-size: 16px; border: 2px solid #ddd;
                     border-radius: 8px; width: 240px; text-align: center;
                     letter-spacing: 2px; text-transform: uppercase; }
.entry-form button { padding: 12px 24px; font-size: 16px; background: #4a90d9;
                      color: white; border: none; border-radius: 8px; cursor: pointer; }
.entry-form button:hover { background: #3a7bc8; }
.error-text { color: #e74c3c; margin-top: 10px; }
.success-text { color: #27ae60; margin-top: 10px; }

/* === 对话页 === */
.status-bar { display: flex; justify-content: space-between; padding: 10px 16px;
              background: white; border-radius: 8px; margin-bottom: 10px;
              font-size: 14px; color: #666; }

.canvas-bar { display: flex; justify-content: space-around; padding: 12px;
              background: white; border-radius: 8px; margin-bottom: 10px; }
.dim { text-align: center; }
.dim-label { display: block; font-size: 12px; color: #999; margin-bottom: 4px; }
.dim-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; }
.dim-dot.red { background: #e74c3c; }
.dim-dot.yellow { background: #f39c12; }
.dim-dot.green { background: #27ae60; }

.progress-container { position: relative; height: 24px; background: #e0e0e0;
                       border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, #4a90d9, #27ae60);
                 border-radius: 12px; transition: width 0.5s ease; }
.progress-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
                  font-size: 12px; font-weight: bold; color: #333; }

.chat-area { height: 50vh; overflow-y: auto; padding: 16px; background: white;
              border-radius: 8px; margin-bottom: 10px; }
.msg { margin-bottom: 16px; max-width: 85%; }
.msg.expert { margin-left: auto; }
.msg .msg-label { font-size: 12px; color: #999; margin-bottom: 4px; }
.msg .msg-bubble { padding: 12px 16px; border-radius: 12px; line-height: 1.6; font-size: 15px; }
.msg.interviewer .msg-bubble { background: #f0f4f8; }
.msg.expert .msg-bubble { background: #4a90d9; color: white; }

.input-area { display: flex; gap: 10px; }
.input-area textarea { flex: 1; padding: 12px; font-size: 15px; border: 2px solid #ddd;
                        border-radius: 8px; resize: none; font-family: inherit; }
.input-area button { padding: 12px 24px; font-size: 16px; background: #4a90d9;
                      color: white; border: none; border-radius: 8px; cursor: pointer;
                      align-self: flex-end; }
.input-area button:hover { background: #3a7bc8; }
.input-area button:disabled { background: #ccc; cursor: not-allowed; }

.complete-notice { text-align: center; padding: 20px; background: #d4edda;
                    border-radius: 8px; margin-top: 10px; }
.complete-notice button { margin-top: 10px; padding: 10px 20px; background: #27ae60;
                           color: white; border: none; border-radius: 8px; cursor: pointer; }

/* === 管理后台 === */
.admin-page { max-width: 1000px; }
.admin-section { background: white; padding: 20px; border-radius: 8px; margin-bottom: 16px; }
.admin-section h2 { margin-bottom: 12px; font-size: 18px; }
.form-group { display: flex; gap: 8px; flex-wrap: wrap; }
.form-group input { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; }
.form-group button { padding: 8px 16px; background: #4a90d9; color: white;
                      border: none; border-radius: 6px; cursor: pointer; }
.btn-small { padding: 4px 12px; font-size: 12px; background: #eee; border: 1px solid #ddd;
              border-radius: 4px; cursor: pointer; margin-left: 8px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 8px 12px; border-bottom: 1px solid #eee; text-align: left; }
th { background: #f8f8f8; font-weight: 600; }
code { background: #f0f0f0; padding: 2px 6px; border-radius: 4px; font-size: 13px; }

.state-draft { color: #999; }
.state-interviewing { color: #4a90d9; }
.state-paused { color: #f39c12; }
.state-generating { color: #8e44ad; }
.state-completed { color: #27ae60; }

.filter-bar { display: flex; gap: 8px; margin-bottom: 10px; }
.filter-bar select { padding: 6px; border: 1px solid #ddd; border-radius: 4px; }

.log-area { max-height: 400px; overflow-y: auto; font-family: monospace; font-size: 13px; }
.log-entry { padding: 6px 8px; border-bottom: 1px solid #f0f0f0; display: flex;
              gap: 8px; flex-wrap: wrap; }
.log-error { background: #fdf0f0; }
.log-warning { background: #fef8e7; }
.log-info { background: #f0f8ff; }
.log-time { color: #999; min-width: 160px; }
.log-level { font-weight: bold; min-width: 60px; }
.log-cat { color: #4a90d9; min-width: 140px; }
.log-task { color: #999; min-width: 70px; }
.log-msg { flex: 1; }

pre { background: #f8f8f8; padding: 16px; border-radius: 8px; overflow-x: auto;
       font-size: 13px; line-height: 1.6; max-height: 400px; overflow-y: auto; }

/* --- 以下为新增样式，追加到文件末尾 --- */

/* === 语音模式 === */
.voice-badge { background: #8e44ad; color: white; padding: 2px 8px; border-radius: 10px;
               font-size: 12px; }

.voice-control-area { background: white; border-radius: 8px; padding: 20px;
                       text-align: center; }
.voice-status { font-size: 14px; color: #666; margin-bottom: 16px; }
.voice-buttons { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; }

.voice-btn { border: none; border-radius: 50%; cursor: pointer; transition: all 0.2s; }
.mic-btn { width: 64px; height: 64px; background: #4a90d9; color: white; font-size: 24px; }
.mic-btn:hover { background: #3a7bc8; transform: scale(1.05); }
.mic-btn.active { background: #e74c3c; animation: pulse 1.5s infinite; }
.end-btn { padding: 12px 24px; background: #e74c3c; color: white; border-radius: 8px;
           font-size: 14px; align-self: center; }
.end-btn:hover { background: #c0392b; }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

.voice-text-toggle { margin-top: 8px; }
.voice-text-input { display: flex; gap: 8px; margin-top: 8px; }
.voice-text-input textarea { flex: 1; padding: 8px; font-size: 14px; border: 1px solid #ddd;
                              border-radius: 6px; resize: none; font-family: inherit; }
.voice-text-input button { padding: 8px 16px; background: #4a90d9; color: white;
                            border: none; border-radius: 6px; cursor: pointer; }

.voice-hint { text-align: center; color: #999; padding: 40px 20px; font-size: 14px; }

.mic-icon { font-style: normal; }

/* === 文档确认页 === */
.review-page { max-width: 900px; }
.review-page h1 { font-size: 22px; margin-bottom: 8px; }
.review-subtitle { color: #666; margin-bottom: 16px; font-size: 14px; }

.review-status { padding: 10px 16px; border-radius: 6px; margin-bottom: 12px;
                  font-size: 14px; }
.review-status-info { background: #d1ecf1; color: #0c5460; }
.review-status-success { background: #d4edda; color: #155724; }
.review-status-error { background: #f8d7da; color: #721c24; }
.review-status-loading { background: #fff3cd; color: #856404; }

.review-document { background: white; padding: 24px; border-radius: 8px;
                    margin-bottom: 16px; line-height: 1.8; font-size: 15px;
                    max-height: 60vh; overflow-y: auto; }
.review-document h1 { font-size: 20px; margin: 16px 0 8px; }
.review-document h2 { font-size: 18px; margin: 14px 0 6px; color: #2c3e50; }
.review-document h3 { font-size: 16px; margin: 12px 0 4px; color: #34495e; }
.review-document p { margin-bottom: 8px; }

.tag-infer { background: #fff3cd; color: #856404; padding: 1px 4px; border-radius: 3px;
              font-size: 13px; }
.tag-confirm { background: #f8d7da; color: #721c24; padding: 1px 4px; border-radius: 3px;
                font-size: 13px; }

.review-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 16px; }
.btn-approve { padding: 12px 32px; background: #27ae60; color: white; border: none;
                border-radius: 8px; font-size: 16px; cursor: pointer; }
.btn-approve:hover { background: #219a52; }
.btn-revise { padding: 12px 32px; background: #f39c12; color: white; border: none;
               border-radius: 8px; font-size: 16px; cursor: pointer; }
.btn-revise:hover { background: #d68910; }
.btn-cancel { padding: 12px 32px; background: #95a5a6; color: white; border: none;
               border-radius: 8px; font-size: 16px; cursor: pointer; }
.btn-cancel:hover { background: #7f8c8d; }

.review-feedback { background: white; padding: 20px; border-radius: 8px;
                    margin-bottom: 16px; }
.review-feedback h3 { margin-bottom: 8px; font-size: 16px; }
.feedback-hint { color: #666; font-size: 13px; margin-bottom: 10px; }
.review-feedback textarea { width: 100%; padding: 12px; font-size: 14px;
                             border: 1px solid #ddd; border-radius: 6px;
                             resize: vertical; font-family: inherit; margin-bottom: 10px; }
.feedback-buttons { display: flex; gap: 10px; }

.review-completed { text-align: center; padding: 20px; background: #d4edda;
                     border-radius: 8px; }
.review-completed button { margin-top: 10px; padding: 10px 20px; background: #27ae60;
                            color: white; border: none; border-radius: 8px;
                            cursor: pointer; }

/* === 管理后台新增状态和模式样式 === */
.mode-text { color: #4a90d9; font-size: 12px; }
.mode-voice { color: #8e44ad; font-size: 12px; }

.state-pending_review { color: #f39c12; }
.state-revising { color: #8e44ad; }
.state-revised { color: #e67e22; }

.tag-feedback { background: #f8d7da; color: #721c24; padding: 1px 6px;
                 border-radius: 3px; font-size: 11px; margin-left: 4px; }

/* 管理后台表单 select 样式 */
.form-group select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px;
                      font-size: 14px; background: white; }

/* === 管理后台任务详情页 === */
.admin-task-page { max-width: 1100px; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.page-actions {
    display: flex;
    gap: 8px;
}

.detail-loading {
    background: white;
    padding: 20px;
    border-radius: 8px;
    color: #666;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.detail-subline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    color: #666;
    font-size: 14px;
}

.detail-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f0f0f0;
    font-size: 12px;
}

.detail-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.meta-card {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 12px;
}

.meta-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.meta-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.section-tip {
    color: #888;
    font-size: 12px;
}

.detail-progress-text {
    color: #4a90d9;
    font-size: 13px;
    font-weight: 600;
}

.detail-progress-container {
    margin-top: 12px;
}

.detail-canvas-bar {
    flex-wrap: wrap;
    gap: 12px;
}

.detail-history {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
}

.history-expert {
    background: #f7fbff;
}

.history-interviewer {
    background: #fafafa;
}

.history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #777;
}

.history-role {
    font-weight: 600;
    color: #333;
}

.history-content {
    white-space: pre-wrap;
    line-height: 1.7;
}

.history-empty {
    padding: 16px;
    border-radius: 8px;
    background: #f8f8f8;
    color: #777;
}

.detail-document {
    min-height: 280px;
    white-space: pre-wrap;
    background: #f8f8f8;
}

.task-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* === 第五批：任务管理扩展 === */
.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    align-items: start;
}

.admin-form-grid textarea {
    grid-column: 1 / -1;
    min-height: 88px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.admin-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.edit-section {
    border: 1px solid #dbe7f6;
    background: #f8fbff;
}

.btn-secondary {
    padding: 8px 16px;
    background: #eee;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
}

.link-btn {
    background: none;
    border: none;
    padding: 0;
    color: #4a90d9;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}

.link-danger {
    color: #c0392b;
}

/* === batch-09 模式 A 前端 === */
.outline-page {
    max-width: 900px;
}

.outline-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.outline-textarea {
    width: 100%;
    min-height: 260px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
}

/* === 第六批：管理员登录 === */
.admin-login-page {
    max-width: 420px;
    margin-top: 12vh;
}

.login-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.login-card h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.login-form input {
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}

.login-form button {
    padding: 12px 16px;
    background: #4a90d9;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

.login-form button:hover {
    background: #3a7bc8;
}

/* === 第七批：附件系统 === */
.attachment-panel,
.admin-section .attachment-panel {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.attachment-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.attachment-toolbar input[type="file"] {
    max-width: 100%;
}

.attachment-status {
    font-size: 13px;
    color: #666;
    min-height: 18px;
    margin-bottom: 10px;
}

.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.attachment-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fbfbfb;
}

.attachment-main {
    min-width: 0;
    flex: 1;
}

.attachment-name {
    font-weight: 600;
    color: #333;
    word-break: break-all;
}

.attachment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    font-size: 12px;
    color: #777;
}

.attachment-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.attachment-empty {
    padding: 14px;
    border-radius: 8px;
    border: 1px dashed #ddd;
    color: #888;
    background: #fcfcfc;
}

.btn-danger {
    color: #c0392b;
    border-color: #f1b7b3;
    background: #fff5f4;
}

.btn-danger:hover {
    background: #ffe6e4;
}

/* === batch-18：review 页外部较优参考实践 === */
.review-reference-section {
    background: white;
    padding: 20px 24px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.review-reference-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.review-reference-card {
    border: 1px solid #e5edf7;
    border-radius: 8px;
    padding: 14px 16px;
    background: #f9fbff;
}

.review-reference-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.review-reference-card h3 {
    margin: 0;
    font-size: 16px;
    color: #22324a;
}

.review-reference-meta {
    font-size: 12px;
    color: #6b7b93;
    white-space: nowrap;
}

.review-reference-text {
    margin: 8px 0 0;
    line-height: 1.7;
    color: #334155;
}

.review-reference-secondary {
    color: #53657d;
}

.review-reference-reminder-list {
    margin: 10px 0 0;
    padding-left: 20px;
}

.review-reference-reminder-item {
    margin-bottom: 8px;
    line-height: 1.7;
}

.review-reference-evidence {
    color: #6b7b93;
    font-size: 13px;
}

.review-reference-empty {
    color: #6b7b93;
    font-size: 13px;
    margin-top: 8px;
}

/* === review 页外部较优参考实践 === */
.review-section {
    margin-top: 16px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5edf7;
}

.review-section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.review-section-head h2 {
    font-size: 18px;
    margin: 0;
}

.review-section-tip {
    color: #6b7280;
    font-size: 12px;
}

.review-section-summary {
    margin-bottom: 12px;
    color: #40556e;
    font-size: 13px;
    background: #f7fbff;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    padding: 10px 12px;
}

.review-reference-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-reference-card {
    background: #f9fbfe;
    border: 1px solid #edf2f8;
    border-radius: 8px;
    padding: 14px;
}

.review-reference-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2d3d;
}

.review-reference-meta {
    margin-top: 6px;
    color: #6f7c8d;
    font-size: 12px;
}

.review-reference-summary,
.review-reference-reminder-summary {
    margin-top: 10px;
    color: #374151;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.review-reference-reminder-list {
    margin: 10px 0 0;
    padding-left: 18px;
}

.review-reference-reminder-list li {
    margin-bottom: 10px;
}

.review-reference-evidence {
    margin-top: 4px;
    color: #5f6b7a;
    font-size: 12px;
}

.review-reference-empty {
    color: #738295;
    font-size: 13px;
}

/* === batch-10 文本流式对话 === */
.stream-status {
    min-height: 20px;
    margin-bottom: 8px;
    color: #4a90d9;
    font-size: 13px;
}

.chat-action-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: flex-end;
}

.chat-action-group .btn-small {
    margin-left: 0;
}

/* === batch-17 外部较优参考实践 === */
.reference-section-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.reference-create-card {
    background: #fff;
    border: 1px solid #dbe7f6;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
}

.reference-create-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.reference-create-grid textarea {
    grid-column: 1 / -1;
    min-height: 96px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.reference-create-grid input,
.reference-create-grid select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
}

.reference-create-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.external-reference-status {
    min-height: 18px;
    font-size: 13px;
    color: #5f6b7a;
    margin-bottom: 8px;
}

.external-reference-summary {
    background: #f7fbff;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    padding: 10px 12px;
    color: #40556e;
    font-size: 13px;
    margin-bottom: 12px;
}

.reference-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reference-empty-state,
.reference-empty-inline {
    border: 1px dashed #d7e3f1;
    border-radius: 8px;
    background: #fbfdff;
    color: #738295;
    padding: 14px;
    font-size: 13px;
}

.reference-card {
    background: #fff;
    border: 1px solid #e5edf7;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(26, 44, 77, 0.04);
}

.reference-card-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.reference-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2d3d;
    word-break: break-all;
}

.reference-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    color: #6f7c8d;
    font-size: 12px;
}

.reference-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.reference-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.reference-section {
    padding: 12px;
    border-radius: 8px;
    background: #f9fbfe;
    border: 1px solid #edf2f8;
}

.reference-section h3 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #243447;
}

.reference-block-text {
    white-space: pre-wrap;
    line-height: 1.7;
    color: #374151;
    font-size: 13px;
}

.reference-meta-line {
    margin-bottom: 8px;
    color: #516071;
    font-size: 13px;
    word-break: break-all;
}

.reference-reminder-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reference-reminder-item {
    padding-left: 4px;
}

.reference-reminder-item strong {
    display: block;
    margin-bottom: 4px;
}

.reference-reminder-priority,
.reference-reminder-evidence {
    margin-top: 4px;
    color: #5f6b7a;
    font-size: 12px;
}

.reference-error {
    background: #fff3f1;
    border: 1px solid #ffd6d1;
    color: #b42318;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.reference-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: #eef3f9;
    color: #50627a;
}

.reference-badge.is-ready {
    background: #e6f7eb;
    color: #1f7a3d;
}

.reference-badge.is-failed {
    background: #fdecea;
    color: #b42318;
}

.btn-danger {
    color: #c0392b;
    border-color: #f1b7b3;
    background: #fff5f4;
}

.btn-danger:hover {
    background: #ffe6e4;
}
