:root {
  --bg: #f4efe8;
  --panel: #fffdf8;
  --ink: #241c15;
  --muted: #6c6258;
  --line: #d8cdbf;
  --accent: #0b6e4f;
  --accent-2: #a63d40;
  --shadow: 0 14px 40px rgba(36, 28, 21, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(166, 61, 64, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(11, 110, 79, 0.12), transparent 26%),
    linear-gradient(180deg, #f8f3ec 0%, #efe7dc 100%);
}
.login-body { display: grid; min-height: 100vh; place-items: center; }
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  padding: 28px 20px;
  background: rgba(36, 28, 21, 0.92);
  color: #f8f3ec;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { font-size: 30px; margin-bottom: 24px; letter-spacing: 0.04em; }
.sidebar nav { display: grid; gap: 10px; }
.sidebar a {
  color: #f8f3ec;
  text-decoration: none;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
}
.content { padding: 28px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.stats, .grid { display: grid; gap: 18px; margin-bottom: 20px; }
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.compact { gap: 10px; margin-bottom: 0; }
.stats .card strong { display: block; font-size: 42px; }
.stats .card span { color: var(--muted); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
label { display: grid; gap: 8px; margin-bottom: 14px; font-weight: 600; }
input, textarea, select, button {
  width: 100%;
  font: inherit;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
button, .button {
  display: inline-block;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  border: 0;
  cursor: pointer;
}
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions form, .actions a { margin: 0; }
.flash { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; }
.flash.success { background: rgba(11, 110, 79, 0.12); }
.flash.error { background: rgba(166, 61, 64, 0.12); }
.bar-row { display: grid; grid-template-columns: 180px 1fr 50px; gap: 12px; align-items: center; margin-bottom: 12px; }
.bar { height: 14px; border-radius: 999px; background: #eadfce; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.preview-box { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.preview-image { max-width: 100%; border-radius: 12px; margin-top: 12px; }
.inner-card { margin: 14px 0; }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .stats, .grid.two { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr; }
}
