:root{
  --toyota-red:#eb0a1e;
  --black:#0b0b0d;
  --white:#ffffff;
  --muted:#b9c0c9;
  --card:#121318;
  --border:#22242c;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, var(--black), #0f1117);
  color: var(--white);
}

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

a{ color: var(--white); text-decoration:none; }
a:hover{ text-decoration:underline; }

.navbar{
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(11,11,13,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 10px 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 800;
  letter-spacing: .4px;
}

.brand .dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background: var(--toyota-red);
  box-shadow: 0 0 18px rgba(235,10,30,.6);
}

.nav-links{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.nav-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(18,19,24,.8);
  font-weight: 600;
  font-size: 14px;
}

.nav-chip:hover{
  border-color: rgba(235,10,30,.55);
  text-decoration:none;
}

.nav-chip.red{
  border-color: rgba(235,10,30,.75);
}

.nav-chip.gold{
  border-color: #f5c542;
  box-shadow: 0 0 14px rgba(245,197,66,.35);
}
.nav-chip.white{
  border-color: #ffffff;
  color:#ffffff;
  box-shadow: 0 0 14px rgba(245,197,66,.35);
}
.nav-chip.active{
  border-color: var(--toyota-red);
  box-shadow: 0 0 18px rgba(235,10,30,.6);
}


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

.card{
  background: rgba(18,19,24,.92);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

h1,h2{ margin: 0 0 12px 0; }

.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 12px;
}

.table th, .table td{
  text-align:left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.table th{
  color: var(--muted);
  font-weight: 700;
}

.row-top{
  font-weight: 800;
}

.kpi{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 10px 0 6px 0;
}
.kpi span{
  border:1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(18,19,24,.65);
  font-size: 13px;
  color: var(--muted);
}

/* Mobile tweaks */
@media (max-width: 560px){
  .nav-inner{ flex-direction:column; align-items:flex-start; }
  .nav-links{ width:100%; }
  .nav-chip{ width:100%; justify-content:space-between; }
  .table th:nth-child(3), .table td:nth-child(3){ display:none; } /* hide Avg on tiny screens */
}


.page { max-width: 1100px; margin: 20px auto; padding: 0 14px; }
.card { background: #111; border: 1px solid #222; border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.card-title { font-weight: 700; margin-bottom: 10px; }
.big { font-size: 22px; font-weight: 800; }
.muted { opacity: .7; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 8px 6px; border-bottom: 1px solid #222; }
.tbl .total td { border-bottom: none; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }
