/* LP Studio 管理画面 — 見た目（design/DESIGN.md v1.5・2026-10-15：サイト構造の作り直し（docs/design/17）・アイコン（docs/design/18）。
 * 形は試作 docs/design/proto/ に合わせた。v1 仮確定・2026-09-30・案B「迷わない面」）
 *
 * 決まり（DESIGN.md 第3章・第9章）:
 *   - 色・文字の大きさ・余白・角・線・影・時間は tokens.css の変数だけ。生の値を書かない
 *     （例外：DESIGN.md に数字で書いた部品の寸法＝印の点6px・棒8px・グラフ200px・枠240px・ダイアログ480px 等、ブラウザの固定値 0・100%・999px・50%）
 *   - 画面の安全設定（CSP：style-src 'self'）に合わせ、見た目はこのファイルのクラスで当てる。インラインの style 属性は使わない
 *   - 状態はクラスで切り替える：is-ok・is-warn・is-ng・is-info・is-on・is-current・is-error・is-neg
 * 読み込む順：tokens.css → app.css（index.html）
 */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--c-bg); color: var(--c-text);
  font: var(--fs-body)/var(--lh-ui) var(--f-ui); letter-spacing: var(--ls-ui);
  word-break: auto-phrase; line-break: strict;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--c-link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible, input[type=checkbox]:focus-visible {
  outline: 2px solid var(--c-focus); outline-offset: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
code, .ui-mono { font-family: var(--f-mono); font-size: var(--fs-small); }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
.boot { padding: var(--sp-6) var(--pad-page-x); max-width: var(--w-boot); }
.ui-muted { color: var(--c-text-sub); }
.ui-dash { color: var(--c-text-sub); }
.ui-faint { color: var(--c-text-sub); }
.ui-stack { display: flex; flex-direction: column; gap: var(--gap-block); min-width: 0; }
.ui-stack:empty, .ui-page > div:empty { display: none; }
.ui-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }
.ui-spacer { flex: 1; }
.is-neg { color: var(--c-neg); }

/* ---------- 枠（5.1） ---------- */
.ui-app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.ui-side { background: var(--c-side); border-right: var(--line-w) solid var(--c-line); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; }
.ui-brand { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-4) var(--sp-4) var(--sp-3);
  font-weight: var(--fw-strong); color: var(--c-text); }
.ui-brand__entry { font-size: var(--fs-small); font-weight: var(--fw-th); color: var(--c-side-sub);
  border: var(--line-w) solid var(--c-line); border-radius: var(--radius-badge); padding: 0 var(--sp-1); }
.ui-nav { flex: 1; overflow-y: auto; padding: var(--sp-2) var(--sp-2) var(--sp-4); display: flex; flex-direction: column; gap: 2px; }
.ui-nav__item { display: flex; align-items: center; gap: var(--sp-2); height: var(--nav-h); padding: 0 var(--sp-2);
  border-radius: var(--radius); color: var(--c-side-text); text-decoration: none; min-width: 0;
  transition: background-color var(--dur) var(--ease); }
.ui-nav__item:hover { background: var(--c-hover); text-decoration: none; }
.ui-nav__item > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* アイコン（docs/design/18 の 3.2〜3.4）：線は画面上 1.5px（32px だけ 1.75px）・端と角は丸・塗らない・色は文字から受ける */
.ui-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ui-icon { width: var(--icon-16); height: var(--icon-16); flex: none; fill: none; stroke: currentColor; stroke-width: var(--icon-stroke);
  stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ui-icon--14 { width: var(--icon-14); height: var(--icon-14); }
.ui-icon--20 { width: var(--icon-20); height: var(--icon-20); }
.ui-icon--32 { width: var(--icon-32); height: var(--icon-32); stroke-width: var(--icon-stroke-lg); }
.ui-sprite symbol * , .ui-icon * { vector-effect: non-scaling-stroke; }
.ui-nav__item .ui-icon { color: var(--c-side-sub); }
.ui-nav__item.is-current { background: var(--c-side-active); color: var(--c-side-active-text); font-weight: var(--fw-strong); }
.ui-nav__item.is-current .ui-icon { color: var(--c-side-active-text); }
.ui-me { border-top: var(--line-w) solid var(--c-line); padding: var(--sp-3) var(--sp-2) var(--sp-4); }
.ui-me__link { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-1) var(--sp-2); border-radius: var(--radius); color: var(--c-text);
  min-height: var(--ctl-h-lg); text-decoration: none; }
.ui-me__link:hover { background: var(--c-hover); text-decoration: none; }
.ui-me__link .ui-icon { color: var(--c-side-sub); }
.ui-me__link.is-current { background: var(--c-side-active); color: var(--c-side-active-text); }
.ui-me__link.is-current .ui-icon { color: var(--c-side-active-text); }
.ui-me__t { display: flex; flex-direction: column; min-width: 0; line-height: var(--lh-tight); }
.ui-me__who { font-weight: var(--fw-strong); font-size: var(--fs-small); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-me__role { color: var(--c-side-sub); font-size: var(--fs-small); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-devbar { margin: var(--pad-page-y) var(--pad-page-x) 0; }
.ui-main { min-width: 0; }
.ui-page { padding: 0 var(--pad-page-x) var(--pad-page-y); display: flex; flex-direction: column; gap: var(--gap-block); }

/* 画面の頭：帯にしない（地の上に直接）。パンくず → 見出し → 最終更新。右に操作 */
.ui-head { display: flex; align-items: flex-end; gap: var(--sp-4); flex-wrap: wrap; min-height: var(--head-h);
  padding-top: var(--pad-page-y); margin-bottom: calc(var(--sp-4) - var(--gap-block)); }
.ui-head__main { flex: 1 1 var(--w-head-main); min-width: 0; }
.ui-head__actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; margin-left: auto; }
.ui-crumb { font-size: var(--fs-small); color: var(--c-text-sub); margin-bottom: var(--sp-1); }
.ui-crumb a { color: var(--c-text-sub); }
.ui-crumb a:hover { color: var(--c-text); }
.ui-title-row { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.ui-title { font-size: var(--fs-page); font-weight: var(--fw-page); letter-spacing: var(--ls-page); line-height: var(--lh-tight);
  font-feature-settings: "palt"; overflow-wrap: anywhere; }
.ui-meta { font-size: var(--fs-small); color: var(--c-text-sub); margin-top: var(--sp-1); }
.ui-lead { font-size: var(--fs-small); color: var(--c-text-sub); margin-top: var(--sp-1); max-width: var(--w-lead); line-height: var(--lh-ui); }

/* ---------- 面（カード）とまとまりの見出し ---------- */
.ui-block { background: var(--c-surface); border: var(--line-w) solid var(--c-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: var(--sp-4) var(--sp-5); min-width: 0; }
.ui-block--table { padding: 0; overflow: hidden; }
.ui-block__head { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-3); min-height: var(--ctl-h-sm); }
.ui-block__title { font-size: var(--fs-section); font-weight: var(--fw-section); line-height: var(--lh-tight);
  font-feature-settings: "palt"; }
.ui-block__sub { font-size: var(--fs-small); color: var(--c-text-sub); }
.ui-block__actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; margin-left: auto; }
.ui-block--table > .ui-block__head { padding: var(--sp-4) var(--sp-4) 0; }
.ui-block__text { color: var(--c-text-sub); line-height: var(--lh-text); margin-bottom: var(--sp-3); }
.ui-block--table > .ui-block__text { padding: 0 var(--sp-4); }
.ui-block__foot { display: flex; justify-content: flex-end; gap: var(--sp-2); flex-wrap: wrap; align-items: center;
  border-top: var(--line-w) solid var(--c-line); margin-top: var(--sp-4); padding-top: var(--sp-4); }
.ui-block--table .ui-block__foot { margin: 0; padding: var(--sp-3) var(--sp-4); }
.ui-block__out { margin-top: var(--sp-3); font-size: var(--fs-small); color: var(--c-text-sub); }
.ui-subtitle { font-size: var(--fs-body); font-weight: var(--fw-strong); margin: var(--sp-4) 0 var(--sp-2); }
.ui-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-block); align-items: start; }
.ui-form-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-4); }

/* ---------- ボタン（5.2） ---------- */
.ui-btn { display: inline-flex; align-items: center; justify-content: center; height: var(--ctl-h); padding: 0 var(--sp-3);
  border-radius: var(--radius); border: var(--line-w) solid var(--c-line-strong); background: var(--c-surface); color: var(--c-text);
  font-size: var(--fs-body); font-weight: var(--fw-strong); line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background-color var(--dur) var(--ease), filter var(--dur) var(--ease); }
.ui-btn:hover { background: var(--c-hover); text-decoration: none; }
.ui-btn:active { filter: brightness(.96); }
.ui-btn--primary { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.ui-btn--primary:hover { background: var(--c-primary); filter: brightness(1.08); }
.ui-btn--primary:active { filter: brightness(.96); }
.ui-btn--danger { color: var(--c-ng); }
.ui-btn--danger:hover { background: var(--c-ng-bg); }
.ui-btn--danger-fill { background: var(--c-ng); border-color: var(--c-ng); color: var(--c-on-ng); }
.ui-btn--danger-fill:hover { background: var(--c-ng); filter: brightness(1.08); }
.ui-btn--ghost { background: none; border-color: transparent; color: var(--c-text-sub); }
.ui-btn--ghost:hover { background: var(--c-hover); color: var(--c-text); }
.ui-btn--sm { height: var(--ctl-h-sm); padding: 0 var(--sp-2); font-size: var(--fs-small); }
.ui-btn--lg { height: var(--ctl-h-lg); padding: 0 var(--sp-4); width: 100%; }
.ui-btn:disabled, .ui-btn.is-disabled { opacity: .45; cursor: not-allowed; }
.ui-btn:disabled:hover { background: var(--c-surface); filter: none; }
.ui-btn--primary:disabled:hover { background: var(--c-primary); }

/* ---------- 入力（5.3） ---------- */
input[type=text], input[type=email], input[type=url], input[type=search], input[type=number], input[type=date], select, textarea {
  height: var(--ctl-h); padding: 0 var(--sp-2); border: var(--line-w) solid var(--c-line-strong); border-radius: var(--radius);
  background: var(--c-surface); color: var(--c-text); font-size: var(--fs-body); min-width: 0; }
input::placeholder, textarea::placeholder { color: var(--c-text-faint); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--c-focus); outline-offset: -1px; border-color: var(--c-focus); }
input:disabled, select:disabled, textarea:disabled { background: var(--c-bg-sub); color: var(--c-text-sub); cursor: not-allowed; }
input.is-error, select.is-error, textarea.is-error { border-color: var(--c-ng); }
textarea { height: auto; padding: var(--sp-2); resize: vertical; min-height: calc(var(--ctl-h) * 4); line-height: var(--lh-ui); }
textarea.ui-mono { line-height: var(--lh-text); }
input[type=file] { font-size: var(--fs-small); color: var(--c-text-sub); max-width: 100%; }
input[type=file]::file-selector-button { height: var(--ctl-h-sm); padding: 0 var(--sp-2); margin-right: var(--sp-2); border-radius: var(--radius);
  border: var(--line-w) solid var(--c-line-strong); background: var(--c-surface); color: var(--c-text); font: inherit;
  font-size: var(--fs-small); font-weight: var(--fw-strong); cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--c-hover); }
.ui-input--num { width: calc(var(--ctl-h) * 2.2); text-align: right; font-variant-numeric: tabular-nums; }
.ui-input--search { width: calc(var(--ctl-h) * 8); }
.ui-input--date { width: calc(var(--ctl-h) * 4.4); }
.ui-input--fill { width: 100%; }
.ui-input--mono { font-family: var(--f-mono); font-size: var(--fs-small); }
input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--c-primary); flex: none; }
.ui-check { display: inline-flex; align-items: center; gap: var(--sp-2); cursor: pointer; }
.ui-field { display: grid; gap: var(--sp-1); margin-bottom: var(--sp-4); align-content: start; min-width: 0; }
.ui-field--check { display: flex; align-items: center; gap: var(--sp-2); }
.ui-field__label { font-size: var(--fs-small); color: var(--c-text-sub); font-weight: var(--fw-th); }
.ui-field__hint { font-size: var(--fs-small); color: var(--c-text-sub); overflow-wrap: anywhere; }   /* 長い例（27文字のクリックの番号）で欄を押し広げない（QA 33 M1） */
.ui-field__error { font-size: var(--fs-small); color: var(--c-ng); }
.ui-field > input:not([type=checkbox]), .ui-field > select, .ui-field > textarea { width: 100%; }
.ui-filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.ui-filters__label { font-size: var(--fs-small); color: var(--c-text-sub); }
.ui-block > .ui-filters { margin-bottom: var(--sp-3); }
.ui-block--table > .ui-filters { padding: 0 var(--sp-4) var(--sp-3); }
.ui-block--table > .ui-filters:first-child { padding-top: var(--sp-4); }
/* 期間の選び方（5.19・v1.3）：選択と同じ見た目のボタン1つ＋開くメニュー（早見の一覧と「日付を指定」）。右の小さな下向きの印は選択と同じ扱い */
.ui-range { display: inline-flex; align-items: center; gap: var(--sp-2); height: var(--ctl-h); min-width: var(--w-flex-min);
  padding: 0 calc(var(--sp-2) + var(--sp-4)) 0 var(--sp-2); border: var(--line-w) solid var(--c-line-strong); border-radius: var(--radius);
  background: var(--c-surface); color: var(--c-text); font-size: var(--fs-body); white-space: nowrap; cursor: pointer; position: relative;
  font-variant-numeric: tabular-nums; transition: background-color var(--dur) var(--ease); }
.ui-range:hover { background: var(--c-hover); }
.ui-range:focus-visible, .ui-range[aria-expanded=true] { outline: 2px solid var(--c-focus); outline-offset: -1px; border-color: var(--c-focus); }
.ui-range::after { content: ''; position: absolute; right: var(--sp-3); top: 50%; width: 6px; height: 6px; margin-top: -4px;
  border-right: 1.5px solid var(--c-text-sub); border-bottom: 1.5px solid var(--c-text-sub); transform: rotate(45deg); }
.ui-range__key { font-weight: var(--fw-strong); }
.ui-range__dates { font-size: var(--fs-small); color: var(--c-text-sub); }
.ui-range__dates.is-main { font-size: var(--fs-body); color: var(--c-text); font-weight: var(--fw-strong); }
.ui-range__pop { position: fixed; z-index: 20; width: max-content; min-width: calc(var(--w-flex-min) * 1.5); padding: var(--sp-2) 0;
  background: var(--c-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); font-size: var(--fs-body); }
.ui-range__list { display: grid; padding: 0 var(--sp-2); }
.ui-range__opt { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); height: var(--ctl-h); padding: 0 var(--sp-2);
  border: 0; border-radius: var(--radius); background: none; color: var(--c-text); text-align: left; cursor: pointer; font-size: var(--fs-body);
  font-variant-numeric: tabular-nums; }
.ui-range__opt:hover { background: var(--c-hover); }
.ui-range__opt.is-on { background: var(--c-primary-weak); font-weight: var(--fw-strong); }
.ui-range__opt:focus-visible { outline: 2px solid var(--c-focus); outline-offset: -2px; }
.ui-range__opt-d { font-size: var(--fs-small); color: var(--c-text-sub); font-weight: normal; }
.ui-range__custom { display: grid; gap: var(--sp-2); margin-top: var(--sp-2); padding: var(--sp-3) var(--sp-4) var(--sp-1);
  border-top: var(--line-w) solid var(--c-line); }
.ui-range__custom-t { font-size: var(--fs-small); color: var(--c-text-sub); font-weight: var(--fw-th); }
.ui-range__custom.is-on .ui-range__custom-t { color: var(--c-text); font-weight: var(--fw-strong); }
.ui-range__custom-row { display: flex; align-items: center; gap: var(--sp-2); }
.ui-range__custom-act { display: flex; justify-content: flex-end; }
/* 日付の指定：年/月/日の文字入力＋小さなカレンダー（日曜はじまり）。ブラウザ標準の date 入力は使わない（表記がブラウザ任せで mm/dd/yyyy になるため） */
.ui-range__custom { width: min(288px, calc(100vw - 32px)); box-sizing: border-box; grid-template-columns: minmax(0, 1fr); }
.ui-range__custom-row .ui-input--date { flex: 1 1 0; width: auto; min-width: 0; font-variant-numeric: tabular-nums; }
.ui-range__err { font-size: var(--fs-small); color: var(--c-ng); }
.ui-cal { display: grid; gap: var(--sp-1); min-width: 0; }
.ui-cal__head { display: flex; align-items: center; justify-content: space-between; }
.ui-cal__title { font-weight: var(--fw-strong); font-variant-numeric: tabular-nums; }
.ui-cal__nav { width: var(--ctl-h-sm); height: var(--ctl-h-sm); border: 0; border-radius: var(--radius); background: none; color: var(--c-text-sub);
  font-size: var(--fs-body); cursor: pointer; }
.ui-cal__nav:hover { background: var(--c-hover); color: var(--c-text); }
.ui-cal__nav:focus-visible, .ui-cal__day:focus-visible { outline: 2px solid var(--c-focus); outline-offset: -2px; }
.ui-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.ui-cal__wd { display: flex; align-items: center; justify-content: center; height: var(--ctl-h-sm); font-size: var(--fs-small); color: var(--c-text-sub); }
.ui-cal__day { height: var(--ctl-h-sm); border: 0; border-radius: var(--radius); background: none; color: var(--c-text); font-size: var(--fs-body);
  font-variant-numeric: tabular-nums; cursor: pointer; padding: 0; }
.ui-cal__day:hover { background: var(--c-hover); }
.ui-cal__day.is-out { color: var(--c-text-sub); }
.ui-cal__day.is-in { background: var(--c-primary-weak); border-radius: 0; }
.ui-cal__day.is-edge { background: var(--c-primary); color: var(--c-on-primary); font-weight: var(--fw-strong); }
.ui-cal__day.is-today:not(.is-edge) { box-shadow: inset 0 0 0 1px var(--c-line-strong); }
/* C110：日付の印（割合の変更＝白抜きの丸・中身の反映＝塗りのひし形。レポートの推移の印と同じ形）と「この月の印」 */
.ui-cal__day.has-mark { position: relative; }
.ui-cal__mks { position: absolute; left: 0; right: 0; bottom: 1px; display: flex; justify-content: center; gap: 2px; pointer-events: none; }
.ui-cal__mk { display: inline-block; flex: none; width: 5px; height: 5px; border-radius: 50%; box-sizing: border-box;
  border: 1.5px solid var(--c-chart-1); background: var(--c-surface); }
.ui-cal__mk.is-reflect { border-radius: 0; border: 0; background: var(--c-chart-1); transform: rotate(45deg) scale(.9); }
.ui-cal__day.is-edge .ui-cal__mk { border-color: var(--c-on-primary); }
.ui-cal__day.is-edge .ui-cal__mk.is-reflect { background: var(--c-on-primary); }
.ui-range__mks { display: grid; gap: 2px; }
.ui-range__mks[hidden] { display: none; }
.ui-range__mk { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--ctl-h-sm); padding: 0 var(--sp-2); border: 0; border-radius: var(--radius);
  background: none; color: var(--c-text); font-size: var(--fs-small); text-align: left; cursor: pointer; font-variant-numeric: tabular-nums; }
.ui-range__mk:hover { background: var(--c-hover); }
.ui-range__mk:focus-visible { outline: 2px solid var(--c-focus); outline-offset: -2px; }
@media (min-width: 720px) {
  .ui-range__pop { display: flex; align-items: flex-start; }
  .ui-range__list { min-width: calc(var(--w-flex-min) * 1.2); }
  .ui-range__custom { margin-top: 0; border-top: 0; border-left: var(--line-w) solid var(--c-line); }
}
.ui-range__pop { max-height: calc(100vh - 16px); overflow-y: auto; }
.ui-seg { display: inline-flex; border: var(--line-w) solid var(--c-line-strong); border-radius: var(--radius); overflow: hidden; max-width: 100%; flex-wrap: wrap; }
.ui-seg > button { height: calc(var(--ctl-h) - 2 * var(--line-w)); padding: 0 var(--sp-3); border: 0; border-right: var(--line-w) solid var(--c-line);
  background: var(--c-surface); color: var(--c-text-sub); cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur) var(--ease); }
.ui-seg > button:last-child { border-right: 0; }
.ui-seg > button:hover { background: var(--c-hover); }
.ui-seg > button.is-on { background: var(--c-primary-weak); color: var(--c-text); font-weight: var(--fw-strong); }
/* トグル（5.3）：幅 ctl-h-sm×1.6・高さ ×0.8・丸 */
input.ui-toggle { appearance: none; -webkit-appearance: none; position: relative; flex: none; margin: 0; cursor: pointer;
  width: calc(var(--ctl-h-sm) * 1.6); height: calc(var(--ctl-h-sm) * .8); border-radius: 999px; border: 0; background: var(--c-line-strong);
  transition: background-color var(--dur) var(--ease); }
input.ui-toggle::after { content: ''; position: absolute; top: calc(var(--sp-1) / 2); left: calc(var(--sp-1) / 2);
  width: calc(var(--ctl-h-sm) * .8 - var(--sp-1)); height: calc(var(--ctl-h-sm) * .8 - var(--sp-1)); border-radius: 50%;
  background: var(--c-surface); transition: transform var(--dur) var(--ease); }
