/* Genre-specific caption designs with a soft removal brush on originals only. */
.diagnosis-section .portrait-pair .pair-caption{isolation:isolate;z-index:2;box-sizing:border-box;left:6%;right:6%;bottom:15%;width:max-content;max-width:86%;margin-inline:auto;padding:2px 3px;border:0;border-radius:0;background:transparent;color:#fff;font-family:Arial,Helvetica,sans-serif;font-size:clamp(11px,1.05vw,15px);line-height:1.4;text-align:center}
.diagnosis-section .pair-caption::before{content:'';position:absolute;inset:-9px -10px;z-index:-1;pointer-events:none;background:#ad78db85;mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20360%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22white%22%20d%3D%22M3%2024%2011%2019%209%2012%2024%2015%2030%208%2043%2012%2052%206%2067%2011%2079%205%2091%209%20105%203%20118%208%20133%204%20145%209%20160%205%20173%2010%20188%204%20204%208%20219%203%20233%208%20248%205%20263%2010%20277%204%20291%209%20304%207%20317%2014%20331%2010%20337%2018%20350%2016%20347%2026%20358%2030%20352%2042%20360%2049%20353%2060%20357%2070%20348%2074%20350%2085%20335%2082%20329%2091%20314%2087%20302%2095%20287%2089%20274%2094%20259%2088%20245%2096%20231%2091%20216%2095%20200%2089%20185%2096%20170%2091%20155%2096%20140%2090%20124%2094%20109%2088%2093%2095%2079%2089%2066%2094%2053%2086%2039%2091%2031%2083%2017%2086%2018%2077%207%2078%2010%2066%202%2062%208%2051%200%2043%206%2034Z%22%2F%3E%3C%2Fsvg%3E");mask-size:100% 100%;mask-repeat:no-repeat;-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20360%20100%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22white%22%20d%3D%22M3%2024%2011%2019%209%2012%2024%2015%2030%208%2043%2012%2052%206%2067%2011%2079%205%2091%209%20105%203%20118%208%20133%204%20145%209%20160%205%20173%2010%20188%204%20204%208%20219%203%20233%208%20248%205%20263%2010%20277%204%20291%209%20304%207%20317%2014%20331%2010%20337%2018%20350%2016%20347%2026%20358%2030%20352%2042%20360%2049%20353%2060%20357%2070%20348%2074%20350%2085%20335%2082%20329%2091%20314%2087%20302%2095%20287%2089%20274%2094%20259%2088%20245%2096%20231%2091%20216%2095%20200%2089%20185%2096%20170%2091%20155%2096%20140%2090%20124%2094%20109%2088%2093%2095%2079%2089%2066%2094%2053%2086%2039%2091%2031%2083%2017%2086%2018%2077%207%2078%2010%2066%202%2062%208%2051%200%2043%206%2034Z%22%2F%3E%3C%2Fsvg%3E");-webkit-mask-size:100% 100%;-webkit-mask-repeat:no-repeat;transform:rotate(-.8deg)}
.diagnosis-section .pair-caption .caption-line{display:block}
.diagnosis-section .kind-0 .pair-caption{font-weight:600;text-shadow:1px 1px 1px #111,-1px -1px 1px #111,1px -1px 1px #111,-1px 1px 1px #111}
.diagnosis-section .kind-1 .pair-caption{font-weight:500;text-shadow:0 1px 3px #000,1px 0 #222,-1px 0 #222}
.diagnosis-section .caption-translation{display:block;font-size:.86em;color:#ffe0a0;margin-top:3px}
.diagnosis-section .kind-1 .pair-caption::before{transform:rotate(.7deg) scaleX(-1)}
.diagnosis-section .kind-2 .pair-caption{text-align:left;font-family:Georgia,'Times New Roman',serif;font-size:clamp(13px,1.2vw,18px);line-height:1.25;font-style:italic;text-shadow:0 1px 4px #251c2c}
.diagnosis-section .caption-kicker{display:block;font:500 .63em/1.4 Arial,sans-serif;letter-spacing:.035em;color:#fff1d8;font-style:normal;margin-bottom:2px}
.diagnosis-section .caption-product-line{display:block}
.diagnosis-section .kind-2 .pair-caption::before{transform:rotate(-1.5deg) scaleY(-1)}
.diagnosis-section .kind-3 .pair-caption{font-size:clamp(14px,1.3vw,20px);font-weight:800;line-height:1.2;letter-spacing:-.025em;-webkit-text-stroke:.65px #241b2c;paint-order:stroke fill;text-shadow:0 2px 2px #21192a}
.diagnosis-section .kind-3 .pair-caption mark{display:block;color:#ffe584;background:none}
.diagnosis-section .kind-3 .pair-caption::before{transform:rotate(1.2deg) scale(-1)}
@media(max-width:640px){.diagnosis-section .portrait-pair .pair-caption{font-size:11px;max-width:86%;left:5%;right:5%}.diagnosis-section .kind-2 .pair-caption,.diagnosis-section .kind-3 .pair-caption{font-size:13px}.diagnosis-section .pair-caption::before{inset:-6px -7px}}
/* Lower the background tint to the homepage's near-white surface. */
.diagnosis-section .diagnosis-panel{background:radial-gradient(circle at 0 100%,#ffd0b71c,transparent 26rem),radial-gradient(circle at 100% 0,#cbc5ff1f,transparent 28rem),#ffffffb3;border-color:#ffffffd9;box-shadow:none}
.diagnosis-section .type-feature-pills li{background:linear-gradient(110deg,#fff8f2d9,#f7f3fbd9);color:#716778}
/* Homepage-inspired selected state for subtitle type tabs. */
.diagnosis-section .diagnosis-tab[aria-selected="true"]{background:radial-gradient(circle at 0 100%,#ffd0b724,transparent 15rem),radial-gradient(circle at 100% 0,#cbc5ff29,transparent 15rem),#ffffffeb!important;border-color:#e7deeb!important;box-shadow:0 8px 24px -22px #77678742;color:#241d2c}
.diagnosis-section .diagnosis-tab[aria-selected="true"] .diagnosis-icon{background:linear-gradient(135deg,#f9ece6,#eeeaf9)!important;color:#987da9}
.diagnosis-section .diagnosis-tab:focus-visible{outline:2px solid #b5a1c5;outline-offset:3px}
/* Match the hardcoded-subtitle scene selector's selected state. */
.diagnosis-section .diagnosis-tab[aria-selected="true"]{background:#faf5ff!important;border:1px solid #bba0cf!important;box-shadow:none!important;color:#574461!important}
.diagnosis-section .diagnosis-tab[aria-selected="true"] .diagnosis-icon{background:#f0e9f6!important;color:#907ba0!important}
.reuse-refined .use-case-option[aria-selected="true"]{background:#faf5ff!important;border:1px solid #bba0cf!important;box-shadow:none!important;color:#574461!important}

/* Unified layered hand-painted selection. */
.diagnosis-section .portrait-pair .pair-caption::before{inset:-15px -18px;background:linear-gradient(100deg,#9973bcaf 0%,#ba93d6a8 22%,#8e6badbd 45%,#c3a2dc9c 68%,#9375b1b0 100%);border:0;border-radius:0;mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20800%20160%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22white%22%20fill-opacity%3D%22.45%22%20d%3D%22M8%2048%20Q25%2035%2060%2038%20L125%2031%20195%2035%20260%2027%20322%2031%20386%2025%20446%2031%20511%2027%20573%2033%20635%2029%20710%2038%20770%2036%20791%2048%20778%2057%20798%2065%20779%2075%20795%2083%20778%2091%20788%20103%20762%20111%20703%20108%20639%20119%20579%20113%20514%20124%20449%20117%20385%20125%20320%20118%20259%20125%20194%20118%20129%20122%2068%20112%2027%20115%2012%20104%2022%2095%203%2088%2019%2079%202%2070%2017%2060Z%22%2F%3E%3Cpath%20fill%3D%22white%22%20fill-opacity%3D%22.66%22%20d%3D%22M31%2039%20Q160%2025%20295%2034%20T548%2031%20Q673%2033%20780%2049%20L772%2070%20Q650%2064%20530%2072%20T277%2069%20Q132%2073%2020%2064Z%22%2F%3E%3Cpath%20fill%3D%22white%22%20fill-opacity%3D%22.74%22%20d%3D%22M20%2072%20Q146%2061%20260%2069%20T501%2067%20Q640%2063%20782%2076%20L776%2097%20Q660%20104%20539%2099%20T291%20104%20Q139%20102%2031%20111Z%22%2F%3E%3Cpath%20fill%3D%22white%22%20fill-opacity%3D%22.35%22%20d%3D%22M29%2049%20Q185%2043%20310%2047%20T554%2046%20Q675%2047%20774%2056%20L762%2061%20Q647%2057%20541%2062%20T300%2059%20Q144%2060%2023%2057Z%22%2F%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-opacity%3D%22.48%22%20stroke-width%3D%225%22%20stroke-linecap%3D%22round%22%20d%3D%22M18%2036%20Q210%2022%20383%2030%20T782%2043%20M17%20116%20Q200%20127%20378%20118%20T778%20106%20M5%2059%20Q160%2053%20289%2055%20M490%20113%20Q657%20115%20791%20100%22%2F%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-opacity%3D%22.35%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20d%3D%22M6%2044%20Q180%2032%20340%2037%20M399%2031%20Q611%2029%20795%2049%20M12%20108%20Q203%20119%20376%20111%20M433%20122%20Q622%20116%20792%2098%22%2F%3E%3C%2Fsvg%3E");mask-size:100% 100%;mask-repeat:no-repeat;-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20800%20160%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22white%22%20fill-opacity%3D%22.45%22%20d%3D%22M8%2048%20Q25%2035%2060%2038%20L125%2031%20195%2035%20260%2027%20322%2031%20386%2025%20446%2031%20511%2027%20573%2033%20635%2029%20710%2038%20770%2036%20791%2048%20778%2057%20798%2065%20779%2075%20795%2083%20778%2091%20788%20103%20762%20111%20703%20108%20639%20119%20579%20113%20514%20124%20449%20117%20385%20125%20320%20118%20259%20125%20194%20118%20129%20122%2068%20112%2027%20115%2012%20104%2022%2095%203%2088%2019%2079%202%2070%2017%2060Z%22%2F%3E%3Cpath%20fill%3D%22white%22%20fill-opacity%3D%22.66%22%20d%3D%22M31%2039%20Q160%2025%20295%2034%20T548%2031%20Q673%2033%20780%2049%20L772%2070%20Q650%2064%20530%2072%20T277%2069%20Q132%2073%2020%2064Z%22%2F%3E%3Cpath%20fill%3D%22white%22%20fill-opacity%3D%22.74%22%20d%3D%22M20%2072%20Q146%2061%20260%2069%20T501%2067%20Q640%2063%20782%2076%20L776%2097%20Q660%20104%20539%2099%20T291%20104%20Q139%20102%2031%20111Z%22%2F%3E%3Cpath%20fill%3D%22white%22%20fill-opacity%3D%22.35%22%20d%3D%22M29%2049%20Q185%2043%20310%2047%20T554%2046%20Q675%2047%20774%2056%20L762%2061%20Q647%2057%20541%2062%20T300%2059%20Q144%2060%2023%2057Z%22%2F%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-opacity%3D%22.48%22%20stroke-width%3D%225%22%20stroke-linecap%3D%22round%22%20d%3D%22M18%2036%20Q210%2022%20383%2030%20T782%2043%20M17%20116%20Q200%20127%20378%20118%20T778%20106%20M5%2059%20Q160%2053%20289%2055%20M490%20113%20Q657%20115%20791%20100%22%2F%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-opacity%3D%22.35%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20d%3D%22M6%2044%20Q180%2032%20340%2037%20M399%2031%20Q611%2029%20795%2049%20M12%20108%20Q203%20119%20376%20111%20M433%20122%20Q622%20116%20792%2098%22%2F%3E%3C%2Fsvg%3E");-webkit-mask-size:100% 100%;-webkit-mask-repeat:no-repeat}
@media(max-width:640px){.diagnosis-section .portrait-pair .pair-caption::before{inset:-10px -10px}}

/* Match the homepage reveal: one fixed frame, with subtitles clipped on the left. */
.diagnosis-section .subtitle-reveal {
  isolation: isolate;
}

.diagnosis-section .subtitle-reveal .type-split-before,
.diagnosis-section .subtitle-reveal .type-split-after {
  inset: 0;
  width: 100%;
  pointer-events: none;
}

.diagnosis-section .subtitle-reveal .type-split-before {
  z-index: 1;
  clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0);
}

.diagnosis-section .subtitle-reveal .type-split-after {
  z-index: 0;
}

.diagnosis-section .subtitle-reveal .line {
  transform: translateX(-50%);
  pointer-events: none;
}

.diagnosis-section .subtitle-reveal .line::after {
  content: '‹ ›';
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  border: 0;
  background: #fff;
  color: #30343c;
  font: 20px/1 sans-serif;
  white-space: pre;
  box-shadow: 0 2px 10px #0003;
}

.diagnosis-section .subtitle-reveal input {
  touch-action: pan-y;
}

.diagnosis-section .subtitle-reveal input:focus-visible {
  outline: none;
}

.diagnosis-section .subtitle-reveal:has(input:focus-visible) .line::after {
  background: #30343c;
  color: #fff;
}
