/* Numbers-only video dialog. Existing card and page layout rules stay unchanged. */
.numbers-demo-replay { padding: 0; border: 0; background: none; color: var(--lime, #c8ff38); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.numbers-demo-open { overflow: hidden; }
.numbers-demo-dialog { --demo-sidebar: 240px; width: min(calc(56.25dvh - 22.5px + var(--demo-sidebar)), calc(100vw - 40px)); height: calc(100dvh - 40px); max-width: none; max-height: none; margin: auto; padding: 0; overflow: hidden; color: #f4f6f0; background: #121614; border: 1px solid #4a503e; border-radius: 18px; box-shadow: 0 30px 110px #000b; font-family: var(--tui-font-sans), Arial, sans-serif; }
.numbers-demo-dialog[open] { display: grid; grid-template-columns: minmax(0, 1fr) var(--demo-sidebar); grid-template-rows: minmax(0, 1fr); }
.numbers-demo-dialog:not([open]) { display: none; }
.numbers-demo-dialog::backdrop { background: rgb(4 7 8 / 64%); backdrop-filter: blur(3px); }
.numbers-demo-head { grid-area: 1 / 2; align-self: start; min-width: 0; padding: 22px 18px; display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
.numbers-demo-eyebrow { margin: 0 0 5px; color: #c8ff38; font-size: 9px; font-weight: 750; letter-spacing: .13em; }
.numbers-demo-title { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -.03em; }
.numbers-demo-close { min-height: 44px; border: 1px solid #ffffff38; background: #ffffff0a; color: #f3f5ed; border-radius: 7px; padding: 8px 10px; font: inherit; font-size: 12px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.numbers-demo-close span { margin-left: 7px; font-size: 17px; line-height: 10px; vertical-align: -1px; }
.numbers-demo-film { grid-area: 1 / 1; min-width: 0; min-height: 0; display: flex; justify-content: center; align-items: center; background: #080b09; border-right: 1px solid #ffffff16; }
.numbers-demo-film video { display: block; height: 100%; width: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.numbers-demo-controls { grid-area: 1 / 2; align-self: end; min-width: 0; padding: 18px; background: #171c18; }
.numbers-demo-progress { appearance: none; display: block; width: 100%; height: 4px; margin: 0 0 13px; padding: 0; border: 0; border-radius: 5px; background: linear-gradient(to right, #c8ff38 var(--demo-progress, 0%), #ffffff25 var(--demo-progress, 0%)); cursor: pointer; }
.numbers-demo-progress::-webkit-slider-thumb { appearance: none; width: 10px; height: 10px; border-radius: 50%; background: #c8ff38; border: 0; }
.numbers-demo-progress::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #c8ff38; border: 0; }
.numbers-demo-controls-row, .numbers-demo-left { display: flex; align-items: center; }
.numbers-demo-controls-row { flex-direction: column; align-items: stretch; gap: 12px; }
.numbers-demo-left { justify-content: space-between; gap: 12px; }
.numbers-demo-play { width: 22px; height: 28px; padding: 0; border: 0; background: none; color: #f2f4eb; font-size: 19px; cursor: pointer; }
.numbers-demo-time { font: 10px var(--tui-font-mono), monospace; letter-spacing: .02em; color: #d0d7cc; white-space: nowrap; }
.numbers-demo-sound { display: flex; align-items: center; justify-content: center; min-height: 40px; gap: 6px; border: 1px solid #c8ff3850; background: #c8ff3812; color: #d9ff7b; border-radius: 7px; padding: 7px 9px; font: inherit; font-size: 11px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.numbers-demo-sound svg { height: 15px; width: 15px; }
.numbers-demo-sound[aria-pressed="true"] .numbers-demo-muted-mark { display: none; }
.numbers-demo-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #ffffff10; color: #a9b2a3; font-size: 10px; }
.numbers-demo-bottom span:first-child { display: flex; align-items: center; gap: 5px; }
.numbers-demo-dot { flex: none; display: inline-block; background: #c8ff38; width: 5px; height: 5px; border-radius: 50%; }
.numbers-demo-dialog button:focus-visible, .numbers-demo-progress:focus-visible, .numbers-demo-replay:focus-visible { outline: 2px solid #c8ff38; outline-offset: 3px; }
@media (max-width: 600px), (max-width: 1000px) and (max-height: 500px) {
  .numbers-demo-dialog { position: fixed; inset: 0; width: 100vw; height: 100dvh; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .numbers-demo-dialog[open] { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
  .numbers-demo-dialog::backdrop { background: rgb(4 7 8 / 59%); backdrop-filter: blur(2px); }
  .numbers-demo-head { grid-area: 1 / 1; align-self: stretch; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: max(6px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 6px max(12px, env(safe-area-inset-left)); border-bottom: 1px solid #ffffff16; }
  .numbers-demo-eyebrow { display: none; }
  .numbers-demo-title { font-size: 17px; }
  .numbers-demo-close { flex: none; }
  .numbers-demo-film { grid-area: 2 / 1; border-right: 0; }
  .numbers-demo-controls { grid-area: 3 / 1; align-self: stretch; padding: 10px max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
  .numbers-demo-controls-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 9px; }
  .numbers-demo-progress { margin-bottom: 10px; }
  .numbers-demo-sound { min-height: 32px; }
  .numbers-demo-bottom { display: none; }
}
