.scan-live {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.scan-live svg {
  flex: none;
}
.scan-live span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.scan-live b {
  font: 800 1.15rem var(--f-display);
}
.scan .scan-live small,
.scan-live small {
  font-size: .86rem;
  opacity: .9;
  color: inherit;
}
body.live-open {
  overflow: hidden;
}
.live {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  --grab:#2bff88;
  --maybe:#ffc83d;
  --skip:rgba(255,255,255,.45);
}
.live-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.live-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.live-boxes {
  position: absolute;
  inset: 0;
  transition: opacity .5s;
}
.live-boxes.is-stale {
  opacity: .35;
}
.live-boxes.is-gone {
  opacity: 0;
}
.live-box {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 2px solid var(--skip);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  min-width: 28px;
  min-height: 28px;
}
.live-box.v-skip {
  border-style: dashed;
  border-width: 1px;
}
.live-box.v-maybe {
  border: 3px solid var(--maybe);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6);
}
.live-box.v-grab {
  border: 4px solid var(--grab);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .6), 0 0 18px var(--grab);
  animation: live-pop .45s ease-out;
}
@keyframes live-pop {
  from {
    transform: scale(1.12);
    opacity: .3;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .live-box.v-grab {
    animation: none;
  }
  .live-boxes {
    transition: none;
  }
}
.live-tag {
  position: absolute;
  left: -2px;
  bottom: 100%;
  margin-bottom: 3px;
  max-width: min(70vw, 260px);
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  font: 700 .86rem var(--f-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.live-box.v-grab .live-tag {
  background: var(--grab);
  color: #04150b;
  font-size: .95rem;
}
.live-box.v-maybe .live-tag {
  background: var(--maybe);
  color: #1c1300;
}
.live-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: calc(env(safe-area-inset-top) + 10px) 12px 10px;
  background: linear-gradient(rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
}
.live-x {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.live-status {
  flex: 1;
  margin: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  font: 700 1.02rem var(--f-body);
  text-shadow: 0 1px 3px #000;
}
.live-auto {
  flex: none;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font: 600 .9rem var(--f-body);
  cursor: pointer;
}
.live-auto[aria-pressed=true] {
  background: #fff;
  color: #000;
}
.live-toggles {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.live-mark {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font: 600 .9rem var(--f-body);
  cursor: pointer;
}
.live-mark[aria-pressed=true] {
  background: var(--maybe);
  border-color: var(--maybe);
  color: #1c1300;
}
.live-codes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.live-codes .live-box {
  pointer-events: auto;
  border-radius: 4px;
}
.live-reticle {
  display: none;
  position: absolute;
  left: 15%;
  right: 15%;
  top: 28%;
  bottom: 28%;
  border: 2px dashed rgba(255, 255, 255, .8);
  border-radius: 50%;
  pointer-events: none;
}
.live.is-mark .live-reticle {
  display: block;
}
.live.is-mark .live-boxes {
  display: none;
}
.live-chip small {
  display: block;
  font-weight: 400;
  opacity: .85;
}
.live-chip.is-mark {
  border-left: 6px solid var(--maybe);
}
.live-chip.is-mark.v-grab {
  border-left-color: var(--grab);
}
.live-chip.is-mark.v-skip {
  border-left-color: var(--skip);
}
.live-chips {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 12px;
}
.live-chip {
  align-self: flex-start;
  max-width: 100%;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font: 600 .9rem var(--f-body);
  text-align: left;
  cursor: pointer;
}
.live-chip.is-note {
  cursor: default;
  font-weight: 500;
}
.live-chip.is-grab {
  background: var(--grab);
  color: #04150b;
}
.live-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 12px calc(env(safe-area-inset-bottom) + 14px);
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .75));
}
.live-trip {
  flex: 1 1 0;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 14px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font: 600 .95rem var(--f-body);
  cursor: pointer;
}
.live-trip small {
  font-size: .85rem;
  color: var(--grab);
}
.live-go {
  flex: 2 1 0;
  min-height: 64px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font: 800 1.2rem var(--f-display);
  cursor: pointer;
}
.live.is-busy .live-go {
  opacity: .7;
}
.live-cost {
  position: absolute;
  right: 14px;
  bottom: calc(env(safe-area-inset-bottom) + 84px);
  font: 500 .78rem var(--f-num);
  color: rgba(255, 255, 255, .75);
  text-shadow: 0 1px 2px #000;
}
.live-speed {
  position: absolute;
  left: 8px;
  bottom: calc(env(safe-area-inset-bottom) + 78px);
  padding: 6px;
  border: 0;
  background: none;
  font: 500 .78rem var(--f-num);
  color: rgba(255, 255, 255, .75);
  text-shadow: 0 1px 2px #000;
  cursor: pointer;
}
.live-speed[hidden] {
  display: none;
}
.live-speed-sheet table {
  width: 100%;
  border-collapse: collapse;
  font: 500 .95rem var(--f-num);
}
.live-speed-sheet th,
.live-speed-sheet td {
  padding: 8px 4px;
  border-top: 1px solid var(--line);
  text-align: right;
  vertical-align: top;
}
.live-speed-sheet th[scope=row] {
  text-align: left;
  font: 700 .95rem var(--f-body);
}
.live-speed-sheet thead th {
  border-top: 0;
  font: 600 .8rem var(--f-body);
  color: var(--muted);
}
.live-speed-sheet small {
  display: block;
  font: 400 .78rem var(--f-body);
  color: var(--muted);
}
.live-speed-sheet table + table {
  margin-top: 14px;
}
.live-sheet {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  background: rgba(0, 0, 0, .45);
}
.live-sheet[hidden] {
  display: none;
}
.live-card,
.live-list {
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  margin: 0;
  padding: 16px 16px calc(env(safe-area-inset-bottom) + 16px);
  border-radius: 18px 18px 0 0;
  background: var(--card);
  color: var(--ink);
  border-top: 6px solid var(--v,var(--line));
}
.live-card.v-grab,
.live-row.v-grab {
  --v:var(--good);
}
.live-card.v-maybe,
.live-row.v-maybe {
  --v:var(--warn);
}
.live-card.v-skip,
.live-row.v-skip {
  --v:var(--line);
}
.live-card-img {
  display: block;
  max-width: 100%;
  max-height: 34vh;
  margin: 0 auto 10px;
  border-radius: 10px;
}
.live-card-verdict {
  margin: 0;
  font: 800 .85rem var(--f-body);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--v,var(--muted));
}
.live-card h3 {
  margin: 2px 0 4px;
  font: 800 1.3rem var(--f-display);
}
.live-card-price {
  margin: 0 0 6px;
  font: 700 1.25rem var(--f-num);
}
.live-card-price small {
  display: block;
  font: 400 .82rem var(--f-body);
  color: var(--muted);
}
.live-card-why {
  margin: 0 0 12px;
  color: var(--muted);
}
.live-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.live-card-actions button,
.live-new {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  font: 700 1rem var(--f-body);
  cursor: pointer;
}
.live-card-actions .primary {
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
}
.live-card-actions button:disabled {
  opacity: .6;
  cursor: default;
}
.live-list header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.live-list h3 {
  flex: 1;
  margin: 0 0 10px;
  font: 800 1.2rem var(--f-display);
}
.live-list h3 small {
  display: block;
  font: 400 .88rem var(--f-body);
  color: var(--muted);
}
.live-list header button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
}
.live-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.live-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--v,var(--line));
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.live-row img,
.live-row-noimg {
  flex: none;
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
}
.live-row-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.live-row-text b {
  overflow-wrap: anywhere;
}
.live-row-text small {
  color: var(--muted);
}
.live-empty,
.live-list-note {
  color: var(--muted);
  font-size: .9rem;
}
.live-new {
  width: 100%;
  margin-top: 6px;
}
