@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-Variable.ttf?v=20260805") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "DM Serif Display";
  src: url("fonts/DMSerifDisplay-Regular.ttf?v=20260805") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --cream: #F0F4F8;
  --navy: #0D1B2A;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-pale: #EFF6FF;
  --blue-light: #BFDBFE;
  --muted: #4A5A6B;
  --ink-light: #8A9BAD;
  --white: #FFFFFF;
  --danger: #DC2626;
  --success: #16803A;
  --border: rgba(13, 27, 42, 0.11);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  min-width: 320px;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--cream);
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  color: var(--navy);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  min-height: 68px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(240, 244, 248, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.brand {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.brand span { color: var(--blue); }

.product-name {
  color: var(--muted);
  font-size: 13px;
  padding-left: 18px;
  border-left: 1px solid var(--border);
}

.secure-label {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.secure-label i,
.stage-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 128, 58, 0.12);
}

main {
  width: min(1200px, 92vw);
  margin: 0 auto;
  flex: 1;
}

.join-layout {
  min-height: calc(100vh - 138px);
  padding: 76px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 104px);
}

.eyebrow,
.card-label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--blue);
}

.intro h1 {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: clamp(52px, 6.5vw, 82px);
  font-weight: 400;
  line-height: 1.01;
  letter-spacing: -0.025em;
}

.intro h1 em {
  color: var(--blue);
  font-weight: 400;
}

.intro-copy {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 350;
  line-height: 1.7;
}

.steps {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.steps li {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.steps span {
  color: var(--blue);
  font-family: var(--serif);
  font-size: 14px;
}

.access-card {
  padding: clamp(28px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: 4px;
  box-shadow: 0 22px 55px rgba(13, 27, 42, 0.10);
}

.access-card h2,
.session-heading h2 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.15;
}

.queue-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.queue-total {
  min-width: 82px;
  min-height: 76px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue-light);
  border-radius: 4px;
  background: var(--blue-pale);
  color: var(--blue-dark);
}

.queue-total strong {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.queue-total span {
  margin-top: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-copy {
  margin: 10px 0 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.color-label,
.size-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

button {
  min-height: 48px;
  padding: 0 19px;
  border: 0;
  border-radius: 3px;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
}

button:hover:not(:disabled) {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

button:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 2px;
}

button:disabled { cursor: not-allowed; opacity: 0.4; }

.waiting-state {
  min-height: 92px;
  padding: 19px;
  display: flex;
  align-items: center;
  gap: 17px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--cream);
}

.waiting-state strong,
.waiting-state span { display: block; }

.waiting-state strong {
  color: var(--navy);
  font-size: 14px;
}

.waiting-state span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.waiting-pulse {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-pale);
  position: relative;
}

.waiting-pulse::before,
.waiting-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: inherit;
  animation: waiting-wave 2.4s ease-out infinite;
}

.waiting-pulse::after { animation-delay: 1.2s; }

.waiting-pulse i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

@keyframes waiting-wave {
  from { opacity: 0.65; transform: scale(0.75); }
  to { opacity: 0; transform: scale(1.55); }
}

.incoming-request {
  padding: 20px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 4px;
  background: linear-gradient(145deg, #FFFFFF 20%, var(--blue-pale));
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.14);
}

.permission-request { margin-bottom: 14px; }

.incoming-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  float: left;
  margin-right: 13px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 20px;
  animation: incoming-ring 1.5s ease-in-out infinite;
}

@keyframes incoming-ring {
  50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.10); }
}

.incoming-copy p,
.incoming-copy h3 { margin: 0; }

.incoming-copy p {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.incoming-copy h3 {
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
}

.incoming-copy span {
  color: var(--muted);
  font-size: 12px;
}

#accept-call-btn {
  width: 100%;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.queue-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
}

.queue-list-heading {
  min-height: 42px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  background: #F8FAFC;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
}

.live-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 128, 58, 0.10);
}

.request-list {
  max-height: 370px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-color: var(--blue-light) transparent;
}

.request-item {
  min-height: 90px;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background 0.18s, opacity 0.18s;
}

.request-item:last-child { border-bottom: 0; }
.request-item:first-child { background: linear-gradient(90deg, var(--blue-pale), var(--white) 42%); }
.request-item.claiming { opacity: 0.7; }

