:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172b2a;
  background: #f2f6f5;
}

*, *::before, *::after { box-sizing: border-box; }

body { margin: 0; }

.workspace {
  width: min(100%, 36rem);
  margin-inline: auto;
  padding: clamp(1rem, 5vw, 2rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
  color: #315652;
  font-size: .875rem;
  font-weight: 700;
}

.brand-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: .55rem;
  background: #dcece8;
  color: #145c53;
}

.brand-icon svg { width: 1.2rem; }

.panel {
  padding: clamp(1.1rem, 5vw, 2rem);
  border: 1px solid #d9e5e1;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 26px #1d473c09;
}

h1 {
  margin: 0;
  font-size: clamp(1.65rem, 6vw, 2.125rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.intro {
  margin: .6rem 0 1.6rem;
  color: #485e5c;
  line-height: 1.5;
}

label {
  display: inline-block;
  margin-bottom: .5rem;
  font-size: .9rem;
  font-weight: 650;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .6rem;
}

input, button {
  min-height: 2.8rem;
  padding: .65rem .8rem;
  border: 1px solid #809792;
  border-radius: .5rem;
  font: inherit;
}

input { width: 100%; color: inherit; }

input:disabled { background: #f3f6f5; }

button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .45rem;
  border-color: transparent;
  background: #145e55;
  color: #fff;
  cursor: pointer;
  font-weight: 650;
}

button:hover:not(:disabled) { background: #0d4942; }
button:disabled { background: #e4ebe9; color: #506360; cursor: default; }
button svg { width: 1.05rem; flex: none; }
input:focus-visible, button:focus-visible { outline: 2px solid #127b6c; outline-offset: 2px; }

.hint, .connection, .error { font-size: .85rem; line-height: 1.45; }
.hint { margin: .55rem 0 0; color: #526662; }
.error { margin: 0; color: #902c24; overflow-wrap: anywhere; }

.error:not(:empty) {
  margin-top: .8rem;
  padding: .65rem .75rem;
  border: 1px solid #f2d7d2;
  border-radius: .5rem;
  background: #fff5f3;
}

.connection {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin: 1.3rem 0 0;
  padding-top: .9rem;
  border-top: 1px solid #e4ece9;
  color: #526662;
}

.connection::before {
  content: "";
  flex: none;
  width: .48rem;
  height: .48rem;
  align-self: flex-start;
  margin-top: .4rem;
  border-radius: 50%;
  background: #788a85;
}

.connection[data-state="ready"]::before { background: #16816b; }
.connection[data-state="error"]::before { background: #a63e32; }

@media (max-width: 25rem) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
}
