:root {
  color-scheme: light dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f8;
  color: #15191f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.panel {
  width: min(100%, 520px);
  padding: 24px;
  border: 1px solid #d7dde4;
  border-radius: 8px;
  background: #ffffff;
}

h1 {
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.2;
}

form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

input,
button {
  width: 100%;
  min-height: 44px;
  border-radius: 6px;
  font: inherit;
}

input {
  border: 1px solid #bdc6d1;
  padding: 10px;
  background: #ffffff;
  color: #15191f;
}

button {
  border: 0;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 700;
  background: #1f6feb;
  color: #ffffff;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.status {
  min-height: 22px;
  margin: 18px 0 0;
  font-size: 14px;
}

.status.error {
  color: #b42318;
}

.results {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #d7dde4;
  border-radius: 6px;
}

.result span {
  overflow-wrap: anywhere;
}

.result a {
  flex: 0 0 auto;
  color: #1f6feb;
  font-weight: 700;
}

@media (prefers-color-scheme: dark) {
  :root {
    background: #111418;
    color: #f3f5f7;
  }

  .panel,
  input {
    border-color: #333b45;
    background: #1a1f26;
    color: #f3f5f7;
  }

  .result {
    border-color: #333b45;
  }
}
