/* Directional animation collections keep the library compact while preserving each editable strip. */
.asset-library .asset-direction-bundle {
  position: relative;
  grid-column: span 2;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(45, 91, 65, .2);
  border-radius: 11px;
  background: #f7fbf3;
  box-shadow: 0 1px 2px rgba(28, 59, 42, .05);
}
.asset-library .asset-direction-bundle[data-bundle-status="attention"] {
  border-color: rgba(151, 111, 37, .42);
  background: #fffaf0;
}
.asset-library .asset-bundle-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  min-width: 0;
}
.asset-library .asset-bundle-cover {
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) 28px;
  align-items: center;
  width: 100%;
  min-height: 84px !important;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  color: var(--ink-950, #14211e);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, transform .12s ease;
}
.asset-bundle-cover:hover { background: #edf6e9; }
.asset-bundle-cover:active { transform: scale(.99); }
.asset-bundle-cover:focus-visible { outline: 3px solid rgba(72, 129, 87, .35); outline-offset: -3px; }
.asset-library .asset-bundle-cover img {
  display: block;
  width: 68px !important;
  height: 68px !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  object-fit: contain;
  image-rendering: pixelated;
  background: repeating-conic-gradient(#e4ebe2 0 25%, #f9fbf8 0 50%) 50% / 12px 12px;
  box-shadow: inset 0 0 0 1px rgba(25, 59, 43, .09);
}
.asset-bundle-copy { min-width: 0; padding: 0 10px; }
.asset-bundle-copy strong, .asset-bundle-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-bundle-copy strong { font-size: 13px; font-weight: 700; }
.asset-bundle-copy small { margin-top: 4px; color: var(--muted, #65736d); font-size: 11px; }
.asset-bundle-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}
.asset-bundle-badges em {
  padding: 2px 6px;
  border: 1px solid rgba(53, 91, 70, .14);
  border-radius: 999px;
  color: #557063;
  background: rgba(239, 246, 236, .9);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
}
.asset-bundle-badges em[data-tone="attention"] {
  border-color: rgba(151, 111, 37, .22);
  color: #7d622a;
  background: #fff2ca;
}
.asset-bundle-badges em[data-tone="canonical"] {
  color: #326347;
}
.asset-bundle-toggle { display: grid; place-items: center; width: 26px; height: 26px; color: #46785a; font-size: 19px; transition: transform .18s cubic-bezier(.23, 1, .32, 1); }
.asset-direction-bundle.is-expanded .asset-bundle-toggle { transform: rotate(180deg); }
.asset-library .check-animation-consistency {
  align-self: center;
  min-width: 104px;
  min-height: 44px;
  margin: 8px 8px 8px 0;
  padding: 0 12px;
  border: 1px solid rgba(54, 104, 73, .22);
  border-radius: 8px;
  color: #285b40;
  background: #e8f2e5;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: background .16s cubic-bezier(.23, 1, .32, 1), transform .12s cubic-bezier(.23, 1, .32, 1);
}
.asset-library .check-animation-consistency:hover { background: #dcebd8; }
.asset-library .check-animation-consistency:active { transform: scale(.97); }
.asset-library .check-animation-consistency:focus-visible {
  outline: 3px solid rgba(72, 129, 87, .32);
  outline-offset: 2px;
}
.asset-library .check-animation-consistency[aria-busy="true"] {
  color: #68746d;
  background: #eef0ea;
  cursor: wait;
}
.asset-library .check-animation-consistency:disabled {
  color: #8a918b;
  background: #f0f1ec;
  cursor: not-allowed;
}
.asset-library .asset-bundle-members { display: none !important; grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)); gap: 8px; padding: 0 8px 8px; border-top: 1px solid rgba(45, 91, 65, .12); }
.asset-library .asset-direction-bundle.is-expanded .asset-bundle-members { display: grid !important; padding-top: 8px; }
.asset-library .asset-bundle-member { min-width: 0; padding: 7px; cursor: pointer; }
.asset-library .asset-bundle-member img { padding: 5px; }
.asset-library .asset-bundle-member strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.asset-library .asset-card-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
  gap: 4px;
  padding: 6px;
  border-top: 1px solid rgba(45, 91, 65, .12);
  background: #f2f6ed;
}
.asset-library .asset-card-actions > button {
  position: static;
  top: auto;
  right: auto;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0;
  border-radius: 7px;
  opacity: 1;
}
.asset-library .asset-card-actions > button:focus-visible {
  outline: 3px solid rgba(72, 129, 87, .34);
  outline-offset: 1px;
}
.asset-library .asset-card-actions > button[aria-busy="true"] {
  opacity: .66;
  cursor: wait;
}
.asset-library .pixel-lineage-status {
  display: block;
  width: max-content;
  max-width: calc(100% - 20px);
  margin: -5px 10px 9px;
  padding: 3px 7px;
  overflow: hidden;
  border: 1px solid #d5dfd2;
  border-radius: 999px;
  color: #54705d;
  background: #f0f6ed;
  font-size: 9px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-library .pixel-lineage-status[data-status="partial"] {
  border-color: #e1d1a1;
  color: #80672b;
  background: #fff7dc;
}
.asset-library .pixel-lineage-status[data-status="unknown"] {
  border-color: #ddd9cf;
  color: #756f66;
  background: #f5f3ed;
}
.asset-library .export-godot-asset {
  display: block;
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 0;
  border-top: 1px solid rgba(45, 91, 65, .13);
  border-radius: 0;
  color: #28563f;
  background: linear-gradient(180deg, #edf5e9, #e5f0e2);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .01em;
  cursor: pointer;
}
.asset-library .export-godot-asset:hover,
.asset-library .export-godot-asset:focus-visible {
  color: #163c2b;
  background: #dcebd8;
  outline: 2px solid rgba(72, 129, 87, .32);
  outline-offset: -2px;
}
.asset-library .export-godot-asset[aria-busy="true"] {
  color: #6a765f;
  background: #f1f2e9;
  cursor: wait;
}
.asset-library .asset-bundle-member .export-godot-asset {
  min-height: 32px;
  padding-inline: 5px;
  font-size: 9px;
}
.asset-context-menu { position: fixed; z-index: 10000; min-width: 108px; padding: 4px; border: 1px solid rgba(40, 81, 58, .2); border-radius: 8px; background: #fffef9; box-shadow: 0 10px 25px rgba(20, 46, 33, .18); }
.asset-context-menu button { width: 100%; min-height: 32px; padding: 0 10px; border: 0; border-radius: 5px; color: #244d39; background: transparent; text-align: left; font-size: 12px; cursor: pointer; }
.asset-context-menu button:hover, .asset-context-menu button:focus-visible { background: #eaf4e7; outline: 0; }

/* Saved four-direction animations open as an on-demand, read-only inspection light table. */
.pixel-animation-consistency-dialog {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(1160px, calc(100vw - 32px));
  max-width: none;
  height: min(860px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(46, 82, 61, .2);
  border-radius: 15px;
  color: #1f382d;
  background: #fbfaf3;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .72), 0 24px 70px rgba(17, 39, 28, .28);
}
.pixel-animation-consistency-dialog::backdrop {
  background: rgba(22, 38, 30, .66);
  backdrop-filter: blur(3px);
}
.pixel-animation-consistency-dialog > form {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: 100%;
  margin: 0;
  padding: 0;
}
.animation-consistency-dialog-heading {
  position: static;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: auto;
  height: auto;
  padding: 20px 20px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.animation-consistency-dialog-heading > div { min-width: 0; }
.animation-consistency-dialog-heading span,
.animation-consistency-findings header span,
.animation-consistency-matrix-section > header span {
  display: block;
  margin-bottom: 4px;
  color: #688074;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.2;
  text-transform: uppercase;
}
.animation-consistency-dialog-heading h2 {
  margin: 0;
  color: #183d2d;
  font-size: 24px;
  font-weight: 760;
  letter-spacing: -.025em;
  line-height: 1.2;
  text-wrap: balance;
}
.animation-consistency-dialog-heading button {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgba(49, 84, 64, .13);
  border-radius: 9px;
  color: #315745;
  background: #eef2e9;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.animation-consistency-dialog-heading button:hover { background: #e3ebe0; }
.animation-consistency-dialog-heading button:active,
.pixel-animation-consistency-dialog > form > footer button:active { transform: scale(.97); }
.animation-consistency-dialog-heading button:focus-visible,
.pixel-animation-consistency-dialog > form > footer button:focus-visible,
.animation-consistency-error button:focus-visible {
  outline: 3px solid rgba(72, 129, 87, .32);
  outline-offset: 2px;
}
#pixel-animation-consistency-description {
  margin: 8px 20px 16px;
  color: #5d7167;
  font-size: 13px;
  line-height: 1.5;
  text-wrap: pretty;
}
.pixel-animation-consistency-body {
  min-height: 0;
  padding: 0 20px 20px;
  overflow: auto;
  overscroll-behavior: contain;
}
.pixel-animation-consistency-dialog > form > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 20px;
  border-top: 1px solid rgba(49, 84, 64, .11);
  color: #718078;
  background: #f3f4ec;
  font-size: 11px;
}
.pixel-animation-consistency-dialog > form > footer button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(54, 104, 73, .23);
  border-radius: 8px;
  color: #25573d;
  background: #e6f0e2;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.animation-consistency-report { display: grid; gap: 14px; }
.animation-consistency-hero {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(360px, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(48, 85, 63, .12);
  border-radius: 12px;
  background: #f4f7ee;
}
.animation-consistency-verdict {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.animation-consistency-verdict-mark {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  color: #fff;
  background: #447b58;
  font-size: 26px;
  font-weight: 800;
}
.animation-consistency-report[data-status="warning"] .animation-consistency-verdict-mark { background: #9a762b; }
.animation-consistency-report[data-status="fail"] .animation-consistency-verdict-mark { background: #a14f41; }
.animation-consistency-verdict small,
.animation-consistency-verdict strong,
.animation-consistency-verdict p { display: block; }
.animation-consistency-verdict small {
  color: #6b7d73;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .07em;
}
.animation-consistency-verdict strong {
  margin-top: 2px;
  color: #1c4030;
  font-size: 24px;
  line-height: 1.15;
}
.animation-consistency-verdict p {
  margin: 5px 0 0;
  color: #5d7167;
  font-size: 12px;
  line-height: 1.45;
}
.animation-consistency-hero dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.animation-consistency-hero dl div {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .66);
}
.animation-consistency-hero dt {
  color: #74837b;
  font-size: 9px;
  font-weight: 700;
}
.animation-consistency-hero dd {
  margin: 3px 0 0;
  color: #234b38;
  font-size: 20px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}
.animation-consistency-legacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(137, 103, 37, .18);
  border-radius: 8px;
  color: #765f31;
  background: #fff5d7;
  font-size: 11px;
  line-height: 1.45;
}
.animation-consistency-legacy-note span {
  display: grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  background: #92712f;
  font-weight: 800;
}
.animation-consistency-checks {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.animation-consistency-check {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(48, 85, 63, .12);
  border-radius: 9px;
  background: #f7f8f2;
}
.animation-consistency-check::before {
  display: block;
  width: 20px;
  height: 3px;
  margin-bottom: 9px;
  border-radius: 2px;
  background: #4d855f;
  content: "";
}
.animation-consistency-check[data-status="warning"]::before { background: #a27d2e; }
.animation-consistency-check[data-status="fail"]::before { background: #a45244; }
.animation-consistency-check[data-status="info"]::before { background: #78857e; }
.animation-consistency-check span,
.animation-consistency-check strong,
.animation-consistency-check small { display: block; }
.animation-consistency-check span {
  color: #738179;
  font-size: 9px;
  font-weight: 700;
}
.animation-consistency-check strong {
  margin-top: 3px;
  overflow: hidden;
  color: #244b39;
  font-size: 14px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.animation-consistency-check small {
  margin-top: 4px;
  color: #6b7b72;
  font-size: 9px;
  line-height: 1.35;
}
.animation-consistency-findings,
.animation-consistency-matrix-section {
  padding: 16px;
  border: 1px solid rgba(48, 85, 63, .12);
  border-radius: 11px;
  background: #fffdf7;
}
.animation-consistency-findings header,
.animation-consistency-matrix-section > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}
.animation-consistency-findings h3,
.animation-consistency-matrix-section h3 {
  margin: 0;
  color: #244737;
  font-size: 15px;
  font-weight: 750;
}
.animation-consistency-matrix-section > header p {
  max-width: 380px;
  margin: 0;
  color: #718078;
  font-size: 10px;
  line-height: 1.4;
  text-align: right;
}
.animation-consistency-issues {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.animation-consistency-issues li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 7px;
  color: #5d6f65;
  background: #f3f5ef;
  font-size: 10px;
  line-height: 1.45;
}
.animation-consistency-issues li > span {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: #77847c;
}
.animation-consistency-issues li[data-severity="error"] { color: #7c3f36; background: #fbece7; }
.animation-consistency-issues li[data-severity="error"] > span { background: #a45244; }
.animation-consistency-issues li[data-severity="warning"] { color: #725b2a; background: #fff5d9; }
.animation-consistency-issues li[data-severity="warning"] > span { background: #a27d2e; }
.animation-consistency-issues p { margin: 0; }
.animation-consistency-issues small {
  display: block;
  margin-top: 2px;
  opacity: .75;
}
.animation-consistency-no-issues,
.animation-consistency-more {
  margin: 0;
  color: #66786e;
  font-size: 11px;
}
.animation-consistency-matrix { display: grid; gap: 10px; }
.animation-consistency-direction {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border-radius: 9px;
  background: #f3f6ef;
}
.animation-consistency-direction[data-status="fail"] { background: #fbefea; }
.animation-consistency-direction-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.animation-consistency-direction-glyph {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: #517c60;
  font-size: 13px;
  font-weight: 800;
}
.animation-consistency-direction[data-status="fail"] .animation-consistency-direction-glyph { background: #a45244; }
.animation-consistency-direction-heading b,
.animation-consistency-direction-heading small { display: block; }
.animation-consistency-direction-heading b {
  color: #284d3a;
  font-size: 11px;
}
.animation-consistency-direction-heading small {
  margin-top: 2px;
  color: #718078;
  font-size: 9px;
}
.animation-consistency-direction-strips {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.animation-consistency-strip {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(47, 84, 62, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
}
.animation-consistency-strip > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
.animation-consistency-strip > header b {
  overflow: hidden;
  color: #365545;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.animation-consistency-strip > header small {
  flex: 0 0 auto;
  color: #7b877f;
  font-size: 10px;
}
.animation-consistency-frames {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 7px;
  min-width: 0;
}
.animation-consistency-frame {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(47, 84, 62, .12);
  border-radius: 7px;
  background: #f7f8f3;
}
.animation-consistency-frame[data-status="warning"] { border-color: rgba(158, 117, 35, .45); }
.animation-consistency-frame[data-status="fail"] { border-color: rgba(164, 78, 65, .52); }
.animation-consistency-frame-visual {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: repeating-conic-gradient(#e0e7de 0 25%, #fafbf6 0 50%) 50% / 12px 12px;
  box-shadow: inset 0 0 0 1px rgba(25, 59, 43, .05);
}
.animation-consistency-frame-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.animation-frame-baseline {
  position: absolute;
  z-index: 2;
  top: var(--baseline-y);
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(41, 139, 83, .9);
  box-shadow: 0 0 0 1px rgba(244, 255, 247, .58);
  pointer-events: none;
}
.animation-frame-baseline::after {
  position: absolute;
  top: -3px;
  left: var(--anchor-x);
  width: 7px;
  height: 7px;
  border: 1px solid #f4fff7;
  border-radius: 50%;
  background: #278b53;
  transform: translateX(-50%);
  content: "";
}
.animation-consistency-frame figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
  padding: 5px 6px;
}
.animation-consistency-frame figcaption b {
  color: #365545;
  font-size: 11px;
}
.animation-consistency-frame figcaption small {
  overflow: hidden;
  color: #77847d;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.animation-consistency-frame-missing {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #a45244;
  font-size: 28px;
}
.animation-consistency-direction-empty {
  display: grid;
  place-items: center;
  min-height: 88px;
  border: 1px dashed rgba(164, 78, 65, .32);
  border-radius: 8px;
  color: #8d554b;
  background: rgba(255, 255, 255, .42);
  text-align: center;
}
.animation-consistency-direction-empty span { font-size: 20px; }
.animation-consistency-direction-empty p {
  margin: 3px 0 0;
  font-size: 10px;
}
.animation-consistency-loading,
.animation-consistency-error {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 28px;
  color: #566d61;
  text-align: center;
}
.animation-consistency-loader {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(55, 101, 72, .18);
  border-top-color: #477e5b;
  border-radius: 50%;
  animation: animation-consistency-spin .75s linear infinite;
}
.animation-consistency-loading strong,
.animation-consistency-error strong {
  margin-top: 14px;
  color: #274b39;
  font-size: 15px;
}
.animation-consistency-loading p,
.animation-consistency-error p {
  max-width: 440px;
  margin: 7px 0 0;
  font-size: 11px;
  line-height: 1.5;
}
.animation-consistency-loading-grid {
  display: grid;
  grid-template-columns: repeat(4, 56px);
  gap: 6px;
  margin-top: 24px;
}
.animation-consistency-loading-grid i {
  aspect-ratio: 1;
  border-radius: 6px;
  background: #e8ede4;
  animation: animation-consistency-pulse 1.15s ease-in-out infinite alternate;
}
.animation-consistency-loading-grid i:nth-child(2n) { animation-delay: .12s; }
.animation-consistency-error > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  color: #fff;
  background: #a45244;
  font-size: 22px;
  font-weight: 800;
}
.animation-consistency-error button {
  min-height: 44px;
  margin-top: 18px;
  padding: 0 16px;
  border: 1px solid rgba(54, 104, 73, .23);
  border-radius: 8px;
  color: #25573d;
  background: #e6f0e2;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
@keyframes animation-consistency-spin { to { transform: rotate(360deg); } }
@keyframes animation-consistency-pulse { to { opacity: .42; } }

body.workflow-dark-mode .pixel-animation-consistency-dialog {
  color: #e8efea;
  border-color: rgba(215, 232, 221, .15);
  background: #151d1a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 24px 70px rgba(0, 0, 0, .55);
}
body.workflow-dark-mode .animation-consistency-dialog-heading h2,
body.workflow-dark-mode .animation-consistency-verdict strong,
body.workflow-dark-mode .animation-consistency-findings h3,
body.workflow-dark-mode .animation-consistency-matrix-section h3,
body.workflow-dark-mode .animation-consistency-direction-heading b,
body.workflow-dark-mode .animation-consistency-loading strong,
body.workflow-dark-mode .animation-consistency-error strong { color: #e4eee7; }
body.workflow-dark-mode #pixel-animation-consistency-description,
body.workflow-dark-mode .animation-consistency-verdict p,
body.workflow-dark-mode .animation-consistency-matrix-section > header p { color: #a8b8af; }
body.workflow-dark-mode .animation-consistency-dialog-heading button,
body.workflow-dark-mode .pixel-animation-consistency-dialog > form > footer,
body.workflow-dark-mode .animation-consistency-check,
body.workflow-dark-mode .animation-consistency-direction { background: #1d2823; }
body.workflow-dark-mode .animation-consistency-hero,
body.workflow-dark-mode .animation-consistency-findings,
body.workflow-dark-mode .animation-consistency-matrix-section,
body.workflow-dark-mode .animation-consistency-strip { border-color: rgba(213, 231, 218, .11); background: #19231f; }
body.workflow-dark-mode .animation-consistency-hero dl div,
body.workflow-dark-mode .animation-consistency-frame { background: #202d27; }
body.workflow-dark-mode .animation-consistency-frame-visual {
  background: repeating-conic-gradient(#23322b 0 25%, #17221d 0 50%) 50% / 12px 12px;
}
@media (max-width: 720px) {
  .asset-library .asset-direction-bundle { grid-column: 1 / -1; }
  .asset-library .asset-bundle-members { grid-template-columns: 1fr; }
  .asset-library .asset-bundle-toolbar { grid-template-columns: minmax(0, 1fr); }
  .asset-library .check-animation-consistency { width: calc(100% - 16px); margin: 0 8px 8px; }
  .pixel-animation-consistency-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }
  .animation-consistency-dialog-heading { padding: 16px 14px 0; }
  .animation-consistency-dialog-heading h2 { font-size: 20px; }
  #pixel-animation-consistency-description { margin: 7px 14px 12px; }
  .pixel-animation-consistency-body { padding: 0 14px 16px; }
  .pixel-animation-consistency-dialog > form > footer { padding: 8px 14px; }
  .pixel-animation-consistency-dialog > form > footer span { display: none; }
  .pixel-animation-consistency-dialog > form > footer button { width: 100%; }
  .animation-consistency-hero { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .animation-consistency-hero dl { gap: 5px; }
  .animation-consistency-hero dl div { padding: 8px 6px; }
  .animation-consistency-hero dd { font-size: 17px; }
  .animation-consistency-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .animation-consistency-issues { grid-template-columns: 1fr; }
  .animation-consistency-matrix-section > header { align-items: flex-start; flex-direction: column; gap: 7px; }
  .animation-consistency-matrix-section > header p { text-align: left; }
  .animation-consistency-direction { grid-template-columns: 1fr; }
  .animation-consistency-direction-heading { padding-bottom: 6px; }
  .animation-consistency-frames { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .animation-consistency-loading-grid { grid-template-columns: repeat(4, minmax(36px, 50px)); }
}
@media (prefers-reduced-motion: reduce) {
  .asset-bundle-cover,
  .asset-bundle-toggle,
  .check-animation-consistency { transition: none; }
  .animation-consistency-loader,
  .animation-consistency-loading-grid i { animation: none; }
}
