:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  color: #172b3c;
  background: #edf3f6;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none;
}

body {
  margin: 0;
  padding: clamp(1rem, 7vh, 5rem) 1rem 1rem;
}

.panel {
  max-width: 32rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 5vw, 2rem);
  border: 1px solid #d5e0e7;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 0.75rem 2rem rgb(23 43 60 / 8%);
}

h1 {
  margin: 0;
  font-size: clamp(1.55rem, 5.5vw, 2rem);
  line-height: 1.2;
}

.intro {
  margin: 0.75rem 0 1.25rem;
  color: #435769;
}

.account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #d5e0e7;
  overflow-wrap: anywhere;
}

.account-name {
  font-weight: 650;
}

.account-email {
  color: #435769;
  font-size: 0.875rem;
}

.sign-out {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.5rem;
  color: #1e4161;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.625rem;
  font: inherit;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: #fff;
  background: #1e4161;
}

.button-primary:hover {
  background: #17344e;
}

.button-primary:disabled {
  color: #fff;
  background: #4e6274;
  cursor: wait;
}

.button:focus-visible,
.sign-out:focus-visible,
textarea:focus-visible {
  outline: 3px solid #0961a6;
  outline-offset: 3px;
}

.result {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #d5e0e7;
}

.button-open {
  color: #fff;
  background: #075e54;
}

.button-open:hover {
  background: #064b43;
}

.connection {
  margin-block: 1rem 0.75rem;
}

label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
}

textarea {
  display: block;
  width: 100%;
  min-height: 5rem;
  padding: 0.75rem;
  border: 1px solid #8295a4;
  border-radius: 0.5rem;
  color: inherit;
  background: #f5f8fa;
  font: 1rem / 1.4 ui-monospace, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  resize: vertical;
}

.button-copy {
  border-color: #8295a4;
  color: #1e4161;
  background: #fff;
}

.button-copy:hover {
  background: #edf3f6;
}

.copy-status,
.error {
  margin: 0;
  overflow-wrap: anywhere;
}

.copy-status:not(:empty) {
  margin-top: 0.5rem;
  color: #435769;
}

.error:not(:empty) {
  margin-top: 0.875rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  color: #822626;
  background: #fff0f0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
