:root {
  --bg: #0f172a;
  --card: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #22c55e;
  --border: #334155;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif;
  background: linear-gradient(180deg, #0b1020, #0f172a);
  color: var(--text);
}
.container {
  max-width: 860px;
  margin: 32px auto;
  padding: 0 16px;
}
.card {
  background: rgba(17,24,39,.9);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
h1 { margin: 0 0 14px; font-size: clamp(1.4rem,3vw,2rem); }
p.lead { color: var(--muted); margin-top: 0; }
label { display: block; margin: 16px 0 6px; font-weight: 600; }
textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-size: 15px;
  background: #0b1220;
  color: var(--text);
}
button, .btn {
  display: inline-block;
  margin-top: 16px;
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  background: var(--accent);
  color: #052e16;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.msg-ok { color: #86efac; }
.msg-err { color: #fca5a5; }
.hidden-hp { position:absolute; left:-9999px; opacity:0; height:0; width:0; }
.table-wrap { overflow:auto; border:1px solid var(--border); border-radius:10px; margin-top:12px; }
table { width:100%; border-collapse: collapse; }
th,td { border-bottom:1px solid #1f2937; padding:10px; text-align:left; font-size:14px; vertical-align:top; }
th { background:#0b1220; }
.topbar { display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:space-between; }
.input {
  width:100%;
  max-width:360px;
  border:1px solid var(--border);
  border-radius:10px;
  padding:10px;
  background:#0b1220;
  color:var(--text);
}
