/* 写し（直さない）。正本は projects/tsugite/design/components.css。node projects/tsugite/design/sync.mjs で写す */
/* ツギテ（仮称）見た目の正本 2/2 — components.css（部品: 土台・上の帯・下のナビ・左のナビ・見出し・ボタン・鍵・今日の行・入力・検査・表・知らせ・AIの枠・営業モードの帯・
   画面ごとの部品・固定の帯 .dock・浮かせたボタン .fab・下から出る板 .sheet・状態の印 .st・種類の印 .kmark）。
   色・大きさは tokens.css の変数だけを使う（直書きの色を書かない）。デモにしかない物（入口・運営・パートナー・見本の画像）は demo/css/app.css。 */

/* ---------- 土台 ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  letter-spacing: .02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: .01em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { letter-spacing: inherit; }
code { font-family: var(--font-code); font-size: .92em; }
::placeholder { color: var(--muted); opacity: 1; }

/* 数字は数字の書体（等幅・ライニング）。数字と記号しか持たないので「件」「円」は本文の書体に戻る */
.num, .opt-price, .total-main, .total-sub, .stepper-v, .lock-delta, .tl-date, .side-code, .section-aside, .ops-figs strong,
.f10-clock, .trow-when, .table td.r, .table td.num, .side-count, .tab-count, .ledger-count, .ledger-n, .guide-count, .toast-count, .ai-quota, .rec-time {
  font-family: var(--font-num);
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand-mark { flex: none; fill: currentColor; }

/* ---------- 上部の帯（5-1） ---------- */
.band {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--band-h);
  background: var(--band-bg);
  color: var(--on-band);
  border-bottom: 1px solid var(--band-bg);
  view-transition-name: band;
  transition: box-shadow var(--dur-1);
}
.band.is-scrolled { box-shadow: var(--shadow-band); }
.band-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 0 var(--sp-3) 0 var(--sp-4);
  max-width: 1360px;
  margin: 0 auto;
}
.band-left { display: inline-flex; align-items: center; gap: var(--sp-2); min-width: 0; }
.band-mark { display: inline-flex; color: var(--on-band); }
.band-sample {
  display: inline-flex;
  align-items: center;
  padding: 1px var(--sp-2);
  border: 1px solid var(--band-sample-line);
  border-radius: var(--r-1);
  font-size: var(--fs-cap);
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--on-band);
  white-space: nowrap;
}
.band-plan {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  min-width: 0;
  padding: 0 var(--sp-1) 0 var(--sp-3);
  color: var(--on-band);
  text-decoration: none;
  font-size: var(--fs-sub);
  font-weight: 700;
}
.band-plan-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.band-tenant { font-weight: 400; color: var(--on-band-2); font-size: var(--fs-cap); white-space: nowrap; }
.band-plan { display: none; }
.app.has-guide .band-plan { display: inline-flex; }
.band-switch { display: flex; align-items: stretch; height: 100%; }
.band-switch-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-bottom: 2px solid transparent;
  color: var(--on-band-2);
  font-size: var(--fs-sub);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.band-switch-link.is-current { color: var(--on-band); border-bottom-color: var(--on-band); }
.band :focus-visible { outline-color: var(--on-band); }
.sw-short { display: none; }
@media (min-width: 960px) { [data-surface="user"] .band-mark { display: none; } }
@media (max-width: 600px) {
  .sw-long { display: none; }
  .sw-short { display: inline; }
  .band-switch-link { padding: 0 7px; }
  .band-plan { padding-right: var(--sp-2); }
}
@media (max-width: 380px) { .band-tenant { display: none; } }

/* ---------- 枠 ---------- */
.frame { max-width: 1360px; margin: 0 auto; }
.side { display: none; }
.main {
  padding: var(--sp-5) var(--sp-4) calc(var(--tab-h) + 40px + env(safe-area-inset-bottom));
  max-width: 720px;
  margin: 0 auto;
  outline: none;
}
.main.is-entering { animation: screen-in 180ms var(--ease-out); }
@keyframes screen-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
::view-transition-old(root) { animation: vt-out 120ms ease both; }
::view-transition-new(root) { animation: screen-in 180ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }

/* ---------- 下のナビ（5-2） ---------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  min-height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg);
  border-top: 1px solid var(--line);
  view-transition-name: tabbar;
}
.tabbar[hidden] { display: none; }
.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-size: var(--fs-cap);
  font-weight: 400;
  line-height: 1.3;
}
.tab-bar { position: absolute; top: 0; left: 50%; width: 24px; height: 2px; margin-left: -12px; background: transparent; }
.tab.is-current { color: var(--accent); font-weight: 700; }
.tab.is-current .tab-bar { background: var(--brand); }
.tab.no-icon { font-size: var(--fs-sub); }
.tab-count { margin-left: 3px; font-size: var(--fs-cap); font-weight: 600; }

/* ---------- 左のナビ（PC・5-3） ---------- */
@media (min-width: 960px) {
  .frame { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0; }
  .side {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: var(--band-h);
    align-self: start;
    height: calc(100vh - var(--band-h));
    overflow-y: auto;
    overflow: hidden;
    padding: var(--sp-5) var(--sp-3) 0;
    background: var(--surface);
    border-right: 1px solid var(--line);
    view-transition-name: side;
  }
  .main { padding: var(--sp-6) 40px 80px clamp(32px, 6vw, 96px); margin: 0; }
  .tabbar { display: none; }
}
.side-brand { display: flex; align-items: center; gap: var(--sp-2); padding: 0 10px 14px; color: var(--ink); text-decoration: none; }
.side-brand .brand-mark { color: var(--accent); }
.brand-name { font-family: var(--font-head); font-size: var(--fs-h2); font-weight: 700; letter-spacing: .04em; }
.brand-note { font-size: var(--fs-cap); color: var(--muted); }
.side-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: var(--sp-6); }
.side-group { margin-top: var(--sp-5); }
.side-group:first-child { margin-top: var(--sp-2); }
.side-group-name { margin: 0 0 var(--sp-1); padding: 0 10px; font-size: var(--fs-cap); font-weight: 700; color: var(--muted); }
.side-link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--r-1);
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--fs-sub);
  line-height: 1.4;
}
.side-link:hover { background: var(--surface-2); }
.side-link.is-current { background: var(--bg); border-color: var(--line); box-shadow: inset 2px 0 0 var(--brand); color: var(--ink); font-weight: 700; }
.side-link .nav-icon { color: var(--muted); }
.side-link.is-current .nav-icon { color: var(--brand); }
.side-text { flex: 1 1 auto; min-width: 0; }
.side-count { font-size: var(--fs-cap); color: var(--muted); }
.side-code { font-size: var(--fs-cap); color: var(--muted); width: 30px; flex: none; }
.side-plan { flex: none; padding: var(--sp-3) 10px var(--sp-4); border-top: 1px solid var(--line); background: var(--surface); }
.side-plan-name { margin: 0; font-size: var(--fs-sub); font-weight: 700; }
.side-plan-sub { margin: 2px 0 0; font-size: var(--fs-cap); color: var(--muted); }

/* ---------- 見出し ---------- */
.screen-head { margin: 0 0 var(--sp-4); }
.screen-head h1 { margin: 0; font-size: var(--fs-h1); line-height: 1.35; }
.screen-head h1 .rel { margin-left: var(--sp-2); vertical-align: middle; font-family: var(--font-body); font-size: var(--fs-cap); text-decoration: none; }
.screen-sub { margin: var(--sp-1) 0 0; font-size: var(--fs-sub); color: var(--muted); }
.lead { margin: 0 0 6px; font-size: var(--fs-sub); color: var(--ink-2); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin: var(--sp-5) 0 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
}
@media (min-width: 960px) { .section-head { margin-top: var(--sp-6); } }
.section-head h2 { margin: 0; font-size: var(--fs-h2); line-height: 1.45; }
.section-aside { font-size: var(--fs-cap); color: var(--muted); }
.sub-head { margin: 18px 0 4px; font-family: var(--font-head); font-size: var(--fs-body); font-weight: 700; }
.menu-group { margin: var(--sp-5) 0 0; font-family: var(--font-body); font-size: var(--fs-cap); color: var(--muted); font-weight: 700; }

