/* Let Japanese prose use the available width; keep authored paragraph breaks. */
html:lang(ja) body :is(h1,h2,h3,h4,p,li,dt,dd,figcaption,summary,label,td,th,.sub,.mut,.note,.q-text,.choice,.explain-text,.explain-point) {
  word-break: normal !important;
  line-break: strict !important;
  text-wrap: wrap !important;
}
html:lang(ja) body :is(p,li,dd) .nb { white-space: normal; }
html:lang(ja) body :is(.text-run,.word-unit) { display: contents !important; }
html:lang(ja) body .prose-tail { white-space: nowrap !important; }
/* App introductions occupy their row before actions wrap underneath on phones. */
.app .view-head > div:first-child,.app .dash-top > div:first-child { flex: 1 1 28rem; min-width: 0; }
.app .greeting-phrase { white-space: nowrap; }
@media(max-width:760px) {
  .app .view-head > div:first-child,.app .dash-top > div:first-child { flex-basis: 100%; }
  .app .dash-top h1 { font-size: clamp(24px,6.5vw,28px); }
  html:lang(ja) main :is(.hero-lead,.lead,.hero-desc,.hero-def,.overview-fold p) { max-width: 100%; }
}

.app .greeting-name { display: inline-block; max-width: 100%; overflow-wrap: anywhere; vertical-align: baseline; }
/* Keep comparison tables and narrow editorial grids inside their own frame. */
@media(min-width:761px) { .friendly-sales .comparison-scroll { max-width:100%; overflow-x:auto; } }
@media(max-width:760px) {
  .portal :is(.story-grid,.excerpt-grid,.about-grid) { grid-template-columns:minmax(0,1fr); }
  .portal :is(.story-lead,.story-body,.excerpt-copy,.excerpt-quote) { min-width:0; }
}
