:root {
  --bg: #12160f;
  --bg-2: #1a2118;
  --ink: #f3ead4;
  --muted: #b7c0a8;
  --moss: #8fbc5a;
  --cap: #c45c4a;
  --line: #2c3628;
  --warn: #d4a017;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Segoe UI", "PT Sans", sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, #24301c 0%, var(--bg) 55%);
  color: var(--ink);
  padding: 16px 16px 48px;
}

.fog {
  pointer-events: none;
  position: fixed;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(transparent, rgba(18, 22, 15, 0.9));
}

.top { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.mark {
  width: 52px; height: 52px; border-radius: 18px;
  background: #2a1814;
  display: grid; place-items: center;
  font-size: 28px;
  box-shadow: 0 0 0 1px #5a2e28 inset;
}
h1 { margin: 0; font-size: 22px; letter-spacing: 0.04em; font-weight: 650; }
.sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px;
}
.tabs button, button {
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.tabs button.on, button.primary {
  background: #24351c;
  border-color: var(--moss);
  color: #e8f3d4;
}
button.danger { border-color: var(--cap); color: #f3d0c8; }

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
}
.card h2 { margin: 0 0 10px; font-size: 16px; }
.row {
  display: flex; justify-content: space-between; gap: 12px;
  align-items: center; padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.muted { color: var(--muted); font-size: 13px; }
label { display: block; margin: 10px 0 6px; color: var(--muted); font-size: 13px; }
input, textarea, select {
  width: 100%;
  background: #12160f;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}
textarea { min-height: 90px; resize: vertical; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.ok { color: var(--moss); }
.warn { color: var(--warn); }
.list { font-size: 14px; line-height: 1.45; }
.hidden { display: none !important; }
