/* Inner-page layouts and content-specific components. Shared shell is separate. */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

input {
  font: inherit;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-82) 0 var(--space-62);
  border-bottom: 1px solid var(--line);
  background: var(--color-white);
}

.page-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg,transparent,black 45%,transparent);
  opacity: .12;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.page-mark {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-22);
  font-size: var(--text-14);
  font-weight: 600;
}

.page-mark:before {
  content: "";
}

.page-hero p {
  max-width: 720px;
  margin: var(--space-20) 0 0;
  color: var(--muted);
  font-size: var(--text-18);
  line-height: 1.72;
  text-wrap: pretty;
}

.section {
  padding: var(--space-76) 0;
}

.section.soft {
  background: var(--mist);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr);
  gap: var(--space-48);
  align-items: end;
  margin-bottom: var(--space-38);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.filter:focus-visible {
  outline: 3px solid rgba(37,99,235,.22);
  outline-offset: 2px;
}

.search input:focus-visible {
  outline: 3px solid rgba(37,99,235,.22);
  outline-offset: 2px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: var(--space-22);
}

.platform {
  padding: var(--space-30);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow);
}

.platform-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-24);
  border-bottom: 1px solid var(--line);
}

.platform-name {
  display: flex;
  align-items: center;
  gap: var(--space-14);
}

.os-mark {
  display: grid;
  place-items: center;
  border-radius: var(--radius-11);
  background: var(--color-edf3ff);
  color: var(--blue);
}

.os-mark svg {
  width: 25px;
  height: 25px;
  display: block;
  fill: currentColor;
}

.os-macos {
  background: var(--color-f1f3f6);
  color: var(--color-20252d);
}

.platform-top span {
  color: var(--muted);
  font-size: var(--text-14);
}

.specs {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 0;
  margin: var(--space-24) 0;
}

.specs div {
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--color-edf0f4);
}

.specs div:nth-child(odd) {
  padding-right: var(--space-14);
}

.specs dt {
  color: var(--muted);
  font-size: var(--text-14);
}

.specs dd {
  margin: var(--space-5) 0 0;
  font-weight: 600;
  font-size: var(--text-14);
}

.steps-line {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step {
  padding: var(--space-26) var(--space-26) var(--space-28);
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
}

.step b {
  display: block;
  font-size: var(--text-13);
  margin-bottom: var(--space-12);
}

.step p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.65;
}

.filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin: 0 0 var(--space-28);
}

.filter {
  padding: var(--space-9) var(--space-14);
  border: 1px solid var(--line);
  border-radius: var(--radius-8);
  background: var(--color-white);
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.plugin-count {
  margin-left: auto;
  align-self: center;
  color: var(--muted);
  font-size: var(--text-14);
}

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  border-top: 1px solid var(--line);
}

.plugin-card {
  min-height: 190px;
  padding: var(--space-27) var(--space-28);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-19);
  position: relative;
}

.plugin-card:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.plugin-card:hover {
  background: var(--color-fafcff);
}

.plugin-icon {
  width: 54px;
  height: 54px;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-6);
  padding: 0;
  background: transparent;
}
.plugin-icon img {
  width: 54px;
  height: 54px;
  display: block;
  object-fit: contain;
  transition: opacity 180ms ease-out;
}
.plugin-icon:not(.icon-ready) { background: url('/storefront-plugin-fallback.svg') center / contain no-repeat; }
.plugin-icon img.icon-pending { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .plugin-icon img { transition: none; }
}

.plugin-card p {
  margin: 0 0 var(--space-18);
  color: var(--muted);
  line-height: 1.62;
}

.plugin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-10);
  color: var(--color-7f8a99);
  font-size: var(--text-14);
}

.local {
  color: var(--color-brand-dark);
}

.ai {
  color: var(--color-7352d7);
}

.plugin-card.hidden {
  display: none;
}

.search {
  position: relative;
  max-width: 760px;
  margin-top: var(--space-32);
}

.search input {
  width: 100%;
  height: 58px;
  padding: 0 var(--space-20) 0 var(--space-52);
  border: 1px solid var(--line);
  border-radius: var(--radius-6);
  background: var(--color-white);
  font-size: var(--text-16);
  box-shadow: var(--shadow-40);
}

.search:before {
  content: "⌕";
  position: absolute;
  left: 20px;
  top: 13px;
  color: var(--blue);
  font-size: var(--text-25);
  z-index: 1;
}

.help-group {
  margin-bottom: var(--space-64);
}

.help-group>.intro {
  margin: 0 0 var(--space-26);
  color: var(--muted);
  line-height: 1.7;
}

.help-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: var(--space-18);
  align-items: center;
  padding: var(--space-21) var(--space-6);
  border-bottom: 1px solid var(--line);
}

.help-item:hover {
  background: var(--color-fbfcfe);
}

.help-item p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-14);
  line-height: 1.55;
}

.plugin-guide-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  border-top: 1px solid var(--line);
}

.guide-link {
  padding: var(--space-24) var(--space-8);
  border-bottom: 1px solid var(--line);
}

.guide-link:nth-child(odd) {
  padding-right: var(--space-28);
  border-right: 1px solid var(--line);
}

.guide-link:nth-child(even) {
  padding-left: var(--space-28);
}