input.ui-toggle:checked { background: var(--c-primary); }
input.ui-toggle:checked::after { transform: translateX(calc(var(--ctl-h-sm) * .8)); }
input.ui-toggle:disabled { opacity: .45; cursor: not-allowed; }
input.ui-toggle:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 1px; }
.ui-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: var(--row-h);
  border-bottom: var(--line-w) solid var(--c-line); cursor: pointer; }
.ui-toggle-row:last-of-type { border-bottom: 0; }

/* ---------- 表（5.4） ---------- */
.ui-table-wrap { overflow-x: auto; position: relative; }   /* 画面の外へ出る読み上げ用の文字（.ui-sr）が、表の外にはみ出してページを横に動かさない（C94） */
.ui-table { width: 100%; border-collapse: collapse; font-size: var(--fs-table); }
.ui-table th { height: var(--row-h-head); padding: 0 var(--cell-x); text-align: left; font-size: var(--fs-small); font-weight: var(--fw-th);
  color: var(--c-text-sub); white-space: nowrap; border-top: var(--line-w) solid var(--c-line); border-bottom: var(--line-w) solid var(--c-line); }
.ui-block--table > .ui-table-wrap:first-child .ui-table th { border-top: 0; }
.ui-table td { height: var(--row-h); padding: 0 var(--cell-x); white-space: nowrap; vertical-align: middle;
  border-bottom: var(--line-w) solid var(--c-line); line-height: var(--lh-ui); }
.ui-table tbody tr:last-child td { border-bottom: 0; }
.ui-table th:first-child, .ui-table td:first-child { padding-left: var(--sp-4); }
.ui-table th:last-child, .ui-table td:last-child { padding-right: var(--sp-4); }
.ui-table .ui-num { text-align: right; font-variant-numeric: tabular-nums; }
.ui-table td.is-wrap { white-space: normal; min-width: var(--w-flex-min); }
.ui-table td.is-two { padding-top: var(--sp-1); padding-bottom: var(--sp-1); }
.ui-table td.is-sub { color: var(--c-text-sub); }
.ui-table td.is-actions { text-align: right; }
.ui-table td.is-actions > .ui-row { justify-content: flex-end; flex-wrap: nowrap; }
.ui-table tr.is-click { cursor: pointer; }
.ui-table tbody tr.is-click:hover td { background: var(--c-hover); }
.ui-table tr.is-zero td { color: var(--c-text-sub); }
.ui-name { display: block; font-weight: var(--fw-strong); color: var(--c-text); }
a.ui-name { color: var(--c-link); }
.ui-name--plain { font-weight: normal; }
.ui-clip { display: inline-block; max-width: var(--w-clip); overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.ui-sub { display: block; font-size: var(--fs-small); color: var(--c-text-sub); line-height: 1.35; font-weight: var(--fw-th); }

/* LP・案件のアイコン（C50・C53）：名前の左に 20px（印の高さ）・2行目の中は 16px（アイコンの大きさ・4.6）。無ければ頭文字の丸（面は塗らない・枠と補足色の文字） */
.ui-camp { display: inline-flex; align-items: center; gap: var(--sp-2); min-width: 0; max-width: 100%; vertical-align: middle; }
.ui-camp__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-camp-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: var(--badge-h); height: var(--badge-h); border: var(--line-w) solid var(--c-line-strong); border-radius: 50%;
  background: var(--c-surface); color: var(--c-text-sub); font-size: var(--fs-small); font-weight: var(--fw-th); line-height: 1; overflow: hidden; }
.ui-camp-mark.has-img { border: 0; border-radius: var(--radius-badge); background: transparent; }
.ui-camp-mark > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ui-camp--sm { gap: var(--sp-1); }
.ui-camp-mark--sm { width: 16px; height: 16px; }
.ui-sub .ui-camp { vertical-align: top; }
.ui-camp--block { display: flex; max-width: none; }
.ui-camp--block > :last-child { min-width: 0; }
.ui-title-row > .ui-camp-mark { align-self: center; }
.ui-sub.ui-mono { font-weight: var(--fw-th); }
.ui-table tr.is-subtotal td { font-weight: var(--fw-strong); }
.ui-mark { display: inline-block; width: 1em; color: var(--c-text-sub); }
.ui-count { font-size: var(--fs-small); font-weight: var(--fw-th); color: var(--c-text-sub); margin-left: var(--sp-1); }
/* C55：LP の所在「グループ › フォルダ」（1列・パンくずの形・折り返さない）。グループは補足色・フォルダは本文色。長いときは「…」で省略（全文は title） */
.ui-path { display: block; max-width: calc(var(--w-pick-max) * 1.5); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ui-path__root, .ui-path__sep { color: var(--c-text-sub); }
.ui-table td.is-indent { padding-left: calc(var(--sp-4) + var(--sp-4)); }
.ui-table td.is-indent2 { padding-left: calc(var(--sp-4) + var(--sp-4) + var(--sp-5)); }   /* C54：フォルダで見る LP の行（グループ → フォルダ → LP の3段目） */
.ui-table tr.is-total td { background: var(--c-bg-sub); font-weight: var(--fw-strong); border-top: var(--line-w) solid var(--c-line-strong); }
.ui-table--sticky th:first-child, .ui-table--sticky td:first-child { position: sticky; left: 0; z-index: 1; background: var(--c-surface); }
.ui-table--sticky tr.is-total td:first-child { background: var(--c-bg-sub); }
.ui-table--sticky tbody tr.is-click:hover td:first-child { background: var(--c-hover); }
/* C55：LP の一覧は1列目が所在（グループ › フォルダ）・2列目が LP。横に動く幅で固定するのは LP（2列目）。所在は左へ流れて消える */
.ui-table--sticky2 th:nth-child(2), .ui-table--sticky2 td:nth-child(2) { position: sticky; left: 0; z-index: 1; background: var(--c-surface); }
.ui-table--sticky2 tbody tr.is-click:hover td:nth-child(2) { background: var(--c-hover); }
.ui-table-note { border-top: var(--line-w) solid var(--c-line); padding: var(--sp-3) var(--sp-4); font-size: var(--fs-small); color: var(--c-text-sub); }
.ui-table-note + .ui-table-note { border-top: 0; padding-top: 0; }
.ui-table input.ui-input--num { height: var(--ctl-h-sm); }

/* ---------- 印（5.5） ---------- */
.ui-badge { display: inline-flex; align-items: center; gap: var(--sp-1); height: var(--badge-h); padding: 0 var(--sp-2);
  border: var(--line-w) solid var(--c-line-strong); border-radius: var(--radius-badge); background: var(--c-surface); color: var(--c-text);
  font-size: var(--fs-small); font-weight: var(--fw-th); line-height: 1; white-space: nowrap; vertical-align: middle; }
/* 印の先頭は 14px の状態のアイコン（点はやめた・18 の 3.4）。図柄の色は状態の色・文字は本文の色（危ないだけ文字も） */
.ui-badge { padding-left: calc(var(--sp-1) + 2px); }
.ui-badge > .ui-icon { color: var(--c-text-faint); }
.ui-badge.is-ok > .ui-icon { color: var(--c-ok); }
.ui-badge.is-warn > .ui-icon { color: var(--c-warn); }
.ui-badge.is-ng { color: var(--c-ng); }
.ui-badge.is-ng > .ui-icon { color: var(--c-ng); }
.ui-badge.is-info > .ui-icon { color: var(--c-primary); }
.ui-badge--plain, .ui-badge--mini { padding-left: var(--sp-2); }
.ui-badge--mini { height: calc(var(--badge-h) - 2 * var(--line-w)); padding: 0 var(--sp-1); margin-left: var(--sp-1); }
.ui-badge-sub { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-small); color: var(--c-text-sub); }
.ui-state-cell { display: inline-flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.ui-badges { display: inline-flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }

/* ---------- 知らせ・帯・エラー（5.6・5.8） ---------- */
.ui-notice { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3); border-radius: var(--radius);
  border: var(--line-w) solid color-mix(in srgb, currentColor 25%, transparent); }
.ui-notice.is-ng { background: var(--c-ng-bg); color: var(--c-ng); }
.ui-notice.is-warn { background: var(--c-warn-bg); color: var(--c-warn); }
.ui-notice__text { flex: 1; min-width: 0; }
.ui-notice .ui-btn { flex: none; }
.ui-error { padding: var(--sp-3); border-radius: var(--radius); background: var(--c-ng-bg); color: var(--c-ng);
  border: var(--line-w) solid color-mix(in srgb, currentColor 25%, transparent); margin-bottom: var(--sp-3); }
.ui-block > .ui-error:last-child, .ui-page > .ui-error { margin-bottom: 0; }
#toasts { position: fixed; right: var(--sp-5); bottom: var(--sp-5); display: grid; gap: var(--sp-2); z-index: 10; }
.ui-toast { padding: var(--sp-2) var(--sp-3); border-radius: var(--radius); box-shadow: var(--shadow-pop); max-width: 420px;
  background: var(--c-toast); color: var(--c-on-toast); }
.ui-toast__act { margin-left: var(--sp-3); color: inherit; font-weight: var(--fw-strong); text-decoration: underline; white-space: nowrap; }
.ui-toast.is-ng { background: var(--c-ng-bg); color: var(--c-ng); border: var(--line-w) solid color-mix(in srgb, currentColor 25%, transparent); }
.ui-toast.is-warn { background: var(--c-warn-bg); color: var(--c-warn); border: var(--line-w) solid color-mix(in srgb, currentColor 25%, transparent); }
.ui-empty { border: var(--line-w) dashed var(--c-line-strong); background: var(--c-surface); border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-4); text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }
.ui-empty > .ui-icon { color: var(--c-text-sub); }
.ui-empty__text { font-weight: var(--fw-strong); }
.ui-block > .ui-empty:last-child { margin-top: var(--sp-2); }
.ui-block--table > .ui-empty { margin: 0 var(--sp-4) var(--sp-4); }
.ui-loading { display: grid; gap: var(--sp-2); }
.ui-loading__bar { height: calc(var(--row-h) - var(--sp-3)); border-radius: var(--radius); background: var(--c-line);
  animation: ui-pulse 1.4s var(--ease) infinite alternate; }
.ui-loading__bar:nth-child(1) { width: 100%; }
.ui-loading__bar:nth-child(2) { width: 86%; }
.ui-loading__bar:nth-child(3) { width: 64%; }
@keyframes ui-pulse { from { opacity: 1; } to { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .ui-loading__bar { animation: none; } }

/* ---------- ダイアログ（5.7）：長いときは本文だけスクロール・ボタンの行は下に固定 ---------- */
dialog { width: min(480px, 92vw); max-height: calc(100vh - 2 * var(--sp-6)); padding: 0; border: var(--line-w) solid var(--c-line);
  border-radius: var(--radius-lg); background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow-pop); overflow: hidden; }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: var(--c-overlay); }
.ui-dialog__form { margin: 0; display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 2 * var(--sp-6)); }
.ui-dialog__head { padding: var(--sp-5) var(--sp-5) 0; flex: none; }
.ui-dialog__body { padding: 0 var(--sp-5); overflow-y: auto; min-height: 0; flex: 1 1 auto; }
.ui-dialog__title { font-size: var(--fs-section); font-weight: var(--fw-section); line-height: var(--lh-tight); font-feature-settings: "palt";
  margin-bottom: var(--sp-2); }
.ui-dialog__text { color: var(--c-text-sub); line-height: var(--lh-text); margin-bottom: var(--sp-4); }
.ui-dialog__actions { display: flex; justify-content: flex-end; gap: var(--sp-2); flex: none; padding: var(--sp-3) var(--sp-5);
  border-top: var(--line-w) solid var(--c-line); }
.ui-dialog__body:empty { display: none; }
.ui-dialog__body > .ui-error { margin-bottom: var(--sp-4); }
.ui-dialog__body > .ui-field:last-child { margin-bottom: var(--sp-4); }
.ui-dialog__body > :last-child:not(.ui-field) { margin-bottom: var(--sp-4); }
.ui-copy { display: flex; gap: var(--sp-2); align-items: center; margin-bottom: var(--sp-4); }
.ui-copy > input { flex: 1; font-family: var(--f-mono); font-size: var(--fs-small); }
/* ターミナルに貼るコマンド（secretDialog の command）：欄は幅いっぱいで折り返して全部見せる（行は shell.js が中身に合わせて足す）・
   コピーのボタンは欄の下の右 */
.ui-copy--cmd { flex-wrap: wrap; justify-content: flex-end; }
.ui-copy--cmd > textarea { flex: 1 1 100%; font-family: var(--f-mono); font-size: var(--fs-small); resize: none; word-break: break-all; }
.ui-cmd__label { margin: 0 0 var(--sp-2); font-weight: 600; }
.ui-lp-pick { display: grid; gap: var(--sp-2); }

/* ---------- 詳細（5.9）・配信割合（5.10） ---------- */
.ui-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: var(--sp-5); row-gap: var(--sp-2); align-items: baseline; }
.ui-kv > dt { font-size: var(--fs-small); color: var(--c-text-sub); }
.ui-kv > dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ui-kv .ui-mono { word-break: break-all; }
.ui-bar { display: flex; align-items: center; gap: var(--sp-2); }
.ui-bar__track { flex: 1; min-width: 6em; height: 8px; border-radius: 999px; background: var(--c-primary-weak); overflow: hidden; }
.ui-bar__fill { height: 100%; border-radius: 999px; background: var(--c-primary); }
.ui-bar__pct { width: 4em; text-align: right; font-variant-numeric: tabular-nums; }
.ui-bar.is-zero .ui-bar__pct { color: var(--c-text-sub); }
.ui-weight-unit { color: var(--c-text-sub); }

/* ---------- プレビュー・見比べ ---------- */
.ui-frame-stage { overflow: auto; display: flex; justify-content: center; }
.ui-frame-stage iframe { border: var(--line-w) solid var(--c-line-strong); background: var(--c-surface); height: var(--preview-h); max-width: 100%; }
.ui-w375 { width: 375px; } .ui-w414 { width: 414px; } .ui-w768 { width: 768px; } .ui-w1280 { width: 1280px; }
.ui-url { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
.ui-url > input { flex: 1; min-width: var(--w-flex-min); font-family: var(--f-mono); font-size: var(--fs-small); }
.ui-list { margin: 0; padding-left: var(--sp-4); }
.ui-list li + li { margin-top: var(--sp-1); }
.ui-list.is-sub { font-size: var(--fs-small); color: var(--c-text-sub); }
.ui-pane { position: relative; max-width: 100%; overflow: hidden; border: var(--line-w) solid var(--c-line-strong); background: var(--c-surface);
  border-radius: var(--radius); }
.ui-pane iframe { position: absolute; left: 0; top: 0; border: 0; background: var(--c-surface); transform-origin: 0 0; }
.ui-pane__label { font-size: var(--fs-small); color: var(--c-text-sub); margin-bottom: var(--sp-1); }
/* 4つの幅（5.15）：1枚の面の中に横並び・縦の線で区切る */
.ui-widths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: var(--line-w) solid var(--c-line); margin: 0 calc(-1 * var(--sp-5)) var(--sp-4); }
.ui-widths__item { display: grid; justify-items: start; gap: var(--sp-1); padding: var(--sp-3) var(--sp-5); border: 0;
  border-right: var(--line-w) solid var(--c-line); background: var(--c-surface); text-align: left; cursor: pointer;
  transition: background-color var(--dur) var(--ease); }
.ui-widths__item:last-child { border-right: 0; }
.ui-widths__item:hover { background: var(--c-hover); }
.ui-widths__item.is-on { background: var(--c-primary-weak); }
.ui-widths__num { font-weight: var(--fw-strong); font-variant-numeric: tabular-nums; }
.ui-widths__name { font-size: var(--fs-small); color: var(--c-text-sub); }
.ui-check-rows { display: grid; }
.ui-check-row { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-2) 0; border-bottom: var(--line-w) solid var(--c-line); }
.ui-check-row:last-child { border-bottom: 0; }
.ui-check-row > .ui-badge { width: 8.5em; flex: none; }
.ui-check-row__body { min-width: 0; }
/* 手順の面（docs/design/16）：表の面の中に置く手順の一覧は、面の端から余白を取る */
.ui-steps { padding: var(--sp-3) var(--sp-4); border-bottom: var(--line-w) solid var(--c-line); }
.ui-block--table > .ui-steps { border-top: var(--line-w) solid var(--c-line); margin-top: var(--sp-3); }
.ui-group-title { font-size: var(--fs-small); font-weight: var(--fw-th); color: var(--c-text-sub); margin: var(--sp-4) 0 var(--sp-1); }
.ui-group-title:first-child { margin-top: 0; }
details { margin-top: var(--sp-2); }
summary { cursor: pointer; color: var(--c-text-sub); font-size: var(--fs-small); }

/* ---------- グラフ（5.11） ---------- */
.ui-chart { display: block; width: 100%; height: 200px; overflow: visible; }
.ui-chart__grid { stroke: var(--c-line); stroke-width: 1; }
.ui-chart__tick { fill: var(--c-text-sub); font-size: var(--fs-small); font-family: var(--f-ui); font-variant-numeric: tabular-nums; }
.ui-chart__line { fill: none; stroke: var(--c-chart-1); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ui-chart__line.is-partial { stroke-dasharray: 3 4; }
.ui-chart__line.is-sub { stroke: var(--c-chart-2); }
.ui-chart__hit { fill: transparent; }
.ui-chart__dot { fill: var(--c-surface); stroke: var(--c-chart-1); stroke-width: 2; }
.ui-chart__mark-reflect { fill: var(--c-chart-1); }   /* 中身の反映（C85③）：塗りのひし形。割合の変更＝白抜きの丸 */
.ui-legend { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-3); font-size: var(--fs-small); color: var(--c-text-sub); }
.ui-legend__item { display: inline-flex; align-items: center; gap: var(--sp-2); }
.ui-legend__line { width: 14px; height: 2px; background: var(--c-chart-1); }
.ui-legend__line.is-sub { background: var(--c-chart-2); }
.ui-legend__line.is-partial { background: repeating-linear-gradient(90deg, var(--c-chart-1) 0 3px, transparent 3px 6px); }

/* ---------- ヒートマップ v2（5.12・2026-10-01）：道具の列＋キャンバス（LP を実寸で1枚・中だけ縦に動く）＋右の列 ----------
   熱の6段（--c-heat-1〜6）は色の層（canvas）と凡例の帯だけに使う（DESIGN 4.1 の例外）。高さは JS が画面に合わせて入れる */
.hm { display: flex; flex-direction: column; min-height: 0; background: var(--c-surface); border: var(--line-w) solid var(--c-line);
  border-radius: var(--radius-lg); overflow: hidden; }
/* 2026-10-21（設計25 段6a）：案C の形。道具の列（.hm-tb）＋左の数字の表（.hm-tbl）＋右の LP（.hm-lpcol）。狭い幅は表／LP の切り替え（.v-tbl・.v-lp）。
   色・字・余白は tokens.css の値だけ。数字で決まる幅・位置（メーターの％・色の層）は JS が style に入れる */
.hm-tb { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); padding: var(--sp-2) var(--sp-4);
  border-bottom: var(--line-w) solid var(--c-line); background: var(--c-surface); }
.hm-tb__sp { flex: 1; }
.hm-tb__range { display: inline-flex; min-width: 0; }
.hm-tb__ver { height: var(--ctl-h-sm); max-width: var(--w-pick-max); min-width: 0; font-size: var(--fs-small); font-weight: var(--fw-strong); }
.hm-tb__view { display: none; }
.hm-sync { gap: var(--sp-2); font-size: var(--fs-body); white-space: nowrap; }
.hm-nb { display: inline-block; white-space: nowrap; }
/* 項目名に乗せる説明（LPS.tip）：項目名そのものが押せる・Tab で入れる。「?」の印は出さない（C100） */
.ui-qm { cursor: help; text-underline-offset: 3px; text-decoration-thickness: var(--line-w); }
.ui-qm:hover, .ui-qm[aria-expanded=true], .ui-qm:focus-visible { text-decoration: underline dotted; }
.ui-qm:focus { outline: none; }
.ui-qm:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; border-radius: var(--radius-badge); }
.ui-qmtip { position: fixed; z-index: 70; max-width: min(272px, calc(100vw - 16px)); padding: var(--sp-2) var(--sp-3); border-radius: var(--radius);
  background: var(--c-toast); color: var(--c-on-toast); font-size: var(--fs-tool); line-height: 1.6; box-shadow: var(--shadow-pop); pointer-events: none; }
.ui-qmtip[hidden] { display: none; }
.ui-qmtip > b { display: block; font-size: var(--fs-small); font-weight: var(--fw-strong); }
/* LP の上の帯：表を開く・クリックの絞り込み・凡例・LP の大きさ */
.hm-lbar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); padding: var(--sp-2) var(--sp-4);
  background: var(--c-surface); border-bottom: var(--line-w) solid var(--c-line); }
.hm-lbar__item { display: inline-flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.hm-legend { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-small); color: var(--c-text-sub); white-space: nowrap; }
.hm-legend__band { display: block; width: var(--heat-legend-w); height: 8px; border-radius: var(--radius-badge);
  background: linear-gradient(90deg, var(--c-heat-1), var(--c-heat-2), var(--c-heat-3), var(--c-heat-4), var(--c-heat-5), var(--c-heat-6)); }
