*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:linear-gradient(135deg,#667eea,#764ba2);min-height:100vh}.app{max-width:1200px;margin:0 auto;padding:2rem;min-height:100vh}.header{text-align:center;color:#fff;margin-bottom:3rem}.header h1{font-size:2.5rem;margin-bottom:.5rem;font-weight:700}.header p{font-size:1.2rem;opacity:.9}.demo-container{display:grid;grid-template-columns:1fr 1fr;gap:2rem}@media (max-width: 768px){.demo-container{grid-template-columns:1fr}.header h1{font-size:2rem}.app{padding:1rem}}.card{background:#fff;border-radius:16px;padding:2rem;box-shadow:0 10px 30px #0000001a;transition:transform .2s ease}.card:hover{transform:translateY(-2px)}.card h2{color:#333;margin-bottom:1.5rem;font-size:1.5rem;font-weight:600}.controls{display:flex;flex-direction:column;gap:1.5rem}.control-group{display:flex;flex-direction:column;gap:.5rem}.control-group label{font-weight:500;color:#555;font-size:.9rem}.control-row{display:flex;gap:1rem;align-items:center}.control-row input[type=range]{flex:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:6px;background:#e0e0e0;border-radius:3px;outline:none}.control-row input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:20px;height:20px;background:#667eea;border-radius:50%;cursor:pointer}.control-row input[type=range]::-moz-range-thumb{width:20px;height:20px;background:#667eea;border-radius:50%;cursor:pointer;border:none}.value-display{min-width:60px;text-align:right;font-weight:600;color:#333}.button-group{display:flex;gap:1rem;flex-wrap:wrap}.btn{padding:.75rem 1.5rem;border:none;border-radius:8px;font-weight:500;cursor:pointer;transition:all .2s ease;font-size:.95rem}.btn-primary{background:#667eea;color:#fff}.btn-primary:hover{background:#5a6fd8;transform:translateY(-1px)}.btn-primary:disabled{background:#ccc;cursor:not-allowed;transform:none}.btn-secondary{background:#6c757d;color:#fff}.btn-secondary:hover{background:#5a6268;transform:translateY(-1px)}.btn-danger{background:#dc3545;color:#fff}.btn-danger:hover{background:#c82333;transform:translateY(-1px)}.metrics{margin-top:2rem}.metrics-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:2rem}.metric-card{background:#f8f9fa;padding:1rem;border-radius:8px;text-align:center}.metric-value{font-size:2rem;font-weight:700;color:#667eea;display:block}.metric-label{font-size:.9rem;color:#666;margin-top:.5rem}.progress-bar{width:100%;height:8px;background:#e0e0e0;border-radius:4px;overflow:hidden;margin:.5rem 0}.progress-fill{height:100%;background:linear-gradient(90deg,#667eea,#764ba2);transition:width .3s ease;border-radius:4px}.status-indicator{display:flex;align-items:center;gap:.5rem;margin:1rem 0}.status-dot{width:12px;height:12px;border-radius:50%;animation:pulse 2s infinite}.status-dot.allowed{background:#28a745}.status-dot.blocked{background:#dc3545}@keyframes pulse{0%{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.7}to{transform:scale(1);opacity:1}}.history{max-height:300px;overflow-y:auto;border:1px solid #e0e0e0;border-radius:8px;padding:1rem;background:#f8f9fa}.history-item{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0;border-bottom:1px solid #e9ecef;font-size:.9rem}.history-item:last-child{border-bottom:none}.history-time{color:#666}.history-tokens{font-weight:600;color:#667eea}.history-status{padding:.25rem .5rem;border-radius:12px;font-size:.8rem;font-weight:500}.history-status.success{background:#d4edda;color:#155724}.history-status.failed{background:#f8d7da;color:#721c24}.simulation-controls{display:flex;gap:1rem;align-items:center;margin:1rem 0}.simulation-speed{display:flex;align-items:center;gap:.5rem;font-size:.9rem}.auto-request-controls{background:#f8f9fa;padding:1rem;border-radius:8px;margin:1rem 0}.footer{text-align:center;margin-top:3rem;padding:2rem;color:#fff;opacity:.8}.footer a{color:#fff;text-decoration:none;font-weight:500}.footer a:hover{text-decoration:underline}.input-row{display:flex;align-items:center}.number-input{width:100%;padding:.75rem 1rem;border:2px solid #e0e0e0;border-radius:8px;font-size:1rem;font-weight:500;color:#333;background:#fff;transition:all .2s ease;outline:none}.number-input:focus{border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;transform:translateY(-1px)}.number-input:hover{border-color:#b0b0b0}.control-group{margin-bottom:.5rem}.control-group label{margin-bottom:.5rem;display:block}@media (max-width: 768px){.number-input{padding:.5rem .75rem;font-size:.9rem}}
