:root{--bg: #f4f5f7;--surface: #ffffff;--border: #dfe1e6;--text: #1f2329;--muted: #6b7280;--accent: #1d6fd8;--accent-soft: #e6f0fd;--danger: #d93025;--danger-soft: #fdecea;--viewer-bg: #e3e5e8;--radius: 8px;--rail-w: 72px;--panel-w: 320px;--header-h: 52px}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:14px;color:var(--text);background:var(--bg)}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}.app{height:100vh;display:grid;grid-template-rows:var(--header-h) 1fr;overflow:hidden}.header{display:flex;align-items:center;gap:16px;padding:0 16px;background:var(--surface);border-bottom:1px solid var(--border)}.header__title{font-weight:600;font-size:15px;white-space:nowrap}.header__title small{font-weight:400;color:var(--muted);margin-left:6px}.header__center{flex:1;display:flex;justify-content:center}.header__right{display:flex;align-items:center;gap:12px}.main{display:grid;grid-template-columns:var(--rail-w) 1fr var(--panel-w);min-height:0}.btn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid var(--border);border-radius:6px;background:var(--surface);white-space:nowrap}.btn:hover:not(:disabled){background:#f0f1f3}.btn--primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn--primary:hover:not(:disabled){background:#185fba}.btn--ghost{border-color:transparent;background:transparent}.btn--danger{color:var(--danger)}.btn--sm{padding:3px 8px;font-size:12px}.pager{display:flex;align-items:center;gap:8px}.pager__label{min-width:90px;text-align:center;font-variant-numeric:tabular-nums}.rail{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 0;background:var(--surface);border-right:1px solid var(--border);overflow-y:auto}.rail__sep{width:40px;height:1px;background:var(--border);margin:6px 0;flex-shrink:0}.rail__spacer{flex:1}.tool{width:56px;padding:6px 0 4px;display:flex;flex-direction:column;align-items:center;gap:2px;border:1px solid transparent;border-radius:var(--radius);background:transparent;flex-shrink:0}.tool:hover:not(:disabled){background:#f0f1f3}.tool--active,.tool--active:hover:not(:disabled){background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.tool__icon{font-size:18px;line-height:20px;height:20px}.tool__label{font-size:10.5px;color:var(--muted)}.tool--active .tool__label{color:var(--accent)}.tool--danger .tool__icon,.tool--danger .tool__label{color:var(--danger)}.swatches{display:grid;grid-template-columns:repeat(2,22px);gap:6px;flex-shrink:0}.swatch{width:22px;height:22px;border-radius:50%;border:2px solid var(--surface);box-shadow:0 0 0 1px var(--border);padding:0}.swatch--active{box-shadow:0 0 0 2px var(--accent)}.sizes{display:flex;flex-direction:column;gap:4px;flex-shrink:0}.size{width:44px;height:26px;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:6px;background:transparent}.size:hover{background:#f0f1f3}.size--active,.size--active:hover{border-color:var(--accent);background:var(--accent-soft)}.size__dot{border-radius:50%;background:currentColor}.stage{position:relative;min-width:0;min-height:0;display:flex;justify-content:center;padding:12px;background:var(--bg)}.viewer{height:100%;max-width:100%;overflow:auto;background:var(--viewer-bg);border-radius:var(--radius);outline:2px solid transparent;transition:outline-color .2s}.viewer--recording{outline:3px solid var(--danger);outline-offset:2px}.page{position:absolute;background:#fff;box-shadow:0 1px 4px #0003}.dropzone{align-self:center;width:min(480px,100%);padding:48px 32px;text-align:center;border:2px dashed var(--border);border-radius:12px;background:var(--surface);color:var(--muted)}.dropzone--over{border-color:var(--accent);background:var(--accent-soft)}.dropzone h2{margin:0 0 8px;color:var(--text);font-size:18px}.dropzone p{margin:0 0 20px}.dropzone__actions{display:flex;gap:8px;justify-content:center}.panel{display:flex;flex-direction:column;gap:12px;padding:12px;background:var(--surface);border-left:1px solid var(--border);overflow-y:auto}.card{border:1px solid var(--border);border-radius:var(--radius);padding:12px}.card__title{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.rec{display:flex;flex-direction:column;align-items:center;gap:10px}.rec__button{width:72px;height:72px;border-radius:50%;border:4px solid var(--danger-soft);background:var(--danger);display:flex;align-items:center;justify-content:center;transition:transform .1s}.rec__button:hover:not(:disabled){transform:scale(1.05)}.rec__button:after{content:"";width:26px;height:26px;border-radius:50%;background:#fff}.rec__button--stop:after{border-radius:4px;width:24px;height:24px}.rec__timer{font-size:28px;font-weight:600;font-variant-numeric:tabular-nums}.rec__timer--live{color:var(--danger)}.rec__meta{font-size:12px;color:var(--muted);min-height:16px}.rec__hint{font-size:12px;color:var(--muted);text-align:center;margin:0}.rec__error{font-size:12px;color:var(--danger);text-align:center}.live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--danger);margin-right:6px;animation:blink 1s infinite}@keyframes blink{50%{opacity:.2}}.switch{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer}.switch input{width:34px;height:18px;accent-color:var(--accent);cursor:pointer}.webcam{margin-top:10px;width:100%;aspect-ratio:4 / 3;border-radius:6px;background:#1f2329;object-fit:cover;transform:scaleX(-1)}.webcam-off{margin-top:10px;width:100%;aspect-ratio:4 / 3;border-radius:6px;background:#f0f1f3;color:var(--muted);display:flex;align-items:center;justify-content:center;text-align:center;font-size:12px;padding:12px}.recordings{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.recording{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:6px;border:1px solid var(--border)}.recording--selected{border-color:var(--accent);background:var(--accent-soft)}.recording__info{flex:1;min-width:0}.recording__date{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recording__meta{font-size:11.5px;color:var(--muted)}.recording__actions{display:flex;gap:2px}.icon-btn{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:6px;background:transparent;text-decoration:none;color:inherit;font-size:14px}.icon-btn:hover{background:#e9eaed}.icon-btn--danger{color:var(--danger)}.player{width:100%;margin-top:8px;border-radius:6px;background:#000}.empty{color:var(--muted);font-size:12.5px;margin:0}.storage{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:8px}.storage__bar{width:80px;height:6px;border-radius:3px;background:#e9eaed;overflow:hidden}.storage__fill{height:100%;background:var(--accent)}.storage__ok{color:#1e8e3e}.storage__warn{padding:2px 8px;border:1px solid #f2c94c;border-radius:6px;background:#fff8e1;color:#8a6100;font-size:12px}.storage__warn:hover{background:#ffefb8}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