.hm-zm { display: inline-flex; align-items: center; height: var(--ctl-h-sm); margin-left: auto; flex: none; border: var(--line-w) solid var(--c-line-strong);
  border-radius: var(--radius); background: var(--c-surface); }
.hm-zm__b { height: 100%; min-width: var(--ctl-h-sm); padding: 0 var(--sp-2); border: 0; background: none; color: var(--c-text); font-size: var(--fs-section);
  line-height: 1; cursor: pointer; font-variant-numeric: tabular-nums; }
.hm-zm__b:hover:not(:disabled) { background: var(--c-hover); }
.hm-zm__b:disabled { color: var(--c-line-strong); cursor: default; }
.hm-zm__b:focus-visible { outline: 2px solid var(--c-focus); outline-offset: -2px; }
.hm-zm__v { min-width: 3.4em; font-size: var(--fs-tool); font-weight: var(--fw-strong); border-left: var(--line-w) solid var(--c-line); border-right: var(--line-w) solid var(--c-line); }
.hm-body { flex: 1; min-height: 0; display: flex; position: relative; }
/* 左の数字の表（A/B の札・指標の表・これまでの一覧）。幅は画面の 26%（352〜440px） */
.hm-tbl { flex: none; width: clamp(352px, 26%, 440px); border-right: var(--line-w) solid var(--c-line); display: flex; flex-direction: column; min-height: 0;
  background: var(--c-surface); }
.hm.is-tbl-off .hm-tbl { display: none; }
.hm-tbl__h { flex: none; display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-3) var(--sp-2); }
.hm-tbl__sp { flex: 1; }
.hm-tbl__h h3 { margin: 0; font-size: var(--fs-body); font-weight: var(--fw-section); line-height: var(--lh-tight); white-space: nowrap; }
.hm-tbl__s { flex: 1; min-height: 0; overflow: auto; }
.hm-lpcol { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--c-heat-canvas); }
.hm-lpcol > .hm-canvas { flex: 1; min-height: 0; }
/* 段6b（設計25 §5）：LP の右の3種の縮小・色の濃さ・区画の表・札。色・字・余白は tokens の値だけ（位置と大きさは JS が style に入れる） */
.hm-lpbody { flex: 1; min-height: 0; display: flex; }
.hm-lpbody > .hm-canvas { flex: 1; min-height: 0; }
.hm-lanes { flex: none; display: flex; gap: var(--sp-1); padding: var(--sp-3) var(--sp-2); border-left: var(--line-w) solid var(--c-line);
  background: var(--c-surface); align-items: flex-start; }
.hm-lanes[hidden] { display: none; }
.hm-lane { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); padding: 2px; border: 0; border-radius: var(--radius-badge);
  background: none; cursor: pointer; color: var(--c-text-sub); }
.hm-lane:hover { background: var(--c-hover); }
.hm-lane:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 1px; }
.hm-lane__box { position: relative; display: block; outline: var(--line-w) solid var(--c-line-strong); }
.hm-lane.is-on .hm-lane__box { outline: 2px solid var(--c-text); }
.hm-lane.is-on { color: var(--c-text); font-weight: var(--fw-strong); }
.hm-lane__c { display: block; width: 100%; height: 100%; }
.hm-lane__vp { position: absolute; left: -2px; right: -2px; border: 1.5px solid var(--c-surface); outline: var(--line-w) solid var(--c-text); pointer-events: none; }
.hm-lane__t { font-size: var(--fs-tool-sm); line-height: 1; white-space: nowrap; }
.hm-op { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-small); color: var(--c-text-sub); white-space: nowrap; }
.hm-op__in { width: 88px; accent-color: var(--c-primary); }
.hm-op__v { min-width: 3em; font-variant-numeric: tabular-nums; color: var(--c-text); }
.hm-jsnote { margin: 0; font-size: var(--fs-small); color: var(--c-text-sub); }
.hm-badge { display: inline-block; margin-left: var(--sp-1); padding: 0 var(--sp-1); border-radius: var(--radius-badge); background: var(--c-warn-bg);
  color: var(--c-warn); font-size: var(--fs-tool-sm); font-weight: var(--fw-strong); line-height: var(--lh-ui); white-space: nowrap; vertical-align: middle; }
.hm-tb__flt { height: var(--ctl-h-sm); max-width: 14em; min-width: 0; font-size: var(--fs-small); }
.hm-tb__flt.is-on { font-weight: var(--fw-strong); border-color: var(--c-text); }
.hm-tb__pbox { display: inline-flex; align-items: center; min-width: 0; }
.hm-rt { position: absolute; left: 0; z-index: 2; transform: translateY(-50%); padding: 0 var(--sp-1); border-radius: 0 var(--radius-badge) var(--radius-badge) 0;
  background: var(--c-surface); color: var(--c-text); border: var(--line-w) solid var(--c-line-strong); border-left: 0; font-size: var(--fs-tool-sm);
  line-height: var(--lh-ui); white-space: nowrap; font-variant-numeric: tabular-nums; opacity: .92; }
.hm-bd { position: absolute; z-index: 2; transform: translate(-50%, -50%); padding: 0 var(--sp-1); border-radius: var(--radius-badge); background: var(--c-text);
  color: var(--c-on-toast); font-size: var(--fs-tool-sm); font-weight: var(--fw-strong); line-height: var(--lh-ui); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hm-bd.is-top { transform: translate(0, -50%); }
.hm-fnote { padding: 0 var(--sp-3); }
.hm-blk__h { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.hm-blk__h h3 { margin: 0; }
.hm-blk__h .hm-seg-sm { margin-bottom: 0; }
.hm-blk__s { overflow-x: auto; margin: 0 calc(-1 * var(--sp-3)); padding: 0 var(--sp-3); }
.hm-blk__t { width: 100%; border-collapse: collapse; font-size: var(--fs-tool); font-variant-numeric: tabular-nums; }
/* QA 86 L1：1280・1440 の左の面（約340px）で「申込み」の列まで入るように、数の列の左右の余白を詰め、名前の列を短く */
.hm-blk__t th, .hm-blk__t td { padding: var(--sp-1) 3px; border-bottom: var(--line-w) solid var(--c-line); text-align: right; white-space: nowrap; }
.hm-blk__t thead th { font-weight: var(--fw-strong); color: var(--c-text-sub); font-size: var(--fs-tool-sm); vertical-align: bottom; }
.hm-blk__t thead th:first-child, .hm-blk__t tbody th { text-align: left; padding-left: 0; }
.hm-blk__t tbody th { font-weight: var(--fw-strong); max-width: 7em; overflow: hidden; text-overflow: ellipsis; }
.hm-blk__prep { margin: 0 0 var(--sp-1); }
.hm-blk__r { cursor: pointer; }
.hm-blk__r:hover { background: var(--c-hover); }
.hm-blk__r:focus-visible { outline: 2px solid var(--c-focus); outline-offset: -2px; }
.hm-blk__r.is-on { background: var(--c-primary-weak); }
.hm-blk__r.is-el th { font-weight: normal; padding-left: var(--sp-3); }
.hm-blk__name { display: block; overflow: hidden; text-overflow: ellipsis; }
.hm-blk__sub { display: block; font-size: var(--fs-tool-sm); color: var(--c-text-sub); font-weight: normal; }
.hm-sec h3.hm-blk__fx { margin-top: var(--sp-4); }
.hm-blk__fl { list-style: none; margin: 0; padding: 0; font-size: var(--fs-tool); }
.hm-blk__fl > li { display: flex; justify-content: space-between; gap: var(--sp-2); padding: var(--sp-1) 0; border-bottom: var(--line-w) solid var(--c-line); }
.hm-blk__v { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--c-text-sub); }
.hm-vmini { font-size: var(--fs-tool-sm); font-weight: var(--fw-page); line-height: calc(var(--badge-h) - 2px); padding: 0 var(--sp-2); border-radius: var(--sp-2);
  white-space: nowrap; background: var(--c-bg); color: var(--c-text-sub); }
.hm-vmini[hidden] { display: none; }
.hm-vmini.is-win { background: var(--c-ok-bg); color: var(--c-ok); }
.hm-vmini.is-wait { background: var(--c-primary-weak); color: var(--c-primary); }
.hm-vmini.is-few { background: var(--c-warn-bg); color: var(--c-warn); }
/* A/B の札（d2_hm_verdict・C110）：はっきり＝緑・まだ言えない＝青・件数が少ない＝黄・比べられない＝灰 */
.hm-vd { margin: 0 var(--sp-3) var(--sp-3); border: var(--line-w) solid var(--c-line-strong); border-radius: var(--radius-lg); padding: var(--sp-2) var(--sp-3);
  background: var(--c-surface); font-size: var(--fs-small); line-height: var(--lh-ui); }
.hm-vd__h { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); }
.hm-vd__t { font-size: var(--fs-section); line-height: var(--lh-ui); font-weight: var(--fw-page); padding-right: var(--sp-2); }
.hm-vd__m { margin-top: var(--sp-1); font-size: var(--fs-tool); line-height: 1.6; color: var(--c-text-sub); }
.hm-vd__m b { color: var(--c-text); font-weight: var(--fw-strong); }
.hm-vd__m.is-week { color: var(--c-text); }
.hm-vd__w { margin-top: var(--sp-2); }
.hm-vd__w .ui-notice { margin: 0; }
.hm-vd__w > .ui-btn { margin-top: var(--sp-2); }
.hm-vd.is-win { background: var(--c-ok-bg); border-color: color-mix(in srgb, var(--c-ok) 35%, var(--c-surface)); }
.hm-vd.is-win .hm-vd__t { color: var(--c-ok); }
.hm-vd.is-wait { background: var(--c-primary-weak); border-color: color-mix(in srgb, var(--c-primary) 35%, var(--c-surface)); }
.hm-vd.is-few { background: var(--c-warn-bg); border-color: color-mix(in srgb, var(--c-warn) 35%, var(--c-surface)); }
.hm-vd.is-few .hm-vd__t { color: var(--c-warn); }
.hm-vd.is-none { background: var(--c-bg); }
/* バージョンの印（A・B）：表の見出しと LP の列の見出しで同じ色 */
.hm-vk { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--badge-h); height: var(--badge-h); border-radius: 50%;
  color: var(--c-on-primary); font-weight: var(--fw-page); font-size: var(--fs-tool); line-height: 1; }
.hm-vk.is-a { background: var(--c-ver-a); }
.hm-vk.is-b { background: var(--c-ver-b); }
/* 指標の表（d2_hm_metrics）：1項目＝1行。数字の列は中身の幅まで詰め、項目名の列が残りを使う。良い方の数字に緑の覆い */
.hm-sm { position: relative; padding: 0 var(--sp-3) var(--sp-3); border-bottom: var(--line-w) solid var(--c-line); }
.hm-cm { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-small); }
.hm-cm col.n { width: 1%; }
.hm-cm th { padding: var(--sp-1); font-size: var(--fs-tool); font-weight: var(--fw-th); color: var(--c-text-sub); text-align: right; background: var(--c-bg);
  border-bottom: var(--line-w) solid var(--c-line); white-space: nowrap; }
.hm-cm thead th { position: sticky; top: 0; z-index: 6; border-top: var(--line-w) solid var(--c-line); box-shadow: 0 var(--line-w) 0 var(--c-line); }
.hm-cm thead th:first-child { text-align: left; }
.hm-hd0 { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--badge-h); }
.hm-vh { display: inline-flex; align-items: center; gap: var(--sp-1); line-height: var(--badge-h); }
.hm-pkb { display: inline-flex; align-items: center; gap: var(--sp-1); height: var(--badge-h); padding: 0 var(--sp-1); border: 0; border-radius: var(--radius-badge);
  background: none; color: var(--c-text-sub); font-size: var(--fs-tool); font-weight: var(--fw-th); cursor: pointer; }
.hm-pkb::after { content: ""; border: 4px solid transparent; border-top-color: currentColor; margin-top: 4px; }
.hm-pkb:hover, .hm-pkb.is-on { background: var(--c-hover-icon); color: var(--c-text); }
.hm-pkb:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 1px; }
.hm-cm td, .hm-cm tbody th { padding: var(--sp-1); border-bottom: var(--line-w) solid var(--c-line); text-align: right; font-size: var(--fs-small); line-height: var(--badge-h);
  color: var(--c-text); font-variant-numeric: tabular-nums; vertical-align: middle; background: var(--c-surface); white-space: nowrap; }
.hm-cm tbody th { text-align: left; font-weight: var(--fw-strong); white-space: normal; padding-left: 2px; }
.hm-cm thead th:first-child { padding-left: 2px; }
.hm-sub { display: block; font-size: var(--fs-tool-sm); font-weight: normal; line-height: 1.3; color: var(--c-text-sub); }
.hm-cm td.is-good { color: var(--c-ok); background: var(--c-ok-bg); font-weight: var(--fw-page); }
.hm-d { font-weight: var(--fw-page); }
.hm-d.is-up { color: var(--c-ok); }
.hm-d.is-dn { color: var(--c-ng); }
.hm-d.is-eq, .hm-d.is-nt { color: var(--c-text-sub); font-weight: normal; }
.hm-cm tr.hm-sep th { padding: var(--sp-3) var(--sp-1) var(--sp-1); background: var(--c-surface); border-bottom: var(--line-w) solid var(--c-line-strong);
  color: var(--c-text-sub); font-size: var(--fs-tool-sm); font-weight: var(--fw-strong); text-align: left; }
.hm-cm tr.hm-empty td { text-align: left; color: var(--c-text-sub); white-space: normal; padding: var(--sp-3) var(--sp-1); }
.hm-cm tr.is-hero th, .hm-cm tr.is-hero td { background: var(--c-primary-weak); border-bottom-color: var(--c-line-strong); }
.hm-cm tr.is-hero td { font-size: var(--fs-body); font-weight: var(--fw-page); }
.hm-cm tr.is-hero td.is-good { background: var(--c-ok-bg); }
.hm-sm__note { margin: var(--sp-2) 0 0; font-size: var(--fs-small); color: var(--c-text-sub); }
/* 「項目」のメニュー（選んだ項目はブラウザに覚える） */
.hm-pk { position: absolute; z-index: 8; left: var(--sp-3); right: var(--sp-3); top: calc(var(--row-h-head) + var(--sp-1)); padding: var(--sp-2) var(--sp-3);
  border: var(--line-w) solid var(--c-line-strong); border-radius: var(--radius-lg); background: var(--c-surface); box-shadow: var(--shadow-pop); }
.hm-pk__h { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-small); font-weight: var(--fw-strong); }
.hm-pk__sp { flex: 1; }
.hm-pk__g { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); margin-top: var(--sp-2); }
.hm-pk__s { flex: none; width: 100%; margin-top: var(--sp-1); font-size: var(--fs-tool); color: var(--c-text-sub); }
.hm-pk__i { display: inline-flex; align-items: center; gap: var(--sp-1); min-height: var(--ctl-h-sm); padding: 0 var(--sp-2) 0 var(--sp-2); border: var(--line-w) solid var(--c-line-strong);
  border-radius: var(--radius); font-size: var(--fs-small); white-space: nowrap; background: var(--c-surface); cursor: pointer; }
.hm-pk__i:has(input:checked) { background: var(--c-primary-weak); border-color: color-mix(in srgb, var(--c-primary) 45%, var(--c-surface)); }
.hm-pk__i:has(input:focus-visible) { outline: 2px solid var(--c-focus); outline-offset: 1px; }
.hm-pk__i input { margin: 0; accent-color: var(--c-primary); }
.hm-pk__i small { color: var(--c-text-sub); font-size: var(--fs-tool); }
.hm-pk__m { margin-top: var(--sp-2); font-size: var(--fs-tool); color: var(--c-text-sub); }
.hm-canvas { flex: 1; min-width: 0; position: relative; background: var(--c-heat-canvas); overflow: auto; }
.hm-canvas.is-split { overflow: hidden; display: flex; flex-direction: column; }
.hm-notes { display: grid; gap: var(--sp-2); padding: var(--sp-3) var(--sp-5) 0; }
.hm-cols { display: flex; justify-content: center; align-items: flex-start; gap: var(--sp-5); padding: 0 var(--sp-5) var(--sp-6);
  min-width: min-content; }
.hm-canvas.is-split > .hm-cols { flex: 1; min-height: 0; padding-bottom: 0; }
.hm-cols { position: relative; }
.hm-col { flex: none; position: relative; }
.hm-col.is-off { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; }
.hm-canvas.is-split .hm-col { height: 100%; overflow-y: auto; overflow-x: hidden; padding-bottom: var(--sp-6); }
.hm-colhead { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: var(--sp-2); min-width: 0;
  padding: var(--sp-3) 0 var(--sp-2); background: var(--c-heat-canvas); }
.hm-colhead__sel { height: var(--ctl-h-sm); font-weight: var(--fw-strong); max-width: var(--w-pick-max); min-width: 0; }
.hm-colhead__n { font-size: var(--fs-small); color: var(--c-text-sub); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hm-colhead__n.is-few { color: var(--c-warn); }
.hm-colhead__x { margin-left: auto; }
.hm-page { position: relative; overflow: hidden; background: var(--c-surface); outline: var(--line-w) solid var(--c-line-strong);
  border-radius: var(--radius-badge); isolation: isolate; }
.hm-page iframe { position: absolute; left: 0; top: 0; border: 0; background: var(--c-surface); transform-origin: 0 0; pointer-events: none; }
.hm-heat { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
/* 熟読・到達の色の層は乗算で重ねる（LP の文字と地の明るさの比を保つ・v1.3。白い地の上の見え方は今までと同じ） */
.hm-heat.is-mult { mix-blend-mode: multiply; }
.hm-layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.hm-layer--hover { z-index: 5; }
.hm-note { margin-top: var(--sp-2); font-size: var(--fs-small); color: var(--c-text-sub); }
/* 目印：到達の「◯% の人がここまで」（線 1.5px・札は本文色の地に白字）・最初の画面の下の端（点線・札は白地に黒い縁） */
.hm-mark { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px solid var(--c-text); z-index: 2; }
.hm-mark > span { position: absolute; right: var(--sp-2); top: 0; transform: translateY(-50%); padding: 0 var(--sp-2);
  border-radius: var(--radius-badge); background: var(--c-text); color: var(--c-on-toast); font-size: var(--fs-small);
  font-weight: var(--fw-strong); line-height: var(--lh-ui); white-space: nowrap; }
.hm-mark.is-fold { border-top-style: dashed; }
.hm-mark.is-fold > span { background: var(--c-surface); color: var(--c-text); border: var(--line-w) solid var(--c-text); }
/* 熟読の見出しごとの札（見出しの上端の左） */
.hm-tag { position: absolute; left: var(--sp-2); z-index: 2; transform: translateY(calc(-100% - var(--sp-1))); padding: 0 var(--sp-2);
  border-radius: var(--radius-badge); background: var(--c-text); color: var(--c-on-toast); font-size: var(--fs-small);
  font-weight: var(--fw-strong); line-height: var(--lh-ui); white-space: nowrap; }
/* クリックの番号の札（22px の白い丸・1.5px の黒い縁）と、選んだ部品の枠（白 2px・外に黒 1px） */
.hm-pin { position: absolute; z-index: 3; transform: translate(-50%, -50%); min-width: 22px; height: 22px; padding: 0 var(--sp-1);
  border-radius: 999px; border: 1.5px solid var(--c-text); background: var(--c-surface); color: var(--c-text); font-size: var(--fs-small);
  font-weight: var(--fw-strong); line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  pointer-events: auto; font-variant-numeric: tabular-nums; }
.hm-pin:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 1px; }
/* 段6c：訪問者の動線（d2_flow.js）。時系列で選んだクリックの位置の印 */
.hm-fmark { position: absolute; z-index: 4; width: 18px; height: 18px; transform: translate(-50%, -50%); border-radius: 999px;
  border: 3px solid var(--c-primary); background: var(--c-surface); pointer-events: none; }
.fl { padding: var(--sp-2) var(--sp-3) var(--sp-4); }
.fl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.fl-sub { font-size: var(--fs-small); color: var(--c-text-sub); }
.fl-chk { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-small); }
.fl-list { display: flex; flex-direction: column; margin: 0 calc(-1 * var(--sp-2)); }
.fl-row { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: var(--sp-2); border: 0; border-radius: var(--radius);
  background: none; text-align: left; cursor: pointer; }
.fl-row:hover, .fl-click:hover { background: var(--c-hover); }
.fl-row__t { display: flex; align-items: center; gap: var(--sp-2); }
.fl-visit { margin-top: var(--sp-2); }
.fl-visit h4 { margin: 0 0 var(--sp-1); font-size: var(--fs-small); color: var(--c-text-sub); }
.fl-gap { margin: var(--sp-3) 0 0; font-size: var(--fs-small); color: var(--c-text-sub); text-align: center; border-top: 1px dashed var(--c-line); padding-top: var(--sp-1); }
.fl-v { padding: var(--sp-2); border: 1px solid var(--c-line); border-radius: var(--radius); margin-bottom: var(--sp-2); }
.fl-v.is-focus { border-color: var(--c-primary); }
.fl-v__h { display: flex; align-items: center; gap: var(--sp-2); }
.fl-v p { margin: 2px 0; }
.fl-depth { display: flex; align-items: center; gap: var(--sp-2); margin: 2px 0; }
.fl-spark { width: 120px; height: 28px; flex: none; }
.fl-spark polyline { fill: none; stroke: var(--c-primary); stroke-width: 1.5; }
.fl-clicks { display: flex; flex-direction: column; margin-top: var(--sp-1); }
.fl-click, .fl-ev { display: flex; align-items: center; gap: var(--sp-2); width: 100%; padding: 2px var(--sp-1); border: 0;
  border-radius: var(--radius); background: none; text-align: left; font-size: var(--fs-small); }
