.resource-cover{border-bottom:1px solid var(--line);background:#f3f5f7;justify-content:center;align-items:center;width:100%;display:flex;position:relative;overflow:hidden}.resource-cover-image{background-color:#f7f8fa;background-image:linear-gradient(45deg,#e8ecf0 25%,#0000 25%),linear-gradient(-45deg,#e8ecf0 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#e8ecf0 75%),linear-gradient(-45deg,#0000 75%,#e8ecf0 75%);background-position:0 0,0 8px,8px -8px,-8px 0;background-size:16px 16px}.resource-cover img{object-fit:contain;width:100%;height:100%;display:block}.resource-cover-document{background:#eef1f5;padding:18px 18px 0}.resource-cover-document img{object-position:top;box-shadow:0 1px 8px #17203315}.resource-cover-other{aspect-ratio:1.65!important}.resource-cover-placeholder{color:#8e9aa9;flex-direction:column;justify-content:center;align-items:center;gap:16px;width:100%;height:100%;min-height:140px;display:flex}.resource-cover-placeholder span{color:#708196;font-size:11px;font-weight:600}.resource-cover-document .resource-cover-placeholder{color:#7087a6;background:#fff;border:1px solid #e0e5ec;border-bottom:0;padding:28px}.resource-cover-compact{border:1px solid var(--line);background-size:8px 8px;border-radius:4px;flex-shrink:0;width:46px;height:54px;padding:3px}.resource-cover-compact .resource-cover-placeholder{border:0;min-height:0;padding:0}.modal:has(.resource-reader){border-radius:8px;flex-direction:column;width:min(1180px,100vw - 64px);max-width:none;height:min(900px,100dvh - 64px);padding:0;display:flex;overflow:hidden}.modal:has(.resource-reader)>div{flex-direction:column;height:100%;min-height:0;display:flex}.modal:has(.resource-reader) .modal-heading{border-bottom:1px solid var(--line);flex-shrink:0;gap:16px;min-height:60px;margin:0;padding:12px 20px}.modal:has(.resource-reader) .modal-heading h2{text-overflow:ellipsis;white-space:nowrap;font-size:14px;line-height:1.5;overflow:hidden}.resource-reader{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.resource-reader-topbar{border-bottom:1px solid var(--line);min-height:60px;color:var(--muted);justify-content:space-between;align-items:center;gap:16px;padding:8px 20px;font-size:11px;display:flex}.resource-reader-topbar>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.resource-reader-topbar button{flex-shrink:0;align-items:center;gap:7px;min-height:40px;font-size:12px;display:inline-flex}.resource-reader-tools{border-bottom:1px solid var(--line);background:var(--surface);flex-shrink:0;justify-content:center;align-items:center;gap:8px;min-height:52px;font-size:12px;display:flex}.resource-reader-tools .icon-button{place-items:center;width:40px;height:40px;display:grid}.resource-reader-tools i{border-left:1px solid var(--line);height:18px;margin:0 6px}.resource-page-count{text-align:center;min-width:55px}.resource-pdf-reader{flex-direction:column;flex:1;min-height:0;display:flex}.resource-pdf-pages{text-align:center;background:#edf0f4;flex:1;min-height:0;padding:24px;position:relative;overflow:auto}.resource-pdf-pages canvas{background:#fff;max-width:none;margin:0 auto;display:block;box-shadow:0 2px 12px #14203316}.resource-page-loading{background:var(--surface);border:1px solid var(--line);border-radius:6px;align-items:center;gap:8px;padding:10px 14px;font-size:12px;display:flex;position:absolute;top:32px;left:50%;transform:translate(-50%)}.resource-image-stage{touch-action:none;background:#eef1f5;flex:1;justify-content:center;align-items:center;min-height:0;padding:24px;display:flex;overflow:hidden}.resource-image-stage img{object-fit:contain;cursor:grab;-webkit-user-select:none;user-select:none;max-width:100%;max-height:100%}.resource-reader-empty{text-align:center;min-height:200px;color:var(--muted);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:14px;padding:32px;display:flex}.resource-reader-empty p{overflow-wrap:anywhere;max-width:400px;margin:0;font-size:13px}.resource-reader-error{color:var(--danger);padding:32px;font-size:13px}.resource-plain-text{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--surface-muted,#f5f7fa);flex:1;min-height:0;margin:0;padding:24px;font-size:13px;line-height:1.8;overflow:auto}@media (max-width:740px){.modal:has(.resource-reader){border-radius:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh}.resource-pdf-pages{padding:16px}.resource-reader-topbar{padding:8px 14px}.resource-reader-filename{display:none}.resource-reader-tools{gap:2px}.resource-reader-tools .icon-button{width:44px;height:44px}.resource-reader-tools i{margin:0 2px}}@media (prefers-reduced-motion:reduce){.resource-reader .spin{animation:none}}
.resource-library{width:100%;min-width:0;max-width:1480px;margin:0 auto;padding:8px 8px 36px}.workspace-explorer{--workspace-file-columns:minmax(200px, 2fr) minmax(80px, .7fr) minmax(130px, 1.2fr) 76px 90px 36px;container:workspace-files/inline-size}.workspace-address-bar{align-items:center;gap:10px;min-width:0;padding:0 0 14px;display:flex}.workspace-address-bar>.icon-button{border:1px solid var(--line);border-radius:var(--form-radius);background:var(--surface);flex:0 0 40px;place-items:center;width:40px;height:40px;display:grid}.workspace-address{border:1px solid var(--line);border-radius:var(--form-radius);background:var(--surface);flex:1;min-width:0;height:40px}.workspace-address-editing{border-color:var(--focus-ring);box-shadow:0 0 0 1px var(--focus-ring)}.workspace-breadcrumbs{white-space:nowrap;cursor:text;border-radius:inherit;align-items:center;gap:4px;min-width:0;height:100%;padding:0 6px;display:flex;overflow:auto hidden}.workspace-breadcrumbs:focus-visible{outline:2px solid var(--focus-ring);outline-offset:-2px}.workspace-breadcrumbs>span{color:var(--muted);align-items:center;gap:4px;display:inline-flex}.workspace-breadcrumbs button{min-height:36px;color:var(--muted);background:0 0;border:0;border-radius:4px;padding:4px 8px;font-size:13px}.workspace-breadcrumbs button[aria-current]{color:var(--ink);font-weight:500}.workspace-breadcrumbs button:hover{background:var(--surface-muted);color:var(--ink)}.workspace-address>input{border-radius:inherit;width:100%;min-width:0;height:100%;min-height:0;color:var(--ink);font:inherit;box-shadow:none;background:0 0;border:0;padding:0 14px;font-size:13px}.workspace-address>input:focus{box-shadow:none;outline:none}.resource-search{min-width:140px;color:var(--muted);background:var(--surface);border:1px solid var(--line);border-radius:var(--form-radius);flex:0 260px;align-items:center;gap:9px;height:40px;padding:0 12px;display:flex}.resource-search>svg{flex-shrink:0}.resource-search input{width:100%;min-width:0;box-shadow:none;color:var(--ink);background:0 0;border:0;outline:none;padding:0;font-size:13px}.resource-search:focus-within{outline:2px solid var(--focus-ring);outline-offset:2px}.resource-search .icon-button{flex-shrink:0;place-items:center;width:28px;height:32px;margin-right:-6px;display:grid}.resource-browser-toolbar{border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:12px;padding:0 0 14px;display:flex}.workspace-file-commands,.resource-toolbar-tail{align-items:center;gap:6px;min-width:0;display:flex}.resource-toolbar-tail{margin-left:auto}.workspace-file-commands>.primary,.workspace-command{border-radius:var(--form-radius);white-space:nowrap;justify-content:center;align-items:center;gap:7px;min-height:40px;padding:0 13px;font-size:13px;display:inline-flex}.workspace-command{border:1px solid var(--line);color:var(--ink);background:var(--surface)}.workspace-command:hover:not(:disabled){background:var(--surface-muted)}.workspace-command:disabled{color:var(--muted);opacity:.5;cursor:not-allowed}.workspace-command-divider{background:var(--line);flex-shrink:0;width:1px;height:20px;margin:0 5px}.resource-browser-toolbar .icon-button{border-radius:var(--form-radius);flex-shrink:0;place-items:center;width:36px;height:40px;display:grid}.resource-browser-toolbar select{width:auto;max-width:140px;min-height:40px;font:inherit;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:var(--form-radius);padding:0 8px;font-size:12px}.resource-view-switch{border:1px solid var(--line);background:var(--surface);border-radius:var(--form-radius);gap:2px;padding:3px;display:inline-flex}.resource-view-switch button{width:32px;height:32px;color:var(--muted);background:0 0;border:0;border-radius:3px;place-items:center;display:grid}.resource-view-switch button[aria-pressed=true]{color:var(--brand);background:var(--brand-soft)}.resource-browser-summary{color:var(--muted);justify-content:space-between;align-items:center;gap:16px;padding:16px 0 0;font-size:12px;display:flex}.resource-browser-summary>span:first-child{color:var(--ink);flex-wrap:wrap;align-items:center;gap:9px;font-size:13px;font-weight:500;display:flex}.resource-browser-summary small{color:var(--muted);font-size:12px;font-weight:400}.resource-browser-alert{color:var(--danger);justify-content:space-between;align-items:center;gap:12px;padding:12px 0;font-size:13px;display:flex}.resource-browser-alert>span{overflow-wrap:anywhere}.resource-browser-alert button{flex-shrink:0}.resource-browser-results{margin-top:18px}.resource-browser-results:focus-visible,.resource-item:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.resource-masonry{grid-template-columns:repeat(auto-fill,minmax(148px,1fr));align-items:stretch;gap:14px;display:grid}.resource-item{cursor:default;-webkit-user-select:none;user-select:none;min-width:0;position:relative}.resource-card{background:var(--surface);border:1px solid var(--line);border-radius:8px;flex-direction:column;transition:border-color .12s,background .12s;display:flex;overflow:hidden}.resource-card:hover{border-color:var(--muted)}.resource-item-open{text-align:left;width:100%;min-width:0;color:var(--ink);flex-direction:column;align-items:stretch;padding:0;display:flex}.workspace-file-icon{color:var(--muted);flex-shrink:0;place-items:center;display:grid}.resource-card .workspace-file-icon{background:var(--surface-muted);border-bottom:1px solid var(--line);width:100%;height:96px}.workspace-explorer .resource-cover{background:var(--surface-muted);border:0;height:100%;aspect-ratio:auto!important}.workspace-explorer .resource-cover-document{padding:10px 20px 0}.workspace-explorer .resource-cover-placeholder{min-height:0;color:var(--muted);gap:10px}.workspace-explorer .resource-cover-placeholder span{color:var(--muted)}.workspace-explorer .resource-cover-document .resource-cover-placeholder{background:var(--surface);border:1px solid var(--line);border-bottom:0;padding:12px}.resource-item-copy{flex-direction:column;gap:5px;min-width:0;padding:12px 14px 0;display:flex}.resource-item-name{overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13px;font-weight:500;line-height:1.65;display:-webkit-box;overflow:hidden}.resource-item-meta{color:var(--muted);font-size:12px;line-height:1.6}.resource-item-path{color:var(--muted);overflow-wrap:anywhere;font-size:12px}.resource-item-bottom{justify-content:space-between;align-items:center;gap:6px;min-height:40px;margin-top:auto;padding:2px 7px 4px 14px;display:flex}.resource-item-bottom time{color:var(--muted);font-size:12px}.resource-item-actions{display:flex}.resource-item-actions .icon-button{width:32px;height:32px;color:var(--muted);place-items:center;display:grid}.resource-selection-check{z-index:1;width:20px;height:20px;color:var(--surface);background:var(--brand);border-radius:4px;place-items:center;display:grid;position:absolute;top:10px;right:10px}.resource-item-selected{background:var(--brand-soft);box-shadow:inset 0 0 0 1px var(--focus-ring);border-color:var(--focus-ring)!important}.resource-item-selected .resource-item-name{color:var(--brand);font-weight:600}.resource-rows{flex-direction:column;display:flex}.workspace-list-heading,.workspace-explorer .resource-row{grid-template-columns:var(--workspace-file-columns);align-items:center;column-gap:16px;padding:0 12px;display:grid}.workspace-list-heading{border-bottom:1px solid var(--line);background:var(--surface-muted);min-height:38px;color:var(--muted);border-radius:6px 6px 0 0;font-size:12px}.resource-row{border:1px solid #0000;border-bottom-color:var(--line);align-items:center;min-width:0;min-height:64px;display:flex}.resource-row:hover{background:var(--surface-muted)}.resource-row.resource-item-selected{background:var(--brand-soft)}.resource-row .resource-item-open{flex-direction:row;flex:1;align-items:center;gap:12px;min-width:0;padding:9px 0}.resource-row .workspace-file-icon{flex-basis:32px;width:32px;height:36px}.workspace-explorer .resource-cover-compact{border-radius:4px;width:32px;height:36px;padding:2px}.resource-row .resource-item-copy{padding:0}.workspace-explorer .resource-row .resource-item-meta,.workspace-explorer .resource-row .resource-item-path{display:none}.resource-row .resource-item-bottom{justify-content:flex-end;min-width:0;margin:0;padding:0}.resource-list-type,.resource-list-path,.resource-list-size,.resource-list-date{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.resource-list-size{font-variant-numeric:tabular-nums}.workspace-file-status{border-top:1px solid var(--line);color:var(--muted);flex-wrap:wrap;align-items:center;gap:16px;margin-top:20px;padding-top:12px;font-size:12px;display:flex}.workspace-file-capacity{margin-left:auto}.resource-browser-empty{min-height:300px;color:var(--muted);text-align:center;flex-direction:column;grid-column:1/-1;justify-content:center;align-items:center;gap:14px;padding:20px;display:flex}.resource-browser-empty h2{color:var(--ink);margin:0;font-size:16px;font-weight:500}.resource-browser-empty p{margin:0;font-size:13px}.resource-skeleton{background:var(--surface-muted);border-radius:8px;height:230px}.resource-skeleton-row{height:64px;margin-bottom:1px}.resource-browser-pagination{color:var(--muted);justify-content:center;align-items:center;gap:20px;padding-top:24px;font-size:13px;display:flex}.resource-inline-input{border:1px solid var(--focus-ring);width:min(100%,320px);min-height:34px;color:var(--ink);background:var(--surface);font:inherit;border-radius:4px;padding:5px 8px}.resource-inline-input:focus-visible{outline:2px solid var(--focus-ring);outline-offset:1px}.resource-item-name:has(.resource-inline-input){display:block;overflow:visible}.workspace-context-menu{z-index:90;border:1px solid var(--line);background:var(--surface);width:210px;max-height:calc(100dvh - 24px);box-shadow:var(--selection-shadow);border-radius:8px;padding:5px;position:fixed;overflow-y:auto}.workspace-context-menu button{width:100%;min-height:38px;color:var(--ink);text-align:left;background:0 0;border:0;border-radius:4px;justify-content:flex-start;align-items:center;gap:9px;padding:7px 10px;display:flex}.workspace-context-menu button:hover:not(:disabled),.workspace-context-menu button:focus-visible{background:var(--surface-muted)}.workspace-context-menu button:disabled{color:var(--muted)}.workspace-dialog-form,.workspace-editor{gap:16px;display:grid}.workspace-dialog-form label{color:var(--muted);gap:7px;font-size:12px;display:grid}.workspace-dialog-form input{border:1px solid var(--line);min-height:44px;color:var(--ink);background:var(--surface);border-radius:6px;padding:9px 12px}.workspace-editor-path{color:var(--muted);overflow-wrap:anywhere;margin:0;font-size:12px}.workspace-editor textarea{resize:vertical;border:1px solid var(--line);width:100%;min-height:min(60vh,620px);color:var(--ink);background:var(--surface);border-radius:6px;padding:12px;font:13px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace}.modal-footer{justify-content:flex-end;gap:8px;padding-top:8px;display:flex}.resource-picker-v2{padding:8px 4px}.resource-picker-v2 .resource-browser-toolbar{flex-wrap:wrap;padding-bottom:12px}.resource-picker-v2 .resource-search{flex:1;max-width:none}.resource-picker-v2 .resource-browser-results{max-height:min(55dvh,520px);padding-right:6px;overflow-y:auto}.resource-picker-v2 .resource-browser-summary{padding:16px 0 10px}.resource-picker-v2 .resource-row{padding:8px 0}.resource-picker-v2 .workspace-file-icon{flex-basis:46px;width:46px;height:54px}@container workspace-files (max-width:1000px){.workspace-list-heading,.workspace-explorer .resource-row{grid-template-columns:minmax(180px,2fr) minmax(90px,1fr) 72px 84px 32px;column-gap:12px}.workspace-list-heading>span:nth-child(3),.resource-list-path{display:none}.workspace-explorer .resource-row .resource-item-path{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}}@container workspace-files (max-width:680px){.workspace-address-bar{flex-wrap:wrap}.workspace-address-bar .resource-search{flex:1 0 100%}.resource-toolbar-tail{width:100%;margin-left:0}.resource-toolbar-tail .resource-view-switch{margin-left:auto}.resource-masonry{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.workspace-list-heading,.workspace-explorer .resource-row{grid-template-columns:minmax(0,1fr) 72px 32px;column-gap:10px}.workspace-list-heading>span:nth-child(2),.workspace-list-heading>span:nth-child(5),.resource-list-type,.resource-list-date{display:none}}@container workspace-files (max-width:350px){.resource-toolbar-tail{flex-wrap:wrap}.resource-browser-toolbar select{flex:1;min-width:0;max-width:none}}@container workspace-files (max-width:310px){.resource-masonry{grid-template-columns:minmax(0,1fr)}}@media (max-width:700px){.resource-library{padding:4px 0 24px}.workspace-address,.resource-search{height:44px}.workspace-address-bar>.icon-button,.resource-browser-toolbar .icon-button,.resource-item-actions .icon-button,.resource-view-switch button{flex-basis:44px;width:44px;height:44px}.workspace-breadcrumbs button,.workspace-command,.workspace-file-commands>.primary,.resource-browser-toolbar select{min-height:44px}.workspace-file-commands{gap:2px;width:100%}.workspace-file-commands .workspace-command,.workspace-file-commands>.primary{padding:0 10px}.workspace-command-divider{margin:0 3px}.resource-search .icon-button{width:44px;height:44px;margin-right:-12px}.workspace-context-menu{width:min(260px,100vw - 24px)}.workspace-context-menu button{min-height:44px}.modal:has(.workspace-editor) .icon-button{width:44px;height:44px}.modal:has(.workspace-editor) .modal-footer button{min-width:44px;min-height:44px}.workspace-file-status{gap:10px}.workspace-list-heading,.workspace-explorer .resource-row{grid-template-columns:minmax(0,1fr) 56px 44px}}@media (prefers-reduced-motion:reduce){.resource-card{transition:none}}.workspace-new-options{gap:4px;display:grid}.workspace-new-options button{text-align:left;min-height:44px}.workspace-load-more{justify-content:center;padding:16px;display:flex}.workspace-conflict-list{overflow-wrap:anywhere;max-height:35dvh;padding-inline-start:20px;overflow:auto}.workspace-conflict-list li{gap:8px;margin-block:12px;display:grid}.workspace-conflict-list select{max-width:100%;min-height:44px}.workspace-editor-path{overflow-wrap:anywhere}
