@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #151618;
  --surface: #1d1f22;
  --raised: #24262a;
  --hover: #2c2e33;
  --border: #34363b;
  --text: #f0f0ef;
  --muted: #a0a3ab;
  --faint: #737883;
  --accent: #f2a45a;
  --accent-hover: #ffb873;
  --accent-dim: #f2a45a18;
  --danger: #f48c8c;
  --green: #83cdb1;
  --shadow: 0 20px 80px #0008;
  --radius: 10px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.asset-classification { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:10px; min-width:0; }
.project-tag { max-width:52%; font-size:11px; color:var(--muted); }
.usage-badge { display:inline-flex; align-items:center; gap:5px; border:1px solid var(--border); border-radius:5px; padding:3px 6px; font-size:10px; line-height:1.35; white-space:nowrap; font-weight:600; }
.usage-badge.used { color:var(--green); background:rgba(58,154,112,.1); border-color:rgba(58,154,112,.25); }
.usage-badge.unused { color:var(--muted); background:var(--surface); }
.project-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr)); gap:18px; }
.project-card { display:flex; flex-direction:column; gap:18px; min-width:0; }
.project-card h2,.project-card p { overflow-wrap:anywhere; }
.project-card > .row:last-child { margin-top:auto; }
@media(max-width:600px) { .asset-classification { align-items:flex-start; flex-direction:column; gap:5px; } .project-tag { max-width:100%; } }
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f3f1;
  --surface: #fff;
  --raised: #f3f2ef;
  --hover: #eae8e4;
  --border: #dcd9d3;
  --text: #252628;
  --muted: #676b72;
  --faint: #81858c;
  --accent: #a94e16;
  --accent-hover: #873d0f;
  --accent-dim: #b65a1010;
  --danger: #b52e35;
  --green: #26745a;
  --shadow: 0 20px 80px #29272425;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover:not(:disabled) {
  background: var(--hover);
  border-color: var(--faint);
}
button.primary,
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1b1712;
  font-weight: 650;
}
button.primary:hover:not(:disabled) {
  background: var(--accent-hover);
}
button.danger {
  color: var(--danger);
}
button.ghost {
  background: transparent;
  border-color: transparent;
}
button.icon {
  padding: 8px;
  flex-shrink: 0;
}
button.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: var(--accent);
}
svg.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
input:not([type="checkbox"]):not([type="range"]):not([type="color"]),
select,
textarea {
  width: 100%;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 11px;
  min-height: 38px;
}
input::placeholder,
textarea::placeholder {
  color: var(--faint);
}
textarea {
  resize: vertical;
  min-height: 88px;
}
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  vertical-align: middle;
}
input[type="range"] {
  accent-color: var(--accent);
  max-width: 160px;
}
input[type="color"] {
  height: 32px;
  width: 40px;
  border: 1px solid var(--border);
  background: transparent;
  padding: 2px;
  border-radius: 5px;
}
label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}
label > input,
label > select,
label > textarea {
  margin-top: 6px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.mono,
code,
pre {
  font-family: "Cascadia Code", Consolas, monospace;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wrap {
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.grow {
  flex: 1;
  min-width: 0;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hidden {
  display: none !important;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.badge.warm {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: transparent;
}
.error {
  color: var(--danger);
  font-size: 13px;
  white-space: pre-wrap;
}
.notice {
  padding: 12px 14px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--raised);
  font-size: 13px;
  color: var(--muted);
}
.success {
  color: var(--green);
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  grid-template-rows: 76px 1fr;
}
.sidebar {
  grid-row: 1 / -1;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  z-index: 30;
  overflow-y: auto;
}
.brand {
  padding: 24px 23px 28px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--text);
}
.brand-mark {
  background: var(--accent);
  color: #1d1915;
  font-size: 22px;
  font-weight: 900;
  line-height: 36px;
  text-align: center;
  width: 36px;
  height: 36px;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
}
.brand-title {
  font-size: 17px;
  letter-spacing: 2px;
  font-weight: 750;
}
.brand-sub {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 2.6px;
}
.nav-group {
  padding: 0 13px 20px;
}
.nav-label {
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--faint);
  padding: 10px 12px;
}
.nav-item {
  border: 0;
  background: transparent;
  width: 100%;
  justify-content: flex-start;
  padding: 10px 12px;
  margin: 2px 0;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
}
.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
  position: relative;
}
.nav-item.active:before {
  content: "";
  position: absolute;
  left: -13px;
  top: 11px;
  bottom: 11px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}
.nav-item .count {
  margin-left: auto;
  font-size: 10px;
}
.category-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--faint);
  margin: 0 6px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.sidebar-bottom .version {
  font-size: 10px;
  color: var(--faint);
  margin-top: 10px;
}
.topbar {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 0 30px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.search {
  position: relative;
  flex: 1;
  max-width: 580px;
}
.search > svg {
  position: absolute;
  left: 12px;
  top: 11px;
  color: var(--faint);
}
.search input {
  padding-left: 40px !important;
  background: var(--surface) !important;
}
.keycap {
  position: absolute;
  right: 11px;
  top: 9px;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 5px;
  color: var(--faint);
  font-size: 11px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
}
.profile-button {
  border: 0;
  background: none;
  padding: 3px;
  gap: 7px;
}
.content {
  grid-column: 2;
  min-width: 0;
  padding: 30px 32px 60px;
}
.page-title {
  margin-bottom: 26px;
}
.eyebrow {
  color: var(--faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.page-title p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 11px;
  margin-bottom: 19px;
}
.breadcrumb strong {
  color: var(--muted);
  font-weight: 500;
}
.view-toggle {
  display: flex;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px;
}
.view-toggle button {
  border: 0;
  padding: 5px 7px;
  background: transparent;
}
.view-toggle button.active {
  background: var(--hover);
  color: var(--text);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.stat {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat .stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--raised);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 14px;
}
.stat strong {
  font-size: 25px;
  font-weight: 620;
  letter-spacing: -0.8px;
}
.stat p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 16px;
}
.section-title a,
.section-title button {
  font-size: 12px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbar select {
  width: auto;
  max-width: 180px;
  font-size: 12px;
  background: var(--surface);
}
.toolbar .density {
  width: 118px;
}
.filter-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.filter-panel label {
  font-size: 11px;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 18px;
}
.asset-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.asset-grid.comfortable {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}
.asset-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  position: relative;
  transition:
    border-color 0.15s,
    transform 0.15s;
  min-width: 0;
}
.asset-card:hover {
  border-color: var(--faint);
  transform: translateY(-2px);
}
.asset-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.asset-art {
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--raised), var(--bg));
  overflow: hidden;
}
.compact .asset-art {
  height: 125px;
}
.comfortable .asset-art {
  height: 200px;
}
.asset-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.asset-art .format-glyph {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 300;
  color: var(--faint);
}
.asset-art .format-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.asset-art .format-icon svg {
  width: 27px;
  height: 27px;
}
.asset-art .art-type {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #17191bdc;
  color: #d9dce2;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 9px;
  letter-spacing: 0.6px;
  font-weight: 600;
  text-transform: uppercase;
}
.asset-art .selection {
  position: absolute;
  left: 11px;
  top: 10px;
  z-index: 2;
}
.asset-art .favorite {
  position: absolute;
  right: 8px;
  top: 8px;
  opacity: 0;
  background: #17191bbd;
  color: #e5e5e5;
  border-color: #ffffff25;
  padding: 5px;
}
.asset-card:hover .favorite,
.asset-art .favorite.is-favorite,
.asset-card:focus-within .favorite {
  opacity: 1;
}
.asset-art .favorite.is-favorite {
  color: var(--accent);
}
.asset-open {
  cursor: pointer;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  text-align: left;
  background: none;
}
.asset-open:hover {
  background: none !important;
}
.asset-info {
  padding: 13px 14px 12px;
}
.asset-info h3 {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.asset-info .meta {
  color: var(--muted);
  font-size: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.asset-info .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 10px;
}
.asset-list {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.asset-table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
.asset-table th {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 500;
  background: var(--surface);
}
.asset-table th,
.asset-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.asset-table tr:last-child td {
  border-bottom: 0;
}
.asset-table td {
  font-size: 12px;
}
.asset-table tbody tr:hover {
  background: var(--surface);
}
.asset-table tbody tr.selected {
  background: var(--accent-dim);
}
.asset-table .list-name {
  color: var(--text);
  padding: 0;
  justify-content: flex-start;
  background: none;
  border: 0;
}
.list-thumb {
  width: 38px;
  height: 38px;
  border-radius: 5px;
  object-fit: cover;
  background: var(--raised);
}
.selection-bar {
  position: sticky;
  bottom: 18px;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 9px;
  box-shadow: var(--shadow);
  margin: 18px auto 0;
  max-width: 700px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
}
.empty {
  padding: 60px 24px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--muted);
}
.empty svg {
  width: 36px;
  height: 36px;
  color: var(--faint);
  margin-bottom: 14px;
}
.empty h2 {
  color: var(--text);
  margin-bottom: 6px;
}
.empty p {
  max-width: 410px;
  margin: 0 auto 20px;
  font-size: 13px;
}
.split-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.mini-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mini-asset {
  width: 100%;
  background: var(--surface);
  border-color: var(--border);
  justify-content: flex-start;
  text-align: left;
  padding: 11px 14px;
}
.mini-asset .mini-icon {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--raised);
  border-radius: 7px;
  color: var(--accent);
}
.mini-asset p {
  font-size: 11px;
  color: var(--muted);
}
dialog {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
  max-width: min(960px, calc(100vw - 36px));
  width: 640px;
  max-height: calc(100dvh - 40px);
}
dialog::backdrop {
  background: #08090bb3;
  backdrop-filter: blur(5px);
}
dialog.wide {
  width: 1180px;
  max-width: calc(100vw - 40px);
}
.dialog-head {
  padding: 19px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 5;
}
.dialog-body {
  padding: 24px;
}
.dialog-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: var(--surface);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-help {
  font-size: 11px;
  color: var(--faint);
  margin-top: 5px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr);
  gap: 24px;
}
.detail-info {
  min-width: 0;
}
.detail-info h1 {
  font-size: 24px;
}
.detail-description {
  white-space: pre-wrap;
  color: var(--muted);
  font-size: 13px;
  margin: 16px 0 20px;
}
.detail-specs {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 9px;
  font-size: 12px;
  margin: 20px 0;
}
.detail-specs dt {
  color: var(--faint);
}
.detail-specs dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tag {
  padding: 3px 8px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 3px;
  border-bottom: 1px solid var(--border);
  margin: 22px 0 16px;
}
.tabs button {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 12px;
}
.tabs button.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.metadata {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 14px;
  max-height: 350px;
  overflow: auto;
  font-size: 11px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.file-row .path {
  overflow-wrap: anywhere;
}
.version-row {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  margin-bottom: 10px;
}
.version-row p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 10px;
}
.preview {
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  background: var(--bg);
  min-height: 320px;
}
.preview-stage {
  position: relative;
  min-height: 300px;
  height: 360px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-conic-gradient(#ffffff09 0% 25%, transparent 0% 50%)
    50%/22px 22px;
  touch-action: none;
}
.preview-stage canvas {
  max-width: 100%;
}
.preview-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 10px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  background: var(--surface);
}
.preview-controls button {
  font-size: 11px;
  padding: 5px 8px;
}
.preview-controls
  input:not([type="range"]):not([type="color"]):not([type="checkbox"]),
