.brand {
  color: var(--ink);
  text-decoration: none;
}

.brand-logo-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.brand-logo-wrap .brand-mark {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-logo-wrap .brand-mark:not([src]),
.brand-logo-wrap .brand-mark[src=""] {
  display: none;
}

.brand-copy strong {
  font-size: 1.06rem;
  line-height: 1.15;
  font-weight: 800;
}

.brand-copy span {
  max-width: 360px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.25;
}

.catalog-intro {
  padding-top: 34px;
}

.catalog-structure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.catalog-structure-grid article {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 210px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 242, 0.72)),
    #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 14px 34px rgba(36, 25, 15, 0.05);
}

.catalog-structure-grid article::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, rgba(244, 139, 32, 0.92), rgba(20, 32, 107, 0.56));
  opacity: 0.45;
}

.catalog-structure-grid article > span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 32px;
  margin-bottom: 24px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(244, 139, 32, 0.1);
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.catalog-structure-grid h3 {
  margin-bottom: 10px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.catalog-structure-grid p {
  color: var(--muted);
  font-weight: 680;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.catalog-intro .section-head,
.catalog-intro .section-head > div,
.catalog-structure-grid,
.catalog-structure-grid article,
.catalog-structure-grid h3,
.catalog-structure-grid p {
  min-width: 0;
  max-width: 100%;
}

.featured-product-entities {
  padding-top: 0;
}

.featured-entity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.featured-entity-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 18px 48px rgba(36, 25, 15, 0.07);
}

.featured-entity-media {
  display: block;
  min-height: 100%;
  background: #fff7ea;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.featured-entity-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform 180ms ease;
}

.featured-entity-card:hover .featured-entity-media img {
  transform: scale(1.025);
}

.featured-entity-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.featured-entity-body h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.32;
}

.featured-entity-body p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.7;
}

.featured-entity-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 38px;
  margin-top: auto;
  padding: 0 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.featured-entity-link:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
  box-shadow: 0 12px 24px rgba(212, 109, 0, 0.2);
}

.product-case-showcase,
.application-case-studies {
  padding-top: 0;
}

.product-case-showcase .section-head {
  align-items: end;
}

.product-case-showcase .section-head .button {
  border-color: rgba(244, 139, 32, 0.42);
  background: rgba(255, 250, 242, 0.82);
  box-shadow: 0 10px 24px rgba(36, 25, 15, 0.06);
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.case-study-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 18px 48px rgba(36, 25, 15, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.case-study-card:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 139, 32, 0.34);
  box-shadow: 0 22px 52px rgba(36, 25, 15, 0.11);
}

.case-study-card--wide {
  grid-column: 1 / -1;
}

.case-study-card > img,
.case-study-media-link,
.case-media-split {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f7f1e8;
}

.case-study-card > img,
.case-study-media-link img,
.case-media-split img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.case-study-media-link {
  display: block;
  overflow: hidden;
}

.case-study-card--entity .case-study-media-link img {
  object-position: center 28%;
}

.case-media-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

.case-study-card--wide .case-media-split {
  aspect-ratio: 2.35 / 1;
}

.case-study-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.case-type {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.case-study-body h3,
.case-study-body p {
  margin: 0;
}

.case-study-body p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.65;
}

.case-code-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.case-code-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(244, 139, 32, 0.28);
  background: #fff4e7;
  color: var(--navy);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.case-study-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.case-study-actions .featured-entity-link {
  max-width: 100%;
  min-height: 44px;
  padding-inline: 18px;
  text-align: center;
}

.case-study-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.65;
}

.catalog-app {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 0 0 34px;
}

.catalog-sidebar,
.catalog-main,
.catalog-toolbar,
.catalog-product-card,
.product-dialog {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.catalog-sidebar {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 128px);
  padding: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.sidebar-head {
  flex: 0 0 auto;
  margin-bottom: 16px;
}

.tree-list {
  flex: 1 1 auto;
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
  scrollbar-gutter: stable;
}

.tree-list::-webkit-scrollbar {
  width: 8px;
}

.tree-list::-webkit-scrollbar-track {
  background: #f5efe6;
  border-radius: 999px;
}

.tree-list::-webkit-scrollbar-thumb {
  background: rgba(212, 109, 0, 0.34);
  border-radius: 999px;
}

.tree-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--navy);
  text-align: left;
  border-radius: 10px;
  cursor: pointer;
}

