:root {
  --bg: #0b0d11;
  --panel: #12151b;
  --panel-2: #181c24;
  --panel-3: #20252f;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #e8eaf0;
  --text-2: #9aa3b5;
  --text-3: #626b7c;
  --accent: #f4b840;
  --accent-soft: rgba(244, 184, 64, 0.14);
  --accent-ink: #1a1305;
  --danger: #ff6d6d;
  --cat-bones: #f4b840;
  --cat-deform: #b39dff;
  --cat-attachments: #5cc8ff;
  --cat-color: #ff8bd0;
  --cat-drawOrder: #5ed497;
  --cat-ik: #6f8cff;
  --cat-transform: #4fd1c5;
  --cat-path: #ff9f6e;
  --cat-physics: #f76f9e;
  --cat-slider: #c9d64a;
  --cat-events: #e8eaf0;
  --cat-other: #8b93a5;
  --font-ui: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 8px;
  --radius-sm: 5px;
  --lib-w: 300px;
  --group-head-h: 30px;
  --insp-w: 340px;
  --head-h: 48px;
  --dur-fast: 120ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 13px/1.45 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 5px;
  margin: 0 2px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--panel-2);
  font: 11px/1.6 var(--font-mono);
  text-align: center;
}
[hidden] { display: none !important; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- layout ---------- */
.app {
  position: relative; /* drag handles are positioned against it */
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  overflow: hidden; /* nothing may widen the document: side panels are fixed at narrow widths */
}
.library, .inspector {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--panel);
}
/* Explicit columns: hiding a side panel must not let the others slide into its column. */
.library { grid-column: 1; width: var(--lib-w); border-right: 1px solid var(--line); }
.stage { grid-column: 2; }
.inspector { grid-column: 3; width: var(--insp-w); border-left: 1px solid var(--line); overflow-y: auto; overflow-x: hidden; }

/* Drag handles sit on the app root, aligned to each panel's inner edge via the width variables. */
.resizer {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  cursor: col-resize;
  z-index: 30;
  touch-action: none;
}
.resizer::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 3px;
  width: 2px;
  background: transparent;
  transition: background var(--dur-fast);
}
.resizer:hover::after, .resizer.is-active::after { background: var(--accent); }
.resizer--library { left: calc(var(--lib-w) - 4px); }
.resizer--inspector { right: calc(var(--insp-w) - 4px); }
.app[data-library="closed"] .resizer--library, .app[data-inspector="closed"] .resizer--inspector { display: none; }
body.is-resizing { cursor: col-resize; user-select: none; }
body.is-resizing .viewport__canvas { pointer-events: none; }
.app[data-library="closed"] .library { display: none; }
.app[data-inspector="closed"] .inspector { display: none; }

.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 8, 12, 0.78);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.drop-overlay__card {
  display: grid;
  gap: 7px;
  width: min(460px, 90vw);
  padding: 28px;
  border: 1px dashed var(--accent);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  text-align: center;
}
.drop-overlay__card strong { color: var(--accent); font-size: 17px; }
.drop-overlay__card span { color: var(--text-2); }

/* ---------- library ---------- */
.library__head {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand__mark {
  width: 12px; height: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), #ff7a59);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.brand__title { font-size: 14px; font-weight: 650; letter-spacing: 0.01em; }
.brand__count { margin-left: auto; color: var(--text-3); font-size: 11px; }
.brand__indexing { color: var(--accent); font-size: 10.5px; white-space: nowrap; }
.local-library {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}
.local-library__actions { display: flex; align-items: center; gap: 6px; }
.local-library__actions .btn { padding: 5px 8px; font-size: 11.5px; }
.local-library__actions .btn--accent { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 650; }
.local-library__clear { margin-left: auto; padding: 0; }
.local-library__hint { color: var(--text-3); font-size: 10.5px; }
.local-sources { display: grid; gap: 4px; max-height: 116px; overflow-y: auto; }
.local-source {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  border-radius: var(--radius-sm);
  background: var(--panel-2);
}
.local-source__body { min-width: 0; display: grid; gap: 1px; }
.local-source__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
.local-source__meta { color: var(--text-3); font-size: 10px; }
.local-source__remove { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--text-3); }
.local-source__remove:hover { background: rgba(255, 109, 109, 0.12); color: var(--danger); }
.local-library__foot { display: flex; justify-content: space-between; gap: 8px; min-height: 15px; color: var(--text-3); font-size: 10px; }
.local-library__foot #local-status { color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.local-library__foot a { flex: none; color: inherit; }
.local-library__foot a:hover { color: var(--text); }
.search, .panel__filter {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--text);
  transition: border-color var(--dur-fast);
}
.search:focus, .panel__filter:focus { outline: none; border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.4;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chip__count { opacity: 0.7; margin-left: 4px; }
.search--animation { border-style: dashed; }
.chips--kinds .chip { text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.04em; }
.chips--animations .chip { border-style: dashed; }
.chips--animations .chip.is-active { border-style: solid; }
.chip__dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--tone, var(--text-3)); vertical-align: 1px; }
.chip.is-active .chip__dot { background: var(--accent-ink); opacity: 0.6; }

