/* Mirrored from DesktopWorkspaceShell, RoomWorkspace and GrabDumpCameraPage.
   Sidebar 228px; header 64px; workspace padding 36px; content max 1180px.
   This is the only workspace/header layout sheet. No legacy layout overrides. */
:root{color-scheme:dark;--accent:#0ae448;--blue:#00bae2;forced-color-adjust:none;--bk:#0e100f;--surface:#181a19;--text:#fffce1;--border:#8b9383;--text-dim:#c0c3b5}

html,body{height:100%;margin:0}

body{font-family:'Segoe UI Variable Display','Segoe UI',system-ui,sans-serif;font-size:14px;font-weight:400;background:var(--bk);background-image:none;color:var(--text);overflow:hidden}

button,input,textarea{font:inherit}
button,a,input,summary{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:default;opacity:1}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--blue);outline-offset:4px}

[hidden],.hidden{display:none!important}

svg{width:22px;height:22px;flex:none;vertical-align:middle}

h1,h2,h3,h4,p{letter-spacing:normal;text-transform:none;margin-top:0}
h1{font-size:28px;line-height:1.25;font-weight:700}
h2{font-size:21px;line-height:1.3;font-weight:600}
p{line-height:1.5}

.desktop-shell{forced-color-adjust:none;display:grid;grid-template-columns:228px minmax(0,1fr);height:100dvh;min-height:0}

.desktop-sidebar{display:flex;flex-direction:column;min-height:0;width:228px;border-right:1px solid var(--border);background:var(--bk);padding:0}

.sidebar-brand{display:flex;padding:22px 20px 28px;align-items:center;height:92px}
.sidebar-brand img{display:block;width:188px;height:42px;object-fit:contain}

.desktop-sidebar nav{display:grid;gap:6px}

.desktop-destination{display:flex;align-items:center;gap:12px;text-align:left;padding:11px 12px;margin:0 12px;width:calc(100% - 24px);min-height:64px;border:0;border-radius:4px;background:transparent;color:var(--text)}

