.model-header { align-items: center; }
.model-list { overflow: hidden; }
.model-table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; font-size: 13px; }
.model-table th, .model-table td { padding: 11px clamp(8px, 1vw, 15px); overflow-wrap: anywhere; }
.model-table thead th { color: var(--muted); font-size: 12px; font-weight: 550; background: #f3f4ee; }
.model-table tbody tr { border-top: 1px solid var(--line); }
.model-table thead th:first-child { width: 20%; }
.model-table thead th:nth-child(2) { width: 25%; }
.model-table thead th:last-child { width: 13%; }
.model-table thead .model-dimension { width: 9%; }
.model-name { text-align: left; font-weight: 400; }
.model-dimension { font-variant-numeric: tabular-nums; }
.model-actions > div { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; }
.model-name strong { font-size: 14px; font-weight: 650; }
.model-url, .model-status small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.model-url { font-family: ui-monospace, monospace; }
.model-users { list-style: none; margin: 0; padding: 0; }
.model-usage .model-users { display: inline; }
.model-usage .model-users li { display: inline-block; margin-right: 7px; }
.model-users a, .model-actions button { color: var(--accent); }
.model-users a, .model-actions button:hover { text-decoration: underline; text-underline-offset: 3px; }
.model-status button { display: inline-flex; align-items: center; gap: 7px; padding: 3px 1px; min-height: 30px; font-size: 13px; }
.model-status button:disabled { opacity: 1; cursor: default; }
.model-status small { max-width: 14em; }
.model-track { padding: 2px; width: 28px; height: 16px; display: inline-flex; align-items: center; background: #96998e; border-radius: 10px; }
.model-track::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.model-status [aria-checked="true"] .model-track { justify-content: end; background: #52735b; }
.model-actions button { padding: 4px 0; font-size: 13px; min-height: 32px; }
.model-empty { padding: 40px 16px; color: var(--muted); text-align: center; }
.model-more { display: inline-block; min-height: 30px; padding: 2px 0; color: var(--accent); font-size: 12px; }
.model-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.model-library-dialog .model-users { max-height: 55dvh; overflow-y: auto; }
.model-library-dialog .model-users li + li { margin: 0; border-top: 1px solid var(--line); }
.model-library-dialog .model-users a { display: block; padding: 10px 2px; overflow-wrap: anywhere; }
@media (max-width: 950px) {
    .model-table, .model-table tbody, .model-table tr { display: block; }
    .model-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .model-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; padding: 15px; }
    .model-table tbody tr:first-child { border: 0; }
    .model-table th, .model-table td { display: block; width: auto; padding: 0; }
    .model-name, .model-address, .model-actions { grid-column: 1 / -1; }
    .model-dimension ~ .model-actions { grid-column: auto; align-self: end; }
    .model-table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
    .model-actions > div { gap: 15px; }
    .model-actions button { min-height: 36px; }
}
