:root {
  --bg: #f5efe4;
  --ink: #1f2a2c;
  --muted: #5f6b6d;
  --brand: #b85c38;
  --brand-2: #386641;
  --paper: rgba(255, 252, 246, 0.88);
  --line: rgba(31, 42, 44, 0.12);
  --shadow: 0 18px 50px rgba(31, 42, 44, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(184, 92, 56, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(56, 102, 65, 0.18), transparent 24%),
    var(--bg);
}
.bg {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px;
  position: relative;
}
.panel {
  margin-bottom: 24px;
}
.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
  align-items: start;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand);
  font-size: 12px;
}
h1 {
  font-size: 56px;
  margin: 8px 0 12px;
}
h2, h3 {
  margin-top: 0;
}
.subtitle, .hint, .detail, .list {
  color: var(--muted);
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.toolbar, .actions, .row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.toolbar {
  justify-content: space-between;
  margin-bottom: 18px;
}
.page-msg {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(56, 102, 65, 0.12);
  color: #25442d;
  border: 1px solid rgba(56, 102, 65, 0.18);
}
.page-msg.error {
  background: rgba(184, 92, 56, 0.12);
  color: #7d2f12;
  border-color: rgba(184, 92, 56, 0.18);
}
input, select, button {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-size: 14px;
}
button {
  cursor: pointer;
  background: var(--ink);
  color: #fff;
  border: none;
  transition: transform 0.16s ease, opacity 0.16s ease;
}
button:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}
button.ghost {
  background: #e8dfd2;
  color: var(--ink);
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}
.field {
  display: block;
  margin-bottom: 12px;
}
.field span {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
.field small,
.field-desc {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}
.check input {
  width: auto;
}
.list {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
}
.list-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.75);
}
.list-item strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}
.detail-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,0.72);
}
.detail-actions {
  display: flex;
  gap: 12px;
  margin: 16px 0;
}
.binding {
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
.hidden {
  display: none;
}
@media (max-width: 900px) {
  .hero, .grid.two {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 42px;
  }
}