/* ---------- 汎用の行・注記 ---------- */
.muted-line { margin: var(--sp-2) 0; font-size: var(--fs-sub); color: var(--muted); line-height: 1.6; }
.muted-inline { font-size: var(--fs-sub); color: var(--muted); align-self: center; }
.is-muted { color: var(--muted); }
.is-warn { color: var(--warn); }
.note { margin: var(--sp-4) 0 0; font-size: var(--fs-cap); color: var(--muted); line-height: 1.5; }
.next-link { margin: 14px 0; font-size: var(--fs-body); display: flex; flex-wrap: wrap; gap: 0 var(--sp-4); }
.next-link a { display: inline-flex; align-items: center; min-height: 44px; }
.row-block { padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.empty-line { margin: 0; padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: var(--fs-body); }
.empty-act { font-weight: 700; margin-left: var(--sp-1); }
.screen-error { padding: var(--sp-4) 0; color: var(--danger); font-size: var(--fs-body); }
.guard-note { margin: 0 0 var(--sp-3); padding: var(--sp-2) var(--sp-3); border-left: 3px solid var(--accent); background: var(--surface); font-size: var(--fs-sub); color: var(--ink-2); line-height: 1.6; }
.formal-banner {
  position: sticky;
  top: var(--band-h);
  z-index: 5;
  margin: 0 0 var(--sp-3);
  padding: 10px var(--sp-3);
  background: var(--surface);
  border-left: 3px solid var(--ink-2);
  font-size: var(--fs-sub);
  font-weight: 700;
}
.legal-band { margin: 0 0 var(--sp-3); padding: 10px var(--sp-3); border: 1px solid var(--legal-line); box-shadow: inset 3px 0 0 var(--legal); background: var(--legal-bg); color: var(--legal); border-radius: var(--r-1); font-size: var(--fs-sub); }
.assumed-band { margin: 0 0 var(--sp-3); padding: var(--sp-2) var(--sp-3); border-left: 3px solid var(--ink-2); background: var(--surface); font-size: var(--fs-cap); font-weight: 700; color: var(--ink-2); }
.watch-line { margin: var(--sp-6) 0 0; padding: var(--sp-2) 0 0; border-top: 1px solid var(--line); font-size: var(--fs-cap); color: var(--muted); }
.warn-mark { display: inline-block; width: 10px; height: 9px; margin-right: 6px; background: var(--warn); clip-path: polygon(50% 0, 100% 100%, 0 100%); vertical-align: -1px; flex: none; }

/* ---------- ボタン（5-6） ---------- */
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); align-items: center; }
.actions-wide { margin: var(--sp-3) 0 var(--sp-1); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-input);
  border-radius: var(--r-1);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-1), border-color var(--dur-1), color var(--dur-1), transform 80ms;
}
.btn:hover { border-color: var(--ink-2); background: var(--surface); }
.btn:active { background: var(--surface-2); }
.btn-primary { padding: 0 18px; border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { border-color: var(--brand-hover); background: var(--brand-hover); }
.btn-primary:active { background: var(--brand); box-shadow: var(--shadow-press); transform: translateY(1px); }
.btn-quiet, .link-btn { border-color: transparent; background: transparent; color: var(--accent); padding: 0 10px; }
.btn-quiet:hover, .link-btn:hover { border-color: transparent; background: transparent; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-1); border: 0; font: inherit; font-size: var(--fs-body); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-danger { border-color: var(--danger); background: var(--danger); color: var(--on-danger); }
.btn-danger:hover { border-color: var(--danger); background: var(--danger); }
.btn-guide { border-color: var(--guide); background: var(--guide); color: var(--on-guide); }
.btn-guide:hover { border-color: var(--guide); background: var(--guide); }
.btn-small { font-size: var(--fs-sub); padding: 0 10px; }
.btn-large { min-height: 52px; padding: 0 var(--sp-5); }
.app.is-large .btn { min-height: 52px; }
.btn:disabled, .btn[disabled] { background: var(--surface-2); border-color: var(--line); color: var(--muted); cursor: not-allowed; box-shadow: none; transform: none; }
.btn-quiet:disabled { background: transparent; border-color: transparent; }
.flash { font-size: var(--fs-sub); color: var(--ok); }

/* ---------- 鍵（5-7） ---------- */
.lock {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid;
  border-radius: var(--r-1);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color var(--dur-1), background-color var(--dur-1);
}
.lock-plan { color: var(--plan); background: var(--plan-bg); border-color: var(--plan-line); box-shadow: inset 3px 0 0 var(--plan); }
.lock-legal { color: var(--legal); background: var(--legal-bg); border-color: var(--legal-line); box-shadow: inset 3px 0 0 var(--legal); }
.lock-plan:hover { border-color: var(--plan); text-decoration: none; }
.lock-legal:hover { border-color: var(--legal); text-decoration: none; }
.lock-plan:active { background: var(--plan-press); }
.lock-legal:active { background: var(--legal-press); }
.lock-name { color: var(--ink); font-weight: 700; }
.lock-text { flex: 1 1 auto; min-width: 0; }
.lock-delta { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.lock-delta::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.lock-mark { position: relative; flex: none; width: 12px; height: 9px; margin-top: 6px; border-radius: 1.5px; background: currentColor; }
.lock-mark::before { content: ""; position: absolute; left: 2px; top: -6px; width: 8px; height: 7px; box-sizing: border-box; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; }
.lock-legal .lock-mark, .lock-legal .lock-mark::before { border-radius: 0; }
.lock-legal .lock-mark::before { border-radius: 0; }

/* ---------- 稼ぎの柱の印（5-5） ---------- */
.pillar { display: inline-flex; align-items: center; gap: 6px; flex: none; min-width: 3.6em; font-size: var(--fs-cap); font-weight: 700; letter-spacing: .04em; white-space: nowrap; line-height: 1.4; }
.pillar::before { content: ""; flex: none; width: 8px; height: 8px; box-sizing: border-box; }
.p-ref { color: var(--p-ref); }
.p-ref::before { border-radius: var(--r-round); background: var(--p-ref); }
.p-keep { color: var(--p-keep); }
.p-keep::before { border-radius: var(--r-round); border: 2px solid var(--p-keep); background: transparent; }
.p-follow { color: var(--p-follow); }
.p-follow::before { height: 9px; background: var(--p-follow); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.p-time { color: var(--p-time); }
.p-time::before { border: 1.5px solid var(--p-time); background: transparent; }

/* ---------- 今日の段取り（5-4） ---------- */
.today-ledger { margin: var(--sp-2) 0 0; padding: var(--sp-3) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ledger-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin: 0 0 var(--sp-2); }
.ledger-date { font-size: var(--fs-sub); color: var(--muted); }
.ledger-count { font-size: var(--fs-sub); color: var(--ink-2); font-family: var(--font-body); }
.ledger-count strong { font-family: var(--font-num); font-size: var(--fs-h2); font-weight: 600; color: var(--ink); }
.ledger-bar { display: flex; gap: 2px; height: 6px; }
.ledger-seg { position: relative; flex: 1 1 0; background: var(--line-strong); overflow: hidden; }
.ledger-seg::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.ledger-seg.is-done::after { transform: scaleX(1); }
.ledger-seg.is-filling::after { animation: seg-fill var(--dur-2) var(--ease-out); }
@keyframes seg-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ledger-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-4); margin: var(--sp-2) 0 0; }
.ledger-pillar { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); cursor: default; }
button.ledger-pillar { cursor: pointer; min-height: 44px; }
.ledger-pillar .pillar { min-width: 0; }
.ledger-pillar.is-on .pillar { text-decoration: underline 2px; text-underline-offset: 4px; }
.ledger-n { font-size: var(--fs-sub); font-weight: 600; }
.ledger-rest { margin-left: auto; font-size: var(--fs-sub); color: var(--muted); }
.ledger-all { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--ok); font-weight: 700; animation: fade-in var(--dur-2) ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 今日やることの行（5-4） ---------- */
.trows, .urows, .drows { list-style: none; margin: 0; padding: 0; }
.trow, .urow, .drow { padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.trow[data-first="1"] { padding-left: var(--sp-3); box-shadow: inset 3px 0 0 var(--brand); }
.trow-first { margin: 0 0 2px; font-size: var(--fs-cap); font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.trow-top { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px; }
.trow-name { font-family: var(--font-head); font-size: var(--fs-h2); font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.45; }
a.trow-name { text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a.trow-name:hover { text-decoration-color: var(--ink-2); }
.is-hidden-name { color: var(--legal); font-family: var(--font-body); font-weight: 700; font-size: var(--fs-body); }
.trow-kind { margin-left: auto; font-size: var(--fs-cap); color: var(--muted); }
.trow-when { margin-left: auto; font-size: var(--fs-cap); color: var(--muted); }
.trow-sub { margin: 2px 0 0; font-size: var(--fs-cap); color: var(--muted); }
.trow-reason { margin: var(--sp-1) 0 0; font-size: var(--fs-body); color: var(--ink-2); }
.trow-reason.is-muted { color: var(--muted); }
.trow-move { margin: var(--sp-3) 0 0; font-size: var(--fs-body); font-weight: 700; }
.trow-move .label, .label { display: block; font-size: var(--fs-cap); font-weight: 700; color: var(--muted); margin-bottom: 1px; }
.trow.is-closed { padding: 10px 0; }
.trow.is-closed .trow-name { font-size: var(--fs-body); color: var(--ink-2); }
.trow.is-closed .trow-when { color: var(--ok); }
.trow.is-closed .actions { margin-top: var(--sp-1); }
.trow-draft { margin-top: var(--sp-3); padding: var(--sp-3) 0 0; border-top: 1px dashed var(--line-strong); }
@media (max-width: 600px) { .trow-kind { margin-left: 0; flex-basis: 100%; } }
.btn-done .check-mark { color: var(--muted); }
.btn-done:hover { border-color: var(--brand); color: var(--brand); background: var(--bg); }
.btn-done:hover .check-mark { color: var(--brand); }
.btn-done.is-pressed { border-color: var(--brand); background: var(--brand); color: var(--on-brand); animation: press 160ms var(--ease-out); }
.btn-done.is-pressed .check-mark { color: var(--on-brand); }
@keyframes press { 0% { transform: scale(.97); } 100% { transform: scale(1); } }
.trow.is-completing { background: var(--ok-bg); transition: background-color var(--dur-1) 180ms; }
.trow.is-folding { overflow: hidden; height: 0 !important; padding-top: 0; padding-bottom: 0; opacity: 0; transition: height var(--dur-3) var(--ease-out), padding var(--dur-3) var(--ease-out), opacity var(--dur-3) ease; }
.done-line { margin: 0; font-size: var(--fs-body); font-weight: 700; }
.all-done { display: flex; align-items: center; gap: var(--sp-2); margin: var(--sp-4) 0 0; color: var(--ok); }
.wt-switch { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0 18px; margin: var(--sp-1) 0 0; border-bottom: 1px solid var(--line); }
.wt-switch::-webkit-scrollbar { display: none; }
.wt-opt { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: inherit; font-size: var(--fs-body); font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
.wt-opt.is-on { color: var(--ink); border-bottom-color: var(--brand); }
.wt-opt.is-locked { color: var(--plan); }
.wt-opt.is-locked.lock-legal { color: var(--legal); }
.wt-opt .lock-mark { margin-top: 0; }
.wt-opt .sw-short { display: none; }
@media (max-width: 600px) { .wt-opt .sw-long { display: none; } .wt-opt .sw-short { display: inline; } }
.peak-row { margin: var(--sp-2) 0 0; padding: var(--sp-1) 0 var(--sp-2); border-bottom: 1px solid var(--line); }
.peak-row > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; }
.peak-row > summary::-webkit-details-marker { display: none; }
.peak-head { font-size: var(--fs-body); font-weight: 700; }

/* ---------- 入力（5-8） ---------- */
.field-label { display: block; margin: 14px 0 6px; font-size: var(--fs-cap); font-weight: 700; color: var(--ink-2); }
.input, .ta {
  width: 100%;
  font: inherit;
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-input);
  border-radius: var(--r-1);
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.input { min-height: 48px; padding: 0 var(--sp-3); }
.input-inline { width: auto; min-width: 12em; }
.ta { display: block; padding: 10px var(--sp-3); line-height: 1.75; resize: vertical; }
.input:focus-visible, .ta:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ta.is-ng, .input.is-ng { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.ta.is-ng:focus-visible { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger), 0 0 0 3px var(--danger-bg); }
.ta[readonly], .input[readonly] { background: var(--surface); border-color: var(--line); }
.ta-memo { min-height: 6em; }
select.input { appearance: auto; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; font-size: var(--fs-body); cursor: pointer; }
.check input, input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.check-block { margin-top: var(--sp-2); }
.filters { padding-bottom: 6px; }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.filter-grid > label { display: block; }
@media (min-width: 601px) { .filter-grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 380px) { .filter-grid { grid-template-columns: 1fr; } }
.quick { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: 10px; }
.search-row { display: flex; gap: var(--sp-2); }
.search-row .input { flex: 1 1 auto; min-width: 0; }
.toggle, .topic {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--line-input);
  border-radius: var(--r-1);
  background: var(--bg);
  color: var(--ink-2);
  font: inherit;
  font-size: var(--fs-body);
  text-decoration: none;
  cursor: pointer;
}
.toggle:hover, .topic:hover { border-color: var(--ink-2); }
.toggle.is-on, .topic.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; box-shadow: inset 0 0 0 1px var(--accent); }
.topic-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-1) 0 6px; }

/* ---------- 検査 ---------- */
.check-out { margin-top: var(--sp-2); }
.check-ok { display: flex; align-items: center; gap: var(--sp-2); margin: 0; font-size: var(--fs-sub); color: var(--ok); }
.check-mark { display: inline-block; width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-2px); flex: none; }
.check-ng { list-style: none; margin: 0; padding: 10px var(--sp-3); border: 1px solid var(--danger-line); box-shadow: inset 3px 0 0 var(--danger); background: var(--danger-bg); border-radius: var(--r-1); }
.check-ng li { font-size: var(--fs-sub); color: var(--danger); padding: 2px 0; }
.check-ng li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: var(--danger); vertical-align: 1px; }
.check-ng li + li { border-top: 1px solid var(--danger-line); margin-top: 6px; padding-top: 6px; }
.hit-word { font-weight: 700; }
.hit-cat { margin: 0 6px; font-size: var(--fs-cap); }
.hit-reason { display: block; color: var(--ink-2); }
mark.hit { background: var(--danger-bg); color: var(--danger); text-decoration: underline 2px solid var(--danger); text-underline-offset: 4px; font-weight: 700; }
.ng-preview, .memo-live { margin-top: var(--sp-2); padding: 10px var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-1); font-size: var(--fs-body); line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.stop-band { margin-top: 10px; padding: var(--sp-3); border: 0; box-shadow: inset 3px 0 0 var(--danger); background: var(--danger-bg); }
.stop-title { display: flex; align-items: center; gap: var(--sp-2); margin: 0; font-weight: 700; color: var(--danger); font-size: var(--fs-body); }
.stop-mark { width: 10px; height: 10px; background: var(--danger); flex: none; }
.stop-text { margin: var(--sp-1) 0 0; font-size: var(--fs-sub); color: var(--ink-2); }
.stop-band .btn { background: var(--bg); }
.stop-band .btn-primary { background: var(--brand); color: var(--on-brand); }
.affiliation { margin-top: var(--sp-2); padding: var(--sp-2) 0; border-top: 1px dashed var(--line-strong); font-size: var(--fs-sub); color: var(--ink-2); }
.aff-label { margin-right: var(--sp-2); font-size: var(--fs-cap); font-weight: 700; color: var(--muted); }
.source-line { margin: var(--sp-2) 0; font-size: var(--fs-body); }
.saved-text { margin: var(--sp-2) 0; font-size: var(--fs-body); white-space: pre-wrap; color: var(--ink-2); }

