:root{
  --bg: #f4f5f7;          /* light gray */
  --surface: #ffffff;     /* cards */
  --border: #e6e8ee;
  --text: #16181d;
  --muted: #5c6370;
  --accent: #1f8a4c;      /* green */
  --accent-2: #166a3a;
  --danger: #c0392b;
  --shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
  --radius: 16px;
}

*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
}

.container{
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.muted{ color: var(--muted); }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244,245,247,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 240px;
}

.logo{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background:
    radial-gradient(120% 120% at 10% 10%, rgba(31,138,76,0.35), rgba(31,138,76,0) 60%),
    repeating-linear-gradient(0deg, rgba(15,73,40,0.55) 0 4px, rgba(15,73,40,0.35) 4px 6px),
    repeating-linear-gradient(90deg, rgba(15,73,40,0.5) 0 9px, rgba(15,73,40,0.2) 9px 10px),
    linear-gradient(135deg, rgba(31,138,76,0.95), rgba(22,106,58,0.95));
  box-shadow: 0 10px 24px rgba(31,138,76,0.25);
}



.brand-name{
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-tagline{
  font-size: 12.5px;
  color: var(--muted);
}

.nav{
  display:flex;
  gap: 8px;
  align-items:center;
}

.tab{
  appearance:none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.65);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor:pointer;
  transition: transform .08s ease, border-color .12s ease, background .12s ease;
}
.tab:hover{ transform: translateY(-1px); border-color: rgba(31,138,76,0.35); }
.tab.active{
  border-color: rgba(31,138,76,0.55);
  background: rgba(31,138,76,0.10);
}

.hero{
  padding: 22px 0 8px;
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.hero-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.hero-badge{
  display:inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-2);
  background: rgba(31,138,76,0.10);
  border: 1px solid rgba(31,138,76,0.18);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.hero h1{
  margin: 0 0 10px;
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: -0.6px;
}

.hero p{
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.hero-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-metrics{
  display:grid;
  gap: 10px;
}

.metric{
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.metric-value{
  font-weight: 800;
  color: var(--accent-2);
  font-size: 18px;
}
.metric-label{
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.section{
  display:none;
  padding: 18px 0 26px;
}
.section.visible{ display:block; }

.section-head{
  margin: 8px 0 14px;
}
.section-head h2{
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.2px;
}

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

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}

.card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}

.card h3{
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.2px;
}

.pill{
  display:inline-flex;
  align-items:center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-2);
  border: 1px solid rgba(31,138,76,0.20);
  background: rgba(31,138,76,0.10);
  white-space: nowrap;
}

.card-text{
  margin: 10px 0 10px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.bullets{
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 13.5px;
}
.bullets li{ margin: 6px 0; color: var(--muted); }

.panel{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.panel-title{
  font-weight: 800;
  letter-spacing: -0.2px;
}

.panel-actions{ display:flex; gap: 8px; }

.panel-foot{
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
}

.table-wrap{ overflow:auto; }

.table{
  width: 100%;
  border-collapse: collapse;
}

.table thead th{
  text-align:left;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(244,245,247,0.65);
}

.table tbody td{
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 14px;
}

.th-right, .td-right{ text-align:right; }

.status{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.7);
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 700;
}

.status-ok{
  border-color: rgba(31,138,76,0.25);
  background: rgba(31,138,76,0.10);
  color: var(--accent-2);
}
.status-warn{
  border-color: rgba(190, 130, 0, 0.28);
  background: rgba(190, 130, 0, 0.10);
  color: #7a5500;
}
.status-info{
  border-color: rgba(66, 133, 244, 0.25);
  background: rgba(66, 133, 244, 0.10);
  color: #1f4aa8;
}

.btn{
  appearance:none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.7);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  cursor:pointer;
  transition: transform .08s ease, border-color .12s ease, background .12s ease;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(31,138,76,0.35); }

.btn-small{
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
}

.btn-primary{
  border-color: rgba(31,138,76,0.40);
  background: linear-gradient(135deg, rgba(31,138,76,0.95), rgba(22,106,58,0.95));
  color: #fff;
}
.btn-primary:hover{ border-color: rgba(31,138,76,0.55); }

.btn-ghost{
  background: rgba(255,255,255,0.45);
}

.btn-danger{
  border-color: rgba(192, 57, 43, 0.35);
  background: rgba(192, 57, 43, 0.08);
  color: #8f2b22;
}
.btn-danger:hover{ border-color: rgba(192, 57, 43, 0.55); }

.footer{
  margin-top: 26px;
  border-top: 1px solid var(--border);
  background: rgba(244,245,247,0.85);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 16px 0;
  gap: 12px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .grid{ grid-template-columns: 1fr; }
  .topbar-inner{ flex-direction: column; align-items: flex-start; }
}