*{box-sizing:border-box;margin:0;padding:0}:root{--bg-primary: #1a1a1a;--bg-secondary: #2d2d2d;--text-primary: #ffffff;--text-secondary: #a0a0a0;--accent: #4a9eff;--accent-hover: #6ab0ff;--danger: #ff4a4a;--success: #4aff6a;--warning: #ffaa4a}html,body{height:100%;overflow:hidden}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;background-color:var(--bg-primary);color:var(--text-primary)}#app{display:flex;flex-direction:column;height:100%;max-width:100vw;overflow:hidden}.header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background-color:var(--bg-secondary);flex-shrink:0}.header h1{font-size:1.2rem;font-weight:600}.header-buttons{display:flex;align-items:center;gap:8px}.help-btn{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:2px solid var(--text-primary);border-radius:50%;color:var(--text-primary);font-size:1rem;font-weight:700;text-decoration:none;cursor:pointer}.settings-btn{background:none;border:none;color:var(--text-primary);font-size:1.5rem;cursor:pointer;padding:4px 8px}.video-container{flex:1;position:relative;background-color:#000;overflow:hidden}.video-container video{width:100%;height:100%;object-fit:contain}.volume-meter{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:20px;height:60%;background-color:#00000080;border-radius:10px;overflow:hidden;display:flex;flex-direction:column-reverse}.volume-fill{width:100%;background:linear-gradient(to top,var(--success),var(--warning),var(--danger));transition:height .05s ease-out}.volume-threshold{position:absolute;left:0;right:0;height:2px;background-color:var(--accent)}.status-overlay{position:absolute;top:12px;left:12px;padding:8px 16px;background-color:#000000b3;border-radius:8px;font-size:.9rem}.status-overlay.recording{background-color:#ff4a4acc}.status-overlay.capturing{background-color:#ffaa4acc}.status-overlay.looping{background-color:#4aff6acc;color:#000}.controls{display:flex;gap:12px;padding:16px;background-color:var(--bg-secondary);flex-shrink:0}.btn{flex:1;padding:16px 24px;border:none;border-radius:12px;font-size:1rem;font-weight:600;cursor:pointer;transition:background-color .2s,transform .1s}.btn:active{transform:scale(.98)}.btn-primary{background-color:var(--accent);color:#fff}.btn-primary:hover{background-color:var(--accent-hover)}.btn-danger{background-color:var(--danger);color:#fff}.btn-secondary{background-color:var(--bg-primary);color:var(--text-primary);border:2px solid var(--text-secondary)}.btn:disabled{opacity:.5;cursor:not-allowed}.settings-panel{position:fixed;top:0;right:-100%;width:100%;max-width:400px;height:100%;background-color:var(--bg-secondary);transition:right .3s ease;z-index:100;display:flex;flex-direction:column}.settings-panel.open{right:0}.settings-header{display:flex;justify-content:space-between;align-items:center;padding:16px;border-bottom:1px solid var(--bg-primary)}.settings-header h2{font-size:1.2rem}.close-btn{background:none;border:none;color:var(--text-primary);font-size:1.5rem;cursor:pointer}.settings-content{flex:1;padding:16px;overflow-y:auto}.setting-group{margin-bottom:24px}.setting-group label{display:block;margin-bottom:8px;color:var(--text-secondary);font-size:.9rem}.setting-group input[type=text],.setting-group input[type=number]{width:100%;padding:12px;border:2px solid var(--bg-primary);border-radius:8px;background-color:var(--bg-primary);color:var(--text-primary);font-size:1rem}.setting-group input:focus{outline:none;border-color:var(--accent)}.setting-group input[type=range]{width:100%;margin-top:8px}.setting-value{text-align:right;font-size:.85rem;color:var(--text-secondary);margin-top:4px}.setting-toggle{display:flex;justify-content:space-between;align-items:center}.setting-toggle label{margin-bottom:0}.setting-toggle input[type=checkbox]{width:20px;height:20px;cursor:pointer}.setting-hint{font-size:.8rem;color:var(--text-secondary);margin-top:-16px;margin-bottom:24px;line-height:1.4}.overlay-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;z-index:99;opacity:0;pointer-events:none;transition:opacity .3s}.overlay-backdrop.visible{opacity:1;pointer-events:auto}.error-message{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;padding:24px;background-color:#000c;border-radius:12px;max-width:80%}.error-message h3{color:var(--danger);margin-bottom:12px}.back-btn{color:var(--accent);text-decoration:none;font-size:1rem}.help-content{flex:1;padding:16px;overflow-y:auto;-webkit-overflow-scrolling:touch}.help-section{margin-bottom:32px}.help-section h2{font-size:1.1rem;margin-bottom:12px;color:var(--accent)}.help-section p{color:var(--text-secondary);line-height:1.6;margin-bottom:12px}.help-section ol,.help-section ul{color:var(--text-secondary);line-height:1.6;padding-left:20px;margin-bottom:12px}.help-section li{margin-bottom:8px}.setting-help{background-color:var(--bg-secondary);padding:12px;border-radius:8px;margin-bottom:12px}.setting-help h3{font-size:.95rem;margin-bottom:6px}.setting-help p{margin-bottom:0;font-size:.9rem}.platform-comparison{display:flex;flex-direction:column;gap:12px;margin:16px 0}.platform{background-color:var(--bg-secondary);padding:12px;border-radius:8px}.platform h3{font-size:.95rem;margin-bottom:8px;color:var(--accent)}.platform ul,.platform ol{margin-bottom:0;padding-left:18px}.platform li{font-size:.9rem}.note{font-size:.85rem;font-style:italic;color:var(--text-secondary)}.debug-link{color:var(--accent);text-decoration:none}.debug-link:hover{text-decoration:underline}
