:root {
  --bg: #0b1220;
  --panel: #121a2b;
  --ink: #e8eefc;
  --muted: #93a0b8;
  --line: #243149;
  --accent: #3b82f6;
  --ok: #34d399;
  --warn: #fbbf24;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  background: radial-gradient(1200px 600px at 10% -10%, #1e293b, var(--bg));
  color: var(--ink);
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
}
.shell { width: min(920px, 100%); margin: 0 auto; padding: 24px 16px 64px; }
.kicker { color: var(--accent); letter-spacing: 0.06em; font-size: 12px; text-transform: uppercase; margin: 0 0 6px; }
h1, h2 { margin: 0 0 10px; }
.lead, .muted { color: var(--muted); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin: 12px 0;
}
.stack { display: grid; gap: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
input, select, button, textarea {
  font: inherit;
  color: var(--ink);
  background: #0f172a;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
button { cursor: pointer; }
.btn { background: #1e293b; }
.btn.primary { background: var(--accent); border-color: transparent; color: white; }
.btn.ghost { background: transparent; }
.nav { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.nav button.active { outline: 2px solid var(--accent); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #1e293b; font-size: 12px; }
.pill.ok { background: rgba(52,211,153,.15); color: var(--ok); }
.pill.warn { background: rgba(251,191,36,.15); color: var(--warn); }
.pill.accent { background: rgba(59,130,246,.18); color: #93c5fd; }
.tiny { font-size: 12px; }
.stats-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: start; }
@media (max-width: 640px) {
  .stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.week { display: grid; gap: 10px; }
.day {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #0f172a;
}
.day.today { border-color: var(--accent); }
.day-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.day-item { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #111827; border: 1px solid var(--line); padding: 10px 14px; border-radius: 10px;
}
@media (max-width: 640px) {
  .shell { padding: 16px 12px 72px; }
}
