body[data-page="asset"] { background: #0e0f0f; }
.asset-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 4px; width: 100%; max-width: none; min-height: calc(100svh - var(--header-height)); margin: 0; padding: 12px 5px 5px 7px; }
.asset-sidebar, .asset-main { border: 1px solid #222324; border-radius: 18px; background: #111213; }
.asset-sidebar { padding: 7px; }
.asset-sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.asset-nav-item { display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 6px; border: 0; border-radius: 12px; background: transparent; color: #f4f4f4; text-align: left; font-size: 14px; font-weight: 550; letter-spacing: -.3px; }
.asset-nav-item:hover { background: #1a1b1c; }
.asset-nav-item[aria-current="page"] { background: #222324; }
.asset-nav-icon { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border: 1px solid #ffffff26; border-radius: 8px; background: radial-gradient(ellipse at 35% 0, #ffffff38, transparent 80%), #292b2c; box-shadow: inset 0 1px 2px #ffffff14, 0 1px 2px #0005; }
.asset-icon { display: block; flex-shrink: 0; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.asset-nav-count { display: grid; place-items: center; min-width: 18px; height: 18px; margin-left: auto; padding: 0 4px; border-radius: 6px; background: #202224; color: #999da3; font-size: 10px; font-weight: 450; }
.asset-tools-label { margin: 24px 6px 9px; color: #888b8f; font-size: 12px; letter-spacing: .3px; }
.asset-main { min-width: 0; padding: 15px; }
.asset-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 32px; margin-bottom: 18px; }
.asset-toolbar h1 { margin: 0 2px; color: #fff; font-size: 20px; font-weight: 650; line-height: 28px; letter-spacing: -.7px; }
.asset-toolbar-actions { display: flex; align-items: center; gap: 4px; }
.asset-search { display: flex; align-items: center; gap: 8px; width: 185px; height: 32px; padding: 0 9px; border: 1px solid #2b2d2f; border-radius: 9px; }
.asset-search:focus-within { border-color: #777; }
.asset-search .asset-icon { width: 14px; height: 14px; }
.asset-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: #f6f6f6; font-size: 14px; }
.asset-search input::placeholder { color: #f6f6f6; opacity: 1; }
.asset-search-hint { color: #76797c; }
.asset-control { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; padding: 0 11px; border: 1px solid #2b2d2f; border-radius: 9px; background: transparent; color: #f5f5f5; font-size: 14px; font-weight: 500; white-space: nowrap; }
.asset-control:hover, .asset-control[aria-expanded="true"], .asset-control.is-active { background: #222426; border-color: #414447; }
.asset-control .asset-icon { width: 15px; height: 15px; }
.asset-popover { z-index: 40; position: fixed; inset: auto; width: 216px; max-width: calc(100vw - 24px); margin: 0; padding: 7px; border: 1px solid #36383a; border-radius: 12px; background: #1b1d1e; color: #f5f5f5; box-shadow: 0 12px 40px #0006; }
.asset-popover-title { margin: 7px 8px 10px; color: #a1a4a7; font-size: 12px; }
.asset-popover label, .asset-popover-option { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 35px; padding: 7px 8px; border: 0; border-radius: 6px; background: transparent; color: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.asset-popover label:hover, .asset-popover-option:hover { background: #2b2d2f; }
.asset-popover input { margin: 0; accent-color: #fff; }
.asset-popover hr { margin: 7px 2px; border: 0; border-top: 1px solid #333638; }
.asset-sort { width: calc(100% - 16px); margin: 0 8px 7px; padding: 7px; border: 1px solid #3b3d3f; border-radius: 5px; background: #242628; color: #fff; font: inherit; font-size: 12px; }
.asset-group { margin-bottom: 24px; }
.asset-group-heading { display: flex; align-items: center; gap: 8px; min-height: 22px; margin: 0 5px 13px; }
.asset-group-heading h2 { margin: 0; color: #f4f4f4; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: -.3px; }
.asset-checkbox { appearance: none; display: block; flex-shrink: 0; width: 20px; height: 20px; margin: 0; border: 2px solid #282a2c; border-radius: 6px; background: #111213; cursor: pointer; }
.asset-checkbox:checked, .asset-checkbox:indeterminate { border-color: #eee; background: #eee; }
.asset-checkbox:checked::after { content: ""; display: block; width: 5px; height: 9px; margin: 1px 0 0 5px; border: solid #171819; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.asset-checkbox:indeterminate::after { content: ""; display: block; width: 10px; height: 2px; margin: 7px 3px; background: #171819; }
.asset-grid { --asset-row-height: 286px; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 4px; }
.asset-card { position: relative; flex: 0 0 auto; width: calc(var(--asset-row-height) * var(--asset-ratio, 1)); max-width: 100%; height: var(--asset-row-height); overflow: hidden; background: #1b1c1d; isolation: isolate; }
.asset-card.is-selected { outline: 2px solid #fff; outline-offset: -2px; }
.asset-preview { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; }
.asset-preview img, .asset-preview video { display: block; width: 100%; height: 100%; object-fit: cover; }
.asset-preview:focus-visible { outline-offset: -4px; }
.asset-card-selection { position: absolute; z-index: 2; top: 10px; left: 10px; opacity: 0; transition: opacity 120ms ease; }
.asset-card-actions { position: absolute; z-index: 2; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 4px; opacity: 0; transition: opacity 120ms ease; }
.asset-card:hover .asset-card-selection, .asset-card:hover .asset-card-actions, .asset-card:focus-within .asset-card-selection, .asset-card:focus-within .asset-card-actions, .asset-card.is-selected .asset-card-selection { opacity: 1; }
.asset-card-action { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 1px solid #ffffff50; border-radius: 50%; background: #12121245; color: #fff; backdrop-filter: blur(6px); }
.asset-card-action .asset-icon { width: 13px; height: 13px; stroke-width: 1.3; }
.asset-card-action:hover { border-color: #fff; background: #111b; }
.asset-card-action[aria-pressed="true"] .asset-icon { fill: currentColor; }
.asset-card-label { position: absolute; bottom: 8px; left: 8px; padding: 3px 6px; border-radius: 4px; background: #111b; color: #eee; font-size: 10px; pointer-events: none; }
.asset-grid[data-view="grid"] { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.asset-grid[data-view="grid"] .asset-card { width: 100%; height: auto; aspect-ratio: 1; }
.asset-selection-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0 4px 17px; color: #bcbfc2; font-size: 12px; }
.asset-selection-bar > span { margin-right: auto; }
.asset-selection-bar .asset-control { min-height: 28px; font-size: 12px; }
.asset-empty { display: grid; justify-items: center; align-content: center; gap: 13px; min-height: 310px; padding: 35px 15px; color: #858a8e; text-align: center; }
.asset-empty > .asset-icon { width: 30px; height: 30px; stroke-width: 1; }
.asset-empty h2 { margin: 0; color: #e5e7e9; font-size: 16px; font-weight: 550; }
.asset-empty p { max-width: 320px; margin: 0; font-size: 13px; line-height: 1.7; }
.asset-notice { margin: 0 4px 15px; color: #b9bdc1; font-size: 12px; line-height: 1.6; }
.asset-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 286px)); gap: 12px; }
.asset-project { display: flex; flex-direction: column; gap: 12px; padding: 12px; border: 1px solid #2a2d2f; border-radius: 12px; background: #181a1b; text-align: left; }
.asset-project:hover { border-color: #585b5e; }
.asset-project-cover { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: #202325; }
.asset-project-cover img { width: 100%; height: 100%; object-fit: cover; }
.asset-project-cover > .asset-icon { width: 34px; height: 34px; color: #9c9fa3; }
.asset-project strong { font-size: 14px; font-weight: 550; }
.asset-project small { color: #9da2a6; font-size: 12px; }
.asset-project-back { margin: 0 3px 16px; }
.asset-lightbox { position: fixed; width: min(1100px, calc(100% - 32px)); max-height: calc(100svh - 32px); margin: auto; padding: 0; overflow: auto; border: 1px solid #3c3f42; border-radius: 16px; background: #141617; color: #f5f5f5; }
.asset-lightbox::backdrop { background: #000c; backdrop-filter: blur(8px); }
.asset-lightbox-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 32px; height: 32px; background: #111b; }
.asset-lightbox-media { display: grid; place-items: center; min-height: 150px; background: #0a0b0c; }
.asset-lightbox-media img, .asset-lightbox-media video { display: block; max-width: 100%; max-height: calc(100svh - 200px); object-fit: contain; }
.asset-lightbox-details { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; }
.asset-lightbox-details > div { min-width: 0; overflow-wrap: anywhere; }
.asset-lightbox-details h2 { margin: 0 0 7px; font-size: 15px; font-weight: 550; }
.asset-lightbox-details p { max-width: 700px; margin: 0; color: #9ca2a6; font-size: 12px; line-height: 1.6; }
body:has(.asset-lightbox[open]) { overflow: hidden; }
.asset-symbols { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
@media (min-width: 900px) and (max-height: 930px) { .asset-layout { min-height: calc(100svh - var(--header-height)); } }
@media (max-width: 1100px) {
  .asset-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .asset-grid { --asset-row-height: 230px; }
}
@media (max-width: 700px) {
  .asset-layout { grid-template-columns: 57px minmax(0, 1fr); gap: 5px; min-height: calc(100svh - var(--header-height)); padding: 7px 6px 6px; overflow: visible; }
  .asset-sidebar { padding: 6px 3px; border-radius: 14px; }
  .asset-nav-item { justify-content: center; height: 42px; padding: 0; }
  .asset-nav-text, .asset-nav-count { display: none; }
  .asset-tools-label { height: 1px; margin: 15px 9px; overflow: hidden; background: #2b2e30; font-size: 0; }
  .asset-main { padding: 12px 9px; border-radius: 14px; }
  .asset-toolbar { flex-wrap: wrap; gap: 12px; margin-bottom: 17px; }
  .asset-toolbar h1 { font-size: 18px; }
  .asset-toolbar-actions { width: 100%; }
  .asset-search { flex: 1; width: auto; min-width: 0; }
  .asset-search input { font-size: 16px; }
  .asset-search-hint { display: none; }
  .asset-control { gap: 5px; padding-inline: 8px; font-size: 12px; }
  .asset-grid { --asset-row-height: 200px; }
  .asset-group-heading { margin-left: 0; }
  .asset-group-heading h2 { font-size: 12px; }
  .asset-grid[data-view="grid"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-card-actions { right: 7px; }
  .asset-lightbox-details { align-items: flex-start; flex-direction: column; }
  .asset-projects { grid-template-columns: minmax(0, 1fr); }
}
@media (hover: none) { .asset-card-actions { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .asset-card-selection, .asset-card-actions { transition: none; } }
