@font-face {
  font-family: Rubik;
  src: url("rubik.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}
:root {
  font-family: Rubik, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #eef5ff;
  background: #0b1220;
  color-scheme: dark;
  --rule: #28374b;
  --muted: #aabbd1;
  --unit: min(1vw, 1.5vh);
  --gap: clamp(6px, var(--unit), 21px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: radial-gradient(ellipse at top right, #192d44 0%, #0b1220 53%); }
.wallboard {
  margin: 0 auto;
  min-height: 100vh;
  max-width: 2300px;
  padding: clamp(7px, 3vh, 32px) clamp(12px, 2.6vw, 52px);
}
.masthead, .masthead-tools, .title-block, .rep-panel-header {
  display: flex;
  align-items: center;
}
.masthead {
  justify-content: space-between;
  gap: var(--gap);
  margin-bottom: clamp(7px, 2.7vh, 28px);
}
.title-block { gap: clamp(8px, 1.1vw, 23px); }
.title-mark {
  display: flex;
  direction: ltr;
  align-items: end;
  justify-content: center;
  height: clamp(24px, 6vh, 62px);
  aspect-ratio: 1;
  flex: none;
  gap: 7%;
  border: 1px solid #376171;
  border-radius: 24%;
  background: #193f48;
}
.title-mark i { display: block; align-self: end; width: 13%; margin-bottom: 23%; border-radius: 8px; background: #7bedda; }
.title-mark i:nth-child(1) { height: 20%; }
.title-mark i:nth-child(2) { height: 33%; }
.title-mark i:nth-child(3) { height: 51%; }
h1 {
  margin: 0;
  font-weight: 750;
  font-size: clamp(21px, min(4vw, 6.4vh), 70px);
  line-height: 1.1;
  letter-spacing: -.055em;
}
.masthead-tools { gap: var(--gap); }
.timing { display: grid; gap: .3em; }
.date { font-weight: 600; font-size: clamp(11px, min(1.45vw, 2.25vh), 24px); }
.last-update { color: var(--muted); font-size: clamp(10px, min(1vw, 1.8vh), 17px); white-space: nowrap; }
button {
  border: 1px solid #526781;
  border-radius: 9px;
  background: #142235;
  color: #e3edfd;
  padding: .54em .7em;
  font: inherit;
  font-size: clamp(10px, 1.6vh, 16px);
  white-space: nowrap;
  cursor: pointer;
}
button:focus-visible { outline: 2px solid #72e6d2; outline-offset: 3px; }
.period-toolbar, .period-buttons, .period-detail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(4px, .7vw, 12px);
}
.period-toolbar {
  justify-content: space-between;
  margin-bottom: var(--gap);
}
.period-buttons button {
  font-weight: 600;
  padding-inline: min(1.4vw, 24px);
}
.period-buttons [aria-pressed="true"] {
  border-color: #68d7c4;
  background: #21463f;
  color: #c4ffed;
}
.period-detail { color: var(--muted); font-size: clamp(10px, min(1vw, 2vh), 17px); }
#date-picker {
  color: #f1f7ff;
  background: #142235;
  border: 1px solid #526781;
  border-radius: 8px;
  padding: .4em .6em;
  font: inherit;
}
.team-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0 0 var(--gap);
}
.metric {
  --accent: #8cc9ff;
  --tint: #1b304a;
  display: grid;
  grid-template-rows: 2.35em auto;
  align-items: start;
  justify-items: start;
  gap: clamp(3px, .75vh, 9px);
  min-width: 0;
  border: 1px solid var(--rule);
  border-top: 2px solid var(--accent);
  border-radius: clamp(7px, var(--unit), 15px);
  background: linear-gradient(155deg, var(--tint), #111d2f 69%);
  padding: clamp(6px, 1.6vh, 20px) clamp(6px, 1.2vw, 25px);
  font-size: clamp(10px, min(1.42vw, 2.3vh), 26px);
}
.metric.booked { --accent: #b5aafa; --tint: #2c2c4d; }
.metric.held { --accent: #78debc; --tint: #1d3f3d; }
.metric.cash { --accent: #ffd383; --tint: #3a332d; }
.metric dt { color: #e0eaf8; font-weight: 600; line-height: 1.15; }
.metric dd {
  margin: 0;
  color: var(--accent);
  font-size: clamp(22px, min(3.7vw, 6.3vh), 70px);
  font-weight: 750;
  letter-spacing: -.05em;
  line-height: 1;
  overflow-wrap: anywhere;
}
.metric.cash dd { font-size: clamp(18px, min(3vw, 5.6vh), 62px); }
.rep-panel {
  border: 1px solid var(--rule);
  border-radius: clamp(8px, 1.15vw, 18px);
  overflow: hidden;
  background: #121e30;
}
.rep-panel-header {
  justify-content: space-between;
  gap: var(--gap);
  padding: clamp(5px, 1.25vh, 16px) clamp(9px, 1.4vw, 28px);
}
.rep-panel-header h2 { margin: 0; font-size: clamp(13px, min(1.9vw, 3.2vh), 33px); font-weight: 650; }
#rep-count { color: var(--muted); font-size: clamp(10px, min(1vw, 1.8vh), 17px); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 455px; table-layout: fixed; }
col { width: 15%; }
col.rep { width: 25%; }
thead { background: #1d2b42; }
thead th {
  color: #c6d6eb;
  font-size: clamp(10px, min(1.26vw, 2.06vh), 22px);
  line-height: 1.12;
  padding: clamp(4px, 1vh, 12px) .4em;
}
th, td { text-align: center; }
thead th:last-child, tbody th { text-align: right; padding-inline: clamp(8px, 1.4vw, 28px); }
tbody td, tbody th {
  padding-block: clamp(3px, .75vh, 9px);
  border-top: 1px solid var(--rule);
  font-size: clamp(14px, min(2.1vw, 3.85vh), 45px);
  font-weight: 670;
  line-height: 1.06;
}
tbody tr:nth-child(even) { background: #162337; }
tbody th { font-size: clamp(12px, min(1.65vw, 2.92vh), 32px); font-weight: 610; }
td.cash-value { color: #ffda94; font-size: clamp(13px, min(1.9vw, 3.5vh), 38px); }
td.quiet { color: #96aac2; font-weight: 500; }
.initials {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  margin-inline-end: .58em;
  width: 1.9em;
  height: 1.9em;
  border: 1px solid #385775;
  border-radius: 50%;
  background: #213751;
  color: #bddbf9;
  font-size: .62em;
}
.message { margin: 0 0 var(--gap); padding: 1em; border: 1px solid #41526a; border-radius: 10px; font-size: clamp(14px, 1.5vw, 25px); }
@media (max-height: 500px) {
  .wallboard { padding-block: 7px; }
  .masthead { margin-bottom: 8px; }
  .metric { grid-template-rows: 2.25em auto; padding-block: 5px; }
  tbody td, tbody th { padding-block: 2px; }
}
@media (max-width: 575px) {
  .title-mark, #fullscreen { display: none; }
  .team-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric { grid-template-rows: auto auto; gap: 7px; }
}

.connection {
  white-space: nowrap;
  color: #b7cbe3;
  font-size: clamp(10px, 1.6vh, 16px);
}
.connection::before {
  display: inline-block;
  content: "";
  width: .6em;
  height: .6em;
  margin-inline-end: .55em;
  border-radius: 50%;
  background: #f2bf78;
}
.connection[data-connected="true"] { color: #a2f6d9; }
.connection[data-connected="true"]::before { background: #76e5bb; }
.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 22px;
}
.login-card {
  width: min(450px, 100%);
  padding: clamp(24px, 5vw, 48px);
  background: #142235;
  border: 1px solid #385775;
  border-radius: 20px;
}
.login-card h1 { font-size: clamp(23px, 5vw, 36px); }
.login-card .title-mark { height: 40px; }
.login-card form { display: grid; gap: 12px; margin-top: 30px; }
.login-card input {
  min-width: 0;
  color: #eef5ff;
  background: #0b1220;
  border: 1px solid #526781;
  border-radius: 9px;
  padding: .75em;
  font: inherit;
}
.login-card button {
  border-color: #68d7c4;
  background: #21463f;
  color: #c4ffed;
  padding: .7em;
  font-weight: 650;
}
#login-error { margin: 0; color: #ffdcae; }
.celebration {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 24px;
  background: #081321bc;
  pointer-events: none;
}
.celebration-card {
  background: #14273a;
  color: #f0fcf9;
  border: 2px solid #77dfc4;
  border-radius: clamp(16px, 3vw, 38px);
  box-shadow: 0 24px 95px #020812b2, 0 0 80px #77dfc420;
  padding: clamp(26px, 6vw, 94px);
  text-align: center;
  max-width: 92vw;
  animation: celebration-in 260ms ease-out;
}
.celebration-card p { margin: 0 0 .55em; font-size: clamp(18px, 3vw, 48px); color: #8eeed4; font-weight: 670; }
.celebration-card strong { display: block; font-size: clamp(33px, 6.8vw, 114px); line-height: 1.12; }
.celebration[data-kind="deal"] .celebration-card { border-color: #ffd383; }
.celebration[data-kind="deal"] p { color: #ffd383; }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 21; pointer-events: none; }
@keyframes celebration-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .celebration-card { animation: none; } }
