/* ============================================================
   一括・分割・下落待ちの比較（money/lump-sum-vs-dca.html）だけの見た目
   共通は ../assets/css/ek.css（v2 層）と money.css。色は分野の変数（--accent など）だけを使う
   ============================================================ */

/* タブ（backtest-tsumitate と同じ形） */
.ls-tabs { display: flex; gap: 6px; margin: 18px 0 14px; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.ls-tabs button {
  appearance: none; border: 1px solid var(--line); border-bottom: 0; background: var(--surface); color: var(--ink-2);
  font: inherit; font-size: 15px; font-weight: 700; padding: 10px 16px; border-radius: 8px 8px 0 0; cursor: pointer;
  margin-bottom: -2px; min-height: 44px;
}
.ls-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ls-tabs button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ls-tabs small { font-weight: 400; font-size: 12px; margin-left: 4px; }
@media (max-width: 420px) {
  .ls-tabs button { flex: 1 1 0; padding: 10px 8px; font-size: 14px; }
  .ls-tabs small { display: block; margin: 0; }
}
[role="tabpanel"][hidden] { display: none; }

/* 貼り付けの欄 */
html[data-ui="v2"] textarea.ls-paste {
  width: 100%; min-height: 150px; box-sizing: border-box; font-family: ui-monospace, Consolas, monospace; font-size: 13px;
  line-height: 1.5; padding: 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink);
  resize: vertical;
}
html[data-ui="v2"] textarea.ls-paste:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
html[data-ui="v2"] textarea.ls-paste.bad { border-color: var(--s2, #B4442C); border-width: 2px; }
.ls-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
.ls-file input[type="file"] { max-width: 100%; font-size: 13px; }
.ls-file button { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; min-height: 36px; }
.ls-file button:hover { border-color: var(--accent); }

.ls-lag-note { margin-top: 4px; }

/* 「置いた仮定での計算」「過去の結果」 */
.ls-caution { margin: 0 0 12px; padding: 8px 12px; border-left: 4px solid var(--accent); background: var(--accent-soft); font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.6; }

/* データの範囲 */
.ls-info { list-style: none; padding: 0; margin: 14px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.ls-info li { padding: 2px 0; }
.ls-info b { color: var(--ink); }

/* 比べる表（行が項目、列が入れ方） */
table.ls-cmp { margin-top: 18px; font-size: 13.5px; }
table.ls-cmp th[scope="row"] { text-align: left; font-weight: 700; white-space: normal; min-width: 8.5em; }
table.ls-cmp thead th { white-space: nowrap; }
table.ls-cmp td.n small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
table.ls-cmp td.neg { color: var(--tint-warn-ink); }
table.ls-cmp:empty { display: none; }

/* 評価額の幅のグラフ */
.mo-chart .ls-band { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; }
.mo-chart .ls-mid { fill: var(--accent); }
.mo-chart .ls-name { fill: var(--ink); font-size: 12px; font-weight: 700; }
.mo-chart .ls-val { fill: var(--ink-2); font-size: 11px; }
.mo-chart .ls-base { stroke: var(--tint-warn-ink); stroke-width: 1; stroke-dasharray: 4 3; }
.mo-chart .ls-base-t { fill: var(--tint-warn-ink); font-size: 11px; }
.mo-legend i.ls-dot { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--accent); }

/* 開始月ごとの表 */
.ls-rows { max-height: 420px; overflow: auto; }
.ls-actions { margin: 10px 0 0; }
.ls-actions button { font: inherit; font-size: 13px; padding: 7px 14px; border-radius: 6px; border: 1px solid var(--accent); background: var(--surface); color: var(--accent); cursor: pointer; font-weight: 700; min-height: 36px; }
