.kmc { --kmc-grid: #e0e6de; --kmc-quiet: #536455; --kmc-warm: #8b503a; --kmc-due: #796986; min-width: 0; }
.kmc-figure { margin: 0; min-width: 0; }
.kmc-label { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 10px; margin: 0; color: var(--ink, #172720); font-size: 14px; font-weight: 670; letter-spacing: -.01em; }
.kmc-svg { display: block; width: 100%; height: auto; overflow: visible; margin: .25em 0; }
.kmc-svg line,.kmc-svg .kmc-trace,.kmc-svg .kmc-component { vector-effect: non-scaling-stroke; }
.kmc-grid { stroke: var(--kmc-grid); stroke-width: 1; }
.kmc-target { stroke: #75886e; stroke-width: 1; stroke-dasharray: 4 4; }
.kmc-axis { fill: var(--kmc-quiet); font: 12px var(--sans, sans-serif); font-variant-numeric: tabular-nums; }
.kmc-target-label { font-weight: 650; }
.kmc-now { stroke: #becbb9; stroke-width: 1; }
.kmc-due { stroke: var(--kmc-due); stroke-width: 1; stroke-dasharray: 2 4; }
.kmc-due-mark { fill: var(--kmc-due); }
.kmc-trace { fill: none; stroke: var(--green, #26583d); stroke-width: 2.1; stroke-linejoin: round; stroke-linecap: round; }
.kmc-future { stroke-dasharray: 5 4; }
.kmc-reset { stroke: var(--green, #26583d); stroke-width: 1; opacity: .36; }
.kmc-hit,.kmc-miss { stroke: var(--paper, #fff); stroke-width: 1; }
.kmc-hit { fill: var(--green, #26583d); }
.kmc-miss { fill: var(--kmc-warm); }
.kmc-selected { fill: var(--paper, #fff); stroke: var(--green, #26583d); stroke-width: 2; }
.kmc-selected-line { stroke: #7d947c; stroke-width: 1; stroke-dasharray: 2 3; }
.kmc-component { stroke-width: 1.2; fill: none; opacity: .88; }
.kmc-fast { stroke: #a06148; stroke-dasharray: 2 3; }
.kmc-slow { stroke: #547c87; stroke-dasharray: 6 3; }
.kmc-component-control { display: inline-flex; gap: 4px; align-items: center; min-height: 30px; padding: 2px 0; font-size: 12px; font-weight: 500; color: var(--kmc-quiet); cursor: pointer; }
.kmc-component-control input { accent-color: var(--green, #26583d); margin: 0 1px 0 0; }
.kmc-keys { display: flex; flex-wrap: wrap; column-gap: 12px; row-gap: 5px; }
.kmc-key { display: inline-flex; flex: none; gap: 5px; align-items: center; color: var(--kmc-quiet); font-size: 11px; }
.kmc-keymark { display: inline-block; width: 13px; border-top: 2px solid var(--green, #26583d); }
.kmc-keymark.is-target { border-top: 1px dashed #75886e; }
.kmc-keymark.is-future { border-top-style: dashed; }
.kmc-keymark.is-due { width: 9px; height: 8px; background: var(--kmc-due); clip-path: polygon(50% 0,100% 100%,0 100%); border: 0; }
.kmc-keymark.is-hit,.kmc-keymark.is-miss { width: 7px; height: 7px; background: var(--green, #26583d); border: 0; border-radius: 50%; }
.kmc-keymark.is-miss { background: var(--kmc-warm); border-radius: 0; transform: rotate(45deg); }
.kmc-keymark.is-fast { border-color: #a06148; border-top-style: dotted; }
.kmc-keymark.is-slow { border-color: #547c87; border-top-style: dashed; }
.kmc-note,.kmc-empty,.kmc-single { margin: .55em 0 0; color: var(--kmc-quiet); font-size: 12px; line-height: 1.48; }
.kmc-empty { background: var(--bg,#f5f6f2); border: 1px dashed var(--line,#dce2da); border-radius: 10px; padding: 13px 12px; }
.kmc-durability,.kmc-data { padding-top: 12px; margin-top: 15px; border-top: 1px solid var(--line,#dce2da); }
.kmc-data summary { cursor: pointer; color: var(--kmc-quiet); font-size: 12px; min-height: 30px; }
.kmc-bar { fill: #b6c7b5; }
.kmc-bar-current { fill: var(--green,#26583d); }
.kmc-events { display: grid; gap: 7px; padding-inline-start: 19px; font-size: 12px; color: var(--kmc-quiet); }
.kmc-events time { display: block; font-weight: 630; color: var(--ink,#172720); }
