.ummet-schedule {
  --schedule-ink: var(--ummet-ink, #211d14);
  --schedule-soft: var(--ummet-ink-soft, #5c564a);
  --schedule-line: var(--ummet-line, #ece6d8);
  --schedule-bg: var(--ummet-bg-soft, #faf8f2);
  --schedule-gold: var(--ummet-gold, #e9ba2b);
  --schedule-radius: var(--ummet-radius, 14px);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 0 3rem;
  color: var(--schedule-ink);
  width: 100%;
}

.ummet-schedule__header {
  margin-bottom: 1.5rem;
}

.ummet-schedule__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ummet-schedule__subtitle {
  margin: 0;
  color: var(--schedule-soft);
  font-size: 1.05rem;
}

.ummet-schedule__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--schedule-bg);
  border: 1px solid var(--schedule-line);
  border-radius: var(--schedule-radius);
}

.ummet-schedule__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 10rem;
  flex: 1 1 10rem;
}

.ummet-schedule__field span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--schedule-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ummet-schedule__field select {
  appearance: none;
  width: 100%;
  padding: 0.65rem 2.25rem 0.65rem 0.85rem;
  border: 1px solid var(--schedule-line);
  border-radius: 10px;
  background:
    linear-gradient(45deg, transparent 50%, var(--schedule-ink) 50%) calc(100% - 16px) calc(50% - 3px) / 6px 6px no-repeat,
    linear-gradient(135deg, var(--schedule-ink) 50%, transparent 50%) calc(100% - 11px) calc(50% - 3px) / 6px 6px no-repeat,
    #fff;
  color: var(--schedule-ink);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.ummet-schedule__field select:focus {
  outline: 2px solid var(--schedule-gold);
  outline-offset: 1px;
}

.ummet-schedule__submit {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 0.7rem 1.25rem;
  background: var(--schedule-ink);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.ummet-schedule__submit:hover {
  background: var(--ummet-gold-deep, #3a2e06);
}

.ummet-schedule__submit:active {
  transform: translateY(1px);
}

.ummet-schedule__export {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

.ummet-schedule__export-btn {
  appearance: none;
  border: 1px solid var(--schedule-line);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  background: #fff;
  color: var(--schedule-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ummet-schedule__export-btn:hover:not(:disabled) {
  background: var(--schedule-bg);
  border-color: var(--schedule-gold);
}

.ummet-schedule__export-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.ummet-schedule-export-sheet {
  position: fixed;
  left: -12000px;
  top: 0;
  width: 780px;
  padding: 10px 12px;
  background: #fff;
  color: #211d14;
  font-family: "Golos Text", "Segoe UI", system-ui, sans-serif;
  box-sizing: border-box;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  z-index: -1;
}

.ummet-schedule-export-sheet__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid #e9ba2b;
}

.ummet-schedule-export-sheet__logo {
  width: 40px;
  height: 49px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.ummet-schedule-export-sheet__site {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5c564a;
  margin-bottom: 1px;
}

.ummet-schedule-export-sheet__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1px;
}

.ummet-schedule-export-sheet__meta {
  font-size: 12px;
  color: #5c564a;
}

.ummet-schedule-export-sheet__table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0 !important;
}

.ummet-schedule-export-sheet__table th,
.ummet-schedule-export-sheet__table td {
  padding: 1px 3px;
  text-align: center;
  border: 1px solid #ece6d8;
  font-size: 9px;
  line-height: 1.15;
  white-space: nowrap;
}

.ummet-schedule-export-sheet__table th {
  background: #faf8f2;
  font-weight: 700;
  position: static;
  padding: 2px 3px;
}

.ummet-schedule-export-sheet__table td:first-child,
.ummet-schedule-export-sheet__table th:first-child {
  text-align: left;
  padding-left: 4px;
  font-weight: 600;
}

.ummet-schedule-export-sheet__table .is-highlight {
  background: rgba(233, 186, 43, 0.18);
  font-weight: 700;
}

.ummet-schedule-export-sheet__table th.is-highlight {
  background: rgba(233, 186, 43, 0.3);
}

.ummet-schedule-export-sheet__table .is-today td {
  background: rgba(233, 186, 43, 0.22);
  font-weight: 700;
  box-shadow: none;
}

.ummet-schedule-export-sheet__source {
  margin-top: 6px;
  font-size: 9px;
  color: #5c564a;
}

.ummet-schedule__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--schedule-line);
  border-radius: var(--schedule-radius);
  background: #fff;
}

.ummet-schedule__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.ummet-schedule__table th,
.ummet-schedule__table td {
  padding: 0.7rem 0.55rem;
  text-align: center;
  border-bottom: 1px solid var(--schedule-line);
  font-size: 0.92rem;
  white-space: nowrap;
}

.ummet-schedule__table th {
  background: var(--schedule-bg);
  font-weight: 700;
  color: var(--schedule-ink);
  position: sticky;
  top: 0;
  z-index: 1;
}

.ummet-schedule__table td:first-child,
.ummet-schedule__table th:first-child {
  text-align: left;
  padding-left: 1rem;
  font-weight: 600;
}

.ummet-schedule__table th.is-highlight,
.ummet-schedule__table td.is-highlight {
  background: rgba(233, 186, 43, 0.16);
  color: var(--schedule-ink);
  font-weight: 700;
}

.ummet-schedule__table th.is-highlight {
  background: rgba(233, 186, 43, 0.28);
}

.ummet-schedule__table tbody tr:hover {
  background: rgba(233, 186, 43, 0.08);
}

.ummet-schedule__table tbody tr:hover td.is-highlight {
  background: rgba(233, 186, 43, 0.24);
}

.ummet-schedule__table tbody tr.is-today {
  background: rgba(233, 186, 43, 0.18);
}

.ummet-schedule__table tbody tr.is-today td {
  font-weight: 700;
  box-shadow: inset 0 2px 0 var(--schedule-gold), inset 0 -2px 0 var(--schedule-gold);
}

.ummet-schedule__table tbody tr.is-today td.is-highlight {
  background: rgba(233, 186, 43, 0.34);
}

.ummet-schedule__empty {
  margin: 2rem 0;
  padding: 1.5rem;
  text-align: center;
  color: var(--schedule-soft);
  background: var(--schedule-bg);
  border-radius: var(--schedule-radius);
}

.ummet-schedule__source {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--schedule-soft);
}

@media (max-width: 720px) {
  .ummet-schedule {
    padding: 0.75rem 0 2.5rem;
  }

  .ummet-schedule__filters {
    padding: 0.85rem;
  }

  .ummet-schedule__submit,
  .ummet-schedule__export,
  .ummet-schedule__export-btn {
    width: 100%;
  }

  .ummet-schedule__export {
    margin-left: 0;
  }

  .ummet-schedule__table {
    min-width: 0;
  }

  .ummet-schedule__table th,
  .ummet-schedule__table td {
    padding: 0.32rem 0.2rem;
    font-size: 0.75rem;
  }

  .ummet-schedule__table td:first-child,
  .ummet-schedule__table th:first-child {
    padding-left: 0.45rem;
  }
}
