/* 技術分析圖 — template-parts/ta-chart.php（紅漲綠跌） */
.sp-ta { --sp-bg:#131722; --sp-card:#1c2030; --sp-line:#2f354b; --sp-mute:#848e9c;
	background: var(--sp-bg); color: #e6e8ee; border-radius: 12px; padding: 20px; margin: 20px 0; box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans TC", sans-serif; }
.sp-ta * { box-sizing: border-box; }
.sp-ta .sp-ta-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.sp-ta h2 { margin: 0; font-size: 18px; color: #fff; }
.sp-ta .sp-ta-titlewrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sp-ta .sp-ta-search { display: flex; margin: 0; }
.sp-ta .sp-ta-search input { width: 130px; height: 30px; min-height: 0; margin: 0; padding: 4px 10px; font-size: 13px; color: #fff; background: #131722;
	border: 1px solid var(--sp-line); border-right: 0; border-radius: 6px 0 0 6px; box-shadow: none; }
.sp-ta .sp-ta-search input:focus { outline: none; border-color: #4c8dff; }
.sp-ta .sp-ta-search button { height: 30px; margin: 0; padding: 0 12px; font-size: 13px; color: #fff; background: #2962ff; border: 0; border-radius: 0 6px 6px 0; cursor: pointer; line-height: 1; }
.sp-ta .sp-ta-search button:hover { background: #1e53e5; }
.sp-ta .sp-ta-ranges { display: flex; gap: 4px; }
.sp-ta .sp-ta-ranges button { background: transparent; color: var(--sp-mute); border: 1px solid var(--sp-line); border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.sp-ta .sp-ta-ranges button.on { background: #272d42; color: #fff; border-color: var(--sp-mute); }
.sp-ta .sp-ta-ctrl { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; margin-bottom: 8px; }
.sp-ta .sp-ta-ctrl label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; color: #d1d4dc; margin: 0; }
.sp-ta .sp-ta-ctrl input { margin: 0; accent-color: #4c8dff; }
.sp-ta .sp-ta-ctrl i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.sp-ta .sp-ta-ind { margin-left: auto; background: var(--sp-card); color: #e6e8ee; border: 1px solid var(--sp-line); border-radius: 6px; padding: 4px 8px; font-size: 13px; height: auto; width: auto; }
.sp-ta .sp-ta-legend { font-size: 13px; color: #d1d4dc; min-height: 20px; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.sp-ta .sp-ta-legend .up { color: #f0443a; } .sp-ta .sp-ta-legend .dn { color: #16b36b; }
.sp-ta .sp-ta-main { height: 420px; border: 1px solid var(--sp-line); border-radius: 8px 8px 0 0; overflow: hidden; }
.sp-ta .sp-ta-sub { height: 160px; border: 1px solid var(--sp-line); border-top: 0; border-radius: 0 0 8px 8px; overflow: hidden; }
.sp-ta .sp-ta-params { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: #d1d4dc;
	background: #1c2030; border: 1px solid var(--sp-line); border-top: 0; padding: 6px 10px; }
.sp-ta .sp-ta-params label, .sp-ta .sp-ta-ctrl label { display: inline-flex; align-items: center; gap: 4px; margin: 0; cursor: pointer; color: #d1d4dc !important; font-weight: 500; }
.sp-ta .sp-ta-params label:hover { color: #fff !important; }
.sp-ta .sp-ta-params input[type=number] { width: 52px; background: #131722; color: #fff; border: 1px solid var(--sp-line); border-radius: 4px;
	padding: 2px 4px; font-size: 12px; height: auto; min-height: 0; text-align: center; box-shadow: none; }
.sp-ta .sp-ta-params input[type=checkbox] { margin: 0; accent-color: #4c8dff; }
.sp-ta .sp-ta-params i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; }
.sp-ta .sp-ta-params .sep { width: 1px; height: 16px; background: var(--sp-line); }
.sp-ta .sp-ta-params .sp-ta-reset { margin-left: auto; background: transparent; color: #d1d4dc !important; border: 1px solid var(--sp-line); border-radius: 4px; padding: 2px 8px; font-size: 12px; cursor: pointer; }
.sp-ta .sp-ta-sublegend { display: flex; gap: 14px; font-size: 12px; padding: 4px 10px; background: #1c2030; border-left: 1px solid var(--sp-line); border-right: 1px solid var(--sp-line); min-height: 22px; font-variant-numeric: tabular-nums; }
.sp-ta .sp-ta-msg { color: var(--sp-mute); font-size: 12px; margin: 8px 0 0; }
@media (max-width: 700px) { .sp-ta { padding: 12px; } .sp-ta .sp-ta-main { height: 320px; } .sp-ta .sp-ta-sub { height: 130px; } .sp-ta .sp-ta-ind { margin-left: 0; } }

.sp-ta .sp-ta-en { display: block; margin-top: 2px; color: #848e9c; font-size: 12px; font-weight: 400; }