/* ---------- 一覧・定義 ---------- */
.lines, .bullets, .menu, .crows, .ask-rows, .feats, .opts, .check-rows, .timeline { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-body); align-items: baseline; }
.line-key { min-width: 4.5em; font-size: var(--fs-sub); color: var(--muted); }
.line-aside { margin-left: auto; font-size: var(--fs-cap); color: var(--muted); }
.bullets li { position: relative; padding: 6px 0 6px var(--sp-4); font-size: var(--fs-body); }
.bullets li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 6px; height: 1.5px; background: var(--ink-2); }
.bullets-num { counter-reset: n; }
.bullets-num li { counter-increment: n; padding-left: 22px; }
.bullets-num li::before { content: counter(n); width: auto; height: auto; background: none; top: 7px; font-family: var(--font-num); font-size: var(--fs-cap); color: var(--muted); }
.dl { margin: 0; }
.dl > div { display: grid; grid-template-columns: 7.5em 1fr; gap: var(--sp-2); padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-body); }
.dl dt { color: var(--muted); font-size: var(--fs-sub); }
.dl dd { margin: 0; word-break: break-word; }
.timeline li { display: grid; grid-template-columns: 5.5em 1fr; gap: var(--sp-2); padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-body); }
.timeline li.is-fresh { background: var(--accent-soft); padding-left: var(--sp-2); padding-right: var(--sp-2); }
.tl-date { color: var(--muted); font-size: var(--fs-sub); }
.inline-edit p { margin: 10px 0 0; font-size: var(--fs-body); display: flex; gap: var(--sp-3); }
.inline-form { margin-top: 6px; }
.menu-link { display: flex; align-items: center; gap: 10px; min-height: 48px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: var(--fs-body); }
.menu-link::after { content: ""; margin-left: auto; margin-right: var(--sp-2); width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); }
.menu-link:hover { background: var(--surface); }
.theme-row { margin-top: var(--sp-2); }
a.name-link { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.watch-line + * { margin-top: 0; }

/* 顧客一覧・顧客カード */
.count-line { margin: 14px 0 var(--sp-1); font-size: var(--fs-body); color: var(--ink-2); }
.count-line strong { font-family: var(--font-num); font-size: var(--fs-h1); font-weight: 600; color: var(--ink); }
.crow-link { display: block; padding: var(--sp-3) 0; min-height: 44px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.crow-link:hover { background: var(--surface); }
.crow-main { display: flex; flex-wrap: wrap; gap: var(--sp-1) 10px; align-items: baseline; }
.crow-name { font-family: var(--font-head); font-size: var(--fs-body); font-weight: 700; }
.crow-status { font-size: var(--fs-cap); color: var(--muted); }
.crow-status.is-prospect { color: var(--p-follow); font-weight: 700; }
.crow-meta { display: block; margin-top: 2px; font-size: var(--fs-cap); color: var(--muted); }
.not-asked-mark { display: inline-flex; align-items: center; gap: 5px; margin-right: 6px; font-size: var(--fs-cap); font-weight: 700; color: var(--p-ref); }
.not-asked-mark::before { content: ""; width: 8px; height: 8px; border-radius: var(--r-round); background: var(--p-ref); }
.is-veiled { color: var(--muted); }
.veil-line { display: block; height: 10px; margin: 6px 0; background: var(--surface-2); border-radius: 2px; }
.veil-line.short { width: 55%; }

/* ---------- 表（5-9） ---------- */
.table-wrap { margin-top: var(--sp-1); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sub); }
.table th { text-align: left; font-weight: 700; color: var(--muted); font-size: var(--fs-cap); padding: var(--sp-2) 6px var(--sp-2) 0; border-bottom: 1px solid var(--line-strong); }
.table td { padding: 10px 6px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; word-break: break-word; }
.table tbody tr:hover { background: var(--surface); }
.table td:first-child { white-space: nowrap; color: var(--muted); }
.table-ops th.r, .table-ops td.r { text-align: right; }
.table-ops td:first-child { white-space: normal; color: var(--ink); }
.table-ops td.r, .table-ops td.num, .table-ops th.r { white-space: nowrap; }
.table-ops td.r, .table-ops td.num { font-weight: 500; }
.table-ops tfoot td { font-weight: 600; border-top: 1px solid var(--ink-2); border-bottom: 0; }
.table-ops th + th, .table-ops td + td { padding-left: 14px; }
.cell-main { display: block; font-weight: 700; }
.cell-sub { display: block; font-size: var(--fs-cap); color: var(--muted); }
.muted-cell { color: var(--muted); font-size: var(--fs-cap); }
.is-skipped td { color: var(--muted); background: var(--surface); }
.bar-cell { white-space: nowrap; }
.sbar { width: 80px; height: 6px; margin-right: var(--sp-2); vertical-align: middle; }
.sbar-bg { fill: var(--surface-2); }
.sbar-fg { fill: var(--accent); }
.st { font-size: var(--fs-cap); font-weight: 700; white-space: nowrap; }
.st::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; vertical-align: 1px; background: currentColor; }
.st-paid { color: var(--ok); }
.st-trial { color: var(--plan); }
.st-canceled { color: var(--danger); }
.st-ended, .st-before { color: var(--muted); }
.status-on { margin-left: auto; font-size: var(--fs-cap); color: var(--ok); font-weight: 700; }
.status-off { margin-left: auto; font-size: var(--fs-cap); color: var(--danger); font-weight: 700; }
.status-none { margin-left: auto; font-size: var(--fs-cap); color: var(--muted); font-weight: 700; }
.status-on::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: var(--r-round); background: currentColor; vertical-align: 1px; }
.is-warn-row td { background: var(--warn-bg); }
.sort-link { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); }
@media (max-width: 600px) {
  .table thead { display: none; }
  .table tr { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
  .table td { padding: 0; border: 0; }
  .table td:nth-child(n+3) { grid-column: 1 / -1; }
  .table-ops thead { display: table-header-group; }
  .table-ops tr { display: table-row; padding: 0; border: 0; }
  .table-ops td { display: table-cell; padding: var(--sp-2) 10px var(--sp-2) 0; border-bottom: 1px solid var(--line); }
  .table-ops td:nth-child(n+3) { grid-column: auto; }
  .table-wide { min-width: 600px; }
  .table-pilot { min-width: 0; }
  .table-pilot thead { display: none; }
  .table-pilot tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .table-pilot td { display: block; padding: 2px 0; border: 0; text-align: left; }
  .table-pilot td:first-child { font-weight: 700; color: var(--ink); white-space: normal; }
  .table-pilot td.r { text-align: left; }
}

/* ---------- 読み込み中（5-11）・知らせ（5-12） ---------- */
.loading { display: flex; align-items: center; gap: 10px; margin: var(--sp-3) 0; font-size: var(--fs-body); color: var(--ink-2); }
.loading-bar { position: relative; width: 48px; height: 2px; overflow: hidden; background: var(--line); }
.loading-bar::after { content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%; background: var(--accent); animation: loading-move 1s linear infinite; }
@keyframes loading-move { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.loading-rows { padding: var(--sp-2) 0; }
.lr-row { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.lr-bar { display: block; width: 85%; height: 10px; border-radius: 2px; background: var(--surface-2); animation: breathe 1.4s ease-in-out infinite; }
.lr-bar.lr-short { width: 40%; }
@keyframes breathe { 50% { opacity: .55; } }
.toast-region { position: fixed; left: var(--sp-4); right: var(--sp-4); bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom)); z-index: 40; pointer-events: none; }
@media (min-width: 960px) { .toast-region { left: calc(240px + 24px); right: auto; bottom: 24px; width: 420px; } }
.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 48px;
  padding: 0 var(--sp-2) 0 var(--sp-4);
  border-radius: var(--r-1);
  background: var(--toast-bg);
  color: var(--on-toast);
  box-shadow: var(--shadow-pop);
  font-size: var(--fs-sub);
  pointer-events: auto;
  animation: toast-in 160ms var(--ease-out);
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.toast-check { color: var(--toast-check); }
.toast-text { flex: 1 1 auto; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast-count { flex: none; }
.toast-action { flex: none; min-height: 44px; padding: 0 var(--sp-2); border: 0; background: none; color: var(--toast-action); font: inherit; font-weight: 700; cursor: pointer; }
.toast-action:focus-visible { outline-color: var(--toast-action); }

/* ---------- AIの下書きの枠（5-14・7-2） ---------- */
.ai-panel { margin: var(--sp-4) 0; }
.ai-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
.ai-quota { font-size: var(--fs-cap); color: var(--muted); }
.ai-note { margin: 6px 0 0; font-size: var(--fs-cap); color: var(--muted); }
.ai-msg { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--sp-2); margin: var(--sp-2) 0; font-size: var(--fs-sub); color: var(--warn); }
.ai-msg .check-ng { flex-basis: 100%; margin-top: var(--sp-2); }
.ai-tag { display: inline-flex; align-items: center; padding: 0 var(--sp-1); border: 1px solid currentColor; border-radius: var(--r-1); font-family: var(--font-num); font-size: var(--fs-cap); font-weight: 600; line-height: 1.5; letter-spacing: .04em; }
.ai-run .ai-tag { color: var(--ink-2); }
.ai-draft { margin-top: var(--sp-3); border: 1px solid var(--line-strong); border-radius: var(--r-2); background: var(--bg); overflow: hidden; }
.ai-head { display: flex; align-items: center; gap: var(--sp-2); min-height: 40px; padding: 0 var(--sp-4); background: var(--surface); border-bottom: 1px solid var(--line); }
.ai-head .ai-tag { color: var(--ink-2); }
.ai-source { font-size: var(--fs-sub); font-weight: 700; color: var(--ink); }
.ai-source.is-sample { color: var(--ink); }
.ai-source.is-sample + .ai-head-aside:empty::before { content: ""; }
.ai-head-aside { margin-left: auto; font-size: var(--fs-cap); color: var(--muted); }
.ai-steps { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); list-style: none; margin: 0; padding: var(--sp-2) var(--sp-4) 0; font-size: var(--fs-cap); color: var(--muted); }
.ai-step { display: inline-flex; align-items: center; gap: 6px; }
.ai-step-mark { width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: var(--r-round); }
.ai-step.is-now { color: var(--accent); font-weight: 700; }
.ai-step.is-now .ai-step-mark { background: currentColor; }
.ai-step.is-done { color: var(--ok); }
.ai-step.is-done .ai-step-mark { width: 10px; height: 6px; border: 0; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; border-radius: 0; transform: rotate(-45deg) translateY(-2px); }
.ai-out { min-height: 4em; padding: var(--sp-3) var(--sp-4); white-space: pre-wrap; word-break: break-word; line-height: 1.8; }
.ai-out.is-ng { padding-bottom: 0; }
.ai-out.is-writing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ai-ta { border: 0; border-radius: 0; padding: var(--sp-3) var(--sp-4); min-height: 8em; background: var(--bg); }
.ai-ta:focus-visible { box-shadow: inset 0 0 0 2px var(--accent-soft); }
.ai-ta.is-ng { box-shadow: inset 3px 0 0 var(--danger); }
.ai-foot { padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--line); }
.ai-foot .actions { margin-top: var(--sp-2); }
.ai-sent { margin: 0; padding: 0 var(--sp-4) var(--sp-2); border-top: 1px solid var(--line); }
.ai-prompt { max-height: 20em; overflow: auto; font-family: var(--font-code); font-size: var(--fs-cap); }
.is-large-ai .ai-bar { flex-direction: column; align-items: stretch; }
.is-large-ai .ai-bar .ai-tag { color: inherit; }

/* ---------- 営業モード（5-13） ---------- */
.guide { display: none; }
.app.has-guide .guide:not([hidden]) { display: block; }
.guide-head { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.guide-title { font-family: var(--font-head); font-size: var(--fs-body); font-weight: 700; color: var(--guide); white-space: nowrap; }
.guide-count { font-size: var(--fs-cap); color: var(--muted); white-space: nowrap; }
.guide-peek { flex: 1 1 auto; min-width: 0; font-size: var(--fs-body); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide-toggle { flex: none; min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--accent); font: inherit; font-size: var(--fs-body); font-weight: 700; white-space: nowrap; cursor: pointer; }
.guide-dots { display: flex; gap: 4px; list-style: none; margin: 0 0 var(--sp-2); padding: 0; }
.guide-dot { width: 6px; height: 6px; box-sizing: border-box; border: 1px solid var(--guide); opacity: .5; }
.guide-dot.is-done { background: var(--guide); opacity: 1; }
.guide-dot.is-now { opacity: 1; box-shadow: 0 0 0 1.5px var(--guide); }
.guide-time { margin: 0; font-size: var(--fs-cap); color: var(--muted); }
.guide-label { margin: var(--sp-3) 0 2px; font-size: var(--fs-cap); font-weight: 700; color: var(--muted); }
.guide-say { margin: 0; font-size: var(--fs-body); line-height: 1.7; }
.guide-press { margin: 0; font-size: var(--fs-body); font-weight: 700; color: var(--guide); }
.guide-off { margin: 10px 0 0; font-size: var(--fs-body); }
.guide-off a { display: inline-flex; align-items: center; min-height: 44px; }
.guide-nav { display: flex; gap: var(--sp-2); margin-top: 14px; }
.guide-nav .btn { flex: 1 1 0; }
.guide-foot { display: flex; flex-wrap: wrap; gap: 0 var(--sp-1); margin-top: 6px; }
.guide .btn-quiet { background: transparent; }
.guide-more { margin-top: 6px; }
.guide-more > summary { display: flex; align-items: center; min-height: 44px; color: var(--guide); font-size: var(--fs-sub); font-weight: 700; cursor: pointer; }
.guide-internal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin: 14px 0 0; padding-top: var(--sp-2); border-top: 1px solid var(--line); font-size: var(--fs-body); }
.guide-internal .guide-label { width: 100%; margin: 0; }
.guide-internal a { display: inline-flex; align-items: center; min-height: 44px; }
.is-guide-target { outline: 3px solid var(--guide); outline-offset: 3px; border-radius: var(--r-1); box-shadow: 0 0 0 9px var(--guide-bg); scroll-margin-top: calc(var(--band-h) + 24px); }
.entry-internal { display: none !important; }
.app.has-guide .entry-internal { display: flex !important; }
@media (max-width: 959px) {
  .guide {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
    z-index: 25;
    padding: 0 var(--sp-4);
    background: var(--bg);
    border-top: 3px solid var(--guide);
    border-radius: var(--r-2) var(--r-2) 0 0;
    box-shadow: var(--shadow-pop);
  }
  [data-surface="partner"] .guide { bottom: env(safe-area-inset-bottom); }
  .guide-body { max-height: 42vh; overflow-y: auto; padding-bottom: var(--sp-3); }
  .app.has-guide .main { padding-bottom: calc(var(--tab-h) + 52px + 24px); }
  .app.has-guide.guide-open .main { padding-bottom: calc(var(--tab-h) + 50vh); }
  .guide-dots { display: none; }
}
@media (min-width: 960px) {
  .app.has-guide .frame { grid-template-columns: 240px minmax(0, 1fr) 300px; max-width: 1360px; }
  .guide {
    position: sticky;
    top: var(--band-h);
    align-self: start;
    height: calc(100vh - var(--band-h));
    overflow-y: auto;
    padding: var(--sp-2) var(--sp-4) 40px;
    border-left: 1px solid var(--line);
    border-top: 4px solid var(--guide);
    background: var(--surface);
  }
  .guide-toggle, .guide-peek { display: none; }
  .guide-body[hidden] { display: block !important; }
}

/* hidden 属性は常に効かせる（.ta など display を持つ部品より強く。PCの営業モード帯だけ上で例外） */
[hidden] { display: none !important; }

/* ---------- 提供時期の印 ---------- */
.rel { display: inline-flex; align-items: center; margin: 0 var(--sp-2); padding: 0; border: 0; font-family: var(--font-body); font-size: var(--fs-cap); font-weight: 400; line-height: 1.6; white-space: nowrap; vertical-align: 1px; text-decoration: none; }
.rel::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 6px; border-radius: var(--r-round); background: currentColor; opacity: .6; }
.rel-beta { color: var(--ink-2); }
.rel-paid { color: var(--ink-2); }
.rel-later { color: var(--ink-2); }
.release-line { display: none; }
.rule-rel { margin: 0 0 var(--sp-1); }

