/* Blue Audit mock-ups (audit-demo.js). Self-contained: every class is ad- prefixed and the root resets
   the type styles it could inherit from the host page. Fixed 1120 x 680 stage (1120 x 760 for the
   static homepage "screenshot"), scaled by JS. Great Blue palette only: navy, blues, white. */

.ad-root {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1120 / 680;
  overflow: hidden;
  background: #fafcff;
  color: #0a2540;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  text-indent: 0;
  white-space: normal;
  word-spacing: 0;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}
.ad-root--index { aspect-ratio: 1120 / 760; }
.ad-root *,
.ad-root *::before,
.ad-root *::after { box-sizing: border-box; }

.ad-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1120px;
  height: 680px;
  transform-origin: 0 0;
}
.ad-root--index .ad-stage { height: 760px; }
.ad-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* ---- slim browser bar: caption chip (or window dots) + address ---- */
.ad-bar {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(10, 37, 64, .1);
  background: #e3ecf7;
}
.ad-bar-dots {
  display: flex;
  gap: 6px;
}
.ad-bar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b4c6dc;
}
.ad-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 13px 0 10px;
  border-radius: 13px;
  background: #fff;
  color: #1e4f8f;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(10, 37, 64, .16);
}
.ad-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
}
.ad-chip.ad-swap { animation: ad-swap .45s ease-out; }
@keyframes ad-swap {
  0%   { opacity: 0; transform: translateY(5px); }
  100% { opacity: 1; transform: none; }
}
.ad-url {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  width: 430px;
  height: 24px;
  margin-left: auto;
  padding: 0 12px;
  border-radius: 12px;
  background: #fff;
  color: #44566c;
  font-size: 13px;
  white-space: nowrap;
}
.ad-root--index .ad-url { margin-right: auto; }
.ad-url-lock {
  flex: none;
  width: 11px;
  height: 11px;
  fill: #7b8ea6;
}

/* ---- viewport and the pages that slide through it ---- */
.ad-viewport {
  position: absolute;
  left: 0;
  top: 36px;
  right: 0;
  bottom: 0;
  overflow: hidden;
  background: #fafcff;
}
.ad-view {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fafcff;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1), opacity .5s ease-out;
}
.ad-view.ad-is-left {
  opacity: 0;
  transform: translateX(-1120px);
}
.ad-view.ad-is-right {
  opacity: 0;
  transform: translateX(1120px);
}
.ad-view.ad-is-off { display: none; }
.ad-page {
  position: relative;
  width: 1120px;
  padding: 16px 28px 28px;
  transition: transform 800ms cubic-bezier(.45, .05, .25, 1);
}
.ad-page--area { padding: 36px 0 60px; }
/* bottom edge of the static screenshot: the page runs on under the frame */
.ad-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30px;
  background: linear-gradient(rgba(250, 252, 255, 0), #fafcff);
}

