:root {
  --bg: #fff8e7;
  --fg: #111;
  --accent: #ffd23f;
  --accent-2: #ee4266;
  --border: #111;
  --shadow: 4px 4px 0 var(--border);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, system-ui, "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--fg);
  padding-bottom: 72px;
}

.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 3px solid var(--border);
  background: var(--accent);
}
.topbar h1 { margin: 0; font-size: 20px; font-weight: 900; }
#last-updated { font-size: 12px; }

main { padding: 16px; }
section[data-view] { display: block; }
section[data-view][hidden] { display: none; }

.card {
  background: #fff;
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
  padding: 12px;
  margin-bottom: 12px;
}
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card .meta { font-size: 12px; color: #555; }
.card .ideas { margin-top: 8px; padding-left: 18px; font-size: 13px; }
.tag {
  display: inline-block; padding: 2px 6px;
  border: 2px solid var(--border); background: var(--accent-2); color: #fff;
  font-size: 11px; font-weight: 700; margin-right: 4px;
}
.delta-positive { color: #d32f2f; font-weight: 700; }
.delta-zero { color: #555; }

.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border-top: 3px solid var(--border);
}
.bottom-nav button {
  padding: 12px 0;
  background: none; border: none;
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.bottom-nav button.active { background: var(--accent); }

.search-input {
  width: 100%;
  padding: 10px;
  border: 3px solid var(--border);
  font-size: 16px;
  margin-bottom: 12px;
}
