.home-button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.home-button svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.home-button:hover,
.home-button:focus-visible {
  background: rgba(255, 255, 255, .14);
  outline: 0;
}

.scan-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.scan-choice button {
  min-height: 54px;
  font-size: 15px;
}

.manual-scan-dialog {
  width: min(420px, calc(100% - 20px));
}

#manualScanCode {
  text-align: center;
  font-size: 22px;
  letter-spacing: .08em;
}

.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.connection-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border: 2px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  background: #e00000;
}

.connection-status.is-online .connection-dot {
  background: #36a41d;
}

.connection-status.is-offline .connection-dot {
  background: #e00000;
}

.workspace-page {
  width: 100%;
  max-width: 1000px;
}

.launch-intro {
  margin: 0 0 24px;
}

.launch-intro h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
}

.launch-intro p {
  max-width: 760px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.launch-intro strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.template-page {
  overflow: visible;
}

.template-page-header p {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
}

.template-page-body {
  padding: 18px;
}

.template-page .template-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  grid-template-columns: auto 1fr auto;
}

.help-content {
  padding: 20px;
}

.help-content > p {
  margin-bottom: 18px;
  color: var(--muted);
}

.contact-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.contact-list div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fafafa;
}

.contact-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.contact-list dd {
  margin: 5px 0 0;
  font-size: 17px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-list a {
  color: var(--blue);
  text-decoration: none;
}

@media (min-width: 900px) {
  .launch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .scan-choice {
    grid-template-columns: 1fr;
  }

  .launch-intro {
    margin-bottom: 18px;
  }

  .launch-intro h2 {
    font-size: 20px;
  }

  .launch-intro p {
    font-size: 14px;
  }

  .connection-status {
    font-size: 11px;
  }

  .template-page .template-actions {
    grid-template-columns: 1fr 1fr;
  }

  .template-page .template-actions span {
    display: none;
  }

  .template-page .template-actions .danger-button {
    grid-column: auto;
  }

  .help-content {
    padding: 16px;
  }
}
