/* Team board: what a TV shows. One 16:9 surface whose type scales with its width, so the same markup fills a
   75-inch TV and the small preview in the editor. Used by /tv and by the board editor inside the app. */
.bd { container-type: inline-size; aspect-ratio: 16 / 9; width: 100%; background: #0b1030; color: #fff; overflow: hidden; font-family: Archivo, system-ui, sans-serif; border-radius: var(--bd-radius, 0); }
.bd-in { font-size: 1.25cqw; height: 100%; box-sizing: border-box; padding: 2.4em 3em 2em; display: flex; flex-direction: column; gap: 1.4em; }
.bd-head { display: flex; align-items: center; gap: .9em; flex: none; }
.bd-head img { width: 2.4em; height: 2.4em; object-fit: contain; border-radius: .4em; background: #fff; }
.bd-head b { font-size: 1.55em; font-weight: 750; letter-spacing: -.01em; }
.bd-head span { margin-left: auto; font-size: 1.3em; color: #c4cdf0; font-variant-numeric: tabular-nums; }
.bd-grid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); grid-auto-flow: dense; gap: 1.4em; }
.bd-tile { position: relative; background: #161c45; border: 1px solid #2a3266; border-radius: 1em; padding: calc(1.1em * var(--k, 1)) 1.4em; display: flex; flex-direction: column; gap: .25em; min-width: 0; min-height: 0; overflow: hidden; }
.bd-tile.s2 { grid-column: span 2; grid-row: span 2; padding: calc(1.6em * var(--k, 1)) 1.9em; gap: .5em; }
.bd-label { display: flex; align-items: center; gap: .6em; font-size: calc(1.25em * var(--k, 1)); font-weight: 650; color: #c4cdf0; }
.bd-tile.s2 .bd-label { font-size: calc(1.3em * var(--k, 1)); }
.bd-pill { margin-left: auto; font-size: .85em; font-weight: 700; color: #0b1030; background: #7fe0a3; padding: .15em .7em; border-radius: 99em; white-space: nowrap; }
.bd-pill.warn { background: #ffc46b; }
.bd-val { display: flex; align-items: baseline; gap: .35em; flex-wrap: wrap; font-size: calc(3.5em * var(--k, 1)); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bd-tile.s2 .bd-val { font-size: calc(7.4em * var(--k, 1)); line-height: 1; letter-spacing: -.04em; }
.bd-val small { font-size: .32em; font-weight: 500; letter-spacing: 0; color: #c4cdf0; }
.bd-tile:not(.s2) .bd-val small { display: none; }
.bd-val.good { color: #7fe0a3; } .bd-val.warn { color: #ffc46b; }
.bd-bar { height: 1.1em; background: #2a3266; border-radius: .55em; margin-top: .3em; flex: none; } .bd-bar i { display: block; height: 100%; background: #4f9bf5; border-radius: .55em; }
.bd-tile:not(.s2) .bd-bar { display: none; }
.bd-sub { margin-top: auto; font-size: calc(1.15em * var(--k, 1)); color: #c4cdf0; line-height: 1.25; }
.bd-tile.s2 .bd-sub { font-size: calc(1.35em * var(--k, 1)); color: #fff; }
.bd-msg { margin: auto 0; font-size: calc(1.5em * var(--k, 1)); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.bd-tile.s2 .bd-msg { font-size: calc(2.6em * var(--k, 1)); letter-spacing: -.01em; }
.bd-foot { flex: none; display: flex; gap: 1em; font-size: .95em; color: #c4cdf0; } .bd-foot span:last-child { margin-left: auto; }
.bd-wait { margin: auto; text-align: center; font-size: 1.6em; color: #c4cdf0; }

/* the /tv page */
html.tv, html.tv body { margin: 0; height: 100%; background: #0b1030; overflow: hidden; }
html.tv body { display: grid; place-items: center; cursor: none; }
.tv-stage { width: min(100vw, 177.78vh); }
.tv-pair { color: #fff; font-family: Archivo, system-ui, sans-serif; text-align: center; padding: 4vh 6vw; cursor: auto; }
.tv-pair h1 { font-size: clamp(22px, 3.2vw, 56px); margin: 0 0 .5em; letter-spacing: -.02em; }
.tv-pair p { font-size: clamp(15px, 1.7vw, 30px); color: #c4cdf0; margin: .3em auto; max-width: 30em; line-height: 1.4; }
.tv-code { font-size: clamp(54px, 11vw, 200px); font-weight: 800; letter-spacing: .12em; margin: .15em 0 .1em .12em; font-variant-numeric: tabular-nums; }
.tv-pair small { display: block; margin-top: 2em; font-size: clamp(12px, 1.1vw, 20px); color: #8f9ac9; }
