:root {
  color: #242229;
  background: #f7f6f3;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
}

main {
  width: min(34rem, calc(100% - 2rem));
  padding: 2rem;
  text-align: center;
}

h1 {
  margin: 1rem 0 0.4rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

p {
  margin: 0 0 1.25rem;
  color: #605e5c;
}

a {
  color: #0b6a48;
  font-weight: 650;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

#service-desk-host {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: #18211c;
  color-scheme: light;
}

.direct-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  color: #15563a;
  background: #ffffff;
  text-underline-offset: 3px;
}

.direct-link:focus {
  z-index: 1;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  clip-path: none;
}

#service-desk {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  border: 0;
}

.spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin: auto;
  display: block;
  border: 0.25rem solid #d8e9e1;
  border-top-color: #0b6a48;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
    border-color: #0b6a48;
  }
}

@media (prefers-color-scheme: dark) {
  #service-desk-host {
    color: #f5f5f5;
    background: #111318;
    color-scheme: dark;
  }

  .direct-link {
    color: #73d9b3;
    background: #111318;
  }

  :root {
    color: #f5f5f5;
    background: #111318;
  }

  p {
    color: #c8c6c4;
  }

  a {
    color: #73d9b3;
  }
}
