.library-tools{width:min(1200px,calc(100vw - 32px));max-height:90dvh;padding:0;border:1px solid #cdd5d3;border-radius:12px;background:#fff;color:#25302e;box-shadow:0 24px 80px rgba(0,0,0,.25)}.library-tools::backdrop{background:rgba(15,27,23,.5)}.library-tools-header{display:flex;align-items:center;justify-content:space-between;padding:22px 26px;border-bottom:1px solid #dce2e0}.library-tools-header h2{font-size:24px;font-weight:600;margin:0}.library-tools-nav{display:flex;gap:8px;overflow:auto;padding:14px 26px;background:#f4f7f6}.library-tools-status{margin:0;padding:14px 26px;background:#edf4f0;color:#285441;font-size:14px;line-height:1.6}.library-tools-body{padding:24px 26px;overflow:auto}.library-tools .btn{min-height:44px;padding:9px 13px;background:#fff;color:#30433d;border:1px solid #bbc9c3;border-radius:5px;font-size:13px;white-space:nowrap;cursor:pointer}.library-tools .btn:hover{background:#edf4f0}.library-tools .btn:disabled{opacity:.5;cursor:default}.library-actions{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-bottom:20px}.library-field{display:flex;flex-direction:column;gap:7px;font-size:13px;line-height:1.5;color:#43564f;margin:0 0 12px;min-width:0}.library-field input,.library-field select,.library-reference select{min-height:44px;padding:9px 11px;background:white;border:1px solid #bbc9c3;border-radius:4px;color:#24332d;font-size:14px;max-width:100%}.library-field input[type=checkbox]{width:22px;height:22px;min-height:22px;accent-color:#285c49}.library-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.library-table{max-height:52dvh;overflow:auto}.library-row{display:flex;align-items:center;gap:16px;padding:16px 0;border-top:1px solid #dce2e0;font-size:13px;line-height:1.5}.library-row>input[type=checkbox]{width:20px;height:20px;flex-shrink:0;accent-color:#285c49}.library-row>div:not(.library-photo){flex:1;min-width:0}.library-row p{margin:0 0 5px}.library-row small{display:block;color:#53665e;line-height:1.5}.library-photo{display:flex;align-items:center;gap:12px;width:230px;flex-shrink:0;overflow-wrap:anywhere}.library-photo img{width:68px;height:54px;object-fit:cover;border-radius:4px}.library-reference{display:grid;grid-template-columns:130px 130px minmax(0,1fr);gap:20px;padding:22px 0;border-top:1px solid #dce2e0;font-size:13px;line-height:1.6}.library-reference img{width:130px;height:110px;object-fit:contain;background:#f0f3f1}.library-reference select{width:100%}.library-drop{border:2px dashed #a8bbb2;padding:36px;text-align:center;color:#355747;border-radius:8px;margin-top:20px}.library-drop.over{background:#e7f3eb;border-color:#2b6750}.library-quality{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.library-quality figure{min-width:0;overflow:auto;margin:0;background:#f1f4f2;padding:10px}.library-quality figcaption{font-size:14px;padding-bottom:12px}.library-quality img{width:100%;height:380px;object-fit:contain;cursor:zoom-in}.library-quality img.actual-pixels{width:auto;max-width:none;height:auto;cursor:zoom-out}.library-location-map{height:340px;margin:18px 0;z-index:0;border-radius:5px}.library-tools p{line-height:1.6}.library-tools :focus-visible{outline:2px solid #2a6850;outline-offset:3px}#library-tools-launch{min-height:44px;padding:9px 13px;white-space:nowrap}#library-missing-filter{min-height:44px;font-size:13px;border:1px solid #c5d0cc;border-radius:4px;padding:8px;background:#fff;color:#34463d}
@media(max-width:700px){.library-tools{width:calc(100vw - 16px);max-height:94dvh}.library-tools-header,.library-tools-body{padding:18px 16px}.library-tools-nav{padding:12px 16px}.library-tools-status{padding:12px 16px}.library-tools-header h2{font-size:21px}.library-row{flex-wrap:wrap;gap:12px}.library-row .library-photo{width:calc(100% - 36px)}.library-row>div:not(.library-photo){flex-basis:100%}.library-form{grid-template-columns:1fr}.library-reference{grid-template-columns:1fr 1fr;gap:12px}.library-reference>div{grid-column:1/-1}.library-reference img{width:100%;height:110px}.library-quality{grid-template-columns:1fr}.library-quality img{height:250px}.library-actions>.library-field{width:100%}.library-location-map{height:280px}}
.library-tools{position:fixed;inset:0;margin:auto;height:fit-content;box-sizing:border-box}