.preview-controls select {
  width: 80px;
  font-size: 11px;
  padding: 5px;
  min-height: 28px;
}
.preview-controls label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}
.preview-controls label > input {
  margin: 0;
}
.preview-message {
  padding: 28px;
  max-width: 620px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.preview-message svg {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  color: var(--accent);
}
.preview-message h3 {
  color: var(--text);
  margin-bottom: 7px;
}
.preview-code {
  max-height: 320px;
  overflow: auto;
  counter-reset: line;
  margin: 0;
  padding: 12px 0;
  font-size: 11px;
  background: var(--bg);
}
.code-line {
  display: block;
  padding: 0 16px 0 55px;
  position: relative;
  min-height: 1.5em;
  white-space: pre;
}
.code-line:before {
  counter-increment: line;
  content: counter(line);
  position: absolute;
  left: 0;
  width: 38px;
  text-align: right;
  color: var(--faint);
  user-select: none;
}
.code-line.mark {
  background: var(--accent-dim);
}
.syntax-keyword {
  color: #d8a2e8;
}
.syntax-number {
  color: #dcb67b;
}
.syntax-comment {
  color: var(--faint);
}
.syntax-type {
  color: #86c4c0;
}
.source-toolbar {
  padding: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
}
.source-toolbar input {
  font-size: 11px;
}
.font-sample {
  padding: 24px;
  font-size: 48px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  min-height: 180px;
  max-height: 420px;
  overflow: auto;
  width: 100%;
}
.font-glyphs {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  max-height: 220px;
  overflow: auto;
  gap: 2px;
}
.font-glyphs span {
  text-align: center;
  font-size: 25px;
  padding: 5px;
  border: 1px solid var(--border);
}
.audio-wave {
  width: 100%;
  height: 150px;
}
.audio-panel {
  padding: 25px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.audio-panel audio {
  width: 100%;
}
.native-summary {
  padding: 20px;
}
.native-summary dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12px;
}
.native-summary dt {
  color: var(--muted);
}
.native-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.graph-list {
  max-height: 220px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}
.graph-node {
  padding: 9px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 5px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.upload-drop {
  border: 1px dashed var(--faint);
  border-radius: 9px;
  background: var(--bg);
  text-align: center;
  padding: 29px 20px;
  margin-bottom: 20px;
  transition: 0.15s;
}
.upload-drop.dragover {
  background: var(--accent-dim);
  border-color: var(--accent);
}
.upload-drop svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
  margin-bottom: 8px;
}
.upload-drop p {
  color: var(--muted);
  font-size: 12px;
  margin: 5px 0 13px;
}
.upload-files {
  max-height: 210px;
  overflow: auto;
  margin-bottom: 18px;
}
.upload-file {
  display: grid;
  grid-template-columns: 1fr 70px 32px;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.upload-file input {
  font-size: 11px !important;
  padding: 6px !important;
  min-height: 30px !important;
}
.progress-box {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 7px;
  margin-top: 16px;
  font-size: 12px;
}
progress {
  width: 100%;
  height: 8px;
  accent-color: var(--accent);
  display: block;
  margin: 9px 0;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: var(--raised);
}
progress::-webkit-progress-value {
  background: var(--accent);
}
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 20% 0, var(--accent-dim), transparent 60%),
    var(--bg);
}
.login-card {
  width: 420px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 35px;
}
.login-card .brand {
  padding: 0 0 30px;
}
.login-card h1 {
  font-size: 23px;
}
.login-card form {
  margin-top: 25px;
}
.login-card button.primary {
  width: 100%;
  margin-top: 7px;
}
.login-card footer {
  font-size: 10px;
  color: var(--faint);
  margin-top: 25px;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.collection-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 20px;
}
.collection-card > .icon {
  width: 30px;
  height: 30px;
  color: var(--accent);
  margin-bottom: 18px;
}
.collection-card h3 {
  font-size: 16px;
}
.collection-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 18px;
}
.admin-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 22px;
}
.admin-table {
  overflow-x: auto;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.token-value {
  overflow-wrap: anywhere;
  user-select: all;
  padding: 15px;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 7px;
  font-family: monospace;
}
.toasts {
  position: fixed;
  bottom: 22px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(420px, calc(100vw - 36px));
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 12px;
  animation: toast-in 0.2s ease-out;
}
.toast > svg {
  color: var(--green);
}
.toast.error > svg {
  color: var(--danger);
}
.toast button {
  padding: 3px 7px;
  font-size: 11px;
}
.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface),
    var(--raised),
    var(--surface)
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
  height: 250px;
}
.loading-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.mobile-only {
  display: none;
}
.sidebar-collapsed .app-shell {
  grid-template-columns: 74px minmax(0, 1fr);
}
.sidebar-collapsed .sidebar {
  width: 74px;
}
.sidebar-collapsed .brand {
  padding: 23px 18px 28px;
}
.sidebar-collapsed .brand > div:last-child,
.sidebar-collapsed .nav-item > span,
.sidebar-collapsed .nav-label,
.sidebar-collapsed .sidebar-bottom .version,
.sidebar-collapsed .category-nav,
.sidebar-collapsed .collection-nav {
  display: none;
}
.sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 12px;
}
.sidebar-collapsed .sidebar-bottom {
  padding: 16px;
}
.sidebar-collapsed .sidebar-bottom button span {
  display: none;
}
body.dragging:after {
  content: "Drop files to create an asset";
  position: fixed;
  inset: 12px;
  z-index: 90;
  background: #16181de8;
  border: 2px dashed var(--accent);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 25px;
  color: var(--accent);
  pointer-events: none;
}
.help-keys {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 13px;
  font-size: 13px;
}
.help-keys kbd {
  background: var(--raised);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
}
.spin {
  animation: spin 1s linear infinite;
}
.full-preview {
  width: 100%;
  height: 100%;
  padding: 0;
  max-width: 100vw;
  max-height: 100dvh;
  border-radius: 0;
}
.preview:fullscreen {
  background: var(--bg);
  overflow: auto;
}
.preview:fullscreen .preview-stage {
  height: 75dvh;
}
.dashboard-welcome {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(100deg, var(--surface), var(--accent-dim));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.dashboard-welcome h2 {
  font-size: 19px;
}
.dashboard-welcome p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.dashboard-welcome .welcome-symbol {
  font-size: 55px;
  font-weight: 200;
  line-height: 1;
  color: var(--accent);
  opacity: 0.7;
}
.scroll-table {
  max-height: 340px;
  overflow: auto;
}
.mobile-backdrop {
  display: none;
}
.menu-popover {
  position: absolute;
  right: 24px;
  top: 64px;
  width: 220px;
  padding: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: var(--shadow);
  z-index: 35;
}
.menu-popover button {
  display: flex;
  width: 100%;
  border: 0;
  justify-content: flex-start;
  background: transparent;
  font-size: 12px;
}
.menu-popover .menu-user {
  padding: 10px 9px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 5px;
}
.menu-popover .menu-user p {
  font-size: 11px;
  color: var(--muted);
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes toast-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1600px) {
  .content {
    padding: 34px 46px 60px;
  }
  .asset-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}
@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar {
    width: 200px;
  }
  .brand {
    padding-left: 18px;
  }
  .topbar {
    padding: 0 20px;
  }
  .content {
    padding: 24px 22px 50px;
  }
  .topbar .profile-label {
    display: none;
  }
  .stat-grid {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .filter-panel {
    grid-template-columns: repeat(3, 1fr);
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, 1fr);
  }
  .asset-grid {
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }
}
@media (max-width: 800px) {
  .app-shell,
  .sidebar-collapsed .app-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 68px 1fr;
  }
  .topbar,
  .content {
    grid-column: 1;
  }
  .sidebar,
  .sidebar-collapsed .sidebar {
    width: 230px;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar-open .sidebar {
    transform: translateX(0);
  }
  .sidebar-collapsed .brand > div:last-child,
  .sidebar-collapsed .nav-item > span,
  .sidebar-collapsed .nav-label,
  .sidebar-collapsed .category-nav,
  .sidebar-collapsed .collection-nav {
    display: block;
  }
  .sidebar-collapsed .nav-item {
    justify-content: flex-start;
  }
  .mobile-only {
    display: inline-flex;
  }
  .sidebar-open .mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #0009;
    z-index: 25;
  }
  .topbar {
    padding: 0 16px;
    gap: 9px;
  }
  .topbar .desktop-label,
  .topbar .view-toggle,
  .topbar .profile-label {
    display: none;
  }
  .content {
    padding: 20px 18px 50px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .preview-stage {
    height: 320px;
  }
  .dialog-body {
    padding: 18px;
  }
  .split-dashboard {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .filter-panel {
    grid-template-columns: repeat(2, 1fr);
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-welcome .welcome-symbol {
    display: none;
  }
  .page-title {
    align-items: flex-start;
  }
  .page-title .row {
    flex-wrap: wrap;
  }
  .page-title h1 {
    font-size: 24px;
  }
  .selection-bar {
    flex-wrap: wrap;
  }
  .sidebar-collapsed .sidebar-bottom button span {
    display: block;
  }
  .sidebar-collapsed .sidebar-bottom .version {
    display: block;
  }
}
@media (max-width: 480px) {
  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .asset-grid.comfortable {
    grid-template-columns: 1fr;
  }
  .asset-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .asset-art {
    height: 126px;
  }
  .asset-info {
    padding: 10px;
  }
  .asset-info h3 {
    font-size: 12px;
  }
  .asset-info .footer {
    font-size: 9px;
  }
  .topbar .theme-button {
    display: none;
  }
  .search input {
    font-size: 12px;
    padding-right: 10px !important;
  }
  .search .keycap {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .filter-panel {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
  }
  .toolbar {
    gap: 6px;
  }
  .toolbar select {
    max-width: 150px;
  }
  .stat strong {
    font-size: 23px;
  }
  .dashboard-welcome {
    padding: 18px;
  }
  .dashboard-welcome button {
    font-size: 11px;
  }
  .dialog-head,
  .dialog-foot {
    padding: 14px 18px;
  }
  dialog,
  dialog.wide {
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }
  .preview-controls {
    gap: 7px;
  }
  .pagination {
    gap: 10px;
  }
  .content {
    padding-left: 14px;
    padding-right: 14px;
  }
  .topbar > .primary {
    padding: 8px;
  }
  .collection-grid {
    grid-template-columns: 1fr;
  }
  .page-title > .row {
    gap: 7px;
  }
  .page-title .primary {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 5px;
}
.compare-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 14px;
}
.compare-grid > div {
  min-width: 0;
}
.compare-grid .preview-code {
  border: 1px solid var(--border);
  border-radius: 7px;
  margin-top: 9px;
  max-height: 450px;
}
.preview-stage > img {
  max-height: 100%;
  object-fit: contain;
}
.preview-controls > label > span > input {
  width: 65px !important;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--raised);
  color: var(--text);
  font-size: 12px;
}
.button:hover {
  background: var(--hover);
  text-decoration: none;
}
.preview details summary {
  cursor: pointer;
}
.preview .native-summary {
  align-self: flex-start;
  min-width: 0;
  max-width: 100%;
}
.native-summary .asset-table th,
.native-summary .asset-table td {
  padding: 7px 9px;
  font-size: 10px;
}
.native-summary .tags {
  max-height: 130px;
  overflow: auto;
}
.native-summary .graph-list {
  margin-bottom: 8px;
}
.detail-info [data-browser-capability] {
  font-size: 11px;
}
.profile-button:focus-visible,
.asset-open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
@media (max-width: 600px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .detail-info .detail-specs {
    grid-template-columns: 105px minmax(0, 1fr);
  }
  .sidebar-collapsed .brand-logo {
    flex-shrink: 0;
  }
}