.request-position {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--blue-light);
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue-dark);
  font-family: var(--serif);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.request-item:first-child .request-position {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.request-copy { min-width: 0; }

.request-name {
  display: block;
  overflow: hidden;
  color: var(--navy);
  font-size: 14px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-meta {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.request-meta i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #F59E0B;
}

.accept-request-btn {
  min-height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  white-space: nowrap;
}

.accept-request-btn span[aria-hidden="true"] { font-size: 15px; }

.status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.status.error { color: var(--danger); }
.status.ok { color: var(--success); }

.privacy-note {
  margin-top: 26px;
  padding: 14px 0 0;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.privacy-note span { color: var(--success); font-weight: 700; }
.hidden { display: none !important; }

.session-panel { padding: 48px 0 72px; }

.session-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.session-heading h2 { font-size: 38px; }
.session-heading .status {
  width: 220px;
  height: 40px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  text-align: right;
}

#stage {
  position: relative;
  width: min(100%, 760px);
  max-height: 68vh;
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(13, 27, 42, 0.18);
}

#remote-video,
#draw-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#remote-video { object-fit: contain; }

#draw-canvas {
  cursor: not-allowed;
  touch-action: none;
}

#draw-canvas.draw-active { cursor: crosshair; }

.stage-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  background: rgba(13, 27, 42, 0.82);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

#toolbar {
  margin-top: 16px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(13, 27, 42, 0.05);
}

#toolbar .spacer { flex: 1; }
#toolbar button,
#toolbar label { flex: 0 0 auto; }

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tracking-indicator {
  width: 150px;
  flex: 0 0 150px;
  min-height: 48px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #F8FAFC;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.tracking-indicator i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-light);
}

.tracking-indicator.locked {
  border-color: #B9DEC5;
  background: #F4FBF6;
  color: var(--success);
}

.tracking-indicator.locked i {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 128, 58, 0.10);
}

.tracking-indicator.acquiring,
.tracking-indicator.degraded {
  border-color: #E9D5A8;
  background: #FFFBF1;
  color: #8A5A00;
}

.tracking-indicator.acquiring i,
.tracking-indicator.degraded i {
  background: #F59E0B;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.13);
}

.tracking-indicator.lost,
.tracking-indicator.failed,
.tracking-indicator.unavailable {
  border-color: #E8C8C5;
  background: #FFF8F7;
  color: #A43A32;
}

.tracking-indicator.lost i,
.tracking-indicator.failed i,
.tracking-indicator.unavailable i { background: var(--danger); }

.tracking-indicator.paused {
  border-color: #E9D5A8;
  background: #FFFBF1;
  color: #8A5A00;
}

.tracking-indicator.paused i {
  background: #F59E0B;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.13);
}

button.tool-control {
  min-height: 48px;
  border: 1px solid rgba(13, 27, 42, 0.14);
  border-radius: 8px;
  background: #F8FAFC;
  color: var(--navy);
  box-shadow: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

button.tool-control:hover:not(:disabled) {
  border-color: rgba(37, 99, 235, 0.32);
  background: #F1F5FA;
  transform: translateY(-1px);
}

button.tool-control:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.draw-mode-switch {
  position: relative;
  width: 178px;
  height: 48px;
  flex: 0 0 178px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  overflow: hidden;
  border: 1px solid rgba(13, 27, 42, 0.14);
  border-radius: 9px;
  background: #F1F4F8;
}

.draw-mode-switch .mode-slider {
  position: absolute;
  z-index: 0;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: 40px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(13, 27, 42, 0.09);
  transition: transform 180ms ease, border-color 180ms ease;
}

.draw-mode-switch[data-mode="ar"] .mode-slider {
  transform: translateX(100%);
}

.draw-mode-switch.is-paused .mode-slider {
  border-color: #E9D5A8;
  background: #FFFBF1;
}

.draw-mode-switch button {
  position: relative;
  z-index: 1;
  min-height: 40px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
}

.draw-mode-switch button:hover:not(:disabled) {
  background: transparent;
  color: var(--blue-dark);
  transform: none;
}

.draw-mode-switch button[aria-pressed="true"] { color: var(--blue-dark); }
.draw-mode-switch.is-paused #ar-mode-btn[aria-pressed="true"] { color: #8A5A00; }
.draw-mode-switch button:disabled { opacity: 0.38; }

.draw-mode-switch svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button.icon-control {
  width: 48px;
  min-width: 48px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

button.tool-control svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button.audio-control[data-state="on"] {
  border-color: rgba(13, 27, 42, 0.16);
  background: #F8FAFC;
  color: var(--navy);
}

button.audio-control[data-state="off"] {
  border-color: #E8C8C5;
  background: #FFF8F7;
  color: #A43A32;
}

button.audio-control[data-state="unavailable"] {
  border-color: var(--border);
  background: #F4F6F8;
  color: var(--ink-light);
}

.state-icon { display: none; }
.audio-control[data-state="on"] .icon-on { display: block; }
.audio-control:not([data-state="on"]) .icon-off { display: block; }

.color-label,
.size-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

#pen-color {
  width: 40px;
  height: 34px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--white);
  cursor: pointer;
}

.size-label {
  min-width: 198px;
}

#pen-size {
  width: 112px;
  accent-color: var(--blue);
  cursor: pointer;
}

