.history-page .history-hero .hero-grid {
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 40px;
  padding-bottom: 10px
}

.history-page .history-hero h1 {
  font-size: 36px
}

.history-hero-art {
  position: relative;
  width: 220px;
  height: 205px;
  display: grid;
  place-items: center
}

.archive-layer {
  position: absolute;
  width: 136px;
  height: 142px;
  border-radius: 24px;
  border: 1px solid #ffffffbc
}

.archive-layer-back {
  background: #bda3ec;
  transform: translate(25px, -13px) rotate(16deg);
  box-shadow: 0 9px 28px #68359814
}

.archive-layer-middle {
  background: #e2c8ef;
  transform: translate(3px, -5px) rotate(3deg)
}

.archive-layer-front {
  display: grid;
  place-items: center;
  transform: translate(-15px, 12px) rotate(-8deg);
  background: #fffbff;
  box-shadow: 0 13px 25px #68438b25
}

.archive-layer-front img {
  width: 104px;
  height: 104px;
  border-radius: 22px
}

.archive-history-icon {
  position: absolute;
  bottom: 3px;
  right: 20px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #6035ce;
  color: #fff;
  border: 2px solid #ffffffbb;
  box-shadow: 0 8px 18px #6035ce20
}

.archive-history-icon .icon {
  width: 27px;
  height: 27px
}

.history-page .content-layout {
  grid-template-columns: minmax(0, 1fr) 350px
}

.history-page .archive-section {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none
}

.history-page .archive-section>.section-heading {
  padding: 2px 0 0;
  margin-bottom: 20px
}

.version-list {
  display: flex;
  flex-direction: column;
  gap: 18px
}

.version-card {
  background: #fff;
  border: 1px solid #e4deef;
  border-radius: 12px;
  padding: 24px;
  scroll-margin-top: 20px;
  box-shadow: 0 3px 15px #39264b03
}

.version-card:first-child {
  border-top: 3px solid #7944d5
}

.version-card-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 17px
}

.version-package-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #f0e9fc;
  color: #713ec2;
  border-radius: 12px
}

.version-package-icon .icon {
  width: 25px;
  height: 25px
}

.version-card h3 {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 3px
}

.history-page .version-card .version-meta {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  color: #72677e
}

.release-notes {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 16px
}

.release-notes>summary {
  font-size: 14px;
  min-height: 44px;
  padding: 12px 27px 9px 0;
  color: #67557e;
  font-weight: 500
}

.release-notes>summary:after {
  top: 9px;
  right: 1px;
  font-size: 20px
}

.release-notes ul {
  margin: 3px 0 18px;
  padding-left: 19px
}

.release-notes li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  padding: 0 0 9px 3px
}

.release-notes li:last-child {
  padding-bottom: 0
}

.release-notes strong {
  color: #453353;
  font-weight: 650
}

.version-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px
}

.version-details-button,
.version-download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dcd0ef;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  color: #6739b8;
  cursor: pointer;
  text-align: center
}

.version-download-button {
  background: #6035ce;
  color: #fff;
  border-color: #6035ce
}

.version-details-button:hover {
  background: #f6f1fc
}

.version-download-button:hover {
  background: #4e24b6
}

.version-card-actions .icon {
  width: 18px;
  height: 18px
}

.version-details-button[aria-expanded="true"] .icon {
  transform: rotate(180deg)
}

.version-detail-body {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line)
}

.version-detail-body[hidden] {
  display: none
}

.version-detail-body h4 {
  font-size: 15px;
  margin: 0 0 10px;
  font-weight: 650
}

.version-details-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  line-height: 1.7
}

.version-details-table th,
.version-details-table td {
  padding: 10px 0;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  text-align: left;
  overflow-wrap: anywhere
}

.version-details-table th {
  width: 42%;
  padding-right: 16px;
  font-weight: 500;
  color: #71617e
}

.version-details-table td {
  color: var(--ink);
  font-weight: 500
}

.version-details-table tr:last-child>* {
  border: 0
}

.history-page .version-download-status {
  font-size: 13px;
  background: #f5f0fc;
  color: #695381;
  padding: 10px 12px;
  border-radius: 6px;
  margin-top: 12px;
  margin-bottom: 0
}

.version-download-status[hidden] {
  display: none
}

.history-page .content-layout>aside .card {
  border-top: 3px solid #a378d2
}

.history-page .content-layout>aside h2 {
  font-size: 21px;
  line-height: 1.5
}

