:root {
  --bg: #140f0c;
  --card: #1d1712;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f7f1e8;
  --muted: #b5a89a;
  --gold: #c8922a;
  --gold-2: #e0b35a;
  --ok: #57d39a;
  --danger: #ff7b8a;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
}
.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(200, 146, 42, 0.2), transparent 55%),
    radial-gradient(700px 360px at 100% 0%, rgba(255, 255, 255, 0.04), transparent 50%);
}

.wrap {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  position: relative;
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold);
}
h1 {
  margin: 0.25rem 0 0.15rem;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-family: Georgia, "Times New Roman", serif;
}
.sub { margin: 0; color: var(--muted); }
.top-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-end;
}

.pill {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(200, 146, 42, 0.15);
  color: var(--gold-2);
  border: 1px solid rgba(200, 146, 42, 0.25);
}
.pill.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-color: var(--line);
}
.pill.ok { color: var(--ok); border-color: rgba(87, 211, 154, 0.35); background: rgba(87, 211, 154, 0.1); }
.pill.bad { color: var(--danger); border-color: rgba(255, 123, 138, 0.35); background: rgba(255, 123, 138, 0.1); }

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold), #a6751f);
  color: #1a1208;
}
.btn:hover { filter: brightness(1.05); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.toolbar {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
}
.field {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.field.grow { min-width: 0; }
input, select {
  width: 100%;
  border: 1px solid var(--line);
  background: #120e0b;
  color: var(--text);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  outline: none;
}
input:focus, select:focus {
  border-color: rgba(200, 146, 42, 0.55);
  box-shadow: 0 0 0 3px rgba(200, 146, 42, 0.12);
}
.check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  padding-bottom: 0.35rem;
}

.list {
  display: grid;
  gap: 0.65rem;
}

.item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  animation: in 0.35s ease;
}
.item.fresh {
  border-color: rgba(200, 146, 42, 0.55);
  box-shadow: 0 0 0 1px rgba(200, 146, 42, 0.2), 0 16px 30px rgba(0, 0, 0, 0.25);
}
@keyframes in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.num {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: rgba(200, 146, 42, 0.15);
  color: var(--gold-2);
}
.title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}
.meta {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.when {
  text-align: right;
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}
.who {
  margin-top: 0.15rem;
  color: var(--gold-2);
  font-weight: 700;
  font-size: 0.9rem;
}

.empty, .error {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.error { color: #ffb4bd; border-color: rgba(255, 123, 138, 0.35); }

.foot {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}
.foot a { color: var(--gold-2); }

@media (max-width: 720px) {
  .top { flex-direction: column; }
  .toolbar { grid-template-columns: 1fr; }
  .item { grid-template-columns: auto 1fr; }
  .when { grid-column: 2; text-align: left; margin-top: 0.2rem; }
}
