:root{
  --bg:#f5f7fb;
  --card:#ffffff;
  --muted:#6b7280;
  --text:#111827;
  --line:#e5e7eb;
  --accent:#2563eb;
  --accent2:#16a34a;
  --danger:#dc2626;
  --shadow:0 10px 25px rgba(0,0,0,.08);
  --radius:14px;
  --radius2:10px;
  --pad:18px;
  --max:980px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
}

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

.container{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding:28px 16px 60px;
}

.topbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border:1px solid var(--line);
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.brand{
  font-weight:800;
}

.badge{
  margin-left:8px;
  padding:3px 10px;
  border-radius:999px;
  background:#eef2ff;
  border:1px solid #c7d2fe;
  font-size:12px;
}

.card{
  margin-top:18px;
  padding:var(--pad);
  border:1px solid var(--line);
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

h1,h2,h3{margin:0 0 12px}
h2{font-size:22px}
h3{font-size:16px;color:var(--muted)}

label{font-weight:600}

input,select,textarea{
  width:100%;
  padding:11px 12px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#fff;
}

input:focus,select:focus,textarea:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(37,99,235,.15);
}

textarea{min-height:140px}

.btn{
  display:inline-flex;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
  font-weight:600;
}

.btn.primary{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
}

.btn.danger{
  background:#fee2e2;
  border-color:#fecaca;
  color:var(--danger);
}

.alert{
  padding:12px;
  border-radius:var(--radius2);
  border:1px solid var(--line);
  background:#f9fafb;
}

.alert.error{
  background:#fee2e2;
  border-color:#fecaca;
  color:var(--danger);
}

.list{list-style:none;padding:0}
.list li{
  padding:12px;
  border:1px solid var(--line);
  border-radius:10px;
  margin-bottom:10px;
}

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