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

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

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

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

/* Ultra-wide screens */
@media (min-width:1400px){
  .container{
    max-width:1320px;
  }
}

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

/* Headings */
h1{
  font-size:22px;
  margin:0 0 8px;
}

p.lead{
  margin:0 0 18px;
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
}

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

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

/* Grid */
.grid{
  display:grid;
  gap:14px;
}

@media(min-width:740px){
  .grid.cols2{
    grid-template-columns:1fr 1fr;
  }
}

/* Labels */
label{
  display:block;
  font-size:12.5px;
  font-weight:700;
  margin-bottom:6px;
  color:#1f2937;
}

/* Inputs */
input,
select,
textarea{
  width:100%;
  padding:14px;
  border-radius:14px;
  border:1px solid var(--border);
  font-size:15px;
  background:#fff;
  transition:border-color .15s, box-shadow .15s;
}

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

textarea{
  min-height:110px;
  resize:vertical;
}

/* Helper text */
.help{
  font-size:12px;
  color:var(--muted);
  margin-top:6px;
  line-height:1.35;
}

/* Buttons */
.btn{
  appearance:none;
  border:0;
  border-radius:14px;
  padding:14px 18px;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  transition:transform .05s ease, box-shadow .1s ease;
}

.btn:active{
  transform:translateY(1px);
}

.btn-primary{
  background:linear-gradient(180deg,var(--primary),var(--primary-dark));
  color:#fff;
  box-shadow:0 6px 14px rgba(37,99,235,.35);
}

.btn-secondary{
  background:var(--primary-soft);
  color:#1e3a8a;
  border:1px solid #dbeafe;
}

/* Actions */
.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

/* Required */
.req{
  color:var(--danger);
}

/* Notices */
.notice{
  padding:14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  margin-bottom:16px;
}

.notice.success{
  border-color:#bbf7d0;
  background:#f0fdf4;
}

.notice.error{
  border-color:#fecaca;
  background:#fef2f2;
}

/* Misc */
.small{
  font-size:12px;
  color:var(--muted);
}

/* Mobile tuning */
@media(max-width:500px){
  h1{font-size:20px}
  .card{padding:16px}
}
.footer{
  margin-top:40px;
  padding:16px 0;
  text-align:center;
  font-size:12px;
  color:var(--muted);
}
/* Header */
.page-header{
  margin:-20px -20px 20px;
  padding:18px 20px;
  border-bottom:1px solid var(--border);
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  border-radius:20px 20px 0 0;
}

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

.brand-mark{
  width:56px;
  height:56px;
  border-radius:14px;
  background:#000;
  color:#fff;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  letter-spacing:.05em;
  box-shadow:none;
}

.page-header h1{
  margin:0;
  font-size:22px;
}

.page-header .lead{
  margin:2px 0 0;
  font-size:13px;
}
/* Yes / No pill toggles (compact) */
.pill-group{
  display:flex;
  gap:8px;
}

.pill-group label{
  cursor:pointer;
}

.pill-group input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:56px;
  height:36px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  user-select:none;
  transition:all .12s ease;
}

.pill:hover{
  border-color:var(--primary);
}

.pill-group input:checked + .pill{
  background:linear-gradient(180deg,var(--primary),var(--primary-dark));
  color:#fff;
  border-color:var(--primary);
  box-shadow:0 3px 8px rgba(37,99,235,.25);
}