.admin-content:has(.link-grid-scroll){min-width:0}.admin-layout:has(.link-grid-scroll){grid-template-columns:190px minmax(0,1fr)}
.link-grid-intro p{max-width:80ch;font-size:14px;line-height:1.6}.link-grid-legend{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.link-grid-legend>span{border-radius:5px;padding:4px 8px;font-weight:600}.is-linked .link-state,.link-grid-legend>.is-linked{color:#236246;background:#eaf7ef}.is-missing .link-state,.link-grid-legend>.is-missing{color:#80540c;background:#fff4d9}.is-edited .link-state,.link-grid-legend>.is-edited{color:#164bb3;background:#e9f0ff}
.link-grid-filters{display:flex;flex-wrap:wrap;gap:12px;padding:16px;background:#f1f5fc;border:1px solid #d6dfed;border-radius:10px}.link-grid-filters label{display:grid;gap:6px;font-size:13px;font-weight:600;min-width:140px;max-width:240px}.link-grid-filters label:first-child{min-width:220px;flex:1}.link-grid-filters input,.link-grid-filters select{width:100%;min-width:0;min-height:40px;background:#fff;border:1px solid #b8c8e0;border-radius:6px;padding:8px;font:inherit;font-size:14px;color:#172e56}.link-grid-filters button{align-self:end}.link-grid-toolbar{display:flex;justify-content:space-between;gap:12px;font-size:13px;flex-wrap:wrap}#link-grid-status{font-size:14px;min-height:20px;margin:4px 0 12px;color:#214c8c}
.link-grid-scroll{max-width:100%;max-height:68vh;overflow:auto;border:1px solid #c8d4e7;border-radius:9px;background:#fff;position:relative;isolation:isolate}.link-grid-scroll table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:14px;text-align:left}.link-grid-scroll th,.link-grid-scroll td{padding:12px;border-right:1px solid #e0e6ef;border-bottom:1px solid #e0e6ef;vertical-align:top}.link-grid-scroll thead th{position:sticky;top:0;background:#eaf0fa;color:#1c3865;z-index:3;padding:13px 12px;white-space:nowrap}.link-grid-scroll .link-identity{position:sticky;left:0;z-index:2;background:#fff;width:260px;min-width:260px;max-width:260px;box-shadow:2px 0 5px #172e5610;font-weight:400}.link-grid-scroll thead .link-identity{z-index:4;background:#eaf0fa}.link-identity>a{font-weight:650;display:block;color:#073bd1;line-height:1.4}.link-identity>span{display:block;margin-top:4px;line-height:1.4}.link-grid-scroll small{display:block;font-size:12px;line-height:1.45;margin-top:5px;color:#586c86;overflow-wrap:anywhere}.link-categories{min-width:120px;max-width:150px}.link-categories span{display:block;margin-bottom:5px}.link-cell{min-width:215px;width:215px;background:#fff}.link-cell.is-missing{background:#fffcf5}.link-cell.is-edited{background:#f3f7ff}.link-state{display:inline-block;padding:3px 7px;border-radius:5px;font-size:12px;font-weight:650;margin-bottom:8px}.link-cell input{display:block;width:100%;box-sizing:border-box;border:1px solid #bfcde0;border-radius:5px;font:14px/1.4 'DM Sans',sans-serif;padding:8px;min-height:40px;color:#152c54;background:#fff}.link-cell input:focus{outline:2px solid #2359d2;outline-offset:1px}.link-cell-actions,.link-copy{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px}.link-cell-actions a{font-size:12px;color:#234e96}.link-copy button,.link-cell-actions button,.link-grid-pagination button,.link-grid-filters button{border:1px solid #b9c9e3;border-radius:5px;background:white;color:#214580;padding:7px 9px;font:600 12px/1.3 'DM Sans',sans-serif;cursor:pointer}.link-cell-actions [data-link-save]{background:#073bd1;color:#fff;border-color:#073bd1}.link-cell-actions [hidden]{display:none}.link-copy button:disabled,.link-grid-pagination button:disabled{opacity:.5;cursor:default}.link-grid-pagination{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px}.link-grid-pagination span{font-size:12px;color:#5d6c84}
@media(max-width:900px){.admin-layout:has(.link-grid-scroll){grid-template-columns:1fr}.link-grid-scroll .link-identity{position:static;min-width:210px;width:210px;max-width:210px}.link-grid-scroll thead .link-identity{position:sticky;top:0}.link-grid-filters label{flex:1;max-width:none;min-width:125px}.link-grid-scroll{max-height:65vh}.link-copy button,.link-cell-actions button{min-height:40px}}
