html{scroll-behavior:smooth}img{max-width:100%;object-fit:contain}.logo-img{width:36px;height:36px}.letter-icon{display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:36px;color:#fff;background:#5065e8;border-radius:12px;font-size:24px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.portal-search,.header-search,.magnet-search{display:flex;gap:10px;align-items:center}.portal-search input,.header-search input,.magnet-search input{min-width:0;flex:1;padding:13px 16px;border:1px solid #ddd;border-radius:9px;font:inherit}.header-search{max-width:280px;margin-left:auto}.header-search button{padding:10px;border:0;border-radius:6px;cursor:pointer}.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}.category-chip{display:flex;justify-content:space-between;gap:12px;padding:16px;border:1px solid #e3e7f2;border-radius:12px;background:#fff}.category-chip.active{border-color:#5065e8}.catalog-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.catalog-cards:after{display:none}.catalog-cards .card{width:auto;float:none;margin:0}.catalog-summary{min-height:76px;font-size:14px;line-height:1.8;color:#637086}.catalog-window{padding:24px}.catalog-window-title{font-weight:600;margin-bottom:16px}.mini-app{display:flex;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid #edf0f6}.mini-app-icon{display:grid;place-items:center;background:#eef1ff;border-radius:9px;width:44px;height:44px}.mini-arrow{margin-left:auto}.pagination{display:flex;justify-content:center;align-items:center;gap:20px;margin-top:32px}.article-body{line-height:1.9;overflow-wrap:anywhere}.article-body p{margin:1em 0}.article-body h2,.article-body h3{margin:1.6em 0 .7em}.article-body table{display:block;max-width:100%;overflow:auto}.full-description{margin-top:36px;background:#fff;padding:24px;border:1px solid #e3e7f2;border-radius:14px}.full-description summary{cursor:pointer;font-weight:600}.shots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.shots:after{display:none}.shots .shot{width:auto;float:none}.shot-frame{display:block;border:1px solid #e3e7f2;border-radius:12px;overflow:hidden}.shot img{width:100%;height:auto}.no-image{display:grid;place-items:center;min-height:240px}.feature-number{font-size:30px;font-weight:700;color:#5065e8}.feat-ic img{width:100%;height:auto}.hero-img{width:100%;height:auto}.image-unavailable{opacity:.35;min-height:36px}.magnet-warning,.download-ad{margin-top:24px;padding:24px;border-radius:12px;background:#eef1ff}.magnet-warning-text{margin-bottom:12px;font-weight:600}.faq-a[aria-hidden=true]{display:none}.faq-a[aria-hidden=false]{display:block}.back-top.show{opacity:1;visibility:visible}.friend-links{padding:24px 0}.friend-links-list{display:flex;gap:16px;flex-wrap:wrap}.platform-recommendations{padding:24px;background:#f3f5ff;border-radius:12px;margin:24px 0}.platform-recommendations a{display:inline-block;padding:8px 14px;margin:5px;border:1px solid #cdd5f5;border-radius:8px}@media(max-width:1000px){.header-search{display:none}.catalog-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.catalog-cards,.shots{grid-template-columns:1fr}.portal-search,.magnet-search{flex-wrap:wrap}.portal-search input,.magnet-search input{flex-basis:65%}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.full-description{padding:16px}}

/* Portal cards use grid tracks; the reference theme's flex widths must not apply. */
.portal-page .catalog-cards .card {
  width: 100%;
  max-width: none;
  min-width: 0;
}
.portal-page .catalog-cards .card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}
.portal-page .catalog-cards .card-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
}
.portal-page .catalog-cards .card-icon .letter-icon {
  width: 56px;
  height: 56px;
  min-height: 0;
  background: var(--brand);
}
.portal-page .catalog-cards .card-title {
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.portal-page .catalog-cards .card-ver {
  overflow-wrap: anywhere;
}
.portal-page .catalog-cards .catalog-summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.portal-page .catalog-cards .btn {
  margin-top: auto;
  white-space: normal;
}
.portal-page .catalog-cards .card-note {
  overflow-wrap: anywhere;
}

/* The preview contains text, unlike the reference image-only window. */
.portal-page .catalog-window {
  height: auto;
  min-height: 300px;
  background: #fff;
  color: #253149;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
}
.portal-page .catalog-window-title {
  color: #253149;
  font-size: 15px;
  line-height: 1.6;
}
.portal-page .mini-app {
  min-width: 0;
  font-size: 15px;
  line-height: 1.6;
}
.portal-page .mini-app > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.portal-page .mini-app-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  color: var(--brand-dark);
  background: #eff5e9;
}
.portal-page .mini-arrow {
  flex: 0 0 auto;
  color: var(--brand-dark);
}
.portal-page .portal-search {
  margin-bottom: 28px;
}
.portal-page .portal-search input {
  width: 100%;
  background: #fff;
  color: #253149;
}
.portal-page .portal-search input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.portal-page .portal-search button {
  flex: 0 0 auto;
  min-height: 48px;
}
.portal-page .category-chip {
  min-width: 0;
  align-items: center;
  text-decoration: none;
}
.portal-page .category-grid {
  max-height: 400px;
  overflow-y: auto;
  align-content: start;
  padding: 2px 8px 4px 2px;
  scrollbar-gutter: stable;
}
.portal-page .category-chip span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.portal-page .category-chip b {
  flex: 0 0 auto;
  min-width: 32px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #eff5e9;
  color: var(--brand-dark);
  font-size: 12px;
  text-align: center;
}
.portal-page .category-chip:hover,
.portal-page .category-chip.active {
  border-color: var(--brand);
  background: #f6faf2;
  color: var(--brand-dark);
}
.portal-page .pagination {
  flex-wrap: wrap;
  gap: 12px;
}
.portal-page .pagination .btn {
  padding: 9px 16px;
}