.fl-click { cursor: pointer; }
.fl-click.is-on { background: var(--c-primary-weak); }
.fl-click__n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-t { flex: none; color: var(--c-text-sub); font-variant-numeric: tabular-nums; }
/* 段6c 後半：再生（d2_replay.js・試作 docs/design/proto/replay の写し）。道具の列（.rp-tb）＋列（版ごと・.rp-col）＋右の欄（.rp-dr）＋再生の帯（.rp-pb）。
   色・字・余白は tokens の値だけ。人の色・位置・大きさは JS が style に入れる */
.rp { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.rp-grp { display: inline-flex; align-items: center; gap: var(--sp-1); flex: none; }
.rp-lbl { font-size: var(--fs-small); color: var(--c-text-faint); white-space: nowrap; }
.rp-zm { margin-left: 0; }
.rp-body { flex: 1; min-height: 0; display: flex; position: relative; }
.rp-cols { flex: 1; min-width: 0; min-height: 0; display: flex; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3) 0; background: var(--c-heat-canvas); }
.rp-empty { margin: var(--sp-6) auto; color: var(--c-text-sub); font-size: var(--fs-small); }
.rp-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.rp-colh { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 2px var(--sp-2); padding: 0 2px var(--sp-2); min-height: 30px; font-size: var(--fs-small); }
.rp-nm { font-weight: var(--fw-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 16em; }
.rp-tot { color: var(--c-text-sub); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rp-flt { font-size: 12px; color: var(--c-text-sub); border: 1px solid var(--c-line); border-radius: 999px; padding: 2px 8px; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.rp-nojs { font-size: var(--fs-small); line-height: var(--lh-ui); padding: 0 var(--sp-1); border-radius: var(--radius-badge); background: var(--c-warn-bg); color: var(--c-warn); white-space: nowrap; }
.rp-lv { display: inline-flex; flex-wrap: wrap; gap: var(--sp-2); margin-left: auto; color: var(--c-text-sub); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rp-lv b { color: var(--c-text); font-weight: var(--fw-strong); }
.rp-lv .is-ok b { color: var(--c-ok); }
.rp-colb { flex: 1; min-height: 0; display: flex; gap: var(--sp-2); position: relative; justify-content: center; }
.rp-scr { flex: 1; min-width: 0; overflow: auto; position: relative; scrollbar-gutter: stable; overscroll-behavior: contain; border-radius: var(--radius-badge) var(--radius-badge) 0 0; }
.rp-scr.is-hit { cursor: pointer; }
.rp-scr:focus-visible { outline: 2px solid var(--c-focus); outline-offset: -2px; }
.rp-pg { position: relative; margin: 0 auto; overflow: hidden; background: var(--c-surface); outline: var(--line-w) solid var(--c-line-strong); }
.rp-pg iframe { position: absolute; left: 0; top: 0; border: 0; background: var(--c-surface); transform-origin: 0 0; pointer-events: none; }
.rp-ov { position: absolute; left: 0; top: 0; pointer-events: none; }
.rp-rail { flex: none; position: relative; align-self: flex-start; overflow: hidden; background: var(--c-surface); border-radius: var(--radius-badge);
  outline: var(--line-w) solid var(--c-line-strong); cursor: ns-resize; touch-action: none; }
.rp-rail canvas { position: absolute; left: 0; top: 0; pointer-events: none; }
.rp-tip { position: absolute; z-index: 8; padding: var(--sp-1) var(--sp-2); border-radius: var(--radius); background: var(--c-toast); color: var(--c-on-toast);
  font-size: var(--fs-small); white-space: nowrap; pointer-events: none; box-shadow: var(--shadow-pop); }
.rp-tip > i, .rp-sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: var(--sp-1); vertical-align: -1px; flex: none; }
.rp-sw { box-shadow: 0 0 0 2px var(--c-surface), 0 0 0 3px var(--c-line-strong); }
.rp-note { flex: none; margin: var(--sp-1) 0; font-size: var(--fs-small); color: var(--c-text-sub); }
.rp-dr { flex: none; width: 352px; border-left: var(--line-w) solid var(--c-line); background: var(--c-surface); display: flex; flex-direction: column; min-height: 0; }
.rp-dr__h { flex: none; display: flex; align-items: center; gap: var(--sp-1); padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4); border-bottom: var(--line-w) solid var(--c-line); min-height: 48px; }
.rp-dr__h h2 { margin: 0; font-size: var(--fs-body); font-weight: var(--fw-section); display: flex; align-items: center; gap: var(--sp-1); white-space: nowrap; }
.rp-sp { flex: 1; }
.rp-dr__b { flex: 1; min-height: 0; overflow: auto; padding: var(--sp-3) var(--sp-4) var(--sp-5); }
.rp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-3); font-size: var(--fs-small); color: var(--c-text-sub); margin-bottom: var(--sp-2); }
.rp-rs { display: inline-flex; align-items: center; font-size: var(--fs-small); font-weight: var(--fw-strong); line-height: 20px; padding: 0 var(--sp-2); border-radius: var(--radius-badge);
  background: var(--c-bg-sub); color: var(--c-text-sub); white-space: nowrap; }
.rp-rs.is-cv { background: var(--c-ok-bg); color: var(--c-ok); }
.rp-rs.is-cta { background: var(--c-warn-bg); color: var(--c-warn); }
.rp-chart { display: block; width: 100%; height: auto; margin: var(--sp-1) 0 var(--sp-3); cursor: pointer; touch-action: none; }
.rp-tl { list-style: none; margin: 0; padding: 0; position: relative; }
.rp-tl::before { content: ""; position: absolute; left: 56px; top: 8px; bottom: 8px; border-left: var(--line-w) solid var(--c-line-strong); }
.rp-tl li { display: grid; grid-template-columns: 44px 16px minmax(0, 1fr); column-gap: var(--sp-1); padding: 5px 6px 5px 0; border-radius: var(--radius); cursor: pointer; align-items: start; }
.rp-tl li:hover { background: var(--c-hover); }
.rp-tl li.is-now { background: var(--c-primary-weak); }
.rp-tl li.is-fut { opacity: .5; }
.rp-tl__t { font-size: var(--fs-small); color: var(--c-text-sub); text-align: right; font-variant-numeric: tabular-nums; line-height: 20px; }
.rp-tl__d { width: 9px; height: 9px; border-radius: 50%; background: var(--c-surface); border: 2px solid var(--c-text-faint); margin: 6px 0 0 4px; position: relative; z-index: 1; }
.rp-tl__d.is-click { border-color: var(--c-primary); }
.rp-tl__d.is-cv { background: var(--c-ok); border-color: var(--c-ok); }
.rp-tl__d.is-out { background: var(--c-text-faint); }
.rp-tl__d.is-stay { border-color: var(--c-warn); }
.rp-tl__d.is-pop { border-color: var(--c-ver-b); border-radius: 2px; }
.rp-trk__tk.is-pp { background: var(--c-ver-b); top: 12px; }
.rp-tl__e { line-height: 20px; min-width: 0; }
.rp-tl__e b { font-weight: var(--fw-strong); }
.rp-tl__e small { display: block; font-size: var(--fs-small); color: var(--c-text-sub); line-height: 18px; }
.rp-tp { display: inline-block; font-size: var(--fs-small); line-height: 16px; padding: 0 5px; border-radius: 3px; margin-left: 6px; background: var(--c-bg-sub); color: var(--c-text-sub); white-space: nowrap; }
.rp-tp.is-cta { background: var(--c-warn-bg); color: var(--c-warn); }
.rp-tp.is-ok { background: var(--c-ok-bg); color: var(--c-ok); }
.rp-pl { list-style: none; margin: 0 calc(-1 * var(--sp-2)); padding: 0; }
.rp-pl button { display: grid; grid-template-columns: 14px 64px minmax(0, 1fr) auto; gap: var(--sp-1) var(--sp-2); align-items: center; width: 100%; text-align: left; border: 0;
  background: none; padding: 6px var(--sp-2); border-radius: var(--radius); font-size: var(--fs-small); cursor: pointer; }
.rp-pl button:hover { background: var(--c-hover); }
.rp-pl__id { font-weight: var(--fw-strong); font-variant-numeric: tabular-nums; }
.rp-pl__mt { color: var(--c-text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-plh { font-size: var(--fs-small); color: var(--c-text-faint); margin: var(--sp-3) 0 var(--sp-1); }
.rp-plh:first-child { margin-top: 0; }
.rp-pb { flex: none; display: flex; align-items: center; gap: var(--sp-2) var(--sp-3); padding: var(--sp-2) var(--sp-4); border-top: var(--line-w) solid var(--c-line); background: var(--c-surface); min-height: 52px; }
.rp-play { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-1); height: 36px; min-width: 92px; padding: 0 var(--sp-3); border-radius: 999px; border: 0;
  background: var(--c-primary); color: var(--c-on-primary); font-weight: var(--fw-strong); flex: none; cursor: pointer; }
.rp-play:focus-visible, .rp-trk:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.rp-tm { font-size: var(--fs-small); color: var(--c-text-sub); white-space: nowrap; flex: none; min-width: 88px; font-variant-numeric: tabular-nums; }
.rp-tm b { color: var(--c-text); font-weight: var(--fw-strong); }
.rp-trk { flex: 1; min-width: 120px; height: 32px; position: relative; cursor: pointer; touch-action: none; border-radius: var(--radius-badge); }
.rp-trk__bar { position: absolute; left: 0; right: 0; top: 14px; height: 4px; border-radius: 2px; background: var(--c-line); }
.rp-trk__fill { position: absolute; left: 0; top: 14px; height: 4px; border-radius: 2px; background: var(--c-primary); }
.rp-trk__th { position: absolute; top: 9px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--c-surface); border: 2px solid var(--c-primary); box-shadow: var(--shadow-card); }
.rp-trk__tk { position: absolute; top: 6px; width: 2px; height: 6px; margin-left: -1px; border-radius: 1px; background: var(--c-ok); }
.rp-trk.is-drag .rp-trk__th { transform: scale(1.15); }
@media (max-width: 1100px) {
  .rp-dr { position: absolute; right: 0; top: 0; bottom: 0; width: min(92vw, 352px); z-index: 40; box-shadow: var(--shadow-pop); }
}
@media (max-width: 800px) {
  .rp-tb { flex-wrap: nowrap; overflow-x: auto; }
  .rp-tb > * { flex: none; }
  .rp-cols { gap: var(--sp-2); padding: var(--sp-2) var(--sp-2) 0; }
  .rp-lv { margin-left: 0; width: 100%; }
  .rp-dr { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 56%; border-left: 0; border-top: var(--line-w) solid var(--c-line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .rp-pb { flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); }
  .rp-trk { order: 3; flex: 1 1 100%; }
}
.fl-ev { color: var(--c-text-sub); }
.fl-app { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-top: var(--sp-1); font-size: var(--fs-small); }
.fl-app.is-focus { font-weight: var(--fw-strong); }
.hm-box { position: absolute; z-index: 2; border: 2px solid var(--c-surface); border-radius: var(--radius-badge);
  outline: var(--line-w) solid var(--c-text); }
/* 載せたとき：LP の幅いっぱいの白い線（外に黒）＋吹き出し */
.hm-hover { position: absolute; left: 0; right: 0; height: 0; border-top: var(--line-w) solid var(--c-surface);
  outline: .5px solid var(--c-text); }
.hm-tip { position: absolute; left: var(--sp-4); z-index: 5; max-width: calc(100% - var(--sp-5)); padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius); background: var(--c-toast); color: var(--c-on-toast); box-shadow: var(--shadow-pop);
  font-size: var(--fs-small); line-height: var(--lh-ui); }
.hm-tip > b { display: block; font-size: var(--fs-body); font-weight: var(--fw-strong); }
.hm-tip > span { display: block; }
.hm-zero { position: absolute; left: 0; right: 0; top: 30%; display: flex; justify-content: center; padding: 0 var(--sp-5); z-index: 6; }
.hm-zero > .ui-empty { max-width: var(--w-boot); }
.hm-zero__acts { display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; margin-top: var(--sp-3); }
.hm-center { padding: var(--sp-6) var(--sp-5); }
/* 左の表の下：これまでの一覧（長く読まれた所・離れた人が多い所・クリックの多い順。段6b で区画の表に置き換える） */
.hm-sec { padding: var(--sp-3) var(--sp-3) var(--sp-4); }
.hm-sec h3 { font-size: var(--fs-body); font-weight: var(--fw-section); line-height: var(--lh-tight); margin: 0 0 var(--sp-2); }
.hm-sec__sub { font-size: var(--fs-small); color: var(--c-text-sub); margin: 0 0 var(--sp-3); }
.hm-sec__empty { font-size: var(--fs-small); color: var(--c-text-sub); }
.hm-seg-sm { margin-bottom: var(--sp-3); flex-wrap: nowrap; }
.hm-seg-sm > button { height: calc(var(--ctl-h-sm) - 2 * var(--line-w)); padding: 0 var(--sp-2); font-size: var(--fs-small); }
.hm-list { list-style: none; margin: 0 calc(-1 * var(--sp-2)); padding: 0; }
.hm-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: var(--sp-2); row-gap: 2px; align-items: baseline;
  width: 100%; padding: var(--sp-2); border: 0; border-radius: var(--radius); background: none; text-align: left; cursor: pointer;
  transition: background-color var(--dur) var(--ease); }
.hm-row.is-cmp { grid-template-columns: 22px minmax(0, 1fr) 3.5em 3.5em; }
.hm-row:hover { background: var(--c-hover); }
.hm-row.is-on { background: var(--c-primary-weak); }
.hm-row__n { font-weight: var(--fw-strong); color: var(--c-text-sub); font-variant-numeric: tabular-nums; }
.hm-row__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-row__c { text-align: right; font-weight: var(--fw-strong); font-variant-numeric: tabular-nums; }
.hm-row__c.is-other { font-weight: normal; color: var(--c-text-sub); }
.hm-row__s { grid-column: 2 / 4; min-width: 0; display: flex; justify-content: space-between; gap: var(--sp-2);
  font-size: var(--fs-small); color: var(--c-text-sub); font-variant-numeric: tabular-nums; }
.hm-row.is-cmp .hm-row__s { grid-column: 2 / 3; }
.hm-row__clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-row__s2 { text-align: right; font-size: var(--fs-small); color: var(--c-text-sub); font-variant-numeric: tabular-nums; }
.hm-more { margin-top: var(--sp-1); }
.hm-foot { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-5); font-size: var(--fs-small); }
.hm-foot__meta { color: var(--c-text-sub); margin-left: auto; font-variant-numeric: tabular-nums; }
.hm-tbl__s > .hm-foot { margin-top: 0; padding: 0 var(--sp-3) var(--sp-4); }
/* 狭い幅（800px 以下）：道具の列は横にずらして見る。表と LP は切り替えて1つずつ出す（LP の枠は、表を見ている間も測れるよう場所だけ取って隠す） */
@media (max-width: 800px) {
  .hm-tb { flex-wrap: nowrap; overflow-x: auto; padding: var(--sp-2) var(--sp-3); scrollbar-width: none; }
  .hm-tb::-webkit-scrollbar { display: none; }
  .hm-tb > * { flex: none; }
  .hm-tb__view { display: inline-flex; order: -1; }
  .hm-tb__sp { display: none; }
  .hm-tbl__h .hm-fold { display: none; }                       /* この幅では表は畳めない（表か LP の切り替えで見せ分ける） */
  .hm-body { flex-direction: column; }
  .hm-tbl, .hm.is-tbl-off .hm-tbl { width: auto; flex: 1; border-right: 0; display: flex; }
  .hm.v-lp .hm-tbl { display: none; }
  .hm.v-tbl .hm-lpcol { position: absolute; inset: 0; visibility: hidden; pointer-events: none; }
  .hm-lbar { padding: var(--sp-2) var(--sp-3); gap: var(--sp-2) var(--sp-3); }
  .hm-lbar .hm-open { display: none; }
  .hm-legend__band { width: calc(var(--heat-legend-w) / 2); }
}

/* ---------- ログイン（5.16） ---------- */
.ui-login { min-height: 100vh; display: grid; place-items: center; padding: var(--sp-6) var(--sp-4); }
.ui-login__card { width: 360px; max-width: 100%; background: var(--c-surface); border: var(--line-w) solid var(--c-line);
  border-radius: var(--radius-lg); padding: var(--sp-6) var(--sp-5); }
.ui-login__title { font-size: var(--fs-section); font-weight: var(--fw-section); line-height: var(--lh-tight); font-feature-settings: "palt"; }
.ui-login__text { font-size: var(--fs-small); color: var(--c-text-sub); margin: var(--sp-1) 0 var(--sp-5); }
.ui-login__alt { border-top: var(--line-w) solid var(--c-line); margin-top: var(--sp-5); padding-top: var(--sp-3); }
.ui-login__alt > .ui-field { margin-bottom: var(--sp-2); }
.ui-login .ui-error { margin-bottom: var(--sp-4); }

/* ---------- 幅ごとの変わり方（4.4） ---------- */
@media (max-width: 1100px) {
  .ui-widths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ui-widths__item:nth-child(2) { border-right: 0; }
  .ui-widths__item:nth-child(-n+2) { border-bottom: var(--line-w) solid var(--c-line); }
}
@media (max-width: 800px) {
  .ui-app { grid-template-columns: minmax(0, 1fr); }
  /* 800px 以下：左のメニューは上の横並び（アイコンの下に名前）。右の端に自分（ログアウトは自分の画面）（DESIGN 5.1・試作） */
  .ui-side { position: sticky; top: 0; z-index: 5; height: auto; border-right: 0; border-bottom: var(--line-w) solid var(--c-line); flex-direction: row; }
  .ui-brand { display: none; }
  .ui-nav { flex-direction: row; padding: var(--sp-1); gap: 0; flex: 1; overflow: visible; }
  .ui-nav__item { flex: 1; flex-direction: column; justify-content: center; height: auto; min-height: calc(var(--ctl-h-lg) + var(--sp-2)); gap: 2px;
    padding: var(--sp-1) 0; font-size: var(--fs-tool); }
  .ui-me { border-top: 0; padding: var(--sp-1); display: flex; }
  .ui-me__link { flex-direction: column; justify-content: center; gap: 2px; padding: var(--sp-1) var(--sp-2); font-size: var(--fs-tool);
    min-height: calc(var(--ctl-h-lg) + var(--sp-2)); }
  .ui-me__who, .ui-me__role { display: none; }
  .ui-me__t::after { content: "自分"; font-size: var(--fs-tool); }
  .ui-btn--primary { height: var(--ctl-h-lg); }
  .ui-page { padding: 0 var(--sp-4) var(--sp-4); }
  .ui-grid2, .ui-form-cols { grid-template-columns: minmax(0, 1fr); }
  .ui-input--search { width: 100%; }
  .ui-devbar { margin-left: var(--sp-4); margin-right: var(--sp-4); }
}