.tree-button:hover,
.tree-button.is-active {
  border-color: rgba(244, 139, 32, 0.28);
  background: #fff4e7;
  color: var(--accent-dark);
}

.tree-button.child {
  padding-left: 28px;
  color: var(--muted);
}

.tree-button small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.tree-button span:last-child {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.catalog-main {
  padding: 22px;
  box-shadow: var(--shadow);
}

.catalog-toolbar {
  padding: 18px;
  background: #fff;
}

.case-match-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(244, 139, 32, 0.24);
  background: #fff7ec;
  border-radius: 12px;
}

.case-match-panel h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.case-match-panel p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.55;
}

.case-match-panel label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.case-match-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(244, 139, 32, 0.3);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
}

.catalog-page input,
.catalog-page select,
.catalog-page option,
.catalog-page button {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  letter-spacing: 0;
}

.catalog-page select,
.catalog-page option {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.catalog-page select {
  text-overflow: ellipsis;
}

.search-box {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.search-box label,
.filter-row label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.search-box input,
.filter-row select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fffaf2;
  color: var(--ink);
  border-radius: 10px;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.filter-row label {
  display: grid;
  gap: 7px;
}

.button.reset {
  min-height: 44px;
}

.catalog-status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: var(--muted);
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.catalog-product-card {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  min-height: 224px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.catalog-product-skeleton {
  pointer-events: none;
}

.catalog-skeleton-media {
  display: block;
  width: 188px;
  height: 100%;
  min-height: 224px;
  background:
    linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.58) 50%, transparent 65%) 0 0 / 220% 100%,
    linear-gradient(135deg, rgba(244, 139, 32, 0.13), rgba(34, 53, 70, 0.08)),
    #f5eee4;
  animation: catalog-skeleton-shimmer 1.3s linear infinite;
}

.catalog-skeleton-body {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px 20px;
}

.catalog-skeleton-body i {
  display: block;
  width: 94%;
  height: 14px;
  background: #eee5d9;
  border-radius: 999px;
}

.catalog-skeleton-body i:nth-child(1) {
  width: 32%;
}

.catalog-skeleton-body i:nth-child(2) {
  width: 68%;
  height: 20px;
}

.catalog-skeleton-body i:nth-child(4) {
  width: 54%;
}

@keyframes catalog-skeleton-shimmer {
  to {
    background-position: -220% 0, 0 0, 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-skeleton-media {
    animation: none;
  }
}

.catalog-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.catalog-product-image {
  display: grid;
  place-items: center;
  width: 188px;
  height: 100%;
  min-height: 188px;
  background:
    linear-gradient(135deg, rgba(244, 139, 32, 0.13), rgba(34, 53, 70, 0.08)),
    repeating-linear-gradient(45deg, #fffaf2 0, #fffaf2 12px, #f2eadf 12px, #f2eadf 24px);
  color: var(--muted);
  font-weight: 800;
}

.catalog-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100%;
  padding: 16px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.catalog-product-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 20px;
}

.product-kicker {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.catalog-product-card h3 {
  margin-bottom: 8px;
}

.case-inline-note {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.product-meta {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  align-content: start;
  gap: 10px 14px;
  margin: 0 0 18px;
}

.product-meta div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  min-width: 0;
}

.product-meta dt {
  color: var(--muted);
  font-weight: 700;
}

.product-meta dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}

.mini-button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.mini-button.entity-link {
  border-color: rgba(244, 139, 32, 0.34);
  background: #fff4e7;
  color: var(--accent-dark);
}

.mini-button.entity-link:hover {
  background: var(--accent);
  color: #fff;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 38px;
  border: 1px dashed var(--line);
  background: #fff;
  color: var(--muted);
  text-align: center;
  border-radius: var(--r-md);
}

.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.catalog-pagination[hidden] {
  display: none;
}

.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pagination-button,
.pagination-page {
  min-height: 40px;
  border: 1px solid var(--line);
  background: #fffaf2;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.pagination-button {
  padding: 0 16px;
  border-radius: 999px;
}

.pagination-page {
  min-width: 40px;
  padding: 0 10px;
  border-radius: 12px;
}

.pagination-ellipsis {
  min-width: 24px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.pagination-button:hover:not(:disabled),
.pagination-page:hover,
.pagination-page.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.pagination-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.pagination-summary {
  width: 100%;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.cta-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 54px;
  padding: 30px;
}

.product-dialog {
  width: min(900px, calc(100% - 32px));
  padding: 0;
  overflow: visible;
}

.product-dialog::backdrop {
  background: rgba(16, 24, 32, 0.68);
}

.dialog-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
}

.dialog-gallery {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #fffaf2;
  border-right: 1px solid var(--line);
}

.dialog-main-image,
.detail-image-button {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  text-align: inherit;
  cursor: zoom-in;
  font: inherit;
}

.dialog-main-image {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  min-height: 300px;
}

.dialog-main-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.dialog-main-image .image-fallback {
  min-height: 300px;
}

.zoom-cue {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(17, 24, 32, 0.78);
  color: #fffaf2;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(17, 24, 32, 0.24);
}

.dialog-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dialog-detail-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.dialog-detail-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.76;
  object-fit: cover;
}

.dialog-detail-grid .image-fallback {
  aspect-ratio: 1 / 0.76;
  background: #fffaf2;
}

.dialog-detail-grid figcaption {
  padding: 7px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.image-viewer {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(17, 24, 32, 0.84);
}

.image-viewer-close {
  position: absolute;
  top: 24px;
  right: 26px;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  cursor: pointer;
  z-index: 2;
}

.image-zoom-stage {
  position: relative;
  max-width: min(1180px, 92vw);
  max-height: 86vh;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  cursor: none;
}

.image-zoom-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1180px, 92vw);
  max-height: 86vh;
  object-fit: contain;
}

