:root {
  --bg: #08111f;
  --panel: #121c2b;
  --line: rgba(255,255,255,0.08);
  --text: #f3f6fb;
  --muted: #8fa2bc;
  --positive: #41d392;
  --negative: #ff7a7a;
  --accent: #58c9ff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(180deg, #06101b 0%, var(--bg) 100%);
  color: var(--text);
}
.page {
  width: min(calc(100% - 2rem), 1240px);
  margin: 0 auto;
  padding: 2rem 0 3rem;
}
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin: 0.4rem 0 0.8rem; }
.lead { color: var(--muted); max-width: 42rem; line-height: 1.7; }
.stats, .layout, .workspace { display: grid; gap: 1rem; }
.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.5rem 0;
}
.stats article, .panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}
.stats article { padding: 1.2rem; }
.stats span { display: block; color: var(--muted); margin-bottom: 0.5rem; }
.stats strong { font-size: 1.8rem; }
.workspace {
  grid-template-columns: 320px 1fr;
  align-items: start;
}
.side-panel {
  padding: 1rem;
  position: sticky;
  top: 1rem;
}
.content-area { min-width: 0; }
.layout { grid-template-columns: 1.1fr 0.9fr; }
.panel { padding: 1rem; }
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
input, select, button {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0d1625;
  color: var(--text);
}
button { cursor: pointer; }
.primary-btn {
  background: linear-gradient(90deg, var(--accent), #8a6dff);
  border: 0;
  color: #07111f;
  font-weight: 700;
}
.entry-form {
  display: grid;
  gap: 0.9rem;
}
label {
  display: grid;
  gap: 0.4rem;
}
label span, .entry-item small { color: var(--muted); }
.entry-list, .category-list {
  display: grid;
  gap: 0.75rem;
}
.entry-item, .category-item {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
}
.entry-item header, .category-item, .entry-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}
.entry-actions {
  margin-top: 0.75rem;
}
.mini-btn {
  width: auto;
  padding: 0.55rem 0.75rem;
  background: rgba(255,255,255,0.04);
}
.danger-btn {
  background: rgba(255,107,107,0.14);
  color: #ff8a8a;
}
.pos { color: var(--positive); }
.neg { color: var(--negative); }
.bar {
  height: 0.7rem;
  margin-top: 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5fd8ff, #8b79ff);
}
@media (max-width: 1020px) {
  .workspace { grid-template-columns: 1fr; }
  .side-panel { position: static; }
}
@media (max-width: 900px) {
  .stats, .layout { grid-template-columns: 1fr; }
}
