:root {
  --accent: #1565c0;
  --green: #2e7d32;
  --red: #c62828;
  --orange: #ef6c00;
  --bg: #f4f7fb;
  --text: #1c2733;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.header { background: var(--accent); color: #fff; padding: 20px 16px; }
.header h1 { margin: 0 0 4px; font-size: 1.6rem; }
.subtitle, .today { margin: 2px 0; }
main { padding: 16px; }
.lifts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.lift { background: #fff; border-radius: 8px; padding: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.lift h2 { margin: 0 0 4px; font-size: 1.1rem; }
.lift .resort { margin: 0 0 8px; color: #55657a; }
.status { display: inline-block; padding: 4px 10px; border-radius: 6px; color: #fff; font-weight: 600; }
.status.provoz { background: var(--green); }
.status.mimo { background: var(--red); }
.status.neznamy { background: var(--orange); }

.status { font-size: 1.25rem; padding: 8px 16px; }
.lift p { margin: 6px 0 0; font-size: .9rem; }
.lift .note { color: #8a4b00; }
.lift .updated { color: #55657a; }
.source-link { display: inline-block; margin-top: 8px; color: var(--accent); }
.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.summary-card { background: #fff; border-radius: 8px; padding: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); display: flex; flex-direction: column; border-top: 4px solid var(--accent); }
.summary-card.provoz { border-top-color: var(--green); }
.summary-card.mimo { border-top-color: var(--red); }
.summary-card.neznamy { border-top-color: var(--orange); }
.summary-card .num { font-size: 1.8rem; font-weight: 700; }
.filters { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.filters select { margin-left: 6px; padding: 6px; min-height: 44px; max-width: 100%; }
.lift, .summary-card { min-width: 0; overflow-wrap: anywhere; }

/* AC13: all texts are Czech (reviewed). AC14: phone layout */
@media (max-width: 600px) {
  .header { padding: 12px; }
  .header h1 { font-size: 1.25rem; }
  .subtitle { font-size: .9rem; }
  main { padding: 12px; }
  .summary { grid-template-columns: repeat(2, 1fr); }
  .lifts { grid-template-columns: 1fr; }
  .filters { flex-direction: column; gap: 8px; }
  .filters label, .filters select { display: block; width: 100%; margin-left: 0; }
  .refresh-bar button { width: 100%; }
}

.refresh-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0; }
.refresh-bar button { min-height: 44px; padding: 0 16px; cursor: pointer; }
.refresh-bar button:disabled { opacity: .6; cursor: not-allowed; }
.loading { font-weight: 600; }

.empty-state { background: #fff; border-radius: 8px; padding: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.empty-msg { font-weight: 600; font-size: 1.1rem; margin: 0 0 8px; }
.official-links a { color: var(--accent); display: inline-block; padding: 8px 0; }
.error-row { border-left: 4px solid var(--orange); }
.empty-state[hidden] { display: none; }
