:root{--topbar-height: 3.25rem;color:#f8fafc;background:#020617;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0;width:100vw;height:100dvh;overflow:hidden}#app{width:100vw;height:100dvh;overflow:hidden}button,input{font:inherit}button{border:0;border-radius:999px;padding:.75rem 1rem;color:#020617;background:#38bdf8;cursor:pointer}button.active{color:#e0f2fe;background:#0369a1}button.ghost{color:#e2e8f0;background:#ffffff14}.topbar{position:fixed;z-index:30;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:.5rem;height:var(--topbar-height);padding:0 .5rem;background:#020617f5}.topbar strong{min-width:0;padding:0 .25rem;text-align:center;white-space:nowrap}.topbar-actions{display:flex;align-items:center;gap:.5rem;min-width:0;flex:0 1 auto}#connectionBadge{flex:0 1 auto;max-width:min(42vw,18rem);border-radius:999px;padding:.4rem .75rem;color:#bae6fd;background:#0ea5e929;font-size:.875rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tool-menu-button{flex:0 0 auto;width:2.5rem;height:2.5rem;padding:0;color:#e0f2fe;background:#0369a1;font-size:1rem;font-weight:700}.panel{display:grid;place-content:center;height:100dvh;overflow:hidden;padding:2rem;text-align:center}.panel h1{margin:0 0 .75rem;font-size:clamp(2rem,7vw,4rem)}.panel p{color:#cbd5e1}#codeForm{display:flex;justify-content:center;gap:.75rem;margin-top:1.5rem}#codeInput{width:min(22rem,55vw);border:1px solid rgb(148 163 184 / .4);border-radius:999px;padding:.8rem 1rem;color:#f8fafc;background:#0f172ae6;text-transform:uppercase}.receiver{position:relative;width:100vw;height:100dvh;overflow:hidden;background:#000}.receiver-stage{position:absolute;top:var(--topbar-height);right:0;bottom:0;left:0;overflow:hidden}.receiver-stage video,.receiver-stage canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.receiver-stage video{z-index:0;opacity:0;object-fit:contain;pointer-events:none}#videoCanvas{z-index:1;background:#111827}#annotationCanvas{z-index:10;touch-action:none}.empty{position:absolute;z-index:20;top:0;right:0;bottom:0;left:0;display:grid;place-content:center;padding:2rem;text-align:center;background:radial-gradient(circle,#0f172ad1,#020617f0)}.empty h2{margin:0 0 .5rem;font-size:clamp(1.75rem,4vw,3rem)}.empty p{margin:0;color:#cbd5e1}.open-choice-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem;margin-top:1.25rem}.open-choice-button{display:inline-flex;align-items:center;justify-content:center;margin-top:1rem;border-radius:999px;padding:.85rem 1.2rem;min-width:9rem;border:0;font-weight:700;cursor:pointer;text-decoration:none}.open-choice-button.primary{color:#020617;background:#38bdf8}.open-choice-button.secondary{color:#e2e8f0;background:#ffffff1f}.sheet-backdrop{position:fixed;z-index:38;top:0;right:0;bottom:0;left:0;background:#00000014}.tool-sheet{position:fixed;z-index:40;right:0;bottom:0;left:0;display:flex;flex-direction:column;gap:.15rem;max-height:min(75dvh,34rem);padding:1rem 1rem max(1rem,env(safe-area-inset-bottom));border-radius:1.5rem 1.5rem 0 0;color:#0f172a;background:#f8f7ff;box-shadow:0 -1rem 3rem #00000047}.sheet-handle{width:2rem;height:.25rem;margin:.25rem auto 1rem;border-radius:999px;background:#4b5563}.tool-sheet button{display:grid;grid-template-columns:2rem 1fr auto;align-items:center;gap:.75rem;width:100%;border-radius:.75rem;padding:.75rem .5rem;color:#111827;background:transparent;text-align:left}.tool-sheet>button.active:after{content:"✓";font-size:1.1rem}.tool-sheet>button.permission-disabled{opacity:.38}.tool-sheet>button.permission-disabled:after{content:"권한 필요";color:#64748b;font-size:.78rem}.tool-sheet button span:first-child{display:inline-grid;place-items:center;font-size:1.25rem}.color-picker-row{display:grid;grid-template-columns:2rem 1fr auto;align-items:center;gap:.75rem;padding:.85rem .5rem .35rem;color:#111827;cursor:pointer}.color-preview{width:1.75rem;height:1.75rem;border:2px solid #111827;border-radius:999px}.color-picker-row input{width:2.4rem;height:2rem;border:0;padding:0;background:transparent;cursor:pointer}@media(max-width:420px){:root{--topbar-height: 3rem}button.ghost{padding:.45rem .65rem;font-size:.8rem}.topbar{gap:.35rem}.topbar strong{font-size:.9rem}#connectionBadge{max-width:8.5rem;padding:.35rem .5rem;font-size:.75rem}.tool-menu-button{width:2.3rem;height:2.3rem}}.hidden{display:none}
