:root {
  --bg: #0b0d10;
  --panel: #141820;
  --line: #2a3340;
  --text: #eef2f7;
  --muted: #8b98a8;
  --accent: #f0a03d;
  --ok: #3ecf8e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "IBM Plex Sans", sans-serif;
  background: linear-gradient(160deg, #1a140c 0%, var(--bg) 40%);
  color: var(--text);
  min-height: 100vh;
  padding: 24px;
}
.panel {
  max-width: 400px;
  margin: 10vh auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
h1 { margin: 0 0 6px; }
.sub { color: var(--muted); margin: 0 0 16px; }
label { display: block; color: var(--muted); font-size: 0.85rem; margin: 12px 0 6px; }
input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0c1017;
  color: var(--text);
}
button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}
button.primary { background: var(--accent); color: #1a1005; width: 100%; margin-top: 16px; }
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.error { color: #f07178; }
.hidden { display: none !important; }
header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.header-actions { display: flex; gap: 8px; }
.table {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
}
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
td input {
  width: 90px;
  padding: 6px 8px;
  display: inline-block;
}
td .save { width: auto; margin: 0; padding: 6px 10px; }