/* ---------- 画面の種類ごとの枠 ---------- */
[data-surface="entry"] .frame { display: block; max-width: 1160px; }
[data-surface="entry"] .side { display: none; }
[data-surface="entry"] .main { max-width: 1120px; margin: 0 auto; }
[data-surface="entry"] .guide { display: none !important; }
@media (max-width: 959px) {
  [data-surface="entry"] .main, [data-surface="partner"] .main { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
}
@media (min-width: 960px) {
  [data-surface="ops"] .main, [data-surface="partner"] .main { max-width: 1040px; }
  [data-surface="entry"] .main { padding: var(--sp-7) 40px 80px; }
  .app[data-screen="d13"] .main, .app[data-screen="d14"] .main, .app[data-screen="d15"] .main, .app[data-screen="d24"] .main, .app[data-screen="d05"] .main, .app[data-screen="d32"] .main, .app[data-screen="d33"] .main { max-width: 1040px; }
}

/* ---------- 紹介の木（6-3） ---------- */
.tree-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 10px; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-cap); color: var(--p-ref); font-weight: 700; }
.legend-ask { width: 8px; height: 8px; border-radius: var(--r-round); background: var(--p-ref); }
.tree-wrap { border: 1px solid var(--line-strong); border-radius: var(--r-2); padding: 6px var(--sp-1); background: var(--bg); }
.tree { display: block; width: 100%; height: auto; max-width: 560px; margin: 0 auto; font-family: var(--font-body); }
.tn-box { fill: var(--bg); stroke: var(--line-input); stroke-width: 1; transition: fill var(--dur-1), stroke var(--dur-1); }
.tn-contract { stroke: var(--ink); stroke-width: 1.5; }
.tn-dormant { stroke: var(--muted); stroke-dasharray: 4 3; }
.tn-prospect { stroke: var(--line-input); }
.tn-hidden { fill: var(--legal-bg); stroke: var(--legal-line); }
.tn-root { fill: var(--brand); stroke: var(--brand); }
.tn-name { font-size: 13px; font-weight: 700; fill: var(--ink); }
.tn-meta { font-size: 11px; fill: var(--muted); }
.tn.is-root .tn-name, .tn.is-root .tn-meta { fill: var(--on-brand); }
.tn-edge { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.tn-edge.is-ask { stroke: var(--p-ref); stroke-width: 2; }
.tn-ask { fill: var(--p-ref); }
.tn-askbar { fill: var(--p-ref); }
.tn.is-root .tn-ask, .tn.is-root .tn-askbar { fill: var(--on-brand); }
.tn-genlabel { font-size: 11px; fill: var(--muted); }
.tn.is-dim .tn-box { fill: var(--surface); stroke: var(--line); stroke-dasharray: none; }
.tn.is-dim .tn-name, .tn.is-dim .tn-meta { fill: var(--muted); }
.tree-wrap:has(.is-dim) .tn-edge:not(.is-ask) { stroke: var(--line); }
a:focus-visible .tn-box { stroke: var(--accent); stroke-width: 2.5; }
.ask-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) 10px; padding: 10px 0 10px var(--sp-3); border-bottom: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--p-ref); }
.ask-name { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-body); }
.ask-why { font-size: var(--fs-sub); color: var(--muted); }
.ask-row .btn { margin-left: auto; }
.tree-layout { display: block; }
@media (min-width: 960px) {
  .tree-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--sp-6); align-items: start; }
  .tree-layout .ask-col > .section-head:first-child { margin-top: 0; }
  .tree-layout .ask-row .btn { margin-left: 0; }
}
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.chain-node { display: inline-flex; flex-direction: column; padding: 6px 10px; border: 1px solid var(--line-input); border-radius: var(--r-1); font-size: var(--fs-body); font-weight: 700; }
.chain-status { font-size: var(--fs-cap); font-weight: 400; color: var(--muted); }
.chain-arrow { position: relative; width: 16px; height: 1.5px; background: var(--line-strong); }
.chain-arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1.5px solid var(--line-strong); border-right: 1.5px solid var(--line-strong); transform: rotate(45deg); }

/* ---------- 面談メモ（6-4）・意向把握 ---------- */
.memo-box { position: relative; }
.recorder { display: flex; align-items: center; gap: var(--sp-4); margin: var(--sp-3) 0 0; padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-2); }
.rec-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border: 0; border-radius: var(--r-round); background: var(--brand); color: var(--on-brand); cursor: pointer; transition: transform 80ms; }
.rec-btn:active { transform: scale(.97); }
.rec-icon { width: 20px; height: 20px; border-radius: var(--r-round); background: currentColor; transition: border-radius var(--dur-1); }
.recorder.is-rec .rec-icon { width: 18px; height: 18px; border-radius: 2px; }
.rec-time { font-size: var(--fs-h1); font-weight: 500; min-width: 2.6em; }
.rec-wave { flex: 1 1 auto; display: flex; align-items: center; gap: 2px; height: 24px; overflow: hidden; }
.rec-wave span { flex: none; width: 3px; border-radius: 1px; background: var(--accent); opacity: .45; transform-origin: center; }
.recorder.is-rec .rec-wave span { opacity: 1; animation: wave .9s ease-in-out infinite alternate; }
.recorder.is-rec .rec-wave span:nth-child(3n) { animation-delay: -.3s; }
.recorder.is-rec .rec-wave span:nth-child(3n+1) { animation-delay: -.6s; }
@keyframes wave { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
.intent-part { margin-top: 14px; }
.intent-label { display: flex; align-items: baseline; gap: var(--sp-2); margin-bottom: 6px; font-size: var(--fs-body); font-weight: 700; }
.intent-no { color: var(--muted); font-size: var(--fs-sub); }
.demo-ctrl { margin: var(--sp-5) 0 var(--sp-3); padding: var(--sp-2) var(--sp-3); border: 1px dashed var(--line-strong); border-radius: var(--r-1); }
.demo-ctrl .label { margin-bottom: var(--sp-1); }
.demo-ctrl .actions { margin-top: 0; }

/* 手続き */
.check-row { border-bottom: 1px solid var(--line); }
.check-row.is-done .check > span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.ck-kind { display: inline-block; min-width: 3em; margin-right: var(--sp-2); font-size: var(--fs-cap); color: var(--muted); font-weight: 700; }
.ck-due { font-size: var(--fs-cap); color: var(--warn); }

/* ---------- 管理画面（6-6） ---------- */
.confirm { margin-top: var(--sp-2); padding: var(--sp-3); border: 1px solid var(--danger-line); box-shadow: inset 3px 0 0 var(--danger); background: var(--danger-bg); border-radius: var(--r-1); font-size: var(--fs-body); }
.confirm p { margin: 0; }
.admin-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2) var(--sp-5); margin: 0; padding: var(--sp-3) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: var(--fs-sub); color: var(--ink-2); }
.admin-fig { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.admin-fig strong { font-family: var(--font-num); font-size: var(--fs-h1); font-weight: 600; color: var(--ink); }
.admin-fig.is-warn, .admin-fig.is-warn strong { color: var(--warn); }
.report { margin-top: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-left: 3px solid var(--ink-2); background: var(--surface); }
.report-head { margin: 0; font-size: var(--fs-cap); font-weight: 700; color: var(--muted); }
.report-main { margin: var(--sp-1) 0 0; font-size: var(--fs-body); }
.report-main strong { font-family: var(--font-num); font-size: var(--fs-h1); font-weight: 600; color: var(--accent); }

/* ---------- 料金（6-5） ---------- */
.plans-layout { display: flex; flex-direction: column; }
.plans-summary { order: 0; }
.plans-main { order: 1; }
.total { margin: 6px 0 var(--sp-1); padding: var(--sp-4) 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.total-plan { margin: 0; font-size: var(--fs-sub); font-weight: 700; color: var(--ink-2); }
.total-main { margin: 2px 0 0; font-size: var(--fs-display); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.total-tax { margin-left: 6px; font-size: var(--fs-cap); font-weight: 400; color: var(--muted); }
.total-sub { margin: var(--sp-1) 0 0; font-size: var(--fs-sub); color: var(--muted); }
.payback { margin: var(--sp-3) 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: var(--fs-body); }
.payback strong { margin: 0 2px; font-family: var(--font-num); font-size: var(--fs-h2); font-weight: 600; color: var(--accent); }
.payback-note { margin: var(--sp-1) 0 0; font-size: var(--fs-cap); color: var(--muted); }
.summary-actions { display: none; }
.summary-note { display: none; margin: var(--sp-2) 0 0; font-size: var(--fs-cap); color: var(--muted); }
.plans-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); height: 64px; padding: 0 var(--sp-4); background: var(--bg); border-top: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.plans-bar-price { display: flex; flex-direction: column; line-height: 1.3; }
.plans-bar-label { font-size: var(--fs-cap); color: var(--muted); }
.plans-bar .num { font-size: var(--fs-h2); font-weight: 600; }
.app[data-screen="d14"] .main { padding-bottom: calc(var(--tab-h) + 64px + 40px + env(safe-area-inset-bottom)); }
.app.has-guide .plans-bar { display: none; }
@media (min-width: 960px) {
  .plans-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-6); align-items: start; }
  .plans-summary { order: 2; position: sticky; top: calc(var(--band-h) + 24px); }
  .plans-main { order: 1; }
  .plans-main > .section-head:first-child { margin-top: 0; }
  .total { margin: 0; padding: var(--sp-4); border: 1px solid var(--line-strong); border-radius: var(--r-2); }
  .summary-actions { display: flex; flex-direction: column; align-items: stretch; }
  .summary-note { display: block; }
  .plans-bar { display: none; }
  .app[data-screen="d14"] .main { padding-bottom: 80px; }
}
.opts { margin-top: 0; }
.opt {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  min-height: 56px;
  padding: var(--sp-3) var(--sp-3);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.opt:hover { background: var(--surface); }
.opt.is-on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.opt.is-off { color: var(--muted); cursor: not-allowed; }
a.opt-link { text-decoration: none; }
.opt-radio, .opt-check { flex: none; width: 20px; height: 20px; border: 1.5px solid var(--line-input); background: var(--bg); }
.opt-radio { border-radius: var(--r-round); position: relative; }
.opt-check { border-radius: 3px; position: relative; }
.opt.is-on .opt-radio { border-color: var(--accent); }
.opt.is-on .opt-radio::after { content: ""; position: absolute; left: 4px; top: 4px; width: 9px; height: 9px; border-radius: var(--r-round); background: var(--accent); }
.opt.is-on .opt-check { border-color: var(--accent); background: var(--accent); }
.opt.is-on .opt-check::after { content: ""; position: absolute; left: 5px; top: 5px; width: 7px; height: 4px; border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: rotate(-45deg); }
.opt-body { flex: 1 1 auto; min-width: 0; }
.opt-name { display: block; font-size: var(--fs-body); font-weight: 700; }
.opt-tag { display: none; }
.opt-who { display: block; font-size: var(--fs-cap); color: var(--muted); line-height: 1.5; }
.opt-off { display: block; font-size: var(--fs-cap); color: var(--plan); }
.opt-price { flex: none; font-size: var(--fs-body); font-weight: 600; white-space: nowrap; text-align: right; }
.opt-yearly { display: block; font-size: var(--fs-cap); font-weight: 400; color: var(--muted); }
@media (max-width: 600px) {
  .opts .opt { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: var(--sp-3); row-gap: 2px; }
  .opts .opt-price { grid-column: 2; text-align: left; }
}
@media (min-width: 960px) {
  .plans-summary .total-main { font-size: calc(var(--fs-h1) + 4px); }
  .summary-actions .btn { min-height: 48px; padding: var(--sp-2) var(--sp-3); font-size: var(--fs-sub); }
}
.advice { margin-top: 10px; padding: var(--sp-3); border: 1px solid var(--plan-line); box-shadow: inset 3px 0 0 var(--plan); background: var(--plan-bg); border-radius: var(--r-1); font-size: var(--fs-body); }
.advice p { margin: 0; }
.advice strong { color: var(--plan); }
.advice-line { margin: var(--sp-2) 0 0; font-size: var(--fs-body); color: var(--plan); }
.seats { margin-top: 10px; }
.stepper { display: flex; align-items: center; gap: var(--sp-3); }
.stepper .btn { width: 44px; padding: 0; font-size: var(--fs-h2); }
.stepper-v { min-width: 3em; text-align: center; font-weight: 600; }
.seg { display: grid; grid-template-columns: 1fr 1fr; margin-top: 10px; }
.seg-3 { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.seg-btn { min-height: 44px; padding: 0 var(--sp-2); border: 1px solid var(--line-input); background: var(--bg); color: var(--ink-2); font: inherit; font-size: var(--fs-body); font-weight: 700; line-height: 1.3; cursor: pointer; }
.seg-btn + .seg-btn { border-left: 0; }
.seg-btn:first-child { border-radius: var(--r-1) 0 0 var(--r-1); }
.seg-btn:last-child { border-radius: 0 var(--r-1) var(--r-1) 0; }
.seg-btn.is-on { position: relative; z-index: 1; background: var(--accent-soft); border-color: var(--accent); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
label.seg-btn { display: inline-flex; align-items: center; justify-content: center; }
.tenant-line { margin: 10px 0 0; font-size: var(--fs-body); }
.feat { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px var(--sp-3); padding: 10px 0; border-bottom: 1px solid var(--line); transition: background-color .4s; }
.feat-name { font-size: var(--fs-body); }
.feat.is-locked .feat-name { color: var(--ink-2); }
.feat-note { margin-left: var(--sp-2); font-size: var(--fs-cap); color: var(--muted); }
.feat-right { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-left: auto; flex: 1 1 260px; justify-content: flex-end; }
.feat-right .lock { margin-top: 0; }
.feat-ok { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sub); color: var(--ok); font-weight: 700; }
.feat-lock { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sub); font-weight: 700; background: none; border: 0; }
.feat.is-target { background: var(--plan-bg); box-shadow: inset 3px 0 0 var(--plan); padding-left: var(--sp-3); padding-right: var(--sp-2); }
.feat-area { padding: 18px 0 var(--sp-1); font-size: var(--fs-cap); font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.feat-details { margin-top: 28px; border-top: 1px solid var(--ink); }
.feat-details > summary { font-size: var(--fs-body); font-weight: 700; color: var(--ink); }
.monitor { margin: var(--sp-2) 0 var(--sp-3); padding: var(--sp-3) var(--sp-4); border: 0; box-shadow: inset 3px 0 0 var(--brand); background: var(--surface); }
.monitor .trow-move { margin-top: 0; }
.monitor-honest { margin: 6px 0 0; font-size: var(--fs-body); font-weight: 700; color: var(--ink); }

/* ---------- 連携・自動で動くこと・API ---------- */
.link-rows, .rule-rows, .principles, .steps { list-style: none; margin: 0; padding: 0; }
.link-row, .rule-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.setup { margin-top: var(--sp-2); }
.setup > summary { display: flex; align-items: center; min-height: 44px; color: var(--accent); font-size: var(--fs-body); font-weight: 700; cursor: pointer; list-style: none; }
.setup > summary::-webkit-details-marker { display: none; }
.setup > summary::before { content: ""; flex: none; width: 6px; height: 6px; margin-right: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.setup[open] > summary::before { transform: rotate(45deg); }
.principles { margin: 0 0 var(--sp-2); padding: 10px var(--sp-3); border-left: 3px solid var(--accent); background: var(--surface); }
.principles li { font-size: var(--fs-sub); color: var(--ink-2); padding: 2px 0; }
.rule-head { display: flex; gap: var(--sp-3); align-items: flex-start; }
.steps { flex: 1 1 auto; min-width: 0; }
.steps li { display: grid; grid-template-columns: 4.5em 1fr; gap: var(--sp-2); font-size: var(--fs-body); padding: 2px 0; }
.steps li + li { border-top: 1px dashed var(--line); padding-top: var(--sp-1); margin-top: 2px; }
.step-key { font-size: var(--fs-cap); font-weight: 700; color: var(--muted); padding-top: 1px; }
.rule-switch { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-1); }
.switch { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--muted); font: inherit; font-size: var(--fs-sub); font-weight: 700; cursor: pointer; }
.switch-knob { position: relative; width: 40px; height: 24px; border-radius: var(--r-round); background: var(--line-input); transition: background-color .15s; }
.switch-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: var(--r-round); background: var(--bg); transition: transform .15s; }
.switch.is-on { color: var(--accent); }
.switch.is-on .switch-knob { background: var(--brand); }
.switch.is-on .switch-knob::after { transform: translateX(16px); }
.export { margin: var(--sp-2) 0 0; padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-1); background: var(--surface); font-family: var(--font-body); font-size: var(--fs-sub); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.api-layout { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); margin-top: var(--sp-2); }
@media (min-width: 960px) { .api-layout { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: var(--sp-6); } }
.api-list { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.api-ep { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 2px var(--sp-2); padding: 10px var(--sp-2); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.api-ep:hover { background: var(--surface); }
.api-ep.is-current { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--brand); }
.api-ep .api-sum { grid-column: 2; font-size: var(--fs-cap); color: var(--muted); }
.api-method { font-family: var(--font-num); font-size: var(--fs-cap); font-weight: 600; color: var(--accent); letter-spacing: .04em; }
.api-path { font-family: var(--font-code); font-size: var(--fs-sub); word-break: break-all; }
.api-line { display: flex; gap: 10px; align-items: baseline; margin: 0 0 6px; }
.api-code { font-family: var(--font-code); font-size: var(--fs-cap); }
.api-res { margin-top: var(--sp-2); }
.api-status { margin: var(--sp-3) 0 0; font-family: var(--font-num); font-size: var(--fs-sub); font-weight: 600; color: var(--ok); }
.api-status.is-ng { color: var(--danger); }
.api-detail .input { font-family: var(--font-code); font-size: var(--fs-body); }

/* ---------- 申込・はじめの10分・役割分担 ---------- */
.form { margin-top: var(--sp-1); }
.done-block { padding: 14px 0; border-bottom: 1px solid var(--line); }
.fd-steps { list-style: none; margin: 0; padding: 0; }
.fd-step { padding: 14px 0; border-bottom: 1px solid var(--line); }
.fd-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: var(--fs-body); font-weight: 700; }
.fd-no { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; border: 1.5px solid var(--line-input); border-radius: var(--r-round); font-family: var(--font-num); font-size: var(--fs-cap); }
.fd-step.is-done .fd-no { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.f10-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); }
.f10-clock { flex: none; min-width: 0; padding: 0; border: 0; font-size: inherit; font-weight: 600; color: var(--ink); text-align: center; }
.f10-steps .fd-step.is-now .fd-title { color: var(--ink); }
.f10-steps .fd-step:not(.is-now):not(.is-done) .fd-title { color: var(--muted); }
.f10-sum { margin-left: auto; font-size: var(--fs-cap); font-weight: 400; color: var(--muted); text-align: right; }
.f10-sources { list-style: none; margin: var(--sp-2) 0 0; padding: 0; }
.f10-sources li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-3); padding: 10px 0; border-bottom: 1px solid var(--line); }
.f10-src { min-width: 11em; font-size: var(--fs-body); font-weight: 700; }
.f10-src .rel, .actions .rel { margin-left: var(--sp-2); }
.f10-sources .btn { margin-left: auto; }
.f10-note { margin-top: 0; min-height: 0; padding: var(--sp-1) var(--sp-2); font-size: var(--fs-sub); }
.f10-count { margin: var(--sp-2) 0 0; font-size: var(--fs-body); }
.f10-count strong { font-family: var(--font-num); font-size: var(--fs-h1); font-weight: 600; color: var(--accent); }
.f10-map th { white-space: nowrap; }
.f10-map td:last-child { white-space: nowrap; width: 1%; }
.map-auto { color: var(--muted); }
.map-check { color: var(--plan); font-weight: 700; }
.role-split { margin: 0 0 var(--sp-3); }
.role-line { font-size: var(--fs-body); }
.role-line { margin: var(--sp-3) 0 var(--sp-2); font-weight: 700; color: var(--ink-2); }
.role-table td { vertical-align: top; }

