:root{
  --bg:#f4f6fb;
  --card:#ffffff;
  --panel:#f8fafc;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e2e8f0;
  --primary:#2563eb;
  --primary-dark:#1d4ed8;
  --danger:#dc2626;
}

/* Reset */
*{box-sizing:border-box}

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* Layout */
.container{
  max-width:1200px;
  margin:0 auto;
  padding:20px;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:20px;
  padding:20px;
  box-shadow:0 10px 25px rgba(0,0,0,.06);
}

/* Header */
.page-header{
  margin:-20px -20px 20px;
  padding:18px 20px;
  border-bottom:1px solid var(--border);
  background:linear-gradient(180deg,#fff,#f8fafc);
  border-radius:20px 20px 0 0;
}

.brand{
  display:flex;
  gap:14px;
  align-items:center;
}

.brand-mark{
  width:44px;
  height:44px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Typography */
h1{margin:0;font-size:22px}
.lead{margin:2px 0 0;color:var(--muted);font-size:13px}

.section-title{
  margin:26px 0 12px;
  font-size:13px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  border-bottom:1px dashed var(--border);
  padding-bottom:6px;
}

label{
  font-size:13px;
  font-weight:700;
  display:block;
  margin-bottom:6px;
}

/* Panels */
.panel{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
}

/* Grids */
.grid{display:grid;gap:14px}
.grid.cols2{grid-template-columns:repeat(2,1fr)}
.grid.cols3{grid-template-columns:2fr 1fr 1fr}

/* Inputs */
input,textarea{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--border);
  font-size:14px;
}

textarea{resize:vertical}

/* Actions */
.actions{
  margin-top:20px;
  text-align:right;
}

.btn{
  padding:14px 22px;
  font-weight:800;
  border-radius:14px;
  border:none;
  cursor:pointer;
}

.btn-primary{
  background:linear-gradient(180deg,var(--primary),var(--primary-dark));
  color:#fff;
}

/* Notices */
.notice{
  padding:14px;
  border-radius:14px;
  margin-bottom:16px;
}

.notice.success{background:#ecfdf5;color:#065f46}
.notice.error{background:#fef2f2;color:#991b1b}

/* Footer */
.footer{
  text-align:center;
  margin-top:40px;
  font-size:12px;
  color:var(--muted);
}

/* Mobile */
@media(max-width:640px){
  .grid.cols2,.grid.cols3{grid-template-columns:1fr}
  .actions{text-align:center}
}