/* Regiepult: helle Glasflächen auf einem fliederfarbenen Verlauf. */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  color: #2a2452;
  background: linear-gradient(155deg, #d8d3fb 0%, #e7e3ff 46%, #f7eafc 100%);
  font: 16px/1.45 "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}

h1,
h2,
p {
  margin: 0;
  color: inherit;
}

button,
.print-toggle {
  font: inherit;
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(36px);
}

.orb-pink {
  top: -120px;
  right: -80px;
  width: 460px;
  height: 460px;
  background: #f2a4e2;
  animation: drift 18s ease-in-out infinite;
}

.orb-blue {
  bottom: -140px;
  left: -120px;
  width: 520px;
  height: 520px;
  background: #93b7ff;
  animation: drift 22s ease-in-out infinite reverse;
}

.orb-violet {
  top: 28%;
  left: 38%;
  width: 320px;
  height: 320px;
  background: #c9b8ff;
  opacity: 0.85;
  animation: drift 26s ease-in-out infinite;
}

@keyframes drift {
  50% {
    transform: translate3d(24px, -18px, 0) scale(1.06);
  }
}

.topbar,
.warnings,
main,
.boxes-dialog {
  position: relative;
  z-index: 1;
}

.glass-panel,
.topbar,
.stat,
.print-toggle,
.btn {
  background: linear-gradient(180deg, rgb(255 255 255 / 68%), rgb(255 255 255 / 42%));
  border: 1px solid rgb(255 255 255 / 74%);
  box-shadow:
    0 18px 40px rgb(78 58 158 / 12%),
    inset 0 1px 0 rgb(255 255 255 / 82%);
  backdrop-filter: blur(22px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 16px 16px 0;
  padding: 14px 16px;
  border-radius: 28px;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 1.7rem;
  background: linear-gradient(145deg, #7c6bff 0%, #ff6d9a 100%);
  box-shadow: 0 12px 24px rgb(124 107 255 / 34%);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #746c9c;
}

.topbar h1 {
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.connection {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / 62%);
  color: #5c567f;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.connection::before {
  content: "💤";
}

.connection[data-tone="live"] {
  color: #0f7a45;
  background: rgb(214 255 230 / 80%);
}

.connection[data-tone="live"]::before {
  content: "🟢";
}

.connection[data-tone="demo"] {
  color: #6a3f00;
  background: rgb(255 236 196 / 88%);
}

.connection[data-tone="demo"]::before {
  content: "🧪";
}

.connection[data-tone="down"] {
  color: #9d1834;
  background: rgb(255 220 226 / 90%);
}

.connection[data-tone="down"]::before {
  content: "🔴";
}

.account-chip {
  margin-top: 4px;
  color: #111;
  font-size: 0.92rem;
  font-weight: 650;
}

.viewer-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #111;
  font-size: 0.82rem;
  font-weight: 650;
}

.viewer-link input {
  width: 280px;
  padding: 8px 10px;
  color: #111;
  background: #fff;
  border: 1px solid #111;
  border-radius: 10px;
  font: inherit;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

button,
.print-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: #2f2858;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

button:hover,
.print-toggle:hover {
  transform: translateY(-1px);
  background: rgb(255 255 255 / 78%);
}

button:active {
  transform: translateY(0);
}

button:focus-visible,
.print-toggle:focus-within {
  outline: 2px solid #6d5efc;
  outline-offset: 2px;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.btn-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #7464ff 0%, #ff5d8f 100%);
  box-shadow: 0 12px 24px rgb(255 93 143 / 32%);
}

.btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #6858f4 0%, #ff4b82 100%);
}

.btn-danger {
  color: #9d2340;
  background: rgb(255 214 222 / 72%);
  border-color: rgb(255 150 168 / 70%);
}

#demo::before {
  content: "▶️";
}

#demo[data-running="true"]::before {
  content: "⏹️";
}

#open-boxes::before {
  content: "📦";
}

#open-auctions::before {
  content: "#️⃣";
}

#reset-boxes::before {
  content: "♻️";
}

#open-view::before {
  content: "📺";
}

#close-boxes::before,
#close-auctions::before {
  content: "✕";
}

.print-toggle::before {
  content: "🏷️";
}

.print-toggle input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #7464ff;
}

.warnings {
  margin: 12px 16px 0;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgb(255 228 170 / 88%);
  color: #6a4a08;
  font-weight: 700;
  box-shadow: 0 10px 24px rgb(120 80 10 / 10%);
}

.warnings::before {
  content: "⚠️ ";
}

