:root {
  color-scheme: light;
  --bg: #f3f6f4;
  --surface: #ffffff;
  --soft: #f8fbfa;
  --ink: #17201e;
  --muted: #64726e;
  --line: #d8e2de;
  --teal: #16786d;
  --teal-dark: #0d5e55;
  --coral: #c86c58;
  --amber: #b98b35;
  --shadow: 0 22px 70px rgba(24, 43, 39, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(22, 120, 109, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(200, 108, 88, 0.1), transparent 32%),
    var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  width: min(1080px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 30px 0 56px;
}

.compact-shell {
  width: min(880px, calc(100vw - 32px));
}

.simple-topbar,
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  font-size: 25px;
  font-weight: 800;
}

.eyebrow {
  margin: 0;
  color: var(--coral);
  font-size: 14px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 2px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.16;
}

.status-badge {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--teal-dark);
  font-weight: 800;
}

.decision-hero {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.decision-hero h2 {
  margin: 8px 0 10px;
  max-width: 760px;
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.18;
}

.decision-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.reason-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.reason-strip article {
  min-height: 94px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
}

.reason-strip span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.reason-strip strong {
  display: block;
  line-height: 1.35;
  font-size: 18px;
}

.evidence-details {
  margin-bottom: 18px;
  border: 1px dashed #b9c9c4;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
}

.evidence-details summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--teal-dark);
  font-weight: 800;
}

.evidence-list {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
}

.evidence-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.soft-note {
  color: #7a6b50 !important;
}

.simple-form {
  display: grid;
  gap: 14px;
}

.simple-step,
.admin-panel,
.submission-card,
.success-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 36px rgba(24, 43, 39, 0.07);
}

.simple-step {
  display: grid;
  gap: 15px;
  padding: 22px;
}

.step-title {
  display: flex;
  gap: 12px;
  align-items: center;
}

.step-title > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #26322f;
  color: white;
  font-weight: 900;
}

.step-title h2 {
  margin: 0;
  font-size: 22px;
}

.choice-list {
  display: grid;
  gap: 10px;
}

.choice-list label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: #26322f;
  font-weight: 750;
}

input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.two-column {
  grid-template-columns: 230px 1fr;
  align-items: start;
}

.two-column .step-title {
  align-items: flex-start;
}

.field {
  display: grid;
  gap: 9px;
}

.field span {
  color: #26322f;
  font-weight: 800;
}

.full-width {
  grid-column: 2;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input,
select {
  min-height: 46px;
  padding: 0 13px;
}

textarea {
  padding: 12px 13px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 120, 109, 0.14);
}

.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 4px 4px;
}

.submit-row p,
.muted-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 9px;
  background: var(--teal);
  color: white;
  padding: 0 20px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

button:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.64;
  transform: none;
}

#submit-message[data-state="success"] {
  color: var(--teal-dark);
  font-weight: 800;
}

#submit-message[data-state="error"] {
  color: #b33d2d;
  font-weight: 800;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
}

.text-link {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
}

.success-card {
  width: min(700px, 100%);
  margin: 18vh auto 0;
  padding: 28px;
}

.success-card h1 {
  margin: 6px 0 8px;
}

.success-card p {
  color: var(--muted);
  line-height: 1.7;
}

.admin-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
}

.admin-panel .muted-text {
  grid-column: 1 / -1;
}

.submission-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.submission-card {
  padding: 18px;
}

.submission-card strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.submission-card dl {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px 12px;
  margin: 16px 0;
}

.submission-card dt {
  color: var(--muted);
}

.submission-card dd {
  margin: 0;
}

@media (max-width: 760px) {
  .app-shell,
  .compact-shell {
    width: min(100vw - 20px, 1080px);
    padding-top: 18px;
  }

  .simple-topbar,
  .topbar,
  .submit-row,
  .admin-panel {
    display: grid;
  }

  .reason-strip,
  .two-column {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: auto;
  }

  .decision-hero,
  .simple-step {
    padding: 18px;
  }

  button {
    width: 100%;
  }
}