/* ---------- かんたん録音 ---------- */
.easy { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: var(--sp-5) 0; text-align: center; }
.easy-rec { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 200px; height: 200px; border: 0; border-radius: var(--r-round); background: var(--brand); color: var(--on-brand); font: inherit; font-family: var(--font-head); font-size: var(--fs-h1); font-weight: 700; cursor: pointer; transition: transform 80ms; }
.easy-rec:active { transform: scale(.97); }
.easy-rec:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.easy-send { width: auto; height: auto; min-height: 64px; padding: 0 28px; border-radius: var(--r-1); flex-direction: row; }
.easy-dot { width: 22px; height: 22px; border-radius: var(--r-round); background: currentColor; }
.easy-help { align-self: stretch; margin: 0; font-size: var(--fs-body); color: var(--ink-2); text-align: left; }
.easy-help a { display: inline-flex; align-items: center; min-height: 44px; margin: 0 6px; }
.easy-text { align-self: stretch; max-width: 32em; margin: 0; font-size: var(--fs-h2); line-height: 1.8; text-align: left; }
.easy .ai-panel { align-self: stretch; text-align: left; }
.app.is-large .band { font-size: var(--fs-body); }
.app.is-large .tab { font-size: var(--fs-body); }

/* ---------- 動きを減らす設定（7-4） ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .loading-bar::after { transform: none; width: 100%; opacity: .5; }
  .recorder.is-rec .rec-wave span { animation: none !important; }
  .ai-out.is-writing::after { animation: none !important; }
}
.urow [data-act="ask-stop"] { color: var(--danger); }
.seg-3 .seg-btn { font-size: var(--fs-sub); }

/* ---------- 第11弾（17 拡張の8機能）: ロールプレイ・年表・年1回のご確認・振り返り・席と上限・受け取りQR・窓口 ---------- */
a.seg-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.crow-link.is-current { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--brand); padding-left: var(--sp-3); }
.rp-log { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.rp-log:empty { display: none; }
.rp-turn { display: flex; flex-direction: column; gap: 2px; max-width: 85%; padding: var(--sp-2) var(--sp-3); border-radius: var(--r-1); font-size: var(--fs-body); line-height: 1.7; }
.rp-customer { align-self: flex-start; background: var(--surface); border-left: 3px solid var(--line-strong); }
.rp-me { align-self: flex-end; background: var(--accent-soft); border-right: 3px solid var(--brand); }
.rp-who { font-size: var(--fs-cap); font-weight: 700; color: var(--muted); }
.rp-src { font-size: var(--fs-cap); color: var(--muted); }
.tl-fields li { padding: var(--sp-2) 0; }
.tl-table { min-width: 880px; }
.tl-table th.num { text-align: left; }
.tl-table td { min-width: 6.5em; }
.tl-ev { display: block; font-size: var(--fs-cap); font-weight: 700; color: var(--p-keep); line-height: 1.5; }
.tl-ev + .tl-ev { margin-top: var(--sp-1); }
.act-table { min-width: 560px; }
.act-goal td { font-weight: 700; color: var(--ink); background: var(--surface); }
.act-table .sbar { width: 48px; }
.coach-rows li { align-items: center; }
.coach-text { flex: 1 1 260px; min-width: 0; }
.coach-acts { display: inline-flex; flex-wrap: wrap; gap: var(--sp-1); margin-left: auto; }
.qr-block { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin-top: var(--sp-3); }
.qr { width: 160px; height: 160px; flex: none; border: 1px solid var(--line); }
.qr-bg { fill: var(--bg); }
.qr-fg { fill: var(--ink); }
.qr-side { flex: 1 1 220px; min-width: 0; }
.qr-label { margin: 0; font-weight: 700; }
.intake-preview { margin-top: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-left: 3px solid var(--line-strong); background: var(--surface); }
.intake-preview .topic-list .check { min-height: 44px; padding: 0 var(--sp-2) 0 0; align-items: center; }
.intake-preview .input, .intake-preview .ta { background: var(--bg); }
label.opt input.sr-only:focus-visible + .opt-radio { outline: 2px solid var(--accent); outline-offset: 2px; }
.tl-table td:first-child { min-width: 7.5em; white-space: nowrap; }

/* ---------- 第12弾: 品質レビュー v2・デザインレビュー v2 の直し ---------- */
/* S4 入口の一言: 字詰め（書体の読み込みの途中でも字間が空かないように） */
/* M2 大きな金額は数字と単位を分ける（単位は小さく） */
.yen-visual { display: inline-flex; align-items: baseline; flex-wrap: wrap; }
.yen-unit { margin-left: var(--sp-1); font-family: var(--font-body); font-size: var(--fs-sub); font-weight: 700; letter-spacing: 0; }
.total-label { margin: var(--sp-2) 0 0; font-size: var(--fs-sub); font-weight: 700; color: var(--ink-2); }
.total-main { margin-top: 0; }
.total-sub-2 { margin-top: 0; font-size: var(--fs-cap); }
/* AIの下書きの枠の頭: 固定の名前＋右に出どころ（見本・検査前） */
.ai-head-title { font-size: var(--fs-sub); font-weight: 700; color: var(--ink); }
.ai-head .ai-source { margin-left: auto; font-size: var(--fs-cap); font-weight: 400; color: var(--muted); }
.ai-head .ai-source.is-pending { color: var(--warn); font-weight: 700; }
.ai-msg { color: var(--warn); }
/* M4 紹介の木: 頼める人は左の縦線と箱の下の1行 */
.tn-asktext { font-size: 10.5px; font-weight: 700; fill: var(--p-ref); }
.tn.is-dim .tn-asktext { fill: var(--muted); }
/* M6 運営の表: 節罫のすぐ下の表は上の余白を詰める */
.section-head + .table-wrap { margin-top: 0; }
.section-head + .table-wrap .table th { padding-top: var(--sp-2); }
/* M7 ロールプレイ: 出どころは会話の頭に1回・お客様役は地の塗りだけ */
.rp-source { margin: var(--sp-2) 0 0; font-size: var(--fs-cap); color: var(--muted); }
.rp-customer { border-left: 0; }
/* M9 PC の今日やること: 1200px 以上は右に段取りの欄（sticky） */
@media (min-width: 1200px) {
  .app[data-screen="d02"] .main { max-width: 1100px; }
  .screen-d02 { display: grid; grid-template-columns: minmax(0, 720px) 280px; column-gap: var(--sp-6); align-items: start; }
  .screen-d02 > * { grid-column: 1; }
  .screen-d02 > .today-ledger { grid-column: 2; grid-row: 1 / span 40; position: sticky; top: calc(var(--band-h) + var(--sp-5)); margin-top: 0; }
  .app.has-guide .screen-d02 { display: block; }
}
/* L2 今日やること（スマホ）: 次の一手のラベルを本文と同じ行に・行を詰める */
@media (max-width: 600px) {
  .trow { padding: var(--sp-3) 0; }
  .trow-move .label { display: inline; margin-right: var(--sp-2); }
  .trow-move { margin-top: var(--sp-2); }
}
/* L3 業務の型のタブ: 末尾に余白（横に送れることが分かるように） */
.wt-switch { padding-right: var(--sp-6); }
/* L4 API のパスは単語の途中で折らない */
.api-path { word-break: keep-all; overflow-wrap: normal; }
/* L5 運営の「数え方」などの定義の行はラベルの幅をそろえる */
[data-surface="ops"] .lines li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); }
/* M6 運営の表: 横に送る入れ物の中で頭を固定すると頭の上に空きができるため、固定しない。最初の列は縦に折らない */
.table-ops th:first-child, .table-ops td:first-child { min-width: 6.5em; }
.demo-url { font-family: var(--font-code); font-size: var(--fs-sub); overflow-wrap: anywhere; word-break: break-all; }