.guide-link p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-14);
  line-height: 1.55;
}

.workflow-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-28);
  margin-bottom: var(--space-28);
}

.workflow-intro p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.help-flow {
  border-top: 1px solid var(--line);
}

.help-flow-step {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: var(--space-30);
  padding: var(--space-32) var(--space-4) var(--space-36);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.flow-index {
  position: relative;
  padding-left: var(--space-46);
}

.flow-index:before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 32px;
  height: 2px;
}

.flow-index span {
  display: block;
  font-size: var(--text-23);
  font-weight: 600;
  line-height: 1;
}

.flow-index small {
  display: block;
  margin-top: var(--space-10);
  color: var(--muted);
  font-size: var(--text-12);
}

.flow-content>p {
  max-width: 660px;
  margin: 0 0 var(--space-18);
  color: var(--muted);
  line-height: 1.65;
}

.flow-content ul {
  margin: 0;
  padding: 0;
  counter-reset: method;
  list-style: none;
}

.flow-content li {
  position: relative;
  padding: var(--space-9) 0 var(--space-9) var(--space-34);
  color: var(--ink-2);
  line-height: 1.6;
  counter-increment: method;
}

.flow-content li:before {
  content: counter(method);
  position: absolute;
  left: 0;
  top: 10px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-cfd8e5);
  border-radius: var(--radius-4);
  color: var(--color-738095);
  font-size: var(--text-10);
  font-weight: 600;
}

.plugin-tutorials {
  margin-top: var(--space-80);
  padding: var(--space-42) var(--space-38);
  background: var(--color-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-41);
  scroll-margin-top: 96px;
}

.tutorial-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-28);
  margin-bottom: var(--space-30);
}

.tutorial-head span {
  display: block;
  margin-bottom: var(--space-9);
  color: var(--blue);
  font-size: var(--text-12);
  font-weight: 600;
}

.tutorial-head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.help-document {
  padding: var(--space-50) 0 var(--space-92);
  background: var(--color-white);
}

.help-doc-grid {
  display: grid;
  grid-template-columns: 250px minmax(0,1fr);
  gap: var(--space-66);
  align-items: start;
}

.help-sidebar {
  position: sticky;
  top: 106px;
  padding: var(--space-2) var(--space-24) var(--space-24) 0;
  border-right: 1px solid var(--line);
}

.help-back {
  display: block;
  margin-bottom: var(--space-28);
  font-size: var(--text-14);
  font-weight: 400;
}

.help-sidebar section {
  margin: 0 0 var(--space-25);
}

.help-sidebar a:not(.help-back) {
  display: block;
  padding: var(--space-6) 10px;
  color: var(--muted);
  font-size: var(--text-14);
  font-weight: 400;
  line-height: 1.5;
  border-left: 3px solid transparent;
  border-radius: 0 7px 7px 0;
}

.help-sidebar a:hover {
  color: var(--color-brand-dark);
}

.help-sidebar a[aria-current="location"] {
  color: var(--color-brand-dark);
  background: var(--color-eaf7f3);
  border-left-color: var(--color-brand-dark);
  font-weight: 400;
}

.help-sidebar a:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

@media (min-width: 781px) {
  .help-sidebar {
    max-height: calc(100dvh - 126px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .help-sidebar::-webkit-scrollbar {
    display: none;
    width: 0;
  }
}

.help-sidebar .tutorial-nav {
  margin-top: var(--space-30);
  padding-top: var(--space-24);
  border-top: 1px solid var(--line);
}

.help-manual {
  width: min(100%,820px);
}

.help-manual-head {
  padding: var(--space-2) 0 var(--space-46);
  border-bottom: 1px solid var(--line);
}

.help-manual-head>span {
  display: block;
  margin-bottom: var(--space-14);
  font-size: var(--text-13);
  font-weight: 600;
}

.help-manual-head>p {
  max-width: 720px;
  margin: var(--space-18) 0 0;
  color: var(--muted);
  font-size: var(--text-17);
  line-height: 1.85;
}

.help-manual-head .search {
  max-width: none;
  margin-top: var(--space-30);
}

.help-manual .help-group {
  margin: var(--space-52) 0 0;
}

.help-manual .workflow-intro {
  align-items: start;
}

.help-manual .flow-content>p {
  font-size: var(--text-16);
  line-height: 1.85;
}

.help-manual .flow-content li {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
  font-size: var(--text-16);
  line-height: 1.75;
}

.help-shot {
  width: min(100%, 640px);
  margin: var(--space-24) 0 var(--space-2);
  padding: var(--space-10) var(--space-10) var(--space-9);
  border: 1px solid var(--line);
  border-radius: var(--radius-6);
  background: var(--color-f7f9fc);
  box-shadow: var(--shadow-42);
}

.help-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: top left;
  border-radius: var(--radius-10);
  background: transparent;
}

.help-shot figcaption {
  padding: var(--space-9) var(--space-3) var(--space-1);
  color: var(--muted);
  font-size: var(--text-14);
  line-height: 1.55;
}

.help-install-gallery>p {
  margin: var(--space-24) 0 0;
  color: var(--muted);
  font-size: var(--text-14);
  line-height: 1.75;
}

.help-manual .plugin-tutorials {
  margin-top: var(--space-80);
  padding: var(--space-52) 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: var(--radius-15);
  background: transparent;
  box-shadow: none;
}

.help-topic {
  margin-top: var(--space-76);
  padding-top: var(--space-52);
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.help-topic-head>span {
  display: block;
  margin-bottom: var(--space-10);
  font-size: var(--text-13);
  font-weight: 600;
}

.help-topic-head p {
  max-width: 720px;
  margin: var(--space-15) 0 0;
  color: var(--muted);
  font-size: var(--text-15);
  line-height: 1.82;
}

.help-topic-list {
  margin-top: var(--space-28);
  border-top: 1px solid var(--line);
}

.help-topic-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: var(--space-18);
  padding: var(--space-25) 0;
  border-bottom: 1px solid var(--line);
}

.help-topic-list article>b {
  color: var(--blue);
  font-size: var(--text-12);
  line-height: 1.8;
}

.help-topic-list p {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--text-15);
  line-height: 1.82;
}