/* ---------- 画面ごとの小さな指定 ---------- */
.ui-group-sel { min-width: var(--w-flex-min); }
.ui-lp-sel { max-width: var(--w-pick-max); }
.ui-range-sel { min-width: 0; }
.ui-filters__count { margin-left: auto; font-size: var(--fs-small); color: var(--c-text-sub); font-variant-numeric: tabular-nums; }
.ui-check { min-height: var(--hit-min); }
.ui-pad { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.ui-field--inline { margin-bottom: 0; }
/* ページ送り（5.18）：表の面の一番下・上に線 */
.ui-pager { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap;
  border-top: var(--line-w) solid var(--c-line); padding: var(--sp-3) var(--sp-4); }
.ui-pager__range { font-size: var(--fs-small); color: var(--c-text-sub); font-variant-numeric: tabular-nums; }
/* 前後の％（配信割合・5.10）：変えた行の割合は太く */
.ui-bar__pct.is-changed { font-weight: var(--fw-strong); }
.ui-diff { display: grid; gap: var(--sp-1); }
.ui-diff__row { display: flex; gap: var(--sp-3); align-items: baseline; }
.ui-diff__name { color: var(--c-text); }
.ui-diff__val { color: var(--c-text-sub); font-variant-numeric: tabular-nums; }
/* 人と役割（C43）：人ごとの権限の一覧（人 × 機能）と、その人の画面 */
.perm-matrix th.perm-col, .perm-matrix td.perm-col { text-align: center; }
.perm-matrix__groups th { height: var(--row-h-head); color: var(--c-text-sub); }
.perm-matrix__groups th.perm-col { border-left: var(--line-w) solid var(--c-line); }
.perm-cell { font-size: var(--fs-small); color: var(--c-text-sub); }
.perm-cell.is-override { color: var(--c-primary); font-weight: var(--fw-strong); }
.perm-scope { display: inline-flex; flex-direction: column; align-items: flex-start; gap: var(--sp-1); }
.perm-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--w-flex-min), 1fr)); gap: var(--sp-1) var(--sp-4); }
.perm-check { align-items: flex-start; padding: var(--sp-1) 0; }
.perm-check > input { margin-top: calc(var(--sp-1) / 2); }
.perm-money { border-top: var(--line-w) solid var(--c-line); margin-top: var(--sp-4); padding-top: var(--sp-3); }
.perm-scope-edit > .ui-seg { margin-bottom: var(--sp-2); }
.perm-choice { display: inline-flex; align-items: center; gap: var(--sp-3); }
.perm-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.ui-seg > button:disabled { opacity: .45; cursor: not-allowed; }
.ui-seg > button:disabled:hover { background: var(--c-surface); }
.perm-matrix th.perm-col, .perm-matrix td.perm-col { padding-left: var(--sp-1); padding-right: var(--sp-1); }
.perm-matrix .ui-clip { max-width: calc(var(--w-flex-min) * .75); }
/* ASPの成果ファイルの読み方：止めたASPの「名前を変える」が入っても表が横にはみ出ないよう、対応した項目は短めに切る（QA 34） */
.colmap-asp .ui-clip { max-width: var(--w-head-main); }
/* 機能ごとの表：まとまりの面が変わっても列の位置をそろえる */
.perm-feats .ui-table { table-layout: fixed; }
.perm-feats .ui-table th:nth-child(2) { width: 7em; }
.perm-feats .ui-table th:nth-child(3) { width: 17em; }
.perm-feats .ui-table th:nth-child(4) { width: 18em; }
.perm-feats .ui-table td:first-child { white-space: normal; }
.perm-choice .ui-seg { flex-wrap: nowrap; }
/* 段1（25 §3-1・QA 76 中1）：レポートの良し悪し。合計の行より良い＝緑と ▲・悪い＝赤と ▼（色だけに頼らない）。
   LP のレポートの表ではマイナスの金額を赤にしない（赤は「悪い」だけ・d1-plain-neg） */
.is-better { color: var(--c-better); }
.is-worse { color: var(--c-worse); }
.d1-mark { margin-left: 2px; font-size: var(--fs-small); }
.d1-plain-neg .is-neg { color: inherit; }
/* レポートの1列目（まとめ／LP）：幅の上限 --w-pick-max（16em）。名前・2行目・小計の見出しは「…」で省略（全文は title）。1440px で表が横にはみ出さないように */
.d1-first { display: block; max-width: calc(var(--w-pick-max) - var(--sp-1)); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.d1-first .ui-name, .d1-first .ui-sub { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.d1-first .ui-camp--block > :last-child { overflow: hidden; }
/* 小計の行（木の形）：1列目を固定したまま線を引けるように（td.ui-tree は relative なので、固定の列は sticky を戻す）。名前の2行は幅に収める */
.ui-table--sticky td.ui-tree:first-child { position: sticky; }
.d1-first .ui-tree__name, .d1-first .ui-name2 { min-width: 0; }
.d1-first .ui-name2 { overflow: hidden; }
.ui-table tr.is-subtotal .ui-tree__n { font-weight: var(--fw-th); }

/* ---------- v1.4：サイト構造の作り直しの部品（docs/design/17・18・試作 docs/design/proto/） ---------- */
/* 画面の頭：見出しの左のアイコン（20px）・URL の1行 */
.ui-title-ic { color: var(--c-text-sub); display: inline-flex; }
.ui-crumb { display: flex; gap: var(--sp-1); align-items: center; flex-wrap: wrap; }
.ui-crumb__sep { color: var(--c-text-faint); }
.ui-urlline { display: flex; align-items: center; gap: var(--sp-1); margin-top: var(--sp-1); min-width: 0; color: var(--c-text-sub); }
.ui-urlline .ui-mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ui-head__actions[hidden] { display: none !important; }
/* タブ（下線） */
.ui-tabs { display: flex; gap: var(--sp-5); border-bottom: var(--line-w) solid var(--c-line); overflow-x: auto; scrollbar-width: none;
  margin-top: calc(var(--sp-1) - var(--gap-block)); }
.ui-tabs::-webkit-scrollbar { display: none; }
.ui-tab { display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) 0; color: var(--c-text-sub); border-bottom: 2px solid transparent;
  margin-bottom: calc(-1 * var(--line-w)); white-space: nowrap; text-decoration: none; }
.ui-tab:hover { color: var(--c-text); text-decoration: none; }
.ui-tab.is-current { color: var(--c-primary); border-bottom-color: var(--c-primary); font-weight: var(--fw-strong); }
/* タブの中の頭（最終更新・操作の1行） */
.ui-tabbar { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; min-height: var(--ctl-h); }
.ui-tabbar__main { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; flex: 1; min-width: 0; }
.ui-tabbar .ui-meta { margin-top: 0; }
/* ボタンの中のアイコン（文字の左・18 の 3.5 A）・アイコンだけのボタン（見た目 16px・押せる枠 28px） */
.ui-btn { gap: var(--sp-2); }
.ui-btn > .ui-icon:last-child:not(:first-child) { margin-left: calc(-1 * var(--sp-1)); }
.ui-btn[aria-disabled=true] { opacity: .45; cursor: not-allowed; }
.ui-btn[aria-disabled=true]:hover { filter: none; background: var(--c-surface); }
.ui-btn--primary[aria-disabled=true]:hover { background: var(--c-primary); }
.ui-ibtn { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: var(--radius); background: none;
  color: var(--c-text-sub); cursor: pointer; padding: 0; flex: none; text-decoration: none; }
.ui-ibtn:hover { background: var(--c-hover-icon); color: var(--c-text); text-decoration: none; }
.ui-ibtn[aria-disabled=true] { opacity: .45; cursor: not-allowed; }
.ui-ibtn[aria-disabled=true]:hover { background: none; color: var(--c-text-sub); }
.ui-ibtn.is-ok { color: var(--c-ok); }
.ui-ibtn.is-warn { color: var(--c-warn); }
.ui-ibtn--help { width: 20px; height: 20px; }
.ui-ibtn--text { width: auto; min-width: 28px; padding: 0 var(--sp-1); font-size: var(--fs-tool-sm); font-weight: var(--fw-page); }   /* 文字のボタン（QR） */
.ui-star { font-size: var(--fs-small); line-height: 1; }                 /* B11：LP 一覧のお気に入りの星 */
.ui-star.is-on, .ui-favonly.is-on > span:first-child { color: var(--c-warn); }
.ui-qr { display: grid; justify-items: center; gap: var(--sp-2); }   /* A10：QR コードのダイアログ */
.ui-qr svg { display: block; width: 240px; height: 240px; }
.ui-qr .ui-mono { max-width: 100%; overflow-wrap: anywhere; font-size: var(--fs-small); color: var(--c-text-sub); }
.ui-acts { display: inline-flex; gap: 2px; justify-content: flex-end; align-items: center; }
/* 吹き出し・メニュー */
.ui-tip { position: fixed; z-index: 60; max-width: 280px; background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow-pop);
  border-radius: var(--radius); padding: var(--sp-2) var(--sp-3); font-size: var(--fs-small); line-height: var(--lh-ui); pointer-events: none; white-space: pre-line; }
.ui-menu { position: fixed; z-index: 50; min-width: 200px; background: var(--c-surface); box-shadow: var(--shadow-pop); border-radius: var(--radius); padding: var(--sp-1); }
.ui-menu button { display: flex; align-items: center; gap: var(--sp-2); width: 100%; height: var(--ctl-h); padding: 0 var(--sp-2); border: 0; background: none;
  border-radius: var(--radius-badge); cursor: pointer; text-align: left; white-space: nowrap; color: var(--c-text); font-size: var(--fs-body); }
.ui-menu button .ui-icon { color: var(--c-text-sub); }
.ui-menu button:hover, .ui-menu button:focus-visible { background: var(--c-hover-icon); outline: none; }
.ui-menu button.is-danger, .ui-menu button.is-danger .ui-icon { color: var(--c-ng); }
.ui-menu button[aria-disabled=true] { opacity: .45; cursor: not-allowed; }
.ui-menu hr { border: 0; border-top: var(--line-w) solid var(--c-line); margin: var(--sp-1) 0; }
/* 印：媒体（点線の丸の中の頭文字）・ファビコン・グループのアイコン（C85②） */
.ui-mk { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; font-size: var(--fs-tool-sm); font-weight: var(--fw-strong);
  line-height: 1; color: var(--c-text-sub); border: var(--line-w) dashed var(--c-text-faint); background: var(--c-surface); overflow: hidden; }
.ui-mk--media { border-radius: 50%; }
.ui-mk--fav { border-radius: var(--radius-badge); }
.ui-mk--lg { width: 20px; height: 20px; font-size: var(--fs-small); }
.ui-mk--none, .ui-mk--plain { border: 0; background: none; }
.ui-mk.has-img { border: 0; background: transparent; }
.ui-mk > img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* 媒体のロゴ（C96）：白い丸に細い縁・ロゴは縦横の比を保って余白をとる。ロゴ自身が四角い地を持つもの（X・TikTok）は丸いっぱい */
.ui-mk--logo.has-img { background: var(--c-surface); box-shadow: inset 0 0 0 var(--line-w) var(--c-line); }
.ui-mk--logo > img { box-sizing: border-box; padding: 1px; }
.ui-mk--logo.is-fill { background: transparent; box-shadow: none; }
.ui-mk--logo.is-fill > img { padding: 0; }
/* 図柄が画像の端まである四角いロゴ（Microsoft・SmartNews・メルカリ・ニュースパス）：角が丸で欠けないよう、丸の縁の内側に角が収まる余白（20%）をとる */
.ui-mk--logo.is-sq > img { padding: 20%; }
.ui-mk-slot { display: inline-flex; flex: none; }
.ui-gicon { display: inline-grid; place-items: center; width: 24px; height: 24px; margin: calc(-1 * var(--sp-1)); border: 0; background: none;
  border-radius: var(--radius); color: var(--c-text-sub); cursor: pointer; padding: 0; flex: none; }
.ui-gicon:hover { background: var(--c-hover-icon); color: var(--c-text); }
.ui-gicon.is-static { cursor: default; margin: 0; width: 16px; height: 16px; }
.ui-gicon.is-static:hover { background: none; color: var(--c-text-sub); }
.ui-pick { display: grid; grid-template-columns: repeat(auto-fill, 40px); gap: var(--sp-2); }
.ui-pick button { width: 40px; height: 40px; display: grid; place-items: center; border: var(--line-w) solid var(--c-line-strong); border-radius: var(--radius);
  background: var(--c-surface); color: var(--c-text-sub); cursor: pointer; padding: 0; }
.ui-pick button:hover { background: var(--c-hover); color: var(--c-text); }
.ui-pick button.is-on { background: var(--c-primary-weak); border-color: var(--c-primary); color: var(--c-side-active-text); }
/* 一覧の道具の列：検索（虫眼鏡）・状態の切り替えの件数・絞り込みの札 */
.ui-toolbar { padding: var(--sp-3) var(--sp-4); }
.ui-block--table > .ui-filters.ui-toolbar:first-child { padding-top: var(--sp-3); }
.ui-search { position: relative; display: inline-flex; align-items: center; }
.ui-search > .ui-icon { position: absolute; left: var(--sp-2); color: var(--c-text-sub); pointer-events: none; }
.ui-search > input { padding-left: calc(var(--sp-2) + var(--icon-16) + var(--sp-2)); width: calc(var(--ctl-h) * 8); }
.ui-seg > button { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-small); }
.ui-seg__n { color: var(--c-text-sub); font-weight: normal; }
.ui-chip { display: inline-flex; align-items: center; gap: var(--sp-1); height: var(--ctl-h-sm); padding: 0 0 0 var(--sp-2);
  border: var(--line-w) solid var(--c-line-strong); border-radius: 999px; font-size: var(--fs-small); background: var(--c-primary-weak); }
/* 名前と2行目（縦に重ねる） */
.ui-name2 { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.ui-name2 > .ui-name, .ui-name2 > .ui-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-name2 > .ui-sub { display: block; }
.ui-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ui-table tr.is-dim .ui-name { color: var(--c-text-sub); }
.ui-table td.is-sub, .ui-table .is-sub { color: var(--c-text-sub); }
.show-sm { display: none !important; }
/* LP の木（グループ ＞ フォルダ ＞ LP）。字下げと縦横のつなぎの線は1列目の中だけ（線は --c-line-strong・17 / C85①） */
.ui-table--tree { --tree-u: var(--sp-5); }
.ui-table td.ui-tree { position: relative; padding-left: calc(var(--sp-4) + var(--d) * var(--tree-u)); }
.ui-tr { position: absolute; top: 0; bottom: 0; left: calc(var(--sp-4) + var(--i) * var(--tree-u)); width: var(--tree-u); pointer-events: none; }
.ui-tr::before, .ui-tr::after { content: ""; position: absolute; }
.ui-tr--v::before, .ui-tr--t::before { left: calc(var(--tree-u) / 2); top: 0; bottom: 0; border-left: var(--line-w) solid var(--c-line-strong); }
.ui-tr--l::before { left: calc(var(--tree-u) / 2); top: 0; height: 50%; border-left: var(--line-w) solid var(--c-line-strong); }
.ui-tr--t::after, .ui-tr--l::after { left: calc(var(--tree-u) / 2); right: 0; top: 50%; border-top: var(--line-w) solid var(--c-line-strong); }
.ui-tr--stem::before { left: calc(var(--tree-u) / 2); top: calc(50% + var(--sp-2) + var(--sp-1)); bottom: 0; border-left: var(--line-w) solid var(--c-line-strong); }
.ui-tree__name { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.ui-tree__t { font-weight: var(--fw-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-tree__n { font-size: var(--fs-small); color: var(--c-text-sub); }
.ui-tw { display: inline-grid; place-items: center; width: var(--tree-u); flex: none; color: var(--c-text-sub); margin-right: calc(-1 * var(--sp-1)); }
.ui-table tr.is-node td { height: var(--row-h); }
.ui-table tr.is-click:focus-visible td { background: var(--c-hover); }
.ui-table tr.is-click:focus-visible { outline: 2px solid var(--c-focus); outline-offset: -2px; }
/* 割合の入力（%）・合計 */
.ui-pct-in { display: inline-flex; align-items: center; gap: var(--sp-1); }
.ui-pct-in > input { width: calc(var(--ctl-h) * 2); height: var(--ctl-h-sm); text-align: right; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.ui-pct-in > input::-webkit-inner-spin-button, .ui-pct-in > input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ui-bar__track { display: block; width: 56px; min-width: 0; flex: none; }
.ui-bar__fill { display: block; }
.ui-bar__pct { width: 3.5em; }
.ui-total-pct { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: var(--fw-strong); font-variant-numeric: tabular-nums; margin-right: auto; }
.ui-total-pct.is-ok > .ui-icon { color: var(--c-ok); }
.ui-total-pct.is-warn { color: var(--c-warn); }
.ui-changes { display: grid; gap: var(--sp-1); padding: 0; margin: 0; list-style: none; }
.ui-changes > li { display: flex; align-items: center; gap: var(--sp-2); font-variant-numeric: tabular-nums; }
/* 空のとき：手順（空のときだけ・C84③） */
.ui-empty .ui-steps { display: flex; gap: var(--sp-4); flex-wrap: wrap; justify-content: center; padding: 0; margin: 0; border: 0; list-style: none; }
.ui-empty .ui-steps li { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-small); color: var(--c-text-sub); }
.ui-empty .ui-steps li.is-now { color: var(--c-text); font-weight: var(--fw-strong); }
.ui-empty .ui-steps li .ui-icon { color: var(--c-text-faint); }
.ui-empty .ui-steps li.is-now .ui-icon { color: var(--c-primary); }
/* チェック（公開の前に通すものを1つのリストに） */
.ui-checklist { display: grid; padding: 0; margin: 0; list-style: none; }
.ui-checklist > li { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--row-h); border-bottom: var(--line-w) solid var(--c-line); padding: var(--sp-1) 0; }
.ui-checklist > li:last-child { border-bottom: 0; }
.ui-checklist > li > .ui-icon { color: var(--c-text-faint); }
.ui-checklist > li.is-ok > .ui-icon { color: var(--c-ok); }
.ui-checklist > li.is-warn > .ui-icon { color: var(--c-warn); }
.ui-checklist__t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ui-checklist__t > .ui-sub { display: block; }
.ui-fold { padding: var(--sp-3) var(--sp-4); margin-top: 0; }
.ui-fold > summary { display: flex; align-items: center; gap: var(--sp-2); }
/* フォーム（2列）・前に固定の文字が付く欄（/ab/・v7（10/15））・選ぶ（ラジオ） */
.ui-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-4); }
.ui-form .is-full { grid-column: 1 / -1; }
.ui-prefix { display: flex; align-items: stretch; min-width: 0; width: 100%; }
.ui-prefix > span { display: flex; align-items: center; padding: 0 var(--sp-2); border: var(--line-w) solid var(--c-line-strong); border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius); background: var(--c-bg-sub); color: var(--c-text-sub); font-size: var(--fs-small); white-space: nowrap; }
.ui-prefix > input { border-radius: 0 var(--radius) var(--radius) 0; flex: 1; min-width: 0; }
.ui-prefix.is-error > input { border-color: var(--c-ng); }
.ui-choices { display: flex; flex-direction: column; gap: var(--sp-2); }
.ui-radio { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--hit-min); cursor: pointer; }
.ui-radio > input { width: 16px; height: 16px; margin: 0; accent-color: var(--c-primary); }
.ui-radio > .ui-icon { color: var(--c-text-sub); }
.ui-kv--top { margin-top: var(--sp-4); }
.ui-stack--tight { gap: var(--sp-2); }
.ui-block__title { display: flex; align-items: center; gap: var(--sp-2); }
.ui-block__title > .ui-icon { color: var(--c-text-sub); }
.ui-dialog__title { display: flex; align-items: center; gap: var(--sp-2); }
.ui-dialog__title > .ui-icon { color: var(--c-text-sub); }
.ui-notice > .ui-icon { flex: none; }
.ui-login__card > .ui-icon { color: var(--c-text-sub); margin-bottom: var(--sp-3); }
.ui-camp > .ui-icon { color: var(--c-text-sub); }
@media (max-width: 800px) {
  .ui-app { grid-template-rows: auto minmax(0, 1fr); }
  .ui-page { gap: var(--sp-4); }
  .ui-seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ui-seg::-webkit-scrollbar { display: none; }
  .ui-seg__n { display: none; }
  .ui-state-cell .ui-badge-sub { display: none; }
  .hide-sm { display: none !important; }
  .show-sm { display: flex !important; }
  .ui-table--tree { --tree-u: var(--sp-4); }
  .ui-tw { margin-right: 0; }
  .ui-tabs { gap: var(--sp-3); }
  .ui-tab { gap: var(--sp-1); }
  .ui-search, .ui-search > input { width: 100%; }
  .ui-toolbar .ui-search { flex: 1 1 100%; }
  .ui-form { grid-template-columns: minmax(0, 1fr); }
  .ui-name2 { max-width: 44vw; }
  .ui-bar__track { display: none; }
  .ui-head__actions { margin-left: 0; }
  .ui-title { font-size: calc(var(--fs-page) - 4px); }
  .ui-table-wrap .ui-table th:first-child, .ui-table-wrap .ui-table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--c-surface); }
}
@media (max-width: 800px) {
  .ui-tabs { margin-top: calc(-1 * var(--sp-2)); }
}

/* ---------- 公開中のバージョンを直す（C85③・docs/design/19）：反映待ちの印・見比べて反映 ---------- */
.ui-badge--btn { cursor: pointer; font-family: inherit; }
.ui-badge--btn:hover { background: var(--c-primary-weak); }
.ui-note { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-small); color: var(--c-text-sub); }
.ui-chg-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 var(--sp-1); border-radius: 9px; flex: none;
  background: var(--c-primary); color: var(--c-on-primary); font-size: var(--fs-small); font-weight: var(--fw-strong); line-height: 1; font-variant-numeric: tabular-nums; }
.ui-chg-name { display: inline-flex; align-items: flex-start; gap: var(--sp-2); }
.ui-chg-what { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1); color: var(--c-text-sub); font-size: var(--fs-small); line-height: 1.35; overflow-wrap: anywhere; }
.ui-chg-list { display: none; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: var(--line-w) solid var(--c-line); }
.ui-chg-list > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-bottom: var(--line-w) solid var(--c-line); overflow-wrap: anywhere; }
.ui-chg-list > li:last-child { border-bottom: 0; }
.ui-chg-ba { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-1) var(--sp-2); margin-top: var(--sp-1); }
.ui-cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); align-items: start; }
.ui-cmp__h { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.ui-cmp__stage { position: relative; height: var(--preview-h); overflow: hidden; border: var(--line-w) solid var(--c-line-strong); background: var(--c-surface); }
.ui-cmp__stage iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: var(--c-surface); }
/* 次にやること（バージョンの詳細・LP の頭の反映待ち）：状態ごとに1本。色は is-ok・is-warn・is-info（無印＝待機の灰） */
.ui-next { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--radius);
  background: var(--c-surface); border: var(--line-w) solid var(--c-line-strong); }
