:root{
  --ink:#2b3325;
  --muted:#66705b;
  --line:#dde3d5;
  --paper:#ffffff;
  --paper-soft:#f7f9f4;
  --accent:#818e6e;
  --accent-2:#6f7c5e;
  --accent-deep:#4f5a43;
}

*{box-sizing:border-box}

body{
  margin:0;
  color:var(--ink);
  font-family:ui-sans-serif,-apple-system,"Segoe UI",Roboto,Ubuntu,Arial,sans-serif;
  background:
    radial-gradient(900px 360px at 96% -10%, #818e6e24 0%, transparent 58%),
    #f1f4ed;
}

.wrap{max-width:980px;margin:28px auto;padding:0 16px}

.head{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
  text-align:center;
}

.head-logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.head-logo img{
  height:36px;
  width:auto;
  display:block;
}
.head h1{margin:0;font-size:30px;letter-spacing:.2px}
.head a{color:var(--accent);text-decoration:none;font-weight:700}
.head > a:last-child{
  display:inline-block;
  font-size:13px;
  color:#5b6750;
  border:1px solid #cfd8c5;
  padding:6px 10px;
  border-radius:6px;
  background:#f7faf2;
}
.head > a:last-child:hover{
  background:#edf3e5;
  border-color:#b9c6a8;
}

.card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:10px;
  padding:16px;
  margin:12px 0;
}

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

label{display:block;font-size:12px;color:var(--muted);margin:8px 0 6px;font-weight:700}
input,select{
  width:100%;
  border:1px solid #ccd5c4;
  border-radius:8px;
  padding:10px 12px;
  font-size:15px;
  background:#fff;
}

button{
  margin-top:12px;
  border:1px solid #6f7c5e;
  background:var(--accent);
  color:#fff;
  border-radius:8px;
  padding:10px 13px;
  font-weight:700;
  cursor:pointer;
}
button:hover{background:var(--accent-2)}

.out{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.kpi{
  background:var(--paper-soft);
  border:1px solid #d8dfd1;
  border-radius:8px;
  padding:10px;
}
.kpi .k{font-size:12px;color:var(--muted)}
.kpi .v{font-size:24px;font-weight:800;margin-top:4px}

.muted{color:var(--muted);font-size:13px}

@media (max-width:860px){
  .grid,.out{grid-template-columns:1fr}
  .head{text-align:center}
}
