:root {
  --bg: #f4f7f4;
  --surface: #fff;
  --text: #1a2e1a;
  --muted: #4a5c4a;
  --accent: #2d6a3e;
  --accent-soft: #e8f3eb;
  --warn-bg: #fff8e6;
  --warn-border: #e6c200;
  --bad-bg: #fdeeee;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(26, 46, 26, 0.08);
  font-family: "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

header {
  background: var(--surface);
  border-bottom: 1px solid #d8e5d8;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow);
}

header h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 650;
  color: var(--accent);
}

header p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

nav {
  margin-top: 0.75rem;
}

nav a {
  color: var(--accent);
  font-size: 0.875rem;
  margin-right: 1rem;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
}

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr auto auto;
    align-items: end;
  }
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="number"] {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #c5d4c5;
  border-radius: 6px;
  font-size: 1rem;
}

input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

button[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

@media (min-width: 560px) {
  button[type="submit"] {
    width: auto;
  }
}

button[type="submit"]:hover {
  filter: brightness(1.05);
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.alert-error {
  background: var(--bad-bg);
  border: 1px solid #e8b4b4;
  color: #5c2020;
}

h2 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  color: var(--text);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #e0ebe0;
}

th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.badge-yes {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge-no {
  background: var(--warn-bg);
  color: #7a5a00;
}

.badge-maybe {
  background: #eef3ff;
  color: #3d4f8f;
  border: 1px solid #c8d4f0;
}

.score {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.reasons {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
}

.reasons--table {
  margin: 0;
}

.reason {
  color: var(--muted);
}

.reason--negative {
  color: #a82a2a;
  font-weight: 500;
}

.reason--positive {
  color: #1f5c2e;
}

.reason--neutral {
  color: var(--muted);
}

.pick-cards {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .pick-cards {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

.pick-card {
  background: var(--accent-soft);
  border: 1px solid #c5e0cd;
  border-radius: var(--radius);
  padding: 1rem;
}

.pick-card .date {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.pick-card .meta {
  font-size: 0.85rem;
  color: var(--muted);
}
