.analysis-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:7px}
.analysis-heading h3{margin:0}
.analysis-controls{display:inline-flex;gap:3px;padding:3px;border:1px solid #b8c9c8;border-radius:5px;background:#eef3f0}
.analysis-mode-button{min-height:31px;padding:5px 13px;border:0;border-radius:3px;background:transparent;color:#526f79;font:750 12px system-ui,sans-serif}
.analysis-mode-button.active{background:#fffefa;color:#205c7b;box-shadow:0 1px 4px #18344a21}
.analysis-note{margin:3px 0 10px;color:#5e7780;font:11px/1.5 system-ui,sans-serif}
.analysis-content{min-width:0}
.analysis-table-wrap{max-width:100%;margin-top:10px;overflow-x:auto;border:1px solid #c7d5d3;background:#fffef9}
.analysis-table{width:100%;min-width:610px;border-collapse:collapse;font:12px/1.45 system-ui,sans-serif}
.analysis-table th,.analysis-table td{padding:9px 11px;border-bottom:1px solid #e0e7e3;text-align:left;vertical-align:top}
.analysis-table th{position:sticky;top:0;background:#e9f1ef;color:#335b6c;font-weight:800;white-space:nowrap}
.analysis-table td:first-child{min-width:180px;color:#315d6d}
.analysis-table td strong{display:block;font-variant-numeric:tabular-nums}
.analysis-table td small{display:block;margin-top:3px;color:#667d82;font:10px/1.35 system-ui,sans-serif}
.analysis-merged{color:#8d6228!important;font-weight:800!important}
.analysis-project-cell{min-width:135px}
.analysis-source-fold{margin-top:5px;color:#5b7480;font:10px/1.45 system-ui,sans-serif}
.analysis-source-fold summary{cursor:pointer;color:#2b6984;text-decoration:underline;text-underline-offset:2px}
.analysis-source-fold div{margin-top:3px;padding-left:8px;border-left:2px solid #d3e0dc;overflow-wrap:anywhere}
.analysis-difference{min-width:160px;color:#285f74;font-weight:700;font-variant-numeric:tabular-nums}
.analysis-difference.unavailable{color:#8b685d;font-weight:500}
.rw-carried-note{display:block;margin-top:7px;padding:7px 9px;border-left:3px solid #bc8840;background:#fff4e0;color:#80572b!important;font:700 12px/1.45 system-ui,sans-serif}
@media(max-width:680px){
  .analysis-heading{align-items:flex-start}
  .analysis-heading h3{font-size:19px}
  .analysis-controls{width:100%}
  .analysis-mode-button{flex:1;font-size:13px}
  .analysis-table{min-width:560px}
  .analysis-table th,.analysis-table td{padding:8px 9px}
  .analysis-note{font-size:11px}
}

@media(max-width:680px){.analysis-table td:first-child strong{white-space:nowrap}.analysis-table-wrap:before{content:"左右滑动查看完整对比";display:block;padding:7px 9px;color:#5e7780;font:11px system-ui,sans-serif;position:sticky;left:0}}

.analysis-missing-reason{margin-top:5px;font:12px/1.6 system-ui,sans-serif;color:#627882}.analysis-missing-reason summary{cursor:pointer;color:#27677e}.analysis-missing-reason p{margin:6px 0;max-width:260px;white-space:normal}

.analysis-actual-range{display:block;margin-top:5px;color:#657d83;font:11px/1.5 system-ui,sans-serif}

/* v0.18: consistent comparison hierarchy, restrained table totals and foldouts. */
.detail-comparison-section{margin:24px 0 12px}.detail-comparison-section>h3{margin:0 0 14px}
.detail-project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}.detail-project-grid:has(> :only-child){grid-template-columns:1fr}
.detail-project-table{min-width:0;border:1px solid #d5e2e2;border-radius:12px;overflow:hidden;background:#fffefa}.detail-project-table>h4{margin:0;padding:14px 16px;color:var(--project-color);border-top:3px solid var(--project-color);background:#f3f7f5;font-size:20px}
.comparison-detail-table{min-width:0;width:100%;font-size:14px}.comparison-detail-table th,.comparison-detail-table td{padding:11px 10px;white-space:normal;font-variant-numeric:tabular-nums}.comparison-detail-table thead th{background:#e7f0f0;color:#456573}.comparison-detail-table tbody th{font-weight:500;text-align:left}.comparison-detail-table tfoot th,.comparison-detail-table tfoot td{background:#f4ebd6;color:#634d22;font-weight:750;border-top:2px solid #ded0ad}.comparison-detail-table .detail-campus-total th,.comparison-detail-table .detail-campus-total td{background:#f5f0e4;font-weight:700}.detail-grade-row th{color:#607682}
.detail-data-fold{border:1px solid #d6e1df;border-radius:10px;background:#fcfdf9;margin:14px 0;padding:0 16px}.detail-data-fold>summary{padding:14px 0;cursor:pointer;font-weight:650;color:#326277}.detail-data-fold[open]{padding-bottom:14px}.project-source-detail+ .project-source-detail{margin-top:16px}.chart-data-fold{margin-top:18px}.detail-comparison-section .enrollment-composition{margin:0;padding:0;border:0}.detail-comparison-section .enrollment-composition>h3{display:none}.rw-plan-block,.rw-history-block{padding:0;min-width:0}.rw-plan-table th,.rw-record-table th{font-size:14px;padding:12px}.rw-plan-table td,.rw-record-table td{padding:12px;font-size:14px}.rw-pager{gap:12px;padding:16px 0;flex-wrap:wrap}.rw-page-size{min-width:72px;min-height:38px}.rw-table-scroll{width:100%;overflow:auto}
@media(max-width:900px){.detail-project-grid{gap:12px}.comparison-detail-table th,.comparison-detail-table td{padding:9px 7px;font-size:13px}}
@media(max-width:640px){.detail-project-grid{grid-template-columns:1fr}.detail-project-table>h4{font-size:18px}.detail-data-fold{padding:0 10px}.detail-comparison-section{margin-top:18px}}

.rw-integrated-total{color:#795b20!important;background:#f4ebd6;border-radius:4px;padding:3px 6px;display:inline-block!important;font-weight:700}.enrollment-composition-grid{align-items:start}.enrollment-composition-card{border-radius:10px;overflow:hidden}

.quality-comparison .comparison-detail-table{min-width:440px}.comparison-detail-table thead th{word-break:keep-all}.quality-comparison .comparison-detail-table th:not(:first-child),.quality-comparison .comparison-detail-table td:not(:first-child){white-space:nowrap}.quality-comparison .comparison-detail-table th:first-child{min-width:120px}