.desktop-destination>span{flex:1;min-width:0}
.desktop-destination strong{display:block;font-size:14px;line-height:1.4;font-weight:600}
.desktop-destination small{display:block;color:var(--text-dim);font-size:11px;line-height:1.45;margin-top:2px}
.desktop-destination.is-active{background:#0b2514;color:var(--accent)}
.desktop-destination:hover{background:#1c221c}
.desktop-destination .destination-hint{width:17px;height:17px;color:#c0c7b7}
.preferences-destination{margin-top:auto;margin-bottom:12px}

.desktop-main{display:grid;grid-template-rows:64px minmax(0,1fr);height:100dvh;min-width:0;min-height:0}

.desktop-header.topline{position:static;height:64px;min-height:64px;padding:0 24px;border-bottom:1px solid var(--border);background:var(--bk);display:flex;align-items:center;justify-content:space-between;gap:16px}

.device-name-button{display:flex;align-items:center;gap:8px;background:transparent;border:0;color:var(--accent);padding:0;min-width:0;font-size:14px}
.device-name-button strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.device-name-button svg{width:18px;height:18px}

.desktop-pages{overflow:auto;min-height:0;min-width:0;scrollbar-gutter:stable}

.desktop-page{min-height:100%;width:100%;min-width:0;margin:0;background:var(--bk)}

.room-workspace{max-width:1252px;margin:0 auto;padding:36px}

.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 8px}
.workspace-heading h1{display:flex;align-items:center;gap:12px;margin:0;font-size:28px}
.workspace-heading h1 svg{color:var(--accent);width:24px;height:24px}
[data-transfer-mode=anywhere] .workspace-heading h1 svg{color:var(--blue)}

#workspaceTagline{font-size:18px;font-weight:600;margin:0 0 8px}
#workspaceDescription{margin:0 0 24px;font-size:14px;line-height:1.5}

.native-panel{padding:22px;border:1px solid var(--border);border-radius:10px;background:transparent;min-width:0;text-align:left}

.native-panel h2{font-size:21px;margin:0 0 10px}
.native-panel p{font-size:14px;line-height:1.5;margin:0 0 22px}
.native-panel p:last-child{margin-bottom:0}

.room-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:20px;align-items:start}
.workspace-primary{display:grid;gap:20px;min-width:0}
.room-workspace:not(.has-room) .room-layout{grid-template-columns:1fr}

.room-only,.receiver-only{display:none!important}
.has-room .room-only{display:block!important}
.has-room .workspace-heading>.room-only{display:flex!important}
.has-room[data-role=receiver] .receiver-only{display:block!important}
.has-room[data-role=receiver] .workspace-files,.has-room[data-role=receiver] .sender-only{display:none!important}
.has-room .setup-only{display:none!important}

.room-setup{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;margin-top:20px}
.workspace-create-card{display:flex;flex-direction:column;min-height:270px}
.create-action{margin-top:auto}
.create-action p{margin:16px 0 12px}
.workspace-join-card{margin:0}
.room-join,.join-row{display:block;margin:0;padding:0;border:0;text-align:left}
.workspace-section-title{margin:0}
.workspace-section-title h2{margin:0 0 10px}
.room-join>p{margin:0 0 22px}

.join-row label{font-size:12px;display:block;margin:0 0 6px}
.join-row input{width:100%;max-width:none;display:block;height:56px;margin:0 0 22px;padding:12px 16px;background:var(--surface);border:0;border-bottom:1px solid #6d7669;border-radius:4px 4px 0 0;color:var(--text);font-size:16px;letter-spacing:normal;text-align:left}
.join-row input:focus{border-bottom:2px solid var(--accent);outline:0}
.join-row button{display:flex;width:max-content;max-width:100%;margin-bottom:10px}
.join-row>.role-explanation{margin:10px 0 0}

.cta,button.cta,.outlined-button,.text-button,.handoff-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:auto;max-width:100%;min-height:40px;margin:0;padding:10px 20px;border-radius:24px;line-height:1.4;font-size:14px;font-weight:500;letter-spacing:normal;text-transform:none;text-decoration:none;white-space:normal;box-shadow:none}

.cta,button.cta{background:var(--accent);border:1px solid transparent;color:#001807}
.cta:hover{background:#22ec5b}
.cta:disabled{background:#30332b;border-color:transparent;color:#969b8d}
.outlined-button,.handoff-actions button{background:transparent;border:1px solid var(--border);color:var(--accent)}
.outlined-button:hover,.handoff-actions button:hover{background:#122218}
.outlined-button:disabled{border-color:#40453c;color:#808578;background:transparent}
.text-button{background:transparent;border:0;color:var(--accent);padding:8px 12px}
.text-button:hover{background:#122218}
.icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;padding:8px;background:transparent;color:#c4ccbc;border:0;border-radius:24px}
.icon-button:hover{background:#232820}
.button-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.button-row svg,.cta svg,.outlined-button svg{width:18px;height:18px}

.handoff-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0}
.handoff-actions button{min-height:40px;padding:10px 20px}
.handoff-actions svg{width:18px;height:18px}
.stage-files-panel{display:block;border:0;background:none;padding:0;margin:18px 0 0}
.stage-files-panel:not(.has-staged){display:none}
.staged-file-list{max-height:180px;overflow:auto;display:block}
.staged-file-row{display:flex;gap:16px;align-items:center;margin:0;padding:10px 0;border:0;min-height:64px}
.staged-file-row>svg{color:var(--blue)}
.staged-file-row>div{min-width:0;flex:1}
.staged-file-row strong{font-size:16px;font-weight:400;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);margin:0 0 5px}
.staged-file-row span{font-size:14px;color:var(--text-dim)}
.staged-file-row .icon-button{flex:none}

.workspace-participants{background:var(--surface);padding:22px}
.workspace-participants h2{font-size:20px;font-weight:600;margin:0 0 12px}
.workspace-member{display:grid;grid-template-columns:28px minmax(0,1fr);column-gap:14px;padding:14px 0;min-height:72px}
.workspace-member>svg{color:var(--accent);grid-row:1/3;align-self:center}
.workspace-member strong{font-size:16px;font-weight:400;line-height:1.4;overflow-wrap:anywhere}
.workspace-member small{font-size:14px;line-height:1.5;color:var(--text-dim)}
.workspace-member small span{display:block}
.workspace-participants #workspaceParticipantList{max-height:302px;overflow:auto}
.room-entry-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:start;margin:18px 0 12px}
.entry-button-stack{display:flex;flex-direction:column;align-items:start;gap:4px}
.workspace-participants p{margin:8px 0;font-size:14px;line-height:1.5}
.workspace-participants .stage-requirement{font-weight:600}
.workspace-participants #endRoomBtn{margin:8px auto;display:flex}

.room-code-display{position:static;display:block;max-width:none;min-height:0;padding:22px;margin:0;text-align:left;background:none;box-shadow:none}
.room-code-display #roomReadyTitle{font-size:21px;font-weight:600;margin:0 0 10px}
.room-code-display #roomReadyDescription{font-size:14px;margin:0 0 22px}
.room-code-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.room-code-line .room-code{width:auto;min-height:0;margin:0;display:inline-flex;font-size:32px;letter-spacing:5px;font-weight:700;background:none;padding:0;border:0;color:var(--text);cursor:pointer;white-space:nowrap}
.room-code-line>strong{font-size:14px;flex:1;min-width:190px;font-weight:600}
.room-notice,.connection-status,.pair-error{border:1px solid var(--border);border-radius:8px;padding:16px;background:var(--surface);color:var(--text);font-size:14px;text-align:left;margin:0 0 16px}\n#pairError:not(.hidden){border:1px solid #ff5c5c!important;background:rgba(255,92,92,.12)!important;color:#ff8b8b!important;forced-color-adjust:none}
.browser-note{font-size:12px;color:var(--text-dim)}
#browserConnectionBtn{margin:16px 0 0}

.introduction{padding:40px}
.introduction-inner{max-width:1000px;margin:28px auto 0}
.introduction h1{font-size:32px;margin:0 0 6px}
.studio-signature{display:flex;align-items:center;gap:8px;margin:0 0 12px}
.studio-signature img{object-fit:cover;width:180px;height:44px}
.introduction h2{font-size:22px;font-weight:400;margin:0 0 10px}
.introduction-cards{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:32px}
.mode-card{padding:24px;border-radius:12px;border:1px solid #115c2a;background:#0d1b11}
.mode-card>svg{width:34px;height:34px;color:var(--accent);margin:0 0 20px}
.mode-card h3{font-size:24px;font-weight:700;margin:0 0 8px}
.mode-card h4{font-size:14px;color:var(--accent);font-weight:600;margin:0 0 14px}
.mode-card p{font-size:14px;line-height:1.5;margin:0}
.mode-card .browser-distinction{font-size:12px;margin-top:12px;color:var(--text-dim)}
.mode-card.anywhere-card{background:#0c1b1f;border-color:#085563}
.anywhere-card>svg,.anywhere-card h4{color:var(--blue)}
.introduction .intro-continue{min-height:48px;width:100%;margin-top:28px}
.intro-footnote{text-align:center;margin:14px 0 24px}

.history-page{padding:28px 32px}
.history-page h1{font-size:28px;font-weight:600;margin:0 0 24px}
.history-page .page-description{font-size:12px;color:var(--text-dim);margin:20px 0}
.empty-history{text-align:center;margin-top:100px;font-size:28px}
.history-row{display:flex;align-items:center;gap:16px;min-height:84px;border-bottom:1px solid #384033;padding:16px 0}
.history-row>svg{color:var(--blue)}
.history-row>div{flex:1;min-width:0}
.history-row strong{font-size:16px;font-weight:500;overflow-wrap:anywhere}
.history-row p{font-size:12px;color:var(--text-dim);margin:6px 0 0}
.history-row .text-button{font-size:12px;padding:8px}

.preferences-page{display:flex;flex-direction:column;height:100%;min-height:0}
.preferences-heading{padding:28px 32px 20px;border-bottom:1px solid var(--border)}
.preferences-heading h1{font-size:28px;font-weight:600;margin:0 0 5px}
.preferences-heading p{margin:0}
.preferences-layout{display:grid;grid-template-columns:210px minmax(0,1fr);flex:1;min-height:0}
.preferences-sections{border-right:1px solid var(--border);padding:24px 14px;display:flex;flex-direction:column;gap:5px}
.preferences-sections button{display:flex;align-items:center;gap:12px;padding:13px 14px;background:none;border:0;border-radius:4px;color:var(--text);text-align:left;font-size:14px}
.preferences-sections button.is-active{background:#0b2514;color:var(--accent)}
.preferences-content{padding:24px 36px 40px;overflow:auto}
.preferences-content>section{max-width:760px;margin:0 auto}
.preferences-content h2{font-size:24px;font-weight:400;margin:0 0 6px}
.preferences-content>section>p{color:var(--text-dim);margin:0 0 26px}
.device-name-setting{border:1px solid var(--border);padding:22px;border-radius:10px}
.device-name-setting label{display:block;margin-bottom:12px;font-weight:600}
.device-name-setting>div{display:flex;gap:12px}
.device-name-setting input,.native-dialog input{padding:12px;border:1px solid #59604f;border-radius:4px;background:var(--surface);color:var(--text);width:100%;min-width:0}
.device-name-setting button{padding:8px 16px;border:0;border-radius:24px;background:var(--accent);color:#001807}
.device-name-setting p{font-size:12px;margin:16px 0 0}
.preference-row,.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:76px;padding:16px 0;border-bottom:1px solid #384033}
.preference-row p{margin:6px 0 0;color:var(--text-dim)}
input[type=checkbox]{accent-color:var(--accent);width:18px;height:18px}
.preferences-footer{display:flex;flex-direction:column;align-items:center;gap:4px;border-top:1px solid var(--border);padding:10px}
.preferences-footer img{height:26px;width:auto}
.preferences-footer small{font-size:11px;color:var(--text-dim)}
.browser-tools h3{font-size:18px}
.browser-tools button{display:block;padding:12px 16px;margin:12px 0;background:none;border:1px solid var(--border);border-radius:24px;color:var(--accent)}

.native-dialog,.product-dialog{width:min(520px,calc(100% - 40px));max-height:calc(100dvh - 48px);overflow:auto;padding:24px;border:0;border-radius:24px;background:#252a22;color:var(--text);box-shadow:0 20px 80px #0006}
.native-dialog::backdrop,.product-dialog::backdrop{background:#0009}
.native-dialog h2,.product-dialog h2{font-size:24px;font-weight:400;margin:0 0 20px}
.dialog-heading{display:flex;align-items:start;justify-content:space-between;gap:20px}
.dialog-heading h2{margin:0}
.native-dialog .button-row,.product-dialog .button-row{justify-content:end;margin-top:24px}
.native-dialog .camera-participant-list{display:grid;gap:16px;margin-top:20px}
.camera-participant-list>span{display:flex;align-items:center;gap:12px;font-size:16px;line-height:1.5;padding:10px 0;border-bottom:1px solid #424b3b}
.native-dialog input{margin:0 0 16px}
.text-composer textarea{width:100%;min-height:160px;background:var(--bk);color:var(--text);border:1px solid var(--border);padding:12px}
.text-composer-actions,.touch-preference-actions{display:flex;gap:12px;justify-content:end;margin-top:20px}
.text-composer-actions button,.touch-preference-actions button{padding:10px 18px;border:1px solid var(--border);border-radius:24px;background:none;color:var(--text)}
.invite-panel{border-radius:16px;background:var(--surface);border-color:var(--border)}

body.in-room .desktop-shell{display:none}
.stage{height:100dvh;width:100%;margin:0;background:#000}
.stage #video{position:absolute;inset:110px 0 0;height:calc(100% - 110px);object-fit:contain}
.stage #ringCanvas{z-index:2}
.camera-toolbar{position:absolute;inset:0 0 auto;z-index:20;display:block;min-height:110px;padding:10px 16px;background:var(--bk);border:0;border-radius:0}
.camera-toolbar #topBar{position:static;display:block;background:none;padding:0;border:0;border-radius:0;box-shadow:none}
.camera-primary{display:flex;align-items:center;gap:8px;min-height:40px}
.camera-self-name{flex:1;min-width:0;max-width:none;font-size:16px;font-weight:700;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.camera-primary .camera-files{background:transparent;color:var(--accent);border:0;font-size:14px;white-space:nowrap;padding:8px}
.camera-files svg{width:18px;height:18px}
.camera-files #stagedSummary{margin:0;color:var(--accent);font-size:14px;font-weight:500;white-space:nowrap;max-width:none}
.camera-toolbar .icon-button{color:var(--text);padding:8px;min-width:40px;min-height:40px;border:0;background:none;position:relative}
.count-badge{position:absolute;top:0;right:0;border-radius:9px;padding:1px 5px;min-width:16px;color:#521413;background:#ffb4ab;font-size:11px;line-height:14px}
.camera-primary #exitBtn{border-radius:24px;white-space:nowrap;min-height:36px;padding:8px 16px;background:none;color:var(--text);font-size:14px}
.camera-code-line{display:flex;align-items:center;gap:8px;min-height:24px;margin-top:6px}
.camera-code-line .camera-room-code{border:0;min-height:24px;background:none;padding:0;font-size:16px;font-weight:700;color:var(--accent);white-space:nowrap}
.camera-code-line .camera-room-code svg{width:14px;height:14px}
.camera-code-line #cameraCodeHint{font-size:12px;font-weight:600;line-height:1.4}
.camera-instruction{display:block;font-size:12px;line-height:1.4;margin-top:2px}
.narrow-label{display:none}
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.camera-controls{position:absolute;bottom:70px;left:20px;right:20px;z-index:18;display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:center;color:var(--text);font-size:14px}
.camera-controls #senderProgress{background:#0e100fbf;padding:8px 12px;border-radius:6px}
.camera-controls button{background:var(--bk);border:1px solid #5f6b53;color:var(--text);border-radius:22px;padding:8px 14px}
.camera-controls #saveFolderBtn{display:none}
.gesture-status{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);padding:10px 14px;border:1px solid #46553d;border-radius:6px;background:#0e100fdf;color:var(--text);font-size:14px;font-weight:400;text-align:center;z-index:18}
.camera-setup-overlay{position:absolute;inset:110px 0 0;background:#0e100f99;z-index:21;display:flex;align-items:center;justify-content:center}
.camera-setup-panel{text-align:center;max-width:620px;margin:20px;padding:24px;background:var(--bk);border:0;border-radius:12px}
.camera-setup-panel h2{font-size:24px}
.camera-setup-panel button{margin:8px;padding:10px 18px;border:1px solid var(--border);border-radius:24px;background:none;color:var(--accent)}
.lighting-hint{position:absolute;top:128px;left:20px;max-width:min(620px,calc(100% - 40px));padding:14px 18px;background:var(--surface);border:1px solid #657457;border-left:3px solid var(--accent);border-radius:8px;font-size:14px;font-weight:400;z-index:19}
.toast{z-index:80;font-family:inherit;font-size:16px}
.touch-controls-panel{position:relative;min-height:100dvh;padding:110px 24px 24px;background:var(--bk);text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center}
.touch-controls-panel>.camera-toolbar{text-align:left}
.touch-controls-panel h3{font-size:26px;font-weight:600;margin:16px 0 0}
.touch-controls-panel>p{font-size:14px;line-height:1.5;margin:12px 0}
.touch-controls-panel #touchControlsStatus{font-size:20px;font-weight:600;margin-top:24px;max-width:640px}
.touch-controls-panel .touch-back{display:none}
.touch-controls-panel #touchReceiveBtn,.touch-controls-panel #touchSendBtn{margin-top:24px}
.touch-controls-panel #touchAddFilesBtn{display:none}

.completion-header{height:64px;display:flex;align-items:center;padding:0 24px;font-size:20px;border-bottom:1px solid #384033;color:var(--text)}
.send-notice{position:fixed;inset:0;z-index:75;background:var(--bk);display:flex;flex-direction:column;align-items:stretch;padding:0;overflow:auto}
.send-notice-panel{display:flex;flex-direction:column;align-items:center;max-width:720px;width:100%;min-height:calc(100dvh - 64px);margin:0 auto;padding:56px 28px 28px;border:0;border-radius:0;background:var(--bk);box-shadow:none;text-align:center}
.send-notice-panel::before{content:'✓';display:grid;place-items:center;border:3px solid var(--accent);width:48px;height:48px;border-radius:50%;font-size:28px;color:var(--accent);margin-bottom:20px}
.send-notice-panel h2{font-size:28px;font-weight:600;margin:0 0 14px}
.send-notice-panel>p{font-size:14px;line-height:1.5;margin:0 0 12px}
.send-notice-panel #sendNoticeProgress{font-size:14px;font-weight:400}
.send-notice-panel progress{width:100%;height:8px;margin:20px 0}
.send-notice-panel button{border:1px solid var(--border);border-radius:24px;padding:10px 20px;background:none;color:var(--accent);margin:8px}
.send-notice-panel #sendNoticeDone{margin-top:auto;background:var(--accent);color:#001807;border:0}
.send-notice-devices{width:100%;list-style:none;padding:0}
.send-notice-devices li{display:flex;justify-content:space-between;text-align:left;gap:20px;padding:14px 0;border-bottom:1px solid #384033}
.receive-screen{display:block;position:fixed;inset:0;z-index:65;padding:0;overflow:auto;background:var(--bk)}
.receive-card{max-width:720px;width:100%;min-height:calc(100dvh - 64px);margin:0 auto;padding:56px 28px 28px;border:0;background:none;box-shadow:none;border-radius:0}
.receive-summary{display:flex;flex-direction:column;align-items:center;gap:20px;text-align:center}
.receive-summary .receive-kicker{display:none}
.receive-summary h2{font-size:28px;font-weight:600;margin:0 0 14px}
.receive-status-icon{width:52px;height:52px;background:none;border:0;color:var(--accent);margin:0 auto}
.receive-status-icon svg{width:52px;height:52px}
.receive-sub{font-size:14px}
.receive-room-code{display:none}
.receive-file-list{margin:20px 0;max-height:none}
.receive-file-row{border-bottom:1px solid #384033;border-radius:0;background:none}
.receive-progress-wrap{margin-top:20px}
.receive-progress-wrap .progress-track{height:6px}
.receive-card #receiveDoneBtn{display:flex;margin:28px auto 0}
.receive-card #receiveNextBtn{display:block;margin:12px auto;border:1px solid var(--border);border-radius:24px;padding:10px 20px;background:none;color:var(--accent)}

.room-loading-overlay{position:fixed;inset:0;background:#0009;z-index:55;display:flex;align-items:center;justify-content:center}
.room-loading-panel{position:relative;display:flex;flex-direction:column;gap:16px;align-items:center;padding:36px 48px 28px;background:var(--surface);border:1px solid var(--border);border-radius:16px;min-width:min(320px,calc(100vw - 40px))}
.room-loading-cancel{position:absolute;top:10px;right:10px;box-sizing:border-box;width:36px;height:36px;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid var(--border);border-radius:50%;background:transparent;color:var(--text);font-family:Arial,sans-serif;font-size:28px;font-weight:400;line-height:1;cursor:pointer}
.room-loading-cancel span{display:block;transform:translateY(-1px)}
.room-loading-cancel:hover,.room-loading-cancel:focus-visible{background:var(--surface-raised,var(--surface));outline:2px solid var(--accent);outline-offset:2px}
.nearby-connect-prompt{padding:24px;border:1px solid var(--border);border-radius:10px;background:var(--surface);margin:20px 0}
.nearby-connect-prompt h2{font-size:24px}
.nearby-prompt-actions{display:flex;flex-direction:column;align-items:start;gap:10px}
.has-nearby-pending .room-layout,.has-nearby-pending .room-setup{display:none}
.invite-dialog{z-index:70}

@media(max-width:1127px){.room-layout{grid-template-columns:1fr}
.has-room .workspace-primary{display:contents}
.has-room #roomCodeDisplay{order:1}
.has-room #workspaceParticipants{order:2}
.has-room .workspace-files,.has-room #workspaceReceivePanel{order:3}
.room-setup{grid-template-columns:1fr}
.workspace-create-card{min-height:0}
.create-action{margin-top:0}
}

@media(max-width:1047px){.preferences-layout{display:flex;flex-direction:column}
.preferences-sections{border-right:0;border-bottom:1px solid var(--border);flex-direction:row;overflow:auto;padding:8px 20px;flex:none}
.preferences-sections button{white-space:nowrap}
.preferences-page{height:auto;min-height:100%}
.preferences-layout{flex:1 0 auto}
.preferences-content{flex:1 0 auto;overflow:visible}
}

@media(max-width:760px){.desktop-shell{grid-template-columns:76px minmax(0,1fr)}
.desktop-sidebar{width:76px}
.sidebar-brand{padding:20px 10px;height:80px}
.sidebar-brand img{width:56px;height:32px;object-fit:contain}
.desktop-destination{padding:12px;margin:0 8px;width:60px;justify-content:center}
.desktop-destination>span,.desktop-destination .destination-hint{display:none}
.desktop-destination>svg{width:24px;height:24px}
.desktop-destination.preferences-destination{margin-bottom:8px}
.room-workspace{padding:20px}
.desktop-header.topline{padding:0 16px}
.introduction{padding:22px}
.introduction-inner{margin-top:28px}
.introduction-cards{grid-template-columns:1fr;gap:16px}
.history-page{padding:24px 20px}
.preferences-heading{padding:24px 20px 20px}
.preferences-content{padding:24px 20px 40px}
.history-row{flex-wrap:wrap}
.history-row>div{min-width:calc(100% - 70px)}
}

@media(max-width:520px){.desktop-shell{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 64px}
.desktop-sidebar{grid-row:2;display:flex;flex-direction:row;align-items:center;width:100%;height:64px;padding:0 4px;border:0;border-top:1px solid #55604a;background:var(--bk)}
.sidebar-brand{display:none}
.desktop-sidebar nav{display:contents}
.desktop-destination,.desktop-destination.preferences-destination{display:flex;flex:1;flex-direction:column;gap:3px;width:auto;height:60px;min-height:0;padding:6px 2px;margin:0;border-radius:0}
.desktop-destination>span{display:block;flex:none}
.desktop-destination strong{font-size:10px;line-height:1.2}
.desktop-destination small{display:none}
.desktop-destination>svg{width:21px;height:21px}
.desktop-main{grid-row:1;height:100%}
.desktop-pages{scrollbar-gutter:auto;overscroll-behavior-y:contain}
.desktop-header.topline{height:58px;min-height:58px}
.desktop-main{grid-template-rows:58px minmax(0,1fr)}
.workspace-heading h1{font-size:28px}
.native-panel{padding:22px}
.room-entry-actions{flex-direction:column}
.room-code-line .room-code{width:auto;min-height:0;margin:0;display:inline-flex;font-size:30px}
.room-code-line>strong{flex-basis:100%;font-size:13px}
.introduction h1{font-size:28px}
.mode-card{padding:24px}
.studio-signature img{width:150px}
.device-name-setting>div{flex-direction:column}
.preferences-sections{padding:8px;gap:0}
.preferences-sections button{padding:10px;font-size:12px;gap:6px}
.preferences-sections button svg{width:16px;height:16px}
.camera-toolbar{padding:8px 12px;min-height:110px}
.camera-primary{gap:2px}
.camera-self-name{font-size:14px}
.camera-primary .camera-files{padding:8px 4px;font-size:12px}
.camera-files #stagedSummary{font-size:12px}
.camera-files svg{display:none}
.camera-primary .icon-button{min-width:34px;min-height:36px;padding:6px}
.camera-primary #exitBtn{min-height:34px;padding:7px 10px;font-size:12px}
.camera-primary #exitBtn svg{width:16px;height:16px}
.camera-primary .wide-label{display:none}
.camera-primary .narrow-label{display:inline}
.camera-code-line{gap:8px}
.camera-code-line #cameraCodeHint{font-size:11px;flex:1;min-width:0}
.camera-code-line .camera-room-code{font-size:14px}
.camera-instruction{font-size:12px}
.lighting-hint{top:124px;left:12px;max-width:calc(100% - 24px);font-size:13px}
.camera-controls{bottom:70px;left:12px;right:12px;font-size:12px}
.camera-controls #senderProgress{padding:6px 10px}
.gesture-status{font-size:12px}
.touch-controls-panel{padding:110px 20px 24px}
.touch-controls-panel #touchControlsStatus{font-size:18px}
.receive-card,.send-notice-panel{padding:40px 20px 24px}
.receive-card .receive-summary h2,.send-notice-panel h2{font-size:28px}
}

/* Mobile browsers shrink dynamic viewport units while their controls or the
   keyboard are active.  The navigation grid must keep its original footprint
   instead of being pushed above those controls. */
@media(max-width:520px){
 .desktop-shell{height:100svh;min-height:100svh}
 .desktop-main{height:100%;min-height:0}
}


body.in-room[data-room-role=receiver] .sender-only{display:none!important}

.touch-mode-symbol svg{width:48px;height:48px;color:var(--accent)}




.camera-controls #senderProgress{width:auto;max-width:100%;text-align:center}

.room-code-line .room-copy-button{margin-left:-8px;padding:8px;color:var(--text-dim)}

.completion-file-list{list-style:none;padding:0;width:100%;flex:1;margin:20px 0;min-height:100px;text-align:left}

.completion-file-list li{display:flex;align-items:center;gap:16px;min-height:56px;padding:12px 0}

.completion-file-list li>svg:first-child{color:var(--blue)}

.completion-file-list li>span{flex:1;min-width:0;overflow-wrap:anywhere}

.completion-file-list li>svg:last-child{color:var(--accent)}

.send-notice-panel[data-state=transferring]::before{content:'⇄';border:0;font-size:48px}

.send-notice-panel[data-state=complete] progress{display:none}

.send-notice-panel #sendNoticeProgress{white-space:pre-line;line-height:1.6}

/* Shared 1.1.30 room lobby: one surface, with explicit camera entry. */
.has-room .room-layout{background:var(--surface);border-radius:14px;padding:28px;gap:24px 32px}
.has-room .workspace-primary{display:contents}
.has-room .room-lobby-title{grid-column:1/-1;margin:0;font-size:24px;font-weight:700}
.has-room #roomCodeDisplay{grid-column:1/-1;padding:0 0 24px;border:0;border-bottom:1px solid #384033;background:none;border-radius:0}
.has-room #roomReadyDescription{display:none}
.has-room .workspace-files,.has-room #workspaceReceivePanel{grid-column:1;grid-row:3;border:0;padding:0;background:none}
.has-room .workspace-participants{grid-column:2;grid-row:3;border:0;padding:0;background:none}
.has-room #roomCodeDisplay,.has-room #workspaceParticipants,.has-room .workspace-files,.has-room #workspaceReceivePanel{order:0;border-radius:0}
.has-room .workspace-files .handoff-actions,.has-room .staged-file-row button{display:none}
.has-room .workspace-participants .room-entry-actions{border-top:1px solid #384033;padding-top:20px;margin-top:20px}
.has-room .workspace-participants #endRoomBtn{border-top:1px solid #384033;border-radius:0;padding-top:16px;justify-content:start;margin:16px 0 8px;width:100%}
@media(max-width:1127px){
 .has-room .room-layout{grid-template-columns:minmax(0,1fr);padding:18px;gap:20px}
 .has-room .workspace-files,.has-room #workspaceReceivePanel,.has-room .workspace-participants{grid-column:1;grid-row:auto}
 .has-room .workspace-participants{border-top:1px solid #384033;padding-top:20px}
}
@media(max-width:600px){
 .room-code-line>strong{flex-basis:100%;min-width:0;line-height:1.5}
 .room-code-line .code-arrow{display:none}
 .room-code-line .room-code{font-size:clamp(24px,7vw,32px);letter-spacing:4px}
}

/* Receive progress, errors and completion share the full-page vertical shell. */
body.in-room .receive-screen{display:block;padding:0;overflow-x:hidden;overflow-y:auto;height:100dvh}
body.in-room .receive-screen.hidden{display:none}
.receive-screen .completion-header{display:block;width:100%;box-sizing:border-box;flex:none}
.receive-screen .receive-card{box-sizing:border-box;width:min(760px,100%);max-height:none;min-height:calc(100dvh - 64px);overflow:visible;flex:none}
.receive-card .receive-summary,.receive-sub,.receive-file-main,.receive-file-copy{min-width:0;max-width:100%}
.receive-card .receive-sub{overflow-wrap:anywhere;line-height:1.6}
.receive-screen .receive-file-list{overflow:visible;max-height:none}
.receive-screen .receive-file-row{min-width:0;box-sizing:border-box}
.receive-screen .receive-file-copy strong{overflow-wrap:anywhere;word-break:normal}
@media(max-width:600px){.receive-screen .receive-card{padding:30px 20px}.receive-screen .receive-file-row{grid-template-columns:minmax(0,1fr)}.receive-file-cancel{justify-self:end}.receive-screen .receive-card #receiveDoneBtn{width:100%;box-sizing:border-box}}

@media(max-width:600px){#cameraCodeHint .code-arrow{display:none}}

.receive-screen .receive-file-copy strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;line-height:1.45}

.send-notice-panel[data-state=queued]::before{content:"⇄";border:0;font-size:48px}

/* Equal navigation cells keep multi-word translated labels below aligned icons. */
@media(max-width:520px){
 .desktop-destination,.desktop-destination.preferences-destination{flex:1 1 0;min-width:0;justify-content:flex-start;text-align:center}
 .desktop-destination>span{width:100%;min-width:0}
 .desktop-destination strong{display:flex;align-items:center;justify-content:center;min-height:24px;font-size:10px;line-height:12px;white-space:normal;overflow-wrap:anywhere;text-align:center}
}

.join-code-error{margin:7px 0 0;padding:7px 10px;border:1px solid #ff5c5c;border-radius:6px;background:rgba(255,92,92,.1);color:#ff8b8b;font-size:12px;line-height:1.35;text-align:left}
