:root {
  color: #172026;
  background: #eef1f4;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

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

.converter {
  width: min(100%, 760px);
  background: #ffffff;
  border: 1px solid #d8dde3;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(32, 46, 57, 0.12);
  padding: 28px;
}

.heading {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #5b6975;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}

.form {
  display: grid;
  gap: 18px;
}

label,
legend {
  color: #2d3842;
  font-size: 0.92rem;
  font-weight: 700;
}

input[type="text"],
input:not([type]) {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: 1px solid #b9c2cc;
  border-radius: 6px;
  padding: 10px 12px;
  color: #172026;
  font: inherit;
}

fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  border: 1px solid #d8dde3;
  border-radius: 6px;
  padding: 12px;
}

fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

button {
  min-height: 40px;
  border: 1px solid #2f6f6d;
  border-radius: 6px;
  background: #2f6f6d;
  color: #ffffff;
  padding: 9px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #275f5d;
}

.result {
  display: block;
  min-height: 52px;
  margin-top: 20px;
  border: 1px solid #c7d8d6;
  border-radius: 6px;
  background: #eef8f6;
  padding: 14px;
  color: #17423f;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  overflow-wrap: anywhere;
}

.result.is-error {
  border-color: #e5b8b8;
  background: #fff1f1;
  color: #8b2525;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.examples button {
  border-color: #c8d0d8;
  background: #f7f9fb;
  color: #28343f;
}

.examples button:hover {
  background: #e9eef3;
}

@media (max-width: 560px) {
  .converter {
    padding: 20px;
  }

  h1 {
    font-size: 1.6rem;
  }
}
