.web-gate{position:fixed;inset:0;z-index:10000;background:var(--paper,#111);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;padding:32px;text-align:center;color:var(--ink,#eee)}.web-gate[hidden]{display:none}.web-gate h1{font-size:30px}.web-gate p{max-width:600px;line-height:1.7}.web-gate a,.web-gate button{padding:10px 18px;border:1px solid var(--line,#666);border-radius:8px;color:inherit;text-decoration:none}.web-gate img{object-fit:contain}.is-connecting>.sidebar,.is-connecting>main{visibility:hidden}.web-home-link{font-size:11px;white-space:nowrap;line-height:1.6;color:var(--muted);text-decoration:none}.web-account-badge{display:block;line-height:1.5;margin-bottom:10px}.web-crop-dialog{width:min(1100px,96vw);max-height:95dvh;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:14px;padding:18px}.web-crop-dialog::backdrop{background:#000b}.web-crop-dialog h2{font-size:17px;margin-bottom:12px}.web-crop-stage{position:relative;width:max-content;max-width:100%;margin:auto;touch-action:none;user-select:none;line-height:0}.web-crop-stage img{max-width:100%;max-height:73dvh;display:block}.web-crop-outline{position:absolute;pointer-events:none;border:2px solid #e8ac42;background:#e8ac4220;box-shadow:0 0 0 1px #0008}.web-crop-dialog footer{display:flex;gap:12px;justify-content:flex-end;padding-top:16px}.vmexam-web{height:100dvh}.vmexam-web .topbar-title{min-width:0;gap:12px}.vmexam-web button,.vmexam-web .button{touch-action:manipulation}.vmexam-web #captureDetach{display:none!important}
@media(max-width:1000px){.vmexam-web .topbar{height:auto;min-height:64px;gap:10px;padding:10px 12px;flex-wrap:wrap}.vmexam-web .top-actions{margin-left:auto;flex-wrap:wrap}.vmexam-web .topbar-title .eyebrow{display:none}.vmexam-web .top-document-actions{margin-left:auto}.vmexam-web .document-tools{flex-wrap:wrap}.vmexam-web .compiler-modebar{padding:6px 10px;overflow-x:auto;flex-shrink:0}.vmexam-web .editor-heading{flex-wrap:wrap;padding:10px}.vmexam-web .editor-column{min-width:0}.vmexam-web .workspace{min-width:0}.vmexam-web #latexWorkspace{min-width:0}.vmexam-web .sidebar:not(:hover){padding-left:6px;padding-right:6px}}
@media(max-width:680px){.vmexam-web .sidebar{position:absolute;inset:0 auto 0 0;z-index:40;width:210px;box-shadow:10px 0 40px #0005}.vmexam-web.sidebar-collapsed .sidebar{width:42px;box-shadow:none}.vmexam-web>main{margin-left:42px;width:calc(100% - 42px)}.vmexam-web .top-actions{gap:4px}.vmexam-web .top-actions .button{padding:7px}.vmexam-web .topbar-title h1{font-size:15px}.vmexam-web .topbar-title img{display:none}.vmexam-web .topbar{align-items:center}.vmexam-web .top-document-actions{gap:4px}.vmexam-web .editor-heading{gap:7px}.vmexam-web .document-tools{width:100%;gap:4px;overflow:auto;flex-wrap:nowrap}.vmexam-web .latex-workspace{flex-direction:column}.vmexam-web .latex-workspace>section{min-height:230px;min-width:0}.vmexam-web .library-panel{position:absolute;z-index:30;top:120px;bottom:0;left:42px;width:min(270px,calc(100vw - 42px));background:var(--paper)}.vmexam-web.exam-list-collapsed .library-panel{display:none}.vmexam-web .outline-panel{max-width:70vw}.vmexam-web dialog:not(.web-crop-dialog){max-width:96vw}.vmexam-web .bank-toolbar,.vmexam-web .bank-controls{flex-wrap:wrap}.vmexam-web .view:not(.workspace){overflow:auto}.vmexam-web .capture-dialog{max-width:calc(100vw - 48px)}.vmexam-web .web-home-link{font-size:10px}}
@media(max-width:680px){.vmexam-web .topbar{height:auto;overflow:visible;padding:7px 10px;gap:6px;flex-wrap:wrap}.vmexam-web .topbar-title{display:flex;flex:1 1 100%;width:100%;min-width:0;justify-content:space-between}.vmexam-web .top-document-actions{flex:1 1 100%;margin:0;flex-wrap:wrap}.vmexam-web .top-actions{flex:1 1 100%;min-width:0;justify-content:flex-start;flex-wrap:wrap;gap:5px}.vmexam-web .top-actions .button{padding:5px 7px}.vmexam-web .editor-heading{height:auto;min-height:43px;overflow:hidden;flex-wrap:wrap}.vmexam-web .editor-heading>div:has(#examTitle){min-width:0}.vmexam-web .document-tools{flex:1 0 100%!important;max-width:100%;padding-bottom:4px;scrollbar-width:thin}.vmexam-web .document-tools>*{flex-shrink:0}.vmexam-web .compiler-modebar{flex-wrap:nowrap;white-space:nowrap;scrollbar-width:thin}.vmexam-web .compiler-modebar>*{flex-shrink:0}.vmexam-web .compiler-mode-switch{min-width:max-content}.vmexam-web .compiler-mode-switch button{white-space:nowrap}.vmexam-web .preview-toolbar{flex-wrap:nowrap;overflow:auto;scrollbar-width:thin}.vmexam-web .preview-toolbar>*{flex-shrink:0}}
