body[data-nav="model-asset-workspace"] .asset-page-actions { display:flex; justify-content:flex-end; margin:0; }
#model-asset-workspace .card-h { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
#model-asset-workspace .card-h h2 { margin:0; font-size:14px; line-height:22px; font-weight:500; }
.asset-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 20px; }
.asset-form .field { display:flex; flex-direction:column; min-width:0; gap:6px; margin:0; }
.asset-form .full { grid-column:1/-1; }
.asset-form input[readonly] { background:#f5f7fa; }
.asset-form .asset-checkbox { flex-direction:row; align-items:center; }
.asset-note { margin:0; color:var(--gray-600); font-size:12px; line-height:1.7; }
.asset-records .tbl { min-width:760px; }
.asset-records td { overflow-wrap:anywhere; }
.asset-records .tbl th:last-child,.asset-records .tbl td:last-child { position:sticky; right:0; min-width:120px; background:#fff; }
.asset-records .tbl th:last-child { background:#f8fafc; }
.asset-records .btn-link { padding:2px 8px; }
.asset-records .btn-link + .btn-link { margin-left:8px; }
#asset-export-file .field,#asset-decrypt-file .field { display:flex; flex-direction:column; gap:8px; margin:16px 0; min-width:0; }
#asset-export-file .field[hidden],#asset-decrypt-file .field[hidden] { display:none; }
#asset-export-file input,#asset-decrypt-file input { min-width:0; width:100%; }
#asset-export-summary dd { overflow-wrap:anywhere; }
#asset-export-error:empty,#asset-export-next:empty,#asset-decrypt-error:empty { display:none; }
.asset-records td > .tag { justify-self:start; }
#model-asset-workspace [role=status]:empty,#asset-storage-error:empty { display:none; }
#model-asset-workspace [data-asset-message]:not(:empty) { margin:0 0 16px; }
body[data-nav="model-asset-workspace"] dialog .reference-dialog-footer { position:sticky; bottom:0; background:#fff; padding:16px 0 0; margin-top:20px; flex-wrap:wrap; }
body[data-nav="model-asset-workspace"] dialog.reference-wide > form[data-asset-form] { display:flex; flex-direction:column; overflow:hidden; }
body[data-nav="model-asset-workspace"] dialog.reference-wide > form > .asset-form { flex:1 1 auto; min-height:0; overflow:auto; align-content:start; padding:2px; }
body[data-nav="model-asset-workspace"] dialog.reference-wide > form > .reference-dialog-footer { flex:0 0 auto; position:static; }
#asset-detail-facts dd,#asset-compare-result dd { overflow-wrap:anywhere; }
.asset-history { list-style:none; margin:0; padding:0; }
.asset-history li { padding:12px 0; border-bottom:1px solid var(--gray-200); }
.asset-history time { color:var(--gray-600); font-size:12px; }
.asset-history p { margin:6px 0 0; overflow-wrap:anywhere; }
@media(max-width:760px) {
  .asset-form { grid-template-columns:1fr; }
  .asset-form .full { grid-column:auto; }
  .asset-records .tbl { min-width:0!important; width:100%; }
  .asset-records thead { display:none; }
  .asset-records tr,.asset-records tbody { display:block; }
  .asset-records tr { padding:12px 0; border-bottom:1px solid var(--gray-200); }
  .asset-records td { display:grid; grid-template-columns:90px minmax(0,1fr); gap:8px; padding:6px 0; border:0; white-space:normal; }
  .asset-records td::before { content:attr(data-label); color:var(--gray-600); }
  .asset-records .tbl td:last-child { display:flex; flex-wrap:wrap; align-items:center; position:static; min-width:0; }
  .asset-records .tbl td:last-child::before { width:82px; flex-shrink:0; }
}
