:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  color: #182520;
  background: #edf2ee;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  padding: clamp(0.75rem, 4vw, 2rem);
}

.panel {
  width: min(100%, 31rem);
  padding: clamp(1rem, 5vw, 2.5rem);
  background: #fff;
  border: 1px solid #d4dfd7;
  border-radius: 1.125rem;
  box-shadow: 0 0.75rem 2.5rem rgb(29 55 42 / 7%);
}

h1 {
  margin: 0;
  font-size: clamp(1.65rem, 5vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.intro,
.hint {
  color: #4c5d53;
  line-height: 1.5;
}

.intro {
  margin: 0.65rem 0 1.6rem;
}

label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  font-weight: 650;
}

input,
button {
  width: 100%;
  min-height: 3rem;
  border: 1px solid #a7b8ad;
  border-radius: 0.55rem;
  font: inherit;
}

input {
  padding: 0.62rem 0.8rem;
  background: #fff;
  color: inherit;
}

input:disabled {
  background: #f3f6f3;
}

.hint {
  margin: 0.45rem 0 1rem;
  font-size: 0.82rem;
}

button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  background: #185b43;
  color: #fff;
  border-color: transparent;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: #104832;
}

button:disabled {
  background: #e4ece6;
  color: #46594c;
  cursor: default;
}

.arrow {
  flex: none;
  font-size: 1.25rem;
  line-height: 1;
}

:focus-visible {
  outline: 2px solid #185b43;
  outline-offset: 3px;
}

.connection {
  margin: 1.25rem 0 0;
  padding-top: 0.95rem;
  border-top: 1px solid #dce6de;
  color: #4c5d53;
  font-size: 0.85rem;
  line-height: 1.45;
}

.result {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.result:empty {
  margin: 0;
}

.error {
  color: #962c2c;
}