.warnings[hidden] {
  display: none;
}

main {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px;
}

.glass-panel {
  border-radius: 30px;
}

.auction {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  padding: 22px;
  overflow: auto;
}

.label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #746c9c;
}

.hero {
  padding-bottom: 4px;
}

.auction-number {
  margin-top: 4px;
  font-size: 3rem;
  font-weight: 800;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: #b7b0d4;
}

.auction-number.is-set {
  font-size: clamp(4rem, 7vw, 6rem);
  background-image: linear-gradient(110deg, #5b46f8 0%, #b44bff 52%, #ff4f8b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auction h2 {
  margin-top: 6px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  white-space: pre-line;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat {
  padding: 14px 16px 12px;
  border-radius: 22px;
}

.price,
.timer {
  margin-top: 2px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price {
  background-image: linear-gradient(110deg, #128a57 0%, #2f6dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.timer {
  color: #3d36b5;
}

.bidder {
  margin-top: 4px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 62%);
  color: #4d4674;
  font-size: 0.85rem;
  font-weight: 800;
}

.pill[hidden] {
  display: none;
}

[data-status] {
  cursor: pointer;
}

.pill:focus-visible {
  outline: 2px solid #6d5efc;
  outline-offset: 2px;
}

.live-stats-popup {
  position: fixed;
  z-index: 20;
  width: max-content;
  min-width: 220px;
  max-width: min(280px, calc(100vw - 24px));
  padding: 14px 16px 12px;
  border-radius: 18px;
  color: #241c4a;
  background: #fff;
  border: 1px solid #d9d2f4;
  box-shadow: 0 18px 48px rgb(36 20 80 / 32%);
}

.live-stats-popup[hidden],
.live-stats-list div[hidden],
.live-stats-note[hidden] {
  display: none;
}

.live-stats-title {
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #746c9c;
}

.live-stats-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.live-stats-list div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.live-stats-list dt {
  color: #746c9c;
  font-weight: 700;
}

.live-stats-list dd {
  margin: 0;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.live-stats-list [data-stat-revenue] {
  color: #0f7a45;
}

.live-stats-note {
  margin-top: 10px;
  color: #746c9c;
  font-size: 0.78rem;
  line-height: 1.35;
}

[data-status]::before {
  content: "⏸️";
}

.auction[data-state="live"] [data-status] {
  color: #0f7a45;
  background: rgb(214 255 230 / 88%);
}

.auction[data-state="live"] [data-status]::before {
  content: "🔴";
}

.auction[data-state="sold"] [data-status] {
  color: #8a2458;
  background: rgb(255 220 236 / 90%);
}

.auction[data-state="sold"] [data-status]::before {
  content: "🎉";
}

.pill-sudden {
  color: #fff;
  background: linear-gradient(135deg, #ff5a3c, #ff2f73);
}

.pill-sudden::before {
  content: "⚡";
}

.auction[data-urgent="true"] .stat-time {
  background: linear-gradient(160deg, #ff5d73, #ff335c);
  border-color: transparent;
  animation: pulse 1s ease-in-out infinite;
}

.auction[data-urgent="true"] .stat-time .label,
.auction[data-urgent="true"] .timer {
  color: #fff;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}

@keyframes pulse {
  50% {
    transform: scale(1.02);
  }
}

.auction[data-state="sold"] {
  background:
    linear-gradient(165deg, rgb(255 255 255 / 62%), rgb(255 214 232 / 55%)),
    linear-gradient(180deg, rgb(255 255 255 / 68%), rgb(255 255 255 / 42%));
}

.chat-panel {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  min-width: 0;
  min-height: 0;
}

.chat-column {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 18px 18px 12px;
}

.panel-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
}

.chat {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 12px;
  overflow: auto;
  padding-right: 4px;
}

.chat > p {
  margin-top: 28px;
  color: #7a739e;
  text-align: center;
}

.chat > p::before {
  content: "🌙";
  display: block;
  margin-bottom: 8px;
  font-size: 1.6rem;
}

.chat article {
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgb(255 255 255 / 48%);
  border: 1px solid rgb(255 255 255 / 62%);
}

.chat strong {
  color: #5b46e8;
  font-size: 0.82rem;
}

.chat article p {
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.sold-stack {
  display: flex;
  flex: 0 0 clamp(280px, 36vw, 520px);
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  min-height: 0;
}

.sold-stack.is-empty {
  display: none;
}

.sold-slot {
  display: flex;
  min-width: 0;
  min-height: 0;
}

.sold-slot:empty,
.sold-slot:has(> .sold-callout[hidden]) {
  display: none;
}

.sold-slot-current {
  flex: 1 1 auto;
}

/* Die letzte Kiste bleibt unten, klar kleiner als der laufende Zuschlag darüber. */
.sold-slot-previous {
  flex: 0 0 38%;
  max-height: 38%;
}

.sold-callout {
  container-type: size;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 0;
  padding: 28px 16px;
  overflow: hidden;
  border-radius: 30px;
  text-align: center;
  color: #fff;
  background: linear-gradient(165deg, #7a66ff 0%, #e85aa8 58%, #ff7a6a 100%);
  border: 1px solid rgb(255 255 255 / 40%);
  box-shadow: 0 20px 40px rgb(180 70 150 / 28%);
}

.sold-callout.is-previous {
  gap: 2px;
  padding: 16px 12px;
  border-radius: 24px;
  color: rgb(255 255 255 / 84%);
  background: linear-gradient(
    165deg,
    rgb(122 102 255 / 40%) 0%,
    rgb(232 90 168 / 34%) 58%,
    rgb(255 122 106 / 30%) 100%
  );
  border-color: rgb(255 255 255 / 24%);
  box-shadow: 0 8px 18px rgb(120 80 150 / 8%);
  transition:
    background 560ms cubic-bezier(0.22, 1, 0.36, 1),
    color 560ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 560ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sold-callout[hidden] {
  display: none;
}

.sold-kicker {
  font-size: clamp(0.72rem, 8cqh, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sold-callout-auction,
.sold-callout-box {
  font-weight: 800;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.sold-callout-auction {
  font-size: clamp(2.4rem, 22cqh, 7.5rem);
  letter-spacing: -0.04em;
}

.sold-callout-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 8px;
}

.sold-box-caption {
  font-size: clamp(0.72rem, 7cqh, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
}

.sold-box-number {
  font-size: clamp(3.2rem, 38cqh, 11rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.chat::-webkit-scrollbar,
.auction::-webkit-scrollbar,
.boxes-list::-webkit-scrollbar,
.boxes-popup::-webkit-scrollbar {
  width: 10px;
}

.chat::-webkit-scrollbar-thumb,
.auction::-webkit-scrollbar-thumb,
.boxes-list::-webkit-scrollbar-thumb,
.boxes-popup::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgb(98 78 180 / 28%);
}

dialog.boxes-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: min(82vh, 760px);
  padding: 0;
  overflow: visible;
  border-radius: 28px;
  color: #2a2452;
  background: linear-gradient(180deg, rgb(255 255 255 / 94%), rgb(244 240 255 / 94%));
  border: 1px solid rgb(255 255 255 / 80%);
  box-shadow:
    0 18px 40px rgb(78 58 158 / 16%),
    inset 0 1px 0 rgb(255 255 255 / 82%);
}

.boxes-dialog::backdrop {
  background: rgb(48 32 96 / 38%);
  backdrop-filter: blur(8px);
}

.boxes-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgb(255 255 255 / 60%);
}

.boxes-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
}

.boxes-search {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 18px 0;
  color: #6d6694;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.boxes-search input {
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgb(180 168 230 / 80%);
  border-radius: 14px;
  background: rgb(255 255 255 / 86%);
  color: #2a2452;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

.boxes-search input::placeholder {
  color: #9a93b8;
  font-weight: 650;
}

.boxes-search input:focus-visible {
  outline: 2px solid #6d5efc;
  outline-offset: 2px;
}

.boxes-count {
  padding: 10px 18px 0;
  color: #6d6694;
  font-weight: 700;
}

.boxes-empty {
  margin: 4px 0 8px;
  color: #6d6694;
  font-weight: 700;
}

.boxes-list {
  overflow: auto;
  max-height: calc(min(82vh, 760px) - 196px);
  padding: 12px 18px 18px;
}

.boxes-list article {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr) auto auto auto;
  grid-template-areas: "number who total mark print";
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgb(255 255 255 / 48%);
  border: 1px solid rgb(255 255 255 / 66%);
}

.boxes-who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  grid-area: who;
  min-width: 0;
}

.boxes-who span {
  overflow-wrap: anywhere;
}

.boxes-purchases {
  color: #5b46e8;
  font-weight: 800;
}

.boxes-total {
  grid-area: total;
  color: #241c4a;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.boxes-list strong {
  grid-area: number;
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
  background-image: linear-gradient(110deg, #5b46f8, #ff4f8b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.boxes-list em {
  grid-area: mark;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgb(122 108 255 / 16%);
  color: #5346c9;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.boxes-list article.is-current {
  background: linear-gradient(90deg, rgb(255 244 214 / 90%), rgb(255 255 255 / 62%));
  border-color: rgb(255 206 120 / 80%);
}

.boxes-list.auction-list article {
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "number who box";
}

.auction-box {
  grid-area: box;
  color: #241c4a;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.boxes-list [data-print-box] {
  grid-area: print;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.boxes-list [data-print-box]::before {
  content: "🏷️";
}

.boxes-popup {
  position: fixed;
  z-index: 30;
  width: max-content;
  max-width: min(320px, calc(100vw - 16px));
  max-height: 280px;
  overflow: auto;
  padding: 14px 16px;
  border-radius: 18px;
  color: #241c4a;
  background: #fff;
  border: 1px solid #d9d2f4;
  box-shadow: 0 18px 48px rgb(36 20 80 / 32%);
}

.boxes-popup[hidden] {
  display: none;
}

.boxes-popup-title,
.boxes-popup-gap,
.boxes-popup p {
  margin: 0;
}

.boxes-popup-title {
  margin-bottom: 8px;
  font-weight: 800;
}

.boxes-popup ol {
  margin: 0;
  padding-left: 1.2rem;
}

.boxes-popup li {
  overflow-wrap: anywhere;
}

.boxes-popup li + li {
  margin-top: 4px;
}

.boxes-popup-gap {
  margin-top: 8px;
  font-weight: 800;
}

.boxes-popup-total {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #ece7f8;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.box-label {
  display: none;
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .actions {
    justify-content: flex-start;
  }

  main {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auction,
  .chat-column {
    min-height: 420px;
  }

  .chat-panel {
    flex-direction: column;
  }

  .sold-stack {
    flex: 1 1 auto;
    width: 100%;
    min-height: 280px;
  }

  .sold-stack.is-previous-only {
    min-height: 200px;
  }

  .sold-callout {
    min-height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .auction[data-urgent="true"] .stat-time,
  button,
  .print-toggle,
  .sold-callout.is-previous {
    animation: none;
    transition: none;
  }
}

@media print {
  /* 4×6 Zoll, 102 × 152 mm — gleiches Format wie das BidSora-Verkaufsetikett. */
  @page {
    size: 102mm 152mm;
    margin: 0;
  }

  /*
   * Genau ein Blatt. html/body sind im Bildschirm-Layout height/min-height 100 %.
   * Zusammen mit einem Etikett in exakter Seitenhöhe legt Chrome sonst ein leeres
   * zweites Blatt an (und der Drucker kann es als Rückseite mitnehmen).
   */
  html.is-printing-label,
  body.is-printing-label {
    width: 102mm;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.is-printing-label > :not(.box-label) {
    display: none !important;
  }

  body.is-printing-label {
    display: block;
    color: #000;
    background: #fff;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body.is-printing-label .box-label {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 102mm;
    /* 1px unter der Seite, sonst paginiert Chrome ein leeres Folgeblatt. */
    height: calc(152mm - 1px);
    max-height: calc(152mm - 1px);
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: #000;
    background: #fff;
    text-align: center;
    font-family: Helvetica, Arial, sans-serif;
    break-before: avoid-page;
    break-inside: avoid-page;
    break-after: avoid-page;
    page-break-before: avoid;
    page-break-inside: avoid;
    page-break-after: avoid;
  }

  .box-label-header {
    display: flex;
    flex: 0 0 42pt;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    height: 42pt;
    min-height: 0;
    margin: 0;
    padding: 7pt 14pt;
    background: #000;
    color: #fff;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .box-label-logo {
    display: block;
    width: auto;
    max-width: 110pt;
    height: 28pt;
    object-fit: contain;
    object-position: left center;
  }

  .box-label-datetime {
    width: 88pt;
    margin: 0;
    color: #fff;
    text-align: right;
  }

  .box-label-date,
  .box-label-time {
    margin: 0;
    color: #fff;
    font-size: 9pt;
    font-weight: 400;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
  }

  .box-label-body {
    box-sizing: border-box;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    padding: 6pt 20pt;
  }

  .box-label-streamer,
  .box-label-number,
  .box-label-name {
    width: 100%;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    color: #000;
  }

  .box-label-streamer,
  .box-label-name {
    font-size: 26pt;
    font-weight: 700;
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  .box-label-streamer {
    margin-bottom: 12pt;
  }

  .box-label-number {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 64pt;
    font-weight: 700;
    line-height: 0.75;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    background: none;
  }

  .box-label-name {
    margin-top: 12pt;
  }
}
