@font-face {
  font-family: 'Roboto';
  src: url('./fonts/roboto-latin-400-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('./fonts/roboto-latin-500-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('./fonts/roboto-latin-700-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('./fonts/roboto-latin-900-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ad-accent: #243782;
  --ad-accent-strong: #1a2a63;
  --ad-accent-soft: #e3e6f2;
  --ad-paper: #eff0f3;
  --ad-card: #ffffff;
  --ad-fill: #f3f4f7;
  --ad-fill-table: #fbfbfc;
  --ad-sidebar: #12141c;
  --ad-ink: #12141c;
  --ad-ink-muted: #626673;
  --ad-line: rgba(18, 20, 28, 0.08);
  --ad-line-strong: rgba(18, 20, 28, 0.16);
  --ad-error-bg: #f6e7e2;
  --ad-error-ink: #7a2415;
  --ad-warning-bg: #fbf3e8;
  --ad-warning-ink: #6b4a10;
  --ad-success-bg: #e1f5ee;
  --ad-success-ink: #0f6e56;
  --ad-font-sans:
    'Instrument Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ad-font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --ad-radius-card: 14px;
  --ad-radius-control: 10px;
  --ad-space-1: 4px;
  --ad-space-2: 8px;
  --ad-space-3: 12px;
  --ad-space-4: 16px;
  --ad-space-5: 22px;
  --ad-space-6: 30px;
  --ad-hit: 44px;
  --ad-rail: 72px;
  --ad-topbar: 64px;
  --ad-shadow-card: 0 1px 2px rgba(18, 20, 28, 0.05);
  --ad-transition: 160ms cubic-bezier(0.2, 0, 0.3, 1);
}

* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--ad-paper);
}
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ad-ink);
  background: var(--ad-paper);
  font: 400 13px/1.45 var(--ad-font-sans);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid var(--ad-accent);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}

