:root {
  color-scheme: light;
  --bg: #f3f6fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #dbe3ee;
  --teal: #0f766e;
  --teal-soft: #d7f3ef;
  --amber: #d97706;
  --amber-soft: #fff0d4;
  --rose: #be123c;
  --rose-soft: #ffe4e6;
  --shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #edf3f9 100%);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

.page {
  min-height: 100vh;
  padding: 24px 16px 48px;
  max-width: 680px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  border: 1px solid rgba(219, 227, 238, 0.9);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.hero-card h1,
#loading-card h1,
#error-card h1 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.35;
}

.status-row {
  margin-bottom: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: var(--teal-soft);
  color: var(--teal);
}

.status-pill.status-closed {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-pill.status-pending,
.status-pill.status-expired {
  background: var(--rose-soft);
  color: var(--rose);
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.form-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #f8fafc;
  padding: 0 16px;
}

.primary-button {
  min-height: 52px;
  border-radius: 16px;
  border: 0;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.primary-button[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.message {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.message.error {
  color: var(--rose);
}

.message.success {
  color: #15803d;
}

.hidden {
  display: none;
}
