.e26-smp {
  --smp-bg: #f2f6fa;
  --smp-line: #dde3ed;
  --smp-chip: #dde3ed;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

.e26-smp__banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background:
    linear-gradient(to top, rgba(3, 97, 252, 0.6) 3%, rgba(0, 64, 233, 0.6) 37%, rgba(0, 17, 172, 0.6) 90%),
    url("../ResultsArticle/img/banner.jpg") center / cover no-repeat;
}

.e26-smp__elections {
  display: block;
  width: 178px;
  height: 23px;
}

.e26-smp__ynet {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  direction: ltr;
  text-decoration: none;
}

.e26-smp__symbol {
  display: block;
  width: 28px;
  height: 28px;
}

.e26-smp__word {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  width: 34px;
}

.e26-smp__word img {
  display: block;
  width: 34px;
  height: auto;
}

.e26-smp__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.e26-smp__main {
  padding: 12px 16px 16px;
  background: var(--smp-bg);
}

.e26-smp__game {
  padding: 16px;
  background: var(--smp-bg);
  border-radius: 0 0 20px 20px;
}

.e26-smp__tip {
  background: #fff;
}

@media (min-width: 720px) {
  .e26-smp {
    --smp-track: 36px;
    direction: rtl;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 740px;
    height: auto;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    gap: 0;
    background: transparent;
  }

  .e26-smp__body {
    direction: ltr;
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    background: var(--smp-bg);
    border-radius: 0 0 20px 20px;
    overflow: hidden;
  }

  .e26-smp__main,
  .e26-smp__game {
    direction: rtl;
  }

  .e26-smp__main {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 12px 16px 16px;
    background: transparent;
  }

  .e26-smp__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
  }

  .e26-smp__brandline {
    grid-area: auto;
    width: 100%;
    align-self: auto;
  }

  .e26-smp__filters {
    grid-area: auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-self: auto;
    overflow: visible;
  }

  .e26-smp__legend {
    grid-area: auto;
    flex-wrap: wrap;
    min-height: 22px;
    align-self: auto;
  }

  .e26-smp__chart {
    grid-area: auto;
    align-self: auto;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px 2px;
    height: auto;
    min-height: 0;
    margin-top: 8px;
    margin-bottom: 2px;
    overflow: visible;
  }

  .e26-smp__party {
    flex: 0 0 calc((100% - 8px) / 5);
    justify-content: flex-end;
    gap: 2px;
    width: calc((100% - 8px) / 5);
    height: auto;
    min-width: 0;
    max-width: none;
    padding: 16px 1px 2px;
  }

  .e26-smp__cols {
    flex: 0 0 auto;
    align-self: auto;
    align-items: flex-end;
    width: 100%;
    min-height: 0;
  }

  .e26-smp__col {
    align-self: auto;
    justify-content: flex-end;
  }

  .e26-smp__track {
    margin-top: 0;
  }

  .e26-smp__party.is-on {
    background: var(--smp-on);
  }

  .e26-smp__party.is-on .e26-smp__fill {
    box-shadow: none;
  }

  .e26-smp__fill {
    width: 28px;
  }

  .e26-smp__seats {
    font-size: 13px;
    line-height: 14px;
  }

  .e26-smp__name {
    height: 26px;
    font-size: 11px;
    line-height: 13px;
  }

  .e26-smp--all .e26-smp__party {
    flex: 0 0 calc((100% - 8px) / 5);
    width: calc((100% - 8px) / 5);
    max-width: none;
  }

  .e26-smp--all .e26-smp__col {
    width: 16px;
    flex-basis: 16px;
  }

  .e26-smp--all .e26-smp__col .e26-smp__fill {
    width: 16px;
  }

  .e26-smp--all .e26-smp__col .e26-smp__seats {
    font-size: 11px;
    line-height: 12px;
  }

  .e26-smp__game {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-height: 0;
    padding: 16px 16px 8px;
    border-radius: 0;
    border-right: 1px solid var(--smp-line);
    background: rgba(255, 255, 255, 0.4);
    direction: rtl;
  }

  .e26-smp__copy,
  .e26-smp__foot,
  .e26-smp__plenum {
    grid-area: auto;
  }

  .e26-smp__copy,
  .e26-smp__foot,
  .e26-smp__hint,
  .e26-smp__status {
    text-align: center;
  }

  .e26-smp__plenum {
    margin: 0 auto;
  }

  .e26-smp__hint,
  .e26-smp__status {
    font-size: 13px;
    line-height: 16px;
  }

  .e26-smp__hint {
    min-height: 32px;
  }

  .e26-smp__status {
    justify-content: center;
  }

  .e26-smp__foot {
    align-self: stretch;
    align-items: center;
  }
}

@media (prefers-color-scheme: dark) {
  .e26-smp {
    --smp-bg: #243044;
    --smp-text: #f2f6fa;
    --smp-muted: #a3a7b0;
    --smp-line: rgba(255, 255, 255, 0.12);
    --smp-other: #8b919c;
    --smp-chip: rgba(255, 255, 255, 0.08);
    --smp-on: rgba(0, 159, 251, 0.22);
    --smp-seat-empty: #fff;
    --smp-seat-empty-opacity: 0.38;
    --smp-ch-11: #e0ecff;
    color: var(--smp-text);
    background: transparent;
  }

  .e26-smp__key {
    background: rgba(255, 255, 255, 0.08);
  }

  .e26-smp__chip,
  .e26-smp__tip p,
  .e26-smp__tip-x {
    color: #f2f6fa;
  }

  .e26-smp__chip.is-on {
    background: #f2f6fa;
    border-color: #f2f6fa;
    color: #1d2129;
  }

  .e26-smp__tip {
    background: #243044;
    border-color: rgba(255, 255, 255, 0.16);
  }

  .e26-smp__info-btn img {
    filter: brightness(0) invert(1);
  }

  .e26-smp__game {
    background: var(--smp-bg);
  }
}

@media (min-width: 720px) and (prefers-color-scheme: dark) {
  .e26-smp__game {
    background: rgba(255, 255, 255, 0.04);
  }
}