.ad-shell {
  min-height: 100vh;
  padding-left: var(--ad-rail);
}
.ad-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--ad-rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ad-space-3);
  padding: var(--ad-space-4) var(--ad-space-2);
  background: var(--ad-sidebar);
  color: white;
}
.ad-brandmark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--ad-accent);
  color: white;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.ad-nav {
  display: grid;
  gap: var(--ad-space-2);
  width: 100%;
  margin-top: var(--ad-space-3);
}
.ad-nav a {
  display: grid;
  min-height: var(--ad-hit);
  place-items: center;
  border-radius: var(--ad-radius-control);
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition:
    background var(--ad-transition),
    color var(--ad-transition);
}
.ad-nav a:hover,
.ad-nav a[aria-current='page'] {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}
.ad-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.ad-nav-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.ad-topbar {
  min-height: var(--ad-topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ad-space-4);
  padding: var(--ad-space-3) var(--ad-space-5);
  border-bottom: 1px solid var(--ad-line);
  background: rgba(255, 255, 255, 0.92);
}
.ad-product {
  display: grid;
  gap: 1px;
}
.ad-product strong {
  font-size: 14px;
}
.ad-context,
.rd-meta {
  color: var(--ad-ink-muted);
  font: 500 11px/1.3 var(--ad-font-mono);
}
.ad-environment {
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--ad-warning-bg);
  color: var(--ad-warning-ink);
  font: 500 10px/1 var(--ad-font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ad-content {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: var(--ad-space-6) var(--ad-space-5) 96px;
}
.ad-pagehead {
  margin-bottom: var(--ad-space-5);
}
.ad-kicker,
.lead {
  margin: 0 0 var(--ad-space-2);
  color: var(--ad-ink-muted);
  font: 500 10.5px/1 var(--ad-font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.025em;
}
h1 {
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.1;
}
h2 {
  font-size: 20px;
  line-height: 1.2;
}
p {
  max-width: 68ch;
}

.rd-card,
[data-station-panel] {
  padding: var(--ad-space-5);
  border: 1px solid var(--ad-line);
  border-radius: var(--ad-radius-card);
  background: var(--ad-card);
  box-shadow: var(--ad-shadow-card);
}
.rd-card > :first-child,
[data-station-panel] > :first-child {
  margin-top: 0;
}
.rd-card > :last-child,
[data-station-panel] > :last-child {
  margin-bottom: 0;
}
form {
  display: grid;
  gap: var(--ad-space-4);
  margin: var(--ad-space-5) 0;
}
.rd-filterbar {
  grid-template-columns: minmax(180px, 2fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;
  align-items: end;
}
label {
  display: grid;
  gap: var(--ad-space-2);
  font-weight: 600;
}
input,
select,
textarea {
  min-height: 44px;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--ad-line-strong);
  border-radius: var(--ad-radius-control);
  background: var(--ad-card);
  color: var(--ad-ink);
}
textarea {
  min-height: 120px;
  resize: vertical;
}
button,
.rd-button {
  min-height: 40px;
  width: fit-content;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: var(--ad-radius-control);
  background: var(--ad-accent);
  color: white;
  cursor: pointer;
  font-weight: 650;
  text-decoration: none;
}
button:hover,
.rd-button:hover {
  background: var(--ad-accent-strong);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
@media (max-width: 760px) {
  .rd-filterbar {
    grid-template-columns: 1fr;
  }
}
.rd-button--quiet {
  border-color: var(--ad-line-strong);
  background: var(--ad-card);
  color: var(--ad-ink);
}
.rd-button--quiet:hover {
  background: var(--ad-fill);
}

.rd-table {
  width: 100%;
  overflow: auto;
  margin: var(--ad-space-5) 0;
  border: 1px solid var(--ad-line);
  border-radius: var(--ad-radius-card);
  background: var(--ad-card);
}
.rd-table table,
table.rd-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}
.rd-table thead,
.rd-table__head {
  background: var(--ad-fill-table);
}
.rd-table th,
.rd-table td,
table.rd-table th,
table.rd-table td {
  min-height: 44px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--ad-line);
  text-align: left;
  white-space: nowrap;
}
.rd-table th,
table.rd-table th {
  color: var(--ad-ink-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.rd-table tbody tr:last-child td,
table.rd-table tbody tr:last-child td {
  border-bottom: 0;
}
.rd-table tbody tr:hover,
.rd-table__row:hover {
  background: var(--ad-fill-table);
}
.rd-table__meta {
  color: var(--ad-ink-muted);
  font-family: var(--ad-font-mono);
  font-size: 11px;
}

.rd-fieldrows {
  display: grid;
  border-top: 1px solid var(--ad-line);
}
.rd-fieldrow {
  display: grid;
  grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
  gap: var(--ad-space-5);
  padding: var(--ad-space-4) 0;
  border-bottom: 1px solid var(--ad-line);
}
.rd-note {
  margin: var(--ad-space-1) 0 0;
  color: var(--ad-ink-muted);
  font-size: 11.5px;
}
.rd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ad-space-3);
  align-items: center;
}
.rd-gates {
  display: grid;
  gap: var(--ad-space-3);
  padding: 0;
  list-style: none;
}
.rd-gates li {
  display: grid;
  grid-template-columns: minmax(62px, auto) minmax(0, 1fr);
  gap: var(--ad-space-3);
  align-items: start;
  padding: var(--ad-space-3) 0;
  border-bottom: 1px solid var(--ad-line);
}
.rd-gates p {
  margin: var(--ad-space-1) 0 0;
  color: var(--ad-ink-muted);
}
.rd-preview {
  padding: var(--ad-space-4);
  border: 1px dashed var(--ad-line-strong);
  border-radius: var(--ad-radius-control);
  background: var(--ad-fill-table);
}
[data-device-administration] > .rd-card {
  margin: var(--ad-space-4) 0;
}
.rd-control[data-state='empty'] {
  opacity: 0.72;
}
.rd-control[data-state='loading'] {
  opacity: 0.6;
}
.rd-control[data-state='error'] input,
.rd-control[data-state='error'] textarea,
[aria-invalid='true'] {
  border-color: var(--ad-error-ink);
}
.rd-control[data-state='offline'] {
  border-left: 3px solid var(--ad-warning-ink);
  padding-left: var(--ad-space-3);
}
.rd-control[data-state='stale'] {
  background: var(--ad-warning-bg);
}
.rd-control[data-state='disabled'] {
  opacity: 0.5;
  pointer-events: none;
}

.rd-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 8px;
  font: 500 10.5px/1 var(--ad-font-mono);
}
.rd-status--passed {
  background: var(--ad-success-bg);
  color: var(--ad-success-ink);
}
.rd-status--notice {
  background: var(--ad-warning-bg);
  color: var(--ad-warning-ink);
}
.rd-status--blocked {
  background: var(--ad-error-bg);
  color: var(--ad-error-ink);
}
.rd-savebar {
  position: sticky;
  bottom: var(--ad-space-4);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ad-space-4);
  margin-top: var(--ad-space-5);
  padding: var(--ad-space-3) var(--ad-space-4);
  border: 1px solid var(--ad-line-strong);
  border-radius: var(--ad-radius-card);
  background: var(--ad-sidebar);
  color: white;
  box-shadow: 0 12px 30px rgba(18, 20, 28, 0.22);
}
output {
  display: block;
  overflow-wrap: anywhere;
  margin: var(--ad-space-4) 0;
  padding: var(--ad-space-3);
  border-radius: var(--ad-radius-control);
  background: var(--ad-fill);
}
footer {
  margin-top: var(--ad-space-5);
  padding-top: var(--ad-space-3);
  border-top: 1px solid var(--ad-line);
  color: var(--ad-ink-muted);
  font-size: 11.5px;
}
[data-state='pending'],
[data-state='loading'] {
  opacity: 0.68;
}
[data-state='error'],
.field-error,
.error-summary,
[role='alert'] {
  color: var(--ad-error-ink);
}
.field-error {
  display: block;
  min-height: 1.5em;
}
dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--ad-space-2) var(--ad-space-4);
}
dt {
  font-weight: 600;
}
dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
canvas {
  display: block;
  max-width: 100%;
  height: auto;
  margin: var(--ad-space-4) auto;
  background: white;
}

