/* console-assets.css — generated from console.css for lazy per-view loading. */
/* Assets View */
.assets-shell {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

.assets-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.assets-filter-zone {
  padding: 14px 20px 0;
  background: var(--bg2);
  flex-shrink: 0;
}

.assets-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.assets-filter-row-top {
  margin-bottom: 10px;
}

.assets-filter-row-bottom {
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.assets-input,
.assets-select {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 5px 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text1);
  outline: none;
  height: 30px;
}

.assets-input {
  flex: 1;
  min-width: 140px;
  max-width: 320px;
}

.assets-input::placeholder {
  color: var(--text3);
}

.assets-input:focus,
.assets-select:focus {
  border-color: var(--ac);
}

.assets-select {
  color: var(--text2);
}

.assets-status-tabs,
.assets-type-toggle {
  display: flex;
  gap: 2px;
  background: var(--bg3);
  padding: 3px;
  border-radius: var(--rl);
}

.assets-status-tab,
.assets-type-tab {
  border: none;
  background: transparent;
  color: var(--text2);
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.assets-status-tab span {
  margin-left: 3px;
  font-family: var(--mono);
  font-size: 9px;
  opacity: 0.75;
}

.assets-status-tab.active,
.assets-type-tab.active {
  background: var(--bg1);
  color: var(--text1);
}

.assets-status-tab-failed {
  color: var(--red);
}

.assets-view-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 10px;
  border-left: 1px solid var(--border2);
}

.assets-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px 20px;
}

.assets-type-summary {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.assets-type-card {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--rl);
  background: var(--bg1);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: inherit;
  transition: all 0.12s;
}

.assets-type-card:hover {
  border-color: var(--border2);
}

.assets-type-card.active-type {
  border-color: var(--ac);
  background: var(--a0);
}

.assets-type-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  color: var(--text2);
  font-family: var(--mono);
  font-size: 11px;
}

.assets-type-icon-video {
  color: var(--blue);
  background: rgba(74, 144, 217, 0.12);
}

.assets-type-icon-image {
  color: var(--green);
  background: rgba(29, 186, 122, 0.12);
}

.assets-type-icon-audio {
  color: #e8693a;
  background: rgba(232, 105, 58, 0.12);
}

.assets-type-info {
  flex: 1;
  min-width: 0;
}

.assets-type-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text1);
}

.assets-type-count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
}

.assets-type-bar {
  margin-top: 6px;
  height: 3px;
  border-radius: 2px;
  background: var(--bg5);
}

.assets-type-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--text3);
}

.assets-type-fill-video {
  background: var(--blue);
}

.assets-type-fill-image {
  background: var(--green);
}

.assets-type-fill-audio {
  background: #e8693a;
}

.assets-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.assets-stat-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 10px 14px;
}

.assets-stat-label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 3px;
}

.assets-stat-value {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--text1);
  line-height: 1.1;
}

.assets-stat-value.assets-stat-ok {
  color: var(--green);
}

.assets-stat-value.assets-stat-bad {
  color: var(--red);
}

.assets-stat-sub {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text3);
  margin-top: 2px;
}

.assets-bulk-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg1);
  border: 1px solid var(--a2);
  border-radius: var(--rl);
  margin-bottom: 10px;
}

.assets-bulk-bar span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text2);
}

.assets-bulk-spacer {
  flex: 1;
}

.assets-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.assets-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.12s;
}

.assets-card:hover {
  border-color: var(--border2);
}

.assets-card.selected {
  border-color: var(--ac);
  background: var(--a0);
}

.assets-card-thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg4);
  position: relative;
  overflow: hidden;
}

.assets-card-thumb svg,
.assets-card-thumb img {
  width: 100%;
  height: 100%;
  display: block;
}

.assets-audio-badge {
  position: absolute;
  top: 7px;
  left: 8px;
  font-family: var(--mono);
  font-size: 8px;
  color: #e8693a;
  border: 1px solid rgba(232, 105, 58, 0.22);
  background: rgba(232, 105, 58, 0.1);
  border-radius: 4px;
  padding: 2px 6px;
}

