/* 需求 61（docs/64）：显示周期补齐 + 按当前周期推进。
   新文件，不往 style.css / pages.css 里加；颜色一律用 style.css 的变量。 */

/* 周期：电脑上一排按钮；手机（≤760px）换成下拉框，不再一个个排开 */
.tf-group .tf-select { display: none; }
.tf-note { font-size: 11px; line-height: 1.4; max-width: 30em; }

/* 「看当时的图」的周期：同样电脑按钮、手机下拉 */
.hx-ktf .hx-ktf-sel { display: none; }
.hx-ktf-note { font-size: 11px; }

/* 推进卡片：开关一行 + 没设止损的提醒 */
.step-tf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 6px 0 2px; }
.step-tf { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; cursor: pointer; font-size: 13px; }
.step-tf input[type="checkbox"] { width: auto; height: auto; margin: 0; flex: none; }
.step-warn { margin: 8px 0; padding: 6px 8px; border-left: 3px solid var(--warn); background: var(--sh-tint-warn-faint, rgba(240,180,41,.07));
  font-size: 12px; line-height: 1.6; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.step-warn-btns { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 760px) {
  .tf-group .tab { display: none; }
  /* 分段说明放到工具栏最后一行，不把「指标」等挤到下面去 */
  .chart-toolbar .tf-note { order: 99; flex-basis: 100%; max-width: none; }
  .tf-group .tf-select { display: inline-block; width: auto; min-width: 0; height: 44px; padding: 2px 6px; font-size: 14px;
    background: var(--panel2); color: var(--text); border: 1px solid var(--border, #2a3040); border-radius: 4px; }
  .hx-ktf button:not(.hx-ktf-keep) { display: none; }
  .hx-ktf .hx-ktf-sel { display: inline-block; width: auto; min-width: 0; height: 44px; padding: 2px 6px; font-size: 14px;
    background: var(--panel2); color: var(--text); border: 1px solid var(--border, #2a3040); border-radius: 4px; }
  .step-tf { min-height: 44px; }
  .step-warn-btns button { min-height: 44px; }
}
