/* Biz Forecast by Gravita Tech: forecast screen. Tokens follow DESIGN-SYSTEM-FOR-DEMO-SITE.md.
   Orange is used on buttons only. No text under 14 px. */
:root {
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --surface-2: #EEF1F8;
  --text: #0C1844;
  --muted: #46506B;
  --accent: #2A4BB0;
  --line: rgba(12, 24, 68, .14);
  --line-strong: rgba(12, 24, 68, .30);
  --action: #E07B00;
  --action-hover: #C96E00;
  --on-action: #0C1844;
  --sel-bg: #0C1844;
  --sel-text: #FFFFFF;
  --band-stone: #EDEBE6;
  --shadow: 0 6px 20px rgba(12, 24, 68, .07);
  --c-hist: #8A93AB;
  --c-base: #0C1844;
  --c-scn: #2A4BB0;
  --c-neg: #6B7390;
  --c-grid: rgba(12, 24, 68, .10);
  --c-tint: rgba(42, 75, 176, .10);
  --c-event: rgba(12, 24, 68, .45);
  --max: 1200px;
  --r: 10px;
  --r-lg: 18px;
  --fs-s: .9375rem;
  --fs-b: 1.0625rem;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #080D26;
  --surface: #0E163D;
  --surface-2: #141C48;
  --text: #EEF1FA;
  --muted: #B4BED8;
  --accent: #8FA6EE;
  --line: rgba(238, 241, 250, .16);
  --line-strong: rgba(238, 241, 250, .34);
  --action: #E07B00;
  --action-hover: #F2A54A;
  --sel-bg: #8FA6EE;
  --sel-text: #0C1844;
  --band-stone: #141C48;
  --shadow: 0 6px 20px rgba(0, 0, 0, .35);
  --c-hist: #8D99BD;
  --c-base: #EEF1FA;
  --c-scn: #8FA6EE;
  --c-neg: #A8B2D2;
  --c-grid: rgba(238, 241, 250, .12);
  --c-tint: rgba(143, 166, 238, .14);
  --c-event: rgba(238, 241, 250, .5);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080D26;
    --surface: #0E163D;
    --surface-2: #141C48;
    --text: #EEF1FA;
    --muted: #B4BED8;
    --accent: #8FA6EE;
    --line: rgba(238, 241, 250, .16);
    --line-strong: rgba(238, 241, 250, .34);
    --action-hover: #F2A54A;
    --sel-bg: #8FA6EE;
    --sel-text: #0C1844;
    --band-stone: #141C48;
    --shadow: 0 6px 20px rgba(0, 0, 0, .35);
    --c-hist: #8D99BD;
    --c-base: #EEF1FA;
    --c-scn: #8FA6EE;
    --c-neg: #A8B2D2;
    --c-grid: rgba(238, 241, 250, .12);
    --c-tint: rgba(143, 166, 238, .14);
    --c-event: rgba(238, 241, 250, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Carlito, Calibri, "Segoe UI", Arial, sans-serif;
  font-size: var(--fs-b);
  line-height: 1.5;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { text-wrap: balance; line-height: 1.15; }
a { color: var(--accent); }
img { display: block; max-width: 100%; height: auto; }
button, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--surface); padding: 10px 16px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 8px; }