.assets-card-duration {
  position: absolute;
  right: 7px;
  bottom: 6px;
  font-family: var(--mono);
  font-size: 9px;
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.65);
  border-radius: 3px;
  padding: 1px 5px;
}

.assets-card-body {
  padding: 9px 10px 8px;
}

.assets-card-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text1);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assets-card-meta {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text3);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assets-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.assets-card-updated {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text3);
}

.assets-table-wrap {
  margin-bottom: 10px;
}

.assets-table {
  table-layout: fixed;
}

.assets-table tbody tr {
  cursor: pointer;
}

.assets-table tbody tr.selected td {
  background: var(--a0);
}

.assets-table tbody tr:hover td {
  background: var(--bg3);
}

.assets-list-asset {
  display: flex;
  align-items: center;
  gap: 8px;
}

.assets-list-thumb {
  width: 48px;
  height: 30px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg4);
}

.assets-list-thumb svg,
.assets-list-thumb img {
  width: 100%;
  height: 100%;
  display: block;
}

.assets-list-id {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text3);
}

.assets-type-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 8.5px;
  border: 1px solid var(--border2);
  text-transform: lowercase;
}

.assets-type-pill.video {
  color: var(--blue);
  background: rgba(74, 144, 217, 0.12);
  border-color: rgba(74, 144, 217, 0.2);
}

.assets-type-pill.image {
  color: var(--green);
  background: rgba(29, 186, 122, 0.1);
  border-color: rgba(29, 186, 122, 0.2);
}

.assets-type-pill.audio {
  color: #e8693a;
  background: rgba(232, 105, 58, 0.1);
  border-color: rgba(232, 105, 58, 0.2);
}

.assets-pip-dots {
  display: flex;
  align-items: center;
  gap: 3px;
}

.assets-pdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.assets-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.assets-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  border: 1px solid var(--border2);
  margin-bottom: 12px;
  color: var(--text2);
}

.assets-empty-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text1);
  margin-bottom: 5px;
}

.assets-empty-sub {
  font-size: 11px;
  color: var(--text3);
  max-width: 240px;
  line-height: 1.6;
}

.assets-drawer {
  width: 340px;
  flex-shrink: 0;
  background: var(--bg1);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: width 0.2s;
}

.assets-drawer.closed {
  width: 0;
  overflow: hidden;
}

.assets-drawer-head {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.assets-drawer-title {
  flex: 1;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assets-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
}

.assets-drawer-actions {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 6px;
}

.assets-drawer-thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  background: var(--bg4);
  overflow: hidden;
  margin-bottom: 12px;
}

.assets-drawer-thumb svg,
.assets-drawer-thumb img {
  width: 100%;
  height: 100%;
  display: block;
}

#assets-fullview {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  background: var(--bg2);
}

.asset-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.asset-preview-shell-failed {
  background: var(--bg4);
}

.asset-preview-failed {
  display: none;
}

.assets-drawer-waveform {
  height: 52px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--bg0);
  margin-bottom: 8px;
  overflow: hidden;
}

.assets-drawer-waveform svg {
  width: 100%;
  height: 100%;
  display: block;
}

.assets-drawer-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

.assets-drawer-row:last-child {
  border-bottom: none;
}

.assets-drawer-key {
  font-size: 11px;
  color: var(--text2);
}

.assets-drawer-val {
  text-align: right;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text1);
}

.assets-drawer-label {
  margin: 12px 0 6px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
}

.assets-drawer-label:first-child {
  margin-top: 0;
}

.assets-drawer-pipeline {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--bg2);
}

.assets-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.assets-step-node {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 8px;
}

.assets-step-node.done {
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid rgba(29, 186, 122, 0.25);
}

.assets-step-node.active {
  color: #36c8d4;
  background: rgba(54, 200, 212, 0.1);
  border: 1px solid rgba(54, 200, 212, 0.3);
}

.assets-step-node.fail {
  color: var(--red);
  background: var(--red-bg);
  border: 1px solid rgba(217, 84, 84, 0.25);
}

.assets-step-node.wait {
  color: var(--text3);
  background: var(--bg4);
  border: 1px solid var(--border);
}

