:root {
  color-scheme: light dark;
  --bg: #f4f0e9;
  --bg-accent: #efe5d8;
  --surface: #ffffff;
  --surface-muted: #f7f2ea;
  --text: #171514;
  --text-muted: #5f5b55;
  --brand: #0b5e4b;
  --brand-strong: #0a4a3a;
  --accent: #c88a4a;
  --border: rgba(20, 17, 16, 0.12);
  --shadow: 0 20px 46px rgba(17, 24, 39, 0.14);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --focus: 0 0 0 3px rgba(15, 107, 90, 0.25);
  --font-display: "Avenir Next", "Avenir", "Trebuchet MS", "Gill Sans", sans-serif;
  --font-body: "Avenir", "Trebuchet MS", "Gill Sans", sans-serif;
  --bp-mobile-max: 767px;
  --bp-tablet-min: 768px;
  --bp-tablet-max: 1180px;
  --bp-desktop-min: 1181px;
}

[data-theme="dark"] {
  --bg: #0f1211;
  --bg-accent: #161b19;
  --surface: #171c1b;
  --surface-muted: #1d2422;
  --text: #f3f0ea;
  --text-muted: #b8b2a9;
  --brand: #7ccab6;
  --brand-strong: #5fb59f;
  --accent: #d9a063;
  --border: rgba(243, 240, 234, 0.14);
  --shadow: 0 24px 46px rgba(0, 0, 0, 0.5);
  --focus: 0 0 0 3px rgba(124, 202, 182, 0.35);
}

* {
  box-sizing: border-box;
}


body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  background: radial-gradient(circle at top, rgba(200, 138, 74, 0.18), transparent 55%),
    radial-gradient(circle at bottom, rgba(11, 94, 75, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-accent), var(--bg));
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font-family: var(--font-body);
  color: inherit;
}

.page-shell {
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

.page-shell::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -200px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(200, 138, 74, 0.4), rgba(200, 138, 74, 0));
  pointer-events: none;
}

.page-shell::after {
  content: "";
  position: absolute;
  bottom: -220px;
  left: -220px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(11, 94, 75, 0.28), rgba(11, 94, 75, 0));
  pointer-events: none;
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 32px 0 64px;
  position: relative;
  z-index: 1;
}

.surface {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.surface-muted {
  background: var(--surface-muted);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

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

.header h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.card h3 {
  margin-top: 0;
  font-family: var(--font-display);
}

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

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.button {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 107, 90, 0.25);
}

.button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.6);
  color: var(--brand-strong);
  border: 1px solid var(--border);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px dashed rgba(200, 138, 74, 0.5);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  box-shadow: var(--focus);
}

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

.inline.wrap {
  flex-wrap: wrap;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  background: var(--surface-muted);
}

.notice {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(223, 155, 95, 0.4);
  background: rgba(223, 155, 95, 0.12);
  font-size: 13px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}

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

.icon-button {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}

.tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 107, 90, 0.12);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 600;
}

.fade-in {
  animation: fadeIn 0.4s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .container {
    padding: 20px 0 48px;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
  }
}
