:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#243547;background:#f1f4f8;font-size:14px;--blue:#1473d1;--navy:#102c48;--line:#e3e9ef;--muted:#708195}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #74b5f5;outline-offset:2px}button{border:1px solid transparent;border-radius:7px;padding:10px 15px;min-height:40px;line-height:1.35;background:#edf3f9;color:#244764;font-weight:600;white-space:normal}button:hover{background:#e0ecf8}.primary{background:var(--blue);color:white}.primary:hover{background:#0b5fb4}.secondary{background:white;border-color:#cdd8e3}.danger{color:#b02e3d;background:#fff3f3;border-color:#f0cccc}.link{background:transparent;color:var(--blue)}a{color:var(--blue);text-decoration:none}.top{height:76px;background:var(--navy);display:flex;align-items:center;justify-content:space-between;padding:0 28px;color:#dbe8f5;gap:20px}.brand{font-size:25px;font-weight:750;letter-spacing:1px;color:white;line-height:1.05}.brand span{font-weight:350;margin-left:7px}.brand small{display:block;font-size:8px;letter-spacing:3px;color:#8fb0d0;margin-top:7px}.local{font-size:12px;color:#acc4db;display:flex;gap:8px;align-items:center}.local i{width:7px;height:7px;border-radius:50%;background:#6ab2f4}.identity{display:flex;align-items:center;gap:10px;font-size:12px}.avatar{background:#285075;border:1px solid #466888;border-radius:50%;width:32px;height:32px;display:grid;place-items:center}.shell{display:flex;min-height:calc(100dvh - 76px)}.sidebar{width:220px;flex:0 0 220px;background:#fff;border-right:1px solid var(--line);padding:28px 16px 18px;display:flex;flex-direction:column}.sidebar label{font-size:10px;letter-spacing:1.1px;font-weight:700;color:#8291a1;margin-bottom:10px}.sidebar select{width:100%;margin-bottom:29px;background:#f5f8fb;border-color:#e0e7ef;font-weight:600}nav{display:grid;gap:6px}.nav-item{background:transparent;border-radius:8px;display:flex;align-items:center;gap:13px;text-align:left;width:100%;padding:13px;font-weight:550;color:#607286}.nav-item.active{background:#e8f2ff;color:#0969c5;font-weight:650}.nav-icon{font-size:20px;width:23px;text-align:center}.sidebar-bottom{margin-top:auto;padding-top:48px}.sidebar-bottom small{font-size:10px;color:#91a0af;display:flex;justify-content:space-between;margin-top:25px}main{min-width:0;flex:1;padding:30px}h1{font-size:26px;line-height:1.3;margin:0;font-weight:650;letter-spacing:-.6px}h2{font-size:17px;line-height:1.4;margin:0}h3{font-size:14px;margin:0}p{line-height:1.6}.muted{color:var(--muted)}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.page-head p{margin:6px 0 0;color:var(--muted);font-size:13px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1px;color:var(--blue);margin-bottom:9px}.actions{display:flex;gap:8px;flex-wrap:wrap}.card{background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 3px 10px #122e4c04;overflow:hidden}.card-head{padding:20px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.badge{font-size:12px;color:#738498;background:#f0f3f7;padding:3px 8px;border-radius:12px;margin-left:7px;font-weight:500}.workspace{display:grid;grid-template-columns:minmax(270px,340px) minmax(0,1fr);gap:20px;min-height:570px;height:calc(100dvh - 210px)}.library{display:flex;flex-direction:column;min-height:0}.library-tools{padding:16px;border-bottom:1px solid var(--line)}.library-tools .actions{margin-top:12px}.search{width:100%;background:#f8fafc}.tree{padding:10px 8px;overflow:auto;flex:1}.tree-row{display:flex;align-items:center;border-radius:6px;min-height:43px;gap:4px}.tree-row:hover{background:#f3f7fb}.tree-row.selected{background:#e9f2ff;color:#1269bb}.tree-select{background:transparent;min-width:0;flex:1;text-align:left;padding:8px 6px;display:flex;gap:9px;align-items:center;font-weight:450}.tree-select:hover{background:transparent}.tree-select .name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.file-icon{color:#5b8ab5;flex-shrink:0}.more{background:transparent;padding:4px 7px;min-height:32px;color:#8a99a8;font-size:17px}.tree-footer{padding:13px 17px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.viewer{display:flex;flex-direction:column;min-width:0}.viewer-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px;border-bottom:1px solid var(--line);min-height:73px}.viewer-head h2{font-size:14px;overflow-wrap:anywhere}.viewer-head small{display:block;color:var(--muted);margin-top:5px}.preview{background:#e8edf3;flex:1;min-height:360px;display:flex;align-items:stretch;justify-content:center}.preview iframe{width:100%;height:100%;min-height:470px;border:0}.preview img{max-width:100%;max-height:75vh;object-fit:contain}.empty{padding:42px 25px;text-align:center;margin:auto;max-width:440px;color:var(--muted)}.empty .empty-icon{margin:0 auto 20px;background:#f1f6fc;color:#6e9bc7;width:72px;height:72px;display:grid;place-items:center;border-radius:20px;font-size:30px}.empty h2{color:#3c5268}.empty p{font-size:13px}.viewer .empty{max-width:430px}.settings-width{max-width:1050px}.project-row{display:flex;align-items:center;padding:20px 22px;gap:15px;border-bottom:1px solid var(--line)}.project-row:last-child{border:0}.project-symbol{width:44px;height:44px;background:#edf4fd;border:1px solid #e1ebf8;border-radius:10px;display:grid;place-items:center;color:#4888c7;font-size:21px}.project-info{flex:1;min-width:0}.project-info h3{font-size:15px;overflow-wrap:anywhere}.project-info p{margin:5px 0 0;font-size:12px;color:var(--muted)}.project-open{background:transparent;text-align:left;padding:0;color:inherit}.form-card{padding:27px;max-width:820px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.field{display:flex;flex-direction:column;gap:8px;min-width:0}.field.wide{grid-column:1/-1}.field label{font-size:12px;font-weight:650;color:#506479}input,select,textarea{width:100%;border:1px solid #cfd9e4;border-radius:6px;padding:10px 12px;color:#273c50;min-height:42px;background:white}textarea{min-height:110px;resize:vertical}.form-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:26px;padding-top:22px;border-top:1px solid var(--line)}.back{margin-bottom:20px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:24px}.stat{padding:25px}.stat strong{font-size:33px;display:block;margin:12px 0 4px;font-weight:600;color:#264d73}.stat .muted{font-size:12px}.task-row{display:flex;align-items:flex-start;gap:14px;padding:20px;border-bottom:1px solid var(--line)}.task-row button{min-width:42px}.task-row p{margin:6px 0 0;font-size:13px;white-space:pre-wrap}.task-row.done h3{text-decoration:line-through;color:var(--muted)}#notice{background:#fff4dd;border:1px solid #eed69f;border-radius:8px;padding:14px 18px;line-height:1.5;margin-bottom:20px;display:flex;justify-content:space-between;gap:10px}#notice[hidden],#editor[hidden]{display:none}#editor{width:350px;flex:0 0 350px;border-left:1px solid var(--line);padding:25px;background:white;max-height:calc(100dvh - 76px);overflow:auto;position:sticky;top:0}#editor .field{margin-top:24px}#editor .form-footer{flex-wrap:wrap}#editor p{font-size:13px;color:var(--muted)}.error{color:#b02e3d!important}.intro{padding:25px}.intro p{max-width:650px;color:var(--muted);font-size:13px}.loading{padding:50px;color:var(--muted)}.progress{font-size:12px;color:var(--blue);padding:10px 0}
.pdf-host{display:flex;flex-direction:column;min-height:0;overflow:hidden}.pdf-toolbar{display:flex;align-items:center;gap:6px;padding:10px 14px;background:#f8fafc;border-bottom:1px solid var(--line);flex-wrap:wrap}.pdf-toolbar button{min-height:34px;padding:6px 10px}.pdf-toolbar input{width:53px;min-height:34px;padding:6px}.pdf-toolbar span{font-size:12px;color:#61778d;min-width:30px;text-align:center}.pdf-viewport{overflow:auto;flex:1;min-height:320px;padding:20px;overscroll-behavior:contain}.pdf-viewport canvas{display:block;margin:0 auto;background:white;box-shadow:0 3px 15px #102c4822;max-width:none}.pdf-status{padding:10px 14px;font-size:11px;background:#f8fafc;color:#708195}.workspace{min-height:440px;height:calc(100dvh - 230px)}
.pdf-stage{position:relative;margin:0 auto;flex:none}.pdf-pins{position:absolute;inset:0;pointer-events:none}.pdf-pin{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;min-height:32px;width:32px;padding:0;border-radius:50%;border:2px solid white;background:#1473d1;color:white;box-shadow:0 2px 7px #102c4870;font-size:14px;z-index:1}.pdf-pin:hover{background:#084b91}.pdf-pin.draft{background:#c15115}.pdf-pin.done{background:#596b7e}.pick-location canvas{cursor:crosshair}.task-workspace{display:grid;grid-template-columns:minmax(260px,330px) minmax(0,1fr);gap:20px;align-items:start}.task-form{padding:22px;display:grid;gap:20px}.task-form .field label{font-size:14px}.task-form p{margin:0;font-size:14px}.task-form .form-footer{margin:0;flex-wrap:wrap}.task-viewer{height:calc(100dvh - 260px);min-height:480px}.location-hint{padding:12px;background:#edf5ff;border-radius:7px;color:#2164a5;line-height:1.5}.task-content{min-width:0;flex:1}.task-location-link{text-align:left;overflow-wrap:anywhere;margin-top:8px;padding-left:0}.task-form input:read-only,.task-form textarea:read-only{background:#f6f8fb}.task-form select{min-width:0}.task-form h2{overflow-wrap:anywhere}
.pdf-viewport canvas.pdf-detail{position:absolute;pointer-events:none;margin:0;box-shadow:none;z-index:1}.pdf-pins{z-index:3}.pdf-measure-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;overflow:visible}.pdf-measure-overlay line{stroke:#1473d1;stroke-width:3}.pdf-measure-overlay circle{fill:#1473d1;stroke:white;stroke-width:2}.pdf-measure-overlay text{fill:#084b91;stroke:white;stroke-width:4;paint-order:stroke;stroke-linejoin:round;font:bold 16px 'Segoe UI',sans-serif}.pdf-measure-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 14px;background:white;border-bottom:1px solid var(--line);font-size:14px}.pdf-measure-tools[hidden],.pdf-measure-tools [hidden],.pdf-measure-overlay[hidden]{display:none}.pdf-measure-tools label{display:flex;align-items:center;gap:6px}.pdf-measure-tools input{width:100px}.pdf-measure-tools span{flex-basis:100%;color:#52677b}.pdf-toolbar button[aria-pressed=true]{background:var(--blue);color:white}.measuring canvas{cursor:crosshair}
@media(max-width:1000px){.task-workspace{grid-template-columns:1fr}.task-viewer{height:65dvh}.task-form{gap:16px}}
@media(min-width:1600px){main{padding:35px 40px}.workspace{grid-template-columns:370px minmax(0,1fr)}}
@media(max-width:1150px){.sidebar{width:180px;flex-basis:180px;padding:24px 12px}main{padding:22px}.workspace{grid-template-columns:270px minmax(0,1fr);gap:14px}#editor{width:300px;flex-basis:300px}.shell:has(#editor:not([hidden])) .workspace{grid-template-columns:1fr;height:auto}.local{display:none}}
@media(max-width:760px){.top{height:65px;padding:0 18px}.identity{font-size:0}.shell{flex-wrap:wrap}.sidebar{width:100%;flex-basis:100%;padding:12px;display:block}.sidebar label,.sidebar-bottom small{display:none}.sidebar select{margin:0 0 10px}nav{display:flex;overflow:auto}.nav-item{width:auto;white-space:nowrap;padding:10px}.sidebar-bottom{padding:0;margin-top:6px}.sidebar-bottom .nav-item{width:100%}main{padding:18px;width:100%;flex-basis:100%}.page-head{align-items:flex-start}.page-head .actions{justify-content:flex-end}h1{font-size:24px}.workspace{display:flex;flex-direction:column;height:auto}.library{max-height:380px}.viewer{min-height:470px}.preview iframe{height:65vh}.form-grid{grid-template-columns:1fr}.stats{grid-template-columns:1fr;gap:10px}.stat{padding:18px}.project-row{flex-wrap:wrap}.project-info{flex-basis:60%}#editor{position:static;width:100%;flex-basis:100%;max-height:none;border-top:1px solid var(--line)}.form-card{padding:20px}}
.workspace.library-collapsed{grid-template-columns:48px minmax(0,1fr)}.library-rail{display:flex;align-items:flex-start;justify-content:center}.library-rail button{writing-mode:vertical-rl;padding:16px 10px;min-width:44px;white-space:nowrap}.library[hidden],.library-rail[hidden]{display:none}.library-tools>.secondary{margin-bottom:12px}.workspace>.viewer{min-height:0}.workspace .pdf-viewport{min-height:0}.workspace.library-collapsed .viewer{height:100%;min-height:400px}
@media(max-width:760px){.workspace.library-collapsed{display:flex}.library-rail{justify-content:flex-start}.library-rail button{writing-mode:horizontal-tb;padding:10px 16px}.workspace.library-collapsed .viewer{height:75dvh;min-height:420px}}
.task-open{text-align:left;padding:0;min-height:32px;overflow-wrap:anywhere;max-width:100%}.task-row.done .task-open{text-decoration:line-through;color:var(--muted)}
@media(max-width:480px){.task-row{flex-wrap:wrap}.task-row>.task-content{flex-basis:calc(100% - 60px)}}
.document-focused>.page-head{display:none}.document-focused .workspace{height:calc(100dvh - 145px)}.chat-card{max-width:1100px;display:flex;flex-direction:column;height:calc(100dvh - 240px);min-height:450px}.chat-list{flex:1;overflow:auto;padding:20px}.chat-message{padding:14px 18px;background:#edf5ff;border-radius:10px;margin-bottom:12px}.chat-message time{display:block;font-size:12px;margin-top:4px}.chat-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:0}.chat-compose{padding:18px;border-top:1px solid var(--line)}.chat-compose textarea{min-height:70px}.chat-compose .error{margin:6px 0}
.chat-media{margin-top:12px}.chat-media .actions{align-items:center;margin-bottom:10px}.chat-media-frame{max-height:65dvh;overflow:auto;background:#e3eaf2;border-radius:8px;margin:10px 0;overscroll-behavior:contain}.chat-media-frame img{display:block;width:100%;height:auto}.chat-media-frame video{display:block;width:100%;max-height:60dvh}.chat-media a{display:inline-block}.chat-attachments{border-top:1px solid var(--line);margin-top:12px;padding-top:12px}.chat-attachments small{display:block;margin:8px 0}.chat-attachments p{margin:6px 0}.chat-compose{max-height:45dvh;overflow:auto;flex-shrink:0}.chat-list{min-height:150px}
.notebook{display:grid;grid-template-columns:270px minmax(0,1fr);gap:20px;align-items:start}.notebook-pages .card-head{flex-wrap:wrap}.notebook-page-list{padding:10px;max-height:70dvh;overflow:auto}.notebook-page{display:block;width:100%;background:transparent;text-align:left;padding:14px 12px;margin-bottom:5px}.notebook-page.selected{background:#e8f2ff;border-left:3px solid var(--blue)}.notebook-page strong{display:block;overflow-wrap:anywhere}.notebook-page small{display:block;color:var(--muted);font-size:12px;margin-top:7px}.notebook-paper{padding:28px;max-width:1100px}.notebook-fields{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:18px;margin-bottom:24px}.notebook .field{font-size:14px;font-weight:600}.notebook-body{min-height:280px;line-height:1.8;font-size:16px}.notebook-checks{display:grid;gap:9px;margin:16px 0}.notebook-form>.card-head{padding:24px 0 12px}.notebook-check{display:flex;align-items:center;gap:10px}.notebook-check input[type=checkbox]{width:22px;height:22px;min-height:22px;flex:0 0 22px;accent-color:var(--blue);cursor:pointer}.notebook-check input:not([type=checkbox]){min-width:0;flex:1;font-size:16px}.notebook-check.done input:not([type=checkbox]){text-decoration:line-through;color:var(--muted);background:#f5f7fa}.notebook-form>.muted,.notebook-form>.error{font-size:14px}.notebook-form .form-footer{position:sticky;bottom:0;background:white;padding-bottom:8px}
@media(max-width:1000px){.notebook{grid-template-columns:1fr}.notebook-page-list{max-height:240px}.notebook-paper{padding:20px}}
@media(max-width:520px){.notebook-fields{grid-template-columns:1fr}.notebook-paper{padding:14px}.notebook-form>.card-head{flex-wrap:wrap}}
.note-toolbar{display:flex;gap:6px;flex-wrap:wrap;padding:10px;background:#f3f7fc;border:1px solid var(--line);border-radius:8px;position:sticky;top:0;z-index:2}.note-toolbar button{font-size:14px;padding:8px 12px}.note-toolbar select{width:100px}.notebook-rich>.muted{font-size:13px}.note-surface{min-height:320px;padding:16px 12px;border:1px solid #cfd9e4;border-radius:8px;background:white}.note-row{display:flex;gap:10px;align-items:flex-start;padding:4px 0}.note-mark{width:22px;flex:0 0 22px;min-height:22px;margin-top:8px;text-align:center}.note-mark[type=checkbox]{height:22px;padding:0;accent-color:var(--blue);cursor:pointer}.note-text{flex:1;min-width:0;min-height:38px;padding:5px 4px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.note-text:focus{outline:2px solid #c3ddfa;border-radius:4px}.note-row.done .note-text{text-decoration:line-through;color:var(--muted)}.note-text[contenteditable=false]{background:#f8fafc}
.notebook-paper:has(.apple-note-surface){border-radius:10px;padding:24px 32px;max-width:none}.notebook:has(.apple-note-surface){grid-template-columns:250px minmax(0,1fr)}.apple-note-toolbar{background:white;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;gap:4px;padding:10px 0;align-items:center}.apple-note-toolbar .note-tool{background:transparent;color:#235d94;border:0;min-width:40px;font-size:17px;padding:8px 12px}.note-tool.bold{font-weight:800}.note-tool.italic{font-style:italic}.apple-note-toolbar .note-tool:hover{background:#edf4fc}.apple-note-toolbar select{border:0;background:#f3f6fa;min-height:36px;width:95px}.apple-note-surface{border:0;border-radius:0;min-height:55dvh;padding:22px 2px;cursor:text;outline:none;line-height:1.65;font-size:16px}.apple-note-surface:focus-visible{outline:none}.apple-note-row{display:block;position:relative;padding:0;min-height:1.65em;margin:0 0 4px;white-space:pre-wrap;overflow-wrap:anywhere}.apple-note-row.check,.apple-note-row.bullet{padding-left:30px}.apple-note-row .note-mark{position:absolute;left:0;top:0;margin-top:3px;user-select:none}.apple-note-row .note-text{display:inline;min-height:0;padding:0;border:0;outline:none;border-radius:0;white-space:pre-wrap;line-height:1.65}.apple-note-row .note-text:focus{outline:none}.note-editor-status:empty{display:none}.note-editor-status{font-size:14px;color:#b02e3d}.notebook-paper:has(.apple-note-surface) .notebook-fields .field{font-size:0;gap:0}.notebook-paper:has(.apple-note-surface) .notebook-fields input{border:0;background:transparent;padding:8px 0;font-size:14px;color:#708195}.notebook-paper:has(.apple-note-surface) .notebook-fields .field:first-child input{font-size:27px;font-weight:700;color:#243547}.notebook-paper:has(.apple-note-surface) .notebook-fields{align-items:center;gap:16px;margin-bottom:12px}.apple-note-surface[contenteditable=false]{opacity:.7}
@media(max-width:1000px){.notebook:has(.apple-note-surface){grid-template-columns:1fr}.notebook-paper:has(.apple-note-surface){padding:20px}}
@media(max-width:520px){.notebook-paper:has(.apple-note-surface){padding:14px}.apple-note-toolbar .note-tool{padding:7px 9px}.apple-note-surface{min-height:50dvh}}
@media(max-width:760px){.document-focused .workspace{height:auto}.workspace.library-collapsed .viewer{height:85dvh;min-height:700px}.workspace .pdf-viewport{min-height:280px}.pdf-measure-tools{font-size:14px;gap:6px}.pdf-measure-tools button{padding:7px 9px}}
.top-project{display:flex;align-items:center;gap:24px;min-width:0;flex:1}.top-project .brand{flex:none}.top-project select{width:clamp(170px,24vw,340px);min-width:0;background:#203f5c;color:white;border-color:#41607b;margin:0;font-size:16px}.top-project option{background:#203f5c;color:white}.sidebar{width:96px;flex-basis:96px;padding:18px 6px}.sidebar .nav-item{flex-direction:column;justify-content:center;gap:5px;padding:11px 3px;font-size:14px;line-height:1.25;text-align:center}.sidebar .nav-icon{font-size:24px;width:auto;line-height:1}.sidebar-bottom{padding-top:24px}.sidebar-bottom small{display:none}.sidebar nav{gap:5px}.pdf-measure-tools button[aria-pressed=true]{background:#e8f2ff;color:#0969c5}
body:has(.document-focused){height:100dvh;display:flex;flex-direction:column;overflow:hidden}body:has(.document-focused)>.top{flex-shrink:0}body:has(.document-focused)>.shell{flex:1;min-height:0;overflow:hidden}body:has(.document-focused) .sidebar{overflow:auto}main:has(.document-focused){padding:0!important;display:flex;flex-direction:column;min-height:0}main:has(.document-focused)>#notice{flex-shrink:0;margin:6px}#screen.document-focused{flex:1;min-height:0}.document-focused .workspace{height:100%;min-height:0;gap:0;display:grid}.document-focused .workspace.library-collapsed{grid-template-columns:minmax(0,1fr)}.document-focused .workspace>.viewer{height:100%;min-height:0;border:0;border-radius:0;box-shadow:none}.document-focused .viewer-head{min-height:44px;padding:5px 10px;gap:12px;flex-shrink:0}.document-focused .viewer-head>div{flex:1;min-width:0;display:flex;align-items:center;gap:12px}.document-focused .viewer-head h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-focused .viewer-head small{font-size:12px;white-space:nowrap;margin:0}.document-focused .viewer-head>a{white-space:nowrap;font-size:14px}.document-focused .library-toggle{padding:5px 10px;min-height:34px;flex-shrink:0}.document-focused .pdf-toolbar{padding:5px 10px}.document-focused .pdf-viewport{padding:6px;min-height:0}.document-focused .preview{min-height:0}.document-focused .pdf-status{padding:5px 10px;font-size:12px}.document-focused .library{border-radius:0;border-width:0 1px 0 0;max-height:none}.document-focused .pdf-measure-tools{max-height:35dvh;overflow:auto;flex-shrink:0}
@media(max-width:760px){.document-focused .workspace:not(.library-collapsed){grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(100px,30%) minmax(0,1fr)}.document-focused .viewer-head small{display:none}.document-focused .viewer-head{flex-wrap:wrap;gap:6px}.document-focused .viewer-head>div{min-width:80px}.document-focused .pdf-toolbar{gap:4px}.document-focused .pdf-toolbar button{padding:5px 7px}}
@media(max-width:760px){.top{height:auto;min-height:65px;padding:12px;gap:8px}.top-project{gap:12px}.top-project .brand{font-size:18px}.top-project select{width:auto;flex:1;font-size:14px;padding:8px;max-width:300px}.identity{display:none}.shell{flex-wrap:nowrap}.sidebar{width:76px;flex-basis:76px;display:flex;padding:12px 3px}.sidebar nav{display:grid;overflow:visible}.sidebar .nav-item{width:100%;white-space:normal;font-size:12px;padding:10px 2px}.sidebar-bottom{margin-top:auto}.sidebar-bottom .nav-item{width:100%}main{width:auto;flex-basis:auto;padding:12px}.top-project{width:100%}}
.pdf-viewport .pdf-stage:not(.measuring):not(.pick-location) canvas{cursor:grab}.pdf-viewport.pan-ready .pdf-stage canvas{cursor:grab}.pdf-viewport.panning,.pdf-viewport.panning .pdf-stage canvas{cursor:grabbing;user-select:none}.pdf-viewport{overflow-anchor:none;scroll-behavior:auto}
.pdf-page-controls,.pdf-zoom-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.note-delete-confirm{padding:16px;background:#fff4f3;border:1px solid #efc9c5;border-radius:10px}.note-delete-confirm[hidden]{display:none}.note-delete-confirm button{margin:4px}.danger{color:#b02e3d}
.document-focused .viewer:has(.drawing-viewer){position:relative;background:white;overflow:hidden}.document-focused .viewer:has(.drawing-viewer) .viewer-head{position:absolute;top:12px;left:12px;z-index:5;width:min(460px,calc(100% - 24px));min-height:58px;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 2px 12px #152d4820;flex-wrap:wrap;padding:10px}.document-focused .viewer:has(.drawing-viewer) .viewer-head>div{min-width:140px}.document-focused .viewer:has(.drawing-viewer) .viewer-head small{display:none}.document-focused .viewer:has(.drawing-viewer) .viewer-head h2{font-size:14px}.document-focused .viewer:has(.drawing-viewer) .viewer-head>a{font-size:12px}.document-focused .drawing-viewer{position:absolute;inset:0;min-height:0}.document-focused .drawing-viewer .pdf-viewport{position:absolute;inset:0;background:white;padding:8px}.document-focused .drawing-viewer canvas{box-shadow:none}.document-focused .drawing-viewer .pdf-toolbar{display:contents}.document-focused .drawing-viewer .pdf-page-controls{position:absolute;left:12px;top:100px;z-index:5;background:#fffffff5;border:1px solid var(--line);padding:6px;border-radius:9px;box-shadow:0 2px 10px #152d4815}.document-focused .drawing-viewer .pdf-page-controls input{width:52px}.document-focused .drawing-viewer .pdf-zoom-controls{position:absolute;right:12px;bottom:36px;z-index:5;max-width:110px;justify-content:center;background:#fffffff5;border:1px solid var(--line);padding:6px;border-radius:10px;box-shadow:0 2px 10px #152d4820}.document-focused .drawing-viewer .pdf-zoom-controls button{padding:6px;font-size:12px}.document-focused .drawing-viewer .pdf-measure-toggle{position:absolute;bottom:36px;left:50%;transform:translateX(-50%);z-index:5;background:white;border:1px solid var(--line);box-shadow:0 3px 14px #152d4830;padding:12px 24px;border-radius:10px}.document-focused .drawing-viewer .pdf-measure-toggle[aria-pressed=true]{color:white;background:var(--blue)}.document-focused .drawing-viewer .pdf-measure-tools{position:absolute;z-index:6;bottom:92px;left:50%;transform:translateX(-50%);width:min(520px,calc(100% - 32px));background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 3px 20px #152d4828;padding:16px}.document-focused .drawing-viewer .pdf-status{position:absolute;bottom:0;left:0;right:0;font-size:11px;background:#ffffffdc;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.pdf-page-controls[hidden]{display:none!important}
#screen.document-focused:has(.task-workspace){display:flex;flex-direction:column;overflow:hidden}.task-detail-head{display:flex;align-items:center;gap:14px;padding:10px 16px;background:white;border-bottom:1px solid var(--line);flex-shrink:0;min-width:0}.task-detail-head h1{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.task-detail-head button{min-height:34px;padding:6px 12px}.task-state{font-size:12px;background:#eaf2ff;color:#3266ac;padding:5px 10px;border-radius:20px;white-space:nowrap}.task-state.done{background:#e9f4ed;color:#376548}.document-focused .task-workspace{flex:1;min-height:0;grid-template-columns:280px minmax(0,1fr);gap:0;align-items:stretch}.document-focused .task-form{padding:18px;display:flex;flex-direction:column;gap:18px;overflow:auto;border-radius:0;border:0;border-right:1px solid var(--line);box-shadow:none}.document-focused .task-form .field label{font-size:12px}.document-focused .task-form input,.document-focused .task-form select,.document-focused .task-form textarea{font-size:13px;padding:9px;min-height:38px}.document-focused .task-form textarea{min-height:110px;max-height:40dvh}.document-focused .task-form .location-hint{font-size:12px;padding:10px}.document-focused .task-form .error:empty{display:none}.document-focused .task-form .form-footer{margin-top:auto;flex-shrink:0}.document-focused .task-viewer{height:100%;min-height:0;border:0;border-radius:0;box-shadow:none}.document-focused .task-viewer .empty{align-self:center}.document-focused .task-viewer .viewer-head{max-width:calc(100% - 24px)}
@media(max-width:760px){.document-focused .task-workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(130px,32%) minmax(0,1fr)}.document-focused .task-form{gap:12px;padding:12px;border-right:0;border-bottom:1px solid var(--line)}.task-detail-head{padding:8px;gap:8px}.task-detail-head h1{font-size:16px}.document-focused .task-form textarea{min-height:70px}.document-focused .task-viewer .viewer-head{min-height:40px;padding:6px 10px}}
.nav-item{position:relative}.chat-unread{position:absolute;top:5px;right:5px;background:#d93145;color:white;border:2px solid white;border-radius:20px;min-width:22px;height:22px;padding:0 4px;display:grid;place-items:center;font-size:10px;font-weight:750;line-height:18px}.chat-unread[hidden]{display:none}.chat-toast{position:fixed;bottom:22px;right:22px;z-index:50;background:#173751;color:white;box-shadow:0 5px 24px #102c4840;border-radius:12px;max-width:320px}.notebook-page-row{display:flex;align-items:stretch;border-bottom:1px solid var(--line)}.notebook-page-row .notebook-page{flex:1;min-width:0}.note-order{display:flex;flex-direction:column;justify-content:center;padding:4px;gap:3px}.note-order button{padding:0 7px;min-height:27px;font-size:15px}
.task-point{padding:10px 0;border-top:1px solid var(--line)}.task-point>.link{padding:4px 0;min-height:28px}.task-point textarea{margin:6px 0}.task-photos{border-top:1px solid var(--line);padding-top:16px}.task-photos h3{margin-bottom:10px}.task-photo-gallery details{margin-top:10px;border:1px solid var(--line);border-radius:8px;padding:7px}.task-photo-gallery summary{cursor:pointer;overflow-wrap:anywhere;font-size:12px}.task-photo-gallery summary img{width:100%;height:100px;object-fit:cover;border-radius:5px}.task-photo-detail{max-height:300px;overflow:auto}.task-photo-detail img{display:block;width:100%;max-width:none}.task-photo-gallery input[type=range]{padding:0}.task-photos p{font-size:12px}
.document-focused .task-form>*{flex-shrink:0}.document-focused .task-form>button{height:auto;min-height:40px}
.shell[hidden],.top[hidden]{display:none!important}.identity{gap:10px}.logout{min-height:32px;padding:5px 10px;background:#1c3d5d;border-color:#3e6284;color:#e6f0fa;font-size:12px}.logout:hover{background:#285075}.auth-gate{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px;background:#eef2f6}.auth-card{width:min(100%,440px);padding:34px;background:white;border:1px solid var(--line);border-radius:16px;box-shadow:0 16px 48px #102c4820}.auth-card .brand{display:block;color:var(--navy);margin-bottom:30px}.auth-card h1{font-size:26px;margin:0 0 6px}.auth-card>p{line-height:1.55}.auth-form{display:grid;gap:16px;margin-top:24px}.auth-form .field{margin:0}.auth-form .primary{width:100%;min-height:48px}.auth-help{border-top:1px solid var(--line);padding-top:16px;margin-top:24px;font-size:12px}.user-admin{margin-top:20px}.user-admin>.card-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px}.user-admin>.card-head p{margin:0}.user-create{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px;padding:18px 0;border-bottom:1px solid var(--line)}.user-create h3,.user-create>.error,.user-create>button{grid-column:1/-1}.user-create .field{margin:6px 0}.user-create input,.user-create select,.user-admin-row select{width:100%;min-height:40px;border:1px solid #cdd8e3;border-radius:7px;padding:8px 10px;background:white;color:inherit}.user-list{display:grid}.user-admin-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(160px,240px);gap:12px;padding:18px 0;border-bottom:1px solid var(--line)}.user-admin-identity{display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}.user-admin-options{display:grid;gap:8px}.inline-check{display:flex;align-items:center;gap:8px;font-size:13px}.inline-check input{width:18px;height:18px;accent-color:var(--blue)}.assignment-heading,.assignment-list,.user-admin-row>button{grid-column:1/-1}.assignment-list{display:flex;flex-wrap:wrap;gap:8px 18px}.user-admin-row>button{justify-self:start}@media(max-width:640px){.auth-card{padding:24px}.user-create,.user-admin-row{grid-template-columns:minmax(0,1fr)}.user-create h3,.user-create>.error,.user-create>button,.assignment-heading,.assignment-list,.user-admin-row>button{grid-column:1}}
