/* Office TV wall. Every class starts .wl- so nothing clashes. The screen
   uses the sidebar colours (--side-bg, --side-ink), so Appearance repaints
   it too. All sizes inside the screen are container units of .wl-tv (a
   size container), so the same board fills a laptop preview, a full-screen
   browser or a 4K TV. .wl-tv itself never sizes its own padding in cq
   units (an element cannot use its own container size); .wl-screen does. */

.wl-page { gap: 12px; }
.wl-tv {
  position: relative; width: min(100%, calc((100vh - 270px) * 16 / 9)); aspect-ratio: 16 / 9; margin: 0 auto;
  container-type: size; border-radius: var(--r-surface); overflow: hidden; box-shadow: var(--shadow-2);
  background: var(--side-bg); color: var(--side-ink); border: 6px solid color-mix(in srgb, var(--side-bg) 70%, black);
}
.wl-tv:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; border: 0; border-radius: 0; }
.wl-screen { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 2.2cqw 2.6cqw 0; }
.wl-head { display: flex; align-items: center; gap: 1.2cqw; font-size: 1.5cqw; }
.wl-head > b { font: 700 1.6cqw var(--font-head); color: var(--side-ink); }
.wl-logo { width: 3cqw; height: 3cqw; display: grid; place-items: center; border-radius: var(--r-control); background: var(--spark); color: #fff; font: 800 1.2cqw var(--font-head); }
.wl-bname { margin-left: auto; color: var(--side-muted); font-size: 1.2cqw; }
.wl-live { display: inline-flex; align-items: center; gap: .5cqw; font-size: 1.1cqw; font-weight: 700; color: var(--side-ink); padding: .3cqw .9cqw; border-radius: var(--r-pill); background: color-mix(in srgb, var(--good) 28%, transparent); }
.wl-live i { width: .8cqw; height: .8cqw; border-radius: var(--r-dot); background: var(--good); animation: pulse 1.6s ease-in-out infinite; }
.wl-clock { font: 700 2.2cqw var(--font-head); font-variant-numeric: tabular-nums; color: var(--side-ink); }

.wl-boards { position: relative; min-height: 0; margin-top: 1.6cqw; }
.wl-board { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1.4cqw; opacity: 0; visibility: hidden; transform: translateY(1.2cqw); transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s .6s; }
.wl-board.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.wl-board h2 { font: 800 3.2cqw/1.05 var(--font-head); color: var(--side-ink); letter-spacing: -.01em; }
.wl-g { display: grid; gap: 1.6cqw; min-height: 0; }
.wl-g small, .wl-stats small, .wl-big small { display: block; font-size: 1.25cqw; color: var(--side-muted); font-weight: 600; }

/* This month */
.wl-g--money { grid-template-columns: 22cqw minmax(0, 1fr) 24cqw; grid-template-rows: minmax(0, 1fr) 11cqw; align-items: center; }
.wl-ring { --p: 50; width: 20cqw; height: 20cqw; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--spark) calc(var(--p) * 1%), color-mix(in srgb, var(--side-ink) 12%, transparent) 0); }
.wl-ring > div { width: 15.4cqw; height: 15.4cqw; border-radius: 50%; background: var(--side-bg); display: grid; place-content: center; text-align: center; }
.wl-ring b { font: 800 4.6cqw/1 var(--font-head); color: var(--side-ink); }
.wl-big b { display: block; font: 800 8.2cqw/1 var(--font-head); color: var(--side-ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: .4cqw 0 .6cqw; }
.wl-big span { font-size: 1.4cqw; color: var(--side-muted); }
.wl-stats { display: grid; gap: 1cqw; }
.wl-stats > div { padding: 1cqw 1.3cqw; border-radius: var(--r-control); background: color-mix(in srgb, var(--side-ink) 8%, transparent); }
.wl-stats b { display: block; font: 800 3cqw/1.1 var(--font-head); color: var(--side-ink); font-variant-numeric: tabular-nums; }
.wl-stats b span { font-size: .5em; color: var(--side-muted); }
.wl-stats .is-bad b { color: color-mix(in srgb, var(--bad) 55%, white); }
.wl-stats .is-spark b { color: color-mix(in srgb, var(--spark) 60%, white); }
.wl-bars { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 1.4cqw; height: 100%; }
.wl-bars > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: .4cqw; text-align: center; }
.wl-bars i { display: block; border-radius: .5cqw .5cqw 0 0; background: color-mix(in srgb, var(--side-ink) 22%, transparent); min-height: .4cqw; }
.wl-bars > div:last-child i { background: var(--spark); }

