/* Static panels are complete by default. motion.js owns every moving state. */
#hero-motion,
#hero-motion *,
.mv,
.mv *,
.ed-stack,
.ed-stack * {
  box-sizing: border-box;
}

#hero-motion {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 580px;
  margin: 0;
}

#hero-motion .demo {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
}

#hero-motion .inv-pos {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(300px, 92%);
  margin: 0 6px -12px 0;
}

#hero-motion .inv {
  position: relative;
  overflow: hidden;
  min-height: 254px;
  padding: 12px 14px 82px;
  border: 3px solid #0a0a0a;
  background: #fff;
  color: #0a0a0a;
  box-shadow: 8px 8px 0 #0a0a0a;
  transform: rotate(2deg);
  transform-origin: 70% 100%;
  line-height: 1.4;
}

#hero-motion .inv-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #0a0a0a;
}

#hero-motion .inv-t {
  color: #1b2fe0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#hero-motion .inv-n {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#hero-motion .inv-row {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 -6px;
  padding: 6px;
}

#hero-motion .inv-row .lbl {
  flex: none;
  color: #4a4a4a;
  font-size: 11px;
}

#hero-motion .inv-row b {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-align: right;
}

#hero-motion .inv-row.tot b {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

#hero-motion .inv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 26px;
  margin-top: 8px;
}

#hero-motion .inv-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 2px solid #0a0a0a;
  background: #1b2fe0;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

#hero-motion .inv-chip.x {
  background: #fff;
  color: #0a0a0a;
}

#hero-motion .inv-chip.x::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: #0a7a32;
}

#hero-motion .inv-box {
  position: absolute;
  inset: 0;
  border: 2px solid #1b2fe0;
  pointer-events: none;
}

#hero-motion .inv-scan {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

#hero-motion .inv-scan::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: #1b2fe0;
}

#hero-motion .inv-stamp {
  position: absolute;
  right: 16px;
  bottom: 38px;
  padding: 2px 8px;
  border: 3px solid #1b2fe0;
  background: #fff;
  color: #1b2fe0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: rotate(-8deg);
}

#hero-motion .inv-fict {
  position: absolute;
  left: 14px;
  bottom: 22px;
  color: #4a4a4a;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#hero-motion .demo li .st {
  min-width: 62px;
  text-align: right;
}

#hero-motion .demo-h .live::before {
  animation: none;
  opacity: var(--lv, 1);
}

.mv {
  position: relative;
  isolation: isolate;
  flex-shrink: 0;
  min-width: 0;
  margin: 18px 0;
  overflow: hidden;
  border: 2px solid #0a0a0a;
  background: #f3f2ee;
  color: #0a0a0a;
  font-family: var(--sans);
  line-height: 1.35;
}

.mv-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border-bottom: 2px solid #0a0a0a;
  background: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.mv-h .il {
  flex: none;
  color: #4a4a4a;
  font-weight: 700;
}

.mv-h .lv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #1b2fe0;
}

.mv-h .lv::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: #1b2fe0;
}

.mv .chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 2px 7px;
  border: 2px solid #0a0a0a;
  background: #fff;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .02em;
}

.mv .chip.b {
  border-color: #1b2fe0;
  background: #1b2fe0;
  color: #fff;
}

.mv .chip.g {
  border-color: #0a7a32;
  color: #0a7a32;
}

.mv .chip.s {
  border-color: #1b2fe0;
  color: #1b2fe0;
}

.mv .skel {
  display: block;
  flex-shrink: 0;
  height: 7px;
  margin: 6px 0;
  background: #e6e4dd;
}

.mv .skel.k {
  height: 8px;
  background: #0a0a0a;
}

.mv-mail {
  position: relative;
  height: 192px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.mv-mail li {
  position: absolute;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 8px;
  height: 25%;
  padding: 5px 10px;
  border-bottom: 2px solid #0a0a0a;
  background: #fff;
}

.mv-mail li:nth-child(2) { top: 25%; }
.mv-mail li:nth-child(3) { top: 50%; }
.mv-mail li:nth-child(4) { top: 75%; }

.mv-mail li b {
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-mail li > span {
  grid-column: 1;
  overflow: hidden;
  color: #4a4a4a;
  font-size: 10.5px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-mail li .chip {
  grid-row: 1 / 3;
  grid-column: 2;
  white-space: nowrap;
}

.mv-draft,
.mv-sum {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 10px;
  background: #f3f2ee;
  font-size: 11.5px;
  font-weight: 700;
}

.mv-draft {
  flex-wrap: wrap;
}

.mv-draft .tx {
  flex: 1 1 140px;
}

.mv-draft .ap {
  margin-left: auto;
}

.mv .sq {
  flex: none;
  width: 9px;
  height: 9px;
  background: #1b2fe0;
}

.mv-brief {
  display: grid;
  grid-template-columns: auto 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 136px;
  padding: 12px 10px;
}

.mv-in {
  display: grid;
  gap: 6px;
}

.mv-arrow {
  position: relative;
  height: 3px;
  background: #0a0a0a;
}

.mv-arrow::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -2px;
  border: 5px solid transparent;
  border-right: 0;
  border-left: 7px solid #0a0a0a;
}

.mv-pulse {
  position: absolute;
  top: -3px;
  left: 0;
  width: 100%;
  height: 9px;
  opacity: 0;
}

.mv-pulse::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  background: #1b2fe0;
}

.mv-doc {
  min-width: 0;
  padding: 8px 10px;
  border: 2px solid #0a0a0a;
  background: #fff;
  box-shadow: 4px 4px 0 #0a0a0a;
}

.mv-doc .t {
  margin: 0 0 4px;
  color: #1b2fe0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mv-out {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px 10px;
}

.mv-out .rv {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: #0a7a32;
  font-size: 11px;
  font-weight: 700;
}

.mv-out .rv::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: #0a7a32;
}

