/* 個股頁「目標價」分頁（sp-tp.js）；顏色沿用深色主題，紅＝看多／上漲、綠＝看空／下跌 */
#sp_ta:not(.tab-tp) > #sp_tp{display:none}
#sp_ta.tab-tp > :not(.sp-ta-tabs):not(.sp-ta-head):not(#sp_tp){display:none!important}
#sp_ta.tab-tp .sp-ta-ranges{display:none!important}
#sp_tp{color:#d7dbe3;font-size:14px}
#sp_tp .up{color:#f6465d}
#sp_tp .dn{color:#0ecb81}
#sp_tp .tp-na{color:#848e9c;padding:20px 0}
#sp_tp .tp-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:14px}
#sp_tp .tp-c{background:#12151c;border:1px solid #2f354b;border-radius:8px;padding:10px 12px;display:flex;flex-direction:column;gap:3px;min-width:0}
#sp_tp .tp-c small{color:#848e9c;font-size:12px}
#sp_tp .tp-c b{font-size:18px;color:#eef0f4;font-variant-numeric:tabular-nums}
#sp_tp .tp-c.main b{font-size:20px}
#sp_tp .tp-c span{font-size:12.5px;color:#848e9c}
#sp_tp .tp-c span.up{color:#f6465d}
#sp_tp .tp-c span.dn{color:#0ecb81}
#sp_tp .tp-chart{border:1px solid #2f354b;border-radius:8px;background:#12151c;padding:6px}
#sp_tp .tp-svg{display:block;max-width:100%}
#sp_tp .tp-svg .g{stroke:#232838;stroke-width:1}
#sp_tp .tp-svg .ax{fill:#848e9c;font-size:11px}
#sp_tp .tp-svg .now{stroke:#3a4157;stroke-dasharray:2 3}
#sp_tp .tp-svg .px{fill:none;stroke:#4e8cff;stroke-width:1.6}
#sp_tp .tp-svg .pxd{fill:#4e8cff}
#sp_tp .tp-svg .th{fill:none;stroke:#f5c542;stroke-width:1.4;stroke-dasharray:1 3}
#sp_tp .tp-svg .fan{fill:#4e8cff;fill-opacity:.08}   /* 透明度分開寫，瑞士主題換色時才不會變成實心 */
#sp_tp .tp-svg line.t{stroke-width:1.4;stroke-dasharray:5 4}
#sp_tp .tp-svg .hi{stroke:#f6465d;fill:#f6465d}
#sp_tp .tp-svg .avg{stroke:#eef0f4;fill:#eef0f4}
#sp_tp .tp-svg .lo{stroke:#0ecb81;fill:#0ecb81}
#sp_tp .tp-svg text.lb{stroke:none;font-size:12px;font-weight:600}
#sp_tp .tp-h{margin:18px 0 6px;font-size:15px;color:#eef0f4}
#sp_tp .tp-leg{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12.5px;color:#848e9c;margin-bottom:8px}
#sp_tp .tp-leg i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:5px;vertical-align:-1px}
#sp_tp .tp-row{display:flex;align-items:center;gap:10px;margin:5px 0}
#sp_tp .tp-row .p{flex:none;width:5.5em;color:#848e9c;font-size:13px}
#sp_tp .tp-row .n{flex:none;width:4em;text-align:right;color:#848e9c;font-size:12.5px}
#sp_tp .tp-row .b{flex:1;display:flex;height:20px;border-radius:3px;overflow:hidden}
#sp_tp .tp-row .b i{font-style:normal;font-size:11.5px;line-height:20px;text-align:center;color:#fff;min-width:3px}
/* 評級顏色只用漲／跌／中性三色，深淺靠透明度（瑞士主題會把漲跌色換成紅／黑） */
#sp_tp .r0{background:#f6465d}#sp_tp .r1{background:#f6465d;opacity:.6}#sp_tp .r2{background:#8a8f99}#sp_tp .r3{background:#0ecb81;opacity:.6}#sp_tp .r4{background:#0ecb81}
#sp_tp .tp-note{margin:12px 0 0;font-size:12px;color:#848e9c;line-height:1.6}
@media (max-width:700px){
#sp_tp .tp-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
#sp_tp .tp-c.main{grid-column:1/-1}
}
