:root {
  /* "Velvet" palette - deep plum/aubergine + soft blush accent.
     Placeholder until real branding assets exist. */
  --ink: #2a1a24;
  --muted: #7a6570;
  --border: #e6dde3;
  --panel: #ffffff;
  --bg: #faf6f8;
  --brand: #6b2545;
  --brand-dark: #4a1730;
  --accent: #d88ca8;
  --danger: #b3261e;
  --ok: #2f9e4f;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.wrap { max-width: 960px; margin: 0 auto; padding: 2rem 1.2rem; }
.narrow { max-width: 460px; }

h1, h2, h3 { line-height: 1.2; }

a { color: var(--brand); }

.topbar {
  background: var(--brand-dark);
  color: #fff;
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar .brand { font-weight: 700; color: #fff; text-decoration: none; letter-spacing: 0.02em; }
.topbar nav a { color: #f0d9e4; text-decoration: none; margin-left: 1.1rem; font-size: 0.92rem; }
.topbar nav a:hover { color: #fff; }
.topbar button {
  background: transparent; border: 1px solid #a8637f; color: #fff;
  border-radius: var(--radius); padding: 0.35rem 0.8rem; cursor: pointer;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}

.form-row { margin-bottom: 0.9rem; }
.form-row label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.3rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 0.55rem 0.65rem; border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.95rem; background: #fff; color: var(--ink);
}

button.primary, input[type="submit"] {
  background: var(--brand); color: #fff; border: none; border-radius: 8px;
  padding: 0.6rem 1.1rem; font-size: 0.95rem; cursor: pointer; font-weight: 600;
}
button.primary:hover { background: var(--brand-dark); }
button.secondary {
  background: #fff; color: var(--brand); border: 1px solid var(--brand);
  border-radius: 8px; padding: 0.55rem 1rem; font-size: 0.9rem; cursor: pointer;
}

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
th { color: var(--muted); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.02em; }

.message { padding: 0.6rem 0.8rem; border-radius: 8px; font-size: 0.9rem; margin-bottom: 1rem; }
.message.error { background: #fbe9e7; color: var(--danger); }
.message.ok { background: #e6f4ea; color: var(--ok); }

.badge {
  display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; background: #f3e2ea; color: var(--brand-dark);
}

.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 0.6rem; }
.row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 180px; }
