[data-ymw-preview-trigger], [data-ymw-preview-image] { cursor: zoom-in; }
[data-ymw-preview-trigger]:focus-visible {
  outline: 3px solid #087354;
  outline-offset: 4px;
  border-radius: 4px;
}
html.ymw-image-viewer-open { overflow: hidden; }
html.ymw-image-viewer-open > body { padding-inline-end: var(--ymw-viewer-scrollbar, 0px); }

.ymw-image-viewer {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(var(--ymw-viewer-width, 360px), calc(100% - 24px));
  height: max-content;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  max-width: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #deebe4;
  border-radius: 16px;
  background: #fff;
  color: #17342b;
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  box-shadow: 0 18px 58px #14262045;
}
.ymw-image-viewer[open] { display: flex; flex-direction: column; }
.ymw-image-viewer::backdrop { background: #263a366c; }
.ymw-image-viewer *, .ymw-image-viewer *::before, .ymw-image-viewer *::after { box-sizing: border-box; }
.ymw-viewer-header {
  display: grid;
  flex: none;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid #e0ebe5;
  background: #fff;
}
.ymw-viewer-header h2 {
  min-width: 0;
  margin: 0;
  color: #17342b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ymw-viewer-controls {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ymw-image-viewer .ymw-viewer-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid #dbe8e0;
  border-radius: 8px;
  background: #fff;
  color: #245545;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}
.ymw-image-viewer .ymw-viewer-control:hover { background: #eaf4ee; }
.ymw-image-viewer .ymw-viewer-control:focus-visible,
.ymw-viewer-stage:focus-visible { outline: 2px solid #087557; outline-offset: -2px; }
.ymw-image-viewer .ymw-viewer-control:disabled { opacity: .48; cursor: default; }
.ymw-image-viewer .ymw-viewer-close {
  grid-column: 3;
  grid-row: 1;
  color: #fff;
  border-color: #087057;
  background: #087057;
  font-size: 24px;
  line-height: 1;
}
.ymw-image-viewer .ymw-viewer-close:hover { background: #065841; }
.ymw-image-viewer .ymw-viewer-close:focus-visible { outline-color: white; outline-offset: -4px; }
.ymw-viewer-stage {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: #f4f8f5;
  touch-action: pan-x pan-y pinch-zoom;
}
.ymw-viewer-canvas {
  display: grid;
  place-items: center;
  width: max-content;
  min-width: 100%;
  padding: 8px;
}
.ymw-image-viewer .ymw-viewer-image {
  display: block;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: contain;
}
.ymw-viewer-status { margin: 0; padding: 14px; color: #476257; font: inherit; }
.ymw-viewer-status:empty, .ymw-viewer-stage[hidden] { display: none; }

.ymw-image-viewer.ymw-viewer-compact .ymw-viewer-header {
  grid-template-columns: minmax(0, 1fr) auto;
}
.ymw-image-viewer.ymw-viewer-compact .ymw-viewer-close { grid-column: 2; }
.ymw-image-viewer.ymw-viewer-compact .ymw-viewer-controls {
  grid-column: 1 / -1;
  grid-row: 2;
  flex-wrap: wrap;
}
.ymw-image-viewer.ymw-viewer-compact .ymw-viewer-original { margin-inline-start: auto; }

.site-header .nav-cta,
.g-header .yeswah-header-download {
  display: inline-flex;
  min-height: 44px;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #0b634d;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.site-header .nav-cta:hover,
.g-header .yeswah-header-download:hover { background: #074e3d; color: #fff; }
.site-header .nav-cta span { margin: 0; }
.site-header .nav-cta :is(.yeswah-wide-download, .yeswah-compact-download) { color: inherit; }
.site-header .nav-cta .yeswah-compact-download { display: none; }
.g-header .yeswah-header-inner { gap: 16px; }
.g-header .yeswah-header-inner .g-nav { margin-inline-start: auto; }
.g-header .yeswah-header-download:focus-visible {
  outline: 3px solid #0b634d;
  outline-offset: 3px;
}

.yeswah-download-lead {
  padding-block: clamp(28px, 5.4vw, 72px);
  border-block-end: 1px solid #d6e7df;
  background: linear-gradient(132deg, #eaf6ef, #f8fcfa);
  color: #153a30;
}
.yeswah-download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 420px);
  align-items: center;
  gap: clamp(18px, 4vw, 56px);
}
.yeswah-download-intro h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.18;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.yeswah-download-intro p,
.yeswah-download-card p { margin: 0; color: #476459; line-height: 1.55; }
.yeswah-download-card {
  padding: clamp(14px, 2.3vw, 24px);
  border: 1px solid #cee2d7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px #153a3010;
}
.yeswah-download-card h2 { margin: 0 0 6px; font-size: clamp(19px, 2.3vw, 26px); line-height: 1.25; }
.yeswah-download-card p { font-size: 14px; }
.yeswah-download-card .g-actions { margin-block: 16px 0; gap: 8px; }
.yeswah-download-card .g-actions .g-button { min-height: 46px; margin: 0; }
.yeswah-download-page > #how,
.yeswah-download-page > .yeswah-download-faq { padding-block: clamp(26px, 4vw, 48px); }
.yeswah-download-faq { border-block: 1px solid #dbe7e1; }
.yeswah-download-faq h2 { margin: 0 0 12px; }
.yeswah-download-faq details { max-inline-size: 760px; border-block-end: 1px solid #d6e7df; }
.yeswah-download-faq summary { min-height: 44px; padding-block: 11px; cursor: pointer; font-weight: 650; }
.yeswah-download-faq details p { margin: 0 0 14px; line-height: 1.6; }
.yeswah-language-note { padding-block-end: 24px; }

.yw-guide.yeswah-guide { padding-block-start: clamp(26px, 4vw, 52px); }
.yeswah-guide .yeswah-guide-intro h1 { margin-block: 0 10px; }
.yeswah-guide .yeswah-guide-intro .yeswah-guide-lead { margin-block: 0 16px; }
.yeswah-guide .yeswah-guide-intro .g-actions { margin-block: 0; }
.yeswah-guide .yeswah-guide-chapters ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 26px;
  padding: 0;
}
.yeswah-guide .yeswah-guide-chapters a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid #ccdfd5;
  border-radius: 8px;
  background: #f4faf6;
  color: #1d5745;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
}
.yeswah-guide .yeswah-guide-chapters a:hover { background: #e4f1e9; }
.yeswah-guide .yw-guide-step[id] { scroll-margin-block-start: var(--anchor-offset, 148px); }
.yeswah-guide .yw-guide-step:target h2 { color: #086c50; }
.yeswah-guide .yeswah-guide-note { font-size: 14px; }

.ymw-image-viewer .ymw-viewer-canvas { min-height: 0; }
.ymw-image-viewer .ymw-viewer-controls { flex-wrap: wrap; }
.ymw-image-viewer .ymw-viewer-close { align-self: center; }

@media (max-width: 760px) {
  .site-header .nav-cta { padding-inline: 10px; white-space: nowrap; }
  .site-header .nav-actions { gap: 8px; }
  .site-header .menu-toggle { min-width: 44px; min-height: 44px; }
  .g-header .yeswah-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 12px;
    padding-block: 7px;
  }
  .g-header .yeswah-header-inner .g-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 0 16px;
  }
  .g-header .yeswah-header-download { grid-row: 1; grid-column: 2; }
  .yeswah-download-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 500px) {
  .site-header .nav-shell { width: calc(100% - 28px); }
  .site-header .brand { gap: 6px; }
  .site-header .brand-mark { width: 34px; height: 34px; }
  .site-header .brand-copy small { display: none; }
  .yeswah-download-card .g-actions { flex-direction: row; flex-wrap: wrap; }
  .yeswah-download-card .g-actions .g-button { width: auto; }
  .yeswah-guide .yeswah-guide-chapters ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .yeswah-guide .yeswah-guide-chapters a {
    width: 100%;
    height: 100%;
    justify-content: center;
    text-align: center;
  }
}
@media (max-width: 368px) {
  .site-header .nav-cta :is(.yeswah-wide-download, .yeswah-download-arrow) { display: none; }
  .site-header .nav-cta .yeswah-compact-download { display: inline; }
}

:root { --ymw-image-density: 1; }

@media screen and (min-resolution: 1.25dppx) {
  :root { --ymw-image-density: 1.25; }
}
@media screen and (min-resolution: 1.5dppx) {
  :root { --ymw-image-density: 1.5; }
}
@media screen and (min-resolution: 1.75dppx) {
  :root { --ymw-image-density: 1.75; }
}
@media screen and (min-resolution: 2dppx) {
  :root { --ymw-image-density: 2; }
}
@media screen and (min-resolution: 2.5dppx) {
  :root { --ymw-image-density: 2.5; }
}
@media screen and (min-resolution: 3dppx) {
  :root { --ymw-image-density: 3; }
}
@media screen and (min-resolution: 4dppx) {
  :root { --ymw-image-density: 4; }
}

/* These opt-in limits take precedence over the legacy page layouts. */
[data-ymw-image-fit] {
  --ymw-image-max-width: calc(var(--ymw-image-width) / var(--ymw-image-density));
  max-inline-size: min(100%, var(--ymw-image-max-width)) !important;
}

img[data-ymw-image-fit] {
  height: auto;
}

.guide-body a[data-ymw-image-fit] {
  /* The preview link has a 1px border on each side of the screenshot. */
  max-inline-size: min(100%, calc(var(--ymw-image-max-width) + 2px)) !important;
}

.case_preview-l img[data-ymw-image-fit],
.yw-shot img[data-ymw-image-fit],
.showcase-image-wrap img[data-ymw-image-fit] {
  display: block;
  height: auto;
  margin-inline: auto;
}

.showcase-grid[data-ymw-image-gallery] {
  max-width: calc(330px + 28px + 42px + var(--ymw-image-width) / var(--ymw-image-density));
}

.showcase-frame:has(img[data-ymw-image-fit]) {
  display: flex;
  flex-direction: column;
}

.showcase-frame .showcase-image-wrap:has(img[data-ymw-image-fit]) {
  flex: 1;
  display: grid;
  place-items: center;
}

#special .pc-showcase-window[data-ymw-image-fit] {
  max-inline-size: min(100%, calc(var(--ymw-image-max-width) + 16px)) !important;
  width: 100%;
  justify-self: center;
}