/* ---------- 第13弾: 個人HP（D32）・LINE公式（D33・D34）・構築の進み具合（O6） ---------- */
.site-stepbar { margin: var(--sp-3) 0 0; border-bottom: 1px solid var(--line); }
.site-steps { display: flex; flex-wrap: wrap; gap: 0 var(--sp-4); list-style: none; margin: 0; padding: 0; }
.site-step a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: var(--fs-sub); font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap; }
.site-step a .num { color: inherit; }
.site-step.is-done a { color: var(--ink-2); font-weight: 400; }
.site-step.is-done .check-mark { color: var(--ink-2); }
.site-step.is-now a { color: var(--ink); border-bottom-color: var(--accent); }
.site-step-mobile { display: none; margin: 0; padding: var(--sp-2) 0 0; font-weight: 700; }
.site-step-you { margin: 0; padding: var(--sp-1) 0 var(--sp-2); font-size: var(--fs-cap); color: var(--muted); }
@media (max-width: 600px) { .site-steps { display: none; } .site-step-mobile { display: block; } .site-step-mobile .num { color: var(--muted); margin-right: var(--sp-1); } }
.site-qs { list-style: none; margin: 0; padding: 0; }
.site-qs .field-label .num { margin-right: var(--sp-1); color: var(--muted); }
.site-preview { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); margin-top: var(--sp-3); }
@media (min-width: 960px) { .site-preview { grid-template-columns: 300px minmax(0, 1fr); } }
.phone { width: 100%; max-width: 300px; margin: 0 auto; padding: 10px; border: 1px solid var(--line-strong); border-radius: calc(var(--r-2) * 3); background: var(--surface); }
.phone-screen { overflow: hidden; border: 1px solid var(--line); border-radius: calc(var(--r-2) * 2); background: var(--bg); padding: var(--sp-4) var(--sp-3); font-size: var(--fs-cap); line-height: 1.6; }
.site-name { margin: 0; font-family: var(--font-head); font-size: var(--fs-h2); font-weight: 700; }
.site-lead { margin: var(--sp-2) 0 0; color: var(--ink-2); }
.site-btn { display: inline-block; margin: var(--sp-3) 0 0; padding: var(--sp-1) var(--sp-3); border-radius: var(--r-1); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.site-sec { margin-top: var(--sp-3); padding-top: var(--sp-2); border-top: 1px solid var(--line); }
.site-sec h3 { margin: 0; font-size: var(--fs-sub); }
.site-sec p { margin: 2px 0 0; color: var(--ink-2); }
.site-aff { margin-top: var(--sp-4); padding-top: var(--sp-2); border-top: 1px solid var(--ink); font-size: var(--fs-cap); color: var(--ink-2); }
.tpl-kinari .phone-screen { background: var(--surface); }
.tpl-kinari .site-btn { background: var(--bg); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tpl-photo .site-name { padding-top: 64px; border-top: 6px solid var(--line-strong); }
.site-side { min-width: 0; }
.ln-layout { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); margin-top: var(--sp-3); }
@media (min-width: 960px) { .ln-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-6); } }
.ln-col > .section-head:first-child { margin-top: 0; }
.ln-steps { list-style: none; margin: 0; padding: 0; }
.ln-step { padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.ln-step.is-done .ln-no { background: var(--ok); color: var(--bg); border-color: var(--ok); }
.ln-no { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1.5px solid var(--line-input); border-radius: var(--r-round); font-size: var(--fs-cap); }
.ln-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; list-style: none; margin: 0 0 var(--sp-2); padding: 2px; background: var(--line-strong); border-radius: var(--r-1); }
.ln-menu li { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: var(--sp-1); background: var(--bg); font-size: var(--fs-cap); font-weight: 700; text-align: center; }
.search-row .btn { white-space: nowrap; flex: none; }
.warn-text { display: inline-flex; align-items: center; gap: 4px; color: var(--warn); font-weight: 700; }
.wait-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: var(--r-round); background: var(--accent); vertical-align: 1px; }
.crow-status.is-long { color: var(--warn); }
.bc-sample { margin: var(--sp-3) 0; }
.kv { display: grid; gap: 0; margin: var(--sp-3) 0; border-top: 1px solid var(--line); }
.kv > div { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
.kv dt { font-size: var(--fs-sub); color: var(--muted); }
.kv dd { margin: 0; }
@media (max-width: 600px) { .kv > div { grid-template-columns: 1fr; gap: 2px; } }
/* 第14弾: 個人HP（1枚もの）の見本の並び・スマホ表示の枠・項目ごとの直し */
.tpl-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); margin-top: var(--sp-3); }
@media (min-width: 960px) { .tpl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); } }
.tpl-card { margin: 0; padding: var(--sp-2); border: 1px solid var(--line); border-radius: var(--r-2); }
.tpl-card.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tpl-frame { position: relative; overflow: hidden; height: 480px; max-width: 188px; margin: 0 auto; border-radius: var(--r-1); background: var(--surface); }
.tpl-frame iframe { position: absolute; top: 0; left: 0; width: 375px; height: 960px; border: 0; transform: scale(.5); transform-origin: 0 0; background: var(--bg); pointer-events: none; }
@media (max-width: 959px) { .tpl-frame { height: 560px; max-width: 300px; } .tpl-frame iframe { height: 700px; transform: scale(.8); } }
.tpl-acts { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tpl-card figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); padding: var(--sp-2) var(--sp-1) 0; }
.tpl-name { font-weight: 700; }
.tpl-note { flex-basis: 100%; font-size: var(--fs-cap); color: var(--muted); }
.phone .phone-frame { display: block; width: 100%; height: 600px; border: 0; border-radius: calc(var(--r-2) * 2); background: var(--bg); }
.se-row { margin-top: var(--sp-2); }
/* 直す: 1行ずつの欄・右の見本（1200px 以上は横に固定） */
.se-layout { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
.se-preview { display: none; }
@media (min-width: 1200px) {
  .se-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .se-preview { display: block; position: sticky; top: var(--sp-4); }
  .se-preview-frame { display: block; width: 100%; height: calc(100vh - 120px); min-height: 520px; border: 1px solid var(--line-strong); border-radius: var(--r-2); background: var(--bg); }
}
.rep { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rep.is-ng { box-shadow: inset 3px 0 0 var(--danger); }
.rep-row { display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; align-items: start; gap: var(--sp-2); padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
.rep-no { padding-top: 10px; color: var(--muted); text-align: right; }
.rep-parts { display: grid; gap: var(--sp-1); min-width: 0; }
.rep-part { display: grid; gap: 2px; }
.rep-label { font-size: var(--fs-cap); color: var(--muted); }
.rep-del { margin-top: 4px; }
.rep-add { margin-top: var(--sp-2); }
@media (max-width: 600px) { .rep-row { grid-template-columns: 1.5em minmax(0, 1fr); } .rep-del { grid-column: 2; justify-self: start; } }
.se-photo-img { display: block; width: 96px; height: 96px; object-fit: cover; border: 1px solid var(--line-strong); border-radius: var(--r-2); }
/* AIで作った中身（AI の下書きの枠と同じ形・項目ごとの一覧） */
.site-dl { margin: 0; padding: var(--sp-2) var(--sp-4); }
.site-dl > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
.site-dl > div:last-child { border-bottom: 0; }
.site-dl dt { font-size: var(--fs-sub); color: var(--muted); }
.site-dl dd { margin: 0; line-height: 1.8; white-space: pre-line; }
@media (max-width: 600px) { .site-dl > div { grid-template-columns: 1fr; gap: 2px; } }


/* ---------- 第16弾: UXの大改修（21 UX改善仕様・22 ユーザビリティテスト） ---------- */
/* 上の帯の「メニュー」（48px 以上・帯の色の上） */
.band-menu { display: inline-flex; align-items: center; gap: 6px; min-width: 48px; min-height: 48px; margin-left: auto; padding: 0 var(--sp-2); color: var(--on-band); font-size: var(--fs-cap); font-weight: 700; text-decoration: none; }
@media (min-width: 960px) { [data-surface="user"] .band-menu { display: none; } }
/* 下のナビは文字を小さくしすぎない */
.tab-label { font-size: max(13px, var(--fs-cap)); }
.app.is-large .tab-label { font-size: max(14px, var(--fs-cap)); }
/* 左のナビの発信の子 */
.side-subs { display: grid; margin: 2px 0 var(--sp-1); }
.side-link.side-sub { min-height: 40px; padding-left: calc(var(--sp-5) + 16px); font-size: var(--fs-sub); font-weight: 400; }
/* 発信の区切り・まとめた画面の区切り */
.out-tabs, .sub-tabs { margin: 0 0 var(--sp-3); }
.out-row { padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); list-style: none; }
.out-rows { margin: 0; padding: 0; }
/* 行の中の文面（コピーのボタンは文面の上） */
.row-draft { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px dashed var(--line); }
.row-draft-acts { margin: 0 0 var(--sp-2); }
.row-draft-links { margin-top: var(--sp-2); }
.trow-hint { margin: var(--sp-2) 0 0; font-size: var(--fs-sub); color: var(--ink-2); }
.trow.is-copied .trow-hint { font-weight: 700; color: var(--ink); }
.trow-actions .btn-quiet { min-height: 44px; padding-inline: var(--sp-3); }
/* 営業モードのときだけ見せる */
.guide-only { display: none; }
.app.has-guide .guide-only { display: block; }
.app.has-guide .wt-tabs.guide-only { display: flex; }
.app.has-guide .wt-select { display: none; }
/* 並べ方の1行 */
.wt-select { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-2) 0 0; font-size: var(--fs-sub); color: var(--ink-2); }
.input-inline { width: auto; min-height: 44px; padding-block: 0; }
.today-add { margin-top: var(--sp-4); }
/* メニュー */
.menu-plan { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3); margin: 0 0 var(--sp-3); }
.menu-plan-name { font-weight: 700; }
.menu-plan-sub { font-size: var(--fs-sub); color: var(--ink-2); }
.menu-link { flex-wrap: wrap; padding: var(--sp-2) 0; }
.menu-name { flex: 1 1 auto; font-weight: 700; }
.menu-desc { flex-basis: 100%; order: 3; font-size: var(--fs-sub); color: var(--ink-2); }
.menu-link::after { order: 2; }
.menu-pillar-head { display: flex; align-items: center; gap: var(--sp-2); margin: var(--sp-4) 0 0; font-size: var(--fs-sub); font-weight: 700; }
.menu-pillar-lead { color: var(--ink-2); font-weight: 400; }
.menu-map-head { margin-top: var(--sp-6); }
/* 紹介: 今頼める人 */
.ask-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-3); }
.ask-top .btn { margin-left: auto; }
.tree-details { margin-top: var(--sp-5); }
.tree-details > summary, .plans-more > summary, .pillar-group > summary, .voice-policy > summary { display: flex; align-items: center; gap: var(--sp-2); min-height: 48px; border-bottom: 1px solid var(--line); font-weight: 700; cursor: pointer; }
/* 記録: 相手の候補・大きい録音 */
.rec-who { margin: 0 0 var(--sp-3); padding: 0; border: 0; }
.opt-note { display: block; font-size: var(--fs-sub); color: var(--ink-2); font-weight: 400; }
.recorder-large { flex-wrap: wrap; }
.recorder-large .rec-btn { width: 88px; height: 88px; }
.rec-help { flex: 1 1 12em; margin: 0; font-size: var(--fs-sub); color: var(--ink-2); }
.rec-label { display: block; font-size: var(--fs-body); font-weight: 700; color: var(--ink); }
@media (max-width: 600px) { .recorder-large { position: sticky; bottom: calc(var(--tab-h) + var(--sp-4) + env(safe-area-inset-bottom)); z-index: 3; background: var(--bg); } }
.voice-policy { margin: var(--sp-3) 0; }
.voice-policy > summary { font-weight: 400; font-size: var(--fs-sub); color: var(--ink-2); }
.voice-more { margin-left: auto; color: var(--accent); font-weight: 700; }
/* 料金の計算 */
.fit { margin: 0 0 var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line-strong); }
.fit-head { margin: 0 0 var(--sp-1); font-family: var(--font-head); font-size: var(--fs-h2); }
.fit-inputs { display: grid; gap: var(--sp-2); margin: var(--sp-3) 0; }
.fit-row { display: grid; grid-template-columns: 8em minmax(0, 1fr); align-items: center; gap: var(--sp-2); }
.fit-row .field-label { margin: 0; }
.fit-input { display: flex; align-items: center; gap: var(--sp-2); }
.fit-input .input { max-width: 9em; min-height: 48px; }
.fit-unit { color: var(--ink-2); }
.fit-answer { border-top: 1px solid var(--line); padding-top: var(--sp-3); }
.fit-reco { margin: 0; font-size: var(--fs-h2); }
.fit-price { margin: var(--sp-1) 0 0; }
.fit-notes { margin: var(--sp-2) 0 0; padding-left: 1.2em; font-size: var(--fs-sub); color: var(--ink-2); }
.fit-pillars { list-style: none; margin: 0; padding: 0; }
.fit-pillars li { display: flex; align-items: baseline; gap: var(--sp-2); padding: var(--sp-1) 0; }
.fit-payback { margin-top: var(--sp-3); }
.fit-payback p { margin: 0; }
.fit-deals { font-family: var(--font-num); font-size: var(--fs-h2); }
.fit-note { margin-top: var(--sp-1) !important; font-size: var(--fs-sub); color: var(--ink-2); }
.plans-more { margin: 0 0 var(--sp-2); }
.pillar-group { margin: 0 0 var(--sp-1); }
.pillar-group-name { flex: 1 1 auto; }
.pillar-group-n { color: var(--ink-2); font-weight: 400; }
.p-price { color: var(--accent); }
.p-price::before { border-radius: 0; background: var(--accent); transform: rotate(45deg); }
/* 営業モード: 価値の帯（塗らない・罫と線だけ） */
.value-band { position: sticky; top: var(--band-h); z-index: 2; display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); margin: 0 0 var(--sp-3); padding: var(--sp-2) var(--sp-3); background: var(--bg); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); border-left: 4px solid var(--accent); }
.value-band[data-pillar="ref"] { border-left-color: var(--p-ref); }
.value-band[data-pillar="keep"] { border-left-color: var(--p-keep); }
.value-band[data-pillar="time"] { border-left-color: var(--p-time); }
.value-band-text { flex: 1 1 14em; margin: 0; color: var(--ink-2); font-size: var(--fs-body); }
.value-band.is-earn .value-band-text { color: var(--ink); font-family: var(--font-head); font-size: var(--fs-h2); font-weight: 700; }
.value-band-when { font-size: var(--fs-cap); color: var(--muted); }
.guide-audience { margin: 0 0 var(--sp-5); padding: var(--sp-4) 0; border-bottom: 1px solid var(--line-strong); }
.guide-audience h2 { margin: var(--sp-1) 0 var(--sp-3); font-family: var(--font-head); font-size: var(--fs-h2); }
.guide-audience-kicker { margin: 0; font-size: var(--fs-cap); color: var(--guide); font-weight: 700; }
.guide-audience-btns { display: grid; gap: var(--sp-2); }
.guide-audience-btns .btn { min-height: 56px; justify-content: flex-start; }
@media (min-width: 720px) { .guide-audience-btns { grid-template-columns: repeat(3, minmax(0, 1fr)); } .guide-audience-btns .btn { justify-content: center; } }
.guide-aud { font-size: var(--fs-cap); color: var(--ink-2); white-space: nowrap; }
.guide-end-line { margin: var(--sp-2) 0 0; font-weight: 700; }
/* 管理: 詳細・監査用の書き出し */
.member-detail { margin: var(--sp-3) 0; padding: var(--sp-3) 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.audit-preview { max-height: 14em; overflow: auto; font-family: var(--font-code); font-size: var(--fs-cap); }
/* 見込み客を足す */
.add-form .seg { display: flex; flex-wrap: wrap; }
.add-form .seg-btn { display: inline-flex; align-items: center; }
.add-form .seg-btn.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.add-form .seg-btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
/* 個人HP: 完成見本・アドレス */
.tpl-grid-small .tpl-card { padding: var(--sp-1); }
.addr-detail { margin: var(--sp-2) 0; }
.dns-table td { word-break: break-all; }
.mono { font-family: var(--font-code); font-size: var(--fs-sub); }
.addr-confirm { margin-top: var(--sp-3); }
/* はじめの10分の文字の大きさ */
.f10-size { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); margin: 0 0 var(--sp-3); }
.f10-size .field-label { margin: 0; }
/* 画面を表示できなかったとき */
.screen-error p { margin: 0 0 var(--sp-2); }
/* AI の回数が残り少ないとき */
.ai-quota.is-low { color: var(--warn); display: inline-flex; align-items: center; gap: 4px; }
.ai-screen-note { margin-top: var(--sp-5); }
/* 押せる大きさ（21 §6-6） */
.btn-quiet, .lock, .menu-link, .side-link, .seg-btn, .toggle { min-height: 44px; }
.app.is-large .btn-quiet, .app.is-large .lock, .app.is-large .menu-link, .app.is-large .side-link, .app.is-large .seg-btn, .app.is-large .toggle { min-height: 48px; }
.next-link a { display: inline-flex; align-items: center; min-height: 44px; padding-block: var(--sp-1); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.app.is-large .muted-line, .app.is-large .note { color: var(--ink-2); }
/* 営業モード: 枠の所が価値の帯の下に隠れないように・狭い画面の帯は詰める */
.app.has-guide .is-guide-target { scroll-margin-top: calc(var(--band-h) + 120px); }
@media (max-width: 600px) {
  .app.has-guide .band-menu-label, .app.has-guide .band-tenant { display: none; }
  .app.has-guide .band-plan { flex: 1 1 auto; min-width: 0; padding-left: var(--sp-2); }
  .app.has-guide .band-left { flex: none; }
  .value-band { gap: 2px var(--sp-2); padding: var(--sp-1) var(--sp-3); }
}
/* 画面を移ったときに本文へ移す読み上げの位置は、枠を描かない */
.main:focus, .main:focus-visible { outline: none; }
/* ---------- 第17弾: 料金（1つの価格・別料金のオプション） ---------- */
.price-hero { margin: 0 0 var(--sp-5); padding: var(--sp-4) 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.price-hero-name { margin: 0; font-family: var(--font-head); font-size: var(--fs-h2); }
.price-hero-main { margin: var(--sp-1) 0 0; font-size: var(--fs-display, 40px); font-weight: 700; color: var(--ink); }
.price-hero-main .yen-unit { font-size: var(--fs-sub); }
.price-hero-per { margin-left: var(--sp-2); font-size: var(--fs-sub); font-weight: 400; color: var(--ink-2); }
.price-hero-lead { margin: var(--sp-2) 0 0; font-weight: 700; }
.opt-list { list-style: none; margin: 0; padding: 0; }
.opt-row { padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
.opt-row .muted-line { margin: 2px 0 0 calc(20px + var(--sp-2)); }
.opt-row-name { font-weight: 700; }
.fit-opts { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); margin: var(--sp-2) 0 0; }
.ai-over p { margin: 0; }
.ai-over .actions { margin-top: var(--sp-1); }
.total-first { margin: var(--sp-2) 0 0; font-weight: 700; color: var(--ink); }
.opt-includes { margin: var(--sp-1) 0 0 calc(20px + var(--sp-2)); font-size: var(--fs-sub); }
.opt-includes > summary { color: var(--accent); cursor: pointer; min-height: 44px; display: flex; align-items: center; }

/* ---------- 保険専用のCRM（担当D の D04・D03 の依頼） ---------- */
/* 顧客カードの下の帯は共通の .dock へ移した（25 第10回: 固定の帯は画面に1つ） */
/* カレンダーの7列を同じ幅に（table-ops の最初の列の幅を打ち消す） */
.crm-cal { table-layout: fixed; width: 100%; }
.crm-cal th, .crm-cal td, .crm-cal th:first-child, .crm-cal td:first-child { width: calc(100% / 7); min-width: 0; }
/* CRM の値の欄（ラベルより1段濃い文字色・トークンだけ） */
.crm-v { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- 代理店と解約（担当C の依頼） ---------- */
/* D39 解約の手順の「いま」の番号は勝色で塗る（主ボタン・済みの印と同じ面の扱い） */
.cancel-steps .fd-step.is-now .fd-no { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
/* D38 代理店の入口と振り分け: 本文の最大幅 */
.app[data-screen="d38"] .main > * { max-width: 1040px; }
/* 表を縦に積む共通の部品（375px 以下では各セルを「ラベル（data-label）を上・値を下」に。CRM・代理店の表で共用） */
@media (max-width: 375px) {
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td, .table-stack th { display: block; width: 100%; }
  .table-stack tr { padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); }
  .table-stack td, .table-stack th[scope="row"] { padding: 2px 0; border: 0; text-align: left; }
  .table-stack td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-cap); color: var(--ink-2); }
}
/* 表の中の長い文の列（語の途中で折らない。対応していないブラウザは keep-all と anywhere で近い形に） */
.cell-text { word-break: keep-all; overflow-wrap: anywhere; text-wrap: pretty; }
@supports (word-break: auto-phrase) { .cell-text { word-break: auto-phrase; } }

/* ---------- 第19弾: フロントのUX（23 §2・§5・§6） ---------- */
/* 上の帯: さがす（虫眼鏡）とメニュー。「サンプル」の札は1回だけ（長い／短いのどちらか） */
.band-sample-short { display: none; }
@media (max-width: 600px) { .band-sample-long { display: none; } .band-sample-short { display: inline; } }
.band-search { display: inline-flex; align-items: center; justify-content: center; min-width: var(--touch-min); min-height: var(--touch-min); margin-left: auto; padding: 0; border: 0; background: none; color: var(--on-band); cursor: pointer; }
.band-search .nav-icon { width: 1.5em; height: 1.5em; }
.band-search + .band-menu { margin-left: 0; }
.band { height: auto; min-height: calc(var(--band-h) + var(--safe-t)); padding-top: var(--safe-t); }
.band-inner { min-height: var(--band-h); padding-left: max(var(--sp-4), var(--safe-l)); padding-right: max(var(--sp-3), var(--safe-r)); }
/* 帯の切り替え（利用者／運営／パートナー）は狭い画面で札と接しない（25 第8回） */
@media (max-width: 480px) {
  .band-switch-link { padding: 0 5px; font-size: var(--fs-cap); }
  .band-left { gap: var(--sp-1); }
  [data-surface="ops"] .band-mark, [data-surface="partner"] .band-mark { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 2px; }
}
.section-head h2 { text-wrap: balance; }

/* 本文: 余白は幅に合わせる・PC は 1040px まで（25 第8回・第10回） */
@media (max-width: 959px) { .main { padding-left: max(var(--pad-x), var(--safe-l)); padding-right: max(var(--pad-x), var(--safe-r)); padding-bottom: calc(var(--thumb-bottom) + var(--fab-size) + var(--sp-6)); } }
@media (min-width: 960px) {
  .main { max-width: 1040px; }
  /* 左のナビの地を本文の下端まで通す */
  .frame { min-height: calc(100dvh - var(--band-h)); background: linear-gradient(to right, var(--surface) 239px, var(--line) 239px, var(--line) 240px, transparent 240px); }
}
.tab { min-height: var(--touch-min); }

/* 浮かせたボタン「足す」: 下のナビの上 16px・右 16px。PC（900px 以上）と、固定の帯に主ボタンがある画面では出さない（23 §6-2） */
.fab { position: fixed; right: calc(var(--fab-gap) + var(--safe-r)); bottom: calc(var(--thumb-bottom) + var(--fab-gap)); z-index: 18; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: var(--fab-size); min-height: var(--fab-size); padding: 0 var(--sp-4); border: 0; border-radius: var(--r-round); background: var(--brand); color: var(--on-brand); font: inherit; font-size: var(--fs-body); font-weight: 700; box-shadow: var(--shadow-pop); cursor: pointer; }
.fab[hidden] { display: none; }
.fab-plus { font-size: 1.25em; line-height: 1; }
.fab:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (min-width: 900px) { .fab { display: none; } }
.app.is-easy .fab, .app.is-typing .fab, html.has-sheet .fab { display: none; }

/* 画面の下の固定の帯（主ボタンの置き場・画面に1つ）。スマホは下のナビの上に、PC は流れの中 */
.dock { position: sticky; bottom: max(var(--thumb-bottom), var(--kb-h)); z-index: 15; display: flex; gap: var(--sp-2); align-items: center; min-height: var(--dock-h); margin: var(--sp-5) calc(-1 * max(var(--pad-x), var(--safe-l))) 0; padding: var(--sp-2) max(var(--pad-x), var(--safe-r)) var(--sp-2) max(var(--pad-x), var(--safe-l)); background: var(--bg); border-top: 1px solid var(--line-strong); }
.dock-main { flex: 1 1 60%; display: flex; }
.dock-main > .btn { flex: 1 1 auto; justify-content: center; }
.dock-sub { flex: 0 1 40%; display: flex; }
.dock-sub > .btn { flex: 1 1 auto; justify-content: center; }
@media (max-width: 374px) { .dock { flex-direction: column-reverse; align-items: stretch; } .dock-main, .dock-sub { flex: none; } }
@media (min-width: 960px) { .dock { position: static; margin: var(--sp-5) 0 0; padding: var(--sp-3) 0 0; border-top-color: var(--line); } .dock-main, .dock-sub { flex: none; } .dock { justify-content: flex-start; } }
.app.has-guide .dock { position: static; }
.app.is-typing .tabbar { display: none; }
.app.is-typing { --thumb-bottom: 0px; }

/* 下から出る板（足す・さがす） */
html.has-sheet { overflow: hidden; }
.sheet-scrim { position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, var(--band-bg) 55%, transparent); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; display: flex; flex-direction: column; max-height: min(var(--sheet-max-h), calc(100dvh - var(--kb-h) - var(--safe-t) - var(--sp-4))); margin-bottom: var(--kb-h); padding: var(--sp-2) max(var(--pad-x), var(--safe-r)) calc(var(--sp-4) + var(--safe-b)) max(var(--pad-x), var(--safe-l)); background: var(--bg); color: var(--ink); border-radius: var(--sheet-radius) var(--sheet-radius) 0 0; box-shadow: var(--shadow-pop); }
.sheet-grip { width: 40px; height: 4px; margin: 0 auto var(--sp-2); border-radius: var(--r-round); background: var(--line-strong); touch-action: none; cursor: grab; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.sheet-title { margin: 0; font-family: var(--font-head); font-size: var(--fs-h2); }
.sheet-tabs { margin: var(--sp-2) 0; }
.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: var(--sp-2); }
.sheet-body .input { width: 100%; font-size: max(1rem, var(--fs-body)); scroll-margin-bottom: calc(var(--dock-h) + var(--sp-4)); }
.sheet-dock { display: flex; justify-content: flex-end; padding-top: var(--sp-2); border-top: 1px solid var(--line); }
.sheet-dock .btn { min-width: 50%; justify-content: center; }
.search-sheet.sheet { top: 0; max-height: none; border-radius: 0; padding-top: calc(var(--sp-2) + var(--safe-t)); }
.search-rows { list-style: none; margin: 0 0 var(--sp-3); padding: 0; }
.search-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: var(--touch-min); border-bottom: 1px solid var(--line); }
.search-row a { flex: 1 1 auto; min-width: 0; padding: var(--sp-2) 0; color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.link-btn { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; min-height: var(--touch-min); }
@media (min-width: 900px) {
  .sheet { left: auto; right: var(--sp-5); bottom: var(--sp-5); width: min(560px, calc(100% - 2 * var(--sp-5))); border-radius: var(--sheet-radius); }
  .search-sheet.sheet { top: calc(var(--band-h) + var(--sp-3)); bottom: auto; max-height: 70vh; }
}

/* 今日の受け箱: 種類の印（形＋文字・色に頼らない）・件数の1行・行の操作2つ・…の中 */
.kmark { display: inline-flex; align-items: baseline; gap: 4px; font-size: var(--fs-cap); font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.kmark-shape { font-size: .9em; }
.kind-counts { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); margin: 0 0 var(--sp-2); font-size: var(--fs-sub); }
.kind-count { display: inline-flex; align-items: center; min-height: var(--touch-min); color: var(--ink-2); text-decoration: none; }
.kind-count .num { margin-left: 4px; font-weight: 700; color: var(--ink); }
.trow { position: relative; touch-action: pan-y; background: var(--bg); }
.trow-name { overflow-wrap: anywhere; }
.trow-actions { flex-wrap: wrap; }
.trow-actions > .btn { min-height: var(--touch-min); }
.row-more { margin-left: auto; position: relative; }
.row-more > summary { display: inline-flex; align-items: center; justify-content: center; min-width: var(--touch-min); min-height: var(--touch-min); margin: calc(-1 * var(--sp-2)) calc(-1 * var(--sp-2)) 0 0; color: var(--ink-2); font-weight: 700; list-style: none; cursor: pointer; }
.row-more > summary::-webkit-details-marker { display: none; }
.row-more-acts { position: absolute; right: 0; top: 100%; z-index: 5; display: grid; gap: var(--sp-1); min-width: 10em; padding: var(--sp-2); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-1); box-shadow: var(--shadow-pop); }
.trow.is-swiping { transition: none; }
.trow.is-swipe-back { transition: transform var(--dur-2) var(--ease-out); }
@media (max-width: 374px) { .trow-actions { flex-direction: column; align-items: stretch; } }