.library__list { flex: 1; overflow-y: auto; overflow-x: hidden; padding-bottom: 24px; }
.library__empty { padding: 24px 14px; color: var(--text-3); text-align: center; }
/* Folder headers stack: each level sticks just below its parent's header while scrolling. */
.group__name {
  --indent: calc(14px + var(--depth, 0) * 12px);
  position: sticky;
  top: calc(var(--depth, 0) * var(--group-head-h));
  z-index: calc(20 - var(--depth, 0));
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--group-head-h);
  padding: 0 14px 0 var(--indent);
  background: var(--panel);
  box-shadow: 0 1px 0 var(--line);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}
summary.group__name { cursor: pointer; list-style: none; user-select: none; }
summary.group__name::-webkit-details-marker { display: none; }
summary.group__name::before {
  content: "";
  width: 0; height: 0;
  margin-right: 2px;
  border-left: 5px solid var(--text-3);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transform: rotate(90deg);
  transition: transform var(--dur-fast) var(--ease-out);
}
details.group:not([open]) > summary.group__name::before { transform: rotate(0deg); }
summary.group__name:hover { color: var(--text); }
.group__path { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-weight: 500; }
.group__leaf { flex: none; white-space: nowrap; }
.group__count { color: var(--text-3); font-size: 10.5px; font-weight: 400; }
.icon-btn--small { width: 24px; height: 24px; font-size: 13px; }
.group--solo + .group:not(.group--solo) { margin-top: 4px; }
details.group + details.group { margin-top: 4px; }
.group--solo .entry { padding-top: 5px; padding-bottom: 5px; }
.entry {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 10px;
  width: 100%;
  padding: 6px 14px 6px calc(12px + var(--depth, 0) * 12px);
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  text-align: left;
  transition: background var(--dur-fast);
}
.entry:hover { background: var(--panel-2); }
.entry.is-active { background: var(--accent-soft); border-left-color: var(--accent); }
.entry__dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--tone, var(--text-3)); }
.entry__body { display: grid; gap: 1px; min-width: 0; }
.entry__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry__meta { font-size: 10.5px; color: var(--text-3); }
.entry.is-active .entry__meta { color: var(--text-2); }

/* ---------- stage ---------- */
.stage { display: grid; grid-template-rows: var(--head-h) minmax(0, 1fr) auto; min-width: 0; min-height: 0; overflow: hidden; }
.stage__head {
  position: relative;
  z-index: 21; /* above the drawers, so their toggle buttons stay clickable */
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}
.stage__head > * { flex: none; }
.icon-btn {
  width: 30px; height: 30px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-2);
  font-size: 15px;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.icon-btn:hover { background: var(--panel-3); color: var(--text); }