.ui-next > .ui-icon { flex: none; color: var(--c-text-faint); }
.ui-next.is-ok { background: var(--c-ok-bg); border-color: color-mix(in srgb, var(--c-ok) 30%, transparent); }
.ui-next.is-ok > .ui-icon { color: var(--c-ok); }
.ui-next.is-warn { background: var(--c-warn-bg); border-color: color-mix(in srgb, var(--c-warn) 30%, transparent); }
.ui-next.is-warn > .ui-icon { color: var(--c-warn); }
.ui-next.is-info { background: var(--c-primary-weak); border-color: color-mix(in srgb, var(--c-primary) 30%, transparent); }
.ui-next.is-info > .ui-icon { color: var(--c-primary); }
.ui-next__body { display: grid; gap: var(--sp-1); flex: 1; min-width: 0; }
.ui-next__t { font-weight: var(--fw-strong); }
.ui-next__list { display: grid; gap: var(--sp-1); margin: 0; padding: 0; list-style: none; }
.ui-next__acts { display: flex; flex-wrap: wrap; gap: var(--sp-2); flex: none; align-items: center; }
.ui-pctlist { display: grid; padding: 0; margin: 0; list-style: none; }
.ui-pctlist > li { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: var(--line-w) solid var(--c-line); }
.ui-pctlist > li > .ui-name2 { flex: 1; min-width: 0; }
.ui-pctlist .ui-pct-in { margin-left: auto; }
/* 見比べて反映の3つの手順：横に並べる（狭い画面は縦） */
.ui-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.ui-flow__step { display: flex; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-3); border-radius: var(--radius);
  background: var(--c-surface); border: var(--line-w) solid var(--c-line-strong); }
.ui-flow__step.is-warn { background: var(--c-warn-bg); border-color: color-mix(in srgb, var(--c-warn) 30%, transparent); }
.ui-flow__step.is-skip { color: var(--c-text-sub); border-style: dashed; }
.ui-flow__body { display: grid; gap: var(--sp-1); flex: 1; min-width: 0; }
.ui-flow__step > .ui-btn { flex: none; align-self: center; }
@media (max-width: 800px) {
  .ui-cmp { grid-template-columns: minmax(0, 1fr); }
  .ui-flow { grid-template-columns: minmax(0, 1fr); }
  .ui-next { flex-wrap: wrap; }
}

/* ---------- 左のメニューをたたむ（C92）：どの画面でも閉じられる。閉じた状態は localStorage に覚える（shell.js）----------
   閉じると、アイコンだけの細い列（幅＝名前のない項目 --nav-h ＋ 左右の余白）。開くボタンは列の一番上。800px 以下の横並びでは出さない */
.ui-side-toggle { margin: calc(var(--sp-1) * -1) 0 calc(var(--sp-1) * -1) auto; color: var(--c-side-sub); }
.ui-brand__name { flex: none; }
.ui-brand__mark { flex: none; width: 24px; height: 24px; display: block; }
.ui-login__mark { display: block; width: 40px; height: 40px; margin-bottom: var(--sp-3); }
@media (max-width: 800px) { .ui-side-toggle { display: none; } }
@media (min-width: 801px) {
  .ui-app.is-side-min { --side-w: calc(var(--nav-h) + var(--sp-2) * 2); }
  .ui-app.is-side-min .ui-brand { justify-content: center; padding-inline: 0; }
  .ui-app.is-side-min .ui-brand__name, .ui-app.is-side-min .ui-brand__entry { display: none; }
  /* たたんだときは列が細いので、ロゴのマークを出し、開くボタンは同じ場所に重ねる（触る・キーボードで選ぶと、マークの代わりに出る） */
  .ui-app.is-side-min .ui-brand { position: relative; }
  .ui-app.is-side-min .ui-side-toggle { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border-radius: 0;
    background: var(--c-side); opacity: 0; }
  .ui-app.is-side-min .ui-side-toggle:hover, .ui-app.is-side-min .ui-side-toggle:focus-visible { opacity: 1; }
  .ui-app.is-side-min .ui-nav__item { justify-content: center; padding: 0; }
  .ui-app.is-side-min .ui-nav__item > span { display: none; }
  .ui-app.is-side-min .ui-me__link { justify-content: center; padding-inline: 0; }
  .ui-app.is-side-min .ui-me__t { display: none; }
}

/* ---------- 一体画面（C87・C88④・docs/design/21 段①・e5_lx.js）：バージョンのタブそのもの ----------
   枠：上＝道具／左＝バージョン／真ん中＝帯＋LP／右＝パネル。値は試作（docs/design/proto/editor.html）と同じ（左 264・右 300・上 48）。
   LP は iframe（別のオリジン・CSP sandbox）。選んだ枠・触れた枠は iframe の外（.lx__ov）に重ねて描く。高さ・幅・位置は JS が CSSOM で入れる */
.lx { --lx-vers-w: 264px; --lx-panel-w: 300px; --lx-top-h: 48px; --lx-ctx-h: 44px;
  display: grid; grid-template-columns: var(--lx-vers-w) minmax(0, 1fr) var(--lx-panel-w); grid-template-rows: var(--lx-top-h) minmax(0, 1fr);
  min-height: 560px; background: var(--c-surface); border: var(--line-w) solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; }
.lx__grow { flex: 1; min-width: 0; }
.lx__sub { color: var(--c-text-sub); font-size: var(--fs-small); }
.lx__vsep { width: 1px; height: 20px; background: var(--c-line); flex: none; margin: 0 2px; }
.lx__acts { display: inline-flex; align-items: center; gap: var(--sp-2); flex: none; margin-left: auto; }
.lx__top { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--sp-2); padding: 0 var(--sp-3); border-bottom: var(--line-w) solid var(--c-line); min-width: 0; }
.lx__top__mid { display: flex; align-items: center; gap: var(--sp-2); flex: 1; min-width: 0; flex-wrap: nowrap; }
.lx__top__end { display: flex; align-items: center; gap: var(--sp-2); flex: none; margin-left: auto; }
.lx__seg > button { display: inline-flex; align-items: center; gap: 6px; }
.lx__seg > button > .ui-icon { color: var(--c-text-sub); }

/* 左：バージョン */
.lx__vers { display: flex; flex-direction: column; min-height: 0; border-right: var(--line-w) solid var(--c-line); background: var(--c-surface); }
.lx__vers__head { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-3) var(--sp-2) var(--sp-4); font-weight: var(--fw-strong); }
.lx__vers__head > .ui-icon { color: var(--c-text-sub); }
.lx__vers__head > .lx__grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx__vers__list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 var(--sp-2) var(--sp-2); display: flex; flex-direction: column; gap: 2px; }
.lx__vrow { display: flex; flex-direction: column; gap: 6px; padding: 10px var(--sp-2) 10px 10px; border-radius: var(--radius); cursor: pointer; outline-offset: -2px; }
.lx__vrow:hover { background: var(--c-hover-icon); }
.lx__vrow.is-current { background: var(--c-side-active); }
.lx__vrow__name { display: flex; align-items: flex-start; gap: 6px; font-weight: var(--fw-strong); font-size: var(--fs-small); line-height: 1.45; }
.lx__vrow__name > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.lx__vrow.is-current .lx__vrow__name { color: var(--c-side-active-text); }
.lx__vrow__name .ui-ibtn { margin: -3px -4px -3px 0; }
.lx__vrow__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lx__vrow__pct { margin-left: auto; display: inline-flex; align-items: center; }
.lx__warn, .lx__dot { display: inline-flex; color: var(--c-warn); }
.lx__page { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 0 var(--sp-5); padding: 4px var(--sp-2); font-size: var(--fs-small); color: var(--c-text-sub); border-radius: var(--radius); text-decoration: none; }
.lx__page:hover { background: var(--c-hover-icon); color: var(--c-text); }
.lx__vers__foot { border-top: var(--line-w) solid var(--c-line); padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }
.lx__sum { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.lx__sum > .ui-icon { color: var(--c-text-sub); }
.lx__arch { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--c-text-sub); }
.lx__link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); }

/* 真ん中：帯・案内・LP */
.lx__mid { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.lx__ctx { display: flex; align-items: center; gap: var(--sp-2); padding: 0 var(--sp-4); height: var(--lx-ctx-h); flex: none; border-bottom: var(--line-w) solid var(--c-line); white-space: nowrap; min-width: 0; }
.lx__ctx > :not(.lx__ctx__name):not(.lx__grow) { flex: none; }
.lx__ctx__name { display: flex; align-items: center; gap: var(--sp-2); font-weight: var(--fw-strong); min-width: 120px; flex: 0 1 auto; }
.lx__ctx__name > span { overflow: hidden; text-overflow: ellipsis; }
.lx__ctx__name > .ui-icon { color: var(--c-text-sub); }
.lx__hint { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); color: var(--c-text-sub); }
.lx__hint.is-warn { color: var(--c-warn); }
.lx__review { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline dotted; }
.lx__rvs { display: grid; gap: 12px; max-width: var(--form-max); max-height: 60vh; overflow: auto; }
.lx__rv__lead { margin: 0; }
.lx__rv__h { font-weight: var(--fw-strong); margin-bottom: 4px; }
.lx__rv__list { margin: 0; padding-left: 18px; display: grid; gap: 2px; }
.lx__rv__list code { word-break: break-all; white-space: pre-wrap; font-family: var(--f-mono); font-size: var(--fs-tool); }
.lx__rv__list .is-sub, .lx__rv__none { color: var(--c-text-sub); font-size: var(--fs-tool); }
.lx__zoom { display: inline-flex; align-items: center; }
.lx__zv { border: 0; background: none; cursor: pointer; font-size: var(--fs-small); color: var(--c-text-sub); font-variant-numeric: tabular-nums; min-width: 44px; height: 24px; border-radius: var(--radius); }
.lx__zv:hover { background: var(--c-hover-icon); color: var(--c-text); }
.lx__notices { flex: none; display: flex; flex-direction: column; }
.lx__notices:empty { display: none; }
.lx__note { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4); border-bottom: var(--line-w) solid var(--c-line); font-size: var(--fs-small); }
.lx__note__t { flex: 1; min-width: 0; line-height: 1.5; }
.lx__note.is-warn { background: var(--c-warn-bg); color: var(--c-warn); }
.lx__note.is-ng { background: var(--c-ng-bg); color: var(--c-ng); }
.lx__note.is-info { background: var(--c-primary-weak); }
.lx__note > .ui-icon { flex: none; }
.lx__note .lx__acts { flex-wrap: wrap; justify-content: flex-end; }
.lx__stagewrap { position: relative; flex: 1; min-height: 0; display: flex; }
.lx__stage { flex: 1; min-width: 0; overflow: auto; background: var(--t-bg); position: relative; overflow-anchor: none; scrollbar-gutter: stable; }
.lx__pbox { position: relative; margin: var(--sp-5) auto 64px; background: var(--c-surface); box-shadow: var(--shadow-card), 0 1px 3px rgba(26, 31, 54, .10), 0 8px 24px -12px rgba(26, 31, 54, .25); }
.lx__frame { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: var(--c-surface); display: block; }
.lx__ov { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.lx__o { position: absolute; pointer-events: none; box-sizing: border-box; }
.lx__o--hover { outline: 1px solid var(--c-primary); }
.lx__o--sel { outline: 2px solid var(--c-primary); }
.lx__tag { position: absolute; left: -2px; bottom: 100%; margin-bottom: 2px; max-width: 260px; padding: 1px var(--sp-2); border-radius: var(--radius-badge); background: var(--c-primary); color: var(--c-on-primary);
  font-size: var(--fs-tool); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx__tag.is-in { bottom: auto; top: 2px; left: 2px; margin: 0; }
.lx__stage.is-view { cursor: default; }
.lx__viewchip { position: absolute; top: var(--sp-3); left: 50%; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 2px var(--sp-3);
  border-radius: var(--radius); background: var(--c-toast); color: var(--c-on-toast); font-size: var(--fs-small); pointer-events: none; }
.lx__viewchip kbd { font: 500 11px/1 var(--f-mono); padding: 2px 4px; border-radius: 3px; border: 1px solid currentColor; opacity: .85; }
.lx__empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--sp-3); color: var(--c-text-sub); text-align: center; padding: var(--sp-5); background: var(--t-bg); }

/* 右：調整・履歴・AI */
.lx__panel { display: flex; flex-direction: column; min-height: 0; border-left: var(--line-w) solid var(--c-line); background: var(--c-surface); }
.lx__ptabs { display: flex; flex: none; border-bottom: var(--line-w) solid var(--c-line); padding: 0 var(--sp-2); }
.lx__ptab { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 var(--sp-3); border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; color: var(--c-text-sub); font-size: var(--fs-small); }
.lx__ptab:hover { color: var(--c-text); }
.lx__ptab.is-current { color: var(--c-text); border-bottom-color: var(--c-primary); font-weight: var(--fw-strong); }
.lx__cnt { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 var(--sp-1); border-radius: 9px; background: var(--c-primary); color: var(--c-on-primary); font-size: var(--fs-small); line-height: 1; }
.lx__pbody { flex: 1; min-height: 0; overflow-y: auto; padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); }
.lx__pempty { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); padding: var(--sp-6) var(--sp-3); color: var(--c-text-faint); text-align: center; font-size: var(--fs-small); }
.lx__sel { display: flex; flex-direction: column; gap: var(--sp-3); }
.lx__sel__name { display: flex; flex-direction: column; gap: 2px; }
.lx__sel__read { margin: 0; padding: var(--sp-2) var(--sp-3); background: var(--c-bg-sub); border-radius: var(--radius); font-size: var(--fs-small); overflow-wrap: anywhere; }
.lx__chips { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.lx__chip { padding: 1px var(--sp-2); border: var(--line-w) solid var(--c-line-strong); border-radius: var(--radius-badge); font: var(--fs-small) var(--f-mono); color: var(--c-text-sub); }
.lx__blk { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
.lx__blk > p { margin: 0; }
.lx__h3 { margin: 0; font-size: var(--fs-small); font-weight: var(--fw-strong); color: var(--c-text-sub); }
.lx__ops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); width: 100%; }
.lx__op { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-2) var(--sp-3); border: var(--line-w) solid var(--c-line); border-radius: var(--radius); font-size: var(--fs-small); overflow-wrap: anywhere; }
.lx__op.is-legacy { background: var(--c-bg-sub); }
/* 変更前の表示・AI が動いている印・右の AI（今のチャットを載せた枠 /edit/embed） */
.lx__viewchip.is-before { background: var(--c-warn-bg); color: var(--c-warn); }
.lx__busy { width: 8px; height: 8px; border-radius: 50%; background: var(--c-primary); }
.lx__pbody--ai { padding: 0; overflow: hidden; gap: 0; }
.lx__ai { flex: 1; width: 100%; min-height: 0; border: 0; background: var(--c-surface); }