/* 状態の印（形＋言葉。ピルにしない） */
.st { display: inline-flex; align-items: baseline; gap: 4px; font-size: var(--fs-sub); font-weight: 700; }
.st-confirm, .st-reserved { color: var(--st-confirm); }
.st-sent, .st-done { color: var(--st-sent); }
.st-held { color: var(--st-held); }
.st-limit { color: var(--st-limit); }
.st-offline { color: var(--st-offline); }
.st-later { color: var(--muted); }
.screen-note { margin: var(--sp-3) 0 0; font-size: var(--fs-sub); color: var(--ink-2); }

/* 集めるの先頭3つ（同じ大きさの文字ボタン・塗らない） */
.head-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); margin: 0 0 var(--sp-3); }
.head-act { justify-content: center; min-height: var(--touch-min); text-align: center; white-space: normal; line-height: 1.35; }

/* かんたん表示（23 §7）: 文字＋押せる大きさ＋並び */
.app.is-easy { --fs-body: 1.25rem; --fs-sub: 1.0625rem; --fs-h2: 1.375rem; --fs-h1: 1.75rem; --touch-min: var(--touch-easy); --tab-h: 76px; --rec-size: 120px; }
.app.is-easy .btn, .app.is-easy .tab, .app.is-easy .menu-link { min-height: var(--touch-easy); }
.app.is-easy .trow-actions > .btn { flex: 1 1 100%; justify-content: center; }
.app.is-easy .tab-label { font-size: 15px; }

