/* #52 (22 Oct 2026): one white header on every page incl. homepage; black transparent logo.
   Homepage keeps its own hide-on-scroll-down / reveal-on-scroll-up; no floating pill. */
.site-header { background: #fff; color: var(--text-primary, #0b0f0d); border-bottom: 1px solid color-mix(in srgb, #0b0f0d 9%, transparent); box-shadow: none; }
.site-header.is-header-top { box-shadow: none; }
.site-header .logo { color: var(--text-primary, #0b0f0d); }
.site-header .nav-links > a, .site-header .nav-item > a, .site-header .nav-login { color: var(--text-primary, #0b0f0d); }
.site-header .nav-links > a:hover, .site-header .nav-item > a:hover, .site-header .nav-item:focus-within > a { color: var(--text-primary, #0b0f0d); background: color-mix(in srgb, #0b0f0d 7%, transparent); }
.site-header .nav-login:hover { color: var(--text-primary, #0b0f0d); }
.site-header .btn-ghost, .site-header .btn-ghost.btn-sm { color: var(--text-primary, #0b0f0d); border-color: color-mix(in srgb, #0b0f0d 40%, transparent); background: transparent; }
.site-header .btn-ghost:hover, .site-header .btn-ghost.btn-sm:hover { color: var(--text-primary, #0b0f0d); border-color: #0b0f0d; background: color-mix(in srgb, #0b0f0d 5%, transparent); }
.site-header .menu-toggle span { background: var(--text-primary, #0b0f0d); }
.site-header .lang-switcher__trigger { color: var(--text-primary, #0b0f0d); background: transparent; border-color: color-mix(in srgb, #0b0f0d 22%, transparent); box-shadow: none; }
.site-header .lang-switcher__trigger:hover { color: var(--text-primary, #0b0f0d); background: color-mix(in srgb, #0b0f0d 5%, transparent); border-color: color-mix(in srgb, #0b0f0d 40%, transparent); }
.site-header .lang-switcher.is-open .lang-switcher__trigger { color: var(--text-primary, #0b0f0d); }
/* logo: traced black lockup (6.23:1) */
.logo-img, .site-footer .logo-img, .logo-img--on-light { height: 24px; width: auto; max-width: min(150px, 40vw); }
.site-header .logo-img { height: 20px; width: auto; max-width: min(125px, 40vw); }
@media (max-width: 900px) {
  body:not(.r44) .site-header .nav-links { background: #fff; border-bottom: 1px solid color-mix(in srgb, #0b0f0d 9%, transparent); box-shadow: 0 16px 24px rgba(24,24,24,.10); }
  body:not(.r44) .site-header .nav-links a { color: var(--text-primary, #0b0f0d); }
}
/* old lockup was 118px wide; keep the wider traced mark in that budget where the nav is tight */
@media (max-width: 1279px) { .site-header .logo-img { height: 19px; max-width: 120px; } }
/* #52b homepage header geometry = inner (r44) header, measured 1440/1280/1000/390 */
body:not(.r44) .site-header { border-bottom: 0; box-shadow: 0 1px 0 color-mix(in srgb, #0b0f0d 9%, transparent); }
body:not(.r44) .site-header .nav { height: 80px; }
@media (min-width: 1200px) { body:not(.r44) .site-header .nav { max-width: 1300px; width: 100%; margin-inline: auto; padding-inline: 24px; box-sizing: border-box; } }
@media (min-width: 900px) {
  body:not(.r44) .site-header :is(.nav-links > a, .nav-item > a) { display: inline-flex; padding: 8px 12px; }
  body:not(.r44) .site-header .nav-login { padding: 8px 10px; }
  body:not(.r44) .site-header .nav-actions { margin-left: 16px; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  body:not(.r44) .site-header .nav-links { gap: 4px; }
  body:not(.r44) .site-header :is(.nav-links > a, .nav-item > a) { padding: 8px 0.55rem; }
  body:not(.r44) .site-header .nav-actions { margin-left: 12px; gap: 8px; }
}
@media (min-width: 900px) and (max-width: 1320px) { html[lang="en"] body:not(.r44) .site-header .nav-actions .btn-ghost.btn-sm { display: none; } }
@media (min-width: 900px) and (max-width: 1060px) { html[lang="en"] body:not(.r44) .site-header .nav-login { display: none; } }
@media (max-width: 899px) { body:not(.r44) .site-header .nav { height: 56px; } }
/* #52d root cause: site.css "Durable dark sticky header" sets .site-header{background:#0b0f0d !important} + white nav text.
   r44 pages beat it with body.r44 !important; every non-r44 page (tools hub, guides, resources, legal, auth...) stayed dark. */
html body:not(.r44) .site-header { background: #fff !important; color: var(--text-primary, #0b0f0d) !important; border-bottom: 0 !important; box-shadow: 0 1px 0 color-mix(in srgb, #0b0f0d 9%, transparent) !important; }
html body.home52 .site-header { border-bottom: 0 !important; box-shadow: 0 1px 0 color-mix(in srgb, #0b0f0d 9%, transparent) !important; }
html body:not(.r44) .site-header :is(.nav-links > a, .nav-item > a, .nav-login) { color: var(--text-primary, #0b0f0d) !important; }
html body:not(.r44) .site-header :is(.nav-links > a, .nav-item > a):hover { color: var(--text-primary, #0b0f0d) !important; background: color-mix(in srgb, #0b0f0d 7%, transparent) !important; }
html body:not(.r44) .site-header .btn-ghost.btn-sm { color: var(--text-primary, #0b0f0d) !important; border-color: color-mix(in srgb, #0b0f0d 40%, transparent) !important; background: transparent !important; }
html body:not(.r44) .site-header .menu-toggle span { background: var(--text-primary, #0b0f0d) !important; }
@media (max-width: 960px) {
  html body.page-inner:not(.r44) .site-header #nav-panel.is-open { background: #fff !important; border-bottom: 1px solid color-mix(in srgb, #0b0f0d 9%, transparent) !important; box-shadow: 0 16px 24px rgba(24,24,24,.10) !important; }
  html body.page-inner:not(.r44) .site-header #nav-panel.is-open :is(a:not(.btn-primary), .nav-login) { color: var(--text-primary, #0b0f0d) !important; }
}
/* #52d language picker: white panel, bilingual labels, green check */
html body .lang-switcher__trigger { color: var(--text-primary, #0b0f0d) !important; background: #fff !important; border: 1px solid color-mix(in srgb, #0b0f0d 16%, transparent) !important; box-shadow: none !important; }
html body .lang-switcher__trigger:hover, html body .lang-switcher.is-open .lang-switcher__trigger { border-color: color-mix(in srgb, #0b0f0d 32%, transparent) !important; background: #f6f8f7 !important; }
html body .lang-switcher__menu { background: #fff !important; border: 1px solid color-mix(in srgb, #0b0f0d 10%, transparent) !important; border-radius: var(--r52-radius-lg) !important; padding: 6px !important; min-width: 272px !important; max-width: calc(100vw - 24px); box-shadow: 0 2px 6px rgba(11,15,13,.06), 0 16px 40px rgba(11,15,13,.14) !important; color: var(--text-primary, #0b0f0d) !important; top: calc(100% + 10px) !important; }
html body .lang-switcher__menu li + li { margin-top: 2px; }
html body .lang-switcher__option { display: grid !important; grid-template-columns: minmax(0, 1fr) 18px !important; align-items: center; gap: 12px !important; min-height: 44px; padding: 10px 12px !important; border-radius: 10px !important; color: var(--text-primary, #0b0f0d) !important; background: transparent !important; font-size: 15px !important; font-weight: 500 !important; line-height: 1.3 !important; letter-spacing: 0 !important; text-transform: none !important; }
html body .lang-switcher__option:hover, html body .lang-switcher__option:focus-visible { background: #f3f5f4 !important; color: var(--text-primary, #0b0f0d) !important; }
html body .lang-switcher__option.is-active { background: color-mix(in srgb, var(--brand, #1ED760) 12%, #fff) !important; font-weight: 600 !important; }
html body .lang-switcher__native { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body .lang-switcher__en { color: #5b6560; font-weight: 400; }
html body .lang-switcher__code { display: none !important; }
html body .lang-switcher__check { color: #0f8a43 !important; font-weight: 700; font-size: 15px; text-align: center; }
@media (max-width: 899px) { html body .lang-switcher__menu { right: 0 !important; left: auto !important; } }
/* ===== #52 G1: one header system — white, pinned (top:0) on every page; no floating pill, no hide-on-scroll ===== */
html body .site-header, html body.r44 .site-header, html body.r44 .site-header.r44-float, html body .site-header.is-header-hidden {
  top: 0 !important; left: 0 !important; right: 0 !important; transform: none !important; border-radius: 0 !important;
  background: #fff !important; border-bottom: 0 !important; box-shadow: 0 1px 0 color-mix(in srgb, #0b0f0d 9%, transparent) !important; }
html body:not(.r44) .site-header { position: sticky !important; }
html body.r44 .site-header.r44-float .nav { height: 80px !important; padding-inline: 24px !important; }
@media (max-width: 1199px) { html body.r44 .site-header.r44-float .nav { padding-inline: 0 !important; } }
@media (max-width: 960px) { html body .site-header .nav, html body:not(.r44) .site-header .nav, html body.r44 .site-header.r44-float .nav { height: 56px !important; min-height: 0 !important; } html body.r44 .site-header.r44-float .nav { padding-inline: 0 !important; } }
/* mobile sheet */
.m52-panel { display: none; }
@media (max-width: 960px) {
  html body .site-header :is(#nav-panel, #nav-links) { display: none !important; }
  html body .site-header .nav { display: flex !important; align-items: center; gap: 8px; }
  html body .site-header .nav > .lang-switcher { margin-left: auto !important; display: inline-flex !important; }
  html body .site-header .lang-switcher__trigger { min-width: 48px; min-height: 44px; }
  html body .site-header .menu-toggle { display: inline-flex !important; margin-left: 0 !important; }
  html body .site-header .nav > .logo { margin-right: auto; }
  .m52-panel:not([hidden]) { display: block; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 56px); overflow: auto; overscroll-behavior: contain; background: #fff; border-top: 1px solid color-mix(in srgb, #0b0f0d 9%, transparent); box-shadow: 0 16px 32px rgba(11,15,13,.12); padding: 8px 16px 24px; z-index: 90; }
  html.m52-lock, html.m52-lock body { overflow: hidden !important; }
  .m52-list { display: flex; flex-direction: column; }
  .m52-top { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 4px; border: 0; border-bottom: 1px solid color-mix(in srgb, #0b0f0d 8%, transparent); background: none; color: var(--text-primary, #0b0f0d) !important; font: inherit; font-size: 17px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
  .m52-chev { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
  .m52-acc[aria-expanded="true"] .m52-chev { transform: rotate(-135deg); }
  .m52-sub { padding: 4px 4px 12px 12px; border-bottom: 1px solid color-mix(in srgb, #0b0f0d 8%, transparent); }
  .m52-sub a, .m52-lang a { display: flex; align-items: center; min-height: 44px; padding: 0 8px; border-radius: 8px; color: var(--text-primary, #0b0f0d) !important; text-decoration: none; font-size: 15px; }
  .m52-sub a:hover, .m52-lang a:hover { background: #f3f5f4; }
  .m52-overview { font-weight: 600; }
  .m52-label { margin: 12px 8px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5b6560; }
  .m52-actions { display: grid; gap: 10px; margin-top: 20px; }
  .m52-actions .btn { width: 100%; justify-content: center; min-height: 48px; }
  .m52-login { display: flex; justify-content: center; align-items: center; min-height: 44px; color: var(--text-primary, #0b0f0d) !important; font-weight: 600; text-decoration: none; }
  .m52-lang { margin-top: 16px; border-top: 1px solid color-mix(in srgb, #0b0f0d 8%, transparent); padding-top: 4px; }
  .m52-lang a.is-active { background: color-mix(in srgb, var(--brand, #1ED760) 12%, #fff); font-weight: 600; }
  .m52-lang a.is-active::after { content: "✓"; margin-left: auto; color: #0f8a43; font-weight: 700; }
}
/* ===== #52 G2: mega panels sized to content (Resources compact) ===== */
@media (min-width: 961px) {
  html body .site-header .nav-item:hover > .mega, html body .site-header .nav-item:focus-within > .mega { display: grid !important; }
  html body .site-header .mega, html body .site-header .mega--2, html body #nav-links .mega, html body #nav-links .mega--2 {
    min-width: 0 !important; width: max-content !important; max-width: min(720px, calc(100vw - 48px));
    grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: minmax(180px, max-content); gap: 8px 24px !important; padding: 16px !important; border-radius: var(--r52-radius-lg) !important; box-shadow: var(--r52-shadow-3) !important; }
  html body .site-header .mega-col { display: flex !important; flex-direction: column !important; gap: 2px; min-width: 0; }
  html body .site-header .mega-col a { white-space: nowrap; }
}
/* ===== #52 G3: one button system — sentence case, 2 heights (sm 40 / md 48), one radius (8px); tool buttons match ===== */
html body :is(.btn, .t42-btn, .btn-create) { text-transform: none !important; letter-spacing: 0 !important; font-size: 15px !important; font-weight: 650 !important; border-radius: var(--r52-radius-sm) !important; min-height: 48px !important; padding-block: 0 !important; padding-inline: 20px !important; line-height: 1.2 !important; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; }
html body :is(.btn.btn-sm, .site-header .btn) { min-height: 40px !important; height: auto; padding-inline: 16px !important; font-size: 14px !important; }
html body .t42-btn { background: var(--brand, #1ED760) !important; color: #0b0f0d !important; border: 0 !important; }
html body .t42-btn:hover:not(:disabled) { filter: brightness(.95); }
html body .t42-btn:disabled { opacity: .45; cursor: not-allowed; }
/* ===== #52 G6 tool states ===== */
.t42-msg--warn { color: #8a5a00; }
.t42-field input[aria-invalid="true"] { border-color: #c2412d !important; box-shadow: 0 0 0 3px color-mix(in srgb, #c2412d 18%, transparent) !important; }
/* ===== #52 G5: hero wash fades out instead of ending in a hard vertical edge ===== */
html body .r44-hero::before { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 35%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 35%, transparent 100%); }
/* ===== #52 G7: overflow ===== */
html[lang="ja"] body:not(.home52) :is(h2, h3) { word-break: auto-phrase; overflow-wrap: anywhere; }
html body .s41-mono { overflow-wrap: anywhere; max-width: 100%; }
@media (max-width: 600px) {
  html body main table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  html body main table :is(th, td) { overflow-wrap: anywhere; }
  html body :is(.r44-hero, .s41-hero, .page-hero) h1 { letter-spacing: -0.02em !important; overflow-wrap: normal; word-break: normal; }
}
/* ===== #52 H7: 404 uses the site shell ===== */
.p404-main { min-height: 56vh; display: flex; align-items: center; padding: clamp(48px, 10vw, 120px) 0; }
.p404-main .k { font: 600 14px/1 ui-monospace, Menlo, monospace; color: #0f8a43; letter-spacing: .04em; }
.p404-main h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.15; margin: 16px 0; }
.p404-main p { font-size: 18px; line-height: 1.6; color: #3b5446; margin: 0 0 32px; max-width: 36rem; }
.p404-main .p404-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1200px) { html body:not(.r44) .site-header .nav-actions { gap: .65rem !important; } }
/* ===== #52 G4 (safe subset): radius/shadow tokens used by the shared header, menus, buttons and tool inputs ===== */
:root { --r52-radius-sm: 8px; --r52-radius-md: 12px; --r52-radius-lg: 16px; --r52-radius-pill: 999px;
  --r52-shadow-1: 0 1px 2px rgba(11,15,13,.06); --r52-shadow-2: 0 4px 14px rgba(11,15,13,.08); --r52-shadow-3: 0 2px 6px rgba(11,15,13,.06), 0 16px 40px rgba(11,15,13,.14); }
html body .lang-switcher__menu { box-shadow: var(--r52-shadow-3) !important; }
html body .t42-field :is(input, select) { border-radius: var(--r52-radius-sm) !important; }
/* #52 G3b: beat r44 s41 main .btn (44px) — one system 48/40 */
html body.page-s41.r44 main :is(.btn, .t42-btn):not(.btn-sm) { min-height: 48px !important; padding-block: 0 !important; padding-inline: 20px !important; line-height: 1.2 !important; }
html body.page-s41.r44 main .btn.btn-sm { min-height: 40px !important; padding-block: 0 !important; }
html body .hero .hero-actions .btn-ghost { min-height: 48px; }
@media (max-width: 600px) { html body .s41-mono { white-space: normal !important; word-break: break-all; } }

/* #52 H1SCALE: locked inner scale for all non-homepage pages (beat sub41/guides43) */
html body.page-inner:not(.home52) main h1,
html body.page-s41:not(.home52) main h1,
html body.page-s41:not(.home52) main .page-hero-copy h1,
html body.page-s41:not(.home52) main .page-hero--legal .page-hero-copy h1,
html body.page-guide43:not(.home52) main h1,
html body.page-guide43:not(.home52) .g43-hero h1 {
  font-size: clamp(2rem, 4.93vw, 3.125rem) !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.012em !important;
}

/* #52 H2SCALE: locked inner h2 = r44 (28–32px / 700 / lh 1.25); beat sub41/guides43 closing */
html body.page-inner:not(.home52) main :is(h2, .section-intro h2, .s41-closing h2, .closing h2),
html body.page-s41:not(.home52) main :is(section h2, .section-intro h2, .s41-closing h2, .closing h2),
html body.page-guide43:not(.home52) :is(h2, .g43-sec h2, .g43-hero h2) {
  font-size: clamp(1.75rem, 3.18vw, 2rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.008em !important;
}
/* QR h1: allow wrap inside max-width so nbsp phrase does not overflow the hero column */
html body.page-inner:not(.home52) main h1,
html body.page-s41:not(.home52) main h1 {
  max-width: 100%;
  overflow-wrap: break-word;
}
/* #52 G7b: mobile layout-wide — mocks must not exceed wrap (campaign-tracking relay) */
@media (max-width: 600px) {
  html body.page-inner:not(.home52) main .wrap.layout-wide,
  html body.page-inner:not(.home52) main ol.s41-rows,
  html body.page-inner:not(.home52) main .s41-row { overflow-x: clip; max-width: 100%; }
  html body.page-inner:not(.home52) main .s41-row-visual,
  html body.page-inner:not(.home52) main .s41-plate,
  html body.page-inner:not(.home52) main .s41-frame { max-width: 100% !important; width: auto !important; box-sizing: border-box; }
}

/* ============================================================================
   #52 HPOVF — homepage overflow math (2026-10-23)
   Hero message + build-link tool/preview VISUAL frozen; only width/bleed math.
   Root causes: soft/tool/use ::before negative insets, JP keep-all title width hack,
   media-plate scale>1, mock-preview flex min-width:auto, G7b clip≠hidden for scan.
   ============================================================================ */

/* Soft how-row wash: stay inside the row (was inset 0 -32px → Δ32 on how-stack/wrap) */
html body.home52 .how-row--soft::before,
html body .how-section .how-row--soft::before {
  inset: 0 !important;
}

/* Tool plate + aura: keep lilac wash under the card, not past tool-stage edges (Δ37–38) */
html body .tool-stage::before {
  inset: 0 !important;
  transform: none !important;
  border-radius: 28px !important;
}
html body .tool-aura {
  inset: 0 !important;
  border-radius: inherit;
}

/* Use-case ambient: was inset 8% -6% -8% -6% → Δ32 on use-panel/use-visual */
html body .use-visual::before {
  inset: 0 !important;
}

/* Media plates: scale(1.015–1.02) + skew grew scrollWidth by ~Δ5; keep wash inside */
html body .media-plate {
  overflow-x: hidden;
}
html body .media-plate::before {
  transform: none !important;
  inset: 0 !important;
}

/* Product bleed aura: decorative abs; contain inside visual so how-row stays clean */
html body .how-visual,
html body .use-visual {
  overflow-x: hidden;
  min-width: 0;
}
html body .product-bleed {
  left: 0 !important;
  right: 0 !important;
  inset-inline: 0 !important;
}

/* Drop intentional negative frame margins that push past wrap (≥1100 how/use) */
@media (min-width: 1100px) {
  html body .use-visual .product-frame--bleed,
  html body .use-visual .product-frame,
  html body .how-row:not(.how-row--reverse) .product-frame--bleed,
  html body .how-row--reverse .product-frame--bleed {
    margin-inline-end: 0 !important;
    margin-inline-start: 0 !important;
  }
}

/* How stack / wrap: belt-and-suspenders after bleed fixes (scan skips overflow-x:hidden) */
html body .how-stack,
html body .how-section > .wrap {
  overflow-x: hidden;
  max-width: 100%;
}

/* Mobile How soft was inset 0 -8px (space-4/2) → Δ8 */
@media (max-width: 899.98px) {
  html body .how-row--soft::before {
    inset: 0 !important;
  }
}

/* —— JP CJK titles: fit the copy column; do NOT shrink EN hero look ——
   Old craft hack set #hero-title to width:min(100vw-48px,13.5em) + negative margin,
   so hero-copy scrollWidth blew past 640 (Δ112–166). Keep authored breaks; phrase-break.
   Restored intro--left/center max-width (40rem/36rem) — do not force max-width:100% on the box. */
@media (min-width: 600px) {
  html[lang="ja"] body.home52 main #hero-title,
  html[lang="ja"] body main #hero-title,
  html[lang="ja"] body.home52 main #stories-title,
  html[lang="ja"] body main #stories-title {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    box-sizing: border-box;
  }
}
html[lang="ja"] body main .hero-copy {
  min-width: 0;
  overflow-wrap: break-word;
}
/* JA m-phrase: desktop was plain inline, so keep-all glued phrases into one >640px line.
   inline-block + nowrap wraps BETWEEN phrases (fixes pain Δ218) without mid-phrase widows. */
html[lang="ja"] body main .m-phrase {
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
  line-height: inherit;
}
/* Industry title has no m-phrase; first clause alone ~748px under keep-all */
html[lang="ja"] body main #industry-title {
  word-break: normal !important;
  line-break: strict !important;
  overflow-wrap: anywhere;
}
@supports (word-break: auto-phrase) {
  html[lang="ja"] body main #industry-title {
    word-break: auto-phrase !important;
    overflow-wrap: break-word;
  }
}

/* Restore intentional intro column widths (premium Batch E) */
html[lang="ja"] body main .section-intro.intro--left,
html[lang="zh-Hant"] body main .section-intro.intro--left,
html[lang="ko"] body main .section-intro.intro--left {
  max-width: 40rem !important;
}
html[lang="ja"] body main .section-intro.intro--center,
html[lang="zh-Hant"] body main .section-intro.intro--center,
html[lang="ko"] body main .section-intro.intro--center {
  max-width: 36rem !important;
}
/* Targeted JP phrase-break ONLY where keep-all overflowed (hero / comparison / use).
   Do NOT blanket all h2 — pain-band authored breaks + keep-all must stay (widow lock). */
html[lang="ja"] body main .hero-copy h1,
html[lang="ja"] body main .comparison :is(h2, h3),
html[lang="ja"] body main .comparison > div,
html[lang="ja"] body main .use-copy h3 {
  max-width: 100% !important;
  width: auto !important;
  margin-inline: 0 !important;
  word-break: normal !important;
  line-break: strict !important;
  overflow-wrap: anywhere;
  box-sizing: border-box;
  min-width: 0;
}
@supports (word-break: auto-phrase) {
  html[lang="ja"] body main .hero-copy h1,
  html[lang="ja"] body main .comparison :is(h2, h3),
  html[lang="ja"] body main .use-copy h3 {
    word-break: auto-phrase !important;
    overflow-wrap: break-word;
  }
}
html[lang="ja"] body main .use-copy,
html[lang="ja"] body main .comparison > div,
html[lang="ja"] body main .compare-col {
  min-width: 0;
  max-width: 100%;
}
/* zh/ko: never force word-break:normal on Hangul/CJK (mid-syllable widows). Column fit only. */
html[lang="zh-Hant"] body main .section-intro :is(h2, h3),
html[lang="ko"] body main .section-intro :is(h2, h3),
html[lang="zh-Hant"] body main .use-copy h3,
html[lang="ko"] body main .use-copy h3 {
  max-width: 100% !important;
}

/* —— How mock-preview @390: flex kids min-width:auto + nowrap URL → Δ31 —— */
html body .ui-mock .mock-preview {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
html body .ui-mock .mock-preview > div {
  min-width: 0;
  flex: 1 1 auto;
}
html body .ui-mock .mock-preview .mock-cta {
  flex: 0 1 auto;
  max-width: 42%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html body .ui-mock {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Tool-stage width: keep frozen 960 desktop cap; never exceed wrap on narrow */
html body .hero .tool-stage,
html body .hero--stitch .tool-stage,
html body .tool-stage {
  max-width: min(960px, 100%) !important;
  width: min(100%, 960px) !important;
  min-width: 0;
  box-sizing: border-box;
  margin-inline: auto;
}
html body .create-split {
  max-width: 100%;
  min-width: 0;
}

/* #52 G7b fix: metric-scan only skips overflow-x:hidden (not clip); + real width math */
@media (max-width: 600px) {
  html body.page-inner:not(.home52) main .wrap.layout-wide,
  html body.page-inner:not(.home52) main ol.s41-rows,
  html body.page-inner:not(.home52) main .s41-row {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }
  html body.page-inner:not(.home52) main .s41-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html body.page-inner:not(.home52) main .s41-row-visual,
  html body.page-inner:not(.home52) main .s41-plate,
  html body.page-inner:not(.home52) main .s41-frame {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
    min-width: 0;
  }
}

/* Below-fold rhythm polish (Slack philosophy, no new sections): equal card containment */
html body.home52 .how-section .how-row,
html body .how-section .how-row {
  min-width: 0;
}
html body.home52 .feat-band .wrap,
html body .belief-grid,
html body .pain-grid {
  max-width: 100%;
}