/* Header: one sticky bar */
.bar { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: block; flex: none; }
.logo img { height: 44px; width: auto; }
.logo-dark { display: none !important; }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none !important; }
  :root:not([data-theme="light"]) .logo-dark { display: block !important; }
}
.app-name { font-size: 1.40625rem; font-weight: 700; padding-left: 24px; border-left: 1px solid var(--line-strong); line-height: 1.15; }
.bar-links { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.link-demos { white-space: nowrap; font-size: 1rem; font-weight: 400; text-decoration: none; padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.link-demos:hover { text-decoration: underline; }
.btn-lang { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; cursor: pointer; font-weight: 400; font-size: 1rem; }
.btn-lang:hover { background: var(--surface-2); }
.lang-short { display: none; }
/* two language buttons since Japanese (item 17): short labels (EN, ID, JA) below 1100 px so the header keeps one line */
@media (max-width: 1099px) { .lang-long { display: none; } .lang-short { display: inline; } .btn-lang { min-width: 44px; padding: 0 12px; } }

/* Intro and controls */
.intro { padding-top: 40px; }
.intro h1 { font-size: 2.75rem; letter-spacing: -.01em; max-width: 22ch; }
.lead { margin-top: 12px; max-width: 70ch; color: var(--muted); font-size: 1.125rem; }
.fixtures-note { margin-top: 12px; font-size: var(--fs-s); color: var(--muted); border-left: 3px solid var(--accent); padding-left: 10px; }
.controls { display: grid; grid-template-columns: auto minmax(160px, 1fr) auto; gap: 16px 24px; align-items: start; padding-top: 28px; padding-bottom: 24px; }
.ctl-label { font-size: var(--fs-s); font-weight: 400; color: var(--text); margin-bottom: 6px; display: block; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); max-width: 100%; }
.seg button { min-height: 48px; padding: 0 14px; border: 0; background: transparent; border-radius: 999px; cursor: pointer; font-weight: 400; font-size: 1rem; white-space: nowrap; }
.seg button:hover { background: var(--surface-2); }
.seg button[aria-pressed="true"] { background: var(--sel-bg); color: var(--sel-text); }
.seg-biz button { text-align: left; padding: 6px 16px; line-height: 1.2; font-size: var(--fs-b); font-weight: 700; }
.seg-biz small { display: block; font-weight: 400; font-size: var(--fs-s); opacity: .85; }
.seg-wrap { flex-wrap: wrap; border-radius: 22px; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select { width: 100%; min-height: 58px; padding: 0 44px 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); appearance: none; -webkit-appearance: none; font-weight: 700; cursor: pointer; text-overflow: ellipsis; }

/* Cards and stage */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 24px; align-items: start; padding-bottom: 64px; }
.stage-main { padding: 24px; min-width: 0; }
.stage-head h2, .stage-head h3 { font-size: 1.75rem; }
.stage-head h3 { font-size: 1.40625rem; }
.sub { margin-top: 6px; color: var(--muted); font-size: var(--fs-s); max-width: 70ch; }
.help { color: var(--muted); font-size: var(--fs-s); margin-top: 4px; }

.figs { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: 20px; }
.fig { min-width: 0; }
.fig-label { font-size: var(--fs-s); color: var(--text); font-weight: 400; }
.fig-num { font-size: 2.1875rem; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fig-sub { font-size: var(--fs-s); color: var(--muted); }
.fig-unit { font-size: 1.125rem; font-weight: 700; margin-left: 8px; color: var(--muted); letter-spacing: 0; }
.seg-wrap.seg-wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; border: 0; background: transparent; border-radius: 0; margin-top: 12px; }
.seg button.wk-price { min-height: 48px; padding: 0 4px; font-weight: 400; font-size: 1rem; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); }
.seg button.wk-price:hover { border-color: var(--accent); }
.seg button.wk-price[aria-pressed="true"] { background: var(--sel-bg); color: var(--sel-text); border-color: var(--sel-bg); }
.fig-scn { padding-left: 40px; border-left: 3px solid var(--c-scn); }
.fig-scn .fig-num { color: var(--accent); }

.legend { list-style: none; padding: 0; margin: 20px 0 8px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: var(--fs-s); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; flex: none; }
.sw-line { width: 26px; height: 0; border-top: 3px solid var(--c-base); }
.sw-hist { width: 26px; height: 0; border-top: 2px solid var(--c-hist); }
.sw-scn { width: 26px; height: 0; border-top: 3px solid var(--c-scn); }
.sw-b50 { width: 26px; height: 14px; background: var(--c-base); opacity: .30; border-radius: 3px; }
.sw-b80 { width: 26px; height: 14px; background: var(--c-base); opacity: .13; border-radius: 3px; }
.sw-ev { width: 0; height: 16px; border-left: 2px dashed var(--c-event); margin: 0 12px; }
.sw-tint { width: 26px; height: 14px; background: var(--c-tint); border: 1px solid var(--accent); border-radius: 3px; }
.sw-ram { width: 26px; height: 14px; background: var(--c-base); opacity: .08; border-radius: 3px; border: 1px dashed var(--c-event); }
.sw-actual { width: 26px; height: 0; border-top: 4px solid var(--c-base); }

