:root {
  --bg: #f4f3ee;
  --card: #ffffff;
  --border: #e0ddd2;
  --text: #26221c;
  --muted: #8a8578;
  --accent: #3c3489;
  --good: #3b6d11;
  --bad: #993c1d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 600; font-size: 18px; }
nav a {
  margin-left: 18px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
}
nav a:hover { color: var(--accent); }
.container { max-width: 1100px; margin: 0 auto; padding: 24px; }
.flash {
  background: #faeee0; border: 1px solid #e0b97a; padding: 10px 14px;
  border-radius: 8px; margin-bottom: 16px; font-size: 14px;
}
.quote-banner {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 22px; margin-bottom: 24px; font-style: italic;
}
.quote-banner span { display: block; margin-top: 6px; font-style: normal; color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px; display: flex; flex-direction: column;
}
.card.wide { grid-column: span 3; }
.card h2 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.stat-row { display: flex; gap: 18px; margin-bottom: 12px; }
.stat-row .label { display: block; font-size: 12px; color: var(--muted); }
.stat-row .value { display: block; font-size: 18px; font-weight: 600; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.mini-list { list-style: none; margin: 0 0 12px; padding: 0; font-size: 14px; flex: 1; }
.mini-list li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.mini-list li:last-child { border-bottom: none; }
.tag { background: #eeedfe; color: var(--accent); padding: 2px 8px; border-radius: 12px; font-size: 12px; }
.btn {
  display: inline-block; text-align: center; margin-top: auto; padding: 8px 14px;
  background: var(--accent); color: white; text-decoration: none; border-radius: 8px; font-size: 14px;
}
.muted { color: var(--muted); font-size: 13px; }

.entry-form { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.entry-form input, .entry-form select {
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px;
}
.entry-form button {
  padding: 8px 16px; background: var(--accent); color: white; border: none; border-radius: 8px; cursor: pointer;
}
.data-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.link-btn { background: none; border: none; color: var(--bad); cursor: pointer; font-size: 13px; padding: 0; }

.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kanban-col { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; min-height: 200px; }
.kanban-col h3 { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.kanban-card { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px; margin-bottom: 10px; }
.kanban-project { font-size: 12px; color: var(--accent); font-weight: 600; }
.kanban-task { font-size: 14px; margin: 4px 0; }
.kanban-due { font-size: 12px; color: var(--muted); }
.kanban-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.kanban-actions select { font-size: 12px; padding: 4px; border-radius: 6px; border: 1px solid var(--border); }

.login-wrap { display: flex; align-items: center; justify-content: center; height: 100vh; background: var(--bg); }
.login-box { background: var(--card); padding: 32px; border-radius: 12px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; width: 280px; }
.login-box h1 { font-size: 18px; margin: 0 0 8px; text-align: center; }
.login-box input { padding: 10px; border-radius: 8px; border: 1px solid var(--border); }
.login-box button { padding: 10px; border-radius: 8px; border: none; background: var(--accent); color: white; cursor: pointer; }

@media (max-width: 800px) {
  .grid, .kanban { grid-template-columns: 1fr; }
  .card.wide { grid-column: span 1; }
}
