.mtd-results, .mtd-single { margin: 1.5em 0; }
.mtd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 1.5em; }
.mtd-card { border: 1px solid rgba(128,128,128,.3); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.mtd-card-label { font-size: .8em; opacity: .7; text-transform: uppercase; letter-spacing: .04em; }
.mtd-card-val { font-size: 1.5em; font-weight: 700; }
.mtd-pos { color: #1a7f37; }
.mtd-neg { color: #cf222e; }
.mtd-curve { margin: 0 0 1.5em; }
.mtd-curve figcaption { font-size: .85em; opacity: .7; margin-bottom: 4px; }
.mtd-curve svg { width: 100%; height: 220px; border: 1px solid rgba(128,128,128,.3); border-radius: 8px; }
.mtd-line { stroke: #2271b1; stroke-width: 2; vector-effect: non-scaling-stroke; }
.mtd-zero { stroke: rgba(128,128,128,.5); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.mtd-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.mtd-tab { cursor: pointer; border: 1px solid rgba(128,128,128,.4); background: transparent; color: inherit; padding: 6px 14px; border-radius: 6px; font: inherit; }
.mtd-tab.is-active { background: #2271b1; border-color: #2271b1; color: #fff; }
.mtd-js .mtd-panel { display: none; }
.mtd-js .mtd-panel.is-active { display: block; }
.mtd-table-wrap { overflow-x: auto; }
.mtd-table { width: 100%; border-collapse: collapse; font-size: .95em; }
.mtd-table th, .mtd-table td { padding: 8px 10px; border-bottom: 1px solid rgba(128,128,128,.25); text-align: left; white-space: nowrap; }
.mtd-table thead th { font-weight: 600; }
.mtd-note { font-size: .8em; opacity: .7; margin-top: 12px; }
.mtd-checks { list-style: none; padding: 0; }
.mtd-checks .ok { color: #1a7f37; }
.mtd-checks .ko { color: #cf222e; }
.mtd-filter-title { margin: 0 0 1rem; }
.mtd-bars { display: grid; gap: 10px; margin: 1rem 0 1.5rem; }
.mtd-bar-row { display: grid; grid-template-columns: minmax(90px, 170px) 1fr auto; gap: 12px; align-items: center; font-size: .92em; }
.mtd-bar-label { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtd-bar-track { height: 12px; border-radius: 999px; background: rgba(128,128,128,.15); overflow: hidden; }
.mtd-bar-fill { display: block; height: 100%; border-radius: 999px; background: currentColor; }
.mtd-bar-val { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; white-space: nowrap; }