/* On the road */
.wl-g--jobs { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.wl-map { border-radius: var(--r-control); overflow: hidden; min-height: 0; height: 100%; background: color-mix(in srgb, var(--side-ink) 10%, transparent); }
.wl-map .pin--lg { width: 1.6cqw; height: 1.6cqw; min-width: 16px; min-height: 16px; }
.wl-list { display: grid; align-content: start; gap: .7cqw; min-height: 0; overflow: hidden; }
.wl-job { display: flex; align-items: center; gap: 1cqw; padding: .8cqw 1cqw; border-radius: var(--r-control); background: color-mix(in srgb, var(--side-ink) 8%, transparent); }
.wl-job__main { flex: 1; min-width: 0; }
.wl-job__main b { display: block; font-size: 1.45cqw; color: var(--side-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-av { --c: var(--accent); width: 3cqw; height: 3cqw; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; font: 800 1.1cqw var(--font-head); }
.wl-chip { flex: none; padding: .35cqw .9cqw; border-radius: var(--r-pill); font-size: 1.1cqw; font-weight: 700; background: color-mix(in srgb, var(--side-ink) 14%, transparent); color: var(--side-ink); white-space: nowrap; }
.wl-chip.is-on { background: color-mix(in srgb, var(--good) 45%, transparent); }
.wl-chip.is-done { background: transparent; color: var(--side-muted); }
.wl-chip.is-spark { background: var(--spark); color: #fff; }

/* Sales board */
.wl-g--sales { grid-template-columns: minmax(0, 1fr) 26cqw; align-items: center; }
.wl-lead { display: grid; gap: 2cqw; }
.wl-lead__row { display: grid; grid-template-columns: 3cqw 4cqw 16cqw minmax(0, 1fr) 9cqw; align-items: center; gap: 1.2cqw; }
.wl-lead__row .wl-av { width: 4cqw; height: 4cqw; font-size: 1.4cqw; }
.wl-pos { font: 800 3cqw var(--font-head); color: var(--side-muted); }
.wl-lead__row:first-child .wl-pos { color: var(--spark); }
.wl-lead__name { font: 700 2cqw var(--font-head); color: var(--side-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-lead__row b { font: 800 2.8cqw var(--font-head); color: var(--side-ink); text-align: right; font-variant-numeric: tabular-nums; }
.wl-lead__bar { display: block; height: 2.2cqw; border-radius: var(--r-pill); background: color-mix(in srgb, var(--side-ink) 10%, transparent); overflow: hidden; }
.wl-lead__bar i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--c); }
.wl-stats--col > div { padding: 1.4cqw 1.6cqw; }
.wl-stats--col b { font-size: 4cqw; }

/* Enquiries */
.wl-g--enq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start; }
.wl-g--enq .wl-big b { font-size: 11cqw; }
.wl-src { display: grid; gap: 1cqw; align-content: center; }
.wl-src > div { display: grid; grid-template-columns: 17cqw minmax(0, 1fr) 3cqw; align-items: center; gap: 1cqw; font-size: 1.4cqw; }
.wl-src b { font: 800 2cqw var(--font-head); text-align: right; color: var(--side-ink); }
.wl-src .wl-lead__bar { height: 1.6cqw; }
.wl-list--wide { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Service and reviews */
.wl-g--svc { grid-template-columns: 30cqw minmax(0, 1fr); align-items: center; }
.wl-quote { padding: 2.6cqw 3cqw; border-radius: var(--r-surface); background: color-mix(in srgb, var(--side-ink) 8%, transparent); }
.wl-stars { font-size: 3.4cqw; letter-spacing: .3cqw; color: var(--warn); }
.wl-quote p { font: 700 3.4cqw/1.25 var(--font-head); color: var(--side-ink); margin: 1cqw 0 1.4cqw; }
.wl-quote small { font-size: 1.5cqw; }

/* Ticker and progress */
.wl-foot { margin: 1.4cqw -2.6cqw 0; padding: 1cqw 0; background: color-mix(in srgb, var(--side-ink) 7%, transparent); overflow: hidden; }
.wl-ticker { overflow: hidden; white-space: nowrap; }
.wl-ticker__in { display: inline-flex; gap: 4cqw; padding-left: 2.6cqw; animation: wl-roll 70s linear infinite; }
.wl-tick { display: inline-flex; align-items: center; gap: .8cqw; font-size: 1.35cqw; color: var(--side-ink); }
.wl-tick svg { width: 1.6cqw; height: 1.6cqw; color: var(--spark); }
.wl-tick small { color: var(--side-muted); font-size: 1.1cqw; }
@keyframes wl-roll { to { transform: translateX(-50%); } }
.wl-prog { position: absolute; left: 0; right: 0; bottom: 0; height: .45cqw; background: transparent; }
.wl-prog i { display: block; height: 100%; width: 0; background: var(--spark); transition: width 1s linear; }
.wl-flash { animation: wl-flash 1.4s var(--ease); }
@keyframes wl-flash { 0% { color: var(--spark); transform: scale(1.06); } 100% { transform: none; } }

/* Controls under the TV */
.wl-ctrl { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.wl-ctrl .filter { padding-right: 14px; }
.wl-ctrl .filter svg { width: 15px; height: 15px; }

/* Boards and screens tabs */
.wl-blist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.wl-bitem { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-control); border: 1px solid var(--line); background: var(--surface); }
.wl-bitem.is-off { background: var(--surface-2); }
.wl-bitem.is-off .row__main b { color: var(--muted); }
.wl-thumb { width: 64px; height: 36px; flex: none; display: grid; place-items: center; border-radius: var(--r-small); background: var(--side-bg); color: var(--side-ink); }
.wl-thumb svg { width: 18px; height: 18px; color: var(--spark); }
.wl-how { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.wl-how b { color: var(--ink); }

@media (max-width: 760px) {
  .wl-tv { width: 100%; border-width: 3px; }
  .wl-ctrl { justify-content: flex-start; }
  .wl-ctrl .filters { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; }
  .wl-bitem { flex-wrap: wrap; }
  .wl-bitem .row__main { flex-basis: calc(100% - 80px); }
}
@media (prefers-reduced-motion: reduce) { .wl-ticker__in { animation: none; } .wl-board { transition: none; } }
.wl-bars em { font-style: normal; font-size: 1.1cqw; font-weight: 700; color: var(--side-ink); }
