*{box-sizing:border-box}:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.5;font-weight:400;color-scheme:light;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;padding:0;min-height:100vh}#root{min-height:100vh}h1,h2,h3,h4,h5,h6{font-weight:600;line-height:1.2}p{margin:.5rem 0}button{font-family:inherit}button,.btn{-webkit-user-select:none;user-select:none}html{scroll-behavior:smooth}:focus-visible{outline:2px solid #8b5cf6;outline-offset:2px}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}.app{min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);padding:1rem}.app-header{text-align:center;color:#fff;padding:2rem 1rem 1rem;margin-bottom:2rem}.app-header h1{font-size:2.5rem;margin:0 0 .5rem;font-weight:700;text-shadow:2px 2px 4px rgba(0,0,0,.2)}.subtitle{font-size:1.1rem;opacity:.95;margin:0}.app-main{max-width:800px;margin:0 auto;display:flex;flex-direction:column;gap:1.5rem;padding-bottom:3rem}.card{background:#fff;border-radius:16px;padding:1.5rem;box-shadow:0 4px 6px #0000001a,0 2px 4px #0000000f;transition:transform .2s,box-shadow .2s}.card:hover{transform:translateY(-2px);box-shadow:0 8px 12px #00000026,0 4px 6px #0000001a}.card h2{margin:0 0 1rem;font-size:1.5rem;color:#1f2937;border-bottom:2px solid #e5e7eb;padding-bottom:.5rem}.card h3{margin:1.5rem 0 .75rem;font-size:1.2rem;color:#374151}.status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.status-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:#f9fafb;border-radius:8px;border-left:4px solid #e5e7eb}.status-item .label{font-weight:600;color:#6b7280}.status-item .value{font-weight:600;padding:.25rem .75rem;border-radius:6px}.status-item .value.success{color:#059669;background:#d1fae5}.status-item .value.error{color:#dc2626;background:#fee2e2}.status-item .value.warning{color:#d97706;background:#fef3c7}.status-item .value.inactive{color:#6b7280;background:#f3f4f6}.error-message{margin-top:1rem;padding:1rem;background:#fee2e2;border-left:4px solid #dc2626;border-radius:8px;color:#dc2626;font-weight:500}.button-group{display:flex;gap:1rem;margin-bottom:1.5rem;flex-wrap:wrap}.btn{flex:1;min-width:150px;padding:1rem 1.5rem;font-size:1.1rem;font-weight:600;border:none;border-radius:12px;cursor:pointer;transition:all .2s;text-transform:uppercase;letter-spacing:.5px;box-shadow:0 2px 4px #0000001a}.btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 8px #00000026}.btn:active:not(:disabled){transform:translateY(0)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:linear-gradient(135deg,#10b981,#059669);color:#fff}.btn-danger{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff}.btn-secondary{background:linear-gradient(135deg,#8b5cf6,#7c3aed);color:#fff}.config-section{margin-top:1rem;padding-top:1rem;border-top:1px solid #e5e7eb}.checkbox-label{display:flex;align-items:center;gap:.75rem;margin-bottom:.75rem;cursor:pointer;font-weight:500;color:#374151}.checkbox-label input[type=checkbox]{width:20px;height:20px;cursor:pointer}.slider-label{display:block;font-weight:500;color:#374151;margin-top:1rem}.slider-label input[type=range]{width:100%;margin-top:.5rem;height:8px;border-radius:4px;background:#e5e7eb;outline:none;cursor:pointer}.slider-label input[type=range]::-webkit-slider-thumb{appearance:none;width:20px;height:20px;border-radius:50%;background:#8b5cf6;cursor:pointer;transition:all .2s}.slider-label input[type=range]::-webkit-slider-thumb:hover{transform:scale(1.2);background:#7c3aed}.detection-alert{padding:1.5rem;border-radius:12px;border-left:6px solid;animation:slideIn .3s ease-out}@keyframes slideIn{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}.detection-alert.fall{background:#fee2e2;border-color:#dc2626}.detection-alert.violent_movement{background:#fed7aa;border-color:#ea580c}.detection-alert.abnormal_motion{background:#fef3c7;border-color:#d97706}.detection-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.detection-type{font-size:1.25rem;font-weight:700;color:#1f2937}.confidence{font-size:1.1rem;font-weight:600;padding:.5rem 1rem;background:#0000001a;border-radius:8px}.detection-features{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.75rem;margin-top:1rem}.feature{display:flex;flex-direction:column;padding:.75rem;background:#fff;border-radius:8px;font-size:.9rem}.feature span:first-child{color:#6b7280;font-weight:500;margin-bottom:.25rem}.feature span:last-child{color:#1f2937;font-weight:700;font-size:1.1rem}.no-detection{display:flex;align-items:center;gap:1rem;padding:1.5rem;background:#d1fae5;border-radius:12px;border-left:6px solid #059669}.status-icon{font-size:2rem;color:#059669}.no-detection span:last-child{color:#047857;font-weight:600;font-size:1.1rem}.alerts-list{display:flex;flex-direction:column;gap:.75rem}.alert-item{display:grid;grid-template-columns:auto 1fr auto;gap:1rem;align-items:center;padding:1rem;border-radius:8px;border-left:4px solid;font-weight:500}.alert-item.fall{background:#fee2e2;border-color:#dc2626;color:#991b1b}.alert-item.violent_movement{background:#fed7aa;border-color:#ea580c;color:#9a3412}.alert-item.abnormal_motion{background:#fef3c7;border-color:#d97706;color:#92400e}.alert-time{font-family:monospace;font-size:.9rem}.alert-type{font-weight:600}.alert-confidence{font-weight:700}.info-content{color:#374151;line-height:1.6}.info-content ul{margin:1rem 0;padding-left:1.5rem}.info-content li{margin-bottom:.5rem}.info-content strong{color:#1f2937}.note{margin-top:1rem;padding:1rem;background:#fef3c7;border-left:4px solid #f59e0b;border-radius:8px;font-size:.9rem}.app-footer{text-align:center;color:#fff;padding:2rem 1rem;opacity:.9}.app-footer p{margin:.5rem 0}.tech-note{font-size:.9rem;opacity:.8}@media(max-width:640px){.app-header h1{font-size:2rem}.subtitle{font-size:1rem}.card{padding:1rem}.button-group{flex-direction:column}.btn{min-width:100%}.status-grid,.detection-features{grid-template-columns:1fr}.alert-item{grid-template-columns:1fr;gap:.5rem}}