.assets-step-label {
  font-family: var(--mono);
  font-size: 6.5px;
  color: var(--text4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  max-width: 36px;
}

.assets-step-connector {
  flex: 1;
  height: 1px;
  min-width: 4px;
  background: var(--border2);
}

.assets-step-connector.done {
  background: rgba(29, 186, 122, 0.3);
}

.assets-drawer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.assets-drawer-pill {
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 9px;
  border: 1px solid var(--border2);
  color: var(--text2);
  background: var(--bg3);
}

.assets-drawer-pill.hi {
  color: var(--ac);
  border-color: var(--a2);
  background: var(--a0);
}

.assets-denied {
  background: var(--red-bg);
  border: 1px solid rgba(217, 84, 84, 0.2);
  border-radius: var(--r);
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--red);
  line-height: 1.7;
}

/* ── ASSET HERO ── */
.asset-hero {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg1);
  padding: 24px 24px 0;
  align-items: start;
}

.video-preview {
  background: #000;
  border-radius: var(--rl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  cursor: pointer;
}

.audio-hero-preview {
  cursor: default;
}

.audio-hero-preview .vp-bg svg {
  width: 100%;
  height: 100%;
  opacity: 0.76;
}

.asset-audio-cover {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(46%, 184px);
  min-width: 116px;
  max-width: 184px;
  aspect-ratio: 1 / 1;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.42);
  z-index: 1;
}

.vp-bg {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #080c14 0%, #101828 60%, #080c14 100%);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

.vp-bg .asset-preview-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.vp-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(0,200,180,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 75% 65%, rgba(138,127,232,0.07) 0%, transparent 55%);
}

.vp-timeline {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 36px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  display: flex;
  align-items: flex-end;
  padding: 0 10px 6px;
  gap: 2px;
}

.tl-thumb {
  flex: 1;
  height: 20px;
  background: var(--bg4);
  border-radius: 2px;
  overflow: hidden;
}

.tl-thumb:nth-child(3n) { background: #1a1f28; }
.tl-thumb:nth-child(5n) { background: #161b22; }

.vp-play {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(0,200,180,0.15);
  border: 1.5px solid rgba(0,200,180,0.4);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  position: relative;
  z-index: 1;
}

.vp-play:hover {
  background: rgba(0,200,180,0.25);
  border-color: var(--ac);
  transform: scale(1.06);
}

.vp-wm {
  position: absolute;
  top: 8px; right: 10px;
  font-family: var(--mono);
  font-size: 8px;
  color: rgba(255,255,255,0.14);
  letter-spacing: 0.05em;
  pointer-events: none;
  z-index: 2;
}

.vp-enc-badge {
  position: absolute;
  top: 8px; left: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(138,127,232,0.3);
  border-radius: 4px;
  padding: 2px 7px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--purple);
  letter-spacing: 0.08em;
  z-index: 2;
}

.vp-dur {
  position: absolute;
  bottom: 42px; right: 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.5);
  border-radius: 3px;
  padding: 1px 5px;
  z-index: 2;
}

/* ── ASSET META HEADER ── */
.asset-header {
  padding: 4px 0 20px 24px;
}

.asset-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.asset-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text1);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.asset-id {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.asset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}

/* chip system */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.chip .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chip-ok     { background: var(--green-bg);  color: var(--green);  }
.chip-proc   { background: var(--blue-bg);   color: var(--blue);   }
.chip-warn   { background: var(--amber-bg);  color: var(--amber);  }
.chip-err    { background: var(--red-bg);    color: var(--red);    }
.chip-enc    { background: var(--purple-bg); color: var(--purple); }
.chip-ac     { background: var(--a1);        color: var(--ac);     }
.chip-muted  { background: var(--bg4);       color: var(--text2);  border: 1px solid var(--border); }

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg2);
}

.meta-cell {
  padding: 8px 12px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.meta-cell:nth-child(2n) { border-right: none; }
.meta-cell:nth-last-child(-n+2) { border-bottom: none; }

.meta-k {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 2px;
}

.meta-v {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text1);
  font-weight: 500;
}

