:root {
  --bg: #f2eee6;
  --paper: #fffaf0;
  --ink: #1f2a24;
  --muted: #687268;
  --line: #ded6c8;
  --brand: #2f6f5e;
  --brand-dark: #224d42;
  --error: #b23a33;
  --warning: #a66a00;
  --info: #28658a;
  --success: #2f7d4f;
  --shadow: 0 24px 70px rgba(50, 43, 32, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  background:
    radial-gradient(circle at 12% 16%, rgba(47, 111, 94, 0.18), transparent 30%),
    linear-gradient(135deg, #efe6d3 0%, #f7f3ea 45%, #dfe9df 100%);
}

button,
textarea {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 24px;
}

.hero {
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.intro {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
  gap: 22px;
  align-items: stretch;
}

.panel {
  min-height: 620px;
  border: 1px solid rgba(80, 68, 48, 0.14);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  margin-bottom: 5px;
  font-size: 22px;
}

.panel-head p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

button {
  border: 1px solid rgba(47, 111, 94, 0.22);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--brand-dark);
  background: #eef5ec;
  cursor: pointer;
}

button:hover {
  color: #fff;
  background: var(--brand);
}

textarea {
  display: block;
  width: 100%;
  min-height: 520px;
  resize: vertical;
  border: 0;
  outline: 0;
  padding: 24px;
  color: #1d2822;
  background: transparent;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  line-height: 1.72;
}

.result-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 20px;
  list-style: none;
}

.issue {
  border: 1px solid var(--line);
  border-left: 6px solid var(--info);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.issue-error {
  border-left-color: var(--error);
}

.issue-warning {
  border-left-color: var(--warning);
}

.issue-success {
  border-left-color: var(--success);
}

.issue-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.badge {
  border-radius: 999px;
  padding: 4px 10px;
  color: #fff;
  background: var(--brand-dark);
  font-size: 13px;
}

.location {
  color: var(--muted);
  font-size: 13px;
}

.message {
  margin-bottom: 10px;
  line-height: 1.65;
}

.excerpt {
  display: block;
  overflow-x: auto;
  border-radius: 12px;
  padding: 10px 12px;
  color: #26312c;
  background: #f3ead9;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  white-space: pre;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 18px 4px 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 22px, 720px);
    padding-top: 28px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .panel {
    min-height: auto;
    border-radius: 22px;
  }

  .panel-head {
    flex-direction: column;
  }

  textarea {
    min-height: 360px;
  }
}
