/* Cross-Vendor Caching Comparison */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    width: 100%; height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: #f8fafc;
    color: #1f2937;
    overflow: hidden;
}
main {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px 16px;
    gap: 8px;
}
.header { display: flex; align-items: baseline; gap: 12px; }
.title { font-weight: 700; font-size: 16px; color: #37474f; }
.subtitle { font-size: 12px; color: #64748b; }

.chart-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 10px;
    flex: 1 1 auto;
    min-height: 260px;
    position: relative;
}
.chart-wrap canvas { width: 100% !important; height: 100% !important; }

.summary {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 10px;
    flex: 0 0 auto;
}
.summary-title { font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { text-align: left; padding: 4px 6px; border-bottom: 1px solid #f1f5f9; }
th { color: #64748b; font-weight: 600; }
td.savings-pos { color: #2e7d32; font-weight: 700; }
td.savings-neg { color: #c62828; font-weight: 700; }

.controls {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 10px 12px;
    flex: 0 0 auto;
}
.caps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.cap-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #475569;
}
.cap-block input[type=range] { width: 100%; }
.toggle-block { flex-direction: row; align-items: center; gap: 6px; }