.chart-wrap { position: relative; margin-top: 8px; }
.chart { width: 100%; height: 400px; }
.chart.has-delta { height: 500px; }
.chart-rp { height: 400px; }
.chart-wrap.is-busy .chart { opacity: .35; transition: opacity .2s; }
.overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ov-box { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px 24px; max-width: 420px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.ov-text { font-size: var(--fs-b); }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--accent); animation: bf-spin 0.9s linear infinite; }
.spin.off { display: none; }
@keyframes bf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; border-top-color: var(--line-strong); border-right-color: var(--accent); } html { scroll-behavior: auto; } }

.slow-note { margin-top: 8px; font-size: var(--fs-s); color: var(--muted); border-left: 3px solid var(--accent); padding-left: 10px; }
.events { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--fs-s); }
.events h3 { font-size: var(--fs-s); font-weight: 400; color: var(--text); margin-bottom: 8px; }
.events ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.events li { display: inline-flex; gap: 8px; align-items: baseline; }
.events .ev-date { font-weight: 400; color: var(--text); font-variant-numeric: tabular-nums; }
.events .ev-est { color: var(--muted); }

/* Tooltip (classes only, because the page allows no inline style attributes) */
.tt { font-family: Carlito, Calibri, "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.45; color: var(--text); min-width: 220px; }
.tt-d { font-weight: 400; font-size: 16px; margin-bottom: 4px; }
.tt-r { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tt-r span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.tt-r b { font-variant-numeric: tabular-nums; }
.tt-sub { color: var(--muted); font-size: 14px; padding-left: 34px; }
.tt-ev { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.tt-i { display: inline-block; width: 26px; height: 0; border-top: 3px solid var(--c-base); }
.tt-i.scn { border-top-color: var(--c-scn); }
.tt-i.hist { border-top: 2px solid var(--c-hist); }

/* What-if panel */
.whatif { padding: 24px; position: sticky; top: 96px; }
.whatif h2 { font-size: 1.75rem; }
.wi-block { margin-top: 24px; }
.wi-block h3 { font-size: 1.125rem; }
.weeks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.wk { min-height: 60px; padding: 6px 4px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); cursor: pointer; display: grid; align-content: center; justify-items: center; gap: 0; line-height: 1.2; }
.wk b { font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.wk small { font-size: 14px; color: var(--muted); min-height: 17px; }
.wk:hover { border-color: var(--accent); }
.wk[aria-pressed="true"] { background: var(--sel-bg); color: var(--sel-text); border-color: var(--sel-bg); }
.wk[aria-pressed="true"] small { color: var(--sel-text); opacity: .9; }
.wk.changed { border-width: 2px; border-color: var(--accent); box-shadow: 0 0 0 2px var(--c-tint); }
.wk.changed[aria-pressed="true"] { border-color: var(--accent); }
.wk.dim { opacity: .55; }
.wi-actions { margin-top: 20px; display: flex; align-items: center; gap: 16px; }
.updating { color: var(--text); font-size: var(--fs-s); font-weight: 400; }
.btn-outline { min-height: 48px; padding: 0 22px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; cursor: pointer; font-weight: 700; }
.btn-outline:hover { background: var(--surface-2); }
.btn-outline:disabled { opacity: .45; cursor: default; }
.btn-action { min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--action); color: var(--on-action); cursor: pointer; font-weight: 700; font-size: var(--fs-b); }
.btn-action:hover { background: var(--action-hover); }
.btn-action:disabled { opacity: .5; cursor: default; }

.first-load .wi-block, .first-load .wi-actions, .first-load .result { display: none; }
.result { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.result h3 { font-size: 1.125rem; }
.res-main { margin-top: 10px; }
.res-num { font-size: 2.75rem; font-weight: 700; line-height: 1.05; letter-spacing: -.01em; color: var(--accent); font-variant-numeric: tabular-nums; }
.res-num.neg { color: var(--text); }
.res-unit { font-size: 1.40625rem; font-weight: 700; margin-left: 6px; color: var(--text); }
.res-rp { margin-top: 6px; font-size: 1.40625rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.res-note { margin-top: 8px; color: var(--muted); font-size: var(--fs-s); }
.res-none { margin-top: 8px; color: var(--muted); font-size: var(--fs-s); }

/* Guided tour: a box beside its target; the only orange is its main button */
.btn-tour { margin-top: 16px; min-height: 44px; }
.tour { position: fixed; z-index: 60; width: 340px; max-width: calc(100vw - 16px); background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: 0 12px 36px rgba(12, 24, 68, .28); padding: 16px 18px 18px; }
.tour:focus { outline: none; }
.tour:focus-visible { outline: none; }
.tour-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tour-step { font-size: var(--fs-s); font-weight: 400; color: var(--text); }
.tour-close { width: 44px; height: 44px; margin: -8px -10px -8px 0; border: 0; background: transparent; border-radius: 50%; cursor: pointer; font-size: 1.75rem; line-height: 1; color: var(--text); }
.tour-close:hover { background: var(--surface-2); }
.tour-title { font-size: 1.3rem; margin-top: 4px; }
.tour-text { margin-top: 6px; font-size: var(--fs-b); }
.tour-foot { margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; }
.tour-foot .btn-outline, .tour-foot .btn-action { min-height: 48px; padding: 0 22px; }
.tour-target { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 12px; }
/* Green tour box, the same in light and dark (docs/handover/green-tour-box-spec.md, his "1A", 31 Oct 2026) */
.tour { background: #0E4D3B; color: #FFFFFF; border: 1px solid #2F7A60; }
.tour .tour-step, .tour .tour-title, .tour .tour-text, .tour .tour-close { color: #FFFFFF; }
.tour .tour-close:hover { background: rgba(255, 255, 255, .12); }
.tour .btn-action { background: #FFFFFF; color: #0E4D3B; font-weight: 700; font-size: 17px; }
.tour .btn-action:hover { background: #E8F3EF; }
.tour .btn-outline { background: transparent; color: #FFFFFF; border: 1.5px solid rgba(255, 255, 255, .7); font-size: 17px; }
.tour .btn-outline:hover { background: rgba(255, 255, 255, .12); }
.tour .btn-outline:disabled { opacity: .5; }
.tour .btn-outline:disabled:hover { background: transparent; }
.tour button:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }

/* Replay */
.band-stone { background: var(--surface-2); padding: 64px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 24px; }
.rp-head h2, .why h2 { font-size: 2.1875rem; }
.rp-head .sub { max-width: 60ch; font-size: 1.0625rem; }
.rp-ctl { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.rp-card { padding: 24px; }
.rank { margin-top: 32px; }
.rank h3 { font-size: 1.40625rem; }
.rank-best { margin-top: 6px; font-size: 1.125rem; font-weight: 700; }
.rank-list { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.rk { display: grid; grid-template-columns: 40px minmax(150px, 220px) minmax(160px, 1fr) minmax(0, 1.3fr); gap: 8px 24px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rk-n { font-size: 1.75rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.rk:first-child .rk-n { color: var(--accent); }
.rk-name { display: grid; gap: 4px; }
.rk-name label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; cursor: pointer; min-height: 32px; }
.rk-name input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin: 0; }
.rk-name .sw { margin-left: 0; }
.rk-bar { display: grid; gap: 6px; }
.rk-track { position: relative; height: 14px; background: var(--surface-2); border-radius: 7px; }
.rk-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c-scn); border-radius: 7px; }
.rk-one { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--text); }
.rk-score { font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.rk-score span { font-weight: 400; color: var(--muted); font-size: var(--fs-s); margin-left: 6px; }
.rk-words { font-size: var(--fs-s); color: var(--text); }
.rk-words p + p { margin-top: 4px; color: var(--muted); }
.rank-ph { margin-top: 12px; color: var(--muted); }

/* Why */
.why { padding-top: 64px; padding-bottom: 64px; }
.why .sub { font-size: 1.0625rem; max-width: 60ch; }
.why-box { margin-top: 24px; min-height: 120px; }
.why-loading { color: var(--muted); font-size: var(--fs-s); }

.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: var(--fs-s); color: var(--muted); }
.foot .wrap { display: grid; gap: 8px; }

@media (max-width: 1100px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .whatif { position: static; }
  .weeks { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .controls { grid-template-columns: 1fr; justify-items: start; }
  .controls .ctl { width: 100%; }
  .select-wrap { max-width: 420px; }
  .rk { grid-template-columns: 40px minmax(140px, 200px) minmax(0, 1fr); }
  .rk-words { grid-column: 2 / -1; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .bar-in { gap: 12px; min-height: 64px; }
  .logo img { height: 34px; }
  .app-name { font-size: 1rem; font-weight: 400; padding-left: 12px; max-width: 120px; }
  .bar-links { gap: 4px; }
  .link-demos { padding: 8px 8px; }
  .btn-lang { padding: 0 12px; min-width: 44px; }
  .lang-long { display: none; }
  .lang-short { display: inline; }
  .intro { padding-top: 28px; }
  .intro h1 { font-size: 2.1875rem; }
  .lead { font-size: 1.0625rem; }
  .controls { padding-top: 20px; padding-bottom: 24px; gap: 16px; }   /* .wrap above resets the bottom padding */
  .seg-biz { display: flex; flex-direction: column; border-radius: 22px; width: 100%; }
  .seg-biz button { border-radius: 18px; width: 100%; }
  #horizon-seg { display: flex; flex-wrap: wrap; border-radius: 22px; width: 100%; }
  #horizon-seg button { flex: 1 1 40%; }
  .select-wrap { max-width: none; }
  .stage { gap: 16px; padding-bottom: 40px; }
  .stage-main, .whatif, .rp-card { padding: 16px; }
  .stage-head h2 { font-size: 1.40625rem; }
  .figs { gap: 12px 24px; }
  .fig-num { font-size: 1.75rem; }
  .fig-scn { padding-left: 16px; }
  .chart { height: 340px; }
  .chart.has-delta { height: 440px; }
  .chart-rp { height: 340px; }
  .weeks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .band-stone { padding: 40px 0; }
  .rp-head h2, .why h2 { font-size: 1.75rem; }
  .rp-ctl { width: 100%; }
  .rp-ctl .btn-action { width: 100%; }
  .rk { grid-template-columns: 32px minmax(0, 1fr); }
  .rk-bar, .rk-words { grid-column: 1 / -1; }
  .rk-n { font-size: 1.40625rem; }
  .why { padding-top: 40px; padding-bottom: 40px; }
  .res-num { font-size: 2.1875rem; }
}
@media (max-width: 720px) {
  .wk { min-height: 52px; }
  .tour { padding: 12px 16px 14px; }
  .tour-title { font-size: 1.2rem; margin-top: 0; }
  .tour-text { font-size: 1rem; line-height: 1.4; }
  .tour-foot { margin-top: 10px; }
  .tour-foot .btn-outline, .tour-foot .btn-action { min-height: 44px; }
}
@media (max-width: 400px) {
  .app-name { font-size: 15px; max-width: 106px; padding-left: 8px; }
  .bar-in { gap: 8px; }
  .logo img { height: 31px; }
  .link-demos { padding: 8px 2px; }
  .btn-lang { min-width: 44px; padding: 0 8px; }
  .link-demos { font-size: 14px; padding: 8px 4px; }
}
@media (max-width: 540px) {
  /* two-row phone header (his "Two-row header", 1 Nov): logo and app name on the first row, All demos, Share and
     the language switch on the second, so the app name stays visible on one line next to the Share icon */
  .bar-in { flex-wrap: wrap; gap: 4px 12px; min-height: 0; padding-top: 8px; padding-bottom: 6px; }
  .app-name { max-width: none; white-space: nowrap; font-size: 1rem; padding-left: 12px; }
  .bar-links { flex-basis: 100%; justify-content: flex-end; gap: 8px; margin-left: 0; }
  .link-demos { font-size: 1rem; padding: 8px 6px; }
  /* while the tour is open the taller header scrolls away, so tall steps (promotion weeks plus price) keep room */
  .tour-open .bar { position: static; }
}
/* Japanese page (item 17): Japanese system fonts after Carlito, strict line breaks */
html[lang="ja"] body, html[lang="ja"] .tt, html[lang="ja"] .bfwhy { font-family: Carlito, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif; line-break: strict; }
