/* Kamar Signal v11: kontras AA, simetri, empty state gelap. Dimuat paling akhir. */
html body.ksig-body .ksig-search input{color:#f4f6fb !important;-webkit-text-fill-color:#f4f6fb !important;caret-color:#e8c777;font-size:15px}
html body.ksig-body .ksig-search input::placeholder{color:#9aa4b5 !important;opacity:1 !important;font-size:13.5px}
/* empty state: gelap-emas, bukan krem */
html body.ksig-body .ksig-empty{background:#0d0f14 !important;color:#b4bdcc !important;border:1px dashed rgba(232,199,119,.28) !important;box-shadow:none !important}
/* panduan */
html body.ksig-body .ksig-guide-desc{color:#b4bdcc !important}
html body.ksig-body .ksig-guide-title{color:#f4efe0 !important}
html body.ksig-body .ksig-guide-cta{color:#e8c777 !important}
html body.ksig-body .ksig-guide-card .ksig-guide-cta:only-child{color:#e8c777 !important}
html body.ksig-body .ksig-minifooter{color:#9aa4b5 !important}
/* daftar: penanda belum dibaca / tandai semua */
html body.ksig-body .ksig-mark-all-btn{color:#f2d88a !important}
html body.ksig-body [class*="ksig-unread-count"],html body.ksig-body .ksig-list-meta span{color:#b4bdcc !important}
html body.ksig-body .ksig-qf-lab{color:#e8c777 !important}
/* pil koneksi: tidak terpotong */
html body.ksig-body .ksig-live{max-width:none !important;white-space:nowrap}
html body.ksig-body .ksig-live .ksig-live-label{overflow:visible !important;text-overflow:clip !important;max-width:none !important}
/* Signal Overview: kartu ganjil terakhir selebar penuh di HP/iPad */
@media (max-width:760px){
  html body.ksig-body .ksig-grid > .ksig-card:last-child:nth-child(odd){grid-column:1 / -1}
}
/* filter arah/periode: grup membungkus penuh, chip tidak terpotong */
html body.ksig-body .ksig-qf-opt{white-space:nowrap}
html body.ksig-body .ksig-qf-seg{max-width:100%}
html body.ksig-body .ksig-qf{flex-wrap:wrap !important;overflow:visible !important}
@media (max-width:640px){
  html body.ksig-body .ksig-qf-grp{flex:1 1 100% !important}
  html body.ksig-body .ksig-qf-seg{display:flex}
  html body.ksig-body .ksig-qf-seg .ksig-qf-opt{flex:1 1 auto}
}
html body.ksig-body .ksig-guide-grid > .ksig-guide-card:first-child .ksig-guide-cta{color:#9aa4b5 !important}

/* LIVE + Terakhir Diperbarui: pojok kanan atas card Performa Keseluruhan (>760px, dipindah via fx.js place()) */
html body.ksig-body .ksig-perf>.ksig-header-meta{position:absolute !important;top:16px;right:20px;width:auto !important;flex-wrap:nowrap;gap:10px;justify-content:flex-end;z-index:2}
html body.ksig-body .ksig-perf>.ksig-header-meta .ksig-header-updated{white-space:nowrap;font-variant-numeric:tabular-nums}
html body.ksig-body .ksig-perf>.ksig-header-meta .ksig-live{height:30px}
html body.ksig-body .ksig-perf:has(>.ksig-header-meta){padding-top:68px !important}
html body.ksig-body .ksig-perf>.ksig-header-meta{top:16px;right:22px}
/* HP: baris meta rapi di dalam card performa */
@media(max-width:760px){
 html body.ksig-body .ksig-perf:has(>.ksig-header-meta){padding-top:22px !important}
 html body.ksig-body .ksig-perf>.ksig-header-meta{position:static !important;order:-1;width:100% !important;flex-wrap:wrap;justify-content:space-between;gap:8px 10px}
 html body.ksig-body .ksig-perf>.ksig-header-meta .ksig-header-updated{flex:1 1 auto;min-width:0;font-size:11px;white-space:normal}
}
/* kartu AKSES/Install (fold) tidak boleh menyusut jadi 2px di flex column */
html body.ksig-body .ksig-fold{flex:0 0 auto !important;min-height:56px !important}
/* placeholder: menang atas #ksigSearchInput::placeholder (kontras AA) */
html body.ksig-body #ksigSearchInput::placeholder,html body.ksig-body .ksig-field input::placeholder{color:#9aa4b5 !important;opacity:1 !important}
/* baris/daftar: tidak boleh melebar di HP */
html body.ksig-body .ksig-row-top{flex-wrap:wrap;min-width:0;gap:6px 8px}
html body.ksig-body .ksig-row-top>*{min-width:0;max-width:100%}
html body.ksig-body .ksig-qf-seg,html body.ksig-body .ksig-qf-grp{max-width:100%;min-width:0}
/* Timeframe 390: tombol membungkus, tidak keluar kontainer */
html body.ksig-body .ksig-qf-seg{flex-wrap:wrap !important;width:100%;box-sizing:border-box}
@media(max-width:640px){
 html body.ksig-body .ksig-qf-seg .ksig-qf-opt{padding:6px 9px;min-width:0;flex:1 1 auto;text-align:center}
 html body.ksig-body .ksig-qf{box-sizing:border-box;max-width:100%}
}
/* KPI: hierarki angka, konteks persen, bar proporsi, warna profit/loss */
html body.ksig-body .ksig-perf-stat{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center;min-height:84px}
html body.ksig-body .ksig-perf-stat b{font-size:28px;line-height:1.1}
html body.ksig-body .ksig-perf-sub{display:block;font-style:normal;margin-top:4px;font-size:11.5px;font-weight:600;letter-spacing:.02em;color:#a9b3c4}
html body.ksig-body .ksig-perf-stat.up::after,html body.ksig-body .ksig-perf-stat.dn::after{content:"";position:absolute;left:0;bottom:0;height:3px;width:var(--sh,0%);border-radius:0 3px 0 0}
html body.ksig-body .ksig-perf-stat.up::after{background:linear-gradient(90deg,#2fe6a4,#5df0bb)}
html body.ksig-body .ksig-perf-stat.dn::after{background:linear-gradient(90deg,#ff5c6e,#ff7482)}
html body.ksig-body .ksig-eq-st span b{font-size:20px;font-weight:900;font-variant-numeric:tabular-nums}
html body.ksig-body .ksig-eq-st span.up b{color:#5df0bb}
html body.ksig-body .ksig-eq-st span.dn b{color:#ff7482}
@media(max-width:560px){html body.ksig-body .ksig-perf-stat b{font-size:24px}html body.ksig-body .ksig-eq-st span b{font-size:17px}}
/* sparkline mini di kartu KPI */
html body.ksig-body .ksig-spark{position:absolute;right:14px;top:50%;width:84px;height:30px;transform:translateY(-50%);overflow:visible;pointer-events:none;opacity:.9}
html body.ksig-body .ksig-spark path{fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
html body.ksig-body .ksig-spark-all path{stroke:#e8c777;filter:drop-shadow(0 0 4px rgba(232,199,119,.5))}
html body.ksig-body .ksig-spark-profit path{stroke:#5df0bb;filter:drop-shadow(0 0 4px rgba(47,230,164,.55))}
html body.ksig-body .ksig-spark-loss path{stroke:#ff7482;filter:drop-shadow(0 0 4px rgba(255,92,110,.5))}
@media(max-width:420px){html body.ksig-body .ksig-spark{width:42px;right:10px;top:28%}}

/* Ringkasan Periode: label dan angka seragam, rata tengah, satu baris (HP/iPad) */
html body.ksig-body .ksig-recap-summary-head{gap:10px!important;flex-wrap:nowrap!important;align-items:center!important}
html body.ksig-body .ksig-recap-summary-head>span:first-child{white-space:nowrap!important;font-size:11px!important;letter-spacing:.14em!important}
html body.ksig-body .ksig-recap-summary-pips{white-space:nowrap!important;font-size:clamp(18px,5.4vw,26px)!important;text-align:right!important;flex:0 0 auto!important}
html body.ksig-body .ksig-recap-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
html body.ksig-body .ksig-recap-summary-item{align-items:center!important;justify-content:center!important;text-align:center!important;gap:6px!important;min-height:78px!important;padding:12px 6px!important}
html body.ksig-body .ksig-recap-summary-val{font-size:22px!important;line-height:1.1!important;text-align:center!important;width:100%!important}
html body.ksig-body .ksig-recap-summary-label{font-size:10px!important;letter-spacing:.08em!important;white-space:nowrap!important;text-align:center!important;width:100%!important}
@media(max-width:440px){html body.ksig-body .ksig-recap-summary-label{font-size:9.5px!important;letter-spacing:.03em!important}html body.ksig-body .ksig-recap-summary-val{font-size:20px!important}}
html[data-theme="light"] body.ksig-body .ksig-recap-summary-item:nth-child(5) .ksig-recap-summary-val{color:#ff9690!important}
@media(max-width:440px){html body.ksig-body .ksig-recap-summary-label{font-size:9px!important;letter-spacing:.02em!important}html body.ksig-body .ksig-recap-summary-item{padding:12px 3px!important}html body.ksig-body .ksig-recap-summary-head>span:first-child{font-size:10px!important;letter-spacing:.1em!important}html body.ksig-body .ksig-recap-summary-pips{font-size:clamp(16px,4.8vw,22px)!important}}
@media(max-width:380px){html body.ksig-body .ksig-recap-summary-head>span:first-child{letter-spacing:.06em!important}html body.ksig-body .ksig-recap-summary-pips{font-size:15px!important}}