.crumb { display: flex; align-items: baseline; gap: 8px; flex: 1 1 auto; min-width: 0; font-size: 14px; }
.crumb__hint { color: var(--text-3); }
.crumb__group { flex: 0 1 auto; min-width: 3ch; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb__sep { color: var(--text-3); }
.crumb__title { flex: 0 1 auto; min-width: 3ch; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badges { display: flex; gap: 6px; flex-wrap: nowrap; }
.badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--panel-3);
  color: var(--text-2);
  font: 11px/1.5 var(--font-mono);
}
.badge--prefix { background: var(--tone, var(--panel-3)); color: var(--accent-ink); font-weight: 650; }
.badge--button { cursor: pointer; border: 1px solid var(--line-strong); background: transparent; }
.badge--button:hover { border-color: var(--accent); color: var(--accent); }
.stage__status { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.stage__status.is-error { color: var(--danger); }

.viewport { position: relative; overflow: hidden; }
.viewport[data-bg="checker-dark"] {
  background-color: #14171d;
  background-image: conic-gradient(rgba(255, 255, 255, 0.045) 25%, transparent 0 50%, rgba(255, 255, 255, 0.045) 0 75%, transparent 0);
  background-size: 28px 28px;
}
.viewport[data-bg="checker-light"] {
  background-color: #f2f2f2;
  background-image: conic-gradient(#dcdcdc 25%, transparent 0 50%, #dcdcdc 0 75%, transparent 0);
  background-size: 28px 28px;
}
.viewport[data-bg="dark"] { background: #0b0d11; }
.viewport[data-bg="light"] { background: #f6f6f6; }
.viewport[data-bg="green"] { background: #00b140; }
/* Absolute so the canvas's intrinsic size never feeds back into the layout. */
.viewport__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.viewport__canvas:active { cursor: grabbing; }
.viewport__native { position: absolute; pointer-events: none; image-rendering: auto; }
.viewport__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: var(--text-2);
  pointer-events: none;
}
.viewport__empty-title { font-size: 18px; font-weight: 650; color: var(--text); }
.viewport__empty.is-error .viewport__empty-title { color: var(--danger); }
.viewport__error { max-width: 60ch; color: var(--text-2); }
.keys { margin-top: 10px; color: var(--text-3); }
.viewport__loading {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(360px, 80%);
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(11, 13, 17, 0.86);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 10px;
}
.loading__bar { height: 4px; border-radius: 2px; background: var(--panel-3); overflow: hidden; }
.loading__fill { height: 100%; width: 0; background: var(--accent); transition: width 80ms linear; }
.loading__text { font-size: 11.5px; color: var(--text-2); }
.viewport__hud {
  position: absolute;
  right: 10px; bottom: 8px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(11, 13, 17, 0.6);
  color: var(--text-2);
  font-size: 11px;
  pointer-events: none;
}

/* ---------- transport ---------- */
.transport {
  display: grid;
  grid-template-columns: auto auto minmax(60px, 1fr) repeat(3, auto);
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.play {
  position: relative;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast);
}
.play:hover:not(:disabled) { transform: scale(1.06); }
.play:disabled { background: var(--panel-3); cursor: default; }
.play::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-42%, -50%);
  width: 0; height: 0;
  border-left: 12px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}
.play[data-state="playing"]::before {
  transform: translate(-50%, -50%);
  width: 11px; height: 13px;
  border: 0;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
}
.transport__time { display: flex; align-items: baseline; gap: 4px; font-size: 12px; white-space: nowrap; }
.transport__sep { color: var(--text-3); }
.transport__frame { margin-left: 6px; color: var(--text-3); font-size: 11px; }
.scrub { position: relative; padding: 8px 0; }
.scrub__ticks { position: absolute; left: 7px; right: 7px; top: 3px; height: 4px; pointer-events: none; }
.scrub__tick { position: absolute; top: 0; width: 2px; height: 4px; margin-left: -1px; border-radius: 1px; background: var(--cat-events); opacity: 0.7; }
.scrub__range { width: 100%; margin: 0; -webkit-appearance: none; appearance: none; background: transparent; }
.scrub__range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--panel-3); }
.scrub__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  transition: transform var(--dur-fast);
}
.scrub__range:hover::-webkit-slider-thumb { transform: scale(1.15); }
.scrub__range:disabled::-webkit-slider-thumb { background: var(--text-3); box-shadow: none; }
.scrub__range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--panel-3); }
.scrub__range::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--accent); }
.control { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12px; white-space: nowrap; }
.control select, .btn {
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--text);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.control select:hover, .btn:hover { border-color: var(--text-3); background: var(--panel-3); }
.control--check input { accent-color: var(--accent); }
.control--row { justify-content: space-between; }

