:root {
  --pink: #d6336c;
  --pink-light: #fbe4ec;
  --text: #2b2b2b;
  --muted: #767676;
  --border: #e5d3da;
  --bg: #fffaf9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  background: white;
  border-bottom: 1px solid var(--border);
}

.topnav .brand {
  font-weight: 700;
  color: var(--pink);
  margin-right: auto;
  text-decoration: none;
  font-size: 1.1rem;
}

.topnav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.topnav a:hover { color: var(--pink); }

.link-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0;
}

.inline { display: inline; }

h1 { color: var(--pink); font-size: 1.5rem; }

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

form { display: flex; flex-direction: column; gap: 12px; }

label { font-size: 0.9rem; color: var(--muted); }

input, select, textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
}

button.primary {
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  cursor: pointer;
}

button.primary:hover { opacity: 0.9; }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.flash.error { background: #ffe3e3; color: #a61e1e; }
.flash.success { background: var(--pink-light); color: #8a2249; }

.entry-list { list-style: none; padding: 0; margin: 0; }
.entry-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.entry-list li:last-child { border-bottom: none; }

.muted { color: var(--muted); font-size: 0.9rem; }

.delete-btn {
  background: none;
  border: none;
  color: #a61e1e;
  cursor: pointer;
  font-size: 0.85rem;
}

.prediction-box {
  background: var(--pink-light);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  margin-bottom: 20px;
}
.prediction-box .big { font-size: 1.4rem; font-weight: 700; color: var(--pink); }

.auth-links { text-align: center; margin-top: 12px; font-size: 0.9rem; }
.auth-links a { color: var(--pink); }
