.library-view{padding:0!important;align-items:stretch!important}.library-view>.modal-backdrop{display:none}.library-view .file-manager-panel{width:100%!important;max-width:none!important;height:100dvh;max-height:none!important;min-height:0!important;margin:0!important;border-radius:0;padding:24px clamp(18px,4vw,64px)!important;background:var(--surface-1,#fff);display:flex;flex-direction:column;overflow:auto}.library-view .modal-head{flex:none;display:flex;align-items:center;justify-content:flex-start;gap:22px;margin:0 0 24px!important}.library-view .modal-head h2{font-size:24px;margin:0}.library-view .library-back{width:auto;height:auto;font-size:14px;padding:8px 12px;border-radius:7px}.library-top-actions{margin-left:auto;display:flex;align-items:center;gap:18px}.library-top-actions p{font-size:12px;margin:0}.library-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;flex:1;min-height:0}.library-layout.has-detail{grid-template-columns:minmax(0,1fr) 340px}.library-main{min-width:0}.library-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:20px}.library-tabs>button{background:none;color:var(--muted);border:0;border-radius:0;padding:12px 0;font-size:15px}.library-tabs>button[aria-selected=true]{color:var(--accent,#b45309);border-bottom:2px solid currentColor}.library-tabs span{margin-left:4px;font-size:12px}.library-filters{display:flex;align-items:end;gap:16px;margin-bottom:18px}.library-filters>.field{flex:1;margin:0;max-width:460px}.library-filters input,.library-filters select{height:40px;padding:8px 10px;border-radius:7px;min-width:0;font-size:14px}.library-filter-fields{display:flex;align-items:end;gap:12px}.library-filter-fields label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted)}.library-batch{display:flex;align-items:center;gap:12px;padding:10px 14px;margin-bottom:12px;background:var(--surface-2,#f6f5f3);border-radius:8px;font-size:13px}.library-view [hidden]{display:none!important}.library-table{width:100%;border-collapse:collapse;table-layout:fixed}.library-table th{font-size:12px;text-align:left;color:var(--muted);font-weight:500;padding:12px 8px;border-bottom:1px solid var(--line)}.library-table td{padding:16px 8px;border-bottom:1px solid var(--line);font-size:13px;vertical-align:middle;overflow-wrap:anywhere}.library-table th:first-child{width:36px}.library-table th:nth-child(2){width:auto}.library-table th:nth-child(3){width:110px}.library-table th:nth-child(4){width:120px}.library-table th:last-child{width:118px}.library-table input[type=checkbox]{width:16px;height:16px}.library-table tr.is-selected{background:var(--surface-2,#f8f5ef)}.library-name{border:0;background:transparent;color:inherit;padding:0;display:flex;gap:8px;align-items:center;text-align:left;font-size:14px;border-radius:0}.library-name strong{font-weight:600}.library-name:hover strong{text-decoration:underline}.library-note{font-size:12px;color:var(--muted);margin:5px 0 0 26px}.library-note span{margin-right:8px;color:var(--accent,#b45309)}.library-state.is-ready{color:#137b62}.library-state.is-dirty{color:#a35a14}.library-state.is-error{color:var(--danger,#b42318)}.library-row-actions{display:flex;align-items:center;gap:4px;justify-content:flex-end}.library-row-actions>.ghost{display:flex;padding:8px;min-height:32px;text-decoration:none}.library-row-menu{position:relative}.library-row-menu summary{display:flex;align-items:center;justify-content:center;cursor:pointer;padding:8px;list-style:none}.library-row-menu summary::-webkit-details-marker{display:none}.library-row-menu>div{position:absolute;right:0;top:100%;z-index:5;background:var(--surface-1,#fff);border:1px solid var(--line);box-shadow:0 6px 20px #0001;border-radius:8px;padding:6px;width:160px}.library-row-menu button{display:block;width:100%;text-align:left;padding:9px 10px;border:0;background:none;color:inherit;font-size:13px;border-radius:5px}.library-row-menu button:hover{background:var(--surface-2,#f7f5f1)}.library-row-menu .danger-text{color:var(--danger,#b42318)}.library-detail{border-left:1px solid var(--line);padding-left:24px;min-width:0}.library-detail h3{font-size:18px;overflow-wrap:anywhere}.library-detail-state,.library-detail p{font-size:13px;color:var(--muted)}.library-meta-form label{display:flex;flex-direction:column;gap:8px;margin:14px 0;font-size:13px}.library-meta-form input{height:40px;font-size:14px;padding:8px 10px}.library-detail-audio h4{font-size:13px;margin:24px 0 8px}.library-audio-row{display:flex;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}.library-audio-row>span{flex:1;overflow-wrap:anywhere}.library-audio-row .ghost{padding:6px;display:flex}.library-player{position:sticky;bottom:0;margin-top:18px;padding:12px 16px;background:var(--surface-2,#f8f5ef);border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;gap:16px}.library-player strong{font-size:13px}.library-player audio{height:38px;flex:1;min-width:0}.library-empty{text-align:center;padding:72px 20px;color:var(--muted)}.library-empty h3{font-size:17px;color:var(--ink)}.library-view .local-workspace-drafts{background:none;padding:0;border:0}.library-view .local-workspace-drafts h3{font-size:14px;color:var(--muted)}.library-view .local-draft-row{padding:18px 0;border-bottom:1px solid var(--line)}@media(max-width:760px){.library-view .modal-head{gap:12px;flex-wrap:wrap}.library-view .modal-head h2{font-size:20px}.library-top-actions{width:100%;justify-content:space-between}.library-filters{flex-wrap:wrap}.library-filters>.field{max-width:none;flex-basis:100%}.library-filter-fields{width:100%}.library-filter-fields label{flex:1;min-width:0}.library-layout.has-detail{grid-template-columns:1fr}.library-layout.has-detail>.library-main{display:none}.library-detail{border:0;padding:0}.library-table th:nth-child(4),.library-table td:nth-child(4){display:none}.library-table th:nth-child(3){width:76px}.library-table th:last-child{width:90px}.library-table td{padding:14px 4px}.library-name{font-size:13px}.library-row-actions{gap:0}.library-row-actions>.ghost{padding:5px}.library-player{flex-wrap:wrap}.library-player audio{flex-basis:80%}.library-view .local-draft-row{flex-wrap:wrap;gap:12px}}
/* Override shared modal and button hover rules inside the standalone library. */
.library-view .file-manager-panel{border-radius:0!important;border:0!important}
.library-view .library-tabs>button,.library-view .library-tabs>button:hover,.library-view .library-tabs>button:active{background:transparent!important;box-shadow:none}
.library-view .library-tabs>button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.library-view #projectAssetList{display:block;gap:0}
.library-detail-audio details{margin-top:20px;font-size:13px;color:var(--muted)}
.library-detail-audio summary{cursor:pointer;padding:8px 0}