.mv-pack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  min-height: 154px;
  padding: 12px 10px;
}

.mv-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 110px;
  padding: 0 2px;
  border-bottom: 2px solid #0a0a0a;
}

.mv-bars i {
  flex: 1;
  background: #1b2fe0;
  transform-origin: bottom;
}

.mv-bars i:nth-child(odd) {
  background: #0a0a0a;
}

.mv-days {
  display: flex;
  gap: 5px;
  padding: 3px 2px 0;
}

.mv-days span {
  flex: 1;
  color: #4a4a4a;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.mv-notes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.mv-notes .ok {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0a7a32;
  font-size: 11px;
  font-weight: 800;
}

.mv-notes .ok::before {
  content: "✓";
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 14px;
  height: 14px;
  background: #0a7a32;
  color: #fff;
  font-size: 10px;
}

.mv-notes .skel { margin: 0; }
.mv-notes .q { margin-top: auto; }

.mv-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mv-rows li {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 59px;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 7px 10px;
  border-bottom: 2px solid #0a0a0a;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.mv-rows li:last-child { border-bottom: 0; }

.mv-rows .who {
  color: #4a4a4a;
  font-size: 10.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.mv-rows .hl {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #f3f2ee;
  opacity: 0;
}

.mv-rows .chip {
  justify-self: end;
  justify-content: center;
  min-width: 44px;
}

.mv-sum { border-top: 2px solid #0a0a0a; }

.mv-agents li {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 5px 8px;
  min-height: 62px;
}

.mv-agents .ic {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 22px;
  height: 22px;
  background: #0a0a0a;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.mv .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 7px;
  border: 2px solid currentColor;
  background: #fff;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.mv .pill .d {
  position: relative;
  flex: none;
  width: 7px;
  height: 7px;
  background: currentColor;
}

.mv .pill.run {
  color: #1b2fe0;
  opacity: 0;
}

.mv .pill.rev { color: #0a7a32; }

.mv .pill-wrap {
  position: relative;
  display: inline-grid;
  grid-column: 2;
  justify-self: start;
}

.mv .pill-wrap > .pill { grid-area: 1 / 1; }

.mv-rep li {
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 4px 8px;
  min-height: 74px;
}

.mv-rep .n {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 20px;
  height: 20px;
  background: #1b2fe0;
  color: #fff;
  font-size: 10.5px;
  font-weight: 900;
}

.mv-rep li:nth-child(n + 2) .n { background: #0a0a0a; }

.mv-rep .p {
  grid-column: 2;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.mv-rep .p small {
  margin-left: 8px;
  color: #4a4a4a;
  font-size: 9.5px;
  font-weight: 600;
}

.ed-stack {
  position: relative;
  width: min(240px, calc(100% - 40px));
  aspect-ratio: 2 / 3;
  margin: 12px 40px 8px 0;
}

.ed-stack .cover {
  position: absolute;
  inset: 0;
  max-width: none;
  border: 3px solid #0a0a0a;
  transform-origin: 50% 100%;
}

.ed-stack .cover:nth-child(1) { z-index: 1; background: #0a0a0a; transform: translate(28px, -12px) rotate(4deg); }
.ed-stack .cover:nth-child(2) { z-index: 5; transform: translate(0, 0); }
.ed-stack .cover:nth-child(3) { z-index: 4; transform: translate(7px, -3px) rotate(1deg); }
.ed-stack .cover:nth-child(4) { z-index: 3; transform: translate(14px, -6px) rotate(2deg); }
.ed-stack .cover:nth-child(5) { z-index: 2; transform: translate(21px, -9px) rotate(3deg); }

.ed-stack .cover.k { background: #0a0a0a; }

.ed-stack .cover.w {
  background: #fff;
  color: #0a0a0a;
}

.ed-stack .cover.w .s { color: #0a0a0a; }

.ed-stack .cover .e {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 2px solid currentColor;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  #hero-motion .inv-pos {
    width: min(300px, 92%);
    margin: 0 8px 24px 0;
  }

  #hero-motion .inv-fict { bottom: 14px; }
  .mv-brief { grid-template-columns: auto 16px minmax(0, 1fr); }
  .ed-stack { width: min(180px, calc(100% - 40px)); }
}

@media (prefers-reduced-motion: reduce) {
  #hero-motion .demo-h .live::before { opacity: 1; }
}

.m-still #hero-motion .demo-h .live::before { opacity: 1; }
