:root{
  --bg:#ffffff;
  --fg:#0f172a;
  --muted:#475569;
  --border:#e2e8f0;
  --card:#ffffff;
  --accent:#2563eb;
  --accent2:#1d4ed8;
  --soft:#f8fafc;

  --radius:14px;
  --shadow:0 6px 24px rgba(15, 23, 42, .08);
  --maxw:1000px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background:var(--bg);
  color:var(--fg);
  line-height:1.5;
}

a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}

.container{
  max-width:var(--maxw);
  margin:0 auto;
  padding:24px 16px;
}

.header{
  padding:18px 0 10px;
}
.kicker{
  font-size:.9rem;
  color:var(--muted);
  margin:0 0 6px;
}
h1{
  font-size:clamp(1.6rem, 3vw, 2.1rem);
  margin:0 0 8px;
  letter-spacing:-0.02em;
}
.subtitle{
  margin:0;
  color:var(--muted);
  max-width:72ch;
}

.notice{
  margin:18px 0;
  padding:12px 14px;
  border:1px solid var(--border);
  background:var(--soft);
  border-radius:12px;
  color:var(--muted);
  font-size:.95rem;
}

.grid{
  display:grid;
  gap:14px;
}
@media (min-width: 860px){
  .grid.cols-2{ grid-template-columns:1fr 1fr; }
}

.card{
  border:1px solid var(--border);
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:16px;
}
.card h2{
  margin:0 0 6px;
  font-size:1.15rem;
  letter-spacing:-0.01em;
}
.card p{
  margin:0 0 14px;
  color:var(--muted);
}

.row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--fg);
  font-weight:600;
  cursor:pointer;
}
.btn:hover{ border-color:#cbd5e1; text-decoration:none; }
.btn.primary{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}
.btn.primary:hover{ background:var(--accent2); border-color:var(--accent2); }

.footer{
  margin-top:28px;
  padding-top:16px;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:.92rem;
}
.footer .line{ margin:6px 0; }
.footer a{ color:var(--muted); }
.footer a:hover{ color:var(--fg); }
.small{
  font-size:.88rem;
  color:var(--muted);
}

textarea,
select,
input[type="text"]{
  width:100%;
  max-width:420px;
  padding:10px;
  border-radius:10px;
  border:1px solid var(--border);
  font:inherit;
}

textarea{
  resize:vertical;
}

.btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

select{
  width:100%;
  max-width:420px;
  padding:10px;
  border-radius:10px;
  border:1px solid var(--border);
  font:inherit;
  background:#fff;
}

input[type="checkbox"]{
  width:16px;
  height:16px;
}

/* 2-column aligned controls */
.field-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  align-items:start;
}

.field-grid > div{
  min-width:0;
}

/* Make selects fill their column (uniform widths) */
.field-grid select{
  width:100%;
  max-width:100%;
}
