:root{
  --blue: #1e88e5;
  --yellow:#fdd835;
  --red:#e53935;
  --bg:#0b0f14;
  --card:#121a24;
  --text:#e9eef6;
  --muted:#a8b3c7;
  --border:#223044;
}

@media (prefers-color-scheme: light){
  :root{
    --bg:#f6f8fb;
    --card:#ffffff;
    --text:#121826;
    --muted:#4b5565;
    --border:#e4e8f0;
  }
}

*{box-sizing:border-box;}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
}
.header{
  border-bottom:1px solid var(--border);
  background: linear-gradient(90deg, rgba(30,136,229,.18), rgba(253,216,53,.12), rgba(229,57,53,.10));
}
.wrap{max-width:960px; margin:0 auto; padding:18px;}
.brand{display:flex; align-items:center; justify-content:space-between; gap:14px;}
.brand h1{font-size:18px; margin:0; letter-spacing:.2px;}
.badge{font-size:12px; padding:6px 10px; border:1px solid var(--border); border-radius:999px; color:var(--muted);}
.card{
  background: var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:18px;
  box-shadow: 0 6px 22px rgba(0,0,0,.12);
}
.grid{display:grid; gap:14px;}
.grid.two{grid-template-columns: repeat(2, minmax(0,1fr));}
@media(max-width:720px){ .grid.two{grid-template-columns:1fr;} }

.label{color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.12em;}
.value{font-size:26px; font-weight:700; margin-top:6px;}
.small{color:var(--muted); font-size:13px;}
.actions{display:flex; gap:10px; align-items:center; justify-content:flex-end;}
a.button, button{
  appearance:none;
  border:1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding:10px 12px;
  border-radius:10px;
  cursor:pointer;
  text-decoration:none;
  font-weight:600;
}
button.primary{
  background: rgba(30,136,229,.16);
  border-color: rgba(30,136,229,.40);
}
a.button:hover, button:hover{filter:brightness(1.05);}

a.linkbtn{
  display:inline-block;
  border:1px solid var(--border);
  padding:10px 12px;
  border-radius:10px;
  color: var(--text);
  text-decoration:none;
  font-weight:600;
}
a.linkbtn:hover{filter:brightness(1.05);}

.notice{
  border:1px solid var(--border);
  background: rgba(253,216,53,.14);
  padding:12px 14px;
  border-radius:12px;
  color: var(--text);
  margin: 14px 0;
}

.form{display:grid; gap:10px;}
input{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--border);
  background: transparent;
  color: var(--text);
}
select{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--border);
  background: transparent;
  color: var(--text);
}
.error{
  border:1px solid rgba(229,57,53,.55);
  background: rgba(229,57,53,.10);
  padding:10px 12px;
  border-radius:10px;
}

.success{
  border:1px solid rgba(46,125,50,.55);
  background: rgba(46,125,50,.12);
  padding:10px 12px;
  border-radius:10px;
}
.footer{
  margin-top:14px;
  color: var(--muted);
  font-size:12px;
}

.footer.metrics{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.footer.metrics .sep{
  opacity: .6;
}


.table{
  width:100%;
  border-collapse: collapse;
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
}
.table th, .table td{
  padding:10px 12px;
  border-bottom:1px solid var(--border);
  text-align:left;
}
.table th{font-size:12px; color: var(--muted); font-weight:700;}
.table tr:last-child td{border-bottom:none;}

