:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #18333c;
  background: #f2f5f6;
  font-synthesis: none;
  --ink: #112b35;
  --teal: #087e83;
  --muted: #62777f;
  --line: #dbe5e8;
  --gold: #eab35c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
a {
  color: #08767a;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.12;
}
h2 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.05rem;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.88rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 750;
  color: var(--teal);
  margin-bottom: 12px;
}
.shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--ink);
  color: white;
  padding: 30px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 45px;
}
.mark {
  border: 1px solid #71959d;
  padding: 8px 9px;
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.nav {
  background: transparent;
  color: #b8cbd0;
  border: 0;
  text-align: left;
  padding: 13px 16px;
  border-radius: 7px;
}
.nav:hover,
.nav.active {
  background: #26424b;
  color: white;
}
.sidebar footer {
  margin-top: auto;
  color: #96afb6;
  font-size: 0.88rem;
  line-height: 1.6;
}
.main {
  padding: 38px 44px;
  max-width: 1440px;
  width: 100%;
  margin: auto;
}
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.badge {
  font-size: 0.8rem;
  border-radius: 30px;
  padding: 6px 12px;
  background: #e3eeee;
  color: #28656b;
  white-space: nowrap;
}
.badge.dark {
  background: #26424b;
  color: white;
}
.pagehead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.pagehead p {
  max-width: 620px;
  color: var(--muted);
  margin-bottom: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  box-shadow: 0 3px 12px #18333c03;
  margin-bottom: 20px;
}
.card.feature {
  border-top: 4px solid var(--teal);
}
.card.dark {
  background: var(--ink);
  color: white;
  border: 0;
}
.dark .muted {
  color: #b7ccd1;
}
.activity-number {
  font-size: 3rem;
  line-height: 1;
  color: #bacbd1;
  font-weight: 300;
  margin-bottom: 26px;
}
.activitycard {
  display: flex;
  flex-direction: column;
  min-height: 305px;
}
.activitycard p {
  flex: 1;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.btn {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 16px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  font-size: 0.93rem;
  line-height: 1.4;
}
.btn:hover {
  border-color: #91b4ba;
  background: #f4f8f9;
}
.btn.primary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.btn.primary:hover {
  background: #066b70;
}
.btn.danger {
  color: #ad3838;
}
.btn.dark {
  background: var(--ink);
  color: white;
}
.btn.large {
  padding: 15px 22px;
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 17px;
  min-width: 0;
}
.field span {
  font-size: 0.9rem;
  font-weight: 600;
}
.field small {
  color: var(--muted);
  font-size: 0.85rem;
}
.field input,
.field select,
.field textarea {
  background: white;
  border: 1px solid #c6d5d9;
  border-radius: 6px;
  padding: 11px 12px;
  min-width: 0;
  width: 100%;
  color: var(--ink);
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #c5e9e8;
  border-color: var(--teal);
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--teal);
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.stat strong {
  font-size: 2rem;
  font-weight: 600;
  display: block;
  margin-top: 7px;
}
.tablewrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
th {
  text-align: left;
  font-weight: 550;
  font-size: 0.82rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 14px 10px;
}
td {
  padding: 17px 10px;
  border-bottom: 1px solid #edf1f3;
}
td .btn {
  padding: 6px 10px;
}
.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}
.split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}
.session-code {
  font-size: 2.6rem;
  letter-spacing: 0.14em;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  margin: 12px 0;
}
.qr {
  width: 185px;
  height: 185px;
  border-radius: 8px;
  display: block;
}
.joinbox {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.notice {
  padding: 14px 18px;
  border-left: 3px solid var(--teal);
  background: #eaf5f4;
  line-height: 1.6;
  font-size: 0.93rem;
  margin-bottom: 20px;
}
.controls {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  padding-top: 12px;
}
.progress {
  background: #e8eff1;
  height: 8px;
  border-radius: 8px;
  overflow: hidden;
  margin: 16px 0;
}
.progress div {
  height: 100%;
  background: var(--teal);
  transition: width 0.4s;
}
.player {
  max-width: 670px;
  padding: 24px;
  margin: 0 auto;
}
.player header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.player .brand {
  margin: 0;
  font-size: 0.95rem;
}
.player h1 {
  font-size: 2rem;
}
.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}
.option {
  background: #fff;
  border: 2px solid #d5e3e5;
  border-radius: 12px;
  padding: 26px 18px;
  color: var(--ink);
  text-align: left;
  min-height: 150px;
}
.option strong {
  font-size: 1.8rem;
  display: block;
  letter-spacing: -0.03em;
}
.option span {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  color: var(--muted);
}
.option.selected {
  border-color: var(--teal);
  background: #edf8f7;
}
.option:hover {
  border-color: var(--teal);
}
.login {
  max-width: 470px;
  margin: 9vh auto;
  padding: 24px;
}
.login .brand {
  color: var(--ink);
  margin-bottom: 36px;
}
.status {
  font-size: 0.83rem;
  color: var(--muted);
}
.status.offline {
  color: #a85921;
}
.barrow {
  display: grid;
  grid-template-columns: 85px 1fr 85px;
  gap: 12px;
  align-items: center;
  margin: 10px 0;
  font-size: 0.88rem;
}
.bartrack {
  height: 20px;
  background: #eef3f5;
  border-radius: 4px;
  overflow: hidden;
}
.barfill {
  background: var(--teal);
  height: 100%;
  transition: width 0.6s;
  min-width: 0;
}
.barfill.future {
  background: #d89a38;
}
.legend {
  display: flex;
  gap: 18px;
  font-size: 0.88rem;
  margin-bottom: 22px;
}
.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--teal);
  margin-right: 6px;
}
.legend .future {
  background: #d89a38;
}
.display {
  max-width: 1500px;
  margin: auto;
  padding: 32px;
}
.display h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}
.display .qr {
  width: 230px;
  height: 230px;
}
.display .session-code {
  font-size: 3.5rem;
}
.model svg {
  width: 100%;
  max-height: 320px;
  display: block;
}
.model-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #102a34;
  color: #d6e6e9;
  padding: 18px;
  border-radius: 8px;
  font:
    0.82rem/1.6 ui-monospace,
    monospace;
  max-height: 350px;
  overflow: auto;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #112b35;
  color: white;
  padding: 14px 22px;
  border-radius: 8px;
  box-shadow: 0 8px 30px #0002;
  max-width: 90vw;
  display: none;
  z-index: 99;
}
.linkrow {
  overflow-wrap: anywhere;
}
.spacer {
  height: 14px;
}
.pill {
  padding: 4px 9px;
  border-radius: 20px;
  background: #f0f4f5;
  display: inline-block;
  font-size: 0.83rem;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 14px;
}
ol,
ul {
  padding-left: 22px;
  line-height: 1.8;
}
.error {
  color: #ae3333;
  line-height: 1.5;
}
.model-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  font-size: 0.87rem;
}
.model-values div {
  padding: 12px;
  background: #eff5f6;
  border-radius: 6px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #da9e46;
  outline-offset: 3px;
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 17px 22px;
    display: block;
  }
  .sidebar .brand {
    margin: 0 0 16px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  .sidebar footer {
    display: none;
  }
  .main {
    padding: 26px 22px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .pagehead {
    flex-direction: column;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .display {
    padding: 24px;
  }
  .model-controls {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stats .stat:last-child {
    grid-column: 1/-1;
  }
  .options {
    grid-template-columns: 1fr;
  }
  .option {
    min-height: 115px;
  }
  .player {
    padding: 18px;
  }
  .card {
    padding: 21px;
  }
  .model-values {
    grid-template-columns: 1fr;
  }
  .topline {
    margin-bottom: 24px;
  }
  .barrow {
    grid-template-columns: 65px 1fr 72px;
  }
  .session-code {
    font-size: 2rem;
  }
}
.sidebar .nav {
  background: transparent;
  border: 0;
  color: #b8cbd0;
  justify-content: flex-start;
  text-align: left;
}
.sidebar .nav.active,
.sidebar .nav:hover {
  background: #26424b;
  color: white;
}
.sidebar .brand {
  font-size: 1rem;
}
#display-tabs {
  margin-bottom: 18px;
}
.display .brand {
  margin-bottom: 0;
}
.display .pagehead {
  margin-bottom: 20px;
}
.display h1 {
  margin-bottom: 0;
}
.display .model svg {
  max-height: 240px;
}
.display .model .model-controls {
  margin-bottom: 0;
}
.display .model .field {
  margin-bottom: 8px;
}
.display .model p {
  margin-bottom: 10px;
}
.display .model .eyebrow {
  margin-bottom: 5px;
}
.card details {
  margin-top: 20px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 850px) and (max-height: 850px) {
  .display {
    padding: 20px 26px;
  }
  .display .topline {
    margin-bottom: 16px;
  }
  .display .pagehead {
    margin-bottom: 14px;
  }
  .display h1 {
    font-size: 2.2rem;
  }
  .display .eyebrow {
    margin-bottom: 7px;
  }
  .display .card {
    padding: 20px;
    margin-bottom: 0;
  }
  .display #display-tabs {
    margin-bottom: 14px;
  }
  .display .model svg {
    max-height: 155px;
  }
  .display .model h2 {
    margin-bottom: 10px;
  }
  .display .model-values div {
    padding: 9px 12px;
  }
}
