:root {
  --bg: #f4efe7;
  --panel: #fffaf3;
  --ink: #1f2933;
  --muted: #5b6773;
  --line: #d7c9b6;
  --brand: #9a3412;
  --brand-dark: #7c2d12;
  --accent: #0f766e;
  --warning: #fff1d6;
  --shadow: 0 24px 60px rgba(75, 56, 33, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(154, 52, 18, 0.14), transparent 28%),
    linear-gradient(180deg, #f8f1e8 0%, var(--bg) 100%);
  color: var(--ink);
}

.app-shell {
  padding: 24px;
}

.panel {
  max-width: 720px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid rgba(154, 52, 18, 0.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.panel-wide {
  max-width: 1180px;
}

.hero {
  margin-bottom: 24px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.brand-logo {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(85, 65, 150, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.brand-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.lede,
.muted {
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stats-grid.single {
  grid-template-columns: 1fr;
}

.stat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}

.stat-card.warning {
  background: var(--warning);
}

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

.form-grid label,
.detail-panel label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}

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

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

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

textarea {
  resize: vertical;
}

.checkbox-row {
  flex-direction: row !important;
  align-items: center;
  margin-top: 28px;
}

.checkbox-row input {
  width: auto;
}

button {
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
  padding: 14px 20px;
  font-weight: 700;
  cursor: pointer;
}

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

.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
}

.list-panel,
.detail-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  min-height: 420px;
}

.report-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 12px;
  cursor: pointer;
  background: #fffdfa;
}

.report-card.active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

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

@media (max-width: 800px) {
  .app-shell {
    padding: 12px;
  }

  .panel {
    padding: 18px;
    border-radius: 22px;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .brand-logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

  .form-grid,
  .dashboard-grid,
  .detail-meta {
    grid-template-columns: 1fr;
  }
}
