:root {
  --bg: #f6f1e8;
  --panel: #fffaf0;
  --ink: #2d241a;
  --muted: #705f4f;
  --accent: #8a5a24;
  --accent-dark: #5e3c19;
  --border: #d6c3a7;
  --thead: #ead8bd;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 24px auto;
}
.hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: stretch;
  background: linear-gradient(135deg, #5e3c19, #9d6b2d);
  color: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(54, 34, 10, .18);
}
h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 44px); }
p { margin: 0; }
.location-card {
  min-width: 220px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.location-card span { font-weight: 700; }
.controls, .output-card {
  margin-top: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(54, 34, 10, .08);
}
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
}
label { display: grid; gap: 6px; font-weight: 700; color: var(--muted); }
input[type="date"] {
  min-width: 190px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  background: white;
}
button {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: var(--accent-dark); }
button.secondary { background: #6b6b6b; }
.output-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 12px;
}
h2 { margin: 0; }
#statusText { color: var(--muted); font-size: 14px; }
.message {
  border: 1px solid #d39a6a;
  background: #fff4e8;
  color: #633a14;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}
.table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: auto;
  max-height: 70vh;
  background: white;
}
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 980px;
}
th, td {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap;
}
th {
  position: sticky;
  top: 0;
  background: var(--thead);
  z-index: 1;
  font-weight: 800;
}
th:first-child, td:first-child { text-align: left; }
tbody tr:nth-child(even) { background: #fbf7ef; }
@media (max-width: 720px) {
  .hero { flex-direction: column; }
  .controls { align-items: stretch; }
  button { width: 100%; }
}
