:root {
  color-scheme: light;
  --accent: #EF4444;
  --text: #0f172a;
  --muted: #475569;
  --line: #dbe3ef;
  --soft: #f8fafc;
  --warning: #f59e0b;
  --safe: #047857;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #ffffff;
}

button,
textarea {
  font: inherit;
}

.shell {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 28px 18px 56px;
}

.workspace {
  display: grid;
  gap: 20px;
}

.masthead {
  padding-top: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2rem, 8vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.checker {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

label,
.section-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

textarea {
  width: 100%;
  min-height: 300px;
  resize: vertical;
  padding: 16px;
  color: var(--text);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  background: #ffffff;
  line-height: 1.55;
}

textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

#counter {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

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

.status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.result {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.verdict-row {
  display: grid;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.verdict-row strong {
  display: block;
  margin-top: 4px;
  font-size: 2rem;
  line-height: 1.1;
  text-transform: capitalize;
}

.type-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.type-line b {
  color: var(--text);
  text-align: right;
  text-transform: capitalize;
}

.result-grid {
  display: grid;
  gap: 18px;
}

article {
  min-width: 0;
}

h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #1e293b;
  line-height: 1.5;
}

@media (min-width: 760px) {
  .shell {
    padding-top: 54px;
  }

  .checker {
    padding: 20px;
  }

  .verdict-row {
    grid-template-columns: 1.4fr 0.6fr;
  }

  .result-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