/* 右「調整」（e5_lx_adjust.js）：今の編集画面のパネルと同じ項目。値は入力欄・ボタン・色で直す */
.lxp { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.lxp.is-ro .lxp__secb { opacity: .5; pointer-events: none; }
.lxp__head { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lxp__head > b { overflow-wrap: anywhere; }
.lxp__read { margin: var(--sp-1) 0 0; padding: var(--sp-2) var(--sp-3); background: var(--c-bg-sub); border-radius: var(--radius); font-size: var(--fs-small); overflow-wrap: anywhere; }
.lxp__sub { color: var(--c-text-sub); font-size: var(--fs-small); }
.lxp__note { margin: 0; color: var(--c-text-sub); font-size: var(--fs-small); overflow-wrap: anywhere; }
.lxp__media { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: var(--sp-2) 0; border-bottom: var(--line-w) solid var(--c-line); }
.lxp__seg { display: inline-flex; border: var(--line-w) solid var(--c-line-strong); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.lxp__segb { height: var(--ctl-h-sm); padding: 0 var(--sp-2); border: 0; border-right: var(--line-w) solid var(--c-line-strong); background: var(--c-surface); color: var(--c-text-sub); font-size: var(--fs-tool); cursor: pointer; white-space: nowrap; }
.lxp__segb:last-child { border-right: 0; }
.lxp__segb:hover { background: var(--c-hover); }
.lxp__segb.is-on { background: var(--c-primary-weak); color: var(--c-text); font-weight: var(--fw-strong); }
.lxp__sec { border-bottom: var(--line-w) solid var(--c-line); }
.lxp__sech { display: flex; align-items: center; gap: var(--sp-2); width: 100%; height: var(--ctl-h); padding: 0; border: 0; background: none; color: var(--c-text); font-size: var(--fs-small); font-weight: var(--fw-strong); cursor: pointer; text-align: left; }
.lxp__sech .ui-icon { transition: transform var(--dur) var(--ease); transform: rotate(-90deg); color: var(--c-text-sub); }
.lxp__sec.is-open > .lxp__sech .ui-icon { transform: none; }
.lxp__secb { display: none; flex-direction: column; gap: var(--sp-2); padding: 0 0 var(--sp-3); }
.lxp__sec.is-open > .lxp__secb { display: flex; }
.lxp__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-2) var(--sp-3); }
.lxp__pr { display: grid; grid-template-columns: 72px minmax(0, 1fr) 14px; align-items: center; gap: var(--sp-2); min-width: 0; }
.lxp__pr.is-half { grid-template-columns: 36px minmax(0, 1fr) 6px; gap: var(--sp-1); }
.lxp__l { font-size: var(--fs-tool); color: var(--c-text-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lxp__l.is-scrub { cursor: ew-resize; }
.lxp__l.has-other::after { content: ' *'; color: var(--c-warn); }
.lxp__c { min-width: 0; }
.lxp__in, .lxp__sel, .lxp__ta { width: 100%; box-sizing: border-box; height: var(--ctl-h-sm); padding: 0 var(--sp-1); border: var(--line-w) solid var(--c-line-strong); border-radius: var(--radius); background: var(--c-surface); color: var(--c-text); font: inherit; font-size: var(--fs-tool); min-width: 0; }
.lxp__in:focus, .lxp__sel:focus, .lxp__ta:focus { outline: 2px solid var(--c-focus); outline-offset: -1px; }
.lxp__in.is-over { border-color: var(--c-primary); background: var(--c-primary-weak); }
.lxp__ta { height: auto; padding: var(--sp-2); resize: vertical; line-height: 1.5; }
.lxp__cf { display: flex; gap: var(--sp-1); align-items: center; }
.lxp__sw { flex: none; width: var(--ctl-h-sm); height: var(--ctl-h-sm); padding: 0; border: var(--line-w) solid var(--c-line-strong); border-radius: var(--radius); background: none; cursor: pointer; }
.lxp__dot, .lxp__bm-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: transparent; justify-self: center; cursor: default; }
.lxp__dot.is-on, .lxp__bm-dot.is-on { background: var(--c-primary); cursor: pointer; }
.lxp__bm { padding: var(--sp-2); border: var(--line-w) dashed var(--c-line-strong); border-radius: var(--radius); background: var(--c-bg-sub); }
.lxp__bm-m, .lxp__bm-p { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto auto; gap: var(--sp-1); padding: var(--sp-2); border-radius: var(--radius); }
.lxp__bm-m { background: var(--c-warn-bg); }
.lxp__bm-p { background: var(--c-ok-bg); grid-column: 2; grid-row: 2; }
.lxp__bm-cap { position: absolute; left: var(--sp-2); top: 2px; font-size: var(--fs-tool-sm); color: var(--c-text-sub); }
.lxp__bm-cell { position: relative; display: flex; align-items: center; justify-content: center; }
.lxp__bm-cell.is-t { grid-column: 2; grid-row: 1; }
.lxp__bm-cell.is-l { grid-column: 1; grid-row: 2; }
.lxp__bm-cell.is-r { grid-column: 3; grid-row: 2; }
.lxp__bm-cell.is-b { grid-column: 2; grid-row: 3; }
.lxp__bm-in { width: 100%; text-align: center; padding: 0 2px; }
.lxp__bm-dot { position: absolute; right: 2px; top: 2px; }
.lxp__bm-core { grid-column: 2; grid-row: 2; display: grid; place-items: center; min-height: var(--ctl-h); background: var(--c-surface); border: var(--line-w) solid var(--c-line); border-radius: var(--radius-badge); font-size: var(--fs-tool-sm); color: var(--c-text-sub); }
.lxp__bm-tools { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.lxp__link { padding: 0; border: 0; background: none; color: var(--c-link); font-size: var(--fs-tool); cursor: pointer; }
.lxp__link:hover { text-decoration: underline; }
.lxp__cb { display: flex; flex-direction: column; gap: var(--sp-1); }
.lxp__cbh { display: flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-tool); color: var(--c-text-sub); }
.lxp__free { display: flex; gap: var(--sp-2); align-items: center; }
/* 画像の差し替え・リンク先（C109） */
.lxp__media-b { padding-bottom: var(--sp-2); border-bottom: var(--line-w) solid var(--c-line); }
.lxp__media-b:last-child { padding-bottom: 0; border-bottom: 0; }
.lxp__media-b.is-busy { opacity: .6; pointer-events: none; }
.lxp__acts { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.lxp__radios { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); font-size: var(--fs-tool); }
.lxp__radios[hidden], .lxp__warn[hidden] { display: none; }
.lxp__radios label { display: inline-flex; align-items: center; gap: var(--sp-1); cursor: pointer; }
.lxp__warn { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); padding: var(--sp-2); border-radius: var(--radius); background: var(--c-warn-bg); font-size: var(--fs-small); overflow-wrap: anywhere; }
.lxp__warn .ui-icon { color: var(--c-warn); flex: none; }
.lxp__shield { position: fixed; inset: 0; z-index: 9999; cursor: ew-resize; }
@media (max-width: 1100px) {
  .lx { --lx-vers-w: 224px; --lx-panel-w: 240px; }
}

/* ---------- 全部の画面を画面いっぱいに（C94・801px 以上）----------
   一体画面（C92）で決めた作りを、LP の一覧・フォルダの整理・LP の中のタブ（バージョン・レポート・ヒートマップ・設定）・
   レポート・成果・広告費・設定・自分、全部の画面に広げた。
   ・頭：1本の帯（48px・上に固定）。左のメニューの「Lapisk」の行と同じ白・同じ線・同じ高さでつなぐ。中は左から 名前 → タブ → 最終更新 → 操作
   ・中身：外側の囲み・角丸・画面の端の余白をなくして画面いっぱいに使う。表・グラフ・フォームの中の読みやすさに要る余白は残す
   ・縦に長い画面はふつうにスクロールする（帯だけ上に残る）。一体画面（.ui-app.is-full）だけは、画面の高さに固定する
   800px 以下は今までの見た目のまま（.ui-band は箱を作らない）。 */
.ui-band { display: contents; }
@media (min-width: 801px) {
  .ui-app { --lx-bar-h: calc(var(--ctl-h-lg) + var(--sp-2)); --lx-name-min: calc(var(--sp-5) * 11); --lx-name-need: calc(var(--sp-5) * 8); }
  /* 左のメニューの上（Lapisk の行）を、頭の帯と同じ高さにして、線をつなぐ */
  .ui-brand { height: var(--lx-bar-h); padding-block: 0; border-bottom: var(--line-w) solid var(--c-line); flex: none; }
  .ui-devbar { margin: 0; }
  .ui-page { padding: 0; gap: 0; }
  .ui-page > .ui-loading { padding: var(--sp-4); }
  /* 頭の帯：名前（左）・タブ・最終更新・操作（右）。.ui-head と .ui-head__main は箱を作らず、中身を帯の同じ行に並べる。線は帯の内側の影で引く（タブの下線が重なる） */
  .ui-band { display: flex; align-items: center; height: var(--lx-bar-h); flex: none; min-width: 0; position: relative; z-index: 4;
    background: var(--c-surface); box-shadow: inset 0 calc(-1 * var(--line-w)) 0 var(--c-line); }
  .ui-page > .ui-band { position: sticky; top: 0; }
  .ui-band .ui-head, .ui-band .ui-head__main { display: contents; }
  .ui-head__id { order: 1; display: flex; align-items: center; gap: var(--sp-3); flex: 0 1 auto; min-width: 0; height: 100%; padding: 0 var(--sp-3) 0 var(--sp-4); overflow: hidden; }
  .ui-band--lp .ui-head__id { min-width: var(--lx-name-min); }
  .ui-band > .ui-tabs { order: 2; flex: none; align-self: stretch; align-items: stretch; margin: 0; padding: 0 var(--sp-3); gap: var(--sp-4); border-bottom: 0; overflow: visible; }
  .ui-band > .ui-tabs .ui-tab { padding: 0 var(--sp-1); margin-bottom: 0; }
  .ui-band .ui-head__main > .ui-meta { order: 3; flex: 1 1 0; min-width: 0; margin: 0; padding: 0 var(--sp-3); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ui-band .ui-head__actions { order: 4; flex: none; margin-left: auto; flex-wrap: nowrap; align-self: stretch; padding: 0 var(--sp-3); }
  /* 名前：パンくずは名前の左に小さく（縮めず、入らないときは丸ごと隠す＝shell.js fitBand）。名前は消さない：長ければ「…」で切る（全文は吹き出し）。印・状態・URL のコピー／開くは縮めない */
  .ui-head__id > .ui-crumb { display: block; flex: none; min-width: 0; margin: 0; white-space: nowrap; }
  .ui-head__id > .ui-crumb .ui-crumb__sep { margin: 0 var(--sp-1); }
  .ui-head__id > .ui-meta { flex: 0 100 auto; min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ui-app.is-full .ui-band--lp .ui-crumb { display: none; }        /* 一体画面（バージョンのタブ）だけ、パンくずを置かない。ほかの LP のタブでは、帯に余裕があるとき出す（shell.js fitBand） */
  .ui-head__id .ui-title-row { flex: 0 1 auto; flex-wrap: nowrap; min-width: 0; }
  .ui-head__id .ui-title { font-size: var(--fs-section); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: calc(var(--fs-section) * 3); flex: 0 1 auto; }
  .ui-head__id .ui-title-row > :not(.ui-title) { flex: none; }
  .ui-head__id > .ui-urlline { flex: none; margin: 0; }
  .ui-stack .ui-head__id > .ui-urlline { flex: 0 1 auto; }          /* 2本目の帯（先のページの URL など）は、長ければ URL の文字を「…」で切る */
  .ui-head__id .ui-urlline .ui-mono { display: block; }
  .ui-page > .ui-band .ui-urlline .ui-mono { display: none; }      /* LP の名前の横：URL の文字は、帯に丸ごと入るときだけ（shell.js fitBand が is-t-url を付ける）。コピー・開くのボタンはいつでも */
  .ui-page > .ui-band.is-t-url .ui-urlline .ui-mono { display: block; }
  /* 帯を2本目に置くとき（バージョンの詳細など、タブの中の見出し）：固定しない・同じ作り */
  .ui-stack .ui-band { position: relative; }

  /* 中身：囲み・角丸・端の余白をなくす。面（.ui-block）は端から端まで・面と面は線で区切る。中の余白（表の左右・フォームの欄の間）は残す */
  .ui-app > .ui-main { background: var(--c-surface); }          /* 地も白：左のメニュー・頭の帯・中身が1枚の面になる（灰色は LP の枠・ヒートマップの台紙など、中身の台だけ） */
  .ui-stack { gap: 0; }
  .ui-stack > :last-child { margin-bottom: 0; }
  .ui-block { border: 0; border-bottom: var(--line-w) solid var(--c-line); border-radius: 0; padding: var(--sp-4); }
  .ui-block--table { padding: 0; }
  .ui-stack > .ui-block:last-child, .ui-page > .ui-block:last-child { border-bottom: 0; }
  .ui-grid2 { gap: 0; align-items: stretch; }
  .ui-grid2 > .ui-block:nth-child(odd):not(:last-child) { border-right: var(--line-w) solid var(--c-line); }
  /* 入力欄の並び（フォーム）は、画面が広くても --form-max までで左寄せ。表・一覧・グラフ・帯・面の線は全幅のまま */
  .ui-block > :is(.ui-form, .ui-field, .ui-form-cols, .ui-toggle-row, .ui-choices),
  .ui-block:has(> :is(.ui-form, .ui-field, .ui-form-cols, .ui-choices)) > .ui-block__foot { max-width: var(--form-max); }
  .ui-widths { margin: 0 calc(-1 * var(--sp-4)) var(--sp-4); }
  .ui-widths__item { padding: var(--sp-3) var(--sp-4); }
  .ui-empty { border: 0; border-radius: 0; background: none; }
  .ui-page > .ui-notice, .ui-stack > .ui-notice { border-width: 0 0 var(--line-w); border-radius: 0; padding: var(--sp-2) var(--sp-4); }
  .ui-page > .ui-error, .ui-stack > .ui-error { margin: 0; border-width: 0 0 var(--line-w); border-radius: 0; padding: var(--sp-3) var(--sp-4); }
  .ui-stack > .ui-filters, .ui-page > .ui-filters { padding: var(--sp-3) var(--sp-4); background: var(--c-surface); border-bottom: var(--line-w) solid var(--c-line); }
  .ui-tabbar { padding: var(--sp-2) var(--sp-4); background: var(--c-surface); border-bottom: var(--line-w) solid var(--c-line); min-height: calc(var(--ctl-h-lg) + var(--sp-1)); }
  .ui-tabbar:not(:has(.ui-tabbar__main > :not([hidden]), .ui-head__actions > *)) { display: none; }
  .hm { border: 0; border-radius: 0; }
  .ui-pager { padding-inline: var(--sp-4); }

  /* 一体画面（バージョンのタブ）：画面の高さに固定して、LP の枠を端までぴったり広げる（ページはスクロールしない） */
  .ui-app.is-full { height: 100vh; min-height: 0; overflow: hidden; }
  .ui-app.is-full > .ui-main { display: flex; flex-direction: column; height: 100vh; min-height: 0; }
  .ui-app.is-full > .ui-main > .ui-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .ui-app.is-full .ui-page { flex: 1; min-height: 0; display: grid; container: lxpage / inline-size;
    grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--lx-bar-h) minmax(0, 1fr); }
  .ui-app.is-full .ui-page > .ui-loading { display: none; }
  .ui-app.is-full .ui-page > .ui-stack { grid-row: 2; min-height: 0; gap: 0; }
  .ui-app.is-full .lx { flex: 1; min-height: 0; border: 0; border-radius: 0; }
}
/* 頭の帯が収まらないときの順番（QA 46 中1：帯ごとに、本当に入りきらないときだけ縮める）。
   shell.js の fitBand が、帯の中身を実際に測って、入る所までだけ次の印を足す：
   ①is-t-crumb パンくずを隠す ②is-t-act 操作を図柄だけに（図柄のあるボタンだけ。文字だけのボタンはそのまま）
   ③is-t-meta 最終更新・メールなどの補足を、右から名前の下の1行へ（is-t-under。消さない。長ければ「…」・全文は吹き出し）④is-t-tabs タブを図柄だけに。
   名前・コピー・開くは最後まで残す。URL の文字（is-t-url）は逆で、全部が文字のまま入ったうえで余るときだけ出す。
   帯の幅で決まる＝左のメニューを閉じて広がれば、元に戻る */
@media (min-width: 801px) {
  .ui-band.is-t-crumb .ui-head__id > .ui-crumb { display: none; }
  .ui-band.is-t-act .ui-head__actions .ui-btn:has(> .ui-icon:first-child) { width: var(--ctl-h); padding: 0; }
  .ui-band.is-t-act .ui-head__actions .ui-btn:has(> .ui-icon:first-child) > span { display: none; }
  .ui-band.is-t-act .ui-head__actions .ui-btn[aria-haspopup]:has(> .ui-icon:first-child) { width: auto; padding: 0 var(--sp-2); }
  .ui-band.is-t-act .ui-head__actions .ui-btn > .ui-icon:last-child:not(:first-child) { margin-left: 0; }
  .ui-band.is-t-under .ui-head__id { padding-bottom: calc(var(--fs-small) + var(--sp-2)); }
  .ui-band.is-t-under .ui-head__main > .ui-meta { position: absolute; left: var(--sp-4); bottom: var(--sp-1); order: 0; flex: none; padding: 0; text-align: left;
    max-width: var(--lx-under-w, 50%); line-height: 1.25; }
  .ui-band.is-t-tabs > .ui-tabs { gap: var(--sp-3); }
  .ui-band.is-t-tabs .ui-tab > span { display: none; }
  /* 測るとき（fitBand だけが一瞬付ける）：縮まない・切れない自然な幅にして足し合わせる。名前は --lx-name-need までで数える（それより長い名前は「…」で切る） */
  .ui-band.is-measure .ui-head__id, .ui-band.is-measure .ui-head__id > *, .ui-band.is-measure .ui-head__main > .ui-meta,
  .ui-band.is-measure .ui-head__actions, .ui-band.is-measure > .ui-tabs { flex: none; }
  .ui-band.is-measure .ui-head__id .ui-title { flex: none; max-width: var(--lx-name-need); }
  .ui-band.is-measure .ui-head__actions { margin-left: 0; }
  .ui-stack .ui-band.is-measure .ui-urlline .ui-mono { display: none; }
}
/* 一体画面の中の幅の順番：①上の道具の帯の文字を隠して図柄だけに ②右のパネルを少し細く。左のバージョンの列は、枠が狭すぎるとき JS が自動で細い列にする（e5_lx.js の VERS_AUTO_W） */
@container lxpage (max-width: 747px) {
  .ui-app.is-full .lx__ctx__name { min-width: 0; flex: 0 1 auto; overflow: hidden; }
  .ui-app.is-full .lx__ctx { padding: 0 var(--sp-3); gap: var(--sp-1); }
  .ui-app.is-full .lx__hint > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ui-app.is-full .lx__ctx .ui-btn > span { display: none; }
  .ui-app.is-full .lx__ctx .ui-btn { width: var(--ctl-h-sm); padding: 0; }
}
@container lxpage (max-width: 779px) {
  .ui-app.is-full .lx__top .lx__seg > button > span, .ui-app.is-full .lx__top .ui-btn > span { display: none; }
  .ui-app.is-full .lx__top .ui-btn { width: var(--ctl-h-sm); padding: 0; }
  .ui-app.is-full .lx__top .lx__seg > button { padding: 0 var(--sp-2); }
}
/* 右のタブは5つ（チェック・ポップアップを足した）。パネルが 360px より狭いと、文字を隠して図柄だけ（名前は aria-label と data-tip）。
   画面の幅ではなくパネルの幅で決める（1100px 以下でパネルが 240px になる・全画面の狭い幅でも同じ） */
.lx__panel { container: lxpanel / inline-size; }
@container lxpanel (max-width: 359px) {
  .lx:not(.is-pmin) .lx__ptab__t { display: none; }
  .lx:not(.is-pmin) .lx__ptab { padding: 0 var(--sp-2); }
}
@container lxpage (max-width: 659px) {
  .ui-app.is-full .lx:not(.is-pmin) { --lx-panel-w: calc(var(--sp-6) * 5); }
  .ui-app.is-full .lx:not(.is-pmin) .lx__ptab__t { display: none; }
  .ui-app.is-full .lx:not(.is-pmin) .lx__ptab { padding: 0 var(--sp-2); }
}

/* ---------- 一体画面の左（バージョン）・右（パネル）の列をたたむ（C93）：細い列＝アイコンだけ（幅は左のメニューの細い列と同じ）。LP の枠が広がる ---------- */
.lx { --lx-rail-w: calc(var(--nav-h) + var(--sp-2) * 2); }
.lx.is-vmin { --lx-vers-w: var(--lx-rail-w); }
.lx.is-pmin { --lx-panel-w: var(--lx-rail-w); }
.lx__vtoggle { flex: none; }
.lx.is-vmin .lx__vers { align-items: center; gap: var(--sp-1); padding: var(--sp-2) 0; overflow-y: auto; }
.lx__vchip { position: relative; flex: none; width: var(--nav-h); height: var(--nav-h); border: 0; border-radius: var(--radius); background: none; cursor: pointer; padding: 0;
  color: var(--c-text-sub); font-size: var(--fs-small); font-weight: var(--fw-strong); font-variant-numeric: tabular-nums; }
.lx__vchip:hover { background: var(--c-hover-icon); color: var(--c-text); }
.lx__vchip.is-live::after { content: ""; position: absolute; top: calc(var(--sp-1) / 2); right: calc(var(--sp-1) / 2); width: var(--sp-2); height: var(--sp-2); border-radius: 50%; background: var(--c-ok); box-shadow: 0 0 0 calc(var(--sp-1) / 2) var(--c-surface); }
.lx__vchip.is-live.is-current::after { box-shadow: 0 0 0 calc(var(--sp-1) / 2) var(--c-side-active); }
.lx__vadd, .lx__vsplit { flex: none; }
/* 自動で細くした列を開くとき：LP の枠の幅は変えず、バージョンの列を上に重ねる。外を押す・Esc で閉じる（e5_lx.js の openOver） */
.lx.is-vover { position: relative; grid-template-columns: var(--lx-rail-w) minmax(0, 1fr) var(--lx-panel-w); }
.lx.is-vover > .lx__mid { grid-column: 2; grid-row: 2; }
.lx.is-vover > .lx__panel { grid-column: 3; grid-row: 2; }
.lx.is-vover > .lx__vers { position: absolute; left: 0; top: var(--lx-top-h); bottom: 0; width: var(--lx-vers-w); z-index: 6; box-shadow: var(--shadow-pop); }
.lx__vshield { position: absolute; left: 0; right: 0; top: var(--lx-top-h); bottom: 0; z-index: 5; }
.lx__vchip.is-current { background: var(--c-side-active); color: var(--c-side-active-text); }
.lx__ptabs { align-items: center; }
.lx__ptablist { display: flex; }
.lx__ptoggle { margin-left: auto; }
.lx__ptoggle .ui-icon { transform: scaleX(-1); }           /* 右の列なので、図柄は線が右側になる向き */
.lx.is-pmin .lx__pbody { display: none; }
.lx.is-pmin .lx__ptabs, .lx.is-pmin .lx__ptablist { flex-direction: column; gap: var(--sp-1); }
.lx.is-pmin .lx__ptabs { padding: var(--sp-2) 0; border-bottom: 0; }
.lx.is-pmin .lx__ptoggle { order: -1; margin: 0; }
.lx.is-pmin .lx__ptab { position: relative; width: var(--nav-h); height: var(--nav-h); padding: 0; justify-content: center; border: 0; border-radius: var(--radius); }
.lx.is-pmin .lx__ptab:hover { background: var(--c-hover-icon); }
.lx.is-pmin .lx__ptab.is-current { background: var(--c-side-active); color: var(--c-side-active-text); }
.lx.is-pmin .lx__ptab__t { display: none; }
.lx.is-pmin .lx__cnt { position: absolute; top: calc(var(--sp-1) / -2); right: calc(var(--sp-1) / -2); }
.lx__mark { display: none; }
.lx.is-pmin .lx__mark, .lx.is-pmin .lx__busy { display: block; position: absolute; top: calc(var(--sp-1) / 2); right: calc(var(--sp-1) / 2); width: var(--sp-2); height: var(--sp-2); border-radius: 50%; background: var(--c-primary); box-shadow: 0 0 0 calc(var(--sp-1) / 2) var(--c-surface); }

/* ---------- 使い方（FAQ・pages/h1_help.js） ---------- */
.hp-filters { min-width: 0; }
.hp-search > input { width: calc(var(--ctl-h) * 11); max-width: 100%; }
.hp-count { margin-left: auto; }
.hp-list { max-width: 960px; }
.hp-item { border-top: var(--line-w) solid var(--c-line); scroll-margin-top: 96px; }      /* 上に固定の帯（48px）・狭い幅の上のメニューに隠れない */
.hp-item:first-of-type { border-top: 0; }
.hp-item__q { display: flex; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-3) 0; cursor: pointer; font-weight: var(--fw-strong);
  color: var(--c-text); line-height: var(--lh-ui); list-style: none; overflow-wrap: anywhere; }
.hp-item__q::-webkit-details-marker { display: none; }
.hp-item__q > .ui-icon { flex: none; margin-top: 3px; color: var(--c-text-sub); }
.hp-item__q:hover { color: var(--c-link); }
.hp-item[open] > .hp-item__q > .ui-icon { color: var(--c-primary); }
.hp-item__body { padding: 0 0 var(--sp-4) calc(var(--icon-16) + var(--sp-2)); line-height: var(--lh-text); overflow-wrap: anywhere; min-width: 0; }
.hp-sb { display: flex; gap: var(--sp-2); align-items: baseline; margin: 0 0 var(--sp-3); padding: var(--sp-2) var(--sp-3); background: var(--c-bg-sub);
  border-radius: var(--radius); color: var(--c-text-sub); font-size: var(--fs-small); }
.hp-sb__k { flex: none; font-weight: var(--fw-strong); color: var(--c-text); }
.hp-steps, .hp-notes { margin: 0 0 var(--sp-3); padding-left: var(--sp-5); }
.hp-steps > li + li, .hp-notes > li + li { margin-top: var(--sp-1); }
.hp-notes { color: var(--c-text-sub); font-size: var(--fs-small); }
.hp-ui { font-weight: var(--fw-strong); color: var(--c-text); }
.hp-item__foot { display: flex; justify-content: flex-start; }
@media (max-width: 800px) {
  .hp-search, .hp-search > input { width: 100%; }
  .hp-count { margin-left: 0; }
  .hp-item__body { padding-left: 0; }
  .hp-sb { flex-direction: column; gap: var(--sp-1); }
}

/* ---------- 一体画面の右「チェック」（e5_lx_check.js・CEO 2026-10-29）：公開の条件・反映待ちの見比べと反映・先のページ・プレビュー・中身の履歴 ---------- */
.lx__pbody--check { gap: 0; padding: 0; }
.lxc { display: flex; flex-direction: column; min-width: 0; }
.lxc__head { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-bottom: var(--line-w) solid var(--c-line); }
.lxc__name { display: flex; align-items: flex-start; gap: var(--sp-2); min-width: 0; overflow-wrap: anywhere; font-size: var(--fs-small); }
.lxc__name > .ui-icon { color: var(--c-text-sub); flex: none; }
.lxc__badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
/* 右のタブは4つ（調整・履歴・チェック・AI）：幅 300px に収まるよう、タブの横の余白を詰める */
.lx:not(.is-pmin) .lx__ptab { padding: 0 var(--sp-2); gap: 4px; }
.lxc__next { display: flex; flex-direction: column; gap: var(--sp-2); margin: var(--sp-3) var(--sp-4); padding: var(--sp-3); border: var(--line-w) solid var(--c-line); border-radius: var(--radius); font-size: var(--fs-small); }
.lxc__next.is-ok { background: var(--c-ok-bg); border-color: color-mix(in srgb, var(--c-ok) 30%, transparent); }
.lxc__next.is-warn { background: var(--c-warn-bg); border-color: color-mix(in srgb, var(--c-warn) 30%, transparent); }
.lxc__next.is-info { background: var(--c-primary-weak); border-color: color-mix(in srgb, var(--c-primary) 30%, transparent); }
.lxc__next__t { display: flex; align-items: center; gap: var(--sp-2); }
.lxc__next.is-ok .lxc__next__t > .ui-icon { color: var(--c-ok); }
.lxc__next.is-warn .lxc__next__t > .ui-icon { color: var(--c-warn); }
.lxc__next.is-info .lxc__next__t > .ui-icon { color: var(--c-primary); }
.lxc__checks { background: var(--c-surface); border-radius: var(--radius); padding: 0 var(--sp-2); }
.lxc__checks > li { min-height: 0; padding: var(--sp-2) 0; align-items: flex-start; }
.lxc__checks .ui-sub { font-size: var(--fs-tool); }
.lxc__acts { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.lxc__sub { margin: 0; color: var(--c-text-sub); font-size: var(--fs-tool); line-height: 1.5; overflow-wrap: anywhere; }
.lxc__sub.is-warn { color: var(--c-warn); display: flex; gap: var(--sp-1); align-items: flex-start; }
.lxc__pending > .lxc__sub.is-warn { margin: 0 var(--sp-4) var(--sp-2); }
.lxc__sec { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-top: var(--line-w) solid var(--c-line); min-width: 0; }
.lxc__h { display: flex; align-items: center; gap: var(--sp-2); margin: 0; font-size: var(--fs-small); font-weight: var(--fw-strong); color: var(--c-text-sub); }
.lxc__seg { align-self: flex-start; }
.lxc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-1); }
.lxc__item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-2); padding: var(--sp-2); border: var(--line-w) solid var(--c-line); border-radius: var(--radius); font-size: var(--fs-tool); overflow-wrap: anywhere; }
.lxc__item.is-click { cursor: pointer; }
.lxc__item.is-click:hover, .lxc__item.is-click:focus-visible { background: var(--c-hover); }
.lxc__item.is-strong { border-color: color-mix(in srgb, var(--c-warn) 45%, transparent); }
.lxc__item.is-aff { border-color: var(--c-ng); background: var(--c-ng-bg); }
.lxc__item.is-same { color: var(--c-text-sub); }
.lxc__item__b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lxc__ba { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px var(--sp-2); }
.lxc__ent { display: flex; flex-direction: column; min-width: 0; }
.lxc__ent .ui-mono { font-size: var(--fs-tool-sm); word-break: break-all; }
.lxc__fold > summary { cursor: pointer; font-size: var(--fs-tool); color: var(--c-text-sub); padding: var(--sp-1) 0; }
.lxc__fold > .lxc__list { margin-top: var(--sp-1); }
details.lxc__sec > summary { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-small); font-weight: var(--fw-strong); }
.lxc__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-1); }
.lxc__row { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-1) var(--sp-2); border-radius: var(--radius); font-size: var(--fs-tool); min-width: 0; }
.lxc__row.is-click { cursor: pointer; }
.lxc__row.is-click:hover { background: var(--c-hover); }
.lxc__row__t { display: flex; flex-direction: column; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.lxc__url { display: flex; align-items: center; gap: var(--sp-1); min-width: 0; }
.lxc__url > .ui-mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-tool); }
.lxc__kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-1) var(--sp-3); margin: var(--sp-2) 0 0; font-size: var(--fs-tool); }
.lxc__kv dt { color: var(--c-text-sub); }
.lxc__kv dd { margin: 0; overflow-wrap: anywhere; }
.lxc-standalone .lxc__next { margin-left: 0; margin-right: 0; }
.lxc-standalone .lxc__sec, .lxc-standalone .lxc__head { padding-left: 0; padding-right: 0; }
/* 左の一覧：公開できない印は押せる（右の「チェック」へ）・先のページは選べる行・アーカイブは押すと一覧 */
button.lx__warn { border: 0; background: none; padding: 0; cursor: pointer; }
button.lx__page { width: calc(100% - var(--sp-5)); border: 0; background: none; text-align: left; cursor: pointer; font: inherit; font-size: var(--fs-small); }
button.lx__page.is-current { background: var(--c-side-active); color: var(--c-side-active-text); }
button.lx__page .ui-badge { flex: none; }
.lx__vers__foot .lx__arch { align-self: flex-start; }
.lx:not(.is-pmin) .lx__ptab .lx__mark.is-info { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-primary); }
/* 真ん中の見比べ（今の中身／反映したあと）：編集の LP の上に重ねる */
.lx__cmp { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; background: var(--t-bg); }
.lx__cmp[hidden] { display: none; }
.lx__cmpbar { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4); background: var(--c-primary-weak); border-bottom: var(--line-w) solid var(--c-line); font-size: var(--fs-small); }
.lx__cmpstage { flex: 1; min-height: 0; overflow: hidden; padding: var(--sp-3) var(--sp-4); display: flex; justify-content: center; }
.lx__cmpbox { position: relative; overflow: hidden; background: var(--c-surface); box-shadow: var(--shadow-card), 0 8px 24px -12px rgba(26, 31, 54, .25); flex: none; }
.lx__cmpframe { border: 0; display: block; transform-origin: 0 0; background: #fff; }

/* ---------- 一体画面の右「ポップアップ」（e5_lx_popup.js・docs/design/31）。パネルが 300px でも切れない（折り返す・縦に積む・min-width: 0） ---------- */
.lx:not(.is-pmin) .lx__ptab .lx__mark.is-ok { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c-ok); }
.lx__pp { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-tool); color: var(--c-side-active-text); background: var(--c-primary-weak); border-radius: var(--radius); padding: 0 var(--sp-2); height: var(--badge-h); white-space: nowrap; }
.lx__pp .ui-icon { flex: none; }
.lx__pbody--popup { padding: 0; gap: 0; }
.ppx { display: flex; flex-direction: column; flex: none; min-height: 100%; min-width: 0; }
.ppx__subbar { position: sticky; top: 0; z-index: 2; padding: var(--sp-3) var(--sp-4) var(--sp-1); background: var(--c-surface); }
.ppx__acts .ui-btn { white-space: nowrap; }
.ppx__body { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-3) var(--sp-4) var(--sp-4); min-width: 0; flex: 1; }
.ppx__top { display: flex; flex-direction: column; gap: var(--sp-2); }
.ppx__on { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.ppx__onl { font-weight: var(--fw-strong); font-size: var(--fs-body); min-width: 0; overflow-wrap: anywhere; }
.ppx__sect { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.ppx__h { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--ctl-h-sm); flex-wrap: wrap; }
.ppx__h h3 { margin: 0; font-size: var(--fs-small); font-weight: var(--fw-strong); }
.ppx__grow { flex: 1; }
.ppx__sub { font-size: var(--fs-tool); color: var(--c-text-sub); overflow-wrap: anywhere; line-height: var(--lh-ui); }
.ppx__prev { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); }
.ppx__trig { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-2) 0; border-bottom: var(--line-w) solid var(--c-line); min-width: 0; }
.ppx__trig1 { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; min-width: 0; }
.ppx__tl { font-size: var(--fs-body); }
.ppx__tn { display: inline-flex; align-items: center; gap: var(--sp-1); }
.ppx__unit { font-size: var(--fs-small); color: var(--c-text-sub); }
.ppx__dev { font-size: var(--fs-tool); color: var(--c-text-sub); border: var(--line-w) solid var(--c-line-strong); border-radius: var(--radius); padding: 0 var(--sp-1); }
.ppx__in { width: 100%; min-width: 0; max-width: 100%; }
.ppx__in.ppx__num { width: 5.5em; text-align: right; font-variant-numeric: tabular-nums; }
.ppx__sel { text-overflow: ellipsis; }
.ppx__trig:not(.is-on) .ppx__sel { opacity: .6; }
.ppx__ta { min-height: calc(var(--ctl-h) * 5); line-height: var(--lh-text); font-size: var(--fs-small); }
.ppx__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
.ppx__card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-1); padding: var(--sp-2) var(--sp-3); text-align: left; min-width: 0;
  border: var(--line-w) solid var(--c-line-strong); border-radius: var(--radius); background: var(--c-surface); color: var(--c-text); font: inherit; cursor: pointer; }
