:root {
  --purple: #5a2c8f;
  --purple-dark: #3e1c66;
  --gold: #bb9d6b;
  --blue: #067bc2;
  --bg: #f7f5fa;
  --card: #ffffff;
  --ink: #241833;
  --muted: #5c5470;
  --line: #e4dced;
  --danger: #8d2a2a;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Open Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}
a { color: var(--blue); }
button, input {
  font: inherit;
}
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}
.top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 22px;
}
.brand {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}
h1 {
  margin: 4px 0 0;
  font-size: 32px;
  color: var(--purple);
  font-weight: 700;
}
h2 { margin: 0 0 8px; font-size: 22px; color: var(--purple); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(62, 28, 102, 0.05);
}
.signin {
  max-width: 420px;
  margin: 10vh auto 0;
}
label { display: block; font-size: 13px; margin: 12px 0 4px; color: var(--muted); }
input[type="email"], input[type="password"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
button {
  background: var(--purple);
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
}
button.secondary { background: white; color: var(--purple); border: 1px solid var(--purple); }
button:disabled { opacity: 0.55; cursor: not-allowed; }
.note, .muted { color: var(--muted); font-size: 14px; }
.error { color: var(--danger); font-size: 14px; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 16px; }
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 180px;
}
.stat span { display: block; color: var(--muted); font-size: 12px; }
.stat strong { font-size: 22px; color: var(--purple-dark); }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 700; }
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: #faf7fc; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field.full { grid-column: 1 / -1; }
.field span { font-size: 12px; color: var(--muted); }
.field b { font-weight: 600; }
.money { font-variant-numeric: tabular-nums; }
.banner {
  background: #fff8ea;
  border: 1px solid #ead7b0;
  color: #5c4a28;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0;
}

.top-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
a.nav {
  display: inline-block;
  background: white;
  color: var(--purple);
  border: 1px solid var(--purple);
  border-radius: 8px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 600;
}
a.nav:hover { background: #faf7fc; }
.panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.pane h2 { font-size: 18px; }
.choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 480px;
  overflow: auto;
}
button.pick {
  width: 100%;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
button.pick strong { color: var(--purple-dark); font-weight: 700; }
button.pick span { color: var(--muted); font-size: 13px; font-weight: 400; }
button.pick.selected { border-color: var(--purple); background: #f3eef8; }
input[type="search"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 8px 0 12px;
  background: #fff;
}

@media (max-width: 720px) {
  .grid, .panes { grid-template-columns: 1fr; }
  .top { flex-direction: column; align-items: flex-start; }
}
