:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color:#1f2937;background-color:#f9fafb;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}#root{min-height:100vh}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}.page{max-width:860px;margin:0 auto;padding:2.5rem 1.25rem 4rem;display:flex;flex-direction:column;gap:1rem}.title{font-size:2rem;margin:0;letter-spacing:-.02em}.title .accent{color:#7c3aed}.subtitle{margin:0 0 .5rem;color:#4b5563}code{background:#ede9fe;color:#5b21b6;padding:.1em .35em;border-radius:5px;font-size:.9em}.toolbar{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid #d1d5db;background:#fff;color:#111827;font:inherit;font-weight:600;padding:.6rem 1.1rem;border-radius:10px;cursor:pointer;transition:background .15s,border-color .15s,transform .05s}.button:hover:not(:disabled){background:#f3f4f6;border-color:#9ca3af}.button:active:not(:disabled){transform:translateY(1px)}.button:disabled{opacity:.55;cursor:not-allowed}.file-name{color:#6b7280;font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stage{position:relative;border:1px solid #e5e7eb;border-radius:14px;overflow:hidden;background:#0f1115;min-height:200px}.stage canvas{display:block;max-width:100%;height:auto}.stage .stage-content{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;background:#0f11158c;color:#e5e7eb;font-size:.95rem;pointer-events:none}.stage .stage-content .status{font-weight:600}.stage .stage-content .error{color:#fda4af;max-width:80%;text-align:center;word-break:break-word}.stage .live-badge{position:absolute;top:10px;right:12px;background:#0f1115bf;color:#fca5a5;font-size:.75rem;font-weight:700;letter-spacing:.08em;padding:.25rem .6rem;border-radius:999px;pointer-events:none}.stage .webcam-source{position:fixed;left:-9999px;top:0;width:2px;height:2px;opacity:0;pointer-events:none}.legend{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.5rem 1.1rem}.legend li{display:flex;align-items:center;gap:.4rem;font-size:.9rem}.legend .dot{width:10px;height:10px;border-radius:3px;display:inline-block}.legend .empty{color:#6b7280}.hint{margin:1rem 0 0;color:#6b7280;font-size:.85rem;line-height:1.6}