.zoom-lens {
  position: absolute;
  width: 190px;
  height: 190px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background-repeat: no-repeat;
  background-size: 250%;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(17, 24, 32, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 120ms ease;
}

.product-dialog.image-viewer-open {
  overflow: hidden;
}

.dialog-layout .catalog-product-image {
  height: 100%;
  min-height: 400px;
  aspect-ratio: auto;
}

.dialog-copy {
  padding: 32px;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.detail-item {
  padding: 13px;
  border: 1px solid var(--line);
  background: #fffaf2;
  border-radius: 10px;
}

.detail-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 1180px) {
  .catalog-app {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
  }

  .catalog-product-card {
    grid-template-columns: 170px minmax(0, 1fr);
    min-height: 224px;
  }

  .catalog-product-image,
  .catalog-skeleton-media {
    width: 170px;
    min-height: 224px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .catalog-intro {
    padding-top: 24px;
  }

  .catalog-intro .section-card {
    overflow: hidden;
  }

  .catalog-intro .section-head h1 {
    font-size: clamp(1.5rem, 8vw, 2.08rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .catalog-structure-grid {
    grid-template-columns: 1fr;
  }

  .catalog-structure-grid article {
    min-height: auto;
    padding: 18px;
  }

  .catalog-structure-grid article > span {
    min-height: 30px;
    margin-bottom: 14px;
    padding: 4px 10px;
  }

  .catalog-structure-grid h3 {
    font-size: 1rem;
    line-height: 1.38;
  }

  .catalog-structure-grid p {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .featured-entity-grid,
  .case-study-grid,
  .featured-entity-card {
    grid-template-columns: 1fr;
  }

  .featured-entity-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .featured-entity-media img {
    min-height: 210px;
  }

  .case-study-actions .featured-entity-link {
    width: 100%;
  }

  .case-media-split {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }

  .case-study-card--wide {
    grid-column: auto;
  }

  .case-media-split img {
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .catalog-app {
    gap: 16px;
    padding-bottom: 24px;
  }

  .catalog-sidebar,
  .catalog-main,
  .catalog-toolbar {
    border-radius: 18px;
  }

  .catalog-sidebar,
  .catalog-main {
    padding: 16px;
  }

  .catalog-sidebar {
    max-height: none;
  }

  .tree-list {
    display: grid;
    gap: 8px;
    max-height: 360px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 6px 0 0;
    scrollbar-width: thin;
  }

  .tree-list::-webkit-scrollbar {
    display: block;
    width: 6px;
  }

  .tree-button {
    width: 100%;
    max-width: none;
    min-height: 42px;
    align-items: center;
    white-space: normal;
  }

  .tree-button.child {
    padding-left: 12px;
  }

  .tree-button small {
    display: none;
  }

  .catalog-status {
    display: grid;
    gap: 6px;
    padding: 14px 0;
  }

  .brand {
    align-items: flex-start;
  }

  .brand-logo-wrap {
    width: 40px;
    height: 40px;
  }

  .brand-logo-wrap .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-copy span {
    max-width: 240px;
  }

  .filter-row,
  .product-grid,
  .dialog-layout,
  .detail-list,
  .cta-strip {
    grid-template-columns: 1fr;
  }

  .case-match-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .catalog-product-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .catalog-product-image,
  .catalog-skeleton-media {
    width: 100%;
    min-height: 210px;
    aspect-ratio: 4 / 3;
  }

  .catalog-skeleton-body {
    min-height: 260px;
  }

  .cta-strip {
    display: grid;
    margin-bottom: 32px;
    padding: 20px;
  }

  .catalog-product-body {
    padding: 16px;
  }

  .product-meta {
    grid-template-columns: 1fr;
  }

  .product-kicker,
  .product-meta div {
    display: grid;
    gap: 4px;
  }

  .catalog-product-card h3 {
    font-size: 1.08rem;
    line-height: 1.22;
  }

  .card-actions,
  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .catalog-pagination {
    justify-content: stretch;
  }

  .pagination-button {
    flex: 1 1 calc(50% - 8px);
  }

  .pagination-pages {
    order: -1;
    width: 100%;
  }

  .mini-button {
    width: 100%;
    min-height: 42px;
  }

  .product-dialog {
    width: calc(100% - 18px);
    max-width: 100%;
    max-height: calc(100dvh - 20px);
    overflow: auto;
    border-radius: 18px;
  }

  .product-dialog *,
  .dialog-gallery,
  .dialog-copy,
  .detail-list,
  .detail-item {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .dialog-close {
    top: 10px;
    right: 10px;
    z-index: 2;
  }

  .dialog-gallery {
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dialog-main-image,
  .dialog-main-image img {
    min-height: auto;
  }

  .dialog-main-image img {
    aspect-ratio: 4 / 3;
  }

  .dialog-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-viewer {
    padding: 14px;
  }

  .image-viewer-close {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  .image-zoom-stage,
  .image-zoom-stage img {
    max-width: 94vw;
    max-height: 82vh;
  }

  .zoom-lens {
    display: none;
  }

  .dialog-layout .catalog-product-image {
    min-height: auto;
    aspect-ratio: 4 / 3;
  }

  .dialog-copy {
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .catalog-sidebar,
  .catalog-main {
    padding: 14px;
  }

  .catalog-toolbar {
    padding: 14px;
  }

  .catalog-product-image {
    aspect-ratio: 1 / 0.82;
  }
}

/* Global header consistency patch for product catalog pages */
@media (min-width: 1281px) {
  .site-header-inner {
    width: min(1720px, calc(100% - 72px));
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .brand {
    flex: 1 1 360px;
    max-width: 560px;
    min-width: 0;
  }

  .brand-logo-wrap {
    display: contents;
  }

  .brand-fallback {
    display: none !important;
  }

  .brand-logo-wrap .brand-mark {
    position: static;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    object-fit: contain;
  }

  .brand-copy strong {
    font-size: 0.98rem;
    line-height: 1.2;
    font-weight: 700;
  }

  .brand-copy span {
    max-width: none;
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .nav {
    flex: 0 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: clamp(10px, 1.1vw, 18px);
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .lang-toggle {
    min-width: 82px;
    min-height: 36px;
    padding: 0 12px;
  }
}

@media (max-width: 1280px) {
  .site-header-inner {
    width: min(var(--max), calc(100% - 32px));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    gap: 12px;
    padding: 14px 0;
  }

  .brand {
    flex: 0 1 auto;
    max-width: 100%;
  }

  .brand-copy > span {
    display: none !important;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav > a,
  .nav summary,
  .lang-toggle {
    flex: 0 0 auto;
  }
}