/* 横向きのスマホ（高さ 500px 以下） */
@media (orientation: landscape) and (max-height: 500px) {
  :root { --tab-h: var(--tab-h-land); --band-h: var(--band-h-land); --rec-size: 72px; --sheet-max-h: var(--sheet-max-h-land); }
  .tab { flex-direction: row; gap: 6px; }
  .band-sample-long { display: none; }
  .band-sample-short { display: inline; }
  .dock { min-height: 56px; justify-content: flex-end; }
  .dock-main { flex: 0 1 360px; }
  .sheet { left: auto; width: min(560px, 100%); }
}
/* 足すの板の「知り合った所」（2列で折り返す。枠は1つずつ閉じる） */
.seg.seg-wrap { gap: var(--sp-2); }
.seg.seg-wrap .seg-btn, .seg.seg-wrap .seg-btn + .seg-btn { display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-input); border-radius: var(--r-1); min-height: var(--touch-min); }
.seg.seg-wrap .seg-btn.is-on { border-color: var(--accent); }
/* 固定の帯のボタンは1行（副は文字の幅・主が残りを取る） */
.dock .btn { white-space: nowrap; }
.dock-sub { flex: 0 0 auto; }
/* 行の「…」は右上に重ねる（上の1行の文字は右に空きを取る） */
.trow-top { padding-right: calc(var(--touch-min) + var(--sp-1)); }
.trow > .trow-top > .row-more, .trow-top > .row-more { position: absolute; top: var(--sp-3); right: 0; margin: 0; }
/* D33 選んだ案を直す: 部分ごとに畳む（見出しの行は押せる高さ） */
.edit-part { border-bottom: 1px solid var(--line); }
.edit-part-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-1) var(--sp-3); min-height: var(--touch-min); padding: var(--sp-2) 0; cursor: pointer; }
.edit-part-title { font-family: var(--font-head); font-size: var(--fs-body); font-weight: 700; color: var(--ink); }
.edit-part-body { padding: 0 0 var(--sp-4); }
/* お客様が LINE の中で見る画面（D40・D41）: 募集人の帯・左のナビ・下のナビ・足すを出さない別の外枠 */
.band[hidden] { display: none; }
.app[data-surface="customer"] .frame { display: block; background: none; min-height: 0; }
.app[data-surface="customer"] .side, .app[data-surface="customer"] .fab, .app[data-surface="customer"] .tabbar { display: none; }
.app[data-surface="customer"] .main { max-width: 480px; margin: 0 auto; padding: calc(var(--sp-4) + var(--safe-t)) max(var(--pad-x), var(--safe-r)) calc(var(--sp-6) + var(--safe-b)) max(var(--pad-x), var(--safe-l)); }
.cust-frame-note { margin: 0 0 var(--sp-4); padding: 0 0 var(--sp-3); border-bottom: 1px solid var(--line); font-size: var(--fs-sub); color: var(--ink-2); }
.cust-frame-note a { display: inline-flex; align-items: center; min-height: var(--touch-min); }
/* 確かめて送るの行: 送る文を2行で引用（全文は追客の画面で） */
.trow-quote { margin: var(--sp-1) 0 0; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
/* 集めるの区切り・入口の数（折り返す。横にはみ出さない） */
.out-tabs { flex-wrap: wrap; }
.inflow-counts { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-4); }
.inflow-more { margin-left: auto; }
.head-act { font-size: var(--fs-sub); word-break: keep-all; overflow-wrap: anywhere; padding-inline: var(--sp-2); }
/* 表を縦に積むときの行の見出し（O8・375px 以下） */
@media (max-width: 375px) { .table-stack th[scope="row"] { font-weight: 700; } .table-stack td.r { text-align: left; } }
/* 横にはみ出さない（大きい文字・375px）: 1行の入力は親の幅まで／営業モードの帯のプラン名は縮む */
.input-inline { max-width: 100%; }
.app.has-guide .band-plan { flex: 1 1 0; min-width: 0; overflow: hidden; }

/* ---------- 図の部品（design/charts.js・担当F 2026-10-26 社長「図式とか表とか入れて、見た目もわかりやすく」） ----------
   色はトークンだけ（ライト・ダークは tokens.css が切り替える）。棒と線は藍、要の1本だけ勝色。文字は数字の書体＋等幅の数字。
   横の位置は %、文字は --fs-*（viewBox で縮めない）。線 1.5px・主線 2px・角 2〜4px（24 §1-7） */
.chart-fig { margin: var(--sp-3) 0 var(--sp-5); padding: 0 var(--sp-2); max-width: 720px; }
.chart-svg { display: block; width: 100%; overflow: visible; font-family: var(--font-body); }
.chart-svg text { fill: var(--ink-2); font-size: var(--fs-sub); }
.chart-svg .chart-label { fill: var(--ink); }
.chart-svg .chart-name { font-weight: 700; }
.chart-svg .chart-value, .chart-svg .chart-axis { font-family: var(--font-num); font-variant-numeric: tabular-nums lining-nums; }
.chart-svg .chart-value { fill: var(--ink); font-weight: 600; }
.chart-svg .chart-value.is-zero, .chart-svg .chart-value.is-none { fill: var(--muted); font-weight: 500; }
.chart-svg .chart-axis { fill: var(--muted); font-size: var(--fs-cap); }
.chart-svg .chart-sub { fill: var(--ink-2); font-size: var(--fs-cap); }
.chart-svg .chart-axis-sub { fill: var(--ink-2); font-weight: 600; }
.chart-svg .chart-mark-text, .chart-svg .chart-person-sub { font-size: var(--fs-cap); }
.chart-track { fill: var(--surface-2); }
.chart-bar { fill: var(--accent); }
.chart-bar.is-key { fill: var(--brand); }
.chart-bar.is-done { fill: var(--ok); }
.chart-row.is-key .chart-value { font-weight: 700; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-base, .chart-tick { stroke: var(--line-strong); stroke-width: 1; }
.chart-tick { stroke-dasharray: 2 4; }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--accent); }
.chart-dot.is-last, .chart-dot.is-key { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
.chart-ref { stroke: var(--warn); stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart-svg .chart-ref-label { fill: var(--warn); font-size: var(--fs-cap); font-weight: 700; font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.chart-tone-danger .chart-ref { stroke: var(--danger); }
.chart-svg .chart-tone-danger .chart-ref-label { fill: var(--danger); }
.chart-tone-ok .chart-ref { stroke: var(--ok); }
.chart-svg .chart-tone-ok .chart-ref-label { fill: var(--ok); }
.chart-tone-muted .chart-ref { stroke: var(--muted); }
.chart-svg .chart-tone-muted .chart-ref-label { fill: var(--muted); }
.chart-lane { stroke: var(--line-strong); stroke-width: 1.5; }
.chart-box { fill: var(--bg); stroke: var(--line-strong); stroke-width: 1.5; }
.chart-box.is-plain { stroke-dasharray: 4 3; }
.chart-box.is-key { stroke: var(--accent); stroke-width: 2; }
.chart-link { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
/* 系統の色（棒・線・点）。稼ぎの柱の色は印と小さな面だけ（24 §2-4） */
.chart-tone-keep .chart-bar:not(.is-key), .chart-tone-keep .chart-dot { fill: var(--p-keep); }
.chart-tone-keep .chart-line { stroke: var(--p-keep); }
.chart-tone-follow .chart-bar:not(.is-key), .chart-tone-follow .chart-dot { fill: var(--p-follow); }
.chart-tone-follow .chart-line { stroke: var(--p-follow); }
.chart-tone-ref .chart-bar:not(.is-key), .chart-tone-ref .chart-dot { fill: var(--p-ref); }
.chart-tone-ok .chart-bar:not(.is-key) { fill: var(--ok); }
.chart-tone-warn .chart-bar:not(.is-key) { fill: var(--warn); }
.chart-tone-danger .chart-bar:not(.is-key) { fill: var(--danger); }
.chart-tone-muted .chart-bar:not(.is-key) { fill: var(--ink-2); }
.chart-tone-keep .chart-dot.is-last, .chart-tone-keep .chart-dot.is-key, .chart-tone-follow .chart-dot.is-last, .chart-tone-ref .chart-dot.is-key { fill: var(--bg); }
.chart-tone-keep .chart-dot.is-key, .chart-tone-keep .chart-dot.is-last { stroke: var(--p-keep); }
.chart-kind-line { padding-left: 52px; }
.chart-svg .chart-axis-y { fill: var(--ink-2); }
.chart-fig.is-compact { margin: var(--sp-1) 0 var(--sp-3); max-width: 480px; }
.chart-empty { margin: 0; padding: var(--sp-3) 0; font-size: var(--fs-sub); color: var(--ink-2); }
.chart-cap { margin-top: var(--sp-2); font-size: var(--fs-cap); color: var(--ink-2); line-height: 1.6; }
/* 図を2つ横に並べる（PC だけ。スマホは縦に積む） */
.chart-pair { display: grid; gap: 0 var(--sp-6); }
@media (min-width: 960px) { .chart-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 今日の見出し: 並べ方は見出しの右に小さく（25 第13回 A-1）・段取りの「残り」は右に寄せる */
.today-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: var(--sp-3); }
.today-head > :first-child { flex: 1 1 auto; min-width: 0; }
.today-head .wt-select { margin: 0 0 0 auto; font-size: var(--fs-sub); }
.today-head .wt-select .input-inline { min-width: 0; min-height: 40px; font-size: var(--fs-sub); }
.ledger-foot { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--sp-1) var(--sp-3); }
.ledger-foot .ledger-rest { margin-left: auto; white-space: nowrap; }
/* 「足す」は副ボタンの形（角 --r-1・高さ 48px・塗らない。25 第10回・第13回 A-2）。本文の下は 48＋16＋16px を空ける */
.fab { min-height: 48px; min-width: 0; padding: 0 var(--sp-4); border: 1px solid var(--line-input); border-radius: var(--r-1); background: var(--bg); color: var(--ink); font-size: var(--fs-body); }
.fab:hover { background: var(--surface); }
@media (max-width: 959px) { .main { padding-bottom: calc(var(--thumb-bottom) + 48px + var(--sp-4) + var(--sp-4) + var(--sp-5)); } }