.history-page .installed-version-card>h3 {
  font-size: 16px;
  margin: 22px 0 12px
}

.compact-instructions {
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
  counter-reset: instruction;
  display: grid;
  gap: 14px
}

.compact-instructions li {
  counter-increment: instruction;
  position: relative;
  padding-left: 34px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted)
}

.compact-instructions li:before {
  content: counter(instruction);
  position: absolute;
  left: 0;
  top: 2px;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  background: #eee7fc;
  color: #6e42b9;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600
}

.compact-instructions strong {
  color: #493757
}

.history-page .installed-version-card p {
  font-size: 15px;
  line-height: 1.85
}

.update-platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px
}

.update-platform {
  min-width: 0
}

.update-platform+.update-platform {
  padding-left: 24px;
  border-left: 1px solid var(--line)
}

.update-platform>h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  margin: 0 0 19px
}

.update-platform>h3 .icon {
  width: 21px;
  height: 21px;
  color: #7142be
}

.history-page .update-note {
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 7px;
  background: #f7f3fc;
  line-height: 1.8;
  margin: 0
}

@media(max-width:1100px) and (min-width:801px) {
  .history-page .content-layout {
    grid-template-columns: minmax(0, 1fr) 300px
  }

  .update-platforms {
    grid-template-columns: 1fr;
    gap: 24px
  }

  .update-platform+.update-platform {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0 0
  }

  .history-page .history-hero .hero-grid {
    grid-template-columns: minmax(0, 1fr) 180px
  }

  .history-hero-art {
    transform: scale(.84);
    transform-origin: center;
    width: 180px
  }

  .history-page .history-hero h1 {
    font-size: 32px
  }
}

@media(max-width:800px) {
  .history-page .history-hero .hero-grid {
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 20px
  }

  .history-page .history-hero h1 {
    font-size: 29px
  }

  .history-hero-art {
    width: 150px;
    height: 170px
  }

  .archive-layer {
    width: 106px;
    height: 112px;
    border-radius: 20px
  }

  .archive-layer-front img {
    width: 82px;
    height: 82px;
    border-radius: 17px
  }

  .archive-history-icon {
    width: 43px;
    height: 43px;
    bottom: 0;
    right: 0
  }

  .archive-history-icon .icon {
    width: 22px;
    height: 22px
  }

  .history-page .main-column {
    display: contents
  }

  .history-page #version-downloads {
    order: 0
  }

  .history-page .content-layout>aside {
    display: flex;
    order: 1
  }

  .history-page #update-version {
    order: 2
  }

  .history-page #faq {
    order: 3
  }

  .history-page .archive-section {
    padding: 0
  }

  .history-page .archive-section>.section-heading {
    padding: 0 4px
  }

  .version-card {
    padding: 22px
  }

  .version-card h3 {
    font-size: 19px
  }

  .version-details-button,
  .version-download-button {
    font-size: 15px;
    min-height: 46px
  }

  .history-page .compact-instructions li,
  .history-page .installed-version-card p {
    font-size: 16px
  }

  .version-details-table {
    font-size: 15px
  }

  .release-notes li {
    font-size: 15px
  }

  .history-page .content-layout>aside .section-heading h2 {
    font-size: 22px
  }
}

@media(max-width:550px) {
  .history-page .history-hero .hero-grid {
    grid-template-columns: minmax(0, 1fr) 85px;
    gap: 14px
  }

  .history-page .history-hero .hero-copy {
    display: contents
  }

  .history-page .history-hero h1 {
    grid-column: 1;
    grid-row: 1;
    font-size: 26px;
    align-self: center
  }

  .history-hero-art {
    grid-column: 2;
    grid-row: 1;
    width: 85px;
    height: 110px
  }

  .archive-layer {
    width: 64px;
    height: 70px;
    border-radius: 14px
  }

  .archive-layer-front img {
    width: 50px;
    height: 50px;
    border-radius: 11px
  }

  .archive-layer-back {
    transform: translate(11px, -9px) rotate(15deg)
  }

  .archive-layer-middle {
    transform: translate(2px, -4px) rotate(3deg)
  }

  .archive-layer-front {
    transform: translate(-6px, 6px) rotate(-7deg)
  }

  .archive-history-icon {
    width: 30px;
    height: 30px;
    bottom: 2px;
    right: -2px
  }

  .archive-history-icon .icon {
    width: 17px;
    height: 17px
  }

  .version-card {
    padding: 18px
  }

  .version-card-header {
    gap: 12px
  }

  .version-package-icon {
    width: 40px;
    height: 42px;
    border-radius: 10px
  }

  .version-card h3 {
    font-size: 18px
  }

  .version-card-actions {
    gap: 9px
  }

  .version-details-button,
  .version-download-button {
    font-size: 14px;
    padding: 10px 7px;
    gap: 6px
  }

  .version-details-button .icon,
  .version-download-button .icon {
    width: 16px;
    height: 16px
  }

  .history-page .version-card .version-meta {
    font-size: 13px
  }

  .update-platforms {
    grid-template-columns: 1fr;
    gap: 24px
  }

  .update-platform+.update-platform {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0 0
  }

  .history-page .content-layout>aside .section-heading h2 {
    font-size: 21px
  }
}

