:root {
  --blue: #1a4b8c;
  --blue-deep: #102c56;
  --sand: #f4f1ea;
  --line: #e4ddd2;
  --ink: #1b2433;
  --muted: #5d6776;
  --amber: #e07a2f;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--sand); }
a { color: var(--blue); }
button, input, textarea, select { font: inherit; }
.shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side { background: var(--blue-deep); color: #fff; padding: 22px 16px; }
.side a { display: block; color: #d7e3f5; text-decoration: none; padding: 8px 10px; border-radius: 10px; }
.side a:hover, .side a.is-active { background: rgba(255,255,255,0.1); color: #fff; }
.side .brand { color: #fff; font-family: var(--serif); font-size: 1.3rem; text-decoration: none; display: block; margin-bottom: 18px; }
.main { padding: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat strong { display: block; font-family: var(--serif); font-size: 2rem; }
h1 { font-family: var(--serif); font-weight: 560; margin: 0 0 8px; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
label { display: grid; gap: 6px; margin: 10px 0; font-weight: 640; font-size: 0.92rem; }
input, textarea, select { width: 100%; border: 1px solid #d9d3c8; border-radius: 10px; padding: 10px; }
textarea { min-height: 110px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { background: var(--blue); color: #fff; border: 0; border-radius: 999px; padding: 10px 14px; text-decoration: none; cursor: pointer; display: inline-block; }
.btn.alt { background: #efeae2; color: var(--ink); }
.btn.warn { background: #9c341f; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; }
.note { background: #e7f6ee; padding: 10px 12px; border-radius: 12px; }
.bad { background: #fdecea; padding: 10px 12px; border-radius: 12px; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login .card { width: min(420px, 100%); }
.muted { color: var(--muted); }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .side { padding-bottom: 8px; }
}