/* ── TABS ── */
.tab-row {
  display: flex;
  gap: 0;
  padding: 0 24px;
  background: var(--bg1);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.tab {
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text3);
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.12s;
  white-space: nowrap;
  user-select: none;
  position: relative;
  top: 1px;
}

.tab:hover { color: var(--text2); }

.tab.active {
  color: var(--ac);
  border-bottom-color: var(--ac);
}

/* ── TAB PANELS ── */
.tab-panels {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.tp { display: none; }
.tp.active { display: block; }

.empty-state {
  color: var(--text3);
  font-family: var(--mono);
  font-size: 10px;
  padding: 10px 0;
}

.empty-state.error {
  color: var(--red);
}

/* ── SECTION HEADER ── */
.sh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sh-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
}

/* ── PIPELINE VIZ ── */
.pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 14px 20px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.pip-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.pip-node {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  position: relative;
}

.pip-node.done  {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid rgba(29,186,122,0.25);
}

.pip-node.enc {
  background: var(--purple-bg);
  color: var(--purple);
  border: 1px solid rgba(138,127,232,0.25);
}

.pip-node.live {
  background: var(--a1);
  color: var(--ac);
  border: 1px solid var(--a2);
}

.pip-node.live::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(0,200,180,0.2);
  animation: ping 2s cubic-bezier(0,0,0.2,1) infinite;
}

@keyframes ping {
  0% { opacity: 1; transform: scale(1); }
  75%, 100% { opacity: 0; transform: scale(1.6); }
}

.pip-node.wait {
  background: var(--bg4);
  color: var(--text3);
  border: 1px solid var(--border);
}

.pip-node.fail {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid rgba(217,84,84,0.3);
}

.pip-label {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: center;
}

.pip-connector {
  flex: 1;
  height: 1px;
  min-width: 16px;
  max-width: 32px;
  background: var(--border2);
  margin-bottom: 14px;
  flex-shrink: 0;
}

.pip-connector.done-line { background: rgba(29,186,122,0.35); }

/* ── TABLE ── */
.tbl-wrap {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  overflow: hidden;
  margin-bottom: 14px;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.tbl th {
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-weight: 400;
  background: var(--bg2);
}

.tbl td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text1);
}

.mono-cell {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text2);
}

.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover td { background: var(--bg3); }

/* ── RENDITION CARD ── */
.rend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.rend-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 12px;
  cursor: pointer;
  transition: all 0.12s;
}

.rend-card:hover { border-color: var(--border3); background: var(--bg3); }

.rend-card.active-rend {
  border-color: var(--ac);
  background: var(--a0);
}

.rend-res {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text1);
  margin-bottom: 4px;
}

.rend-card.active-rend .rend-res { color: var(--ac); }

.rend-detail {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text3);
  line-height: 1.6;
}

