:root {
  color-scheme: light;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: #f3f6f9;
  color: #1c2733;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto;
}

.panel,
.result {
  background: #ffffff;
  border: 1px solid #d9e1ea;
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(35, 49, 66, 0.08);
}

.panel {
  padding: 28px;
}

.heading h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
}

.heading p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #506070;
  line-height: 1.55;
}

.form {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.dropzone {
  display: grid;
  gap: 10px;
  align-items: center;
  min-height: 116px;
  padding: 22px;
  border: 2px dashed #9eb1c7;
  border-radius: 8px;
  background:
    linear-gradient(45deg, #eef3f8 25%, transparent 25%),
    linear-gradient(-45deg, #eef3f8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef3f8 75%),
    linear-gradient(-45deg, transparent 75%, #eef3f8 75%);
  background-size: 26px 26px;
  background-position: 0 0, 0 13px, 13px -13px, -13px 0;
}

.dropzone span {
  font-weight: 700;
}

.dropzone input {
  width: 100%;
}

.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

label {
  color: #3a4959;
  font-size: 14px;
  font-weight: 600;
}

input[type="number"] {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 10px 11px;
  border: 1px solid #c8d3df;
  border-radius: 6px;
  font: inherit;
}

button {
  width: fit-content;
  border: 0;
  border-radius: 6px;
  padding: 12px 18px;
  background: #2366d1;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.results {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.result {
  padding: 22px;
}

.result-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.result p {
  margin: 8px 0 0;
  color: #506070;
}

code {
  overflow-wrap: anywhere;
}

.status {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
}

.pass {
  background: #e7f7ef;
  color: #0f7a3a;
}

.warn {
  background: #fff5d8;
  color: #8a6000;
}

.fail,
.error {
  background: #ffe8e8;
  color: #b42318;
}

.notice {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 8px;
}

.metrics,
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.metrics span,
.links a {
  border: 1px solid #d4dee8;
  border-radius: 6px;
  padding: 8px 10px;
  background: #f8fafc;
  color: #314153;
  text-decoration: none;
  font-size: 14px;
}

.preview {
  margin-top: 18px;
  overflow: auto;
  border: 1px solid #d4dee8;
  border-radius: 8px;
  background: #f8fafc;
}

.preview img {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 20px, 1120px);
    margin: 16px auto;
  }

  .panel,
  .result {
    padding: 18px;
  }

  .result-head {
    display: grid;
  }

  button {
    width: 100%;
  }
}