.help-update-shot {
  margin-top: var(--space-28);
}

.doc {
  width: min(var(--site-content-width), calc(100% - var(--site-gutters)));
  margin: auto;
  padding: var(--space-76) 0;
}

.doc > * {
  max-width: var(--reading-content-width);
}

.doc>.lead {
  font-size: var(--text-19);
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 var(--space-52);
}

.doc p {
  color: var(--ink-2);
  font-size: var(--text-16);
  line-height: 1.8;
}

.doc li {
  color: var(--ink-2);
  font-size: var(--text-16);
  line-height: 1.8;
}

.doc ul {
  padding-left: var(--space-22);
}

.legal-review-note {
  padding: 18px 22px;
  border-left: 3px solid var(--color-brand);
  background: var(--color-eaf7f3);
  border-radius: 0 8px 8px 0;
}

.legal-review-note strong {
  color: var(--color-brand-dark);
  font-weight: 600;
}

.legal-review-note p {
  margin: 8px 0 0;
  font-size: 14px;
}

.legal-intro {
  margin: 28px 0 20px;
}

.legal-toc {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 4px 24px;
  padding: 20px 0;
  border-block: 1px solid var(--line);
}

.legal-toc a {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
  line-height: 1.6;
}

.legal-toc a span {
  color: var(--muted);
  font-size: 13px;
  min-width: 20px;
}

.legal-doc a:not(.btn):hover {
  color: var(--color-brand-dark);
}

.legal-doc a:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}

.legal-section {
  scroll-margin-top: 110px;
}

.legal-section p {
  margin: 16px 0;
  line-height: 1.9;
}

.legal-section li {
  margin: 10px 0;
  line-height: 1.9;
}

.legal-section a {
  color: var(--color-brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

#plugin-updates {
  scroll-margin-top: 110px;
}

@media (max-width: 640px) {
  .legal-toc {
    grid-template-columns: 1fr;
  }

  .legal-review-note {
    padding: 16px;
  }
}

.doc .actions {
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-34);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-item {
  padding: var(--space-30);
  border-right: 1px solid var(--line);
}

.contact-item:last-child {
  border-right: 0;
}

.contact-item p {
  min-height: 74px;
  margin: 0 0 var(--space-20);
  color: var(--muted);
  line-height: 1.6;
}

.contact-item a {
  color: var(--blue);
  font-weight: 600;
}

.release {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: var(--space-36);
  padding: var(--space-36) 0;
  border-top: 1px solid var(--line);
}

.release:first-child {
  border-top: 0;
}

.release-version {
  font-size: var(--text-30);
  font-weight: 600;
}

.release-date {
  display: block;
  margin-top: var(--space-8);
  color: var(--muted);
  font-size: var(--text-14);
}

.release ul {
  margin: 0;
  padding-left: var(--space-20);
  color: var(--ink-2);
  line-height: 1.8;
}

.plugin-detail-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-22);
  align-items: center;
}

.plugin-detail-head .plugin-icon,
.plugin-detail-head .plugin-icon img {
  width: 76px;
  height: 76px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(260px,.8fr);
  gap: var(--space-56);
}

.feature-list {
  border-top: 1px solid var(--line);
}

