:root{--accent:#0f0f70;--accent-dark:#0c0c58;--ink:#343d47;--muted:#84909c;--line:#dce1e6;--panel:#f5f6f8;--sans:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR",sans-serif;--mono:"SFMono-Regular",Menlo,Consolas,monospace}
*{box-sizing:border-box}body{margin:0;background:#eef1f2;color:var(--ink);font:13px/1.5 var(--sans)}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit;transition:background .12s}button:disabled{opacity:.42;cursor:default}button:focus-visible,a:focus-visible{outline:2px solid #7878a3;outline-offset:2px}button:hover:not(:disabled){filter:brightness(.97)}[hidden]{display:none!important}.ui-icon{width:17px;height:17px;display:inline-block;vertical-align:middle;flex:none;stroke-width:1.65}.app{height:100vh;display:flex;flex-direction:column;overflow:hidden}
.topbar{height:53px;min-height:53px;background:var(--accent-dark);color:#fff;display:flex;align-items:center;gap:17px;padding:0 17px}.brand-button{display:flex;align-items:center;gap:8px;background:none;color:#fff;border:0;padding:0;flex:none}.brand-mark{display:grid;place-items:center;width:25px;height:28px;border:1px solid #ffffff70;border-radius:5px;font-size:21px;font-weight:600;line-height:1}.brand-name{font-size:19px;font-weight:650;letter-spacing:-.6px}.top-divider{width:1px;height:22px;background:#ffffff26;flex:none}.project-heading{display:flex;align-items:center;gap:15px;min-width:0}.doc-title{font-size:14px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:30vw}.saved{color:#d3d3e4;font-size:10px;white-space:nowrap}.header-right{display:flex;align-items:center;gap:5px;margin-left:auto;flex:none}.identity{font-size:11px;color:#e3e3ec;margin-right:12px;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.presence-dot{width:7px;height:7px;background:#a1a1d2;border-radius:50%;margin-right:2px}.top-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;color:#fff;border:1px solid transparent;background:transparent;border-radius:4px;min-height:32px;padding:0 10px;font-size:12px;white-space:nowrap}.top-button:hover{background:#ffffff16}.top-button.accent{background:#fff;color:var(--accent-dark);margin-left:5px;font-weight:600}.icon-only{width:31px;min-width:31px;padding:0;justify-content:center}
.workbench{display:grid;grid-template-columns:43px 218px minmax(0,var(--editor-fr,1fr)) 6px minmax(0,var(--pdf-fr,1fr));flex:1;min-height:0}.rail{display:flex;flex-direction:column;align-items:center;background:#354049;padding:13px 0 8px;gap:6px;border-right:1px solid #2c343b}.rail-button{display:grid;place-items:center;width:42px;height:39px;border:0;border-left:3px solid transparent;background:none;color:#bfc9cf}.rail-button .ui-icon{width:19px;height:19px}.rail-button.active{background:#25323a;color:#fff;border-left-color:#7373a6}.rail-button:hover{color:#fff;background:#2c373f}.rail-spacer{flex:1}.file-panel{display:flex;flex-direction:column;min-width:0;min-height:0;background:#f4f5f7;border-right:1px solid #d5dce2;overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:11px 13px 9px;font-size:11px;font-weight:650;color:#5e6975;height:47px;flex:none}.tool-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid transparent;border-radius:4px;background:none;min-height:29px;padding:0 7px;color:#66717c;font-size:11px;white-space:nowrap}.tool-button:hover{background:#e6ebef}.file-tree{padding:0 0 20px;min-height:170px}.tree-item{width:100%;display:flex;align-items:center;gap:8px;padding:9px 16px;border:0;background:none;text-align:left;font-size:12px}.tree-item.selected{background:#dce8ed;color:#2f4f62;border-left:3px solid #5892ae;padding-left:13px}.tree-item .ui-icon{color:#6d8999;width:15px;height:15px}.file-help{font-size:10px;color:#9ba3aa;padding:8px 17px}.outline-panel{border-top:1px solid #dce2e7;flex:1;min-height:80px;overflow:auto}.outline-heading{padding:13px 15px 9px;display:flex;justify-content:space-between;font-size:11px;font-weight:650;color:#6a7580}.small-count{font:10px var(--mono);color:#8b969f;float:right;margin-left:auto}.document-outline{padding:0 9px 15px}.outline-item{width:100%;border:0;text-align:left;background:none;border-radius:3px;color:#737e88;font-size:11px;line-height:1.6;padding:6px 7px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.outline-item:hover{background:#e7edf1;color:#2b5f7e}.outline-item.level-2{padding-left:18px}.outline-item.level-3{padding-left:28px}.empty-outline{display:block;font-size:10px;color:#9aa4ae;padding:8px;line-height:1.8}.sidebar-bottom{padding:12px 11px;border-top:1px solid #dce2e7;flex:none}.sidebar-button{display:flex;align-items:center;gap:8px;width:100%;padding:7px 5px;background:none;border:0;text-align:left;font-size:11px;color:#67747f}.sidebar-button .ui-icon{width:15px;height:15px}.storage{font-size:9px;color:#8a969d;margin:13px 0 2px;white-space:nowrap}.storage i{display:inline-block;background:#7575a7;width:5px;height:5px;border-radius:50%;margin-right:4px}
.editor-pane{display:flex;flex-direction:column;background:#fff;min-width:0;min-height:0;overflow:hidden}.editor-toolbar{height:42px;min-height:42px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#fcfcfd;padding:0 9px 0 15px;gap:6px}.editor-modes{display:flex;align-items:center;align-self:stretch}.mode{display:flex;align-items:center;gap:7px;font-size:11px;padding:0 5px;white-space:nowrap}.mode.active{color:#3b3b62;font-weight:600;border-bottom:2px solid #474782}.mode .ui-icon{width:15px}.toolbar-actions{display:flex;align-items:center;gap:2px}.toolbar-divider{height:17px;width:1px;background:#dce1e6;margin:0 4px;flex:none}.toolbar-actions .ui-icon{width:15px;height:15px}.file-tabbar{display:flex;align-items:center;gap:13px;min-height:33px;height:33px;background:#f6f7f9;border-bottom:1px solid #e8ebee;color:#98a1aa;overflow:hidden}.file-tab{display:inline-flex;align-items:center;gap:7px;align-self:stretch;padding:0 16px;background:#fff;border-top:2px solid #4d4d82;color:#526270;font-size:11px;border-right:1px solid #e7ebee;flex:none}.file-tab .ui-icon{width:13px;height:13px}.revision-label{font-size:10px;white-space:nowrap}.presence-label{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:auto;padding-right:12px}.source-editor-host{flex:1;min-height:0;overflow:hidden;position:relative}.source-editor{width:100%;height:100%;border:0;resize:none;outline:none;padding:17px;font:13px/1.75 var(--mono);white-space:pre}.editor-status{min-height:25px;display:flex;align-items:center;gap:17px;border-top:1px solid #e6eaee;padding:0 11px;font-size:9px;color:#99a2aa;background:#fcfcfd}.editor-tip{margin-left:auto}.panel-splitter{background:#d9dfe4;cursor:col-resize;display:flex;align-items:center;justify-content:center;min-width:6px;border-left:1px solid #c9d0d7;border-right:1px solid #c9d0d7}.panel-splitter span{height:38px;width:2px;border-left:1px solid #aeb8c0}.panel-splitter:hover,.panel-splitter.dragging{background:#9eacb7}
.preview{display:flex;flex-direction:column;min-height:0;min-width:0;background:#e3e5e8;overflow:hidden}.preview-toolbar{height:42px;min-height:42px;display:flex;align-items:center;gap:5px;padding:0 10px;background:#fcfcfd;border-bottom:1px solid var(--line)}.compile-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:4px;background:#0f0f70;color:#fff;padding:0 13px;min-height:29px;font-size:11px;font-weight:600;white-space:nowrap}.compile-button .ui-icon{width:13px;height:13px}.pdf-controls{display:flex;align-items:center;gap:1px;margin-left:auto}.pdf-controls .ui-icon{width:15px;height:15px}.zoom-label{font:10px var(--mono);padding:0 4px;min-width:38px}.download-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:10px;min-height:29px;padding:0 5px;color:#637380;text-decoration:none;border-radius:4px}.download-button:hover{background:#e6ebef}.download-button[aria-disabled=true]{opacity:.35;pointer-events:none}.build-banner{font-size:9px;min-height:27px;padding:6px 12px;background:#f3f5f7;color:#929ca6;border-bottom:1px solid #d9dfe4;line-height:1.6}.pdf-stage{flex:1;min-height:0;overflow:auto;padding:21px 19px 30px;scroll-behavior:smooth}.pdf-page{position:relative;width:min(100%,510px);margin:0 auto 18px}.pdf-page img{display:block;width:100%;height:auto;background:white;box-shadow:0 1px 5px #1a22221b}.pdf-page figcaption{font:9px var(--mono);color:#929ca7;text-align:center;padding-top:8px}.empty-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;height:80%;min-height:200px;text-align:center;color:#96a0a9;font-size:11px;line-height:1.8}.empty-preview>.ui-icon{width:42px;height:42px;stroke-width:1.1;margin-bottom:4px;color:#a5afb7}.empty-preview strong{font-weight:500;color:#7f8a93;font-size:12px}.statusbar{display:flex;align-items:center;gap:16px;min-height:25px;background:#f6f7f9;border-top:1px solid #d9dfe4;padding:0 11px;font-size:9px;color:#929ba5}.pdf-status-label{margin-left:auto}.editor-notice{font-size:11px;line-height:1.7;background:#fff6db;color:#8e6c2b;padding:8px 12px;border-bottom:1px solid #f0dfb7}.inline-button{font-size:10px;border:1px solid #dfce9e;border-radius:3px;background:#fffdf5;padding:3px 6px;margin:3px}
.workbench.files-hidden{grid-template-columns:43px 0 minmax(0,var(--editor-fr,1fr)) 6px minmax(0,var(--pdf-fr,1fr))}.files-hidden .file-panel{visibility:hidden}.workbench[data-layout=editor] .preview,.workbench[data-layout=editor] .panel-splitter{display:none}.workbench[data-layout=editor] .editor-pane{grid-column:3/6}.workbench[data-layout=pdf] .editor-pane,.workbench[data-layout=pdf] .panel-splitter{display:none}.workbench[data-layout=pdf] .preview{grid-column:3/6}
.auth-screen{display:grid;place-items:center;min-height:100vh;background:radial-gradient(ellipse at 20% 20%,#e7e7ee,transparent 65%),#f4f4f6;padding:32px}.auth-card{width:min(440px,100%);background:white;border-radius:12px;padding:35px 36px;border:1px solid #dfdfe6;box-shadow:0 15px 70px #26264e20}.auth-brand{display:flex;align-items:center;gap:8px;color:var(--accent);font-size:23px;font-weight:650;letter-spacing:-.8px;margin-bottom:31px}.auth-brand .brand-mark{border-color:var(--accent);width:27px;height:30px}.auth-eyebrow{display:block;color:#8d8d9b;font-size:9px;font-weight:600;letter-spacing:.11em}.auth-card h1{font-size:23px;letter-spacing:-.7px;margin:9px 0}.auth-card p{font-size:12px;line-height:1.8;color:#838390;margin:0 0 22px}.field{display:grid;gap:7px;font-size:11px;margin:15px 0;color:#5f5f71;font-weight:550}.field input{height:41px;font-size:13px;border:1px solid #dadae3;border-radius:5px;padding:0 11px;outline:none;width:100%;min-width:0}.field input:focus{border-color:#6e6e9c;box-shadow:0 0 0 2px #7676a518}.primary,.share{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:4px;background:var(--accent);color:#fff;padding:8px 15px;font-size:12px}.auth-submit{width:100%;height:41px;margin-top:7px;font-size:13px}.auth-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:16px}.notice{font-size:11px;line-height:1.8;color:#868695}.text-button{border:0;background:none;color:#3b3b78;font-size:11px;padding:0}.auth-caption{font-size:10px;text-align:center;line-height:1.8;color:#a0a0ad;border-top:1px solid #e9e9f0;margin-top:24px;padding-top:19px}.error{font-size:12px;line-height:1.7;color:#b25643;white-space:pre-wrap;overflow-wrap:anywhere}
.modal{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:25px;background:#14212f75;backdrop-filter:blur(2px)}.modal-card{background:white;width:min(720px,100%);max-height:86vh;overflow:auto;border-radius:9px;box-shadow:0 18px 65px #14212f44}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #e4e8ec;gap:15px}.modal-head h2{margin:0;font-size:17px;font-weight:600}.modal-body{padding:21px 24px 26px;font-size:12px;line-height:1.8}.modal-body p:first-child{margin-top:0}.modal-body input,.modal-body select{font:12px var(--sans);padding:9px;border:1px solid #d5d5e3;border-radius:5px;max-width:100%}.modal-body pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f2f5f7;padding:13px;font:11px/1.8 var(--mono);border-radius:4px;user-select:all}.modal-body a{color:#38386c}.history-row,.token-row{padding:12px 0;border-bottom:1px solid #e8edf0;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px}.history-row small{color:#9ba5ad}.compile-log{font:11px/1.7 var(--mono);max-height:310px;overflow:auto;white-space:pre-wrap;background:#f6f3ef;padding:12px}.toast{position:fixed;bottom:35px;left:50%;transform:translate(-50%,10px);opacity:0;pointer-events:none;transition:.15s;background:#2b2b3b;color:white;font-size:12px;line-height:1.6;padding:10px 16px;border-radius:5px;box-shadow:0 5px 22px #0002;z-index:30;max-width:90vw}.toast.show{opacity:1;transform:translate(-50%,0)}.projects-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.project-card{display:flex;flex-direction:column;gap:10px;text-align:left;border:1px solid #e1e7e8;background:#fff;padding:18px;border-radius:5px;min-height:120px}.project-card:hover{border-color:#7d7da5;background:#f7f7fb}.project-card.selected{border-color:#6f6f9a;background:#f4f4fa}.project-card .ui-icon{color:#6c6c95;width:23px;height:23px}.project-card strong{font-size:12px;font-weight:600;line-height:1.6}.project-card small{font-size:10px;color:#9898a3}.share-url{display:flex;gap:9px;align-items:center}.share-url input{flex:1;min-width:0;font:11px var(--mono)}.settings-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f2;padding:13px 0;gap:18px}.keyboard-help{font-size:11px;color:#8a969e;line-height:2}.keyboard-help kbd{font:10px var(--mono);background:#edf1f3;padding:2px 5px;border-radius:3px;color:#6e7f8c}.invite-created{margin-top:17px}
@media(min-width:1700px){.workbench{grid-template-columns:46px 242px minmax(0,var(--editor-fr,1fr)) 6px minmax(0,var(--pdf-fr,1fr))}.workbench.files-hidden{grid-template-columns:46px 0 minmax(0,var(--editor-fr,1fr)) 6px minmax(0,var(--pdf-fr,1fr))}}
@media(max-width:1100px){.workbench{grid-template-columns:40px 180px minmax(0,var(--editor-fr,1fr)) 5px minmax(0,var(--pdf-fr,1fr))}.topbar{gap:12px;padding:0 12px}.saved{display:none}.top-button{padding:0 7px}.identity{max-width:80px;margin-right:4px}.brand-name{font-size:17px}.editor-toolbar{padding-left:8px}.toolbar-actions>.icon-only{width:25px;min-width:25px}.preview-toolbar{padding:0 7px}.compile-button{padding:0 9px}.pdf-controls .tool-button{padding:0 4px}.pdf-controls .icon-only{width:24px;min-width:24px}.pdf-controls .toolbar-divider{margin:0 1px}.presence-label{font-size:8px}.doc-title{max-width:26vw}}
@media(max-width:900px){.workbench{grid-template-columns:40px 0 minmax(0,var(--editor-fr,1fr)) 5px minmax(0,var(--pdf-fr,1fr))}.file-panel{visibility:hidden}.workbench.files-visible{grid-template-columns:40px 175px minmax(0,var(--editor-fr,1fr)) 5px minmax(0,var(--pdf-fr,1fr))}.files-visible .file-panel{visibility:visible}.header-right .identity,.presence-dot{display:none}.mode .ui-icon{display:none}.toolbar-actions .toolbar-divider{display:none}.editor-modes .mode{font-size:10px}.top-button{font-size:11px}.top-divider{display:none}.brand-name{display:none}.doc-title{max-width:33vw}.pdf-stage{padding:15px 12px}.toolbar-actions .tool-button{font-size:10px}.file-tabbar{gap:9px}}
@media(max-width:620px){.topbar{height:48px;min-height:48px;padding:0 9px;gap:9px}.header-right{gap:1px}.top-button{padding:0 6px}.header-right #history,.header-right #invite,.header-right #logout{display:none}.doc-title{font-size:12px;max-width:34vw}.top-button .ui-icon{width:13px;height:13px}.top-button.accent{font-size:10px;margin-left:2px}.workbench{grid-template-columns:35px 0 1fr;grid-template-rows:minmax(230px,1fr) minmax(240px,1fr);position:relative}.rail{grid-row:1/3;grid-column:1}.rail-button{width:35px}.file-panel{position:absolute;left:35px;top:0;bottom:0;width:210px;z-index:10;box-shadow:5px 0 20px #24314422;display:none}.workbench.files-visible{grid-template-columns:35px 0 1fr}.files-visible .file-panel{display:flex;visibility:visible}.editor-pane{grid-column:3;grid-row:1}.panel-splitter{display:none}.preview{grid-column:3;grid-row:2;border-top:3px solid #c8d1d8}.workbench[data-layout=editor]{grid-template-rows:1fr}.workbench[data-layout=editor] .editor-pane{grid-column:3;grid-row:1}.workbench[data-layout=pdf]{grid-template-rows:1fr}.workbench[data-layout=pdf] .preview{grid-column:3;grid-row:1;border-top:0}.editor-toolbar,.preview-toolbar{min-height:37px;height:37px}.presence-label{display:none}.editor-status{min-height:21px}.projects-grid{grid-template-columns:1fr}.auth-card{padding:29px 25px}.preview-toolbar .compile-button{font-size:10px}.header-right #shareProject .ui-icon{display:none}}
/* Project library */
.app[data-view=projects] #history,.app[data-view=projects] #shareProject,.app[data-view=projects] #saveState{display:none}.dashboard{display:flex;flex:1;min-height:0;overflow:hidden;background:#fff}.dashboard-sidebar{width:220px;flex:none;background:#f5f7f7;border-right:1px solid #e2e2e7;display:flex;flex-direction:column;padding:33px 16px 20px}.lab-label{font-size:11px;font-weight:600;color:#8a9690;padding:0 12px;margin-bottom:23px}.dashboard-nav{display:flex;align-items:center;gap:10px;font-size:13px;padding:11px 12px;border-radius:5px}.dashboard-nav.active{background:#e5e5ee;color:#383865;font-weight:600}.dashboard-nav>span:last-child{margin-left:auto;font-size:11px;color:#7b7b95}.dashboard-sidebar-note{font-size:11px;color:#9797a2;line-height:1.9;padding:20px 13px}.dashboard-storage{margin-top:auto;padding:0 13px;color:#8b8b98;font-size:10px;display:flex;align-items:center;gap:7px}.storage-dot{width:6px;height:6px;background:#7a7aa9;border-radius:50%}.dashboard-main{flex:1;min-width:0;overflow:auto;padding:48px clamp(25px,4vw,70px)}.dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1180px;margin:0 auto 32px}.dashboard-eyebrow{font-size:9px;letter-spacing:.15em;color:#8b8b9e;font-weight:600;margin:0 0 10px}.dashboard-heading h1{font-size:26px;letter-spacing:-.8px;font-weight:600;margin:0;color:#343448;display:flex;align-items:center;gap:13px}.dashboard-heading h1>span{color:#8a8a9a;font-size:15px;font-weight:400;letter-spacing:0}.dashboard-description{font-size:12px;color:#9393a0;margin:11px 0 0}.dashboard-actions{display:flex;gap:9px;flex:none}.dashboard-actions>button{min-height:36px;gap:7px;padding:0 13px;font-size:12px}.secondary-button{display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid #d6d6df;border-radius:4px;color:#585871;gap:7px;padding:7px 13px}.dashboard-tools{display:flex;justify-content:space-between;align-items:center;gap:20px;max-width:1180px;margin:0 auto 24px}.project-search{display:flex;align-items:center;gap:10px;width:320px;border:1px solid #e1e1e7;border-radius:5px;padding:8px 11px;color:#a0a0ac}.project-search .ui-icon{width:15px;height:15px}.project-search input{border:0;outline:0;min-width:0;width:100%;background:none;color:#4e4e62;font-size:12px}.project-search input::placeholder{color:#a2a2ae}.dashboard-tools select{padding:8px 10px;border:1px solid #e1e1e7;border-radius:4px;background:#fff;color:#818192;font-size:11px}.project-table-head{max-width:1180px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) 155px 70px;padding:12px 18px;border-top:1px solid #e2e2e8;border-bottom:1px solid #e2e2e8;font-size:10px;color:#9393a0;background:#f9f9fb}.dashboard-projects{max-width:1180px;margin:auto}.project-row{display:grid;align-items:center;grid-template-columns:minmax(0,1fr) 155px 70px;width:100%;padding:22px 18px;border:0;border-bottom:1px solid #e8e8ed;background:#fff;text-align:left;min-height:91px}.project-row:hover{background:#f8f8fb;filter:none!important}.project-row-name{display:flex;gap:15px;align-items:center;min-width:0}.project-document-icon{width:34px;height:43px;border:1px solid #e0e0e9;border-radius:4px;display:grid;place-items:center;background:#f2f2f7;color:#6f6f95;flex:none}.project-document-icon>.ui-icon{width:20px;height:20px}.project-row-name>span:last-child{display:flex;flex-direction:column;gap:5px;min-width:0}.project-row-name strong{font-weight:550;font-size:13px;color:#4d4d63;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-row-name small{font-size:10px;color:#a0a0ac;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-row-updated{display:flex;flex-direction:column;gap:4px;color:#808092;font-size:11px}.project-row-updated small{font-size:10px;color:#a6a6b1}.project-row-open{text-align:right;font-size:11px;color:#8181a1;opacity:0}.project-row:hover .project-row-open,.project-row:focus-visible .project-row-open{opacity:1}.dashboard-footer{max-width:1180px;margin:25px auto;color:#a4a4af;font-size:10px}.dashboard-empty{padding:70px 20px;text-align:center;color:#a2a2af}.dashboard-empty>.ui-icon{width:37px;height:37px;stroke-width:1.3;color:#9e9eb1}.dashboard-empty h2{font-size:15px;font-weight:500;color:#74748a;margin:17px 0 8px}.dashboard-empty p{font-size:12px}.file-tree{max-height:45%;overflow:auto;flex-shrink:0;min-height:120px}.attachment-heading{padding:10px 15px 5px;color:#9aa6ad;font-size:9px}.attachment-file{display:flex;gap:7px;padding:6px 13px;color:#83929c;font-size:10px;text-decoration:none;align-items:center}.attachment-file:hover{background:#e7eef1}.attachment-file>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.attachment-file>.ui-icon{width:13px;height:13px}.attachment-file>.ui-icon:last-child{width:11px;height:11px;opacity:.6}.zip-files{margin-bottom:17px}.zip-files pre{max-height:180px;overflow:auto}
@media(max-width:1000px){.dashboard-sidebar{width:190px}.dashboard-main{padding:35px 28px}.dashboard-heading{align-items:flex-start;gap:15px}.dashboard-actions{flex-direction:column}.project-table-head,.project-row{grid-template-columns:minmax(0,1fr) 115px 0}.project-row-open{display:none}.project-row-name{gap:11px}}
@media(max-width:620px){.dashboard-sidebar{display:none}.dashboard-main{padding:28px 18px}.dashboard-heading h1{font-size:23px}.dashboard-description{max-width:180px;font-size:11px}.dashboard-actions>button{font-size:10px;min-height:32px;padding:0 9px}.dashboard-actions .ui-icon{width:13px;height:13px}.project-search{width:auto;flex:1}.dashboard-tools{gap:8px}.project-table-head,.project-row{grid-template-columns:minmax(0,1fr) 95px 0;padding-left:5px;padding-right:5px}.project-document-icon{width:27px;height:36px}.project-row-name{gap:9px}.project-row-name strong{font-size:12px}.project-row-updated{font-size:10px}.app[data-view=projects] #invite,.app[data-view=projects] #logout{display:inline-flex}}

/* Editor layout aligned with the current Overleaf workspace. */
:root{--accent:#0f0f70;--accent-dark:#0c0c58;--ink:#282c30;--muted:#6b7178;--sans:Arial,"Noto Sans KR",sans-serif}
.topbar{height:42px;min-height:42px;background:#fff;color:#252a2d;border-bottom:1px solid #d5d9dc;padding:0 12px;gap:12px}.brand-button{color:#0f0f70;gap:6px}.brand-mark{border-color:#0f0f70;width:22px;height:25px;font-size:18px}.brand-name{font-size:17px}.back-projects{font-size:12px;color:#59636a;border-left:1px solid #d5d9dc;padding-left:10px;margin-left:5px}.top-divider{display:none}.editor-menu{display:flex;align-items:center;gap:0}.editor-menu button{border:0;background:none;padding:7px 9px;font-size:13px;color:#30353a}.editor-menu button:hover{background:#eef1f3}.project-heading{flex:1;justify-content:center;gap:10px}.doc-title{font-size:13px;font-weight:400;max-width:25vw}.saved{color:#778178;font-size:10px}.header-right{margin-left:0;gap:2px}.identity{color:#6a747c;font-size:11px;margin-right:5px}.top-button{color:#4d575d;font-size:12px;min-height:29px;padding:0 7px}.top-button.accent,#shareProject{color:#fff;background:#0f0f70;border-radius:4px}.top-button:hover{background:#edf1f3}.top-button.accent:hover,#shareProject:hover{background:#0c0c58}.app[data-view=projects] .editor-menu{display:none}.app[data-view=projects] .project-heading{justify-content:flex-start}
.workbench{grid-template-columns:40px 220px minmax(0,var(--editor-fr,1fr)) 6px minmax(0,var(--pdf-fr,1fr))}.rail{background:#f3f5f6;border-right:1px solid #d8dde0;padding-top:5px;gap:3px}.rail-button{color:#56636b;width:39px;height:38px}.rail-button.active{background:#e2e8e9;color:#2f2f62;border-left-color:#0f0f70}.rail-button:hover{background:#e5eaed;color:#222}.file-panel{background:#f7f8f9}.panel-heading{height:36px;padding:5px 12px;font-size:12px}.tree-item{font-size:13px;padding-top:7px;padding-bottom:7px}.tree-item.selected{background:#dce5eb;border-left-color:#62859c;color:#273d4d}.outline-heading{font-size:12px}.outline-item{font-size:12px}.file-help{font-size:10px}.sidebar-button{font-size:12px}.editor-toolbar,.preview-toolbar{height:36px;min-height:36px;background:#f7f8fa;padding-left:9px}.mode{font-size:12px}.mode.active{border:0;background:#e2e2ed;border-radius:4px;padding:0 9px;align-self:center;height:26px;color:#0f0f70}.file-tabbar{height:29px;min-height:29px;background:#f7f8fa}.file-tab{font-size:12px;border-top:0;background:#fff}.tool-button{font-size:12px}.ui-icon{width:18px;height:18px}.compile-button{min-height:27px;font-size:12px;background:#0f0f70;padding:0 12px}.zoom-label{font-size:11px}.download-button{font-size:11px}.build-banner{font-size:10px;padding:4px 10px;min-height:23px}.pdf-stage{background:#e9ebee;padding:12px 12px 30px}.editor-status,.statusbar{font-size:10px}.pdf-canvas{display:block;width:100%;height:auto;background:#fff;box-shadow:0 1px 5px #1a22222a}.pdf-loading{text-align:center;padding:60px 10px;color:#697681;font-size:13px}.pdf-page{margin-bottom:14px}.pdf-page figcaption{font-size:10px}.compile-progress{background:#fff;padding:10px 13px;border-bottom:1px solid #d4d4df}.compile-progress>div,.operation-progress-heading{display:flex;justify-content:space-between;gap:12px;font-size:12px}.compile-progress strong,.operation-progress-heading>span{font-variant-numeric:tabular-nums;font-weight:600;color:#0f0f70}.compile-progress small{font-size:10px;color:#7b858d}progress{appearance:none;display:block;width:100%;height:7px;margin:8px 0;border:0;border-radius:5px;overflow:hidden;background:#e7e7ec;accent-color:#0f0f70}progress::-webkit-progress-bar{background:#e7e7ec;border-radius:5px}progress::-webkit-progress-value{background:#0f0f70;border-radius:5px;transition:width .2s}progress::-moz-progress-bar{background:#0f0f70}.operation-progress{padding:16px;background:#f5f5f8;border:1px solid #dcdce6;border-radius:5px}.operation-progress .notice{margin-bottom:0}.is-compiling{min-width:125px}
.dashboard-sidebar{background:#f4f5f6;width:240px}.dashboard-main{padding-top:32px}.dashboard-eyebrow,.dashboard-description,.dashboard-sidebar-note{display:none}.dashboard-heading h1{font-size:25px;color:#2d3439}.dashboard-nav.active{background:#e2e8eb;color:#2b3d49}.dashboard-heading{margin-bottom:25px}.project-row{min-height:66px;padding-top:13px;padding-bottom:13px}.project-document-icon{width:27px;height:33px}.project-row-name strong{font-size:14px;color:#285f7f}.project-table-head{font-size:12px;color:#68727a}.project-row-updated{font-size:12px}.project-search input{font-size:13px}.dashboard-tools select{font-size:12px}
@media(max-width:1200px){.brand-name,.back-projects,.saved{display:none}.editor-menu button{padding:6px}.identity{display:none}.doc-title{max-width:24vw}.workbench{grid-template-columns:39px 185px minmax(0,var(--editor-fr,1fr)) 6px minmax(0,var(--pdf-fr,1fr))}}
@media(max-width:900px){.editor-menu{display:none}.workbench{grid-template-columns:40px 0 minmax(0,var(--editor-fr,1fr)) 5px minmax(0,var(--pdf-fr,1fr))}.project-heading{justify-content:flex-start}.doc-title{max-width:33vw}}
@media(max-width:620px){.workbench{grid-template-columns:35px 0 1fr}.topbar{height:42px;min-height:42px}.dashboard-sidebar{display:none}.header-right #invite{display:none}.file-tabbar{font-size:11px}.dashboard-main{padding:24px 18px}}

/* Hierarchical project explorer */
.file-tree{flex:1;max-height:none;min-height:180px;padding-bottom:8px}.outline-panel{flex:0 1 27%;min-height:100px}.file-tree-summary{font-size:11px;color:#87939c;padding:8px 13px}.tree-folder>summary{list-style:none;display:flex;align-items:center;gap:6px;height:30px;cursor:pointer;color:#4c5b67;font-size:12px;user-select:none}.tree-folder>summary::-webkit-details-marker{display:none}.tree-folder>summary:hover{background:#e9edf0}.tree-folder>summary .ui-icon{width:15px;height:15px;color:#728695}.tree-folder>summary>span:last-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.tree-chevron{display:inline-block;width:9px;font-size:19px;line-height:1;transition:transform .12s}.tree-folder[open]>summary>.tree-chevron{transform:rotate(90deg)}.tree-file{display:flex;align-items:center;gap:7px;width:100%;height:30px;padding-right:11px;border:0;background:none;text-decoration:none;text-align:left;color:#526572;font-size:12px}.tree-file:hover{background:#e7edf1}.tree-file.selected{background:#dce6ed;color:#263f50;box-shadow:inset 3px 0 #6c8ca0}.tree-file>.ui-icon{width:14px;height:14px;flex:none;color:#7b909e}.tree-file>span{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.tree-file>small{font-size:9px;color:#78909d}.tree-file>.ui-icon:last-child{width:12px;opacity:0}.tree-file:hover>.ui-icon:last-child,.tree-file:focus-visible>.ui-icon:last-child{opacity:.8}.sidebar-bottom{padding:8px 11px}.storage{margin-top:8px}

.open-file-tabs{display:flex;align-self:stretch;overflow-x:auto;flex:1;min-width:0;scrollbar-width:thin}.open-file-tab{display:flex;align-items:center;flex:none;border-right:1px solid #dce2e7;border-top:2px solid transparent;background:#edf0f3}.open-file-tab.active{background:white;border-top-color:#0f0f70}.file-tab-select{border:0;background:none;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;padding:4px 10px;color:#566773}.file-tab-close{border:0;background:none;padding:0 7px 0 0;color:#84919c;font-size:16px}.active-file-download{color:#53738b;text-decoration:none;font-size:20px;padding:0 5px}.file-preview{flex:1;min-height:0;overflow:auto;background:#e9edf0;display:flex;align-items:flex-start;justify-content:center;padding:20px}.file-preview>img{max-width:100%;height:auto;object-fit:contain;background:white;box-shadow:0 1px 7px #0002}.file-preview>p{font-size:13px;color:#73828d}.attachment-pdf-stage{width:100%;height:100%;overflow:auto}.file-tabbar{gap:5px}.file-tabbar .presence-label{max-width:100px}.file-tabbar .revision-label{font-size:9px}.tree-file[aria-current=page]{background:#dce6ed;box-shadow:inset 3px 0 #6c8ca0}

.workbench[data-sidebar=files] .outline-panel{display:none}.workbench[data-sidebar=outline] .file-tree{display:none}.workbench[data-sidebar=outline] .outline-panel{flex:1;min-height:0;border-top:0}.command-menu{position:fixed;z-index:40;width:272px;padding:5px 0;background:white;border:1px solid #d8dfe3;border-radius:5px;box-shadow:0 6px 22px #20334125;max-height:calc(100vh - 56px);overflow:auto}.command-menu button{display:flex;align-items:center;gap:8px;width:100%;border:0;background:white;padding:8px 12px;text-align:left;font-size:12px;min-height:33px}.command-menu button:hover,.command-menu button:focus-visible{background:#eaeaf1;outline:0}.command-menu button:disabled{opacity:.4}.command-menu button>small{margin-left:auto;color:#8a969e;font-size:10px}.command-check{width:14px;color:#0f0f70}.command-group{padding:7px 12px 4px;font-size:10px;color:#87959e;border-top:1px solid #edf0f2;margin-top:3px}.command-group:first-child{border-top:0;margin-top:0}.editor-menu button[aria-expanded=true]{background:#e6e6ed}.workbench.files-hidden{grid-template-columns:40px 0 minmax(0,var(--editor-fr,1fr)) 6px minmax(0,var(--pdf-fr,1fr))}.workbench.files-visible .file-panel{visibility:visible}
@media(max-width:900px) and (min-width:621px){.workbench.files-visible{grid-template-columns:40px 220px minmax(0,var(--editor-fr,1fr)) 5px minmax(0,var(--pdf-fr,1fr))}}
@media(max-width:620px){.workbench.files-hidden,.workbench.files-visible{grid-template-columns:35px 0 1fr}.command-menu{max-width:calc(100vw - 16px)}}

.file-panel.drop-active{outline:2px dashed #39398a;outline-offset:-4px;background:#e8e8f2}.file-panel.drop-active .panel-heading{background:#d7d7eb}.tree-folder.drop-folder>summary{background:#c9c9e3!important;box-shadow:inset 3px 0 #3b3b8a}.upload-choices{max-height:300px;overflow:auto;border:1px solid #e1e6e9;border-radius:4px}.upload-choice{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:9px 12px;border-bottom:1px solid #edf0f2;font-size:12px}.upload-choice>span:first-child{min-width:0;overflow-wrap:anywhere}.upload-choice small{display:block;color:#98a3aa;font-size:10px}.upload-choice select{flex:none;padding:5px}.upload-new{color:#3a3a85;font-size:11px;white-space:nowrap}.upload-bulk{display:flex;align-items:center;justify-content:space-between;margin:15px 0;font-size:12px}.upload-bulk select{padding:5px}#projectUploadError{white-space:pre-wrap}

.file-drop-hint{font-size:10px;color:#96a3ac;padding:0 13px 9px}.workbench[data-sidebar=outline] .outline-heading{padding-top:5px;padding-bottom:8px}.workbench[data-sidebar=outline] .outline-heading>span:first-child{font-size:10px;color:#8c9ca6}.workbench[data-sidebar=outline] .outline-heading>span:first-child::after{content:' · 포함된 LaTeX 파일'}

.source-editor-host .cm-editor,.source-editor-host .cm-scroller,.source-editor-host .cm-content{font-size:var(--paperroom-code-size,13px)!important}.source-editor-host .cm-lineNumbers .cm-gutterElement{font-size:max(10px,calc(var(--paperroom-code-size,13px) - 2px))}.font-slider{display:flex;align-items:center;gap:12px;padding:17px 0}.font-slider input{flex:1;padding:0}.code-size-preview{user-select:text!important}.doc-title{border:0;background:none;color:inherit;cursor:pointer;padding:3px 6px;border-radius:3px}.doc-title:hover{background:#ededf2}.project-title-input{font:14px var(--sans);width:clamp(160px,25vw,420px);padding:5px 8px;border:1px solid #6e6e9d;border-radius:4px;outline:none}

.tree-file-node{display:flex;align-items:center;min-width:0}.tree-file-node>.tree-file{flex:1;min-width:0}.file-delete-button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:25px;height:26px;padding:4px;margin-right:5px;border:0;background:none;color:#9aa7b0;border-radius:3px;opacity:0}.file-delete-button>.ui-icon{width:14px;height:14px}.tree-file-node:hover>.file-delete-button,.tree-folder>summary:hover>.file-delete-button,.file-delete-button:focus-visible{opacity:1}.tree-folder>summary>.file-delete-button{margin-left:auto}.file-delete-button:hover{background:#faeae7;color:#a84c3d}.trash-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #e4e9ec;gap:15px}.trash-row>span{min-width:0;overflow-wrap:anywhere}.trash-row small{display:block;color:#92a0a9;font-size:11px;margin-top:3px}.danger-button{border:0;background:#a6473b;color:#fff;font-size:12px;padding:9px 14px;border-radius:4px;cursor:pointer}.project-row{grid-template-columns:minmax(0,1fr) 35px;padding:0 10px 0 18px}.project-row-main{display:grid;grid-template-columns:minmax(0,1fr) 155px;align-items:center;gap:15px;padding:15px 0;border:0;background:transparent;text-align:left;min-width:0;width:100%}.project-delete{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border:0;background:none;color:#91a0aa;opacity:0}.project-row:hover .project-delete,.project-delete:focus-visible{opacity:1}.project-delete:hover{background:#faeae7;color:#a64b40;border-radius:4px}.project-delete .ui-icon{width:16px;height:16px}.project-table-head{grid-template-columns:minmax(0,1fr) 155px 35px}@media(hover:none){.file-delete-button,.project-delete{opacity:1}}@media(max-width:620px){.project-row-main{grid-template-columns:minmax(0,1fr) 95px;gap:8px}.project-table-head{grid-template-columns:minmax(0,1fr) 95px 35px}.project-row{padding-left:5px;padding-right:0}}

/* DIAL Lab heading navy: rgb(15,15,112), #0f0f70. */
:root{--accent:#0f0f70;--accent-dark:#0c0c58}.brand-button,.auth-brand{color:var(--accent)}.brand-mark{border-color:var(--accent)}.compile-button,.primary,.share,#shareProject,.top-button.accent{background:var(--accent);color:#fff}.compile-button:hover,.primary:hover,.share:hover,#shareProject:hover,.top-button.accent:hover{background:var(--accent-dark)}
/* Compact project dashboard, matching the familiar Overleaf list structure. */
.header-right{gap:0}.account-button{border:0;background:none;display:flex;align-items:center;gap:8px;padding:4px 6px;color:#5e6771;font-size:12px;border-radius:4px}.account-button:hover,.account-button[aria-expanded=true]{background:#eeeef8}.account-avatar{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#e5e5f4;color:#0f0f70;font-size:12px;font-weight:600}.account-button .identity{display:inline;color:#59616b;font-size:12px;margin:0;max-width:120px}.dashboard-sidebar{width:235px;padding:25px 15px 20px;background:#f5f6f8}.dashboard-create{width:100%;min-height:38px;display:flex;gap:7px;justify-content:flex-start;font-size:13px;padding:0 12px;margin-bottom:25px}.dashboard-create>span:last-child{margin-left:auto}.dashboard-nav{width:100%;border:0;background:none;text-align:left;border-radius:3px;min-height:39px;font-size:12px;gap:9px;color:#5c6571;padding:9px 10px;font-weight:400}.dashboard-nav.active{background:#e7e7f4;color:#0f0f70;font-weight:600}.dashboard-nav>.ui-icon,.dashboard-nav>span>.ui-icon{width:16px;height:16px}.dashboard-nav>span:last-child:not(.ui-icon){color:#9393ad;font-size:10px}.dashboard-nav-divider{border-top:1px solid #e0e3e9;margin:16px 7px}.dashboard-main{padding:32px 35px;background:#fff}.dashboard-heading{max-width:none;margin:0 0 24px}.dashboard-heading h1{font-size:25px;font-weight:400;gap:10px}.dashboard-heading h1>#projectListHeading{font-size:25px;font-weight:400;color:#343942;letter-spacing:-.5px}.dashboard-heading h1>#dashboardCount{font-size:13px;color:#9c9cab;background:#f0f0f6;padding:2px 6px;border-radius:3px}.dashboard-tools{max-width:none;margin:0 0 18px}.project-search{width:min(430px,65%);border-color:#d9dde5;border-radius:4px;height:36px}.project-search input{font-size:13px;color:#424c58}.dashboard-tools select{font-size:12px;color:#697480;border-color:#d9dde5}.project-table-scroll{width:100%;overflow-x:auto}.project-table{border-collapse:collapse;width:100%;min-width:640px;font-size:13px;table-layout:fixed}.project-table th{font-weight:600;font-size:12px;color:#5d6572;text-align:left;border-bottom:2px solid #dce0e7;padding:12px 9px}.project-table th button{display:flex;align-items:center;gap:8px;border:0;background:none;font:inherit;font-weight:600;padding:0;color:inherit}.project-table th button>span{color:#8f95a1}.project-table th:first-child,.project-table td:first-child{width:36px;padding-left:7px;padding-right:5px}.project-table th:nth-child(2){width:auto}.project-table th:nth-child(3){width:150px}.project-table th:nth-child(4){width:175px}.project-table th:nth-child(5){width:112px;text-align:center}.project-table td{padding:14px 9px;border-bottom:1px solid #e4e7ed;vertical-align:middle;line-height:1.6}.project-table input[type=checkbox]{width:14px;height:14px;accent-color:#0f0f70;margin:0;vertical-align:middle;cursor:pointer}.dashboard-table-row:hover{background:#f8f8fc}.dashboard-table-row.selected{background:#ededf9}.project-title-cell>a{font-size:14px;color:#313744;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.project-title-cell>a:hover{color:#0f0f70;text-decoration:underline}.owner-avatar{display:inline-grid;place-items:center;width:23px;height:23px;font-size:10px;border-radius:50%;color:#71719a;background:#ededf6;margin-right:7px}.project-owner{font-size:12px;color:#666e7c}.modified-cell>span{display:block;font-size:12px;color:#626b78}.modified-cell>small{display:block;font-size:10px;color:#9aa1ac}.project-table td.row-actions{text-align:center;white-space:nowrap;padding-left:4px;padding-right:4px}.row-actions button{border:0;background:none;color:#8b95a2;padding:5px;border-radius:3px;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px}.row-actions button:hover{background:#e9e9f4;color:#0f0f70}.row-actions .ui-icon{width:15px;height:15px}.project-table-empty{text-align:center!important;height:160px;color:#9ba2ad;font-size:12px}.project-selection-bar{display:flex;align-items:center;gap:10px;padding:8px 12px;background:#f1f1f9;border:1px solid #e0e0ef;border-radius:4px;margin-bottom:12px;min-height:40px}.project-selection-bar>span{font-size:12px;margin-right:auto;color:#565680}.project-selection-bar button{font-size:11px;padding:4px 9px;color:#5d5d85;border-color:#d8d8e8;gap:5px}.project-selection-bar button>.ui-icon{width:14px;height:14px}.dashboard-footer{max-width:none;margin-top:15px;font-size:11px;color:#98a1ad}
@media(max-width:1100px){.dashboard-sidebar{width:205px;padding:24px 12px}.dashboard-main{padding:28px 24px}.project-table th:nth-child(3){width:120px}.project-table th:nth-child(4){width:140px}}
@media(max-width:620px){.dashboard-sidebar{display:flex;width:155px;padding:20px 9px}.dashboard-nav{font-size:11px;padding:8px 6px;gap:5px}.dashboard-nav>span:last-child:not(.ui-icon){display:none}.dashboard-create{font-size:11px;padding:0 8px;gap:5px}.dashboard-main{padding:23px 16px}.dashboard-heading h1>#projectListHeading{font-size:21px}.dashboard-tools{gap:7px}.project-search{width:auto;flex:1}.account-button .identity{display:none}.dashboard-storage{font-size:9px;padding:0 5px}}

.file-selection-bar{display:flex;align-items:center;gap:5px;padding:5px 10px;background:#ececf8;border-bottom:1px solid #dcdced;flex:none}.file-selection-bar>span{font-size:11px;color:#575781;margin-right:auto}.file-selection-bar>button{width:25px;height:24px;padding:4px;display:grid;place-items:center;border:0;background:none;color:#747496;border-radius:3px}.file-selection-bar>button:hover{background:#dfdff2}.file-selection-bar .ui-icon{width:14px;height:14px}.tree-file.tree-selected,.tree-folder>summary.tree-selected{background:#ddddf3!important;color:#15156d;box-shadow:inset 3px 0 #0f0f70}.file-tree{user-select:none}.workbench[data-sidebar=outline] #fileSelectionBar{display:none!important}

.preview-tabs{display:flex;align-items:stretch;gap:0;min-height:34px;background:#f8f9fb;border-bottom:1px solid #d9dfe6;flex:none;padding-left:8px}.preview-tabs>button{border:0;border-bottom:2px solid transparent;background:none;font-size:12px;color:#7c8794;padding:7px 13px;display:flex;align-items:center;gap:7px}.preview-tabs>button[aria-selected=true]{color:#0f0f70;border-bottom-color:#0f0f70;background:white}.preview-tabs>button:disabled{opacity:.4}.log-error-badge{color:#a74c3e;background:#faeae6;padding:1px 5px;border-radius:3px;font-size:10px}.log-status-badge{color:#7b7b9d;font-size:10px}.compile-log-panel{flex:1;min-height:0;overflow:auto;padding:18px 18px 30px;background:#fff}.compile-log-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.compile-log-heading h2{font-size:15px;font-weight:600;margin:0;color:#3e4855}.compile-log-heading button{font-size:10px;padding:4px 9px;color:#74748e;border-color:#dcdcea}.compile-log-meta{font-size:10px;color:#929ca7;margin:8px 0 16px}.compile-error-summary{font:11px/1.8 var(--mono);color:#9d4d3e;background:#fcf1ee;border:1px solid #f0d9d1;border-left:3px solid #bc6c58;border-radius:4px;padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 20px}.compile-raw-heading{font-size:11px;font-weight:600;color:#7c8793;margin-bottom:8px}.compile-log-text{font:11px/1.75 var(--mono);color:#65717e;background:#f6f7f9;border:1px solid #e7eaef;border-radius:4px;padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;user-select:text}.preview[data-mode=logs]>.statusbar{display:none}#showLogs[aria-pressed=true]{background:#e7e7f5;color:#0f0f70}

.remote-caret{position:relative;display:inline-block;height:1.25em;vertical-align:text-bottom;border-left:2px solid var(--peer-color);margin-left:-1px;margin-right:-1px;pointer-events:none;z-index:3}.remote-caret-name{position:absolute;left:-2px;bottom:100%;background:var(--peer-color);border-radius:3px 3px 3px 0;color:white;font:10px/1.5 var(--sans);padding:1px 5px;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 1px 4px #0002}.remote-caret-idle{opacity:.6}.remote-selection{border-radius:2px}.collaboration-bar{display:flex;align-items:center;gap:8px;padding:5px 11px;background:#fafafd;border-bottom:1px solid #e7e7f0;min-height:28px;flex:none;overflow:hidden}.collaboration-caption{font-size:10px;color:#9b9bab;white-space:nowrap}.collaborator-chip{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:#757587;white-space:nowrap}.collaborator-chip::before{content:'';width:6px;height:6px;background:var(--peer-color);border-radius:50%;flex:none}
/* AI work requests and human review */
.workspace-mode-switch{display:flex;background:#f0f0f7;border:1px solid #dddde9;border-radius:6px;padding:2px;margin-right:8px}.workspace-mode-switch button{border:0;border-radius:4px;background:transparent;color:#5b5b7b;font-size:11px;padding:5px 10px}.workspace-mode-switch button:first-child{background:white;color:var(--accent);box-shadow:0 1px 3px #15154c12}
.workbench.files-visible[data-sidebar=ai]{grid-template-columns:40px 332px minmax(0,var(--editor-fr,1fr)) 6px minmax(0,var(--pdf-fr,1fr))}.workbench[data-sidebar=ai] .file-panel>:not(.ai-panel){display:none!important}.workbench[data-sidebar=ai] .file-panel{background:#fbfbfe}.ai-panel{height:100%;min-height:0;display:flex;flex-direction:column}.ai-panel-heading{display:flex;align-items:center;justify-content:space-between;padding:19px 18px 15px;background:#fff}.ai-eyebrow{font-size:8px;letter-spacing:1.3px;color:#8d8da7}.ai-panel h2{font-size:20px;color:#20204c;letter-spacing:-.7px;margin:4px 0 0}.ai-panel h3{font-size:15px;color:#26264c;margin:0 0 10px}.ai-panel h4{font-size:12px;display:flex;align-items:center;gap:8px}.ai-panel h4>span{color:#8a8aa6}.ai-panel-tabs{display:flex;border-top:1px solid #ededf5;border-bottom:1px solid #dedeea;background:white;flex:none}.ai-panel-tabs button{flex:1;border:0;background:transparent;padding:12px 6px;color:#8a8aa0;font-size:12px;border-bottom:2px solid transparent}.ai-panel-tabs button.active{color:var(--accent);border-bottom-color:var(--accent);font-weight:650}.ai-panel-tabs span{font-size:10px;background:#eeeeff;border-radius:8px;padding:1px 5px;margin-left:4px}.ai-task-list,.ai-task-detail,.ai-compose{overflow:auto;flex:1;min-height:0;padding:15px}.ai-task-card{display:block;width:100%;text-align:left;border:1px solid #e0e0ec;border-radius:8px;background:white;padding:13px;margin-bottom:10px;box-shadow:0 2px 4px #27274403}.ai-task-card>div{display:flex;align-items:center;justify-content:space-between;gap:6px}.ai-task-card small{color:#9999aa;font-size:9px}.ai-task-card>strong{display:block;font-size:12px;color:#272749;margin:10px 0;line-height:1.6;overflow-wrap:anywhere}.ai-task-target,.ai-task-author{display:block;font-size:10px;color:#88889e;overflow-wrap:anywhere}.ai-task-author{margin-top:6px;color:#72728e}.ai-status{display:inline-flex;border-radius:4px;background:#efeff5;padding:3px 7px;color:#74748b;font-size:10px;font-weight:600}.ai-status.review,.ai-status.pending{background:#eaeaff;color:#282886}.ai-status.applied{background:#e9f3ee;color:#35634c}.ai-status.in_progress{background:#f6f0df;color:#83621d}.ai-status.rejected,.ai-status.cancelled{background:#f5eded;color:#956767}.ai-status.undone{background:#eef0f7;color:#636d8b}.ai-empty{padding:24px 7px;line-height:1.9}.ai-empty>span{color:#8787a9;font-size:10px}.ai-empty h3{margin-top:14px;font-size:17px}.ai-empty p{font-size:12px;color:#8b8ba0;margin:12px 0 23px}.ai-empty-small{font-size:11px;color:#9494a8;border:1px dashed #dcdce8;padding:18px 12px;border-radius:6px;line-height:1.9}.ai-help{font-size:10px;color:#8b8ba0;line-height:1.9}.ai-anchor-actions{display:flex;gap:6px;margin:15px 0}.ai-panel .secondary-button{font-size:10px;padding:6px 8px;min-height:29px}.ai-panel .primary{font-size:11px;border-radius:5px;padding:9px 12px}.ai-anchor{padding:13px;border:1px solid #e1e1ef;border-radius:6px;background:white;color:#85859f;font-size:10px;line-height:1.8;margin-bottom:14px;overflow-wrap:anywhere}.ai-anchor strong,.ai-anchor span{display:block}.ai-anchor strong{color:#46466e;font-weight:600}.ai-anchor blockquote,.ai-selected-quote blockquote{margin:10px 0 0;padding-left:10px;border-left:2px solid #d3d3e8;color:#7c7c95;font-size:10px;max-height:140px;overflow:auto}.ai-quick-requests{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0}.ai-quick-requests button{border:1px solid #dedeea;background:#fff;border-radius:12px;color:#6a6a90;padding:4px 8px;font-size:10px}.ai-compose textarea{width:100%;border:1px solid #dcdcea;border-radius:6px;resize:vertical;min-height:120px;padding:12px;font:12px/1.8 var(--sans);color:#42425e}.ai-warning{padding:10px 11px;background:#fff7e5;color:#8a6b29;border:1px solid #eee1bc;border-radius:5px;font-size:10px;line-height:1.8;margin:12px 0}.ai-panel-footer{border-top:1px solid #e5e5ef;padding:10px 15px;background:white;display:flex;flex-direction:column;gap:2px;flex:none}.ai-panel-footer button{font-size:11px;text-align:left;padding:0}.ai-panel-footer span{font-size:9px;color:#a0a0b0}.ai-detail-heading{margin:16px 0}.ai-detail-heading h3{margin:9px 0;line-height:1.6}.ai-detail-heading p{color:#9090a5;font-size:10px}.ai-request-text{font-size:12px;color:#63637f;white-space:pre-wrap;line-height:1.9;overflow-wrap:anywhere}.ai-anchor-link{width:100%;background:white;border:1px solid #e1e1ec;border-radius:5px;color:#737394;font-size:10px;padding:9px;text-align:left;overflow-wrap:anywhere}.ai-task-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:15px}.ai-working{border-left:2px solid #c7b371;padding:6px 10px;color:#8a7744;font-size:10px;margin:12px 0}.ai-proposals{border-top:1px solid #e4e4ef;margin-top:21px}.ai-proposal-card{background:white;border:1px solid #dcdceb;border-radius:7px;padding:13px;margin:10px 0}.ai-proposal-card p{font-size:11px;white-space:pre-wrap;color:#696986;line-height:1.9}.ai-proposal-card small{display:block;color:#9696aa;font-size:10px;margin-bottom:12px}.ai-proposal-card>button{width:100%}.ai-build-history>button{display:flex;align-items:center;justify-content:space-between;text-align:left;width:100%;background:#f2f2f8;border:0;border-radius:4px;padding:9px 8px;margin:5px 0;font-size:10px;color:#82829b;gap:6px}.ai-build-history strong{font-size:10px;color:#666690;white-space:nowrap}.ai-events{margin:20px 0;color:#9a9aaa;font-size:10px}.ai-selected-quote{font-size:10px;color:#8b8b9d;margin:11px 0}.ai-events p{font-size:9px;line-height:1.9}.ai-copy-prompt{width:100%;min-height:320px;font:12px/1.8 var(--sans);padding:15px}.ai-context-file{font-size:12px}.ai-context-file small{color:#9999ad;margin-left:8px}.ai-build-log{font:11px/1.7 var(--mono);white-space:pre-wrap;max-height:60vh;overflow:auto;background:#f4f4f8;padding:18px}
.pdf-page{position:relative}.pdf-region-box{position:absolute;pointer-events:none;background:#28289722;border:1.5px solid #7777ca;border-radius:2px;z-index:2}.pdf-selecting .pdf-canvas{cursor:crosshair;touch-action:none;user-select:none}#pdfRegionSelect.active{background:#ececff;color:var(--accent);border-color:#d2d2ed}.ai-review-modal{width:94vw!important;max-width:1500px!important;max-height:92vh}.ai-review-modal .modal-body{padding:20px 25px;overflow:auto}.ai-review-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.ai-review-intro h3{margin:0 0 6px;font-size:17px}.ai-review-intro p{font-size:12px;color:#85859b;white-space:pre-wrap}.ai-review-tabs{display:flex;gap:15px;border-bottom:1px solid #dedeea;margin:18px 0}.ai-review-tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:9px 6px;color:#8c8ca4}.ai-review-tabs button.active{color:var(--accent);border-bottom-color:var(--accent)}.ai-file-diff{border:1px solid #e3e3ed;border-radius:5px;margin:13px 0}.ai-file-diff summary{padding:9px 12px;background:#f7f7fb;font-size:12px;color:#6c6c8c}.ai-file-diff pre{font:11px/1.8 var(--mono);max-height:400px;overflow:auto;margin:0;padding:9px 0}.ai-file-diff pre span{display:block;min-height:18px;padding:0 13px;white-space:pre-wrap;overflow-wrap:anywhere}.diff-add{background:#eaf6ef;color:#326448}.diff-remove{background:#fcf0f0;color:#965757}.ai-review-footer{position:sticky;bottom:-20px;background:white;border-top:1px solid #e3e3ed;margin:18px -1px -1px;padding:15px 0 3px;display:flex;justify-content:space-between;align-items:center;gap:12px}.ai-review-footer>span{font-size:11px;color:#8b8ba3}.ai-review-footer>div{display:flex;gap:7px;flex-wrap:wrap}.ai-review-footer button{font-size:11px;padding:8px 12px}.ai-pdf-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}.ai-pdf-pair>section{min-width:0}.ai-pdf-pair h4{font-size:12px;color:#7a7a97}.ai-compare-stage{height:52vh;overflow:auto;background:#eceef3;padding:14px;border:1px solid #e0e2e9;color:#9393aa;font-size:12px}.ai-compare-stage .pdf-page{margin:0 auto 14px;max-width:100%;width:100%}.ai-compare-stage canvas{width:100%;height:auto;display:block}.ai-compare-stage figcaption{text-align:center;font-size:10px;color:#9999ac;padding:5px}
@media(max-width:1100px){.workbench.files-visible[data-sidebar=ai]{grid-template-columns:40px 290px minmax(0,var(--editor-fr,1fr)) 5px minmax(0,var(--pdf-fr,1fr))}.workspace-mode-switch button{padding:4px 7px}.pdf-controls{gap:0}#pdfRegionSelect{font-size:10px}}
@media(max-width:700px){.workbench.files-visible[data-sidebar=ai]{grid-template-columns:35px 250px 1fr}.workbench[data-sidebar=ai] .panel-splitter{display:none}.workbench[data-sidebar=ai] .preview{grid-column:3/6}.workbench[data-sidebar=ai][data-layout=both] .editor-pane{display:none}.workspace-mode-switch{display:none}.ai-pdf-pair{grid-template-columns:1fr}.ai-review-footer{flex-direction:column;align-items:stretch}.ai-panel-heading{padding:12px}.ai-panel h2{font-size:17px}}
.workspace-mode-switch button:first-child{background:transparent;color:#5b5b7b;box-shadow:none}.workspace-mode-switch button.active{background:white;color:var(--accent);box-shadow:0 1px 3px #15154c12}
.ai-anchor-range{display:flex;gap:10px;margin:10px 0 2px}.ai-anchor-range label{font-size:9px;color:#9696aa;flex:1;min-width:0}.ai-anchor-range input{display:block;max-width:100%;width:100%;margin-top:3px;padding:5px 7px;border:1px solid #e2e2ec;border-radius:4px;background:#fcfcff;color:#646484;font-size:11px}
