:root {
  --bg: #f4efe6;
  --panel: #fffdf8;
  --ink: #1d1b19;
  --muted: #6f655b;
  --line: #d7c9b5;
  --accent: #b9572d;
  --accent-dark: #8d4321;
  --danger: #8b1e1e;
  --shadow: 0 18px 40px rgba(86, 56, 31, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei UI", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(185, 87, 45, 0.12), transparent 28%),
    linear-gradient(180deg, #f8f4ec 0%, var(--bg) 100%);
}

.shell {
  width: min(1320px, calc(100vw - 32px));
  margin: 24px auto 48px;
}

.hero,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-size: 12px;
}

h1, h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.subhead {
  max-width: 560px;
  color: var(--muted);
}

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

.card {
  padding: 20px;
}

.card-compact {
  margin-top: 18px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.grid {
  display: grid;
  gap: 14px;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

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

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

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

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

button.ghost {
  background: #ece2d4;
  color: var(--ink);
}

button.ghost:hover {
  background: #e0d3c1;
}

button.danger {
  background: var(--danger);
}

button.wide {
  width: 100%;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
}

.meta,
.status {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f3eadf;
  color: var(--ink);
}

.hidden {
  display: none !important;
}

.login-card {
  margin-bottom: 18px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

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

@media (max-width: 980px) {
  .columns,
  .grid.two,
  .grid.three,
  .hero {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-actions {
    justify-self: start;
  }
}
