:root {
  --bg: #f4efe7;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #fffdf9;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(31, 41, 55, 0.12);
  --accent: #c96442;
  --accent-dark: #8c3d24;
  --shadow: 0 22px 60px rgba(62, 39, 24, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(201, 100, 66, 0.2), transparent 30%),
    linear-gradient(160deg, #f6f1e8 0%, #efe7da 100%);
}

.page {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.hero {
  padding: 12px 4px 28px;
}

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

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
}

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

.panel {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

label span {
  color: var(--muted);
}

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

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(31, 41, 55, 0.16);
  border-radius: 14px;
  background: var(--surface-strong);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
}

.full-width {
  grid-column: 1 / -1;
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

button {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--accent) 0%, #d9895b 100%);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(201, 100, 66, 0.25);
}

.status {
  margin: 0;
  color: var(--muted);
}

.meta-notes {
  margin: 14px 0 0;
  color: var(--accent-dark);
  font-size: 13px;
}

.approval-copy {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.approval-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.approval-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #215732 0%, #3d8a58 100%);
  color: white;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.approval-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(33, 87, 50, 0.22);
}

.approval-button.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.8);
  border: 1px solid rgba(31, 41, 55, 0.08);
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-weight: 700;
}

td a {
  color: var(--accent-dark);
}

.empty-row td {
  color: var(--muted);
  text-align: center;
}

@media (max-width: 780px) {
  .page {
    width: min(100% - 20px, 1000px);
    padding-top: 28px;
  }

  .panel {
    padding: 18px;
  }

  .panel-header,
  .actions,
  .stats,
  .form-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .form-grid {
    display: grid;
  }
}
