/* The library indexes existing documents without replacing their original workspaces. */
.pd-library{max-width:1440px;margin:0 auto;padding:12px 8px 36px;color:var(--pd-ink-obsidian,#181a1f)}
.pd-library button,.pd-library input,.pd-library select{font:inherit}
.pd-library .icon{width:19px;height:19px;flex:0 0 19px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
.pd-library-header{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:24px}
.pd-library-kicker{display:block;color:var(--pd-accent-dark-brass,#8a6522);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:7px}
.pd-library h1{font-size:29px;line-height:1.2;letter-spacing:-1px;font-weight:650;margin:0 0 7px}
.pd-library-header p{font-size:13px;line-height:1.6;color:var(--pd-muted,#65645f);margin:0}
.pd-library-header-actions,.pd-library-empty-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
.pd-library .btn,.pd-library-empty-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:8px 13px;border:1px solid var(--pd-border,#e2dfd7);border-radius:9px;font-size:11px;line-height:1.4;background:#fff;color:var(--pd-ink-obsidian,#181a1f);white-space:nowrap;cursor:pointer;box-shadow:none;text-decoration:none}
.pd-library .btn.primary{background:var(--pd-ink-obsidian,#181a1f);border-color:var(--pd-ink-obsidian,#181a1f);color:#fff}
.pd-library .btn:hover{background:#f3f0e7}
.pd-library .btn.primary:hover{background:var(--pd-surface-slate,#2a2e37)}
.pd-library-summary{display:flex;gap:24px;flex-wrap:wrap;border-bottom:1px solid var(--pd-border,#e2dfd7);padding-bottom:21px;margin-bottom:21px}
.pd-library-summary>span{display:flex;align-items:center;gap:7px;font-size:11px;line-height:1.5;color:var(--pd-muted,#65645f)}
.pd-library-summary strong{font-size:14px;font-weight:650;color:var(--pd-ink-obsidian,#181a1f);margin-right:1px}
.pd-library-summary i{width:7px;height:7px;border-radius:50%;display:inline-block}
.pd-library-summary .is-paper{background:#718c89}.pd-library-summary .is-draft{background:#c59643}.pd-library-summary .is-artifact{background:#7985a2}
.pd-library-filters{display:grid;grid-template-columns:minmax(230px,1fr) minmax(150px,210px) 155px 140px;align-items:center;gap:10px;margin-bottom:23px}
.pd-library-filters>label{display:block;min-width:0}
.pd-library-filters select{width:100%;min-width:0;height:39px;min-height:39px;border:1px solid var(--pd-border,#e2dfd7);border-radius:9px;background-color:#fff;color:var(--pd-ink-obsidian,#181a1f);padding:0 32px 0 12px;font-size:11px;box-shadow:none}
.pd-library-filters .pd-library-search{display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid var(--pd-border,#e2dfd7);border-radius:9px;background:#fff;min-height:39px}
.pd-library-search .icon{width:17px;height:17px;flex-basis:17px;color:var(--pd-muted,#65645f)}
.pd-library-search input{appearance:none;-webkit-appearance:none;width:100%;min-width:0;min-height:37px;padding:8px 0;background:transparent;border:0;border-radius:0;font-size:11px;outline:0;box-shadow:none}
.pd-library-search:focus-within{outline:2px solid var(--pd-accent-dark-brass,#8a6522);outline-offset:2px}
.pd-library-result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--pd-muted,#65645f);font-size:10px;padding:0 4px 13px}
.pd-library-result-heading>span:first-child{font-weight:650;color:#55534f}
.pd-library-list{background:#fff;border:1px solid var(--pd-border,#e2dfd7);border-radius:15px;overflow:hidden}
.pd-library-row{display:flex;align-items:center;gap:15px;min-width:0;padding:19px 21px;transition:background .15s}
.pd-library-row+.pd-library-row{border-top:1px solid #ede9e0}
.pd-library-row:hover{background:#fdfbf6}
.pd-library-file-icon{display:grid;place-items:center;width:41px;height:46px;border-radius:10px;flex:0 0 41px;background:#edf3f1;color:#536e6b}
.pd-library-file-icon.is-draft{background:#f6edda;color:#947131}.pd-library-file-icon.is-artifact{background:#edf0f8;color:#5b6b90}
.pd-library-file-icon .icon{width:21px;height:21px}
.pd-library-document-info{min-width:0;flex:1}
.pd-library-name{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;min-width:0}
.pd-library-name strong{font-size:13px;line-height:1.55;letter-spacing:-.2px;font-weight:650;overflow-wrap:anywhere}
.pd-library-kind{font-size:9px;line-height:1.4;padding:3px 6px;border-radius:5px;color:#5b6d68;background:#f0f5f2;white-space:nowrap;font-weight:550}
.pd-library-kind.is-draft{background:#f8f1e1;color:#8a6522}.pd-library-kind.is-artifact{background:#f0f1f7;color:#64718b}
.pd-library-document-info p{display:flex;flex-wrap:wrap;align-items:center;gap:6px;color:var(--pd-muted,#65645f);font-size:10px;line-height:1.6;margin:7px 0 0}
.pd-library-context{display:flex;flex-direction:column;align-items:flex-start;gap:6px;flex:0 1 220px;min-width:120px}
.pd-library-matter{font-size:11px;line-height:1.55;color:#55534f;overflow-wrap:anywhere}
.pd-library-status{font-size:9px;padding:2px 6px;border:1px solid #e3ddd0;border-radius:5px;color:#71685b;background:#faf8f1}
.pd-library-context small{font-size:9px;color:var(--pd-muted,#65645f);line-height:1.5}
.pd-library-open{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;color:#5f5a50;background:#f7f4ec;border:1px solid transparent;border-radius:9px;padding:0;cursor:pointer}
.pd-library-open:hover{border-color:#d4c6a7;background:#eee6d5;color:#181a1f}
.pd-library-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:65px 25px;background:#fff;border:1px solid var(--pd-border,#e2dfd7);border-radius:16px}
.pd-library-empty>span{width:51px;height:51px;display:grid;place-items:center;background:#f3eddf;color:#947131;border-radius:15px;margin-bottom:19px}
.pd-library-empty h2{font-size:18px;font-weight:650;line-height:1.4;letter-spacing:-.35px;margin:0}
.pd-library-empty p{max-width:370px;margin:10px 0 22px;font-size:12px;line-height:1.8;color:var(--pd-muted,#65645f)}
@media(max-width:1150px){.pd-library-filters{grid-template-columns:minmax(200px,1fr) minmax(150px,1fr) 155px}.pd-library-filters>label:last-child{grid-column:3}.pd-library-filters .pd-library-search{grid-column:1/3}.pd-library-filters>label:nth-child(2){grid-column:3}.pd-library-context{flex-basis:180px}}
@media(max-width:900px){.pd-library-header{align-items:flex-start}.pd-library-header-actions{justify-content:flex-end;max-width:270px}.pd-library-row{gap:12px;padding:17px}.pd-library-context{flex-basis:155px;min-width:100px}.pd-library-name strong{font-size:12px}.pd-library-summary{gap:17px}.pd-library-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.pd-library-filters .pd-library-search{grid-column:1/-1}.pd-library-filters>label:nth-child(2),.pd-library-filters>label:last-child{grid-column:auto}}
@media(max-width:580px){.pd-library{padding:8px 0 25px}.pd-library-header{flex-direction:column;gap:16px;margin-bottom:20px}.pd-library-kicker{font-size:9px}.pd-library h1{font-size:25px}.pd-library-header p{font-size:11px}.pd-library-header-actions{justify-content:flex-start;max-width:none}.pd-library .btn{font-size:10px;min-height:36px;padding:8px 11px}.pd-library-summary{gap:9px 17px;margin-bottom:17px;padding-bottom:17px}.pd-library-summary>span{font-size:10px}.pd-library-summary strong{font-size:12px}.pd-library-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:19px}.pd-library-filters .pd-library-search{grid-column:1/-1}.pd-library-filters>label:last-child{grid-column:1/-1}.pd-library-filters select{font-size:10px}.pd-library-result-heading{font-size:9px;align-items:flex-start}.pd-library-result-heading>span:last-child{max-width:145px;text-align:right;line-height:1.5}.pd-library-row{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr) 30px;gap:7px 11px;padding:16px 13px}.pd-library-file-icon{grid-column:1;grid-row:1;align-self:start;width:34px;height:39px;border-radius:8px}.pd-library-file-icon .icon{width:18px;height:18px}.pd-library-document-info{grid-column:2;grid-row:1}.pd-library-name{gap:6px}.pd-library-name strong{font-size:11px}.pd-library-kind{font-size:8px}.pd-library-document-info p{font-size:9px;gap:5px}.pd-library-context{grid-column:2;grid-row:2;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px 8px;min-width:0;margin-top:3px}.pd-library-matter{font-size:10px}.pd-library-status,.pd-library-context small{font-size:8px}.pd-library-open{grid-column:3;grid-row:1/3;width:30px;height:32px;align-self:center}.pd-library-empty{padding:43px 19px}.pd-library-empty h2{font-size:16px}.pd-library-empty p{font-size:11px}.pd-library-empty-actions{justify-content:center}}
