.studio-launch{width:100%;text-align:left;border:1px solid #9c7f5b;border-radius:8px;background:#3b3127;color:#f5e1c1;font:inherit;font-weight:600;padding:13px 14px;cursor:pointer;min-height:48px}.studio-launch span{display:block;font-size:11px;color:#d8c7b4;font-weight:400}.studio-launch+.check{margin-top:13px}.studio-shortcut{margin:8px 0 14px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.studio-shortcut button{min-height:42px}
#record-studio{box-sizing:border-box;width:min(1100px,96vw);max-width:100%;max-height:93dvh;margin:auto;padding:0;border:1px solid #514a40;border-radius:16px;background:#202224;color:#f4eee4;box-shadow:0 24px 80px #0009;color-scheme:dark}#record-studio::backdrop{background:#0a0c0ed1}#record-studio *{box-sizing:border-box}.rs-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px clamp(14px,3vw,27px);border-bottom:1px solid #43403c}.rs-head h2{font-size:clamp(19px,2.6vw,26px);margin:0;line-height:1.3}.rs-head small{font-size:10px;color:#c6a278;letter-spacing:.12em}.rs-head button,.rs-actions button,.rs-notes button,.rs-toolbar button,.rs-guide button,.rs-wipe button,#rs-src-choose{border:1px solid #625b52;border-radius:6px;background:#2e3032;color:#f5e8da;min-height:42px;padding:6px 12px;cursor:pointer}.rs-head button:disabled,#record-studio button:disabled{opacity:.5;cursor:default}.rs-main{padding:14px clamp(13px,2.4vw,25px) 20px}.rs-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;border:0;margin:0 0 14px;padding:0}.rs-modes legend,.rs-label{font-weight:600;font-size:13px;margin:0 0 8px}.rs-modes label{position:relative;cursor:pointer}.rs-modes span{display:flex;align-items:center;justify-content:center;border:1px solid #4e4a44;min-height:46px;text-align:center;border-radius:7px;background:#292a2c;font-size:13px;font-weight:600;padding:5px}.rs-modes input{opacity:0;position:absolute;inset:0;width:100%;height:100%;margin:0;cursor:pointer}.rs-modes input:checked+span{background:#453827;border-color:#c89e68;color:#ffe0b9}.rs-modes input:focus-visible+span{outline:2px solid #ffdbac}.rs-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(280px,.95fr);gap:clamp(12px,2vw,24px)}.rs-monitor{margin:0;min-width:0}.rs-monitor figcaption{display:flex;justify-content:space-between;margin:0 0 6px;font-size:11px;color:#c5b9a7}.rs-monitor figcaption strong{color:#ead4b5}.rs-video{background:#151619;display:grid;place-items:center;min-width:0;min-height:145px;max-height:48dvh;border-radius:8px;overflow:hidden;border:1px solid #43403b}.rs-surface{position:relative;width:100%;max-width:min(100%,calc(var(--rs-ratio,1.7778) * 47dvh));aspect-ratio:var(--rs-ratio,1.7778);touch-action:manipulation}.rs-surface[data-adjust=true]{touch-action:none;cursor:crosshair}.rs-surface canvas{display:block;width:100%;height:100%;position:absolute;inset:0}.rs-placeholder{position:absolute;top:9px;left:9px;background:#17191dcc;color:#ece0d2;border-radius:5px;padding:4px 8px;font-size:11px;pointer-events:none}.rs-config{min-width:0}.rs-toolbar,.rs-actions,.rs-sound,.rs-corners,.rs-note-actions{display:flex;align-items:center;gap:7px 12px;flex-wrap:wrap}.rs-toolbar label,.rs-wipe label,.rs-notes label{font-size:12px;color:#dfd2c0}.rs-toolbar select,.rs-wipe select{font:inherit;min-height:39px;max-width:100%;margin:2px 0 8px}.rs-sound{font-size:13px;margin:8px 0}.rs-sound label{display:flex;align-items:center;gap:6px;min-height:36px}.rs-sound input,#rs-solid{width:17px;height:17px;accent-color:#d4a56c}.rs-notes,.rs-wipe,.rs-guide{border:1px solid #49443f;border-radius:8px;padding:10px 12px;margin:9px 0;background:#28292a}.rs-notes summary,.rs-guide summary{font-size:13px;font-weight:600;cursor:pointer;line-height:1.5;min-height:30px;display:list-item}.rs-notes textarea,.rs-read{display:block;width:100%;height:clamp(120px,19dvh,240px);font:16px/1.72 system-ui,sans-serif;border:1px solid #59534c;padding:10px;border-radius:6px;color:#fff4e5;background:#17191a;resize:vertical}.rs-read{white-space:pre-wrap;overflow:auto;overscroll-behavior:contain;margin:0;resize:none}.rs-note-actions{margin-top:7px}.rs-note-actions button{min-height:37px;font-size:12px}.rs-note-actions input,.rs-wipe input[type=range]{max-width:116px;accent-color:#d5aa74;min-height:34px;vertical-align:middle}.rs-help,.rs-guide p,.rs-guide li{font-size:12px;line-height:1.65;color:#c7beaf;margin:6px 0}.rs-foot{border-top:1px solid #47423c;margin-top:12px;padding-top:10px;display:flex;justify-content:space-between;align-items:center;gap:8px 15px;flex-wrap:wrap}.rs-foot p{margin:0;flex:1;min-width:170px;font-size:12px;color:#dbccba}.rs-actions #rs-start{background:#a95645;border-color:#d58973;color:white;font-weight:700}.rs-actions #rs-stop{background:#efe0c9;color:#32271e;font-weight:bold}.rs-timer{font-variant-numeric:tabular-nums}.rs-guide a{color:#e8be89}.rs-guide p+p{margin-top:8px}#record-studio [hidden]{display:none!important}#rs-file{width:100%;font:inherit;font-size:12px;margin:5px 0;min-height:40px}#rs-source-hint{overflow-wrap:anywhere}.rs-note-actions select{width:auto;min-height:36px;margin:0}.rs-wipe .rs-corners button{padding:4px 8px;min-height:36px}.rs-wipe .rs-label{margin-bottom:4px}#rs-camera-state{font-size:12px}
@media(max-width:700px){#record-studio{width:100vw;max-height:100dvh;border-radius:0;margin:0 auto;border:0;overscroll-behavior:contain}.rs-head{padding:10px 13px}.rs-main{padding:10px 12px 12px}.rs-grid{grid-template-columns:minmax(0,1fr);gap:8px}.rs-video{max-height:34dvh;min-height:120px}.rs-surface{max-width:min(100%,calc(var(--rs-ratio,1.7778) * 33dvh))}.rs-modes{gap:5px;margin-bottom:9px}.rs-modes span{font-size:12px;min-height:42px}.rs-note-actions{gap:4px 7px}.rs-actions button{min-height:44px}.rs-foot{position:sticky;bottom:0;padding:7px 0 max(7px,env(safe-area-inset-bottom));background:#202224;z-index:2}.rs-foot p{flex-basis:100%;line-height:1.4}.rs-notes textarea,.rs-read{height:18dvh;min-height:110px}.rs-help{font-size:12px}}
@media(max-height:540px) and (min-width:650px){#record-studio{max-height:100dvh}.rs-video{max-height:55dvh}.rs-surface{max-width:min(100%,calc(var(--rs-ratio,1.7778)*54dvh))}}

.studio-top{margin-top:-2px}.studio-top span{font-size:11px;color:var(--muted)}

@media(max-width:700px){
 #record-studio.rs-reading .rs-modes,#record-studio.rs-reading .rs-guide,#record-studio.rs-reading .rs-monitor .rs-toolbar,#record-studio.rs-reading #rs-wipe,#record-studio.rs-reading #rs-source-panel{display:none}
 .rs-reading .rs-grid{display:flex;flex-direction:column;gap:7px}.rs-reading .rs-config{display:contents}.rs-reading .rs-notes{order:-2;margin:0}
 .rs-reading .rs-monitor{order:0}.rs-reading .rs-sound{order:1;margin:0}.rs-reading .rs-monitor figcaption{margin-bottom:3px}
 .rs-reading .rs-video{max-height:28dvh;min-height:110px}.rs-reading .rs-surface{max-width:min(100%,calc(var(--rs-ratio,1.7778)*27dvh))}
 .rs-reading .rs-read{height:19dvh}.rs-reading .rs-foot{margin-top:6px}.rs-reading .rs-note-actions{gap:3px 6px}
}
.record-bar button,#rs-pause { min-height:44px; }
.record-bar .pause-capture { background:transparent; border:1px solid #b69479; color:#f6dfc2; }
.record-bar[data-paused="true"] .record-dot { border-radius:0; background:linear-gradient(to right,#eac78f 0 34%,transparent 34% 66%,#eac78f 66%); }
@media (max-width:440px) {
  .record-bar { gap:8px; padding:6px 8px; }
  .record-bar button { padding:8px 10px; }
  #record-studio .rs-actions { flex-wrap:wrap; }
}

.rs-outfit{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:12px 0 18px;font-size:14px}.rs-outfit select{min-height:44px;max-width:100%;margin:0;font-size:14px;flex:1;min-width:160px}.rs-outfit [data-outfit-status]{width:100%;font-size:12px;color:#c7beaf}.studio-dock{position:fixed;bottom:max(18px,env(safe-area-inset-bottom));right:24px;z-index:15}.studio-dock button{min-height:52px;padding:12px 24px;font:700 15px/1.5 var(--font);background:var(--accent);color:var(--ink);border:1px solid #f7d5aa;border-radius:14px;box-shadow:0 6px 24px #0008}.studio-dock span{color:#8e342b;margin-right:8px}body:has(#record-studio[open]) .studio-dock,body:has(.record-bar:not([hidden])) .studio-dock,.stage-mode .studio-dock{display:none}.workspace{padding-bottom:100px}@media(max-width:740px){.studio-dock{right:12px;left:12px;bottom:max(10px,env(safe-area-inset-bottom));padding:0}.studio-dock button{width:100%;min-height:54px}.rs-outfit{gap:6px}.rs-outfit select{flex-basis:calc(100% - 92px);min-width:0}.workspace{padding-bottom:100px}}
.studio-mobile-entry{display:none}
.live-screen-mode .studio-dock,.live-screen-mode .studio-mobile-entry,.stage-mode .studio-mobile-entry{display:none}
@media(max-width:740px){
  .studio-mobile-entry{display:block;position:sticky;top:0;z-index:14;padding:8px 16px;background:#17191cf5}
  .studio-mobile-entry button{width:100%;min-height:52px;padding:10px 14px;border:1px solid #f7d5aa;border-radius:12px;background:var(--accent);color:var(--ink);font:700 16px/1.45 var(--font);display:flex;align-items:center;justify-content:space-between;gap:10px}
  .studio-mobile-entry span{font-size:12px;font-weight:500}
  body:has(#record-studio[open]) .studio-mobile-entry,body:has(.record-bar:not([hidden])) .studio-mobile-entry{visibility:hidden}
  .studio-dock{display:none}
}

/* Recording shortcuts remain outside the encoded program canvas. */
.rs-shortcuts-body{padding:0 14px 14px}.rs-shortcuts-enabled{display:flex;align-items:center;gap:9px;min-height:44px;font-size:14px}.rs-shortcuts-enabled input{width:18px;height:18px;margin:0}.rs-shortcuts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:8px 0}.rs-shortcuts-grid label{display:grid;gap:6px;min-width:0;font-size:14px}.rs-shortcuts-grid select{width:100%;min-height:44px;font-size:16px}.rs-shortcuts-body button{min-height:44px;font-size:14px}.rs-shortcut-hint{font-size:13px;line-height:1.6;color:var(--muted,#c7beaf);margin:6px 0}.rs-shortcuts [data-shortcut-status]:empty{display:none}