.rend-bar-wrap {
  height: 3px;
  background: var(--bg5);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.rend-bar {
  height: 100%;
  border-radius: 2px;
  background: var(--ac);
  opacity: 0.5;
}

.rend-card.active-rend .rend-bar { opacity: 1; }

.asset-variant-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(8, 10, 14, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.asset-variant-modal {
  width: min(1100px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--border2);
  background: linear-gradient(180deg, rgba(18, 20, 26, 0.98), rgba(11, 13, 18, 0.98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
  position: relative;
  padding: 18px;
}

.asset-variant-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: var(--bg2);
  color: var(--text2);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.asset-variant-modal-close:hover {
  border-color: var(--border3);
  color: var(--text1);
}

.asset-variant-modal-content {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 16px;
}

.asset-variant-media {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg0);
  min-height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.asset-variant-media-node {
  width: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  border-radius: 8px;
}

.asset-variant-audio-label {
  position: absolute;
  top: 18px;
  left: 18px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
}

.asset-variant-audio-node {
  width: min(480px, 100%);
}

.asset-variant-player-embed {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 10px;
  background: #0a0f1a;
}

.asset-variant-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.asset-variant-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text1);
}

.asset-variant-sub {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
}

.asset-variant-meta-grid {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg1);
  padding: 0 10px;
}

.asset-variant-meta-grid .policy-v {
  text-align: right;
  padding-left: 10px;
}

.asset-variant-url-row {
  margin-top: 12px;
}

.asset-variant-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── LOG VIEWER ── */
.log-viewer {
  background: var(--bg0);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 12px 14px;
  max-height: 200px;
  overflow-y: auto;
  line-height: 1.7;
}

.log-line { display: flex; gap: 10px; }

.log-ts { color: var(--text4); flex-shrink: 0; }
.log-lvl-ok   { color: var(--green);  flex-shrink: 0; width: 36px; }
.log-lvl-err  { color: var(--red);    flex-shrink: 0; width: 36px; }
.log-lvl-info { color: var(--blue);   flex-shrink: 0; width: 36px; }
.log-lvl-warn { color: var(--amber);  flex-shrink: 0; width: 36px; }
.log-msg { color: var(--text2); }

/* ── KEY INFO BLOCK ── */
.key-block {
  background: var(--bg0);
  border: 1px solid var(--border);
  border-left: 2px solid var(--purple);
  border-radius: var(--r);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 10px;
  margin-bottom: 10px;
}

.key-row {
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
  align-items: baseline;
}

.key-row:last-child { margin-bottom: 0; }
.key-k { color: var(--text3); width: 80px; flex-shrink: 0; }
.key-v { color: var(--purple); word-break: break-all; }

/* ── TWO COL ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── POLICY SUMMARY ── */
.policy-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.policy-item:last-child { border-bottom: none; }
.policy-k { color: var(--text2); }
.policy-v { font-family: var(--mono); font-size: 11px; color: var(--text1); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg5); border-radius: 4px; }

/* ── SESSION ROW ── */
.sess-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.sess-row:last-child { border-bottom: none; }

.sess-live {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ttl-wrap { width: 60px; }
.ttl-track { height: 3px; background: var(--bg5); border-radius: 2px; overflow: hidden; }
.ttl-fill { height: 100%; border-radius: 2px; }

/* ── MANIFEST CARD ── */
.manifest-card {
  background: var(--bg1);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 12px 14px;
  margin-bottom: 8px;
}

.audio-player-shell {
  width: 100%;
  min-height: 340px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: #08090b;
}

.audio-player-embed {
  width: 100%;
  min-height: 340px;
  border: none;
  display: block;
  background: #08090b;
}

.audio-cover-preview {
  width: min(220px, 100%);
  aspect-ratio: 1/1;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg0);
}

.audio-cover-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.manifest-type {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}

.manifest-icon {
  width: 22px; height: 22px;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-family: var(--mono);
  font-weight: 600;
}

.url-row {
  display: flex; gap: 6px; align-items: center;
}

.url-input {
  flex: 1;
  background: var(--bg0);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 5px 9px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text2);
  outline: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.url-input:focus { border-color: var(--border3); }

/* ── EVENT TIMELINE ── */
.event-row {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.event-row:last-child { border-bottom: none; }

.ev-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.ev-body { flex: 1; }
.ev-title { font-size: 12px; font-weight: 500; color: var(--text1); }
.ev-meta { font-family: var(--mono); font-size: 9px; color: var(--text3); margin-top: 1px; }
.ev-ts { font-family: var(--mono); font-size: 9px; color: var(--text3); flex-shrink: 0; }

/* Assets pagination + PDF separation */
.assets-type-icon-pdf {
  color: var(--red);
  background: rgba(224, 92, 106, 0.12);
}
.assets-type-fill-pdf {
  background: var(--red);
}
.assets-type-pill.pdf {
  color: var(--red);
  background: rgba(224, 92, 106, 0.1);
  border-color: rgba(224, 92, 106, 0.22);
}
.assets-pdf-badge {
  color: var(--red);
  border-color: rgba(224, 92, 106, 0.26);
  background: rgba(224, 92, 106, 0.11);
}
.assets-load-more {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px 0 4px;
}
.assets-load-state {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
}
.assets-load-more[hidden] {
  display: none !important;
}
.assets-type-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 1180px) {
  .assets-type-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .assets-type-summary {
    grid-template-columns: 1fr;
  }
}

