/* ============================================================
   NexaGrid - Assets & Asset Details pages
   Page-specific styles. Complements components.css/layout.css.
   ============================================================ */

/* ---------- Page header (shared) ---------- */
.assets-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.assets-head .dashboard-title { flex: 1; min-width: 260px; }
.assets-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Category tabs ---------- */
.asset-cats .boards-tabs { flex-wrap: wrap; }
.boards-tab .tab-count {
  font-size: 11px;
  font-weight: 700;
  opacity: .75;
  background: rgba(127, 127, 127, .14);
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  margin-left: 6px;
  vertical-align: 1px;
}
.boards-tab.active .tab-count { background: rgba(255, 255, 255, .22); }
.ast-tabs-2 .boards-tab { height: 34px; }

/* ---------- Stats / toolbar row ---------- */
.asset-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.asset-stats { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.asset-stat { display: flex; flex-direction: column; }
.asset-stat b { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.asset-stat span { font-size: 11px; color: var(--muted); font-weight: 500; }
.asset-stat-divider { width: 1px; height: 26px; background: var(--border); }
.chip-count {
  display: none;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.asset-tool-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Grid / List toggle */
.view-toggle {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.view-toggle button {
  width: 36px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.view-toggle button:hover { color: var(--ink); }
.view-toggle button.active {
  background: var(--canvas);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(22, 39, 61, .12);
  border: 1px solid var(--border);
}
.view-toggle button svg { width: 17px; height: 17px; }

/* ---------- Filters button ---------- */
#filters-toggle { display: inline-flex; }

/* ---------- Assets content layout ---------- */
.assets-layout {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.asset-filters-wrap { width: 288px; flex-shrink: 0; }
.asset-filters-wrap.hidden { display: none; }
.assets-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; }

/* ---------- Filters card ---------- */
.ast-filters {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ast-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ast-filters-head h3 { font-size: 15px; font-weight: 700; color: var(--ink); }
.ast-clear {
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 0;
  cursor: pointer;
  border-radius: 6px;
}
.ast-clear:hover { text-decoration: underline; }
.ast-filters .input-flat { width: 100%; }

.ast-f-block { display: flex; flex-direction: column; gap: 10px; }
.ast-f-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
}

/* Filter checkbox rows */
.f-chk {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  margin: 0 -8px;
  border: none;
  background: transparent;
  border-radius: var(--radius-xs);
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: background .15s;
}
.f-chk:hover { background: var(--surface-inset); }
.f-chk input { appearance: none; width: 17px; height: 17px; border: 1.5px solid var(--border); border-radius: 5px; background: var(--canvas); cursor: pointer; flex-shrink: 0; display: inline-grid; place-content: center; margin: 0; transition: border-color .15s, background .15s; }
.f-chk input::before { content: ""; width: 9px; height: 9px; transform: scale(0); transition: transform .12s; border-radius: 2px; background: #fff; }
.f-chk input:checked { background: var(--accent); border-color: var(--accent); }
.f-chk input:checked::before { transform: scale(1); }
.f-chk:focus-within { outline: 2px solid var(--accent-soft); }
.f-chk .f-count { margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 600; }
.f-chk .f-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Compact select (department) */
.f-select {
  position: relative;
}
.f-select > button {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.f-select > button:hover { border-color: var(--accent); }
.f-select > button svg { width: 15px; height: 15px; color: var(--muted); flex-shrink: 0; }
.f-select-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(22, 39, 61, .14);
  padding: 6px;
  z-index: 60;
  opacity: 0;
  transform: translateY(-4px) scale(.98);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity .14s, transform .14s;
}
.f-select-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.f-select-opt {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.f-select-opt:hover { background: var(--accent-soft); }
.f-select-opt.selected { background: var(--accent-bg); color: var(--accent); font-weight: 600; }

/* Filters footer chips (active filter pills) */
.ast-active-filters { display: none; }
.ast-active-filters.show { display: flex; flex-wrap: wrap; gap: 8px; }
.ast-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 8px 0 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}
.ast-filter-pill button {
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: inherit; cursor: pointer; border-radius: var(--radius-round);
}
.ast-filter-pill button:hover { background: rgb(var(--accent-rgb) / .18); }
.ast-filter-pill button svg { width: 12px; height: 12px; }

/* ---------- Group blocks ---------- */
.ast-group { display: flex; flex-direction: column; gap: 12px; }
.ast-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.ast-group-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ast-group-title h3 { font-size: 16px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.ast-group-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}
.ast-group-break { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ast-dept-chip { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-inset); padding: 4px 10px; border-radius: var(--radius-xs); }
.ast-dept-chip b { color: var(--ink); font-weight: 700; }
.ast-viewall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 4px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  white-space: nowrap;
}
.ast-viewall:hover { text-decoration: underline; }
.ast-viewall svg { width: 14px; height: 14px; }

.ast-group-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

/* ---------- Asset card ---------- */
.ast-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ast-card:hover { border-color: var(--border); box-shadow: 0 8px 24px rgba(22, 39, 61, .07); transform: translateY(-1px); }
.ast-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ast-card-id { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ast-card-id .ast-check { appearance: none; width: 17px; height: 17px; border: 1.5px solid var(--border); border-radius: 5px; background: var(--canvas); cursor: pointer; display: inline-grid; place-content: center; margin: 0; flex-shrink: 0; }
.ast-card-id .ast-check:checked { background: var(--accent); border-color: var(--accent); }
.ast-card-id .ast-check:checked::after { content: ""; width: 9px; height: 9px; background: #fff; border-radius: 2px; }
.ast-card-id span { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .3px; }
.ast-card-name { font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 6px; }
.ast-card-serial { font-size: 12px; color: var(--muted); }
.ast-card-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 2px; flex-wrap: wrap; }
.ast-card-meta .m-sep { width: 3px; height: 3px; border-radius: var(--radius-round); background: var(--border-strong, var(--border)); }
.ast-card-meta .ast-value { color: var(--ink); font-weight: 600; }

.ast-note-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.ast-note-row input {
  flex: 1; min-width: 0;
  height: 34px;
  padding: 0 12px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 12.5px;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.ast-note-row input::placeholder { color: var(--muted); }
.ast-note-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ast-note-add {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 9px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, transform .15s;
}
.ast-note-add:hover { background: var(--accent-bg); transform: scale(1.05); }
.ast-note-add:active { transform: scale(.97); }
.ast-note-add svg { width: 15px; height: 15px; }

.ast-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.ast-foot-tag { font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 7px; }
.ast-tag-cat { background: var(--surface-inset); color: var(--muted); }
.ast-tag-dept { background: var(--accent-soft); color: var(--accent); }
.ast-card-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.ast-action-btn {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--muted);
  border-radius: var(--radius-xs); cursor: pointer;
  transition: background .15s, color .15s;
}
.ast-action-btn:hover { background: var(--surface-inset); color: var(--ink); }
.ast-action-btn.fav.on { color: var(--warning); }
.ast-action-btn.fav.on svg { fill: currentColor; }
.ast-action-btn svg { width: 16px; height: 16px; }

/* Status badge - small semantic accent */
.ast-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-inset);
  color: var(--ink);
}
.ast-status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: var(--radius-round);
  background: var(--st, var(--muted));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--st, var(--muted)) 18%, transparent);
}
.ast-status[data-state="in-use"] { --st: var(--accent); background: var(--accent-bg); color: var(--accent); }
.ast-status[data-state="maintenance"] { --st: var(--warning); background: #fdf3e3; color: #b45309; }
.ast-status[data-state="pending"] { --st: #d97706; background: #fdf3e3; color: #b45309; }
.ast-status[data-state="available"] { --st: var(--success); background: #e7f6ef; color: #047857; }
.ast-status[data-state="archived"] { --st: var(--muted); background: var(--surface-inset); color: var(--muted); }
html.dark .ast-status[data-state="maintenance"], html.dark .ast-status[data-state="pending"] { background: #3a2c14; color: #f0b25b; }
html.dark .ast-status[data-state="available"] { background: #123a2c; color: #6ee7b7; }

/* ---------- List view ---------- */
.ast-list-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ast-list-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 12px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.ast-list-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--ink); white-space: nowrap; }
.ast-list-table tr:last-child td { border-bottom: none; }
.ast-list-table tr { transition: background .12s; }
.ast-list-table tbody tr:hover { background: var(--surface-inset); }
.ast-list-table .lt-name { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.ast-list-table .lt-serial { color: var(--muted); font-size: 12px; }
.ast-list-table .lt-cat { color: var(--muted); font-weight: 500; }
.ast-list-table .lt-dept { font-weight: 600; }
.ast-list-table .lt-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.ast-list-actions { display: flex; align-items: center; gap: 2px; }
.ast-table-tray { display: flex; align-items: center; gap: 6px; padding-bottom: 12px; }
.ast-table-tray .f-chk { margin: 0; padding: 0; width: auto; }
.ast-table-tray .f-chk input { display: none; }

/* ---------- Empty state ---------- */
.ast-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 64px 24px;
}
.ast-empty-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-inset);
  border-radius: 18px;
  color: var(--muted);
  margin-bottom: 8px;
}
.ast-empty-icon svg { width: 30px; height: 30px; }
.ast-empty h3 { font-size: 16px; font-weight: 700; color: var(--ink); }
.ast-empty p { font-size: 13px; color: var(--muted); max-width: 320px; line-height: 1.5; }

/* ---------- Asset Details ---------- */
.det-back-row { display: flex; align-items: center; gap: 14px; }
.det-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.det-back-btn:hover { background: var(--surface-inset); border-color: var(--accent); }
.det-back-btn svg { width: 15px; height: 15px; }
.det-title-copy { min-width: 0; }
.det-title-copy .det-id { font-size: 12px; font-weight: 600; color: var(--accent); }
.det-title-copy h1 { font-size: 22px; font-weight: 700; color: var(--ink); margin: 2px 0 0; }
.det-head-actions { margin-left: auto; display: flex; gap: 10px; }

/* Metadata grid */
.det-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.det-meta-item {
  background: var(--surface);
  padding: 16px 18px;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.det-meta-item span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--muted);
}
.det-meta-item b { font-size: 14px; font-weight: 700; color: var(--ink); }
.det-meta-item .ast-status { align-self: flex-start; }

/* Collapsible additional info */
.det-collapse { padding: 0; overflow: hidden; }
.det-collapse-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: none;
  background: transparent;
  padding: 18px 22px;
  cursor: pointer;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.det-collapse-toggle:hover { background: var(--surface-inset); }
.det-collapse-toggle svg { width: 16px; height: 16px; color: var(--muted); transition: transform .2s; }
.det-collapse.open .det-collapse-toggle svg { transform: rotate(180deg); }
.det-coll-body { display: none; padding: 2px 22px 20px; }
.det-collapse.open .det-coll-body { display: block; }
.det-coll-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: var(--surface-inset);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.det-coll-item { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.det-coll-item span { font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.det-coll-item b { font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }

/* Timeline */
.ast-timeline { display: flex; flex-direction: column; }
.ast-tl-item { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.ast-tl-item:last-child { padding-bottom: 0; }
.ast-tl-rail { position: relative; flex-shrink: 0; width: 22px; display: flex; justify-content: center; }
.ast-tl-dot {
  width: 11px; height: 11px;
  border-radius: var(--radius-round);
  background: var(--accent);
  border: 3px solid var(--accent-bg);
  margin-top: 4px;
  flex-shrink: 0;
  z-index: 1;
}
.ast-tl-item .ast-tl-rail::after {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  transform: translateX(-50%);
  background: var(--border);
}
.ast-tl-item:last-child .ast-tl-rail::after { display: none; }
.ast-tl-type { color: var(--accent); }
.ast-tl-dot.warn { background: var(--warning); border-color: #fde8c8; }
.ast-tl-dot.ok { background: var(--success); border-color: #d3f3e4; }
.ast-tl-dot.mut { background: var(--muted); border-color: var(--border); }
.ast-tl-body { min-width: 0; }
.ast-tl-time { font-size: 11px; font-weight: 600; color: var(--muted); }
.ast-tl-title { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.ast-tl-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ast-tl-user { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink); margin-top: 6px; }
.ast-tl-avatar {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  border-radius: var(--radius-round);
  font-size: 10px;
  font-weight: 700;
}

/* Notes */
.ast-note-item { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.ast-note-item:last-child { border-bottom: none; }
.ast-note-top { display: flex; align-items: center; gap: 8px; }
.ast-note-author { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.ast-note-date { font-size: 11.5px; color: var(--muted); }
.ast-note-text { font-size: 12.5px; color: var(--ink); line-height: 1.55; opacity: .92; }
.det-add-note { display: flex; gap: 8px; align-items: center; margin-top: 4px; }

/* Files */
.ast-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: var(--surface-inset);
  border-radius: 11px;
  transition: background .15s;
}
.ast-file:hover { background: var(--accent-soft); }
.ast-file-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.ast-file-icon.pdf { background: #fce4ec; color: #c2185b; }
.ast-file-icon.img { background: #e3f2fd; color: #1e88e5; }
html.dark .ast-file-icon.pdf { background: #3a1830; color: #f48fb1; }
html.dark .ast-file-icon.img { background: #123048; color: #64b5f6; }
.ast-file-icon svg { width: 18px; height: 18px; }
.ast-file-info { flex: 1; min-width: 0; }
.ast-file-info b { display: block; font-size: 13px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ast-file-info span { font-size: 11.5px; color: var(--muted); }
.ast-file-btn {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s, border-color .15s;
  flex-shrink: 0;
}
.ast-file-btn:hover { color: var(--accent); border-color: var(--accent); }
.ast-file-btn svg { width: 15px; height: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .det-meta { grid-template-columns: repeat(3, 1fr); }
  .det-coll-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .assets-layout { flex-direction: column; }
  .asset-filters-wrap { width: 100%; }
  .ast-filters { position: static; }
  .det-meta { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .ast-group-cards { grid-template-columns: 1fr; }
  .det-meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .det-meta { grid-template-columns: 1fr; }
  .det-coll-grid { grid-template-columns: 1fr; }
  .asset-toolbar { flex-direction: column; align-items: stretch; }
  .asset-stats { justify-content: flex-start; }
  .asset-tool-right { justify-content: space-between; }
  .asset-cats .boards-tabs { flex-wrap: wrap; }
  .ast-group-head { flex-direction: column; align-items: flex-start; }
}