:root{
  --leaf:#87A629;
  --earth:#9A9474;
  --graphite:#313325;
  --bg:#0f120d;
  --surface:#12160f;
  --surface2:#171c13;
  --text:#E9EBD8;
  --muted:#B8BAA0;
  --danger:#E05252;
  --border: rgba(233,235,216,0.10);
  --shadow: 0 8px 20px rgba(0,0,0,.25);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(135,166,41,0.18), transparent 60%),
              radial-gradient(1200px 600px at 80% 10%, rgba(154,148,116,0.16), transparent 55%),
              var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
a{ color:inherit; text-decoration:none; }
button,input,textarea,select{ font:inherit; }

.container{ max-width:1100px; margin:0 auto; padding:18px; }

.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.row{ display:flex; gap:14px; flex-wrap:wrap; }
.col{ flex:1 1 320px; min-width:280px; }

.topbar{
  position:sticky; top:0; z-index:20;
  backdrop-filter: blur(10px);
  background: rgba(15,18,13,0.72);
  border-bottom:1px solid var(--border);
}
.topbar-inner{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 18px; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:700; letter-spacing:.3px; }
.brand img{ width:26px; height:26px; }
.badge{ padding:6px 10px; border-radius:999px; border:1px solid var(--border); color:var(--muted); font-size:12px; }

.nav{ display:flex; gap:10px; flex-wrap:wrap; }
.nav a{
  padding:8px 10px; border-radius:999px;
  border:1px solid transparent;
  color:var(--muted);
}
.nav a.active{
  border-color: rgba(135,166,41,0.35);
  color: var(--text);
  background: rgba(135,166,41,0.10);
}
.nav a:hover{ border-color: var(--border); color: var(--text); }

.btn{
  border:none;
  border-radius: 999px;
  padding:10px 14px;
  cursor:pointer;
  transition: transform .06s ease, opacity .2s ease;
}
.btn:active{ transform: translateY(1px); }
.btn.primary{ background: rgba(135,166,41,0.95); color:#0b0e07; font-weight:700; }
.btn.secondary{ background: rgba(154,148,116,0.20); color: var(--text); border:1px solid rgba(154,148,116,0.35); }
.btn.ghost{ background: transparent; border:1px solid var(--border); color: var(--text); }
.btn.danger{ background: rgba(224,82,82,0.18); border:1px solid rgba(224,82,82,0.40); color: var(--text); }

.input, .textarea, .select{
  width:100%;
  background: rgba(255,255,255,0.03);
  border:1px solid var(--border);
  border-radius: 14px;
  padding:10px 12px;
  color: var(--text);
  outline:none;
}
.input:focus, .textarea:focus, .select:focus{
  border-color: rgba(135,166,41,0.40);
  box-shadow: 0 0 0 3px rgba(135,166,41,0.10);
}
.textarea{ min-height: 96px; resize: vertical; }

.h1{ font-size: 28px; margin:0 0 6px 0; }
.h2{ font-size: 18px; margin:0 0 10px 0; color: var(--text); }
.muted{ color: var(--muted); }
.small{ font-size: 13px; color: var(--muted); }

.kpi{ padding:14px; }
.kpi .value{ font-size: 28px; font-weight:800; margin-top:8px; }

.progress{
  height:10px; border-radius:999px;
  background: rgba(255,255,255,0.06);
  overflow:hidden;
  border:1px solid var(--border);
}
.progress > div{
  height:100%;
  background: linear-gradient(90deg, rgba(135,166,41,0.95), rgba(154,148,116,0.65));
}

.list{ display:flex; flex-direction:column; gap:10px; padding:12px; }
.item{
  padding:12px;
  border:1px solid var(--border);
  border-radius: 16px;
  background: rgba(0,0,0,0.12);
}
.item:hover{ border-color: rgba(233,235,216,0.16); }
.item-title{ font-weight:700; margin:0; }
.item-sub{ margin-top:6px; }

.grid2{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
@media(max-width:820px){ .grid2{ grid-template-columns: 1fr; } }

.divider{ height:1px; background: var(--border); margin:12px 0; }

.toast{
  position:fixed; right:16px; bottom:16px; z-index:50;
  background: rgba(0,0,0,0.5);
  border:1px solid var(--border);
  border-radius: 14px;
  padding:12px 14px;
  max-width: 340px;
  backdrop-filter: blur(10px);
  display:none;
}
.toast.show{ display:block; }
code{ background: rgba(255,255,255,0.06); padding:2px 6px; border-radius:8px; border:1px solid var(--border); }
