.drawer.file-viewer{flex-direction:column;gap:8px;width:calc(100vw - 32px);max-width:1600px;height:calc(100dvh - 32px);max-height:none;padding:16px;display:flex;overflow:hidden}.file-viewer>header{flex-shrink:0}.fv-actions,.fv-controls,.fv-switch{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.fv-panels{flex:1;grid-template-columns:minmax(0,1fr);gap:16px;min-height:0;display:grid}.fv-panels.compare{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.fv-side,.fv-panel{flex-direction:column;gap:8px;min-width:0;min-height:0;display:flex}.fv-panel{flex:1}.fv-panel header{overflow-wrap:anywhere;max-height:28vh;font-size:13px;overflow:auto}.fv-panel h3{margin:0;font-size:16px}.fv-panel code{overflow-wrap:anywhere}.fv-artwork-status{overflow-wrap:anywhere;flex-shrink:0;font-size:13px}.fv-artwork-status p{margin:2px 0}.fv-artwork-actions{flex-wrap:wrap;align-items:flex-start;gap:12px;display:flex}.fv-artwork-actions label{flex-wrap:wrap;align-items:center;gap:5px;display:inline-flex}.fv-artwork-actions details[open]{max-height:22vh;overflow:auto}.fv-controls input{width:60px}.fv-controls label{align-items:center;gap:4px;display:flex}.fv-controls select{max-width:145px}.fv-canvas-area{scrollbar-gutter:stable both-edges;background:repeating-conic-gradient(#eee 0% 25%,#fff 0% 50%) 50%/20px 20px;flex:1;min-height:100px;padding:16px;position:relative;overflow:auto}.fv-render-status{z-index:1;background:#fff;margin:0;padding:4px 8px;position:absolute;inset:16px auto auto 16px}.fv-canvas-area canvas{margin:auto;display:block}.fv-switch{display:none}.fv-side>label select{max-width:100%}.file-viewer .error-box{flex-shrink:0}.file-viewer input{max-width:100%}@media (width<=1099px){.fv-panels.compare{grid-template-columns:minmax(0,1fr)}.fv-panels.compare .fv-side:not(.active){display:none}.fv-switch{display:flex}}@media (width<=600px){.drawer.file-viewer{width:100vw;height:100dvh;padding:10px}.fv-controls{gap:5px;font-size:12px}.fv-actions button{font-size:12px}.fv-panel header{max-height:22vh}}.fv-panel[data-background=white] .fv-canvas-area{background:#fff}.fv-panel[data-background=checkerboard] .fv-canvas-area{background-color:#fff;background-image:conic-gradient(#e5e7eb 25%, transparent 0 50%, #e5e7eb 0 75%, transparent 0);background-size:24px 24px}.portal-file-host{z-index:1000;pointer-events:none;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.portal-file-host .portal-sheet{box-sizing:content-box;pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab;background:#fff;border:1px solid #777;margin:0;padding:0;position:absolute}.portal-sheet:focus{outline:none}.portal-sheet-moving{cursor:grabbing}.portal-sheet>.fv-panel{gap:0;width:100%;height:100%}.portal-sheet .fv-canvas-area{box-sizing:border-box;scrollbar-gutter:auto;background:#fff;border:0;flex:none;width:100%;height:100%;min-height:0;padding:0;overflow:hidden}.portal-sheet .fv-canvas-area canvas{margin:0;display:block;width:100%!important;height:100%!important}.portal-sheet .fv-canvas-area>div{width:100%!important;height:100%!important}.portal-sheet img{pointer-events:none;width:var(--sheet-image-width)!important;height:var(--sheet-image-height)!important}.portal-sheet-error{color:#992426;background:#fff;margin:0;padding:4px;position:absolute;inset:auto 6px 6px}.portal-sheet-edge{z-index:2;position:absolute}.portal-sheet-edge-n,.portal-sheet-edge-s{cursor:ns-resize;height:6px;left:8px;right:8px}.portal-sheet-edge-n{top:0}.portal-sheet-edge-s{bottom:0}.portal-sheet-edge-e,.portal-sheet-edge-w{cursor:ew-resize;width:6px;top:8px;bottom:8px}.portal-sheet-edge-e{right:0}.portal-sheet-edge-w{left:0}.portal-sheet-edge-ne,.portal-sheet-edge-nw,.portal-sheet-edge-se,.portal-sheet-edge-sw{width:10px;height:10px}.portal-sheet-edge-ne,.portal-sheet-edge-sw{cursor:nesw-resize}.portal-sheet-edge-nw,.portal-sheet-edge-se{cursor:nwse-resize}.portal-sheet-edge-ne{top:0;right:0}.portal-sheet-edge-nw{top:0;left:0}.portal-sheet-edge-se{bottom:0;right:0}.portal-sheet-edge-sw{bottom:0;left:0}.portal-file-viewer{pointer-events:auto;flex-direction:column;gap:4px;width:min(460px,100% - 16px);max-height:100%;display:flex}.portal-file-viewer>p,.portal-file-recovery{box-sizing:border-box;background:#fff;border:1px solid #aaa;margin:0;padding:4px 6px}.portal-file-host .portal-file-viewer button{width:auto;min-height:0;margin:0;padding:4px 6px;font:12px/1.3 system-ui,sans-serif}.portal-file-error{color:#992426}.portal-file-recovery{flex-wrap:wrap;align-items:flex-start;gap:12px;display:flex}.portal-file-recovery details{max-height:25vh;overflow:auto}.cabinet{color:#24292e;background:#f4f5f7;min-height:100vh;font:16px/1.5 system-ui,sans-serif}.cabinet *{box-sizing:border-box}.cabinet header{background:#fff;border-bottom:1px solid #ddd;justify-content:space-between;align-items:center;padding:16px 24px;display:flex}.cabinet header img{width:180px;height:auto}.cabinet main{max-width:1000px;margin:auto;padding:24px}.cabinet section,.cabinet article{background:#fff;border:1px solid #ddd;border-radius:8px;margin-bottom:16px;padding:20px}.cabinet h1{font-size:24px}.cabinet label{margin:12px 0;display:block}.cabinet input,.cabinet select,.cabinet textarea{font:inherit;border:1px solid #a0a4ac;border-radius:5px;width:100%;padding:10px}.cabinet input[type=checkbox]{width:auto}.cabinet button,.cabinet a.action{font:inherit;cursor:pointer;background:#fff;border:1px solid #aaa;border-radius:5px;margin:4px;padding:9px 14px}.cabinet button.primary{color:#fff;background:#b8292b;border-color:#b8292b}.cabinet button:disabled{opacity:.55;cursor:wait}.cabinet .error{color:#992426;background:#fff1f1;border-radius:5px;padding:12px}.cabinet .field-error{color:#992426;font-size:14px}.cabinet .steps{flex-wrap:wrap;gap:8px;margin:16px 0;display:flex}.cabinet .selected{border:2px solid #b8292b}.cabinet .columns{grid-template-columns:250px 1fr;gap:16px;display:grid}.cabinet .messages{max-height:55vh;overflow:auto}.cabinet .message{white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f6f8;border-left:3px solid #b8292b;margin:12px 0;padding:12px}.cabinet small{color:#63676e}.cabinet .document{border-bottom:1px solid #ddd;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 0;display:flex}.cabinet nav{flex-wrap:wrap;gap:8px;display:flex}.cabinet .viewer{z-index:1000;background:#fff;border:1px solid #aaa;padding:16px;position:fixed;inset:20px;overflow:auto}.cabinet .viewer canvas{max-width:100%}@media (width<=600px){.cabinet main,.cabinet header{padding:12px}.cabinet header img{width:140px}.cabinet .columns{grid-template-columns:1fr}.cabinet section,.cabinet article{padding:14px}.cabinet .viewer{inset:5px}}.cabinet .viewer{flex-direction:column;gap:8px;display:flex;overflow:hidden}.cabinet .viewer>button,.cabinet .viewer>h2,.cabinet .viewer>a{flex-shrink:0;margin:0}.cabinet .viewer>.fv-panel{flex:1;min-height:0}.cabinet .viewer>.fv-panel>.fv-canvas-area{min-height:100px}.cabinet .conversation-back{display:none}@media (width<=600px){.cabinet.active-chat .new-topic,.cabinet.active-chat .conversation-list{display:none}.cabinet.active-chat .conversation-back:not([hidden]){display:block}}.cabinet main,.cabinet section,.cabinet article,.cabinet .columns>*,.cabinet .document>*{min-width:0;max-width:100%}.cabinet .columns{grid-template-columns:minmax(0,250px) minmax(0,1fr)}.cabinet section,.cabinet article,.cabinet dl,.cabinet p,.cabinet a,.cabinet small,.cabinet h2,.cabinet h3,.cabinet .document{overflow-wrap:anywhere}.cabinet button{white-space:normal;overflow-wrap:anywhere;max-width:calc(100% - 8px)}.cabinet input,.cabinet select,.cabinet textarea{min-width:0;max-width:100%}.cabinet dd{margin-inline-start:16px}.cabinet .conversation-list>button{text-align:left;display:block}.cabinet .conversation-list small{display:block}@media (width<=600px){.cabinet .columns{grid-template-columns:minmax(0,1fr)}.cabinet .columns.active-dialog>.conversation-list{display:none}.cabinet .conversation-back:not([hidden]){display:block}.cabinet header{flex-wrap:wrap;gap:8px}}
