:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef2f5;
  color: #17202a;
}

* {
  box-sizing: border-box;
}

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

main {
  width: min(100%, 560px);
}

.panel {
  background: #ffffff;
  border: 1px solid #d7dee6;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(23, 32, 42, 0.12);
  padding: clamp(24px, 5vw, 40px);
}

.topline {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.1;
  margin: 0 0 16px;
}

p {
  color: #465360;
  line-height: 1.55;
  margin: 0 0 24px;
}

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

label {
  color: #33404d;
  display: grid;
  font-weight: 650;
  gap: 8px;
}

input {
  border: 1px solid #b8c3ce;
  border-radius: 6px;
  font: inherit;
  padding: 12px 14px;
}

button {
  background: #145c54;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  min-height: 44px;
  padding: 12px 16px;
}

button.secondary {
  background: #dfe6ec;
  color: #17202a;
}

.error {
  background: #fdeaea;
  border: 1px solid #f4b8b8;
  border-radius: 6px;
  color: #8b1e1e;
  padding: 12px 14px;
}

.ip {
  border-block: 1px solid #d7dee6;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: clamp(2rem, 7vw, 3.8rem);
  font-weight: 800;
  overflow-wrap: anywhere;
  padding: 26px 0;
}

dl {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

dl div {
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

dt {
  color: #5b6875;
}

dd {
  font-weight: 700;
  margin: 0;
  text-align: right;
}

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

  .panel {
    background: #171d23;
    border-color: #33404d;
    box-shadow: none;
  }

  p,
  label,
  dt {
    color: #b8c3ce;
  }

  input {
    background: #101418;
    border-color: #465360;
    color: #eef2f5;
  }

  button.secondary {
    background: #2a343f;
    color: #eef2f5;
  }

  .ip {
    border-color: #33404d;
  }
}
