*{box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;margin:0;padding:20px;background:#fff;min-height:100vh}#container{padding:30px;border-radius:12px;max-width:1400px;margin:0 auto}h1{margin-top:0;margin-bottom:10px;color:#2c3e50;font-weight:600;font-size:28px}.controls{margin-bottom:25px;display:flex;gap:10px}button{padding:10px 20px;background:#000;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500;transition:all .3s ease;box-shadow:0 2px 8px #0000004d}button:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0006;background:#333}button:active{transform:translateY(0)}#chart{overflow-x:auto;background:#fafafa;border-radius:8px;padding:20px 0;width:100%}.axis{cursor:move}.axis line{stroke:#000;stroke-width:1px}.axis path{fill:none;stroke:#000;stroke-width:2px}.axis text{font-size:11px;fill:#000;font-weight:500}.brush .selection{fill:#000;fill-opacity:.2;stroke:#000;stroke-width:2px;stroke-dasharray:4,4}.brush .handle{fill:#000;stroke:#fff;stroke-width:2px;cursor:ns-resize}.brush .overlay{fill:none;pointer-events:all}.line{fill:none;stroke:#000;stroke-width:1px;opacity:.3;transition:opacity .2s ease}.line.selected{stroke:#000;stroke-width:2px;opacity:.9}.dimension-label{font-weight:600;cursor:move;fill:#2c3e50;font-size:13px;transition:fill .2s ease}.dimension-label:hover{fill:#667eea}.axis-group{transition:opacity .2s ease}#tooltip{display:none;position:absolute;background:#000000e6;color:#fff;padding:12px;border-radius:6px;pointer-events:none;font-size:12px;z-index:1000;box-shadow:0 4px 12px #0000004d;line-height:1.6;max-width:250px}#tooltip strong{display:block;margin-bottom:8px;font-size:13px;color:#fff}