.feature-list li {
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare>div {
  padding: var(--space-24);
}

.compare>div+div {
  border-left: 1px solid var(--line);
  background: var(--color-f8faff);
}

.compare ol {
  padding-left: var(--space-22);
  color: var(--muted);
  line-height: 1.8;
}

.permission {
  padding: var(--space-24);
  border-left: 3px solid var(--blue);
  background: var(--color-f7f9fc);
}

.permission p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.side-facts {
  align-self: start;
  position: sticky;
  top: 106px;
  padding: var(--space-24);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.side-facts dl {
  margin: 0;
}

.side-facts div {
  padding: var(--space-13) 0;
  border-top: 1px solid var(--line);
}

.side-facts dt {
  color: var(--muted);
  font-size: var(--text-14);
}

.side-facts dd {
  margin: var(--space-5) 0 0;
  font-weight: 600;
  font-size: var(--text-14);
}

.empty {
  display: none;
  padding: var(--space-32);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media(max-width:900px) {
  .section-head {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .help-doc-grid {
    grid-template-columns: 210px minmax(0,1fr);
    gap: var(--space-38);
  }

  .side-facts {
    position: static;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contact-item:last-child {
    border-bottom: 0;
  }
}

@media(max-width:640px) {
  .page-hero {
    padding: var(--space-58) 0 var(--space-44);
  }

  .page-hero p {
    margin-top: var(--space-16);
    font-size: var(--text-16);
    line-height: 1.7;
  }

  .section {
    padding: var(--space-54) 0;
  }

  .section-head {
    gap: var(--space-14);
    margin-bottom: var(--space-28);
  }

  .platform {
    padding: var(--space-22);
  }

  .platform-top {
    align-items: flex-start;
  }

  .platform-top>span {
    max-width: 120px;
    text-align: right;
    line-height: 1.45;
  }

  .specs {
    grid-template-columns: 1fr;
  }

  .specs div:nth-child(odd) {
    padding-right: 0;
  }

  .steps-line {
    grid-template-columns: 1fr;
  }

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

  .step:last-child {
    border-bottom: 0;
  }

  .plugin-grid {
    grid-template-columns: 1fr;
  }

  .plugin-guide-grid {
    grid-template-columns: 1fr;
  }

  .plugin-card:nth-child(odd) {
    border-right: 0;
  }

  .guide-link:nth-child(odd) {
    padding-right: var(--space-8);
    border-right: 0;
  }

  .guide-link:nth-child(even) {
    padding-left: var(--space-8);
  }

  .help-document {
    padding-top: var(--space-30);
  }

  .help-doc-grid {
    grid-template-columns: 1fr;
    gap: var(--space-34);
  }

  .help-sidebar {
    position: static;
    padding: 0 0 var(--space-24);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .help-sidebar section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 var(--space-12);
    margin-bottom: var(--space-18);
  }

  .help-sidebar .tutorial-nav {
    margin-top: var(--space-20);
  }

  .help-manual-head>p {
    font-size: var(--text-15);
    line-height: 1.8;
  }

  .workflow-intro {
    display: block;
  }

  .tutorial-head {
    display: block;
  }

  .help-flow-step {
    grid-template-columns: 1fr;
    gap: var(--space-18);
    padding: var(--space-28) 0;
  }

  .flow-index {
    padding-left: var(--space-44);
  }

  .help-shot {
    margin-top: var(--space-20);
    padding: var(--space-7);
  }

  .help-shot img {
    max-height: none;
  }

  .plugin-tutorials {
    margin-top: var(--space-58);
    padding: var(--space-28) var(--space-22);
  }

  .help-manual .plugin-tutorials {
    padding: var(--space-42) 0 0;
  }

  .help-item {
    grid-template-columns: 40px 1fr;
  }

  .release {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  .compare {
    grid-template-columns: 1fr;
  }

  .compare>div+div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media(max-width:640px) {
  .help-topic {
    margin-top: var(--space-58);
    padding-top: var(--space-40);
  }

  .help-topic-list article {
    grid-template-columns: 36px 1fr;
    gap: var(--space-12);
  }

  .help-update-shot {
    margin-top: var(--space-22);
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}

body[data-lang="zh"] {
  font-size: var(--text-16);
  line-height: 1.78;
  letter-spacing: 0;
}

body[data-lang="zh"] .section-head p {
  line-height: 1.88;
}

body[data-lang="zh"] .doc p {
  line-height: 1.88;
}

body[data-lang="zh"] .doc li {
  line-height: 1.88;
}

body[data-lang="zh"] .help-manual-head>p {
  line-height: 1.88;
}

body[data-lang="zh"] .flow-content>p {
  line-height: 1.88;
}

body[data-lang="zh"] .flow-content li {
  line-height: 1.88;
}

body[data-lang="zh"] .help-topic-head p {
  line-height: 1.88;
}

body[data-lang="zh"] .help-topic-list p {
  line-height: 1.88;
}

body[data-lang="zh"] .help-sidebar a {
  line-height: 1.72;
}

body[data-lang="zh"] .plugin-card p {
  line-height: 1.78;
}

body[data-lang="zh"] .contact-item p {
  line-height: 1.78;
}

@media(max-width:640px) {
  body[data-lang="zh"] {
    font-size: var(--text-16);
  }
}

@media(max-width:780px) {
  .help-doc-grid {
    grid-template-columns: 1fr;
    gap: var(--space-34);
  }

  .help-sidebar {
    position: static;
    padding: 0 0 var(--space-24);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .help-sidebar section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 var(--space-12);
    margin-bottom: var(--space-18);
  }

  .help-sidebar .tutorial-nav {
    margin-top: var(--space-20);
  }

  .workflow-intro {
    display: block;
  }

  .tutorial-head {
    display: block;
  }
}

.os-mark {
  width: 52px;
  height: 52px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-43);
}

.platform-top .os-windows {
  border-color: var(--color-cfe3ff);
  background: linear-gradient(145deg,var(--color-f3f8ff),var(--color-e5f1ff));
  color: var(--color-087bd7);
}

.platform-top .os-macos {
  border-color: var(--color-dedcff);
  background: linear-gradient(145deg,var(--color-f7f7ff),var(--color-ecebff));
  color: var(--color-6c63ff);
}

.os-windows svg {
  filter: drop-shadow(0 3px 5px rgba(0,120,212,.16));
}

.os-macos svg {
  filter: drop-shadow(0 3px 5px rgba(108,99,255,.18));
}

body[data-lang="zh"] {
  font-family: var(--font-stack-8);
  font-weight: 400;
  font-synthesis: none;
}

body[data-lang="zh"] .page-hero p {
  font-size: var(--text-16);
  line-height: 1.95;
}

body[data-lang="en"] {
  font-family: var(--font-stack-4);
  font-weight: 400;
  font-synthesis: none;
}

body[data-lang="en"] .page-hero p {
  font-size: var(--text-16);
  line-height: 1.82;
}

.page-hero:before {
  background-image: radial-gradient(rgba(7,139,112,.12) 1px,transparent 1.2px);
}

.page-mark {
  color: var(--color-brand-dark);
}

.page-mark:before {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-10);
  background: transparent url("/mixso-assets/assets/mixso-logo-transparent.png?v=3f47e12f3258") center/contain no-repeat;
  box-shadow: var(--shadow-44);
}

.filter:focus-visible {
  outline-color: rgba(7,139,112,.24);
}

.search input:focus-visible {
  outline-color: rgba(7,139,112,.24);
}

.filter.active {
  border-color: var(--color-brand-dark);
  background: var(--color-eef9f5);
  color: var(--color-brand-dark);
}

.step b {
  color: var(--color-brand-dark);
}

.flow-index span {
  color: var(--color-brand-dark);
}

.help-back {
  color: var(--color-brand-dark);
}

.help-topic-head>span {
  color: var(--color-brand-dark);
}

.help-manual-head>span {
  color: var(--color-brand-dark);
}

.flow-index:before {
  background: linear-gradient(90deg,var(--color-brand-dark),var(--color-brand-light));
}

.page-mark {
  gap: 0;
}

.page-mark:before {
  display: none;
}

.legal-section p,
.legal-section ul,
.legal-section ol {
  max-width: 72ch;
}

html:lang(zh) .legal-section p,
html:lang(zh) .legal-section ul {
  max-width: 42em;
}

.detail-grid article > p,
.detail-grid article > ol {
  max-width: 72ch;
  line-height: 1.8;
}

.doc,
.help-manual,
.detail-grid article {
  color: var(--color-text-secondary);
}

.doc h2,
.help-manual h1,
.help-manual h2,
.help-manual h3,
.detail-grid h2,
.detail-grid h3 {
  color: var(--color-text);
}

body[data-page="privacy"] .page-hero:before,
body[data-page="terms"] .page-hero:before {
  display: none;
}

.help-directory-toggle {
  display: none;
}

.help-directory[hidden] {
  display: none;
}

.plugin-guide li {
  margin-block: 12px;
  padding-left: 4px;
}

@media (max-width: 780px) {
  .help-directory-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
    color: var(--color-brand-dark);
    font: inherit;
    font-weight: 600;
  }

  .help-directory-toggle::after {
    content: "+";
    font-size: 22px;
    line-height: 1;
  }

  .help-directory-toggle[aria-expanded="true"]::after {
    content: "−";
  }

  .help-sidebar {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .help-directory {
    padding-top: 20px;
  }

  .help-sidebar .help-back {
    margin-bottom: 18px;
  }

  .help-sidebar section {
    display: block;
  }

  .help-sidebar a:not(.help-back) {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .help-doc-grid {
    gap: 28px;
  }
}

.online {
  color: var(--color-text-muted);
}

.help-faq-list {
  padding-left: 22px;
  line-height: 1.85;
}

.help-faq-list li {
  padding-left: 4px;
  margin: 14px 0;
}

/* Late catalog data stays inside its own region; the shell and list hero persist. */
.catalog-results { min-height: 660px; }
.catalog-results > .catalog-feedback { min-height: 76px; }
.catalog-feedback h2 { margin: 0; font-size: 18px; }
.catalog-feedback p { margin: 6px 0 16px; color: var(--muted); }
.catalog-skeleton .plugin-card { pointer-events: none; }
.skeleton-icon { width: 54px; height: 54px; background: #edf3f1; border-radius: 6px; }
.skeleton-line { display: block; height: 14px; max-width: 280px; margin: 8px 0 18px; background: #edf3f1; border-radius: 3px; }
.skeleton-line.short { width: 55%; }
.catalog-detail .page-hero .container { min-height: 252px; }
.catalog-detail #main { min-height: 740px; }
.plugin-guide-grid { min-height: 220px; }
@media(max-width:640px) { .catalog-results { min-height: 1240px; } .catalog-detail .page-hero .container { min-height: 220px; } }

/* Server-rendered content has its final dimensions on the first paint. */
.catalog-server .catalog-results,
.catalog-server.catalog-detail .page-hero .container,
.catalog-server.catalog-detail #main { min-height: 0; }
.catalog-server .plugin-card > div,
.catalog-server .detail-grid > article { min-width: 0; }
.catalog-server .plugin-card h2,
.catalog-server .page-hero h1,
.catalog-server .side-facts dd { overflow-wrap: anywhere; }
.catalog-server .plugin-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.catalog-server .plugin-card h2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.catalog-server .filter { text-decoration: none; }
.catalog-server .empty { display: block; }
.catalog-server .side-facts { align-self: start; }
.plugin-description { white-space: pre-line; overflow-wrap: anywhere; }
.plugin-detail-head h2 { margin: 0; }
.plugin-get { width: 100%; margin-top: 18px; }

/* A single content heading; media never changes the article/sidebar geometry. */
body:has(.catalog-detail) { overflow-x: clip; }
.catalog-detail #main { padding-top: 24px; }
.catalog-detail .detail-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 4vw, 64px); }
.catalog-detail .side-facts { position: sticky; top: calc(var(--header-height, 74px) + 70px); }
.catalog-detail .side-facts > h2 { margin: 0 0 16px; font-size: 20px; font-weight: 600; line-height: 1.4; color: var(--color-text); }
.catalog-detail .side-facts dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; }
.catalog-detail .side-facts dt { flex-shrink: 0; font-size: 13px; line-height: 1.7; color: #62676b; }
.catalog-detail .side-facts dd { margin: 0; text-align: right; font-size: 14px; font-weight: 500; line-height: 1.7; color: var(--color-text); }
.catalog-detail .side-facts .plugin-fact-version { color: var(--color-brand); font-weight: 600; font-variant-numeric: tabular-nums; }
.plugin-fact-category { display: inline-block; padding: 2px 9px; border-radius: 5px; color: var(--color-brand); background: #edf6f2; }
.plugin-install-action { margin-top: 6px; padding-top: 20px; border-top: 1px solid var(--line); }
.plugin-install-action .plugin-install-note { margin: 0; color: #62676b; font-size: 13px; line-height: 1.7; }
.plugin-install-action .plugin-get { margin-top: 16px; box-shadow: none; }
.plugin-sidebar { min-width: 0; }
.plugin-breadcrumb { display: flex; align-items: center; gap: 12px; height: 22px; margin-bottom: 24px; font-size: 14px; line-height: 22px; color: var(--muted); }
.plugin-breadcrumb a { flex-shrink: 0; }
.plugin-breadcrumb a:hover { color: var(--color-brand); }
.plugin-breadcrumb [aria-current] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-text); }
.plugin-detail-head h1 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.25; letter-spacing: -.02em; overflow-wrap: anywhere; color: var(--color-text); }
.catalog-detail .plugin-description { margin: 20px 0 28px; }
.plugin-cover { margin: 28px 0 0; }
.plugin-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 12px; }
.plugin-showcase, .plugin-introduction { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.plugin-showcase h2, .plugin-introduction > h2 { margin: 0 0 20px; font-size: 22px; }
.plugin-screenshots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.plugin-screenshots > a { min-width: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: border-color 160ms ease, box-shadow 160ms ease; }
.plugin-screenshots > a:hover { border-color: var(--color-brand); box-shadow: 0 3px 12px rgb(0 0 0 / .08); }
.plugin-screenshots img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.plugin-cover a, .plugin-screenshots a { display: block; cursor: zoom-in; }
.plugin-cover a:focus-visible, .plugin-screenshots a:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
.plugin-prose { font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.plugin-prose > :first-child { margin-top: 0; }
.plugin-prose h2 { margin: 32px 0 12px; font-size: 22px; }
.plugin-prose h3 { margin: 24px 0 10px; font-size: 18px; }
.plugin-prose p, .plugin-prose ul, .plugin-prose ol { margin: 0 0 16px; }
.plugin-prose ul, .plugin-prose ol { padding-left: 24px; }
.plugin-prose a { color: var(--color-brand); text-decoration: underline; text-underline-offset: 3px; }
.plugin-prose blockquote { margin: 20px 0; padding: 8px 20px; border-left: 3px solid var(--color-brand); }
.plugin-prose pre { overflow-x: auto; padding: 16px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; white-space: pre; }
.plugin-install-note { font-size: 14px; line-height: 1.7; margin: 20px 0 0; }
@media (max-width: 900px) {
  .catalog-detail .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .catalog-detail .side-facts { position: static; }
  .plugin-screenshots { gap: 8px; }
}
@media (min-width: 901px) and (max-height: 700px) { .catalog-detail .side-facts { position: static; } }
.plugin-lightbox { width: min(840px, 90vw); max-width: 90vw; padding: 0; border: 0; background: transparent; color: white; overflow: visible; }
.plugin-lightbox, .plugin-lightbox * { -webkit-user-select: none; user-select: none; }
.plugin-lightbox::backdrop { background: rgb(15 23 24 / .72); }
.plugin-lightbox[open] { animation: plugin-lightbox-in 180ms ease-out; }
.plugin-lightbox-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; min-height: 44px; font-size: 14px; font-variant-numeric: tabular-nums; }
.plugin-lightbox button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgb(15 23 24 / .68); color: white; cursor: pointer; transition: background 160ms ease; }
.plugin-lightbox button[hidden] { display: none; }
.plugin-lightbox button:hover { background: rgb(15 23 24 / .9); }
.plugin-lightbox button:disabled { opacity: .35; cursor: default; }
.plugin-lightbox button:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.plugin-lightbox-close { margin-left: auto; }
.plugin-lightbox-stage { position: relative; display: grid; place-items: center; height: min(62dvh, 600px); }
.plugin-lightbox-stage button { position: absolute; top: calc(50% - 22px); z-index: 2; }
.plugin-lightbox-stage [data-image-prev] { left: 12px; }
.plugin-lightbox-stage [data-image-next] { right: 12px; }
.plugin-lightbox-stage img { grid-area: 1 / 1; width: 100%; height: 100%; min-height: 0; object-fit: contain; opacity: 1; transition: opacity 160ms ease; }
.plugin-lightbox-stage[aria-busy="true"] img { opacity: .25; }
.plugin-lightbox-status { grid-area: 1 / 1; z-index: 1; padding: 8px 12px; border-radius: 6px; background: rgb(15 23 24 / .8); }
.plugin-lightbox-status:empty { display: none; }
html:has(.plugin-lightbox[open]) { overflow-y: hidden; scrollbar-gutter: stable; }
@keyframes plugin-lightbox-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .plugin-lightbox[open] { animation: none; } .plugin-lightbox-stage img, .plugin-screenshots > a { transition: none; } }
.catalog-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 32px; }
.catalog-pagination > :last-child { justify-self: end; }
.catalog-pagination > :first-child { justify-self: start; }
.catalog-pagination > span { font-variant-numeric: tabular-nums; }
@media(prefers-reduced-motion:reduce) { .catalog-server .plugin-icon img { transition: none; } }

/* Discovery starts with one search, followed by categories and scan-friendly rows. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.catalog-list #main { padding-top: 40px; }
.catalog-search-header { margin-bottom: 32px; }
.catalog-search { display: flex; align-items: center; gap: 12px; max-width: 820px; margin-inline: auto; padding: 8px 8px 8px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--color-white); transition: border-color 160ms ease; }
.catalog-search:focus-within { border-color: var(--color-brand); }
.catalog-search > svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--color-brand); }
.catalog-search input[type="search"] { width: 100%; min-width: 0; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); caret-color: var(--color-brand); font-size: 16px; }
.catalog-search input::placeholder { color: #62676b; opacity: 1; }
.catalog-search input:focus { outline: none; }
.catalog-search .btn { flex-shrink: 0; min-height: 44px; padding: 8px 24px; box-shadow: none; border-radius: 8px; }
.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 20px; }
.catalog-list .filterbar { margin: 0; gap: 8px; }
.catalog-toolbar .filterbar { flex: 1 1 400px; }
.catalog-list .filter { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-color: transparent; color: var(--ink-2); font-weight: 400; background: transparent; }
.catalog-list .filter:hover { background: #f0f6f3; color: var(--color-brand-dark); }
.catalog-list .filter.active { color: var(--color-brand-dark); background: #e7f3ed; font-weight: 600; }
.catalog-result-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.catalog-list .plugin-count { white-space: nowrap; color: #62676b; font-variant-numeric: tabular-nums; }
.catalog-clear { color: var(--color-brand-dark); text-decoration: underline; text-underline-offset: 4px; }
.catalog-list .plugin-grid { column-gap: 32px; border-top: 0; }
.catalog-list .plugin-card { min-height: 120px; padding: 20px 12px; gap: 16px; border-right: 0; border-top: 1px solid var(--line); border-bottom: 0; grid-template-columns: 54px minmax(0, 1fr); transition: background-color 160ms ease; }
.catalog-list .plugin-card:hover { background: #f5faf7; }
.catalog-list .plugin-card h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.4; color: var(--ink); }
.catalog-list .plugin-card:hover h2 { color: var(--color-brand-dark); }
.catalog-list .plugin-card > div { display: flex; flex-direction: column; min-width: 0; }
.catalog-list .plugin-card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.catalog-list .plugin-card:focus-visible, .catalog-list .filter:focus-visible, .catalog-search button:focus-visible, .catalog-clear:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
.catalog-list .empty { padding: 48px 16px; margin: 0; text-align: center; border-top: 1px solid var(--line); color: var(--ink-2); }
@media (max-width: 780px) {
  .catalog-list #main { padding-top: 24px; }
  .catalog-search-header { margin-bottom: 24px; }
  .catalog-search { gap: 8px; padding-left: 12px; }
  .catalog-search .btn { padding-inline: 16px; }
  .catalog-toolbar { gap: 12px; }
  .catalog-toolbar .filterbar { flex-basis: 100%; }
  .catalog-list .plugin-grid { grid-template-columns: minmax(0, 1fr); }
  .catalog-list .plugin-card { min-height: 112px; padding: 18px 0; }
}
@media (prefers-reduced-motion: reduce) { .catalog-search, .catalog-list .plugin-card { transition: none; } }

/* A bounded product stage. Screenshots use their own pixels, without a card fill. */
.download-hero { overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.download-hero-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.35fr); gap: 32px; align-items: center; padding-block: 28px; }
.download-hero-copy { padding-block: 24px; }
.download-hero-copy h1 { max-width: 460px; margin: 0; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.2; font-weight: 500; text-wrap: balance; }
.download-hero-copy > p { max-width: 390px; margin: 20px 0 28px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.download-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.download-hero-actions .btn { gap: 12px; min-height: 48px; padding: 11px 22px; box-shadow: none; }
.download-hero-actions svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.download-guide { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-brand-dark); font-size: 15px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: transparent; }
.download-guide:hover { text-decoration-color: currentColor; }
.download-hero a:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; border-radius: 4px; }
.download-platforms { padding-block: 38px 56px; scroll-margin-top: calc(var(--header-height, 74px) + 16px); }
@media (min-width: 1600px) { .download-hero-layout { gap: 48px; } }
@media (max-width: 900px) {
  .download-hero-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 24px; }
  .download-hero-copy { padding: 0; }
  .download-hero-copy h1, .download-hero-copy > p { max-width: none; }
  .download-hero-copy > p { margin: 12px 0 16px; }
  .download-platforms { padding-top: 28px; }
}
@media (max-width: 480px) {
  .download-hero-copy h1 { font-size: 30px; }
  .download-hero-copy > p { font-size: 15px; }
  .download-hero-actions { gap: 8px 16px; }
  .download-hero-actions .btn { padding-inline: 16px; }
}

