:root { --blue: #1e40af; --cyan: #06b6d4; --ink: #102033; --bg: #f5f8fc; font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif; }
body { margin: 0; color: var(--ink); background: var(--bg); }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { min-width: 0; padding: 24px 18px; color: white; background: #102a5c; }
.logo { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; font-weight: 800; font-size: 18px; }
.logo span:first-child { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.nav-button { display: flex; width: 100%; min-height: 32px; align-items: center; justify-content: flex-start; margin: 4px 0; padding: 8px 12px; color: #dbeafe; border: 0; border-radius: 8px; background: transparent; box-sizing: border-box; }
.nav-button.is-active { color: white; background: rgba(255,255,255,.14); }
.main { min-width: 0; padding: 24px; overflow-x: hidden; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-card { padding: 18px; border: 1px solid #dbeafe; border-radius: 8px; background: white; }
.stat-card strong { display: block; margin-top: 6px; font-size: 28px; color: var(--blue); }
.panel { padding: 18px; border: 1px solid #dbeafe; border-radius: 8px; background: white; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #0f2d66, #0891b2); }
.login-box { width: min(420px, 100%); padding: 28px; border-radius: 8px; background: white; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .wide { grid-column: 1 / -1; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; }
.muted { color: #64748b; font-size: 13px; }
.tutorial { margin: 0 0 14px; padding: 10px 12px; border: 1px solid #bfdbfe; border-radius: 8px; background: #f8fbff; color: #334155; }
.tutorial summary { cursor: pointer; color: #1e40af; font-weight: 800; list-style-position: inside; }
.tutorial p { margin: 8px 0 0; line-height: 1.7; color: #475569; font-size: 13px; }
.category-form { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) 140px auto; gap: 12px; align-items: end; margin-bottom: 16px; }
@media (max-width: 920px) { .admin-shell { grid-template-columns: 1fr; } .sidebar { position: static; } .stat-grid, .form-grid { grid-template-columns: 1fr; } }
.log-meta { display: inline-block; max-width: 520px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.config-block { margin-top: 18px; padding: 16px; border: 1px solid #dbeafe; border-radius: 8px; background: #fff; }
.config-block pre { white-space: pre-wrap; }
.mini-meta { margin-top: 4px; color: #64748b; font-size: 12px; line-height: 1.5; }
.risk-hint { margin-top: 6px; padding: 6px 8px; border-radius: 6px; color: #991b1b; background: #fee2e2; font-size: 12px; line-height: 1.5; }
.task-context { margin-bottom: 8px; padding: 8px; border: 1px solid #bfdbfe; border-radius: 8px; background: #f8fbff; font-size: 12px; line-height: 1.5; }
.task-context p { margin: 4px 0; color: #475569; }
.task-context ul { margin: 6px 0 0; padding-left: 18px; color: #475569; }
.timeline-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.e2e-group { margin-top: 18px; }
.device-import-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.device-import-grid .wide { grid-column: 1 / -1; }
.device-confirm-panel { border-left: 4px solid #d97706; }
.bundle-blocker { margin: 4px 0; line-height: 1.55; }
.device-review-grid { display: grid; grid-template-columns: minmax(420px, .9fr) minmax(560px, 1.1fr); gap: 14px; min-height: 68vh; }
.device-pdf-pane iframe { width: 100%; height: 68vh; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; }
.device-fields-pane { min-width: 0; }
.el-table .device-low-confidence td.el-table__cell { background: #fff7ed; }
@media (max-width: 1100px) { .device-import-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .device-review-grid { grid-template-columns: 1fr; } .device-pdf-pane iframe { height: 52vh; } }
@media (max-width: 700px) { .device-import-grid { grid-template-columns: 1fr; } }
.device-trend-panel { margin-top: 16px; }
.comparison-patient { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border-left: 4px solid #1e40af; background: #f8fbff; }
.comparison-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -4px 0 18px; }
.comparison-summary span { padding: 7px 10px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #475569; font-size: 13px; }
.comparison-summary .is-lower { border-color: #a7f3d0; color: #047857; background: #ecfdf5; }
.comparison-summary .is-higher { border-color: #fecaca; color: #b91c1c; background: #fef2f2; }
.comparison-summary small { color: #64748b; }
.publication-band { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 18px 0; padding: 16px 0; border-top: 1px solid #dbeafe; border-bottom: 1px solid #dbeafe; }
.publication-band h3, .publication-band p { margin: 0; }
.publication-band p { margin-top: 5px; color: #64748b; font-size: 13px; line-height: 1.6; }
.publication-list { margin-bottom: 20px; }
.comparison-value { color: #1e40af; font-size: 16px; }
@media (max-width: 700px) { .publication-band { align-items: flex-start; flex-direction: column; } }
.comparison-patient strong { font-size: 17px; }
.comparison-patient span { color: #64748b; font-size: 13px; }
.date-value { font-size: 15px !important; line-height: 1.35; }
.admin-trend-track { position: relative; display: flex; justify-content: space-around; gap: 8px; min-width: 340px; padding-top: 14px; border-top: 2px solid #cbd5e1; }
.admin-trend-point { position: relative; flex: 1; min-width: 0; text-align: center; }
.admin-trend-point i { position: absolute; top: -21px; left: 50%; width: 10px; height: 10px; border: 3px solid #fff; border-radius: 50%; background: #64748b; transform: translateX(-50%); }
.admin-trend-point b,.admin-trend-point small { display: block; overflow-wrap: anywhere; }
.admin-trend-point b { color: #102033; font-size: 12px; }
.admin-trend-point small { margin-top: 3px; color: #64748b; font-size: 10px; }
.admin-trend-point.severity-normal i { background: #15803d; }
.admin-trend-point.severity-mild i { background: #ca8a04; }
.admin-trend-point.severity-moderate i { background: #ea580c; }
.admin-trend-point.severity-severe i { background: #b91c1c; }
.analytics-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.catalog-entry { display: flex; justify-content: flex-end; margin: 12px 0 18px; }
.catalog-filter { margin-top: 24px; }
.reference-rule-text { display: block; color: #334155; font-size: 12px; line-height: 1.65; }
.review-target-summary, .review-target-excerpt { margin: 5px 0 0; color: #475569; font-size: 12px; line-height: 1.55; white-space: normal; }
.review-target-excerpt { display: -webkit-box; overflow: hidden; color: #64748b; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.partner-page { max-width: 1440px; margin: 0 auto; padding: 28px; }
.partner-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 22px; }
.partner-header h1 { margin: 0 0 10px; color: #102033; font-size: 32px; }
.partner-header .eyebrow { margin: 0 0 8px; color: #0891b2; font-weight: 800; }
.partner-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.partner-page .toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.partner-page .toolbar input, .partner-page .toolbar select { max-width: 260px; }
.partner-page table { width: 100%; border-collapse: collapse; background: white; }
.partner-page th, .partner-page td { padding: 12px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; line-height: 1.6; }
.partner-page th { color: #475569; background: #f8fbff; font-size: 13px; }
.partner-page small { color: #64748b; }
.partner-page td input, .partner-page td select, .partner-page td textarea { width: 100%; min-width: 112px; margin-top: 6px; padding: 7px 8px; border: 1px solid #cbd5e1; border-radius: 6px; box-sizing: border-box; color: #102033; background: #fff; font: inherit; }
.partner-page td textarea { min-width: 180px; resize: vertical; }
.partner-page .button { display: inline-flex; min-height: 36px; padding: 0 12px; align-items: center; border: 1px solid #bfdbfe; border-radius: 6px; color: #1e40af; background: white; cursor: pointer; text-decoration: none; }
.partner-page .button.primary { color: white; border-color: #1e40af; background: #1e40af; }
.partner-page .button:disabled { opacity: .55; cursor: not-allowed; }
.partner-page input:disabled, .partner-page select:disabled, .partner-page textarea:disabled { color: #64748b; background: #f8fafc; cursor: not-allowed; }
.pilot-plan-heading { display: flex; justify-content: space-between; gap: 16px; }
.pilot-plan-heading span { color: #1e40af; font-weight: 800; }
.pilot-progress { height: 8px; overflow: hidden; border-radius: 4px; background: #e2e8f0; }
.pilot-progress i { display: block; height: 100%; background: #0891b2; }
.execution-list { display: grid; gap: 7px; margin: 8px 0 18px; padding: 0; list-style: none; }
.execution-list li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 6px; background: #f8fbff; }
.execution-list small { text-align: right; }
@media (max-width: 900px) { .partner-header { flex-direction: column; } .partner-actions { justify-content: flex-start; } .partner-page { padding: 16px; } .table-wrap { overflow-x: auto; } .partner-page table { min-width: 1180px; } }
.rule-editor-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
@media (max-width: 700px) { .catalog-filter { align-items: flex-start; flex-direction: column; } .catalog-filter .toolbar-actions { display: grid; width: 100%; gap: 8px; } }