/* ---- shared pieces ---- */
.ad-logo {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #fff;
}
.ad-logo-img {
  display: block;
  width: 46px;
  height: 46px;
}
.ad-logo--sm {
  width: 50px;
  height: 50px;
  border-radius: 12px;
}
.ad-logo--sm .ad-logo-img {
  width: 36px;
  height: 36px;
}
.ad-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .84);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: .14em;
  white-space: nowrap;
}
.ad-kicker-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8ecbf5;
}
.ad-hl { color: #8ecbf5; }
.ad-label {
  color: #3b78c2;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: .14em;
  white-space: nowrap;
}
.ad-label--gap { margin-top: 18px; }
.ad-link {
  display: inline-block;
  border-radius: 4px;
  color: #1e4f8f;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.ad-pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  background: #fff;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .1em;
  white-space: nowrap;
}
.ad-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.ad-pill--risk { color: #c0392b; }
.ad-pill--watch { color: #b45309; }
.ad-pill--clean { color: #0f766e; }
.ad-pill--line { box-shadow: inset 0 0 0 1px rgba(10, 37, 64, .16); }
.ad-chev {
  flex: none;
  width: 7px;
  height: 7px;
  margin: 0 3px 0 2px;
  border: solid #3b78c2;
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
  transition: transform .2s ease-out;
}
.ad-is-open > .ad-rowbar > .ad-chev,
.ad-is-open > .ad-flow-head > .ad-chev,
.ad-is-open > .ad-fold-head > .ad-chev,
.ad-is-open > .ad-sub-head > .ad-chev { transform: translateY(-2px) rotate(45deg); }
.ad-caret {
  flex: none;
  width: 0;
  height: 0;
  border: solid transparent;
  border-width: 5px 4px 0;
  border-top-color: currentColor;
  opacity: .35;
}

/* whatever was just revealed rises in */
@keyframes ad-rise {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
/* click feedback: small things dip, wide rows darken briefly */
.ad-btn.ad-is-pressed,
.ad-all.ad-is-pressed,
.ad-th.ad-is-pressed,
.ad-link.ad-is-pressed,
.ad-back.ad-is-pressed { animation: ad-press .24s ease-out; }
@keyframes ad-press {
  0%   { transform: scale(1); }
  40%  { transform: scale(.95); filter: brightness(.9); }
  100% { transform: scale(1); }
}
.ad-rowbar.ad-is-pressed,
.ad-flow-head.ad-is-pressed,
.ad-fold-head.ad-is-pressed,
.ad-sub-head.ad-is-pressed { animation: ad-tap .3s ease-out; }
@keyframes ad-tap {
  0%   { filter: none; }
  40%  { filter: brightness(.93); }
  100% { filter: none; }
}

/* ---- Page A: audit homepage ---- */
.ad-home {
  display: grid;
  grid-template-columns: 790px 250px;
  gap: 24px;
  align-items: start;
}
.ad-home-main { min-width: 0; }
.ad-mast {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0a2540 0%, #12407a 60%, #1e5aa8 100%);
  color: #fff;
}
.ad-mast-copy { min-width: 0; }
.ad-mast-title {
  margin-top: 4px;
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  line-height: 38px;
  letter-spacing: -.02em;
}
.ad-mast-sub {
  margin-top: 6px;
  color: rgba(255, 255, 255, .86);
  font-size: 13.5px;
  line-height: 19px;
}
.ad-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.ad-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0a2540 0%, #12407a 60%, #1e5aa8 100%);
  color: #fff;
}
.ad-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
}
.ad-card-title {
  min-width: 0;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 19px;
  letter-spacing: -.01em;
}
.ad-card-num {
  margin-top: 2px;
  color: #8ecbf5;
  font-size: 36px;
  font-weight: 800;
  line-height: 40px;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.ad-card-desc {
  flex: 1 1 auto;
  min-height: 51px;
  margin-top: 2px;
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  line-height: 17px;
}
.ad-card-acts {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.ad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.ad-btn--solid {
  background: #fff;
  color: #0a2540;
}
.ad-btn--ghost {
  border: 1px solid rgba(255, 255, 255, .6);
  color: #fff;
}

.ad-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.ad-panel {
  padding: 14px;
  border: 1px solid rgba(10, 37, 64, .1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(10, 37, 64, .05);
}
.ad-warn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #eef4fb;
  font-size: 13px;
  line-height: 18px;
}
.ad-warn-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  background: #1e4f8f;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.ad-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 36px;
  margin-top: 12px;
  padding: 0 8px 0 12px;
  overflow: hidden;
  border-radius: 10px;
  background: #3b82f6;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(59, 130, 246, .3);
}
.ad-all-tag {
  flex: none;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .22);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  line-height: 12px;
}
.ad-inv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.ad-size {
  color: #5b6f86;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
}
.ad-kv {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 6px 0;
  align-items: baseline;
  margin-top: 10px;
}
.ad-kv-k {
  color: #5b6f86;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: .1em;
}
.ad-kv-v {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.ad-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

/* ---- Pages B and C: fixed back bar, masthead band ---- */
.ad-topbar {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(10, 37, 64, .1);
  background: #fff;
}
.ad-back {
  display: inline-flex;
  align-items: center;
  height: 26px;
  margin-left: -8px;
  padding: 0 8px;
  border-radius: 8px;
  color: #1e4f8f;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.ad-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px 20px;
  background: linear-gradient(135deg, #0a2540 0%, #12407a 60%, #1e5aa8 100%);
  color: #fff;
}
.ad-band-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}
.ad-band-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 42px;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.ad-brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
}
.ad-wordmark {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  white-space: nowrap;
}
.ad-sec {
  margin-top: 26px;
  padding: 0 28px;
}
.ad-h2 {
  color: #0f172a;
  font-size: 20px;
  font-weight: 800;
  line-height: 26px;
  letter-spacing: -.02em;
}
.ad-line {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 20px;
}
.ad-line--first { margin-top: 0; }

/* stat tiles */
.ad-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  padding: 0 28px;
}
.ad-tile {
  min-height: 86px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0a2540 0%, #12407a 100%);
  color: #fff;
}
.ad-tile-num {
  color: #8ecbf5;
  font-size: 30px;
  font-weight: 800;
  line-height: 34px;
  letter-spacing: -.02em;
}
.ad-tile-lbl {
  margin-top: 2px;
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  line-height: 17px;
}

/* collapsible rows in the pale panel style */
.ad-group { margin-top: 8px; }
.ad-h2 + .ad-line + .ad-group { margin-top: 12px; }
.ad-rowbar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  background: #eef4fb;
}
.ad-rowbar-name {
  color: #0f172a;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}
.ad-rowbar-name--link {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ad-rowbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.ad-rowbar-note {
  color: #5b6f86;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: .06em;
  white-space: nowrap;
}
.ad-rowbar-count {
  color: #c0392b;
  font-size: 15px;
  font-weight: 800;
}
.ad-rowbar-num {
  width: 76px;
  color: #0a2540;
  font-size: 14.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.ad-group.ad-is-open > .ad-rowbar { background: #e1ecf9; }
.ad-group-body,
.ad-obj-body { display: none; }
.ad-group-body { padding: 2px 0 6px 14px; }
.ad-obj-body { padding: 14px 0 6px; }
.ad-group.ad-is-open > .ad-group-body,
.ad-group.ad-is-open > .ad-obj-body {
  display: block;
  animation: ad-rise .32s ease-out;
}

/* tabs */
.ad-tabs {
  display: flex;
  gap: 24px;
  margin-top: 10px;
  border-bottom: 1px solid rgba(10, 37, 64, .1);
}
.ad-tab {
  display: flex;
  align-items: center;
  height: 36px;
  color: #5b6f86;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  white-space: nowrap;
}
.ad-tab.ad-is-on {
  color: #1e4f8f;
  box-shadow: inset 0 -2px 0 #3b82f6;
}

/* ---- Page B: flow rows and one flow's body ---- */
.ad-flow {
  margin-top: 6px;
  border: 1px solid rgba(10, 37, 64, .1);
  border-radius: 10px;
  background: #fff;
}
.ad-flow.ad-is-open {
  border-color: rgba(59, 130, 246, .55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .1);
}
.ad-flow-head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 12px;
  border-radius: 10px;
  background: #fff;
}
.ad-flow-name {
  color: #0f172a;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}
.ad-tag {
  display: inline-flex;
  flex: none;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  background: #eef4fb;
  color: #1e4f8f;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
}
.ad-tag--active {
  background: #fff;
  color: #3b78c2;
  box-shadow: inset 0 0 0 1px rgba(59, 120, 194, .5);
}
.ad-flow-counts {
  display: flex;
  flex: none;
  gap: 12px;
  margin-left: auto;
}
.ad-n {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
}
.ad-n--high { color: #c0392b; }
.ad-n--medium { color: #b45309; }
.ad-n--low { color: #5b6f86; }
.ad-n--zero { opacity: .45; }

.ad-flow-body {
  display: none;
  padding: 2px 16px 14px;
  border-top: 1px solid rgba(10, 37, 64, .1);
}
.ad-flow.ad-is-open > .ad-flow-body {
  display: block;
  animation: ad-rise .32s ease-out;
}
.ad-field { margin-top: 12px; }
.ad-field-k,
.ad-meta-k {
  color: #3b78c2;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 15px;
  letter-spacing: .14em;
  white-space: nowrap;
}
.ad-field-v {
  max-width: 900px;
  margin-top: 2px;
  color: #0a2540;
  font-size: 14.5px;
  line-height: 22px;
}
.ad-field-note {
  color: #5b6f86;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  line-height: 18px;
  letter-spacing: .04em;
}
.ad-meta {
  display: flex;
  gap: 34px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #eef4fb;
}
.ad-meta-v {
  margin-top: 2px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 19px;
  white-space: nowrap;
}

.ad-fold {
  margin-top: 8px;
  border: 1px solid rgba(10, 37, 64, .1);
  border-radius: 10px;
  background: #fff;
}
.ad-meta + .ad-fold { margin-top: 12px; }
.ad-fold-head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 14.5px;
  font-weight: 700;
}
.ad-fold-body {
  display: none;
  padding: 0 12px 10px 32px;
}
.ad-fold.ad-is-open > .ad-fold-body {
  display: block;
  animation: ad-rise .3s ease-out;
}
.ad-sub + .ad-sub { margin-top: 6px; }
.ad-sub-head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f1f6fc;
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 600;
}
.ad-sub--high .ad-sub-head { box-shadow: inset 4px 0 0 #c0392b; }
.ad-sub--medium .ad-sub-head { box-shadow: inset 4px 0 0 #b45309; }
.ad-sub--low .ad-sub-head { box-shadow: inset 4px 0 0 #94a3b8; }
.ad-sub-body {
  display: none;
  padding: 8px 10px 4px 30px;
}
.ad-sub.ad-is-open > .ad-sub-body {
  display: block;
  animation: ad-rise .3s ease-out;
}
.ad-li {
  position: relative;
  padding-left: 14px;
  color: #0a2540;
  font-size: 14px;
  line-height: 24px;
}
.ad-li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3b82f6;
}
.ad-sub--high .ad-li::before { background: #c0392b; }
.ad-li--code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
}
.ad-flow-foot {
  display: flex;
  gap: 24px;
  margin-top: 14px;
}

/* ---- Page C: object rows and the field table ---- */
.ad-objhead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 0 14px 0 36px;
  color: #5b6f86;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: .14em;
}
.ad-objhead-name { margin-right: auto; }
.ad-objhead-num {
  width: 76px;
  text-align: right;
}
.ad-links {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}
.ad-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.ad-select {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 150px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(10, 37, 64, .2);
  border-radius: 8px;
  background: #fff;
  color: #0a2540;
  font-size: 13px;
}
.ad-select .ad-caret { opacity: .6; }
.ad-filter-count {
  color: #5b6f86;
  font-size: 13px;
}
.ad-table {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(10, 37, 64, .1);
  border-radius: 10px;
  background: #fff;
}
.ad-tbody { position: relative; }
.ad-tr {
  position: relative;
  display: grid;
  grid-template-columns: 148px 176px 80px 136px 92px 98px 116px 58px minmax(0, 1fr);
  align-items: center;
  height: 40px;
  padding: 0 10px;
  border-top: 1px solid rgba(10, 37, 64, .1);
  background: #fff;
  font-size: 13.5px;
}
.ad-tr--head {
  z-index: 1;
  height: 38px;
  border-top: 0;
  background: #eef4fb;
}
.ad-td {
  min-width: 0;
  padding-right: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-tr--head .ad-td {
  overflow: visible;
  padding-right: 0;
}
.ad-th {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  margin-left: -6px;
  padding: 0 6px;
  border-radius: 6px;
  color: #44566c;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
  transition: background-color .2s ease-out, color .2s ease-out;
}
.ad-th.ad-is-sorted {
  background: #cfe2fb;
  color: #1e4f8f;
}
.ad-th.ad-is-sorted .ad-caret { opacity: 1; }
.ad-th.ad-is-asc .ad-caret { transform: rotate(180deg); }
.ad-td--label {
  color: #0f172a;
  font-weight: 600;
}
.ad-td--api {
  color: #44566c;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
}
.ad-td--num { font-variant-numeric: tabular-nums; }
.ad-td--pct {
  display: flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.ad-pct-bar {
  flex: none;
  width: 56px;
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: #dbe6f3;
}
.ad-pct-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: #3b82f6;
}
.ad-td--cls {
  overflow: visible;
  padding-right: 0;
}
.ad-class {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
}
.ad-class--used { color: #0f766e; }
.ad-class--partly { color: #0a2540; }
.ad-class--delete { color: #c0392b; }
.ad-class--unref { color: #b45309; }
.ad-class--sparse {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 9px;
  background: #e6ecf3;
  color: #44566c;
  line-height: 12px;
}

/* ---- downloads tray (scene 'context') ---- */
.ad-tray {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 340px;
  padding: 10px 10px 10px;
  border: 1px solid rgba(10, 37, 64, .1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(10, 37, 64, .24);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease-out, transform .3s ease-out;
}
.ad-tray.ad-is-in {
  opacity: 1;
  transform: none;
}
.ad-tray-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 20px;
  padding: 0 2px;
  color: #3b78c2;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}
.ad-tray-icon {
  flex: none;
  width: 13px;
  height: 13px;
  fill: #3b78c2;
}
.ad-dlchip {
  position: relative;
  display: none;
  align-items: center;
  gap: 10px;
  height: 46px;
  margin-top: 8px;
  padding: 0 12px;
  overflow: hidden;
  border-radius: 10px;
  background: #eef4fb;
}
.ad-dlchip.ad-is-in {
  display: flex;
  animation: ad-rise .3s ease-out;
}
.ad-dl-glyph {
  flex: none;
  width: 16px;
  height: 20px;
  border-radius: 3px;
  background: linear-gradient(#fff, #fff) 3px 5px / 10px 2px no-repeat,
              linear-gradient(#fff, #fff) 3px 9px / 10px 2px no-repeat,
              linear-gradient(#fff, #fff) 3px 13px / 6px 2px no-repeat,
              #3b78c2;
}
.ad-dl-meta {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}
.ad-dl-name {
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-dl-size {
  color: #5b6f86;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  line-height: 15px;
}
.ad-dl-tick {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .2s ease-out, transform .2s ease-out;
}
.ad-dl-tick::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ad-dlchip.ad-is-done .ad-dl-tick {
  opacity: 1;
  transform: none;
}
.ad-dl-prog {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  height: 3px;
  background: #d3e0f0;
}
.ad-dlchip.ad-is-loading .ad-dl-prog { display: block; }
.ad-dl-prog-bar {
  display: block;
  width: 0;
  height: 100%;
  background: #3b82f6;
}
.ad-dlchip.ad-is-loading .ad-dl-prog-bar { animation: ad-load .9s ease-out forwards; }
@keyframes ad-load {
  to { width: 100%; }
}
/* the closing beat: all three files light up, gently */
.ad-tray.ad-is-lit .ad-dlchip { animation: ad-lit 1.5s ease-in-out 2; }
@keyframes ad-lit {
  0%, 100% { background-color: #eef4fb; box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
  50%      { background-color: #d6e6fb; box-shadow: 0 0 0 2px rgba(59, 130, 246, .5); }
}

/* ---- cursor + click ring ---- */
.ad-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 24px;
  margin: -2px 0 0 -2px;
  transition: transform .8s cubic-bezier(.45, .05, .25, 1);
}
.ad-cursor-svg {
  display: block;
  width: 20px;
  height: 24px;
  fill: #111;
  stroke: #fff;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3));
}
.ad-ring {
  position: absolute;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 2px solid #3b82f6;
  border-radius: 50%;
  opacity: 0;
}
.ad-ring.ad-is-on { animation: ad-ring .42s ease-out; }
@keyframes ad-ring {
  from { opacity: .75; transform: scale(.3); }
  to   { opacity: 0; transform: scale(1.15); }
}

/* ---- veil: the loop restart ---- */
.ad-veil {
  position: absolute;
  inset: 0;
  background: #fafcff;
  opacity: 0;
  transition: opacity .4s ease-in-out;
}
.ad-veil.ad-is-on { opacity: 1; }

/* ---- static frames (the screenshot, prefers-reduced-motion): no cursor, no motion ---- */
.ad-is-static .ad-cursor,
.ad-is-static .ad-ring,
.ad-is-static .ad-veil { display: none; }
.ad-is-static *,
.ad-is-static *::before,
.ad-is-static *::after {
  animation: none !important;
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .ad-root *,
  .ad-root *::before,
  .ad-root *::after {
    animation: none !important;
    transition: none !important;
  }
  .ad-cursor,
  .ad-ring { display: none; }
}
