
:root{
  --bg:#f6f7fb;
  --panel:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --primary:#2563eb;
  --primary2:#1d4ed8;
  --ok:#16a34a;
  --shadow:0 10px 25px rgba(17,24,39,.08);
  --r:16px;
  --r2:12px;
  --max:1080px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
  line-height:1.45;
}
a{color:var(--primary); text-decoration:none}
a:hover{text-decoration:underline}

.topbar{
  position:sticky; top:0; z-index:50;
  background:rgba(246,247,251,.9);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.topbar-inner{
  max-width:var(--max);
  margin:0 auto;
  padding:10px 16px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  flex-wrap:wrap;
}
.brand{display:flex; align-items:center; gap:10px; font-weight:900}
.brand-badge{
  width:38px; height:38px; border-radius:14px;
  display:grid; place-items:center;
  background:linear-gradient(135deg, #2563eb, #22c55e);
  color:#fff;
}
.brand small{display:block; color:var(--muted); font-weight:700}
.nav{display:flex; gap:8px; flex-wrap:wrap}
.nav a{
  padding:10px 12px;
  border-radius:12px;
  font-weight:800;
  color:#111827;
}
.nav a:hover{background:#eef2ff; text-decoration:none}
.nav a.active{background:#e0e7ff; color:#1e3a8a}
.menu-btn{
  display:none;
  border:1px solid var(--border);
  background:#fff;
  padding:10px 12px;
  border-radius:12px;
  font-weight:900;
}
@media (max-width:900px){
  .nav{display:none; width:100%}
  .nav.open{display:flex}
  .menu-btn{display:inline-flex}
}

.container{max-width:var(--max); margin:0 auto; padding:18px 16px}
.grid{display:grid; gap:14px}
.grid-2{grid-template-columns:1fr 1fr}
.grid-3{grid-template-columns:1fr 1fr 1fr}
@media (max-width:900px){.grid-2,.grid-3{grid-template-columns:1fr}}

.card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--r);
  box-shadow:var(--shadow);
}
.card-header{
  padding:16px 18px;
  border-bottom:1px solid var(--border);
  display:flex; align-items:flex-start; justify-content:space-between; gap:10px; flex-wrap:wrap;
}
.card-title{margin:0; font-size:18px; font-weight:900}
.card-sub{color:var(--muted); font-size:13px; font-weight:700; margin-top:4px}
.card-body{padding:18px}
.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#f9fafb;
  font-weight:900;
  color:#374151;
  font-size:12px;
}

.stat{
  padding:16px 18px;
  border:1px solid var(--border);
  border-radius:var(--r);
  background:linear-gradient(180deg,#fff,#fbfbff);
  box-shadow:var(--shadow);
}
.stat .k{color:var(--muted); font-weight:800; font-size:13px}
.stat .v{font-weight:1000; font-size:28px; margin-top:6px}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:var(--r);
}
.table th,.table td{
  padding:12px 12px;
  border-bottom:1px solid var(--border);
  text-align:left;
  vertical-align:top;
  font-size:14px;
}
.table th{background:#f9fafb; color:#374151; font-weight:900}
.table tr:last-child td{border-bottom:none}
.actions{white-space:nowrap}

.field{display:grid; gap:6px; margin-bottom:12px}
label{font-weight:900; font-size:13px}
.helper{color:var(--muted); font-size:12px; font-weight:700}

input,select,textarea{
  width:100%;
  padding:12px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  font-size:14px;
}
textarea{min-height:92px; resize:vertical}
input:focus,select:focus,textarea:focus{
  outline:none;
  border-color: rgba(37,99,235,.65);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
input::placeholder, textarea::placeholder{color:#9ca3af}

.section-title{
  margin:18px 0 10px;
  font-size:14px;
  font-weight:1000;
  color:#111827;
}
.section{
  padding:14px 14px;
  border:1px solid var(--border);
  border-radius:var(--r);
  background:#fff;
  margin-bottom:12px;
}

.row-actions{display:flex; gap:8px; flex-wrap:wrap}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:900;
  color:#111827;
  cursor:pointer;
}
.btn:hover{background:#f3f4f6; text-decoration:none}
.btn.primary{background:var(--primary); border-color:var(--primary); color:#fff}
.btn.primary:hover{background:var(--primary2)}
.btn.success{background:#dcfce7; border-color:#bbf7d0; color:#14532d}
.btn.success:hover{background:#bbf7d0}
.btn.danger{background:#fee2e2; border-color:#fecaca; color:#991b1b}
.btn.danger:hover{background:#fecaca}

.pills{display:flex; gap:6px; flex-wrap:wrap}
.pill{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#f9fafb;
  font-weight:900;
  font-size:12px;
  color:#374151;
}

.notice{
  padding:12px 12px;
  border-radius:12px;
  border:1px solid #fecaca;
  background:#fff1f2;
  color:#991b1b;
  font-weight:900;
  margin-bottom:12px;
}

.checks{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:10px;
}
@media (max-width:700px){.checks{grid-template-columns:1fr}}

.check{
  display:flex; gap:8px; align-items:center;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  cursor:pointer;
}
.check input{width:auto}

.footer{
  padding:22px 0 34px;
  text-align:center;
  color:var(--muted);
  font-weight:700;
  font-size:13px;
}