.history-page #update-version .update-platforms {
  display: block
}

.history-page #update-version .installation-platform-tabs {
  margin: 0 0 12px
}

.history-page #update-version .update-platform {
  border: 0;
  padding: 0
}

.history-page #update-version .update-platform[hidden] {
  display: none
}

.history-page #update-version .update-platform+.update-platform {
  border: 0;
  padding: 0
}

.history-page #update-version .update-note {
  margin-top: 18px
}

.history-page .update-step-label {
  font-weight: 600;
  color: var(--ink)
}

.history-page .update-simple-step {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.7
}

.history-page .update-simple-step:last-child {
  border-bottom: 0
}

.history-page .update-simple-step>.update-step-label {
  white-space: nowrap
}

.history-page .update-simple-step>p {
  font-size: 16px;
  margin: 0;
  line-height: 1.7
}

.history-page #update-version .update-step-number {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  min-width: 25px;
  flex-shrink: 0;
  margin-right: 11px;
  border-radius: 50%;
  background: #eee7fc;
  color: #6e42b9;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  vertical-align: middle
}

.history-page #update-version .installation-step>summary h3 {
  display: flex;
  align-items: center;
  line-height: 1.6
}

.history-page #update-version .installation-step>p {
  padding-left: 36px
}

.history-page .content-layout .archive-section {
  background: #fff;
  border: 1px solid #e5e7f1;
  border-top: 3px solid #7944d5;
  border-radius: 13px;
  padding: 26px 28px 28px;
  box-shadow: 0 4px 18px #20234904
}

.history-page .archive-section>.section-heading {
  padding: 0;
  margin: 0 0 22px
}

.history-page .archive-section .version-card:first-child {
  border-top: 1px solid #e4deef
}

@media(max-width:800px) {
  .history-page .content-layout .archive-section {
    padding: 22px
  }

  .history-page .archive-section>.section-heading {
    padding: 0
  }
}

@media(max-width:420px) {
  .history-page .content-layout .archive-section {
    padding: 18px
  }
}

.version-card-header .version-app-icon {
  display: block;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
  background: #f4effa
}

@media(max-width:550px) {
  .version-card-header .version-app-icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 10px
  }
}

.history-page .download-hero.history-hero {
  position: relative;
  isolation: isolate;
  background: #edf3ff url("version-history-hero-glow-background.webp") center/cover no-repeat;
  border-bottom: 1px solid #e0d9ef;
  overflow: hidden
}

.history-page .download-hero.history-hero::before {
  content: none
}

.history-page .download-hero.history-hero .hero-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: center;
  padding-bottom: 8px
}

.history-page .history-hero-art {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  min-width: 0
}

.history-update-art {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  filter: saturate(.82) contrast(.96)
}

@media(min-width:801px) and (max-width:1100px) {
  .history-page .download-hero.history-hero .hero-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 24px
  }
}

@media(max-width:800px) {
  .history-page .download-hero.history-hero .hero-grid {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 20px
  }

  .history-update-art {
    max-height: 190px
  }
}

@media(max-width:550px) {
  .history-page .download-hero.history-hero .hero-grid {
    grid-template-columns: minmax(0, 1fr) 115px;
    gap: 14px
  }

  .history-page .history-hero-art {
    grid-column: 2;
    grid-row: 1;
    width: 115px;
    height: auto;
    align-self: center
  }

  .history-update-art {
    max-height: 130px
  }

  .history-page .download-hero.history-hero::before {
    width: 280px;
    height: 160px;
    right: -120px;
    top: -60px
  }
}
