:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #1e2a3a;
  --muted: #5b6b7f;
  --accent: #2563eb;
  --accent-soft: #e8effd;
  --good: #16a34a;
  --border: #dde5ef;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.logo { font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.site-header nav a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 0.95rem; }
.site-header nav a:hover { color: var(--accent); }

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

h1 { font-size: 2rem; margin-bottom: 12px; text-align: center; }
h2 { font-size: 1.3rem; margin: 36px 0 12px; }
h3 { font-size: 1.05rem; margin: 20px 0 6px; }
p { margin-bottom: 12px; }

.tagline { text-align: center; color: var(--muted); margin-bottom: 28px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(20, 40, 80, 0.05);
}
.card h2 { margin: 0 0 16px; font-size: 1.15rem; }

.time-row { display: flex; justify-content: center; margin-bottom: 20px; }

input[type="time"] {
  font-size: 1.6rem;
  padding: 10px 18px;
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  text-align: center;
}
input[type="time"]:focus { outline: none; border-color: var(--accent); }

.btn {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: #1d4fc0; }

.result { margin-top: 24px; }
.result-lead { font-weight: 600; margin-bottom: 12px; }

.times { list-style: none; }
.times li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  background: var(--accent-soft);
}
.times li .t { font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.times li .meta { font-size: 0.85rem; color: var(--muted); text-align: right; }
.times li.best { border-color: var(--good); background: #edfaf1; }
.times li.best .t { color: var(--good); }

.hint { font-size: 0.88rem; color: var(--muted); margin-top: 12px; }

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.92rem;
  padding: 8px 0 0;
  text-decoration: underline;
}

.content { margin-top: 20px; }
.content p { color: #334155; }

.table-wrap { overflow-x: auto; margin: 12px 0; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
th { background: var(--accent-soft); font-weight: 600; }

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

.site-footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
  background: var(--card);
}
.site-footer a { color: var(--muted); }

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  .times li { flex-direction: column; align-items: flex-start; gap: 2px; }
}
