:root {
  color-scheme: dark;
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --green-950: #09271b;
  --green-900: #103c2a;
  --green-800: #185236;
  --green-600: #54a36b;
  --text: #f1f8f2;
  --muted: #b7cbbd;
  --border: rgba(192, 225, 199, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: 64px 24px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(5, 28, 19, 0.86), rgba(7, 42, 27, 0.94)),
    url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQvOYV7zty4yVy_VuK-AV0-lPCEGxG5ESn5c3Ly5LqRhQ&s")
      center / cover fixed;
}

.page-shell {
  width: min(100%, 960px);
  margin: 0 auto;
}

.page-header {
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #8ed39c;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.intro {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.schedule-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(8, 35, 24, 0.88);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.card-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px 22px;
}

.card-heading .eyebrow {
  margin-bottom: 6px;
}

h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.result-count {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.filters {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(160px, 0.45fr) auto;
  align-items: end;
  gap: 14px;
  padding: 20px 30px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.field {
  display: grid;
  gap: 8px;
}

label {
  color: #d5e7d9;
  font-size: 0.82rem;
  font-weight: 600;
}

input,
select,
button {
  min-height: 44px;
  border: 1px solid rgba(192, 225, 199, 0.24);
  border-radius: 10px;
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 0 13px;
  color: var(--text);
  background-color: var(--green-950);
}

input::placeholder {
  color: #91aa98;
}

button {
  padding: 0 16px;
  color: #dff3e3;
  background: var(--green-800);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 160ms ease, border-color 160ms ease;
}

button:hover {
  border-color: var(--green-600);
  background: #216b41;
}

input:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 3px solid #8ed39c;
  outline-offset: 2px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 16px 30px;
  border-bottom: 1px solid var(--border);
}

th {
  color: #a9d8b2;
  background: rgba(23, 73, 46, 0.68);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

td {
  color: #e4efe6;
  font-size: 0.95rem;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: rgba(67, 117, 76, 0.2);
}

.empty-state {
  padding: 34px 20px;
  color: var(--muted);
  text-align: center;
}

footer {
  padding: 22px 8px 0;
  color: rgba(220, 239, 224, 0.68);
  font-size: 0.85rem;
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 640px) {
  body {
    padding: 40px 16px;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .card-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
    padding: 24px 20px 18px;
  }

  .filters {
    grid-template-columns: 1fr;
    padding: 18px 20px;
  }

  .clear-button {
    width: 100%;
  }

  th,
  td {
    padding: 14px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
