.demo-label { display: inline-block; border: 2px dashed currentColor; padding: .4rem .8rem; border-radius: 6px; background: #fff8e1; color: #5d4300; }
.demo-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; margin: 1rem 0; }
.demo-controls select { min-width: 16rem; padding: .5rem; }
.demo-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.demo-rule { background: #f5f7fa; border-left: 4px solid #4a6fa5; padding: .75rem 1rem; margin-bottom: 1rem; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.demo-table { font-size: .95rem; }
.demo-table tr.demo-new td { background: #eef6ff; }
.demo-results { margin-top: 2rem; }
.demo-legend { list-style: none; padding: 0; display: grid; gap: .35rem; margin-bottom: 1rem; }
.demo-badge { display: inline-block; padding: .15rem .5rem; border-radius: 4px; font-weight: 600; font-size: .85rem; border: 1px solid; white-space: nowrap; }
.demo-badge-matched { background: #e8f5e9; color: #1b5e20; }
.demo-badge-excluded { background: #f1f1f1; color: #424242; }
.demo-badge-discrepancy { background: #fdecea; color: #8a1c13; }
.demo-badge-review { background: #fff4e5; color: #6d4200; }
.demo-status-discrepancy td { background: #fffafa; }
.demo-total { font-size: 1.25rem; }
.calc-result__primary dd { font-size: 1.35rem; font-weight: 600; }
.calc-negative { color: #8a1c13; }
@media (max-width: 576px) { .demo-controls select { min-width: 100%; } .demo-controls .form-group { width: 100%; } }