/* ---------- inspector ---------- */
.panel { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.panel--grow { flex: 1; min-height: 160px; }
.panel__head { display: flex; align-items: baseline; gap: 8px; }
.panel__head h2 { font-size: 11.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.panel__meta { margin-left: auto; font-size: 11px; color: var(--text-3); }
.link { border: 0; background: transparent; color: var(--text-3); font-size: 11px; margin-left: auto; }
.link:hover { color: var(--accent); }
.anim-list { display: grid; gap: 2px; max-height: 240px; overflow-y: auto; overflow-x: hidden; }
.anim {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  padding: 5px 8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  text-align: left;
  transition: background var(--dur-fast);
}
.anim:hover { background: var(--panel-2); }
.anim.is-active { background: var(--accent-soft); color: var(--accent); }
.anim__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anim__duration { font-size: 11px; color: var(--text-3); }
.anim.is-active .anim__duration { color: var(--accent); opacity: 0.8; }
.queue { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-2); }
.queue__label { color: var(--text-3); }
.queue__item { padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.panel__hint { font-size: 11px; color: var(--text-3); }
.panel__hint kbd { font-size: 10px; line-height: 1.4; min-width: 1.3em; padding: 0 3px; }
.btn-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-row .control--row { margin-left: auto; }
.toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.app:not([data-kind="spine"]) .toggles, .app:not([data-kind="spine"]) #skin-row { display: none; }
/* The fps control drives sequences without timing of their own: sprite folders and untimed sheets. */
.app:not([data-kind="sprites"]):not([data-kind="sheet"]) #fps-control, .app[data-timed="true"] #fps-control { display: none; }
.filmstrip { display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 2px 0 6px; }
.thumb {
  flex: none;
  display: grid;
  gap: 2px;
  justify-items: center;
  width: 64px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: #14171d;
  background-image: conic-gradient(rgba(255, 255, 255, 0.05) 25%, transparent 0 50%, rgba(255, 255, 255, 0.05) 0 75%, transparent 0);
  background-size: 12px 12px;
  cursor: pointer;
  transition: border-color var(--dur-fast);
}
.thumb:hover { border-color: var(--text-3); }
.thumb.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft); }
.thumb canvas { width: 56px; height: 56px; image-rendering: pixelated; }
.thumb span { font-size: 10px; color: var(--text-3); }
.toggles label { display: flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 12px; cursor: pointer; }
.toggles input { accent-color: var(--accent); margin: 0; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 14px; font-size: 12px; }
.facts dt { color: var(--text-3); }
.facts dd { min-width: 0; overflow-wrap: anywhere; }
.facts dd small { color: var(--text-3); }
.facts ul { display: grid; gap: 2px; }
.facts ul.is-warning li, .facts .is-warning { color: var(--accent); }
.inputs { display: grid; gap: 6px; }
.inputs__item { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.inputs__item input[type="number"] { width: 90px; padding: 3px 6px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--panel-2); color: var(--text); }
.inputs__item input[type="checkbox"] { accent-color: var(--accent); margin: 0; }
.btn--small { padding: 3px 8px; font-size: 12px; justify-self: start; }
.mix { display: grid; gap: 8px; }
.mix__bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--panel-3); }
.mix__segment { min-width: 2px; }
.mix__legend { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; font-size: 11.5px; color: var(--text-2); }
.mix__legend li { display: flex; align-items: center; gap: 6px; }
.mix__swatch { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.mix__count { margin-left: auto; color: var(--text-3); }
.mix [data-cat] { background: var(--cat-other); }
.mix [data-cat="bones"] { background: var(--cat-bones); }
.mix [data-cat="deform"] { background: var(--cat-deform); }
.mix [data-cat="attachments"] { background: var(--cat-attachments); }
.mix [data-cat="color"] { background: var(--cat-color); }
.mix [data-cat="drawOrder"] { background: var(--cat-drawOrder); }
.mix [data-cat="ik"] { background: var(--cat-ik); }
.mix [data-cat="transform"] { background: var(--cat-transform); }
.mix [data-cat="path"] { background: var(--cat-path); }
.mix [data-cat="physics"] { background: var(--cat-physics); }
.mix [data-cat="slider"] { background: var(--cat-slider); }
.mix [data-cat="events"] { background: var(--cat-events); }
.events { display: grid; gap: 2px; font-size: 11px; color: var(--text-2); max-height: 320px; overflow-y: auto; overflow-x: hidden; }
.events li { display: flex; gap: 8px; padding: 2px 0; border-bottom: 1px dashed var(--line); }
.events__time { color: var(--text-3); flex: none; width: 58px; }
.events__name { color: var(--text); }
.events__values { color: var(--text-3); margin-left: auto; }
.events__empty { color: var(--text-3); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .badges { display: none; } /* the breadcrumb and the status line stay: failures are reported there */
  .stage__status { max-width: 50%; }
  .inspector {
    position: fixed;
    right: 0; top: 0; bottom: 0;
    z-index: 20;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
  }
}
@media (max-width: 820px) {
  .library {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 20;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.5);
  }
  .transport { grid-template-columns: auto auto minmax(0, 1fr); }
  .transport .control { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
