.md-page {
  --md-surface: #fff;
  --md-ink: #202b42;
  --md-muted: #697488;
  --md-line: #e2e6ed;
  --md-soft: #f2f5fb;
  --md-accent: #315de5;
}

.md-page .page-head {margin-bottom: 14px}
.md-page .page-head h1 {color: var(--md-ink)}
.md-page .page-head .btn {
  min-height: 44px;
  background: var(--md-surface);
  color: var(--md-ink);
  border-color: var(--md-line);
  text-decoration: none;
}

.md-group-links {
  border: 1px solid var(--md-line);
  border-radius: 12px;
  background: var(--md-surface);
}
.md-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  color: var(--md-ink);
  text-decoration: none;
  text-align: start;
  border: 0;
  background: transparent;
}
.md-link:first-child {border-radius: 11px 11px 0 0}
.md-link:last-child {border-radius: 0 0 11px 11px}
.md-link + .md-link {border-top: 1px solid var(--md-line)}
.md-link:hover {background: var(--md-soft)}
.md-link > .icon:first-child {color: var(--md-accent)}
.md-link > .icon:last-child {color: var(--md-muted)}

.md-deductions {max-width: 640px; margin-inline: auto}
.md-deductions .md-link {min-height: 68px}
.md-deduction-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--md-accent);
  background: var(--md-soft);
}
.md-deduction-text {display: grid; gap: 2px}
.md-deduction-text strong {font-weight: 650}
.md-deduction-text small {font-size: 12px; color: var(--md-muted)}

.md-schedule {gap: 0}
.md-schedule .dw-nav button {width: 44px; min-height: 44px}
.md-schedule .sch-bar button,
.md-schedule .sch-empty button,
.md-schedule .sch-action {min-height: 44px}

@media (max-width:760px) and (prefers-color-scheme:dark) {
  .md-page {
    --md-surface: #1b2030;
    --md-ink: #eaf0fc;
    --md-muted: #adb9ce;
    --md-line: #353d51;
    --md-soft: #252e42;
    --md-accent: #a5baff;
  }
  .md-schedule {
    --dash-ink: var(--md-ink);
    --dash-line: var(--md-line);
    --dash-blue: var(--md-accent);
  }
  .md-schedule .dp-card, .md-schedule .dw-nav {background: var(--md-surface)}
  .md-schedule .dw-strip, .md-schedule .sch-bar strong span {background: var(--md-soft)}
  .md-schedule :is(.dw-nav, .dw-day, .sch-time strong, .sch-name) {color: var(--md-ink)}
  .md-schedule :is(.dw-nav button, .dw-day small, .sch-time, .sch-info p, .sch-bar strong, .sch-bar strong span, .sch-empty, .sch-count, .dp-kicker) {
    color: var(--md-muted);
  }
  .md-schedule .sch-row, .md-schedule .dw-nav, .md-schedule .sch-action {border-color: var(--md-line)}
  .md-schedule :is(.dw-nav button:hover, .dw-day:hover, .sch-action, .sch-action:hover) {
    background: var(--md-soft);
    color: var(--md-accent);
  }
  .md-schedule .dw-day.is-selected {background: #4867d3; color: #fff}
  .md-schedule .dw-day.is-selected small {color: #fff}
}
