:root {
  --gray-900: #121212;
  --gray-700: #4f4f4f;
  --gray-600: #6b6b6b;
  --gray-500: #8c8c8c;
  --gray-100: #f7f7f7;
  --page-bg: #f5f5f7;
  --link: #115cff;
  --primary: #7d3cff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
  color: var(--gray-900);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--page-bg);
}

.support-document,
.support-document body {
  background: #fff;
}

.downloads-document,
.downloads-document body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.downloads-document::-webkit-scrollbar,
.downloads-document body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--page-bg);
}

.page-shell > .page-main {
  flex: 1;
}

.download-hero {
  width: 100%;
  height: 260px;
  background: linear-gradient(110deg, #ececf0 8%, #f7f7fa 18%, #e7e7ec 33%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

.page-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 902px;
  padding: 32px 0 64px;
  margin: 0 auto;
}

.system-card,
.download-card,
.empty-card {
  background: #fff;
  border-radius: 20px;
}

.system-card {
  position: relative;
  padding: 20px 32px;
}

.system-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.system-current {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.system-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-glyph {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: currentColor;
}

.system-title {
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-desc {
  margin: 0;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 22px;
}

.system-toggle {
  display: inline-flex;
  height: 36px;
  width: 112px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 12px;
  border: 1px solid rgb(0 0 0 / 15%);
  border-radius: 6px;
  background: #fff;
  color: var(--gray-900);
  cursor: pointer;
  font-size: 14px;
  line-height: 22px;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.system-toggle:hover {
  border-color: var(--gray-900);
}

.system-toggle:active {
  transform: scale(0.98);
}

.chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.system-card.is-open .chevron {
  transform: rotate(180deg);
}

.system-menu {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    max-height 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.28s ease;
}

.system-card.is-open .system-menu {
  max-height: 420px;
  margin-top: 20px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.system-menu-inner {
  padding-top: 20px;
  border-top: 1px solid rgb(0 0 0 / 10%);
  transform: translateY(-6px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.system-card.is-open .system-menu-inner {
  transform: translateY(0);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 14px;
}

.platform-option {
  display: flex;
  height: 70px;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  border: 1px solid rgb(0 0 0 / 10%);
  border-radius: 8px;
  background: #fff;
  color: var(--gray-600);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  text-align: left;
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background 0.18s ease,
    opacity 0.24s ease,
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.system-card.is-open .platform-option {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.system-card.is-open .platform-option:nth-child(1) {
  transition-delay: 0.03s;
}

.system-card.is-open .platform-option:nth-child(2) {
  transition-delay: 0.05s;
}

.system-card.is-open .platform-option:nth-child(3) {
  transition-delay: 0.07s;
}

.system-card.is-open .platform-option:nth-child(4) {
  transition-delay: 0.09s;
}

.system-card.is-open .platform-option:nth-child(5) {
  transition-delay: 0.11s;
}

.platform-option:hover,
.platform-option.is-active {
  border-color: var(--gray-900);
  color: var(--gray-900);
}

.download-card {
  display: grid;
  grid-template-columns: 182px 1fr;
  gap: 40px;
  min-height: 288px;
  padding: 48px 40px;
}

.download-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.soft-icon,
.soft-icon-skeleton {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  object-fit: contain;
}

.soft-icon-skeleton {
  flex-shrink: 0;
  background: rgb(0 0 0 / 8%);
}

.soft-icon-frame {
  position: relative;
  display: block;
  width: 70px;
  height: 70px;
  overflow: hidden;
  border-radius: 14px;
  background: rgb(0 0 0 / 8%);
}

.soft-icon-frame.is-loading::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, #ececf0 8%, #f7f7fa 18%, #e7e7ec 33%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

.soft-icon-frame .soft-icon {
  position: relative;
  z-index: 1;
  display: block;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.soft-icon-frame.is-loaded {
  background: transparent;
}

.soft-icon-frame .soft-icon.is-loaded {
  opacity: 1;
}

.soft-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.version-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--gray-500);
  font-size: 12px;
  line-height: 18px;
}

.muted-divider {
  color: rgb(0 0 0 / 10%);
}

.history-link {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--gray-700);
  cursor: pointer;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  padding: 0;
  transition: color 0.18s ease;
}

.history-link:hover {
  color: var(--gray-900);
}

.text-link {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--link);
  cursor: pointer;
  font-size: 12px;
  line-height: 18px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.download-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}

.download-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.rich-preview,
.rich-content {
  color: var(--gray-700);
  font-size: 14px;
  line-height: 22px;
}

.rich-preview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.rich-content {
  font-size: 14px;
  line-height: 22px;
}

.rich-preview p,
.rich-content p {
  margin: 0 0 6px;
}

.rich-preview ul,
.rich-preview ol,
.rich-content ul,
.rich-content ol {
  padding-left: 20px;
  margin: 0 0 8px;
}

.rich-preview a,
.rich-content a {
  color: var(--link);
  text-decoration: underline;
}

.requirement-pill {
  display: inline-flex;
  width: 100%;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 13px;
  line-height: 20px;
}

.requirement-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: currentColor;
}

.download-button {
  display: inline-flex;
  height: 40px;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.download-button:hover {
  opacity: 0.9;
}

.download-button:active {
  transform: translateY(1px);
}

.download-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.download-button svg {
  width: 16px;
  height: 16px;
}

.empty-card {
  padding: 48px 40px;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.skeleton {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgb(0 0 0 / 8%);
  border-radius: 4px;
}

.skeleton::after {
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 40%;
  content: "";
  background: linear-gradient(
    90deg,
    rgb(255 255 255 / 0) 0%,
    rgb(255 255 255 / 60%) 50%,
    rgb(255 255 255 / 0) 100%
  );
  animation: shimmer 1.2s ease-in-out infinite;
}

.system-skeleton {
  padding: 20px 32px;
}

.system-skeleton .system-skeleton-row {
  align-items: center;
  gap: 32px;
}

.system-skeleton .system-skeleton-current {
  gap: 0;
}

.system-skeleton .sk-system-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 4px;
}

.system-skeleton .sk-system-title {
  width: 72px;
  height: 24px;
  border-radius: 4px;
}

.system-skeleton .sk-system-mobile-title {
  display: none;
  width: 72px;
  height: 22px;
  border-radius: 4px;
}

.system-skeleton .sk-system-desc {
  width: min(100%, 520px);
  max-width: 100%;
  height: 22px;
  margin-top: 0;
  border-radius: 4px;
}

.system-skeleton .sk-system-toggle {
  width: 112px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 6px;
}

.download-card-skeleton .soft-icon-skeleton {
  width: 70px;
  height: 70px;
  border-radius: 14px;
}

.download-side-meta {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.download-body-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-card-skeleton .sk-soft-name {
  width: 132px;
  height: 24px;
  border-radius: 4px;
}

.download-card-skeleton .sk-version-meta {
  width: 168px;
  height: 18px;
  border-radius: 4px;
}

.download-card-skeleton .sk-history-link {
  width: 96px;
  height: 18px;
  border-radius: 4px;
}

.download-card-skeleton .sk-changelog-title {
  width: 112px;
  height: 24px;
  margin-bottom: 0;
  border-radius: 4px;
}

.download-card-skeleton .sk-preview-line {
  width: 100%;
  height: 18px;
  margin-bottom: 0;
  border-radius: 4px;
}

.download-card-skeleton .sk-pill {
  width: 100%;
  max-width: none;
  height: 28px;
  border-radius: 6px;
}

.download-card-skeleton .sk-download {
  width: 128px;
  height: 40px;
  border-radius: 8px;
}

.sk-title {
  width: 120px;
  height: 18px;
}

.sk-line {
  width: 100%;
  height: 14px;
  margin-bottom: 10px;
}

.sk-line.short {
  width: 60%;
}

.sk-pill {
  width: 100%;
  height: 36px;
}

.sk-download {
  width: 128px;
  height: 40px;
  border-radius: 8px;
}

.support-skeleton-section {
  padding-bottom: 48px;
}

.support-skeleton-section .skeleton {
  background: #f0f1f4;
  border-radius: 4px;
}

.support-skeleton-title {
  width: 178px;
  height: 56px;
}

.support-skeleton-list li {
  display: flex;
  height: 50px;
  align-items: center;
  gap: 10px;
  padding: 13px 24px 13px 8px;
  margin-bottom: 10px;
}

.support-skeleton-bullet {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  background: rgb(0 0 0 / 28%);
  border-radius: 999px;
}

.support-skeleton-text {
  width: min(420px, 72%);
  height: 20px;
}

.support-skeleton-text.is-short {
  width: min(312px, 56%);
}

.support-contact-title-skeleton {
  width: 172px;
  height: 28px;
  background: #f0f1f4;
  border-radius: 4px;
}

.support-contact-card-skeleton {
  pointer-events: none;
}

.support-contact-icon-skeleton {
  width: 38px;
  height: 36px;
  background: #e6e8ed;
  border-radius: 5px;
}

.support-contact-text-skeleton {
  width: 45px;
  height: 20px;
  background: #e6e8ed;
  border-radius: 4px;
}

.modal-overlay,
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 2999;
  display: none;
  background: rgb(0 0 0 / 50%);
}

.modal-overlay.is-open,
.drawer-overlay.is-open {
  display: block;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 3000;
  width: min(902px, calc(100vw - 40px));
  max-height: 80vh;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  transform: translate(-50%, -50%);
}

.modal-close,
.drawer-close {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--gray-900);
  cursor: pointer;
  transition: background 0.18s ease;
}

.modal-close {
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
}

.modal-close:hover,
.drawer-close:hover {
  background: rgb(0 0 0 / 5%);
}

.modal-header {
  padding: 48px 64px 0;
}

.modal-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 34px;
}

.modal-date {
  margin: 0;
  color: var(--gray-700);
  font-size: 14px;
  line-height: 22px;
}

.modal-body {
  max-height: calc(80vh - 130px);
  padding: 24px 64px 48px;
  overflow-y: hidden;
  overscroll-behavior-y: none;
  outline: none;
  scrollbar-width: none;
}

.modal-body::-webkit-scrollbar,
.drawer-scroll::-webkit-scrollbar,
.history-list-scroll::-webkit-scrollbar {
  display: none;
}

.drawer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 88vh;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: #fff;
  transform: translateY(100%);
  transition: transform 0.24s ease;
}

.drawer-overlay.is-open .drawer {
  transform: translateY(0);
}

.drawer-head {
  position: relative;
  padding: 18px 20px 0;
}

.drawer-title {
  margin: 0;
  padding-right: 48px;
  font-size: 18px;
  font-weight: 700;
  line-height: 27px;
}

.drawer-date {
  margin: 0;
  color: var(--gray-700);
  font-size: 13px;
  line-height: 20px;
}

.drawer-close {
  top: 18px;
  right: 16px;
  width: 20px;
  height: 20px;
}

.drawer-rule {
  height: 1px;
  margin-top: 16px;
  background: rgb(0 0 0 / 10%);
}

.drawer-scroll {
  max-height: calc(88vh - 120px);
  padding: 16px 20px 0;
  overflow-y: hidden;
  overscroll-behavior-y: none;
  outline: none;
  scrollbar-width: none;
}

.drawer-rich {
  padding: 16px;
  background: var(--gray-100);
}

.history-version-item {
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.history-version-item:hover,
.history-version-item.is-active {
  background: var(--gray-100);
  color: var(--gray-900);
  font-weight: 700;
}

.history-drawer-empty {
  padding: 48px 20px;
  margin: 0;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.history-version-skeleton {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.history-version-skeleton.is-first {
  background: var(--gray-100);
}

.sk-history-version-line {
  width: 52px;
  height: 14px;
  border-radius: 999px;
}

.history-mobile-selector {
  display: none;
}

.page-shell:has(.history-page) {
  background: #f5f5f7;
}

.page-main:has(.history-page) {
  max-width: 1208px;
  padding-top: 0;
}

.history-page {
  padding: 48px 0 0;
  background: transparent;
  border-radius: 0;
}

.breadcrumb {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 22px;
  margin-bottom: 16px;
  color: #a8a8a8;
  font-size: 14px;
  line-height: 22px;
}

.breadcrumb a {
  color: #a8a8a8;
  cursor: pointer;
  transition: color 0.18s ease;
}

.breadcrumb a:hover {
  color: #121212;
}

.breadcrumb span:last-child {
  color: #121212;
}

.history-layout {
  display: grid;
  grid-template-columns: 290px 902px;
  gap: 16px;
  align-items: start;
}

@media (max-width: 1240px) {
  .history-layout {
    grid-template-columns: 290px minmax(0, 1fr);
  }
}

.history-sidebar,
.history-detail-panel {
  overflow: hidden;
  border-radius: 20px;
  background: var(--white-100, #fff);
}

.history-sidebar {
  height: 374px;
}

.history-detail-panel {
  min-height: 374px;
  padding: 48px;
}

.history-sidebar-title {
  margin: 0;
  padding: 20px 20px 8px;
  color: #4f4f4f;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.history-list-scroll {
  display: flex;
  max-height: 328px;
  flex-direction: column;
  gap: 4px;
  padding: 0 20px 16px;
  overflow-y: auto;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}

.history-version {
  position: relative;
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 0;
  border-radius: 8px;
  color: #6b6b6b;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
  transition: color 0.18s ease;
}

.history-version:hover {
  color: #121212;
}

.history-version.is-active {
  color: #121212;
  font-weight: 700;
}

.history-version.is-active::before {
  position: absolute;
  top: 50%;
  left: -20px;
  width: 4px;
  height: 28px;
  content: "";
  background: #121212;
  transform: translateY(-50%);
}

.sk-history-sidebar-title {
  display: block;
  width: 72px;
  height: 18px;
  margin: 20px 20px 8px;
  border-radius: 4px;
}

.sk-history-version {
  display: block;
  width: 72px;
  height: 24px;
  border-radius: 4px;
}

.history-detail-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.history-detail-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.history-detail-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-detail-icon-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.history-detail-icon-row-content {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 16px;
}

.history-detail-icon,
.history-detail-icon-row .soft-icon-skeleton {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 14px;
  object-fit: contain;
}

.history-detail-title-stack {
  display: flex;
  min-width: 0;
  height: 66px;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.history-detail-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 27px;
}

.history-detail-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #6b6b6b;
  font-size: 12px;
  line-height: 18px;
}

.history-detail-download-desktop {
  flex-shrink: 0;
}

.history-detail-download-mobile {
  display: none;
  width: 100%;
}

.history-detail-panel .requirement-pill {
  width: 100%;
}

.history-detail-empty {
  margin: 0;
  color: #8c8c8c;
  font-size: 14px;
  line-height: 22px;
}

.history-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-features-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 34px;
}

.history-detail-content {
  color: #4f4f4f;
  font-size: 14px;
  line-height: 22px;
}

.sk-detail-title {
  width: 160px;
  height: 27px;
}

.sk-detail-meta {
  width: 132px;
  height: 18px;
}

.sk-detail-download {
  width: 116px;
  height: 40px;
  border-radius: 8px;
}

.mobile-only {
  display: none;
}

.support-page,
.support-detail-page {
  width: 1208px;
  max-width: calc(100vw - 48px);
  padding: 48px 0 0;
  margin: 0 auto 48px;
  background: #fff;
  border-radius: 0;
}

.support-section {
  padding-bottom: 48px;
}

.support-title {
  margin: 0;
  color: #1e1e1e;
  font-size: 40px;
  font-weight: 600;
}

.support-line {
  width: calc(100% - 142px);
  height: 1px;
  margin-top: 14px;
  background: #bcbcbc;
}

.support-grid {
  padding: 22px 19px;
  margin-top: 21px;
}

.support-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.support-list li {
  padding: 13px 24px 13px 8px;
  margin-bottom: 10px;
}

.support-link {
  position: relative;
  padding-left: 14px;
  color: #000;
  cursor: pointer;
  font-size: 16px;
  line-height: 24px;
}

.support-link::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 4px;
  height: 4px;
  content: "";
  background: rgb(0 0 0 / 55%);
  border-radius: 999px;
  transform: translateY(-50%);
}

.support-link:hover {
  text-decoration: underline;
}

.support-contact {
  padding: 92px 10px 112px;
}

.support-contact-title {
  margin: 0;
  color: #1e1e1e;
  font-size: 14px;
  font-weight: 700;
  line-height: 28px;
}

.support-contact-list {
  display: flex;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.support-contact-list li {
  padding: 0;
  margin: 0;
}

.support-contact-card {
  display: flex;
  width: 212px;
  height: 124px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #f6f7fa;
  border-radius: 6px;
  color: #1e1e1e;
  font-size: 14px;
  line-height: 20px;
}

.support-contact-icon {
  width: 38px;
  height: 36px;
  flex: 0 0 auto;
}

.view-more {
  display: inline-block;
  border: 0;
  background: transparent;
  color: var(--link);
  cursor: pointer;
  font-size: 16px;
  line-height: 24px;
  padding: 0;
  text-decoration: underline;
}

.support-detail-title {
  margin: 0 0 24px;
  color: #1e1e1e;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
}

.support-detail-content {
  color: #1e1e1e;
  font-size: 16px;
  line-height: 1.75;
}

.support-detail-content h2 {
  margin: 32px 0 12px;
  color: #1e1e1e;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
}

.support-detail-content h3,
.support-detail-content h4 {
  margin: 20px 0 8px;
  color: #1e1e1e;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.support-detail-content p,
.support-detail-content div {
  margin: 0 0 10px;
}

.support-detail-content ol,
.support-detail-content ul {
  margin: 12px 0 18px;
  padding-left: 24px;
}

.support-detail-content li {
  margin: 8px 0;
}

.support-detail-content a {
  color: var(--link);
  text-decoration: underline;
}

.support-detail-skeleton {
  width: 100%;
}

.support-detail-title-skeleton {
  display: block;
  width: min(520px, 72%);
  height: 36px;
  border-radius: 4px;
}

.support-detail-body-skeleton {
  margin-top: 28px;
}

.support-detail-line-skeleton {
  display: block;
  width: min(880px, 100%);
  height: 16px;
  margin: 14px 0;
  border-radius: 4px;
}

.support-detail-line-skeleton.is-short {
  width: min(560px, 64%);
}

.support-detail-media-skeleton {
  display: block;
  width: min(800px, 100%);
  aspect-ratio: 800 / 450;
  margin: 24px 0;
  border-radius: 8px;
}

.support-rich-media {
  position: relative;
  display: block;
  width: min(var(--media-width, 800px), 100%);
  max-width: 100%;
  aspect-ratio: var(--media-ratio, 16 / 9);
  margin: 18px 0 24px;
  overflow: hidden;
  background: #f0f1f4;
  border-radius: 8px;
}

.support-rich-media::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background: linear-gradient(110deg, #f0f1f4 8%, #f8f9fb 18%, #eceef3 33%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

.support-rich-media-item {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.support-rich-media.is-loaded {
  background: transparent;
}

.support-rich-media.is-loaded::before {
  opacity: 0;
  animation: none;
}

.support-rich-media-item.is-loaded {
  opacity: 1;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid rgb(0 0 0 / 6%);
}

.site-nav-inner {
  display: flex;
  width: 1208px;
  max-width: calc(100vw - 48px);
  height: 56px;
  align-items: center;
  gap: 32px;
  padding: 0 24px;
  margin: 0 auto;
}

.site-nav a {
  display: inline-flex;
  height: 56px;
  align-items: center;
  color: rgb(0 0 0 / 55%);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a.is-active {
  color: rgb(0 0 0 / 88%);
  font-weight: 700;
}

.canvas-footer {
  width: 100%;
  padding: 44px 0 32px;
  margin-top: auto;
  background: #f0f0f0;
  color: #828286;
  font-size: 12px;
  font-weight: 300;
}

body:has(> .site-nav) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body:has(> .site-nav) > main {
  flex: 1;
}

.canvas-footer span {
  display: block;
  width: 1208px;
  max-width: calc(100vw - 48px);
  margin: 0 auto;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .system-menu,
  .system-menu-inner,
  .system-toggle,
  .chevron,
  .platform-option {
    transition-duration: 0.01ms;
    transition-delay: 0s;
  }
}

@media (max-width: 767px) {
  .download-hero {
    height: 160px;
  }

  .page-main {
    gap: 20px;
    padding: 20px 20px 40px;
  }

  .system-card {
    padding: 10px 16px;
    border-radius: 12px;
  }

  .system-row {
    gap: 12px;
  }

  .system-title-row {
    gap: 0;
  }

  .system-title-row .platform-glyph {
    width: 30px;
    height: 30px;
  }

  .system-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .system-mobile-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 22px;
  }

  .system-desc {
    font-size: 11px;
    line-height: 16px;
  }

  .system-toggle {
    height: 18px;
    padding: 0;
    border: 0;
    font-size: 12px;
    line-height: 18px;
  }

  .system-menu {
    position: absolute;
    top: 50px;
    right: 16px;
    z-index: 20;
    width: 174px;
    max-height: none;
    border: 1px solid rgb(0 0 0 / 10%);
    border-radius: 8px;
    background: #fff;
    box-shadow:
      0 35px 10px 0 rgb(0 0 0 / 0%),
      0 23px 9px 0 rgb(0 0 0 / 1%),
      0 13px 8px 0 rgb(0 0 0 / 4%),
      0 6px 6px 0 rgb(0 0 0 / 7%),
      0 1px 3px 0 rgb(0 0 0 / 8%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
  }

  .system-card.is-open .system-menu {
    margin-top: 0;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .system-menu-inner {
    padding: 8px 0;
    border-top: 0;
  }

  .platform-grid {
    display: block;
  }

  .platform-option {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    transform: translateY(-4px);
  }

  .platform-option:hover,
  .platform-option.is-active {
    background: var(--gray-100);
    border-color: transparent;
    font-weight: 700;
  }

  .download-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px 16px 16px;
    border-radius: 12px;
  }

  .download-side {
    gap: 16px;
  }

  .download-title {
    font-size: 16px;
    line-height: 24px;
  }

  .download-button {
    width: 100%;
  }

  .requirement-pill {
    width: 100%;
    padding: 5px 8px;
    font-size: 12px;
    line-height: 18px;
  }

  .desktop-history-link {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .system-skeleton {
    padding: 10px 16px;
  }

  .system-skeleton .system-skeleton-row {
    gap: 12px;
  }

  .system-skeleton .system-skeleton-title-row .sk-system-title {
    display: none;
  }

  .system-skeleton .sk-system-icon {
    width: 30px;
    height: 30px;
  }

  .system-skeleton .sk-system-mobile-title {
    display: block;
    width: 72px;
    height: 22px;
  }

  .system-skeleton .sk-system-desc {
    width: min(100%, 240px);
    height: 16px;
  }

  .system-skeleton .sk-system-toggle {
    width: 72px;
    height: 18px;
    border-radius: 4px;
  }

  .download-card-skeleton .sk-download {
    width: 100%;
  }

  .download-card-skeleton .sk-pill {
    max-width: none;
  }

  .modal-overlay.is-open {
    display: none;
  }

  .drawer-overlay.is-open {
    display: block;
  }

  .page-main:has(.history-page) {
    max-width: none;
    padding: 0 0 40px;
  }

  .history-page {
    padding: 0 16px 0;
    background: transparent;
    border-radius: 0;
  }

  .history-mobile-selector {
    display: block;
    position: relative;
    z-index: 2;
    width: 100vw;
    max-width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-bottom: 16px;
    margin-left: calc(50% - 50vw);
    background: #fff;
    border-bottom: 1px solid rgb(0 0 0 / 10%);
  }

  .history-mobile-selector-trigger {
    display: flex;
    width: 100%;
    height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 20px;
    border: 0;
    background: #fff;
    color: #121212;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    line-height: 20px;
    text-align: left;
  }

  .history-mobile-selector-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .history-mobile-selector-chevron {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }

  .history-mobile-selector-chevron.is-open {
    transform: rotate(180deg);
  }

  .history-mobile-selector-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    z-index: 10;
    display: none;
    width: 130px;
    max-height: 244px;
    padding: 8px 0;
    border: 1px solid rgb(0 0 0 / 10%);
    border-radius: 8px;
    background: #fff;
    box-shadow:
      0 35px 10px 0 rgb(0 0 0 / 0%),
      0 23px 9px 0 rgb(0 0 0 / 1%),
      0 13px 8px 0 rgb(0 0 0 / 4%),
      0 6px 6px 0 rgb(0 0 0 / 7%),
      0 1px 3px 0 rgb(0 0 0 / 8%);
    overflow-y: auto;
    overscroll-behavior-y: none;
    scrollbar-width: none;
  }

  .history-mobile-selector-menu.is-open {
    display: block;
  }

  .history-mobile-selector-menu::-webkit-scrollbar {
    display: none;
  }

  .history-mobile-selector-item {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: #6b6b6b;
    cursor: pointer;
    font-size: 13px;
    line-height: 20px;
    text-align: left;
    transition:
      background 0.18s ease,
      color 0.18s ease;
  }

  .history-mobile-selector-item:hover,
  .history-mobile-selector-item.is-active {
    background: var(--gray-100);
    color: #121212;
    font-weight: 700;
  }

  .history-mobile-selector-item.is-skeleton {
    justify-content: center;
    cursor: default;
    pointer-events: none;
  }

  .history-mobile-selector-empty {
    padding: 12px;
    margin: 0;
    color: var(--gray-500);
    font-size: 13px;
    line-height: 20px;
    text-align: center;
  }

  .sk-selector-label {
    display: block;
    width: min(240px, 72vw);
    height: 14px;
    border-radius: 999px;
  }

  .history-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .history-sidebar {
    display: none;
  }

  .history-detail-panel {
    width: 335px;
    max-width: 100%;
    min-height: auto;
    padding: 16px 12px 12px;
    border-radius: 10px;
  }

  .history-detail-body {
    gap: 16px;
  }

  .history-detail-header {
    gap: 12px;
  }

  .history-detail-icon-row {
    height: 56px;
    min-height: 56px;
    max-height: 56px;
    align-items: center;
    gap: 10px;
  }

  .history-detail-icon,
  .history-detail-icon-row .soft-icon-skeleton {
    width: 56px;
    height: 56px;
    border-radius: 10px;
  }

  .history-detail-icon-row-content {
    display: block;
    min-height: 0;
  }

  .history-detail-title-stack {
    height: auto;
    min-height: 0;
  }

  .history-detail-title {
    font-size: 16px;
    line-height: 24px;
  }

  .history-detail-meta {
    font-size: 11px;
    line-height: 16px;
  }

  .history-detail-download-desktop {
    display: none;
  }

  .history-detail-download-mobile {
    display: inline-flex;
  }

  .history-detail-panel .requirement-pill {
    background: #eee;
  }

  .history-features-title {
    font-size: 16px;
    line-height: 24px;
  }

  .history-detail-content {
    padding: 12px;
    background: #f7f7f7;
    font-size: 12px;
    line-height: 18px;
  }

  .breadcrumb {
    width: 335px;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    font-size: 12px;
    line-height: 18px;
  }

  .site-nav-inner {
    width: 100%;
    max-width: none;
    padding: 0 20px;
    gap: 24px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .support-page,
  .support-detail-page {
    width: 100%;
    max-width: none;
    padding: 29px 30px 0;
    margin-bottom: 24px;
    border-radius: 0;
  }

  .support-title {
    font-size: 25px;
  }

  .support-skeleton-section {
    padding-bottom: 48px;
  }

  .support-skeleton-title {
    width: 112px;
    height: 32px;
  }

  .support-skeleton-list li {
    padding: 13px 0;
  }

  .support-skeleton-text {
    width: min(330px, 82%);
    height: 18px;
  }

  .support-skeleton-text.is-short {
    width: min(250px, 68%);
  }

  .support-contact {
    padding: 92px 24px 64px;
  }

  .support-contact-list {
    margin-top: 30px;
  }

  .support-contact-card {
    width: 160px;
    height: 80px;
  }

  .support-line {
    width: 100%;
    margin-top: 22px;
  }

  .support-grid {
    padding: 24px 0;
    margin-top: 0;
  }

  .support-link {
    color: #31a5ff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
  }

  .support-link::before {
    background: currentColor;
  }

  .support-detail-title {
    font-size: 20px;
  }

  .support-detail-content {
    font-size: 14px;
    line-height: 1.75;
  }

  .support-detail-content h2 {
    font-size: 18px;
  }

  .support-detail-title-skeleton {
    width: 100%;
    height: 28px;
  }

  .support-detail-line-skeleton {
    height: 14px;
  }

  .support-detail-media-skeleton,
  .support-rich-media {
    border-radius: 6px;
  }

  .canvas-footer {
    padding: 38px 16px;
  }

  .canvas-footer span {
    width: 100%;
    max-width: none;
  }
}

@media (min-width: 768px) {
  .drawer-overlay.is-open {
    display: none;
  }

  .system-mobile-title {
    display: none;
  }
}
