/* 需求 63：图表截图按钮和它的下拉菜单（js/screenshot.js，docs/66）。练习台在图表工具条末尾，「看当时的图」在周期按钮那一行末尾 */
.shot-host { margin-left: auto; }
.shot-wrap { position: relative; display: inline-flex; }
.shot-wrap .shot-btn { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.shot-menu { position: absolute; top: calc(100% + 4px); right: 0; z-index: 40; display: flex; flex-direction: column; gap: 2px; min-width: 190px; max-width: min(280px, calc(100vw - 24px)); padding: 4px; background: var(--panel, #171b24); border: 1px solid var(--line, #2a3040); border-radius: 6px; box-shadow: 0 6px 18px var(--sh-shadow, rgba(0, 0, 0, .45)); }
.shot-menu button { display: flex; width: 100%; justify-content: flex-start; text-align: left; white-space: nowrap; }
.shot-menu button:disabled { opacity: .45; cursor: not-allowed; }
.shot-note { font-size: 11px; line-height: 1.35; color: var(--muted, #8590a6); padding: 0 6px 4px; white-space: normal; }
/* 「看当时的图」：手机上周期按钮收成下拉（css/timeframes.css 把 .hx-ktf 里的按钮都藏了），截图按钮要留着 */
.hx-ktf .shot-wrap { margin-left: auto; }
.hx-ktf .shot-wrap button.shot-btn { display: inline-flex; }
.hx-ktf .shot-wrap .shot-menu button { display: flex; }

@media (max-width: 760px) {
  .shot-menu button { min-height: 40px; }
  .shot-menu { right: 0; }
}