.ppx__card:hover { background: var(--c-hover); }
.ppx__card.is-on { border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary) inset; }
.ppx__cn { font-size: var(--fs-small); overflow-wrap: anywhere; line-height: var(--lh-tight); }
.ppx__cs { font-size: var(--fs-tool); color: var(--c-text-sub); overflow-wrap: anywhere; }
.ppx__badge { font-size: var(--fs-tool); color: var(--c-text-sub); border: var(--line-w) solid var(--c-line-strong); border-radius: var(--radius); padding: 0 var(--sp-1); }
.ppx__add { align-items: center; justify-content: center; flex-direction: row; gap: var(--sp-1); background: var(--c-bg-sub); border-style: dashed; color: var(--c-text-sub); }
.ppx__edit { padding-top: var(--sp-3); border-top: var(--line-w) solid var(--c-line); }
.ppx__f { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; }
.ppx__fl { font-size: var(--fs-small); color: var(--c-text-sub); font-weight: var(--fw-th); display: inline-flex; align-items: center; gap: var(--sp-1); }
.ppx__seg { max-width: 100%; }
.ppx__seg > button { padding: 0 var(--sp-2); height: auto; min-height: calc(var(--ctl-h) - 2 * var(--line-w)); white-space: normal; text-align: left; line-height: var(--lh-tight); }
.ppx__chk { font-size: var(--fs-small); }
.ppx__chk.is-off { opacity: .5; }
.ppx__row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.ppx__color { width: 48px; height: var(--ctl-h); padding: 0; border: var(--line-w) solid var(--c-line-strong); border-radius: var(--radius); background: none; }
.ppx__more > summary { cursor: pointer; font-size: var(--fs-tool); color: var(--c-text-sub); padding: var(--sp-1) 0; }
.ppx__more { display: flex; flex-direction: column; gap: var(--sp-2); }
.ppx__note { display: flex; align-items: flex-start; gap: var(--sp-2); margin: 0; padding: var(--sp-2); border-radius: var(--radius); font-size: var(--fs-tool); line-height: var(--lh-ui); overflow-wrap: anywhere; }
.ppx__note .ui-icon { flex: none; margin-top: 2px; }
.ppx__note.is-warn { background: var(--c-warn-bg); color: var(--c-warn); }
.ppx__note.is-info { background: var(--c-primary-weak); color: var(--c-text); }
.ppx__note.is-ng { background: var(--c-ng-bg); color: var(--c-ng); }
.ppx__bns { display: flex; flex-direction: column; gap: var(--sp-2); max-height: calc(var(--ctl-h) * 8); overflow-y: auto; }
.ppx__bn { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-1); text-align: left; min-width: 0; font: inherit; cursor: pointer;
  border: var(--line-w) solid var(--c-line-strong); border-radius: var(--radius); background: var(--c-surface); color: var(--c-text); }
.ppx__bn:hover:not(:disabled) { background: var(--c-hover); }
.ppx__bn.is-on { border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary) inset; }
.ppx__bn img { width: 64px; height: 44px; object-fit: cover; border-radius: var(--radius); flex: none; background: var(--c-bg-sub); }
.ppx__bnt { display: flex; flex-direction: column; min-width: 0; font-size: var(--fs-tool); color: var(--c-text-sub); }
.ppx__bnt b { font-size: var(--fs-small); color: var(--c-text); overflow-wrap: anywhere; font-weight: var(--fw-strong); }
.ppx__bnt span { overflow-wrap: anywhere; }
.ppx__qz { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-2); border: var(--line-w) solid var(--c-line); border-radius: var(--radius); min-width: 0; }
.ppx__qzh { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); font-size: var(--fs-small); }
.ppx__op { display: flex; flex-direction: column; gap: var(--sp-1); padding-left: var(--sp-2); border-left: 2px solid var(--c-line); }
.ppx__bar { position: sticky; bottom: 0; display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4); background: var(--c-surface); border-top: var(--line-w) solid var(--c-line); z-index: 1; }
.ppx__bar:empty { display: none; }
.ppx__acts { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-2); flex-wrap: wrap; }
.ppx__dirty { margin-right: auto; }
.ppx__stage { display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); min-width: 0; }
.ppx__try { display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--sp-1); }
.ppx__try .ui-btn.is-on { background: var(--c-primary-weak); border-color: var(--c-primary); }
.ppx__stat { display: flex; flex-direction: column; gap: var(--sp-3); }
.ppx__kpis { display: flex; flex-direction: column; gap: var(--sp-2); }
.ppx__kpi { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-2) var(--sp-3); border: var(--line-w) solid var(--c-line); border-radius: var(--radius); font-size: var(--fs-small); }
.ppx__kv { display: flex; justify-content: space-between; gap: var(--sp-2); color: var(--c-text-sub); }
.ppx__kv b { color: var(--c-text); font-variant-numeric: tabular-nums; }
.ppx__gos { display: flex; flex-direction: column; gap: var(--sp-2); }
.ppx__go { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border: var(--line-w) solid var(--c-line-strong); border-radius: var(--radius); color: var(--c-text); text-decoration: none; min-width: 0; }
.ppx__go:hover { background: var(--c-hover); }
.ppx__gt { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: var(--fs-tool); color: var(--c-text-sub); }
.ppx__gt b { font-size: var(--fs-small); color: var(--c-text); }

/* ---------- ヒートマップの「LP／ポップアップA／B…」の切り替え（d2_heatmap.js・docs/design/31 7回目） ---------- */
.hm-tb__pxl { font-size: var(--fs-small); color: var(--c-text-sub); }
.hm-pp { flex: 1; min-height: 0; overflow: auto; padding: var(--sp-4); }
.hm-pp[hidden] { display: none; }
.hm-pp__in { display: flex; flex-direction: column; gap: var(--sp-3); max-width: 960px; }
.hm-pp__t { margin: 0; font-size: var(--fs-section); }
.hm-pp__cs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--sp-4); }
.hm-pp__c { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; border: var(--line-w) solid var(--c-line); border-radius: var(--radius); padding: var(--sp-3); overflow-x: auto; }
.hm-pp__v { margin: 0; font-size: var(--fs-small); font-weight: var(--fw-strong); }
.hm-pp__h { margin: var(--sp-2) 0 0; font-size: var(--fs-small); }
.hm-body[hidden] { display: none; }

/* ---------- UI 導線の直し（2026-11-16・docs/research/ui-dousen/04）：設定の行の編集・バージョンを比べるの行き来・レポート一覧の列を選ぶ ---------- */
.ui-rows__wrap { display: flex; flex-direction: column; gap: var(--sp-2); align-items: flex-start; }
.ui-rows { display: flex; flex-direction: column; gap: var(--sp-2); width: 100%; }
.ui-rows__row input[type="text"] { flex: 1 1 10rem; min-width: 0; }
.hm-cmp-link { align-self: flex-start; margin: var(--sp-2) 0; }

/* ---------- 一体画面の導線の直し（2026-11-16・docs/research/ui-dousen/04 の問題2〜4・7・e5_lx.js）：右の切り替えの名前・保存の状態・反映待ちの帯 ---------- */
/* 右の切り替えの5つ（調整・履歴・チェック・ポップアップ・AI）は名前を出す。パネルが 360px より狭いときは、隠さずにアイコンの下に小さく。
   数・印は右上に重ねる（名前の行を押し広げない）。全画面のとても狭い幅（lxpage 659px 以下）は、今までどおりアイコンだけ（名前は吹き出し） */
.lx:not(.is-pmin) .lx__ptab { position: relative; }
@container lxpanel (max-width: 359px) {
  .lx:not(.is-pmin) .lx__ptablist { flex: 1; min-width: 0; }
  .lx:not(.is-pmin) .lx__ptab { flex: 1 1 auto; flex-direction: column; justify-content: center; gap: 2px; height: 44px; padding: 0 2px; }
  .lx:not(.is-pmin) .lx__ptab__t { display: block; font-size: var(--fs-tool-sm); line-height: 1; white-space: nowrap; }
  .lx:not(.is-pmin) .lx__ptab .lx__cnt { position: absolute; top: 2px; right: 0; min-width: 14px; height: 14px; padding: 0 3px; font-size: var(--fs-tool-sm); }
  .lx:not(.is-pmin) .lx__ptab .lx__mark.is-info, .lx:not(.is-pmin) .lx__ptab .lx__mark.is-ok, .lx:not(.is-pmin) .lx__ptab .lx__busy { position: absolute; top: 4px; right: 2px; }
}
/* 保存の状態：保存中…の印は回す */
.lx__top .ui-btn.is-saving .ui-icon, .lx__hint[data-hint="saving"] .ui-icon { animation: lx-spin 1s linear infinite; }
@keyframes lx-spin { to { transform: rotate(360deg); } }
/* 反映待ちの帯（LP のほかのタブと同じ ui-next）：真ん中の列の上、LP の枠の上に1本 */
.lx__notices > .lx__pband { flex-wrap: wrap; border-radius: 0; border-width: 0 0 var(--line-w); padding: var(--sp-2) var(--sp-4); gap: var(--sp-1) var(--sp-3); font-size: var(--fs-small); }
.lx__notices > .lx__pband .ui-next__body { display: flex; flex-direction: column; flex: 1 1 240px; min-width: 0; }
.lx__notices > .lx__pband .ui-next__acts { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
/* 右の「調整」のいちばん上の「中身（文字・説明）」 */
.lxp__sec--content { border-top: var(--line-w) solid var(--c-line); }

/* ===== 導線の直し（A3 担当・2026-11-16）：中身を入れる窓・LP の設定の保存バー・割合の自動入力・ポップアップを上から順に・反映の確認 ===== */
.lxf { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.lxf__mode { align-items: flex-start; }
.lxf__mode > .ui-icon { margin-top: 3px; }
.lxf__mode__t { display: flex; flex-direction: column; gap: 2px; }
.lxf__panel { display: flex; flex-direction: column; gap: var(--sp-2); padding-left: var(--sp-3); border-left: var(--line-w) solid var(--c-line); }
.lxf__panel[hidden] { display: none; }
.lxf__paste { width: 100%; min-height: 160px; font-size: var(--fs-tool); }
.lxf__sum { margin: 0; overflow-wrap: anywhere; }
.ui-savebar { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-3); flex-wrap: wrap;
  padding: var(--sp-3) var(--sp-4); background: var(--c-surface); border-top: var(--line-w) solid var(--c-line); }
.ui-savebar__state { display: inline-flex; align-items: center; gap: var(--sp-2); margin-right: auto; color: var(--c-text-sub); font-size: var(--fs-tool); }
.ui-savebar__state.is-warn { color: var(--c-warn); font-weight: var(--fw-strong); }
.ui-total-pct { flex-wrap: wrap; }
.ui-total-pct__why { flex-basis: 100%; font-weight: normal; font-size: var(--fs-tool); }
.ui-pct-in.is-auto > input { background: var(--c-primary-weak); }
.lxc__confirm { display: flex; flex-direction: column; gap: var(--sp-2); }
.lxc__confirm__sum { margin: 0; }
.ppx__first { padding: var(--sp-3); border: var(--line-w) dashed var(--c-line); border-radius: var(--radius); }
.ppx__f.is-bad .ppx__in { border-color: var(--c-ng); }
.ppx__fielderr { display: flex; align-items: flex-start; gap: var(--sp-1); margin: 0; color: var(--c-ng); font-size: var(--fs-tool); line-height: var(--lh-ui); overflow-wrap: anywhere; }
.ppx__fielderr .ui-icon { flex: none; margin-top: 2px; }

/* ---------- 導線の直し・3回目（2026-11-16）：詳細設定の ASP の列の対応は1行に収める ---------- */
.ui-rows__row--asp { flex-wrap: nowrap; }
.ui-rows__row--asp > input[type="text"] { flex: 1 1 0; min-width: 0; }
.ui-rows__row--asp > select { flex: 0 0 auto; }
.ui-rows__row--asp > .ui-btn { flex: none; }
/* レポート一覧のまとめの行の名前（グループ・フォルダ・媒体など）は切らずに折り返す（N10）。1列目の幅は少し広げ、全文は title にも */
.ui-table tr.is-subtotal .d1-first { max-width: 26em; }
.ui-table tr.is-subtotal .d1-first .ui-tree__t { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: var(--lh-ui); }
.ui-table tr.is-subtotal .d1-first .ui-tree__n { flex: none; white-space: nowrap; }
.ui-rows__wrap:has(.ui-rows__row--asp) { align-items: stretch; min-width: 0; }
.ui-rows__wrap:has(.ui-rows__row--asp) > .ui-btn { align-self: flex-start; }