@media (max-width: 720px) {
  :root {
    --ad-rail: 0px;
  }
  .ad-shell {
    padding: 0;
    padding-bottom: 72px;
  }
  .ad-rail {
    inset: auto 0 0;
    width: 100%;
    height: 64px;
    flex-direction: row;
    justify-content: center;
    padding: 8px 16px;
  }
  .ad-brandmark {
    display: none;
  }
  .ad-nav {
    grid-auto-flow: column;
    grid-auto-columns: minmax(52px, 1fr);
    width: min(360px, 100%);
    margin: 0;
  }
  .ad-topbar,
  .ad-content {
    padding-left: var(--ad-space-4);
    padding-right: var(--ad-space-4);
  }
  .rd-fieldrow {
    grid-template-columns: 1fr;
    gap: var(--ad-space-2);
  }
  .rd-savebar {
    bottom: 76px;
    align-items: stretch;
    flex-direction: column;
  }
  .rd-actions,
  .rd-actions > * {
    width: 100%;
  }
  .rd-gates li {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --ad-transition: 0ms;
  }
}

/* Jeep Gameday v2 — canonical public and operational experience tokens. */
:root {
  --jg-ink: #141412;
  --jg-ink-2: #3a3833;
  --jg-muted: #5b5850;
  --jg-paper: #f2f0ea;
  --jg-surface: #fff;
  --jg-surface-2: #e6e3da;
  --jg-line: #d6d2c7;
  --jg-field-border: #8c887e;
  --jg-night: #0e0e0c;
  --jg-night-2: #1c1b18;
  --jg-night-line: #2a2925;
  --jg-on-night: #f2f0ea;
  --jg-on-night-2: #d8d4c9;
  /* sRGB fallbacks keep controls legible on older guest browsers. */
  --jg-success: #397652;
  --jg-success-bg: #e3f3e8;
  --jg-warning: #e3b83f;
  --jg-warning-line: #92641c;
  --jg-warning-bg: #fff2cc;
  --jg-danger: #a83a2b;
  --jg-danger-text: #8c291d;
  --jg-danger-bg: #fbe9e5;
  --jg-focus: #1478b8;
  --jg-font: 'Roboto', Arial, 'Helvetica Neue', sans-serif;
  --jg-radius: 2px;
  --jg-border: 2px;
  --jg-touch-min: 44px;
  --jg-input-h: 52px;
  --jg-btn-h: 58px;
  --jg-station-btn-h: 96px;
  --jg-dur: 160ms;
  --jg-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@supports (color: oklch(0.5 0 0)) {
  :root {
    --jg-success: oklch(0.52 0.11 150);
    --jg-success-bg: oklch(0.95 0.03 150);
    --jg-warning: oklch(0.8 0.12 80);
    --jg-warning-line: oklch(0.55 0.12 70);
    --jg-warning-bg: oklch(0.95 0.03 70);
    --jg-danger: oklch(0.52 0.16 28);
    --jg-danger-text: oklch(0.45 0.16 28);
    --jg-danger-bg: oklch(0.95 0.03 28);
    --jg-focus: oklch(0.62 0.14 245);
  }
}
.jg {
  color: var(--jg-ink);
  background: var(--jg-paper);
  font-family: var(--jg-font);
  font-synthesis: none;
}
.jg *,
.jg *::before,
.jg *::after {
  box-sizing: border-box;
}
.jg :focus-visible {
  outline: 3px solid var(--jg-focus);
  outline-offset: 2px;
}
.jg h1,
.jg h2,
.jg h3 {
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.jg h1 {
  font-size: clamp(34px, 8vw, 54px);
  line-height: 0.96;
  overflow-wrap: anywhere;
}
.jg h2 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1;
}
.jg-eyebrow {
  margin: 0 0 12px;
  color: var(--jg-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.jg-logo {
  display: block;
  width: 104px;
  max-width: 40%;
  height: auto;
  flex: 0 0 auto;
}
.jg-dark .jg-logo {
  filter: invert(1);
}
.jg-wordmark {
  display: inline-block;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
  text-transform: lowercase;
}
.jg-btn,
.jg button.jg-btn {
  display: inline-flex;
  min-height: var(--jg-btn-h);
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: var(--jg-border) solid var(--jg-ink);
  border-radius: var(--jg-radius);
  background: var(--jg-ink);
  color: var(--jg-paper);
  font: 700 16px/1 var(--jg-font);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background var(--jg-dur) var(--jg-ease),
    transform var(--jg-dur) var(--jg-ease);
}
.jg-btn--secondary,
.jg button.jg-btn--secondary {
  background: transparent;
  color: var(--jg-ink);
}
.jg-btn--station,
.jg button.jg-btn--station {
  min-height: var(--jg-station-btn-h);
  font-size: 22px;
}
.jg-btn:disabled,
.jg-btn[aria-disabled='true'],
.jg button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.jg-btn:active:not(:disabled):not([aria-disabled='true']),
.jg button.jg-btn:active:not(:disabled):not([aria-disabled='true']) {
  transform: scale(0.98);
  background: #000;
}
.jg-btn--secondary:active:not(:disabled):not([aria-disabled='true']),
.jg button.jg-btn--secondary:active:not(:disabled):not([aria-disabled='true']) {
  background: var(--jg-line);
}
.jg-dark .jg-btn,
.jg-dark button.jg-btn {
  border-color: var(--jg-on-night);
  background: var(--jg-on-night);
  color: var(--jg-ink);
}
.jg-dark .jg-btn:active:not(:disabled):not([aria-disabled='true']) {
  background: var(--jg-on-night-2);
}
.jg-btn[aria-invalid='true'],
.jg button.jg-btn[aria-invalid='true'] {
  border-color: var(--jg-danger);
}
.jg-btn[aria-busy='true']:disabled,
.jg button.jg-btn[aria-busy='true']:disabled {
  opacity: 1;
  cursor: wait;
}
.jg-btn[aria-busy='true']::before {
  content: '';
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: jg-spin 800ms linear infinite;
}
@keyframes jg-spin {
  to {
    transform: rotate(360deg);
  }
}
.jg-form {
  display: grid;
  gap: 20px;
}
.jg-field {
  display: grid;
  gap: 6px;
}
.jg-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.jg-label small {
  color: var(--jg-muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.jg-input,
.jg input,
.jg select {
  min-height: var(--jg-input-h);
  border: var(--jg-border) solid var(--jg-field-border);
  border-radius: var(--jg-radius);
  background: var(--jg-surface);
  font-size: 17px;
}
.jg-input:focus-visible:not([aria-invalid='true']),
.jg input:focus-visible:not([aria-invalid='true']),
.jg select:focus-visible:not([aria-invalid='true']) {
  border-color: var(--jg-ink);
}
.jg .jg-input:disabled,
.jg input:disabled,
.jg select:disabled {
  border-color: var(--jg-line);
  background: #eceae3;
  color: var(--jg-muted);
  opacity: 0.6;
  cursor: not-allowed;
}
.jg [aria-invalid='true'] {
  border-color: var(--jg-danger);
}
.jg .field-error,
.jg .error-summary,
.jg [data-state='error'] {
  color: var(--jg-danger-text);
}
.jg-dark [data-state='error'] {
  color: #ffb4a8;
}
.jg [data-state='loading'],
.jg [data-state='pending'] {
  opacity: 1;
}
.jg a {
  color: var(--jg-ink);
  overflow-wrap: anywhere;
}
.jg-help {
  color: var(--jg-muted);
  font-size: 13px;
  line-height: 1.45;
}
.jg-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 400;
}
.jg-check input {
  width: 24px;
  min-height: 24px;
  flex: 0 0 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--jg-ink);
}
.jg-alert {
  padding: 16px;
  border: var(--jg-border) solid;
}
.jg-alert--danger {
  border-color: var(--jg-danger);
  background: var(--jg-danger-bg);
}
.jg-guest {
  font-size: 16px;
  line-height: 1.45;
}
.jg-guest .lead {
  color: var(--jg-ink-2);
  font: 400 16px/1.45 var(--jg-font);
  letter-spacing: normal;
  text-transform: none;
}
.jg-guest .jg-language {
  margin-bottom: 32px;
}
.jg-guest .jg-btn,
.jg-guest button.jg-btn {
  width: 100%;
  min-width: 0;
  padding: 14px 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.jg-guest form,
.jg-guest .jg-field,
.jg-guest fieldset {
  min-width: 0;
}
.jg-guest fieldset,
.jg-guest legend,
.jg-guest .jg-check span {
  overflow-wrap: anywhere;
}
.jg-guest fieldset legend {
  max-width: 100%;
}
.jg-guest .jg-check {
  min-height: var(--jg-touch-min);
  padding-block: 10px;
  font-size: 14px;
  cursor: pointer;
}
.jg-guest input[type='radio'] {
  width: 24px;
  min-height: 24px;
  accent-color: var(--jg-ink);
}
.jg-progress {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid var(--jg-ink);
  text-align: left;
}
.jg-progress h3 {
  font-size: 24px;
  line-height: 1.1;
}
.jg-progress-list {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: baseline;
  gap: 12px 16px;
}
.jg-progress-list dt,
.jg-progress-list dd {
  min-width: 0;
  overflow-wrap: anywhere;
}
.jg-progress-list dd {
  text-align: right;
}
.jg-progress-list dt:nth-last-child(2),
.jg-progress-list dd:last-child {
  padding-top: 12px;
  border-top: 1px solid var(--jg-line);
  font-weight: 700;
}
.jg-guest-shell {
  width: min(100% - 32px, 480px);
  margin: 0 auto;
  padding: 32px 0 72px;
}
.jg-guest-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--jg-ink);
}
.jg-guest-header p {
  max-width: 15ch;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.jg-guest .rd-card {
  margin-top: 48px;
  padding: 24px 0 0;
  border: 0;
  border-top: 2px solid var(--jg-ink);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.jg-guest fieldset {
  padding: 16px;
  border: 1px solid var(--jg-line);
}
.jg-code-card {
  text-align: center;
}
.jg-qr {
  width: min(100%, 328px);
  margin: 28px auto;
  padding: 32px;
  border: 1px solid var(--jg-line);
  background: #fff;
}
.jg-qr canvas {
  width: 100% !important;
  height: auto !important;
  image-rendering: pixelated;
  margin: 0 auto 32px;
}
.jg-qr__purpose {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.jg-band {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 14px;
  margin: -30px -30px 32px;
  padding: 0 30px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.jg-band--success {
  background: var(--jg-success);
}
.jg-band--warning {
  background: var(--jg-warning);
  color: var(--jg-ink);
}
.jg-band--danger {
  background: var(--jg-danger);
}
.jg-band__icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.jg-station .ad-rail {
  display: none;
}
.jg-station .ad-shell {
  padding-left: 0;
}
.jg-station .ad-topbar {
  background: var(--jg-night);
  color: var(--jg-on-night);
}
.jg-station .ad-content {
  width: min(1180px, 100%);
  padding: 30px;
}
.jg-station [data-station-panel] {
  min-height: calc(100vh - 124px);
  padding: 30px;
  border: 2px solid var(--jg-ink);
  border-radius: 4px;
  box-shadow: none;
}
.jg-station [data-station-panel] > .jg-btn {
  width: 100%;
  margin-top: 24px;
}
.jg-recent-scans {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid var(--jg-ink);
}
.jg-recent-scans h3 {
  max-width: 44ch;
  font-size: 20px;
  line-height: 1.2;
}
.jg-recent-scans ol {
  padding: 0;
  list-style-position: inside;
}
.jg-recent-scans li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--jg-line);
}
.jg-recent-scans li span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.jg-recent-scans time {
  color: var(--jg-muted);
  font-variant-numeric: tabular-nums;
}
.jg-station-status {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  color: var(--jg-success);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.jg-station-message {
  max-width: 32ch;
  font-size: clamp(22px, 3vw, 30px);
}
.jg-scan-frame {
  width: min(100%, 720px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 4px solid var(--jg-ink);
  border-radius: 4px;
  background: var(--jg-night);
}
.jg-scan-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jg-board {
  min-height: 100vh;
  color: var(--jg-on-night);
  background: var(--jg-night);
}
.jg-board-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vh, 32px);
  min-height: 100dvh;
  padding: clamp(24px, 3vw, 56px);
}
.jg-board-brand {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--jg-night-line);
}
.jg-board-brand .jg-logo {
  width: clamp(120px, 12vw, 200px);
  flex: 0 0 auto;
}
.jg-board-heading {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}
.jg-board-brand h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 72px);
  line-height: 1;
  overflow-wrap: anywhere;
}
.jg-board-brand p {
  margin: 0;
  color: var(--jg-on-night-2);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.jg-board-diagnostics {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.jg-board-setup {
  align-self: center;
}
.jg-board [data-leaderboard-status] {
  margin: 0;
  align-self: start;
  color: var(--jg-on-night-2);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.jg-leaderboard {
  align-self: stretch;
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.jg-leaderboard th {
  padding: 0 18px 16px;
  border-bottom: 2px solid var(--jg-on-night);
  color: var(--jg-on-night-2);
  text-align: left;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.jg-leaderboard td {
  height: clamp(56px, 6.6vh, 76px);
  padding: 0 18px;
  border-bottom: 1px solid var(--jg-night-line);
  font-size: clamp(26px, 3vw, 48px);
  font-weight: 700;
}
.jg-lb-row--new {
  background: var(--jg-night-2);
  box-shadow: inset 6px 0 0 var(--jg-on-night);
}
.jg-board footer {
  position: static;
  margin-top: auto;
  padding-top: 16px;
  border: 0;
  color: var(--jg-on-night-2);
}
@media (max-width: 767px) {
  .jg-guest h1 {
    font-size: clamp(34px, 10vw, 42px);
  }
  .jg-board-shell {
    display: block;
    padding: 24px;
  }
  .jg-board-brand {
    align-items: start;
    gap: 20px;
  }
  .jg-board-heading {
    display: block;
  }
  .jg-board-brand h1 {
    margin: 8px 0 0;
    font-size: clamp(30px, 7vw, 44px);
  }
  .jg-board-brand .jg-logo {
    width: 100px;
  }
  .jg-board [data-leaderboard-status] {
    margin: 18px 0;
  }
  .jg-leaderboard td {
    height: 56px;
    font-size: 22px;
  }
  .jg-board footer {
    position: static;
    margin-top: 32px;
  }
}
@media (hover: hover) and (pointer: fine) {
  .jg-btn:hover:not(:active):not(:disabled):not([aria-disabled='true']),
  .jg button.jg-btn:hover:not(:active):not(:disabled):not([aria-disabled='true']) {
    background: #2a2925;
  }
  .jg-btn--secondary:hover:not(:active):not(:disabled):not([aria-disabled='true']),
  .jg button.jg-btn--secondary:hover:not(:active):not(:disabled):not([aria-disabled='true']) {
    background: var(--jg-surface-2);
  }
  .jg-dark .jg-btn:hover:not(:active):not(:disabled):not([aria-disabled='true']) {
    background: #fff;
  }
  .jg input:hover:not(:focus-visible):not(:disabled):not([aria-invalid='true']),
  .jg select:hover:not(:focus-visible):not(:disabled):not([aria-invalid='true']) {
    border-color: var(--jg-muted);
  }
}
@media (prefers-reduced-motion: reduce) {
  .jg *,
  .jg *::before,
  .jg *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Staff startup remains readable even if the application module/configuration fails. */
[data-staff-startup] {
  padding: clamp(24px, 5vw, 64px);
  background: #fff;
  color: #151515;
}
[data-staff-startup][data-state='error'] {
  min-height: 100dvh;
}
[data-staff-startup] h2 {
  color: #151515;
}
[data-staff-startup] a {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  color: #151515;
  text-decoration: underline;
}
.jg-board .jg-leaderboard th:first-child,
.jg-board .jg-leaderboard td:first-child {
  width: 12%;
  text-align: center;
}
.jg-board .jg-leaderboard th:last-child,
.jg-board .jg-leaderboard td:last-child {
  width: 20%;
  text-align: right;
}

/* Station design v2: explicit opt-in keeps all Admin, public and legacy station screens unchanged. */
.jg-host-v2 .ad-topbar.jg-host-v2-header {
  position: relative;
  height: auto;
  min-height: 76px;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--jg-ink);
  color: var(--jg-on-night);
}
.jg-host-v2 .jg-host-v2-header__logo {
  width: auto;
  height: 26px;
  max-width: 104px;
  filter: invert(1);
  flex-shrink: 0;
}
.jg-host-v2 .jg-host-v2-header__divider {
  width: 1px;
  height: 32px;
  background: var(--jg-ink-2);
  flex-shrink: 0;
}
.jg-host-v2 .jg-host-v2-header__identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-wrap: anywhere;
}
.jg-host-v2 .jg-host-v2-header__identity strong {
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.jg-host-v2 .jg-host-v2-header__identity span {
  font-size: 14px;
  color: var(--jg-on-night-2);
}
.jg-host-v2 .jg-host-v2-header__network {
  display: flex;
  gap: 8px;
  margin-left: auto;
  white-space: nowrap;
  font-size: 14px;
}
.jg-host-v2 [data-host-network][data-connection='online'] > span {
  color: var(--jg-success-bg);
}
.jg-host-v2 [data-host-network][data-connection='offline'] > span {
  color: var(--jg-warning);
}
.jg-host-v2 .ad-content {
  width: 100%;
  max-width: none;
  padding: 0;
}
.jg-host-v2 [data-station-panel] {
  border: 0;
  border-radius: 0;
  min-height: calc(100dvh - 76px);
  padding: clamp(24px, 4vw, 48px);
}
.jg-host-v2 [data-station-panel]:has(.jg-host-ready) {
  padding: 0;
}
.jg-host-v2 .jg-host-ready {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100dvh - 76px);
}
.jg-host-v2 .jg-host-ready__primary {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: clamp(24px, 5vw, 48px);
}
.jg-host-v2 .jg-host-ready__primary h2 {
  margin: 0;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.95;
  overflow-wrap: anywhere;
}
.jg-host-v2 .jg-host-ready__primary .jg-eyebrow {
  margin: 0;
}
.jg-host-v2 .jg-host-ready__function {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 300;
}
.jg-host-v2 .jg-host-ready__primary [data-scan] {
  width: 100%;
  max-width: 520px;
  min-height: 104px;
  font-size: 26px;
}
.jg-host-v2 .jg-host-ready__recent {
  min-width: 0;
  padding: 28px;
  border-top: 1px solid var(--jg-line);
  background: #e9e6de;
}
.jg-host-v2 .jg-host-ready__recent .jg-recent-scans {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.jg-host-v2 .jg-manual-keypad {
  min-width: 0;
  margin-top: 24px;
}
.jg-host-v2 .jg-manual-keypad__readout {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 28px;
  border: 3px solid var(--jg-ink);
  background: var(--jg-surface);
}
.jg-host-v2 .jg-manual-keypad[data-state='error'] .jg-manual-keypad__readout {
  border-color: var(--jg-danger);
}
.jg-host-v2 .jg-manual-keypad__score {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 700;
  line-height: 1;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.jg-host-v2 .jg-manual-keypad__unit {
  font-size: 30px;
}
.jg-host-v2 .jg-manual-keypad__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.jg-host-v2 .jg-manual-keypad__grid button {
  width: 100%;
  min-height: 80px;
  border: 2px solid var(--jg-ink);
  border-radius: var(--jg-radius);
  background: var(--jg-surface);
  color: var(--jg-ink);
  font-size: 40px;
  font-weight: 700;
}
.jg-host-v2 [data-keypad-key='C'],
.jg-host-v2 [data-keypad-key='⌫'] {
  background: var(--jg-surface-2);
}
@media (min-width: 1000px) and (orientation: landscape) {
  .jg-host-v2 .jg-host-ready:not(.jg-host-ready--single) {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
  .jg-host-v2 .jg-host-ready__recent {
    border-top: 0;
    border-left: 1px solid var(--jg-line);
  }
}
@media (max-width: 600px) {
  .jg-host-v2 .ad-topbar.jg-host-v2-header {
    padding: 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .jg-host-v2 .jg-host-v2-header__identity {
    flex: 1;
  }
  .jg-host-v2 .jg-host-v2-header__network {
    margin-left: 0;
  }
}
.jg-host-v2 .jg-manual-score-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.jg-host-v2 .jg-manual-score-form > .jg-manual-keypad {
  order: 1;
}
.jg-host-v2 .jg-manual-score-form > button[type='submit'],
.jg-host-v2 .jg-manual-score-form > button:not([type]) {
  order: 2;
  min-height: 96px;
  font-size: 26px;
}
@media (min-width: 1000px) and (orientation: landscape) {
  .jg-host-v2 .jg-manual-keypad {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    grid-template-rows: auto 1fr;
    gap: 16px 32px;
  }
  .jg-host-v2 .jg-manual-keypad__readout {
    align-self: start;
  }
  .jg-host-v2 .jg-manual-keypad__grid {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
  }
}

/* Touch operation: preserve the existing named score inputs and keypad request contracts. */
@media (min-width: 768px) {
  .jg-host-v2 .jg-manual-keypad__score {
    font-size: clamp(120px, 15vw, 200px);
  }
  .jg-host-v2 .jg-manual-keypad__grid button {
    min-height: 96px;
    font-size: clamp(48px, 5vw, 64px);
  }
  .jg-host-v2 [data-station-panel] input[name='points'],
  .jg-host-v2 [data-station-panel] input[name='manual_points'] {
    min-height: 80px;
    font-size: 48px;
  }
  .jg-host-v2 [data-select-score-challenge] {
    min-height: 88px;
    font-size: 30px;
  }
  .jg-host-v2 [data-station-panel] p[role='alert'] > strong {
    display: block;
    font-size: 48px;
  }
  .jg-host-v2 [data-station-panel] p[role='status'] > .rd-status--passed {
    display: block;
    padding: 20px;
    font-size: clamp(42px, 6vw, 80px);
  }
}

/* Compact station-only layout: no fixed viewport clipping or hidden error content. */
.jg-host-v2 [data-station-language] {
  display: block;
  width: auto;
  max-width: 160px;
  min-height: 44px;
  margin: 6px 16px 6px auto;
  padding: 6px 30px 6px 12px;
  font-size: 14px;
}
.jg-host-v2 .ad-topbar.jg-host-v2-header {
  min-height: 60px;
  padding: 10px 20px;
  gap: 16px;
}
.jg-host-v2 [data-station-panel] {
  min-height: 0;
  padding: clamp(16px, 2.5vw, 28px);
}
.jg-host-v2 .jg-host-ready {
  min-height: 0;
}
.jg-host-v2 .jg-host-ready__primary {
  gap: 12px;
  padding: 20px;
}
.jg-host-v2 .jg-host-ready__primary h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.1;
}
.jg-host-v2 .jg-host-ready__function {
  font-size: clamp(18px, 2.5vw, 24px);
}
.jg-host-v2 .jg-host-ready__primary .jg-station-message {
  max-width: 48ch;
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}
.jg-host-v2 .jg-host-ready__primary [data-scan],
.jg-host-v2 .jg-host-ready__primary [data-guest-support] {
  width: 100%;
  max-width: 520px;
  min-height: 56px;
  font-size: clamp(18px, 2.5vw, 22px);
}
.jg-host-v2 .jg-host-ready__primary footer {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.jg-host-v2 .jg-host-ready__recent {
  padding: 20px;
}
.jg-host-v2 .jg-host-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
  margin: 16px 0;
}
.jg-host-v2 .jg-host-action {
  min-width: 0;
  padding: 18px;
  border: 2px solid var(--jg-line);
  border-radius: 8px;
  background: var(--jg-paper);
}
.jg-host-v2 .jg-host-action--prize {
  border-color: var(--jg-ink);
}
.jg-host-v2 .jg-host-action h3 {
  margin: 0 0 10px;
  font-size: 24px;
}
.jg-host-v2 .jg-host-action p {
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.jg-host-v2 .jg-host-action .jg-btn {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font-size: 18px;
}
.jg-host-v2 [data-giveaway-result]:empty {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.jg-host-v2 .jg-host-action[data-status='redeemed'] [data-host-prize-status] {
  font-weight: 700;
}
.jg-host-v2 .jg-host-action[data-status='unknown'] [data-host-prize-status] {
  font-weight: 700;
  border-left: 4px solid currentColor;
  padding-left: 10px;
}
@media (max-width: 480px) {
  .jg-host-v2 .jg-host-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  .jg-host-v2 .jg-host-action {
    padding: 14px;
  }
}

/* A10: station-only compact controls; keep error/queue content in normal flow. */
.jg-host-v2 .ad-topbar.jg-host-v2-header {
  min-height: 64px;
  gap: 12px;
  padding: 8px 20px;
  flex-wrap: wrap;
}
.jg-host-v2 .jg-host-v2-header__logo {
  height: 28px;
}
.jg-host-v2 .jg-host-v2-header__identity {
  flex: 1 1 180px;
}
.jg-host-v2 .jg-host-v2-header__network {
  margin-left: auto;
  max-width: 24ch;
  white-space: normal;
  font-size: 12px;
  line-height: 1.35;
}
.jg-host-v2 .jg-host-v2-header__more {
  position: relative;
}
.jg-host-v2 .jg-host-v2-header__more > summary {
  min-height: 44px;
  padding: 10px 12px;
  cursor: pointer;
  border: 1px solid var(--jg-on-night-2);
  border-radius: 8px;
  font-size: 14px;
}
.jg-host-v2 .jg-host-v2-header__more > summary:focus-visible,
.jg-host-v2 .jg-host-v2-header__options select:focus-visible {
  outline: 3px solid var(--jg-warning);
  outline-offset: 3px;
}
.jg-host-v2 .jg-host-v2-header__options {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 4;
  width: min(300px, calc(100vw - 40px));
  padding: 16px;
  background: var(--jg-ink);
  color: var(--jg-on-night);
  border: 1px solid var(--jg-on-night-2);
  border-radius: 8px;
  box-shadow: 0 8px 24px #0003;
  overflow-wrap: anywhere;
}
.jg-host-v2 .jg-host-v2-header__options label {
  display: grid;
  gap: 6px;
}
.jg-host-v2 .jg-host-v2-header__options [data-station-language] {
  width: 100%;
  max-width: none;
  min-height: 44px;
  margin: 0;
  font-size: 16px;
  color: var(--jg-ink);
  background: var(--jg-paper);
}
.jg-host-v2 .jg-host-v2-header__options p {
  margin: 12px 0 0;
  font-size: 14px;
}
.jg-host-v2 .jg-host-v2-header__options time {
  font-family: var(--ad-font-mono);
}
.jg-host-v2 .jg-host-ready__primary h2 {
  font-size: 32px;
}
.jg-host-v2 .jg-host-ready__primary [data-scan] {
  min-height: 64px;
}
.jg-host-v2 .jg-host-ready__primary [data-guest-support] {
  min-height: 56px;
}
.jg-host-v2 .jg-host-ready__primary {
  align-content: start;
  gap: 12px;
}
.jg-host-v2 .jg-host-ready__recent {
  align-content: start;
}
@media (max-width: 600px) {
  .jg-host-v2 .ad-topbar.jg-host-v2-header {
    padding-inline: 12px;
  }
  .jg-host-v2 .jg-host-v2-header__identity {
    flex-basis: 120px;
  }
  .jg-host-v2 .jg-host-v2-header__identity strong {
    font-size: 16px;
  }
  .jg-host-v2 .jg-host-v2-header__network {
    order: 4;
    max-width: none;
    width: 100%;
  }
}

.jg-host-v2 .jg-host-v2-header__options [data-station-header-action] {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid var(--jg-on-night-2);
  border-radius: 8px;
  color: var(--jg-on-night);
  background: transparent;
  white-space: normal;
  font: inherit;
}
.jg-host-v2 .jg-host-v2-header__options [data-station-header-action]:focus-visible {
  outline: 3px solid var(--jg-warning);
  outline-offset: 3px;
}

/* A12: keep names bounded and authoritative points visible on a wide display. */
.jg-board .jg-board-brand .jg-logo {
  width: 160px;
  height: 64px;
  object-fit: contain;
}
.jg-board .jg-board-heading {
  justify-content: flex-end;
}
.jg-board .jg-board-heading p {
  display: none;
}
.jg-board .jg-board-heading h1 {
  white-space: nowrap;
}
.jg-board .jg-leaderboard {
  table-layout: fixed;
}
.jg-board .jg-lb-cell--rank {
  width: 4ch;
}
.jg-board .jg-lb-cell--points {
  width: 6ch;
  text-align: right;
  font-family: var(--ad-font-mono);
  white-space: nowrap;
}
.jg-board .jg-lb-cell--alias {
  max-width: 28ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jg-board [data-leaderboard-status] {
  font-family: var(--ad-font-mono);
}
.jg-board [data-leaderboard-status][data-state='pending'],
.jg-board [data-leaderboard-status][data-state='error'] {
  color: var(--jg-warning);
}
.jg-board-stage-banner {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--jg-warning);
  color: var(--jg-warning);
  font: 12px var(--ad-font-mono);
}
@media (max-width: 600px) {
  .jg-board .jg-board-brand {
    gap: 12px;
    align-items: center;
  }
  .jg-board .jg-board-brand .jg-logo {
    width: 100px;
    height: 40px;
  }
  .jg-board .jg-board-heading h1 {
    font-size: clamp(20px, 5vw, 30px);
    white-space: normal;
  }
  .jg-board .jg-leaderboard :is(th, td) {
    padding-inline: 8px;
  }
}