#pen-size-value {
  width: 34px;
  height: 30px;
  flex: 0 0 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--cream);
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

button.tool-control.danger {
  border-color: #E5AAA5;
  background: #FFF3F2;
  color: #B42318;
}

button.tool-control.danger:hover:not(:disabled) {
  border-color: #D98279;
  background: #FFE9E7;
}

.checkpoint-card {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(13, 27, 42, 0.05);
}

.checkpoint-heading {
  min-height: 94px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--border);
}

.checkpoint-heading h3 {
  margin: 9px 0 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.15;
}

.current-checkpoint-summary {
  max-width: 360px;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid #E9D5A8;
  border-radius: 7px;
  background: #FFFBF1;
  color: #6F4900;
}

.current-checkpoint-summary span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.current-checkpoint-summary strong {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.checkpoint-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
  scrollbar-color: rgba(74, 90, 107, 0.35) transparent;
}

.checkpoint-scroll:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: -3px;
}

.checkpoint-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--navy);
  font-size: 12px;
}

.checkpoint-table th,
.checkpoint-table td {
  min-width: 176px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.checkpoint-table tr:last-child > * { border-bottom: 0; }
.checkpoint-table tr > *:last-child { border-right: 0; }

.checkpoint-table .axis-header {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 112px;
  width: 112px;
  padding: 0 14px;
  background: #F8FAFC;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
  box-shadow: 7px 0 12px -12px rgba(13, 27, 42, 0.55);
}

.checkpoint-groups th {
  height: 34px;
  padding: 0 14px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
}

.checkpoint-groups .axis-header {
  z-index: 4;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.58);
}

.checkpoint-step {
  height: 94px;
  padding: 13px 15px;
  vertical-align: top;
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

.checkpoint-number {
  margin-bottom: 8px;
  display: block;
  color: var(--blue);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.checkpoint-step.current {
  border-top: 2px solid #D99100;
  background: #FFFBF1;
  color: #6F4900;
}

.checkpoint-step.current .checkpoint-number { color: #A66A00; }

.checkpoint-step.future {
  background: #FAFBFC;
  color: var(--ink-light);
}

.checkpoint-step.future .checkpoint-number { color: #AAB5C0; }

.checkpoint-status {
  height: 58px;
  padding: 10px 14px;
  vertical-align: middle;
  background: var(--white);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.checkpoint-status[data-state="completed"] {
  background: #F4FBF6;
  color: var(--success);
}

.checkpoint-status[data-state="current"] {
  background: #FFFBF1;
  color: #8A5A00;
}

.checkpoint-status[data-state="pending"] { background: #FAFBFC; }

.status-mark {
  width: 23px;
  height: 23px;
  margin-right: 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.checkpoint-status[data-state="current"] .status-mark { background: #D99100; }

#session-ended-dialog {
  width: min(440px, calc(100vw - 36px));
  padding: 0;
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: 4px;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 28px 80px rgba(13, 27, 42, 0.28);
}

#session-ended-dialog::backdrop {
  background: rgba(13, 27, 42, 0.58);
  backdrop-filter: blur(3px);
}

#session-ended-dialog form { padding: 34px; }

#session-ended-dialog h2 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 400;
  line-height: 1.2;
}

#session-ended-message {
  margin: 12px 0 26px;
  color: var(--muted);
  line-height: 1.6;
}

#session-ended-ok { width: 100%; }

footer {
  min-height: 70px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  color: var(--ink-light);
  font-size: 12px;
}

footer a { text-decoration: none; }
footer a:hover { color: var(--blue); }

@media (max-width: 820px) {
  .site-header { padding: 15px 22px; flex-wrap: wrap; }
  .product-name { order: 3; width: 100%; padding: 10px 0 0; border: 0; border-top: 1px solid var(--border); }
  .secure-label { font-size: 10px; }
  main { width: min(100% - 36px, 620px); }
  .join-layout { padding: 52px 0; grid-template-columns: 1fr; gap: 44px; }
  .intro h1 { font-size: clamp(48px, 15vw, 70px); }
  .session-heading { align-items: start; flex-direction: column; }
  .session-heading .status { text-align: left; }
  .checkpoint-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .current-checkpoint-summary { width: 100%; max-width: none; }
}

@media (max-width: 520px) {
  .join-layout { padding-top: 38px; }
  .access-card { padding: 28px 22px; }
  .queue-heading { gap: 14px; }
  .queue-total { min-width: 72px; }
  .request-item { grid-template-columns: 38px minmax(0, 1fr); }
  .request-position { width: 38px; height: 38px; }
  .accept-request-btn { grid-column: 1 / -1; width: 100%; justify-content: space-between; }
  .checkpoint-table .axis-header { min-width: 74px; width: 74px; padding: 0 9px; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