/* About the brand: compact editorial rows, sharing the site's typography and palette. */
.about-page { padding-block: 48px 56px; }
.about-intro, .about-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2.6fr); gap: 24px 56px; }
.about-intro { padding-bottom: 32px; }
.about-page h1 { margin: 0; font-size: 32px; line-height: 1.35; font-weight: 500; }
.about-page h2 { margin: 0; font-size: 22px; line-height: 1.5; font-weight: 500; }
.about-row { padding-block: 28px; border-top: 1px solid var(--line); }
.about-copy { min-width: 0; max-width: 760px; }
.about-copy p { margin: 0 0 12px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy .about-statement { margin-bottom: 16px; color: var(--color-brand-dark); font-size: 28px; line-height: 1.4; text-wrap: balance; }
.about-scenarios { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.about-scenarios dt { margin-bottom: 8px; color: var(--color-brand-dark); font-size: 18px; }
.about-scenarios dd { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.about-section-heading > p { max-width: 230px; margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.about-links { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 20px; }
.about-links .btn { min-height: 44px; padding: 10px 22px; box-shadow: none; }
.about-text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--color-brand-dark); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: transparent; transition: text-decoration-color 160ms ease; }
.about-text-link:hover { text-decoration-color: currentColor; }
.about-page a:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 4px; }
.about-feedback { padding-bottom: 0; }
@media (max-width: 780px) {
  .about-page { padding-block: 32px 40px; }
  .about-intro, .about-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .about-page h1 { font-size: 28px; }
  .about-copy .about-statement { font-size: 24px; margin-bottom: 12px; }
  .about-intro { padding-bottom: 24px; }
  .about-row { padding-top: 24px; }
  .about-scenarios { gap: 20px 24px; }
}
@media (max-width: 480px) { .about-scenarios { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .about-text-link { transition: none; } }

/* Legal documents share a readable, compact layout with a persistent contents list. */
.legal-page { padding-block: 40px 56px; }
.legal-header { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal-header h1 { margin: 0; font-size: 32px; line-height: 1.35; font-weight: 500; }
.legal-updated { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.legal-header .legal-intro { max-width: 760px; margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-top: 28px; align-items: start; }
.legal-page .legal-toc { position: sticky; top: calc(var(--header-height, 74px) + 24px); display: flex; flex-direction: column; gap: 0; max-height: calc(100dvh - var(--header-height, 74px) - 48px); overflow-y: auto; padding: 0 8px 0 0; border: 0; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.legal-toc > p { margin: 0 0 12px; font-size: 16px; color: var(--ink); }
.legal-page .legal-toc a { padding: 9px 0; font-size: 14px; line-height: 1.65; color: var(--muted); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.legal-page .legal-toc a:hover, .legal-page .legal-toc a:focus-visible { color: var(--color-brand-dark); text-decoration-color: currentColor; }
.legal-content { min-width: 0; max-width: 780px; }
.legal-page .legal-section { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-height, 74px) + 24px); }
.legal-page .legal-section h2 { margin: 0 0 12px; color: var(--ink); font-size: 22px; line-height: 1.5; font-weight: 500; }
.legal-page .legal-section p, .legal-page .legal-section li { color: var(--muted); font-size: 16px; line-height: 1.85; }
.legal-page .legal-section p { margin: 0 0 12px; }
.legal-page .legal-section ul { padding-left: 22px; margin: 12px 0; }
.legal-page .legal-section li { padding-left: 2px; margin-block: 8px; }
.legal-page .legal-section > :last-child { margin-bottom: 0; }
.legal-page .legal-section strong { color: var(--color-brand-dark); }
.legal-page .legal-section:target h2 { color: var(--color-brand-dark); }
.legal-page a:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
.legal-page .actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.legal-contact { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-brand-dark); text-decoration: underline; text-underline-offset: 4px; }
.legal-page ::selection { background: #cce9df; color: #182236; }
@media (max-width: 900px) {
  .legal-page { padding-block: 28px 40px; }
  .legal-header h1 { font-size: 28px; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 20px; }
  .legal-page .legal-toc { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; padding: 0 0 20px; max-height: none; overflow: visible; border-bottom: 1px solid var(--line); }
  .legal-toc > p { grid-column: 1 / -1; margin-bottom: 4px; }
  .legal-page .legal-toc a { min-height: 44px; align-items: center; overflow-wrap: anywhere; }
  .legal-content { max-width: none; }
}
@media print {
  .legal-page .legal-toc, .legal-page .actions { display: none; }
  .legal-page { width: 100%; padding: 0; }
  .legal-layout { display: block; }
  .legal-content { max-width: none; }
  .legal-section h2 { break-after: avoid; }
}
