:root {
  --bg0: #060b17;
  --bg1: #0d1730;
  --card: #121f3d;
  --line: #2a447a;
  --txt: #dde8ff;
  --muted: #a7b8db;
  --ok: #63e6be;
  --err: #ff7d7d;
  --btn: #60e9bf;
  --btnText: #09211a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--txt);
  background: radial-gradient(80% 120% at 15% 0%, #1a2f5f 0%, var(--bg0) 55%) fixed;
}
.shell { max-width: 1180px; margin: 0 auto; padding: 24px; }
.center { min-height: 100vh; display: grid; place-items: center; }
.card {
  background: linear-gradient(180deg, #15264d 0%, #0f1c38 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.auth { width: 100%; max-width: 440px; }
h1 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 44px); }
h2 { margin: 0 0 14px; font-size: 36px; }
.muted { color: var(--muted); margin-top: 0; }
label { display: block; margin-bottom: 10px; color: var(--txt); }
input, textarea {
  width: 100%; margin-top: 6px; background: #0b1731; color: #ebf2ff;
  border: 1px solid #2e4a84; border-radius: 10px; padding: 10px 12px;
}
button, .btn {
  background: var(--btn); color: var(--btnText); border: 0; border-radius: 10px;
  padding: 10px 14px; font-weight: 700; text-decoration: none; display: inline-block; cursor: pointer;
}
.btn.ghost { background: #20386c; color: #d9e7ff; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; }
.alert { margin: 12px 0; padding: 10px 12px; border-radius: 10px; }
.alert.ok { background: rgba(99, 230, 190, 0.15); border: 1px solid rgba(99, 230, 190, 0.4); }
.alert.error { background: rgba(255, 125, 125, 0.15); border: 1px solid rgba(255, 125, 125, 0.4); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid.one { grid-template-columns: 1fr; }
.span2 { grid-column: span 2; }
.form-stacked button { margin-top: 4px; }
.inline-form { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #253d6e; padding: 8px 6px; text-align: left; vertical-align: top; }
a { color: #9bc7ff; }
.content { white-space: pre-wrap; word-wrap: break-word; color: #eef4ff; }

@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
  .span2 { grid-column: span 1; }
  .inline-form { grid-template-columns: 1fr; }
  h2 { font-size: 30px; }
}
