.asset-library {
  --ml-bg: light-dark(#f5f6f8, #16191f);
  --ml-surface: light-dark(#fff, #22262e);
  --ml-side: light-dark(#fafbfc, #1b1e25);
  --ml-text: light-dark(#20252d, #edf0f5);
  --ml-muted: light-dark(#727984, #a6aebb);
  --ml-line: light-dark(#e8ebef, #373d47);
  --ml-blue: light-dark(#0071e3, #68aaff);
  --ml-blue-fill: light-dark(#eaf3ff, #233954);
  --ml-warn: light-dark(#946211, #efbf65);
  --ml-warn-fill: light-dark(#fff7e8, #3a3020);
  --ml-red: light-dark(#b73a38, #ff9892);
  --ml-radius: 12px;
  color: var(--ml-text);
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  color-scheme: inherit;
}
.asset-library * {
  box-sizing: border-box;
}
.asset-library [hidden] {
  display: none !important;
}
.asset-library button,
.asset-library input,
.asset-library select,
.asset-library textarea {
  font: inherit;
}
.asset-library button {
  cursor: pointer;
}
.asset-library button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
.asset-library svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.asset-library h1,
.asset-library h2,
.asset-library h3,
.asset-library p {
  margin: 0;
}
.asset-library .ml-side {
  background: var(--ml-side);
  border-right: 1px solid var(--ml-line);
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.asset-library .ml-main {
  min-width: 0;
  padding: 29px 26px 20px;
}
.asset-library .ml-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.asset-library h1 {
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.asset-library .ml-subtitle {
  color: var(--ml-muted);
  font-size: 12px;
  margin-top: 6px;
}
.asset-library .ml-button {
  border: 1px solid var(--ml-line);
  color: var(--ml-text);
  background: var(--ml-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 8px;
  white-space: nowrap;
  min-height: 38px;
}
.asset-library .ml-primary {
  background: var(--ml-blue);
  color: light-dark(#fff, #111c2c);
  border-color: transparent;
}
.asset-library .ml-icon-button {
  padding: 8px;
  min-width: 35px;
}
.asset-library .ml-link {
  background: none;
  border: 0;
  color: var(--ml-blue);
  padding: 4px 0;
  font-size: 12px;
}
.asset-library .ml-danger {
  color: var(--ml-red);
}
.asset-library .ml-capacity {
  margin: 22px 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--ml-muted);
}
.asset-library .ml-capacity b {
  color: var(--ml-text);
  font-weight: 500;
}
.asset-library .ml-track {
  width: 74px;
  height: 4px;
  border-radius: 6px;
  background: var(--ml-line);
  overflow: hidden;
}
.asset-library .ml-track span {
  display: block;
  height: 100%;
  background: var(--ml-blue);
  min-width: 3px;
}
.asset-library .ml-policy {
  margin-left: auto;
  color: var(--ml-muted);
}
.asset-library .ml-tabs {
  display: flex;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--ml-line);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.asset-library .ml-tabs button {
  padding: 0 0 12px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--ml-muted);
  font-size: 13px;
}
.asset-library .ml-tabs button[aria-pressed='true'] {
  color: var(--ml-blue);
  border-color: var(--ml-blue);
  font-weight: 600;
}
.asset-library .ml-tabs span {
  font-size: 11px;
  margin-left: 5px;
  color: var(--ml-muted);
}
.asset-library .ml-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.asset-library .ml-search {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--ml-surface);
  border: 1px solid var(--ml-line);
  border-radius: 8px;
  flex: 1;
  min-width: 150px;
  padding: 0 11px;
  color: var(--ml-muted);
}
.asset-library .ml-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ml-text);
  padding: 10px 0;
  font-size: 12px;
}
.asset-library select {
  background: var(--ml-surface);
  border: 1px solid var(--ml-line);
  color: var(--ml-text);
  padding: 9px 7px;
  border-radius: 8px;
  max-width: 100%;
  font-size: 12px;
}
.asset-library .ml-viewbuttons {
  display: flex;
  gap: 2px;
}
.asset-library .ml-viewbuttons button[aria-pressed='true'] {
  background: var(--ml-blue-fill);
  color: var(--ml-blue);
}
.asset-library .ml-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.asset-library .ml-picking .ml-check {
  display: none;
}
.asset-library .ml-body.with-detail {
  grid-template-columns: minmax(0, 1fr) 278px;
}
.asset-library .ml-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(185px, 100%), 1fr));
  gap: 14px;
}
.asset-library .ml-tile {
  min-width: 0;
  border: 1px solid var(--ml-line);
  background: var(--ml-surface);
  border-radius: var(--ml-radius);
  overflow: hidden;
  position: relative;
}
.asset-library .ml-tile.is-selected {
  border-color: var(--ml-blue);
}
.asset-library .ml-quick-use {
  position: absolute;
  right: 10px;
  top: 102px;
  z-index: 2;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid #ffffff80;
  border-radius: 8px;
  background: var(--ml-blue);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 22px #10284633;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease;
}
.asset-library .ml-tile:hover .ml-quick-use,
.asset-library .ml-tile:focus-within .ml-quick-use {
  opacity: 1;
  transform: translateY(0);
}
.asset-library .ml-quick-use:disabled { opacity: .55; }
.asset-library .ml-list .ml-quick-use { top: 21px; right: 12px; }
.asset-library .ml-list .ml-tiletext { padding-right: 88px; }
.asset-library .ml-thumb {
  display: block;
  width: 100%;
  height: 148px;
  border: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: var(--ml-side);
}
.asset-library .ml-art {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}
.asset-library .ml-bottle {
  height: 83px;
  width: 43px;
  background: linear-gradient(90deg, #6c7c62, #a9b59b 46%, #6d8065);
  border-radius: 7px 7px 11px 11px;
  box-shadow: 15px 12px 20px #394d3930;
  position: relative;
  transform: rotate(-10deg);
  border-top: 13px solid #343f34;
}
.asset-library .ml-bottle:after {
  content: 'FIELD';
  position: absolute;
  top: 26px;
  left: 0;
  width: 100%;
  font-size: 8px;
  letter-spacing: 2px;
  color: #f5f1dc;
  text-align: center;
}
.asset-library .ml-wave {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 65px;
}
.asset-library .ml-wave i {
  width: 3px;
  background: currentColor;
  border-radius: 3px;
}
.asset-library .ml-type {
  position: absolute;
  right: 9px;
  top: 9px;
  background: light-dark(#ffffffed, #20252def);
  color: var(--ml-text);
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 11px;
  letter-spacing: 0.03em;
}
.asset-library .ml-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
}
.asset-library .ml-play svg {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 2px 6px #0004);
}
.asset-library .ml-check {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 1;
  display: grid;
  place-items: center;
  background: light-dark(#fffffff0, #222e);
  width: 25px;
  height: 25px;
  border-radius: 5px;
}
.asset-library input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: var(--ml-blue);
  cursor: pointer;
}
.asset-library .ml-tiletext {
  padding: 13px 12px 11px;
}
.asset-library .ml-title {
  font-weight: 550;
  display: block;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  color: var(--ml-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0;
  font-size: 12px;
}
.asset-library .ml-meta {
  font-size: 11px;
  color: var(--ml-muted);
  margin-top: 5px;
}
.asset-library .ml-status {
  margin-top: 11px;
  border-top: 1px solid var(--ml-line);
  padding-top: 9px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  color: var(--ml-muted);
}
.asset-library .ml-status .soon {
  color: var(--ml-warn);
}
.asset-library .ml-status .busy {
  color: var(--ml-blue);
}
.asset-library .ml-list {
  display: grid;
  gap: 8px;
}
.asset-library .ml-list .ml-tile {
  display: grid;
  grid-template-columns: 88px 1fr;
  padding: 8px;
  align-items: center;
}
.asset-library .ml-list .ml-thumb {
  height: 62px;
  border-radius: 6px;
}
.asset-library .ml-list .ml-check {
  top: 5px;
  left: 5px;
}
.asset-library .ml-list .ml-tiletext {
  padding: 0 8px 0 12px;
  min-width: 0;
}
.asset-library .ml-list .ml-type {
  display: none;
}
.asset-library .ml-list .ml-status {
  margin-top: 3px;
  border: 0;
  padding: 0;
}
.asset-library .ml-detail {
  min-width: 0;
  border: 1px solid var(--ml-line);
  border-radius: 12px;
  background: var(--ml-surface);
  overflow: hidden;
}
.asset-library .ml-detail-head {
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  border-bottom: 1px solid var(--ml-line);
}
.asset-library .ml-detail-preview {
  height: 160px;
  margin: 15px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.asset-library .ml-detail-content {
  padding: 0 15px 15px;
}
.asset-library .ml-detail-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.asset-library .ml-detail-title strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.asset-library .ml-fields {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 10px 7px;
  font-size: 11px;
  margin: 15px 0;
}
.asset-library .ml-fields dt {
  color: var(--ml-muted);
}
.asset-library .ml-fields dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.asset-library .ml-code {
  display: block;
  font:
    11px/1.7 ui-monospace,
    SFMono-Regular,
    monospace;
  background: var(--ml-side);
  border: 1px solid var(--ml-line);
  border-radius: 7px;
  padding: 9px;
  width: 100%;
  overflow-wrap: anywhere;
  color: var(--ml-text);
}
.asset-library .ml-detail-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.asset-library .ml-detail-actions .ml-button {
  width: 100%;
  font-size: 12px;
}
.asset-library .ml-notice {
  padding: 11px 12px;
  border-radius: 8px;
  background: var(--ml-warn-fill);
  color: var(--ml-warn);
  font-size: 11px;
  margin: 12px 0;
}
.asset-library .ml-batch {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--ml-blue-fill);
  font-size: 12px;
}
.asset-library .ml-batch .ml-button {
  font-size: 11px;
  padding: 6px 10px;
  min-height: 32px;
}
.asset-library .ml-empty {
  padding: 55px 16px;
  text-align: center;
  color: var(--ml-muted);
  grid-column: 1/-1;
  font-size: 13px;
}
.asset-library .ml-empty svg {
  width: 32px;
  height: 32px;
  margin-bottom: 15px;
}
.asset-library .ml-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 19px;
  color: var(--ml-muted);
  font-size: 11px;
  flex-wrap: wrap;
}
.asset-library .ml-upload {
  border: 1px solid var(--ml-line);
  background: var(--ml-surface);
  border-radius: 12px;
  padding: 19px;
  margin-bottom: 20px;
}
.asset-library .ml-upload h2 {
  font-size: 15px;
  font-weight: 600;
}
.asset-library .ml-upload-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.asset-library .ml-drop {
  border: 1px dashed var(--ml-line);
  border-radius: 9px;
  padding: 22px 16px;
  text-align: center;
  margin-top: 15px;
  background: var(--ml-side);
}
.asset-library .ml-drop.is-over {
  border-color: var(--ml-blue);
  background: var(--ml-blue-fill);
}
.asset-library .ml-drop p {
  font-size: 13px;
  margin: 6px 0;
}
.asset-library .ml-drop small {
  display: block;
  color: var(--ml-muted);
  font-size: 11px;
  margin: 8px 0 12px;
}
.asset-library .ml-drop .ml-button {
  font-size: 12px;
}
.asset-library .ml-queue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 13px 0;
  border-bottom: 1px solid var(--ml-line);
  font-size: 12px;
}
.asset-library .ml-queue-row strong {
  display: block;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.asset-library .ml-queue-row small {
  color: var(--ml-muted);
  font-size: 11px;
}
.asset-library .ml-queue-row progress {
  width: 100%;
  height: 5px;
  accent-color: var(--ml-blue);
  display: block;
  margin-top: 6px;
}
.asset-library .ml-confirm {
  border: 1px solid var(--ml-line);
  background: var(--ml-surface);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
}
.asset-library .ml-confirm h2 {
  font-size: 16px;
}
.asset-library .ml-confirm p {
  margin: 10px 0;
  color: var(--ml-muted);
  font-size: 12px;
}
.asset-library .ml-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.asset-library .ml-input {
  background: var(--ml-side);
  border: 1px solid var(--ml-line);
  border-radius: 7px;
  padding: 10px;
  color: var(--ml-text);
  width: 100%;
  min-width: 0;
}
.asset-library .ml-toast {
  padding: 10px 14px;
  margin-top: 14px;
  background: var(--ml-blue-fill);
  color: var(--ml-blue);
  border-radius: 8px;
  font-size: 12px;
}
@media (min-width: 1400px) {
  .asset-library .ml-main {
    padding: 34px;
  }
  .asset-library .ml-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  .asset-library .ml-thumb {
    height: 180px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .asset-library * {
    scroll-behavior: auto;
  }
}
.asset-library {
  --ml-bg: var(--bg);
  --ml-surface: var(--surface);
  --ml-side: var(--surface-2);
  --ml-text: var(--ink);
  --ml-muted: var(--ink-3);
  --ml-line: var(--line);
  --ml-blue: var(--brand);
  --ml-blue-fill: var(--brand-soft);
  --ml-warn: var(--warn-text);
  --ml-warn-fill: var(--warn-soft);
  --ml-red: var(--crit-text);
  width: 100%;
  min-width: 0;
}
.asset-library .ml-main {
  padding: 0;
}
.asset-library .ml-header h1 {
  font-size: 27px;
}
.asset-library .ml-subtitle {
  font-size: 13px;
}
.asset-library .ml-tiletext .ml-title {
  font-size: 14px;
}
.asset-library .ml-meta,
.asset-library .ml-status,
.asset-library .ml-fields {
  font-size: 12px;
}
.asset-library .ml-body.with-detail {
  grid-template-columns: minmax(0, 1fr) 310px;
}
.asset-library .ml-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
}
.asset-library .ml-thumb {
  height: 170px;
  color: var(--ml-muted);
}
.asset-library .ml-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.asset-library .ml-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  background: var(--ml-side);
  color: var(--ml-muted);
  padding: 16px;
  text-align: center;
}
.asset-library .ml-placeholder svg {
  width: 36px;
  height: 36px;
}
.asset-library .ml-detail-preview {
  height: 190px;
  background: var(--ml-side);
}
.asset-library .ml-detail-preview img,
.asset-library .ml-detail-preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.asset-library audio {
  width: 100%;
  min-width: 0;
}
.asset-library .ml-capacity {
  font-size: 12px;
}
.asset-library .ml-detail-actions a {
  text-decoration: none;
}
.asset-library button:focus-visible,
.asset-library input:focus-visible,
.asset-library select:focus-visible,
.asset-library a:focus-visible {
  outline: 2px solid var(--ml-blue);
  outline-offset: 3px;
}
.asset-library .ml-check {
  margin: 0;
}
.asset-library .ml-toast {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.asset-library .ml-detail-title strong {
  font-size: 15px;
}
.asset-library .ml-edit-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.asset-library .ml-edit-row input {
  flex-basis: 100%;
}
.asset-library .ml-detail .ml-button {
  white-space: normal;
}
.asset-library .ml-queue-row small {
  display: block;
  overflow-wrap: anywhere;
}
.asset-library .ml-queue-row .ml-button {
  align-self: center;
}
.asset-library .ml-foot {
  align-items: center;
  font-size: 12px;
}
.asset-library .ml-foot .ml-pages {
  display: flex;
  gap: 8px;
  align-items: center;
}
.asset-library .ml-confirm ul {
  padding-left: 20px;
  max-height: 130px;
  overflow: auto;
  overflow-wrap: anywhere;
}
.asset-library .ml-search input {
  outline-offset: 0;
}
.asset-library .ml-tabs {
  margin-top: 12px;
}
.asset-library .ml-upload-summary {
  margin-left: 8px;
}
.asset-library .ml-upload {
  margin-top: 18px;
}
.asset-picker {
  width: min(1120px, calc(100vw - 40px));
  max-height: 90dvh;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  padding: 24px;
  overflow: auto;
}
.asset-picker::backdrop {
  background: #10182877;
  backdrop-filter: blur(2px);
}
.pg-selected-asset {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  min-width: 0;
}
.pg-selected-asset img {
  width: 64px;
  height: 48px;
  object-fit: contain;
  background: var(--surface-2);
  border-radius: 6px;
}
.pg-selected-asset strong {
  overflow-wrap: anywhere;
  display: block;
}
.pg-selected-asset small {
  display: block;
  color: var(--ink-3);
}
.pg-asset-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 1150px) {
  .asset-library .ml-body.with-detail {
    grid-template-columns: minmax(0, 1fr);
  }
  .asset-library .ml-detail {
    grid-row: 1;
  }
  .asset-library .ml-detail-preview {
    height: 240px;
  }
  .asset-library .ml-policy {
    margin-left: 0;
  }
}
@media (max-width: 650px) {
  .asset-library .ml-quick-use { opacity: 1; transform: none; }
  .asset-library .ml-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .asset-library .ml-search {
    flex-basis: 100%;
  }
  .asset-library .ml-tools select {
    flex: 1;
    min-width: 0;
  }
  .asset-library .ml-main {
    padding: 0;
  }
  .asset-library input,
  .asset-library select {
    font-size: 16px;
  }
  .asset-library .ml-tabs {
    gap: 20px;
  }
  .asset-library .ml-button {
    min-height: 42px;
  }
  .asset-library .ml-thumb {
    height: 200px;
  }
  .asset-picker {
    width: calc(100vw - 16px);
    max-height: 95dvh;
    padding: 14px;
  }
  .asset-library .ml-header {
    align-items: flex-start;
  }
  .asset-library .ml-foot span:last-child {
    display: inline;
  }
  .asset-library .ml-foot .ml-pages {
    width: 100%;
    justify-content: space-between;
  }
}
.asset-library .ml-tools select {
  width: auto;
  flex: 0 0 auto;
  min-width: 125px;
  margin: 0;
}
.asset-library .ml-tools .ml-search {
  width: auto;
  flex: 1 1 230px;
  margin: 0;
}
.asset-library input[type='checkbox'] {
  padding: 0;
  margin: 0;
}
body.asset-view #appShell .topbar {
  display: none;
}
@media (max-width: 650px) {
  .asset-library .ml-tools select {
    flex: 1 1 auto;
    min-width: 0;
  }
  .asset-library .ml-tools .ml-search {
    flex-basis: 100%;
  }
  body.asset-view #appShell .topbar {
    display: flex;
    min-height: 40px;
    padding: 0;
    margin: 0 0 16px;
  }
  body.asset-view #appShell .topbar > *:not(.side-toggle) {
    display: none !important;
  }
}

/* File identity: quiet typography, preserved extensions, and readable metadata. */
.asset-library .ml-tile{border-radius:14px;transition:border-color .15s,box-shadow .15s;box-shadow:0 2px 7px #24395404}
.asset-library .ml-tile:hover{border-color:color-mix(in srgb,var(--ml-blue) 28%,var(--ml-line));box-shadow:0 5px 18px #24395409}
.asset-library .ml-tile.is-selected{border-color:var(--ml-blue);box-shadow:0 0 0 2px color-mix(in srgb,var(--ml-blue) 10%,transparent)}
.asset-library .ml-tile.is-multi-selected{border-color:color-mix(in srgb,var(--ml-blue) 70%,var(--ml-line));box-shadow:0 0 0 2px color-mix(in srgb,var(--ml-blue) 9%,transparent)}
.asset-library .ml-tiletext{padding:15px 14px 12px}
.asset-library .ml-tiletext .ml-title,.asset-library .ml-filename{display:flex;align-items:baseline;gap:0;min-width:0;max-width:100%;font-size:13px;font-weight:500;line-height:1.65;letter-spacing:0;text-align:left}
.asset-library .ml-name-stem{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.asset-library .ml-name-extension{flex:none;color:var(--ml-muted);font-weight:400}
.asset-library .ml-file-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:9px;font-size:11px;line-height:1.6;font-variant-numeric:tabular-nums}
.asset-library .ml-format{font-size:9px;font-weight:600;letter-spacing:.04em;background:var(--ml-side);border:1px solid var(--ml-line);border-radius:4px;padding:1px 5px}
.asset-library .ml-file-size{margin-left:auto}
.asset-library .ml-status{margin-top:13px;padding-top:10px;border-top:1px solid var(--ml-line);font-size:11px}
.asset-library .ml-card-create{display:inline-flex;align-items:center;gap:5px;flex:none;min-height:28px;padding:4px 7px;border:0;border-radius:6px;background:transparent;color:var(--ml-blue);font:inherit;font-size:11px;font-weight:600;cursor:pointer}
.asset-library .ml-card-create:hover{background:var(--ml-blue-fill)}
.asset-library .ml-card-create:disabled{cursor:default;opacity:.48}
.asset-library .ml-card-create svg{width:13px;height:13px}
.asset-library .ml-list .ml-tile{grid-template-columns:88px minmax(0,1fr)}
.asset-library .ml-list .ml-tiletext{display:block;padding-right:8px}
.asset-library .ml-list .ml-status{display:flex}
.asset-library .ml-detail{border-radius:16px;box-shadow:0 4px 20px #24395406}
.asset-library .ml-detail-head{position:sticky;top:0;z-index:3;padding:12px 14px 12px 18px;font-size:13px;background:color-mix(in srgb,var(--ml-surface) 94%,transparent);backdrop-filter:blur(12px)}
.asset-library .ml-detail-head-actions{display:flex;align-items:center;gap:7px}
.asset-library .ml-detail-head .ml-detail-create{min-height:34px;padding:7px 13px;border-radius:8px;font-size:12px;font-weight:600}
.asset-library .ml-detail-head .ml-detail-create svg{width:15px;height:15px}
.asset-library .ml-detail-head .ml-icon-button{min-height:28px;min-width:28px;padding:5px;border:0;background:transparent;color:var(--ml-muted)}
.asset-library .ml-detail-preview{margin:18px;border-radius:10px;height:210px}
.asset-library .ml-detail-content{padding:0 18px 18px}
.asset-library .ml-detail-identity{padding:0}
.asset-library .ml-name-label,.asset-library .ml-section-label{font-size:11px;line-height:1.6;color:var(--ml-muted);margin-bottom:7px}
.asset-library .ml-detail-title{align-items:center;min-width:0;gap:8px;margin-bottom:0}
.asset-library .ml-detail-title .ml-filename{flex:1;font-size:14px;font-weight:500;overflow:hidden}
.asset-library .ml-rename{flex:none;width:28px;min-width:28px;min-height:28px;height:28px;padding:5px;border:0;border-radius:6px;background:transparent;color:var(--ml-muted)}
.asset-library .ml-rename:hover{color:var(--ml-blue);background:var(--ml-blue-fill)}
.asset-library .ml-fullname{margin:5px 0 0;padding:0;border:0;background:transparent;border-radius:0}
.asset-library .ml-fullname summary{display:inline-flex;gap:5px;padding:3px 0;font-size:11px;font-weight:400;color:var(--ml-muted);cursor:pointer;list-style:none}
.asset-library .ml-fullname summary::after{content:'＋';position:static;font-size:12px}
.asset-library .ml-fullname[open] summary::after{content:'−'}
.asset-library .ml-fullname p{margin:5px 0 0;padding:9px 10px;background:var(--ml-side);border-radius:6px;overflow-wrap:anywhere;font-size:12px;line-height:1.7;color:var(--ml-text)}
.asset-library .ml-file-facts{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr) minmax(0,1fr);gap:10px;margin:16px 0 18px;padding:12px 10px;border:1px solid var(--ml-line);border-radius:9px;background:var(--ml-side)}
.asset-library .ml-file-facts dt{font-size:10px;line-height:1.6;color:var(--ml-muted);margin-bottom:5px}
.asset-library .ml-file-facts dd{font-size:11px;line-height:1.6;margin:0;font-weight:500;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.asset-library .ml-fields{grid-template-columns:60px minmax(0,1fr);margin:10px 0 20px;gap:12px 10px;font-size:11px;line-height:1.6}
.asset-library .ml-fields dd{font-variant-numeric:tabular-nums}
.asset-library .ml-edit-row{width:100%;min-width:0}
.asset-library .ml-edit-row .ml-input{width:100%;min-width:0;font-size:13px}
.asset-library .ml-code{font-size:10px;line-height:1.7;color:var(--ml-muted);border-color:var(--ml-line)}
.asset-library .ml-management-name{display:grid;gap:5px;padding:12px 0;border-bottom:1px solid var(--ml-line)}
.asset-library .ml-management-name span{font-size:10px;color:var(--ml-muted)}
.asset-library .ml-management-name strong{font-size:11px;line-height:1.6;font-weight:500;overflow-wrap:anywhere}
.asset-library .ml-asset-more{margin:16px 0 0;border-top:1px solid var(--ml-line);border-bottom:1px solid var(--ml-line);background:transparent}
.asset-library .ml-asset-more>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 2px;cursor:pointer;list-style:none;color:var(--ml-text);font-size:12px;font-weight:600;white-space:nowrap}
.asset-library .ml-asset-more>summary::-webkit-details-marker{display:none}
.asset-library .ml-asset-more>summary::after{content:'⌄';flex:none;color:var(--ml-muted);font-size:15px;transition:transform .15s}
.asset-library .ml-asset-more[open]>summary{border-bottom:1px solid var(--ml-line)}
.asset-library .ml-asset-more[open]>summary::after{transform:rotate(180deg)}
.asset-library .ml-asset-more-content{padding:0 2px 14px}
.asset-library .ml-batch{position:sticky;top:12px;z-index:8;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px;padding:12px 14px;border:1px solid color-mix(in srgb,var(--ml-blue) 22%,var(--ml-line));border-radius:12px;background:color-mix(in srgb,var(--ml-surface) 94%,transparent);box-shadow:0 10px 30px #24395412;backdrop-filter:blur(14px)}
.asset-library .ml-selection-summary{display:flex;align-items:center;gap:12px;min-width:0}
.asset-library .ml-selection-summary>span{display:grid;gap:3px;min-width:0}
.asset-library .ml-selection-summary strong{font-size:12px;font-weight:600}
.asset-library .ml-selection-summary small{font-size:10px;color:var(--ml-muted);line-height:1.5;white-space:normal}
.asset-library .ml-selection-thumbs{display:flex;align-items:center;min-width:42px;padding-left:5px}
.asset-library .ml-selection-thumbs>span{position:relative;width:36px;height:36px;margin-left:-5px;border:2px solid var(--ml-surface);border-radius:8px;overflow:visible;background:var(--ml-side)}
.asset-library .ml-selection-thumbs img{width:100%;height:100%;object-fit:cover;border-radius:6px}
.asset-library .ml-selection-thumbs b{position:absolute;right:-3px;bottom:-4px;display:grid;place-items:center;width:15px;height:15px;border-radius:50%;background:var(--ml-blue);color:#fff;font-size:8px}
.asset-library .ml-selection-thumbs i{margin-left:5px;color:var(--ml-muted);font-size:10px;font-style:normal}
.asset-library .ml-batch-actions{display:flex;align-items:center;gap:7px;flex:none}
.asset-library .ml-batch-actions .ml-button{width:auto;min-height:34px;padding:7px 11px;font-size:11px}
@media(max-width:650px){.asset-library .ml-detail-preview{height:200px}.asset-library .ml-detail-title .ml-filename{font-size:14px}.asset-library .ml-edit-row .ml-input{font-size:16px}.asset-library .ml-file-facts dd{font-size:12px}.asset-library .ml-list .ml-tile{grid-template-columns:72px minmax(0,1fr)}.asset-library .ml-detail-head .ml-detail-create{min-height:32px;padding:6px 10px}.asset-library .ml-batch{align-items:stretch;flex-direction:column;top:8px}.asset-library .ml-batch-actions{justify-content:flex-end;flex-wrap:wrap}.asset-library .ml-batch-actions .ml-primary{flex:1}.asset-library .ml-selection-summary small{white-space:normal}}

.asset-library .ml-file-facts:has(>div:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}

/* Creation sources and scenario gallery share the existing asset workspace. */
.asset-library .ml-sources{display:flex;gap:28px;border-bottom:1px solid #e1e5ed;margin:0 0 24px}
.asset-library .ml-sources .ml-button{border:0;border-radius:0;background:none;padding:12px 2px 15px;color:#738096;box-shadow:none;font-size:15px;position:relative}
.asset-library .ml-sources [aria-pressed=true]{color:#096de3;font-weight:600}
.asset-library .ml-sources [aria-pressed=true]:after{content:'';height:3px;border-radius:3px;background:#0878ed;position:absolute;bottom:-1px;left:0;right:0}
.asset-library .cs-heading{display:flex;gap:24px;align-items:center;justify-content:space-between;padding:22px 0 27px}
.asset-library .cs-eyebrow{color:#687991;font-size:12px;letter-spacing:.1em}
.asset-library .cs-heading h2{font-size:28px;line-height:1.35;letter-spacing:-.03em;margin:8px 0 10px;font-weight:600;color:#17283e}
.asset-library .cs-heading p{color:#778296;font-size:14px;margin:0}
.asset-library .cs-retention{color:#64778b;background:#eaf1f9;border-radius:7px;padding:8px 12px;font-size:12px;white-space:nowrap}
.asset-library .cs-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 20px}
.asset-library .cs-filters button{font:inherit;font-size:13px;padding:8px 15px;border:1px solid transparent;border-radius:8px;color:#6d788b;background:transparent;cursor:pointer;min-height:40px}
.asset-library .cs-filters button[aria-pressed=true]{background:#fff;border-color:#dce6f4;color:#0765ce;box-shadow:0 2px 6px #263c5b07}
.asset-library .cs-filters>span{margin-left:auto;color:#8590a1;font-size:12px}
.asset-library .cs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;padding-bottom:28px;max-width:1240px}
.asset-library .cs-card{border:1px solid #e0e5ee;background:#fff;border-radius:16px;overflow:hidden;min-width:0;box-shadow:0 4px 14px #23395604;transition:border-color .15s,box-shadow .15s}
.asset-library .cs-card:hover{border-color:#c3d7f1;box-shadow:0 8px 24px #2339560a}
.asset-library .cs-cover{position:relative;aspect-ratio:1.65;background:#edf1f6;overflow:hidden}
.asset-library .cs-cover>img{display:block;width:100%;height:100%;object-fit:cover}
.asset-library .cs-cover>span{position:absolute;top:14px;left:14px;display:flex;align-items:center;gap:5px;font-size:11px;padding:5px 9px;border-radius:6px;color:#22394f;background:#fffffff0}
.asset-library .cs-cover>small{position:absolute;bottom:12px;right:12px;font-size:10px;padding:3px 7px;border-radius:4px;background:#ffffffe8;color:#5e6d80}
.asset-library .cs-cover svg{width:12px;height:12px}
.asset-library .cs-content{padding:22px 24px}
.asset-library .cs-category{color:#7c8ba0;font-size:11px;letter-spacing:.08em}
.asset-library .cs-content h3{font-size:19px;line-height:1.4;font-weight:600;color:#24344a;margin:6px 0 8px}
.asset-library .cs-content p{font-size:13px;line-height:1.7;color:#7a8596;margin:0 0 14px}
.asset-library .cs-content details{font-size:12px;color:#647a95;margin:12px 0 18px}
.asset-library .cs-content summary{cursor:pointer;min-height:28px}
.asset-library .cs-content details p{color:#3d4f65;margin:8px 0;padding:12px;background:#f6f8fb;border-radius:8px}
.asset-library .cs-card-foot{border-top:1px solid #edf0f5;padding-top:15px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.asset-library .cs-card-foot>span{font-size:12px;color:#91a0b1}
.asset-library .cs-card-foot .ml-button{border-radius:8px;padding:9px 16px;font-size:13px;font-weight:500}
.asset-library .cs-asset-scenes{margin:0;padding:14px 0 0;border-top:1px solid var(--ml-line)}
.asset-library .ml-create-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 10px}
.asset-library .ml-create-heading strong{font-size:12px;font-weight:600;color:var(--ml-text)}
.asset-library .ml-create-heading span{font-size:10px;color:var(--ml-muted);text-align:right}
.asset-library .cs-scene-actions{display:flex;gap:7px;flex-wrap:wrap}
.asset-library .cs-scene-actions button{display:inline-flex;align-items:center;gap:5px;min-height:32px;background:var(--ml-surface);border:1px solid var(--ml-line);border-radius:7px;padding:6px 8px;cursor:pointer;color:var(--ml-text);font:inherit;font-size:10px}
.asset-library .cs-scene-actions button:hover{border-color:color-mix(in srgb,var(--ml-blue) 38%,var(--ml-line));color:var(--ml-blue);background:var(--ml-blue-fill)}
.asset-library .cs-scene-actions button:disabled{opacity:.5;cursor:default}
.asset-library .cs-scene-actions svg{width:14px;height:14px;color:var(--ml-blue)}
@media(max-width:700px){.asset-library .cs-heading{display:block;padding:10px 0 20px}.asset-library .cs-heading h2{font-size:23px}.asset-library .cs-retention{display:inline-block;margin-top:14px}.asset-library .cs-grid{grid-template-columns:1fr;gap:18px}.asset-library .cs-filters>span{width:100%;margin:8px 0 0}.asset-library .cs-content{padding:18px}.asset-library .cs-cover{aspect-ratio:1.5}}

.cs-cover.cs-comparison{display:grid;grid-template-columns:1fr 1fr;gap:2px;aspect-ratio:1.85;background:#fff}.cs-comparison figure{position:relative;margin:0;min-width:0;height:100%;overflow:hidden}.cs-comparison figure img{width:100%;height:100%;object-fit:cover}.cs-comparison figcaption{position:absolute;left:12px;bottom:12px;padding:5px 9px;border-radius:7px;background:rgba(255,255,255,.9);font-size:11px;color:#324258;backdrop-filter:blur(8px)}

.cs-cover video{width:100%;height:100%;object-fit:contain;background:#e9eef3}.cs-cover:has(video){aspect-ratio:16/9}.cs-cover:has(video)>span{pointer-events:none;left:12px;top:12px}

/* Asset management stays a workspace: details open in a focused floating window instead of shrinking the grid. */
.asset-library .ml-detail-trigger{position:absolute;right:10px;bottom:10px;z-index:2;min-height:32px;padding:6px 10px;border:1px solid #ffffffa8;border-radius:8px;background:#fffffff0;color:#26384d;box-shadow:0 5px 18px #172a4424;backdrop-filter:blur(10px);font:inherit;font-size:11px;font-weight:600;cursor:pointer;transition:background .15s,transform .15s,box-shadow .15s}
.asset-library .ml-detail-trigger:hover{background:#fff;color:var(--ml-blue);transform:translateY(-1px);box-shadow:0 8px 22px #172a4430}
.asset-library .ml-tile:has(.ml-quick-use) .ml-detail-trigger{right:auto;left:10px}
.asset-library .ml-tile:has(.ml-quick-use) .ml-quick-use{top:auto;bottom:10px}
.asset-library .ml-list .ml-detail-trigger{right:5px;bottom:5px;min-height:26px;padding:4px 6px;font-size:9px}
.asset-library .ml-list .ml-tile:has(.ml-quick-use) .ml-detail-trigger{left:5px}
.asset-library dialog.ml-detail{position:fixed;inset:0;width:min(880px,calc(100vw - 32px));max-width:none;max-height:min(720px,calc(100dvh - 32px));margin:auto;padding:0;border:1px solid #dfe6ef;border-radius:18px;background:var(--ml-surface);color:var(--ml-text);overflow:hidden;box-shadow:0 30px 110px #14223845}
.asset-library dialog.ml-detail::backdrop{background:#14223866;backdrop-filter:blur(4px)}
.asset-library dialog.ml-detail .ml-detail-head{position:relative;top:auto;padding:15px 16px 15px 22px;background:var(--ml-surface);backdrop-filter:none}
.asset-library .ml-detail-head>div:first-child{display:grid;gap:2px}
.asset-library .ml-detail-head>div:first-child>small{font-size:10px;font-weight:400;color:var(--ml-muted)}
.asset-library .ml-detail-main{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);height:min(570px,calc(100dvh - 104px));min-height:430px}
.asset-library dialog.ml-detail .ml-detail-preview{display:grid;place-items:center;width:100%;height:100%;min-height:0;margin:0;border-radius:0;background:#f3f5f8}
.asset-library dialog.ml-detail .ml-detail-preview img,.asset-library dialog.ml-detail .ml-detail-preview video{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.asset-library dialog.ml-detail .ml-detail-content{min-width:0;padding:23px 24px 24px;border-left:1px solid var(--ml-line);overflow:auto}
.asset-library dialog.ml-detail .ml-detail-identity{padding:0 0 17px;border-bottom:1px solid var(--ml-line)}
.asset-library dialog.ml-detail .ml-detail-title{margin:0}
.asset-library .ml-detail-status{display:inline-flex;margin-top:10px;padding:4px 8px;border-radius:999px;background:var(--ml-side);color:var(--ml-muted);font-size:10px;line-height:1.5}
.asset-library .ml-detail-status.soon{background:var(--ml-warn-fill);color:var(--ml-warn)}
.asset-library .ml-detail-status.busy{background:var(--ml-blue-fill);color:var(--ml-blue)}
.asset-library dialog.ml-detail .ml-file-facts{margin:15px 0 0}
.asset-library dialog.ml-detail .ml-fields{margin:18px 0;gap:11px 10px}
.asset-library .ml-reference-block{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center;margin-top:18px;padding-top:17px;border-top:1px solid var(--ml-line)}
.asset-library .ml-reference-block>span{grid-column:1/-1;font-size:10px;color:var(--ml-muted)}
.asset-library .ml-reference-block .ml-code{min-width:0;margin:0;max-height:76px;overflow:auto}
.asset-library .ml-reference-block .ml-button{width:auto;min-height:34px;padding:7px 9px;font-size:10px}
.asset-library dialog.ml-detail .ml-detail-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:17px}
.asset-library dialog.ml-detail .ml-detail-actions .ml-button{width:auto;flex:1;min-width:125px;min-height:38px}
@media(max-width:700px){.asset-library dialog.ml-detail{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:16px}.asset-library .ml-detail-main{grid-template-columns:1fr;height:auto;max-height:calc(100dvh - 70px);overflow:auto}.asset-library dialog.ml-detail .ml-detail-preview{height:min(42dvh,320px);min-height:220px}.asset-library dialog.ml-detail .ml-detail-content{overflow:visible;border-left:0;border-top:1px solid var(--ml-line);padding:20px}.asset-library .ml-detail-head>div:first-child>small{display:none}.asset-library .ml-detail-trigger{min-height:34px}}
