/* 需求 74：下单预设（交易卡顶部）、图上右键挂单菜单（docs/77）。375 宽不横向滚动 */
.preset-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.preset-pick { display: flex; align-items: center; gap: 6px; flex: 1 1 160px; min-width: 0; }
.preset-pick select { flex: 1; min-width: 0; max-width: 100%; }
.preset-btns { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.preset-btns .danger { border-color: var(--loss-fg); color: var(--loss-fg); }
.preset-edit { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel2); }
.preset-field { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.preset-field input { flex: 1; min-width: 0; }
.preset-modes { display: flex; flex-direction: column; gap: 2px; }
/* 手机上 #card-trade 的 label 是竖排居中：单选框这一行要横排、靠左 */
.preset-edit .preset-modes label { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; gap: 6px; }
.preset-edit .preset-modes input { width: auto; flex: none; margin: 0; }
.preset-more { display: flex; flex-direction: column; gap: 6px; }
.preset-more .hint, .preset-edit .hint { margin: 0; }
.preset-edit-btns { display: inline-flex; gap: 6px; }
.preset-stop-hint { margin: 0 0 4px; color: var(--accent); }
.m-preset { font-size: 11px; color: var(--sh-link, #8fb7ff); max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chart-menu { position: fixed; z-index: 60; min-width: 220px; max-width: min(380px, 94vw); padding: 4px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel); box-shadow: 0 8px 22px var(--sh-shadow, rgba(0, 0, 0, .45)); display: flex; flex-direction: column; }
.chart-menu .cm-item { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; padding: 6px 8px;
  border: 0; border-radius: 4px; background: transparent; color: var(--text); cursor: pointer; }
.chart-menu .cm-item:hover:not(:disabled), .chart-menu .cm-item:focus-visible { background: var(--sh-tint-accent-strong, rgba(37, 99, 235, .22)); outline: none; }
.chart-menu .cm-item:disabled { cursor: default; opacity: .6; }
.chart-menu .cm-note { font-size: 12px; color: var(--muted); }
.chart-menu .cm-item.warn .cm-note { color: var(--warn); }
.chart-menu .cm-sep { border: 0; border-top: 1px solid var(--line); margin: 4px 2px; }