/* Keep long software names and the header controls inside the viewport. */
.site-header .logo {
  min-width: 0;
}
.site-header .logo-box {
  flex-shrink: 0;
}
.site-header .logo-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.window-bar .wb-title {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.window-bar .wb-controls {
  display: flex;
  flex: 0 0 auto;
  float: none;
}
.portal-page .header-inner {
  gap: 16px;
}
.portal-page .header-inner .logo {
  max-width: calc(50% - 110px);
}
.portal-page .btn-nav {
  flex-shrink: 0;
}
.software-page .main-nav {
  position: static;
  transform: none;
  flex-shrink: 0;
  margin: 0 20px 0 auto;
}
.software-page .header-search {
  flex: 0 0 250px;
  min-width: 0;
}

/* The four download channels need their own grid, separate from catalogue cards. */
.software-page #goodsList {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.software-page #goodsList .card {
  width: 100%;
  max-width: none;
  min-width: 0;
}
.software-page #goodsList .card-title,
.software-page #goodsList .btn,
.software-page #goodsList .card-note {
  overflow-wrap: anywhere;
  white-space: normal;
}
.software-page .no-image {
  gap: 12px;
  padding: 24px;
  text-align: center;
}
.software-page .no-image .letter-icon {
  width: 72px;
  height: 72px;
  min-height: 0;
}
.software-page .hero-img {
  height: 100%;
  object-fit: contain;
}
.software-page .feat-ic img,
.software-page .shot-frame img {
  height: 100%;
  object-fit: contain;
}
.software-page .article-body ul,
.software-page .article-body ol {
  margin: 1em 0;
  padding-inline-start: 1.5em;
}
.software-page .article-body ul {
  list-style: disc;
}
.software-page .article-body ol {
  list-style: decimal;
}
.software-page .article-body li {
  margin: .4em 0;
}
.software-page .article-body th,
.software-page .article-body td {
  padding: 10px 12px;
  border: 1px solid #e3e7f2;
  text-align: left;
}
.software-page .article-body th {
  background: #f4f7f1;
}
.software-page .article-body blockquote {
  margin: 1em 0;
  padding: 12px 16px;
  border-inline-start: 3px solid var(--brand);
  background: #f6faf2;
}
.software-page .article-body pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 16px;
  border-radius: 8px;
  background: #f4f7f1;
}
.software-page .feature-number {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--brand-dark);
}
.software-page .hero-title,
.software-page .usecase-title,
.software-page .cta-title {
  overflow-wrap: anywhere;
}
.portal-page .hero-title,
.portal-page .sec-title,
.software-page .sec-title,
.software-page .sec-sub,
.software-page .ticks li,
.software-page .review-info {
  overflow-wrap: anywhere;
}
.software-page .feature,
.software-page .review-info,
.software-page .review-item {
  min-width: 0;
  overflow-wrap: anywhere;
}
.software-page .cta .btn {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.software-page .faq-item.open .faq-a {
  max-height: none;
}
.software-page .faq-q {
  overflow-wrap: anywhere;
}

@media (max-width: 1000px) {
  .software-page #goodsList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .portal-page .header-inner .logo {
    max-width: calc(100% - 120px);
  }
}
@media (max-width: 640px) {
  .portal-page .category-chip {
    gap: 8px;
    padding: 12px 10px;
  }
  .portal-page .category-grid {
    max-height: 340px;
  }
  .portal-page .portal-search {
    gap: 8px;
  }
  .portal-page .portal-search input {
    flex: 1 1 170px;
  }
  .portal-page .portal-search button {
    flex: 1 1 auto;
  }
  .software-page #goodsList {
    grid-template-columns: 1fr;
  }
  .software-page .usecase {
    padding: 24px 20px;
    gap: 28px;
  }
  .software-page .usecase-text {
    min-width: 0;
    width: 100%;
  }
  .software-page .usecase-media {
    min-width: 0;
  }
  .software-page .full-description {
    padding: 18px 14px;
  }
}
