:root {
  --bg: #f4efe6;
  --panel: #fffdf8;
  --panel-strong: #f7efe2;
  --line: #ddd1bf;
  --text: #2f2419;
  --muted: #73624d;
  --accent: #0d6b57;
  --accent-soft: #dff4ec;
  --danger-soft: #f7e1d8;
  --shadow: 0 18px 40px rgba(74, 49, 17, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(13, 107, 87, 0.12), transparent 28%),
    linear-gradient(180deg, #f8f3ea 0%, var(--bg) 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  border-right: 1px solid var(--line);
  padding: 28px 22px;
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(10px);
}

.brand-kicker,
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand h1,
.hero h2,
.panel h2 {
  margin: 8px 0 0;
  font-weight: 600;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.nav a {
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: 0.2s ease;
}

.nav a:hover {
  border-color: var(--line);
  background: var(--panel);
}

.main {
  padding: 28px;
}

.hero {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 22px;
}

.hero.compact {
  grid-template-columns: 1fr;
}

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

.hero > div:first-child,
.hero-card,
.panel,
.card {
  padding: 24px;
}

.hero p,
.panel p,
.muted {
  color: var(--muted);
  line-height: 1.6;
}

.hero-value {
  font-size: 28px;
  margin: 10px 0 6px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card span {
  color: var(--muted);
  font-size: 14px;
}

.card strong {
  font-size: 34px;
}

.card.accent {
  background: var(--accent-soft);
}

.grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  margin-bottom: 22px;
}

.panel-head {
  margin-bottom: 18px;
}

.stat-list {
  display: grid;
  gap: 14px;
}

.stat-list div,
.summary-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--panel-strong);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.summary-item strong,
.stat-list strong {
  font-size: 22px;
}

.simple-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
}

.import-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.import-form input[type="file"] {
  flex: 1 1 260px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: #fff;
}

.status-box,
.empty {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--panel-strong);
  color: var(--muted);
}

.status-box.success {
  background: var(--accent-soft);
  color: #114c3d;
}

.status-box.error {
  background: var(--danger-soft);
  color: #8a3b20;
}

.table-wrap {
  overflow: auto;
}

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

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

th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .shell,
  .hero,
  .grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
