/* ==========================================================
   Lab Skill Sarah — kanvas chart + ubin kecakapan.
   Semua kelas berawalan ls-. Kanvas chart SELALU gelap (layar
   sungguhan); ubin & teks di luar kanvas ikut tema halaman.
   ========================================================== */
.ls-akar {
  --ls-emas: #d4b26a;
  --ls-emas-muda: #efdca9;
  --ls-gading: #f3ede1;
  --ls-naik: #6fd39a;
  --ls-turun: #f08a78;
  --ls-teks: #f3ede1;
  --ls-redup: #a9b8b0;
  --ls-ubin-bg: rgba(243, 237, 225, .035);
  --ls-ubin-garis: rgba(212, 178, 106, .16);
  --ls-ubin-aktif: linear-gradient(135deg, rgba(212, 178, 106, .2), rgba(212, 178, 106, .05) 70%);
  --ls-nama-aktif: #efdca9;
  container-type: inline-size;
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-family: var(--sans, "Manrope", "Segoe UI", system-ui, sans-serif);
  color: var(--ls-teks);
  -webkit-tap-highlight-color: transparent;
}
.ls-akar *, .ls-akar *::before, .ls-akar *::after { box-sizing: border-box; }
html[data-tema="terang"] .ls-akar {
  --ls-teks: #14261e;
  --ls-redup: #4a5c53;
  --ls-ubin-bg: rgba(255, 255, 255, .6);
  --ls-ubin-garis: rgba(140, 106, 34, .26);
  --ls-ubin-aktif: linear-gradient(135deg, rgba(212, 178, 106, .34), rgba(255, 252, 244, .9) 75%);
  --ls-nama-aktif: #6b5019;
}

/* ---------------------------------------------------- tata letak */
.ls-tata {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  max-width: 1600px;
  margin-inline: auto;
}
.ls-kiri { min-width: 0; display: flex; flex-direction: column; }
@container (min-width: 880px) {
  .ls-tata { grid-template-columns: minmax(0, 1fr) clamp(220px, 24cqi, 300px); gap: 18px; }
}

/* ---------------------------------------------------- kanvas kaca */
.ls-panggung { perspective: 1400px; perspective-origin: 50% 40%; }
.ls-kaca {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  color: #f3ede1;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(212, 178, 106, .13), transparent 55%),
    radial-gradient(90% 70% at 0% 110%, rgba(111, 211, 154, .07), transparent 60%),
    linear-gradient(180deg, #0b1d17 0%, #06130f 55%, #040e0b 100%);
  border: 1px solid rgba(212, 178, 106, .22);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .35),
    0 30px 70px -30px rgba(0, 0, 0, .85),
    0 0 60px -20px rgba(212, 178, 106, .22),
    inset 0 1px 0 rgba(239, 220, 169, .12);
  transform-style: flat;
  will-change: transform;
  transition: box-shadow .4s ease;
}
.ls-kaca::after { /* pantulan kaca */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(239, 220, 169, .035) 100%);
}
@container (min-width: 560px) { .ls-kaca { aspect-ratio: 16 / 10; } }
@container (min-width: 1500px) { .ls-kaca { aspect-ratio: 16 / 9; } }
html[data-tema="terang"] .ls-kaca {
  box-shadow: 0 0 0 1px rgba(20, 38, 30, .25), 0 30px 60px -28px rgba(20, 38, 30, .55), 0 0 50px -24px rgba(168, 131, 47, .45);
}

.ls-kepala {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 8px 14px;
  border-bottom: 1px solid rgba(212, 178, 106, .1);
  font-size: 12px;
  min-height: 40px;
}
.ls-simbol { display: inline-flex; align-items: baseline; gap: 7px; letter-spacing: .08em; }
.ls-simbol b { font-weight: 700; color: #efdca9; font-size: 12.5px; }
.ls-simbol i { font-style: normal; font-size: 10.5px; color: #0b1a14; background: #d4b26a; border-radius: 4px; padding: 1px 5px; font-weight: 700; letter-spacing: .04em; }
.ls-status { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 7px; color: rgba(243, 237, 225, .72); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ls-status-teks { overflow: hidden; text-overflow: ellipsis; }
.ls-nadi { width: 7px; height: 7px; border-radius: 50%; background: #6fd39a; box-shadow: 0 0 0 0 rgba(111, 211, 154, .55); flex: none; animation: ls-nadi 1.8s ease-out infinite; }
@keyframes ls-nadi { 0% { box-shadow: 0 0 0 0 rgba(111, 211, 154, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(111, 211, 154, 0); } }
.ls-jeda-tombol {
  flex: none;
  width: 28px; height: 28px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(212, 178, 106, .28);
  background: rgba(212, 178, 106, .06);
  color: #efdca9;
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, border-color .2s ease;
}
.ls-jeda-tombol[hidden] { display: none; }
.ls-jeda-tombol:hover { background: rgba(212, 178, 106, .16); }
.ls-jeda-tombol:focus-visible { outline: 2px solid #efdca9; outline-offset: 2px; }
.ls-jeda-tombol svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ls-jeda-tombol .ls-ik-putar { display: none; fill: currentColor; stroke: none; }
.ls-jeda-tombol.ls-dijeda .ls-ik-putar { display: inline; }
.ls-jeda-tombol.ls-dijeda .ls-ik-jeda { display: none; }

.ls-plot { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.ls-svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; }
.ls-catatan {
  position: absolute; left: 10px; top: 5px; z-index: 2;
  font-size: 9.5px; letter-spacing: .06em; color: rgba(243, 237, 225, .42);
  pointer-events: none; white-space: nowrap;
}

/* ---------------------------------------------------- isi SVG */
.ls-t { font-family: "Manrope", system-ui, sans-serif; font-size: 10.5px; fill: rgba(243, 237, 225, .8); font-variant-numeric: tabular-nums lining-nums; }
@container (max-width: 519px) { .ls-t { font-size: 9px; } }
.ls-grid-h { stroke: rgba(243, 237, 225, .055); stroke-width: 1; }
.ls-grid-v { stroke: rgba(243, 237, 225, .035); stroke-width: 1; }
.ls-sumbu { stroke: rgba(212, 178, 106, .16); stroke-width: 1; }
.ls-t-sumbu { fill: rgba(243, 237, 225, .38); }
.ls-c-naik rect { fill: #6fd39a; }
.ls-c-naik .ls-sumbu-c { stroke: #6fd39a; }
.ls-c-turun rect { fill: #f08a78; }
.ls-c-turun .ls-sumbu-c { stroke: #f08a78; }
.ls-sumbu-c { stroke-width: 1.1; }
.ls-harga-garis { stroke: rgba(239, 220, 169, .45); stroke-width: 1; stroke-dasharray: 3 4; }
.ls-harga-tag { fill: #d4b26a; }
.ls-t-tag { fill: #0b1a14; font-weight: 700; }
.ls-titik-akhir { fill: #efdca9; }
.ls-nadi-svg { transform-box: fill-box; transform-origin: center; animation: ls-nadi-svg 1.6s ease-in-out infinite; }
@keyframes ls-nadi-svg { 0%, 100% { transform: scale(.7); opacity: .5; } 50% { transform: scale(1.25); opacity: 1; } }

.ls-pil rect { fill: rgba(4, 14, 11, .88); stroke-width: 1; }
.ls-t-pil { font-weight: 700; letter-spacing: .04em; }
.ls-pil.ls-emas rect { stroke: #d4b26a; }
.ls-pil.ls-emas .ls-t-pil { fill: #efdca9; }
.ls-pil.ls-merah rect { stroke: #f08a78; }
.ls-pil.ls-merah .ls-t-pil { fill: #f6b4a6; }
.ls-pil.ls-hijau rect { stroke: #6fd39a; }
.ls-pil.ls-hijau .ls-t-pil { fill: #a6ebc4; }
.ls-pil.ls-gading rect { stroke: rgba(243, 237, 225, .55); }
.ls-pil.ls-gading .ls-t-pil { fill: #f3ede1; }

.ls-riak { fill: none; stroke: #efdca9; stroke-width: 1.4; }
.ls-riak-hijau { stroke: #6fd39a; }
.ls-riak-merah { stroke: #f08a78; }
.ls-riak-emas { stroke: #efdca9; }

/* struktur */
.ls-sw-titik { fill: #efdca9; stroke: #040e0b; stroke-width: 1.2; }
.ls-t-sw { font-weight: 700; fill: #efdca9; letter-spacing: .03em; }
.ls-garis-struktur { stroke-width: 1.5; fill: none; }
.ls-garis-cahaya { stroke-width: 6; fill: none; opacity: .18; }
.ls-merah .ls-garis-struktur, .ls-merah .ls-garis-cahaya { stroke: #f08a78; }
.ls-hijau .ls-garis-struktur, .ls-hijau .ls-garis-cahaya { stroke: #6fd39a; }
.ls-emas .ls-garis-struktur, .ls-emas .ls-garis-cahaya { stroke: #d4b26a; }
.ls-emas > .ls-garis-struktur { stroke-dasharray: 6 4; }

/* zona */
.ls-zona { stroke-width: 1; }
.ls-z-demand .ls-zona { stroke: rgba(111, 211, 154, .5); }
.ls-z-supply .ls-zona { stroke: rgba(240, 138, 120, .5); }
.ls-zona-kilat { fill: #efdca9; fill-opacity: .16; }
.ls-z-demand .ls-zona-kilat { fill: #6fd39a; fill-opacity: .26; }
.ls-z-supply .ls-zona-kilat { fill: #f08a78; fill-opacity: .26; }
.ls-t-zona { font-weight: 700; letter-spacing: .14em; fill: rgba(243, 237, 225, .75); }
.ls-jejak { fill: none; stroke: #efdca9; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; opacity: .85; }
.ls-bola { fill: #fff8e6; }

/* fibonacci */
.ls-fib-diag { stroke: rgba(239, 220, 169, .6); stroke-width: 1.2; stroke-dasharray: 4 4; fill: none; }
.ls-fib-garis { stroke: rgba(243, 237, 225, .38); stroke-width: 1; fill: none; }
.ls-fib-emas { stroke: #d4b26a; stroke-width: 1.6; }
.ls-fib-emas.ls-menyala { stroke: #efdca9; stroke-width: 2.2; }
.ls-t-fib { fill: rgba(243, 237, 225, .6); }
.ls-t-fib-emas { fill: #d4b26a; font-weight: 700; }
.ls-t-fib-emas.ls-menyala { fill: #fff3cf; }
.ls-t-fib .ls-fib-harga { fill: rgba(243, 237, 225, .42); font-weight: 400; }
.ls-t-fib-emas .ls-fib-harga { fill: rgba(239, 220, 169, .75); }

/* order block / fvg */
.ls-bingkai { fill: none; stroke-width: 1.6; stroke-dasharray: 1 1; stroke-linejoin: round; }
.ls-bingkai-emas { stroke: #efdca9; }
.ls-ob { stroke: rgba(212, 178, 106, .55); stroke-width: 1; }
.ls-fvg { stroke: rgba(243, 237, 225, .35); stroke-width: 1; stroke-dasharray: 3 3; }
.ls-fvg-tick { stroke: #efdca9; stroke-width: 1.2; stroke-dasharray: 2 2; fill: none; }

/* pola candle */
.ls-cincin { fill: none; stroke: #efdca9; stroke-width: 1.6; stroke-dasharray: 1 1; }
.ls-ekor { stroke: #fff3cf; stroke-width: 2.6; stroke-linecap: round; fill: none; }
.ls-kotak-banding { fill: none; stroke: rgba(243, 237, 225, .7); stroke-width: 1; stroke-dasharray: 2 2; }

/* harmonic */
.ls-harm { fill: none; stroke: #d4b26a; stroke-width: 1.8; stroke-linejoin: round; stroke-dasharray: 1 1; }
.ls-harm-cahaya { fill: none; stroke: #d4b26a; stroke-width: 7; stroke-linejoin: round; stroke-dasharray: 1 1; opacity: .16; }
.ls-harm-titik { fill: #040e0b; stroke: #efdca9; stroke-width: 1.6; }
.ls-t-harm { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 15px; fill: #efdca9; }
@container (max-width: 519px) { .ls-t-harm { font-size: 13px; } }
.ls-putus { stroke: rgba(243, 237, 225, .45); stroke-width: 1; stroke-dasharray: 3 4; fill: none; }
.ls-tri { stroke: none; }
.ls-prz { fill: rgba(212, 178, 106, .2); stroke: #efdca9; stroke-width: 1; stroke-dasharray: 3 3; }

/* tf */

/* berita */
.ls-berita-garis { stroke: rgba(239, 220, 169, .5); stroke-width: 1; stroke-dasharray: 2 4; }
.ls-harga-berita .ls-harga-garis { stroke: rgba(111, 211, 154, .55); }

/* lot */
.ls-lot-masuk { stroke: #efdca9; stroke-width: 1.4; fill: none; }
.ls-lot-sl { stroke: #f08a78; stroke-width: 1.4; stroke-dasharray: 5 3; fill: none; }
.ls-lot-zona { fill: rgba(240, 138, 120, .1); }
.ls-t-lot { fill: #efdca9; font-weight: 700; }
.ls-t-sl { fill: #f6b4a6; }
.ls-kurung { fill: none; stroke: #efdca9; stroke-width: 1.4; stroke-dasharray: 1 1; }

/* ---------------------------------------------------- garis pindai & debu */
.ls-pindai {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 2px; margin-left: -1px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(239, 220, 169, 0), #fff3cf 20%, #efdca9 80%, rgba(239, 220, 169, 0));
  box-shadow: 0 0 14px 2px rgba(239, 220, 169, .55);
  will-change: transform, opacity;
}
.ls-pindai::before { /* ekor cahaya di belakang garis */
  content: "";
  position: absolute; top: 0; bottom: 0; right: 2px;
  width: 140px;
  background: linear-gradient(90deg, rgba(212, 178, 106, 0), rgba(212, 178, 106, .13));
}
.ls-pindai-label {
  position: absolute; top: 10px; left: 8px;
  white-space: nowrap;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  color: #0b1a14; background: #efdca9;
  border-radius: 999px; padding: 3px 9px;
  box-shadow: 0 0 18px rgba(239, 220, 169, .5);
}
.ls-debu { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.ls-debu span {
  position: absolute; border-radius: 50%;
  background: #efdca9;
  box-shadow: 0 0 6px rgba(239, 220, 169, .9);
  opacity: 0;
  animation: ls-melayang 10s linear infinite;
}
@keyframes ls-melayang {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  15% { opacity: .55; }
  85% { opacity: .35; }
  100% { transform: translate3d(12px, -90px, 0); opacity: 0; }
}
.ls-jeda .ls-debu span, .ls-jeda .ls-nadi, .ls-jeda .ls-nadi-svg,
.ls-jeda .ls-sel, .ls-jeda .ls-kapsi-nama { animation-play-state: paused; }

/* ---------------------------------------------------- panel di atas chart */
.ls-panel {
  position: absolute; z-index: 3;
  top: 24px; left: 10px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(14, 34, 27, .94), rgba(4, 14, 11, .94));
  border: 1px solid rgba(212, 178, 106, .3);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(239, 220, 169, .08);
  color: #f3ede1;
  font-size: 12px;
  padding: 10px 12px;
  pointer-events: none;
}
@container (max-width: 519px) {
  .ls-panel { top: 20px; left: 6px; padding: 7px 9px; font-size: 10.5px; border-radius: 10px; }
}

/* TF */
.ls-dial-baris { --muka: 44px; position: relative; display: flex; gap: 12px; }
/* poros: garis emas tipis yang menembus pusat ketiga jarum saat sejajar */
.ls-poros {
  position: absolute; z-index: 0;
  left: calc(var(--muka) / 2); right: calc(var(--muka) / 2); top: calc(var(--muka) / 2 - .5px);
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 178, 106, .25), rgba(239, 220, 169, .85), rgba(212, 178, 106, .25));
  transform: scaleX(0); transform-origin: center; opacity: 0;
}
.ls-dial { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ls-dial b { font-size: 11px; letter-spacing: .06em; color: rgba(243, 237, 225, .75); transition: color .3s ease; }
.ls-dial-muka {
  position: relative;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid rgba(243, 237, 225, .2);
  background: radial-gradient(circle at 50% 35%, rgba(239, 220, 169, .1), rgba(4, 14, 11, .6) 70%);
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.ls-jarum { width: 26px; height: 26px; display: block; will-change: transform; }
.ls-jarum svg { width: 100%; height: 100%; display: block; fill: rgba(243, 237, 225, .75); stroke: rgba(243, 237, 225, .75); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s ease, fill .3s ease; }
.ls-jarum circle { fill: #0e221b; stroke-width: 1.4; }
.ls-terkunci .ls-dial-muka { border-color: #d4b26a; box-shadow: 0 0 18px -2px rgba(212, 178, 106, .6), inset 0 0 10px rgba(212, 178, 106, .25); transform: scale(1.06); }
/* terkunci = emas netral (bukan hijau): artinya "sejajar", bukan "naik" */
.ls-terkunci .ls-jarum svg { stroke: #efdca9; fill: #efdca9; }
.ls-terkunci .ls-jarum circle { fill: #0e221b; }
.ls-terkunci b { color: #efdca9; }
.ls-kunci {
  margin-top: 9px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: #0b1a14; background: linear-gradient(135deg, #efdca9, #d4b26a);
  border-radius: 999px; padding: 4px 10px;
}
.ls-kunci-cek { font-size: 12px; }
@container (max-width: 519px) {
  .ls-dial-baris { --muka: 34px; gap: 8px; }
  .ls-dial-muka { width: 34px; height: 34px; }
  .ls-jarum { width: 20px; height: 20px; }
  .ls-dial b { font-size: 9.5px; }
  .ls-kunci { font-size: 9.5px; margin-top: 7px; padding: 3px 8px; }
}

/* Berita: papan ala bandara */
.ls-p-berita { min-width: 188px; }
.ls-papan-kepala { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; font-size: 11px; letter-spacing: .1em; }
.ls-papan-kepala b { color: #efdca9; }
.ls-papan-jam { margin-inline-start: auto; color: rgba(243, 237, 225, .55); font-variant-numeric: tabular-nums; }
.ls-lampu { width: 7px; height: 7px; border-radius: 50%; background: #5a3a33; transition: background .15s ease, box-shadow .15s ease; }
.ls-lampu.ls-nyala { background: #f08a78; box-shadow: 0 0 8px #f08a78; }
.ls-papan-baris { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 3px 0; }
.ls-papan-label { color: rgba(243, 237, 225, .66); font-size: 11px; white-space: nowrap; }
.ls-flap { display: inline-flex; gap: 2px; direction: ltr; }
.ls-sel {
  position: relative;
  width: 15px; height: 21px;
  display: inline-grid; place-items: center;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800; font-size: 13px;
  color: #f3ede1;
  background: linear-gradient(180deg, #1b2f28 0 49%, #10211b 51% 100%);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4);
  font-variant-numeric: tabular-nums;
}
.ls-sel::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .55); }
.ls-balik-a { animation: ls-balik-a .16s ease-out; }
.ls-balik-b { animation: ls-balik-b .16s ease-out; }
@keyframes ls-balik-a { from { transform: scaleY(.25); filter: brightness(1.6); } to { transform: none; filter: none; } }
@keyframes ls-balik-b { from { transform: scaleY(.25); filter: brightness(1.6); } to { transform: none; filter: none; } }
.ls-pb-aktual.ls-tetap .ls-sel { color: #0b1a14; background: linear-gradient(180deg, #efdca9 0 49%, #d4b26a 51% 100%); }
.ls-pb-aktual.ls-tetap .ls-papan-label { color: #efdca9; font-weight: 700; }
@container (max-width: 519px) {
  .ls-p-berita { min-width: 150px; }
  .ls-sel { width: 12px; height: 17px; font-size: 10.5px; }
  .ls-papan-label { font-size: 9.5px; }
  .ls-papan-kepala { font-size: 9.5px; margin-bottom: 4px; }
  .ls-papan-baris { padding: 2px 0; gap: 8px; }
}

/* Lot */
.ls-p-lot { min-width: 190px; }
.ls-hitung-baris { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 3px 0; border-bottom: 1px solid rgba(212, 178, 106, .1); transition: opacity .2s linear; }
.ls-hitung-baris span { color: rgba(243, 237, 225, .66); white-space: nowrap; }
.ls-hitung-baris b { font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.ls-hitung-lot { border-bottom: 0; padding-top: 5px; }
.ls-hitung-lot b { display: inline-flex; align-items: baseline; gap: 8px; }
.ls-h-mentah { text-decoration: none; color: rgba(243, 237, 225, .85); font-weight: 600; position: relative; }
.ls-h-mentah.ls-dicoret { color: rgba(243, 237, 225, .45); text-decoration: line-through; text-decoration-color: #f08a78; }
.ls-h-hasil {
  font-style: normal; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600;
  font-size: 22px; line-height: 1; color: #efdca9;
  display: inline-block; transform-origin: 50% 70%;
  text-shadow: 0 0 16px rgba(239, 220, 169, .55);
}
.ls-hitung-catatan { display: flex; justify-content: flex-end; align-items: center; gap: 5px; font-size: 10.5px; color: #d4b26a; font-weight: 600; }
.ls-panah-bawah { font-weight: 800; }
@container (max-width: 519px) {
  .ls-p-lot { min-width: 146px; }
  .ls-hitung-baris { gap: 8px; padding: 2px 0; }
  .ls-h-hasil { font-size: 17px; }
  .ls-hitung-catatan { font-size: 9px; }
}

@container (max-width: 359px) {
  .ls-panel { font-size: 9.5px; padding: 6px 8px; }
  .ls-p-lot { min-width: 124px; }
  .ls-p-berita { min-width: 132px; }
  .ls-hitung-baris { gap: 6px; }
  .ls-h-hasil { font-size: 15px; }
  .ls-sel { width: 11px; height: 15px; font-size: 9.5px; }
  .ls-dial-baris { --muka: 30px; }
  .ls-dial-muka { width: 30px; height: 30px; }
  .ls-jarum { width: 18px; height: 18px; }
}

/* ---------------------------------------------------- keterangan */
.ls-kapsi {
  padding: 14px 4px 0;
  height: calc(14px + 1.9rem + 3.1em);
  overflow: hidden;
}
.ls-kapsi p { margin: 0; }
.ls-kapsi-nama {
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-size: 1.55rem; line-height: 1.2; height: 1.9rem;
  font-weight: 500;
  color: var(--ls-nama-aktif);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ls-kapsi-ket {
  margin-top: 2px !important;
  font-size: .95rem; line-height: 1.55; height: 3.1em;
  color: var(--ls-redup);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ls-kapsi-a .ls-kapsi-nama, .ls-kapsi-a .ls-kapsi-ket { animation: ls-masuk-a .6s cubic-bezier(.2, .7, .2, 1) both; }
.ls-kapsi-b .ls-kapsi-nama, .ls-kapsi-b .ls-kapsi-ket { animation: ls-masuk-b .6s cubic-bezier(.2, .7, .2, 1) both; }
.ls-kapsi-a .ls-kapsi-ket, .ls-kapsi-b .ls-kapsi-ket { animation-delay: .08s; }
@keyframes ls-masuk-a { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ls-masuk-b { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@container (max-width: 519px) {
  .ls-kapsi { padding-top: 10px; height: calc(10px + 1.6rem + 3.1em); }
  .ls-kapsi-nama { font-size: 1.3rem; height: 1.6rem; }
  .ls-kapsi-ket { font-size: .87rem; }
}

.ls-vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------- ubin */
.ls-ubin-daftar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}
@container (min-width: 880px) {
  .ls-ubin-daftar { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(9, minmax(0, 1fr)); gap: 7px; }
}
.ls-ubin {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
  height: 58px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--ls-ubin-garis);
  background: var(--ls-ubin-bg);
  color: var(--ls-redup);
  font: inherit;
  font-size: 13px; font-weight: 600; line-height: 1.4;
  text-align: start;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .3s ease, background .3s ease, color .3s ease, transform .25s ease, box-shadow .3s ease;
}
@container (min-width: 880px) { .ls-ubin { height: auto; min-height: 44px; } }
/* aksara Thai punya tanda di atas & bawah huruf: butuh baris lebih tinggi agar tak terpangkas */
.ls-ubin:lang(th) { line-height: 1.55; }
.ls-ubin:hover { border-color: rgba(212, 178, 106, .45); color: var(--ls-teks); transform: translateY(-1px); }
.ls-ubin:focus-visible { outline: 2px solid var(--ls-emas); outline-offset: 2px; }
.ls-ubin.ls-aktif {
  border-color: rgba(212, 178, 106, .7);
  background: var(--ls-ubin-aktif);
  color: var(--ls-nama-aktif);
  box-shadow: 0 10px 30px -18px rgba(212, 178, 106, .8), inset 0 1px 0 rgba(239, 220, 169, .12);
}
.ls-ikon {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(212, 178, 106, .08);
  border: 1px solid rgba(212, 178, 106, .18);
  color: #d4b26a;
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
html[data-tema="terang"] .ls-ikon { color: #8c6a22; background: rgba(212, 178, 106, .14); }
.ls-ikon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ls-ikon .ls-ik-tipis { stroke-width: 1; opacity: .75; }
.ls-ikon .ls-ik-putus { stroke-dasharray: 2 2; stroke-width: 1; }
.ls-aktif .ls-ikon { background: linear-gradient(135deg, #efdca9, #d4b26a); color: #0b1a14; box-shadow: 0 0 16px -2px rgba(212, 178, 106, .7); border-color: transparent; }
.ls-ubin-nama {
  min-width: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere;
}
.ls-maju {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: rgba(212, 178, 106, .1);
  opacity: 0; transition: opacity .3s ease;
}
.ls-aktif .ls-maju { opacity: 1; }
.ls-maju span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #b8914a, #efdca9);
  box-shadow: 0 0 8px rgba(239, 220, 169, .7);
  transform: scaleX(0); transform-origin: left center;
  will-change: transform;
}
[dir="rtl"] .ls-maju span { transform-origin: right center; background: linear-gradient(270deg, #b8914a, #efdca9); }

/* HP: ubin ringkas, ikon di atas nama */
@container (max-width: 559px) {
  .ls-ubin-daftar { gap: 6px; }
  .ls-ubin { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 3px; height: 70px; padding: 5px 4px; font-size: 11px; line-height: 1.4; border-radius: 11px; }
  .ls-ikon { width: 24px; height: 24px; border-radius: 8px; }
  .ls-ikon svg { width: 15px; height: 15px; }
  /* nama ubin: dua baris utuh, tak pernah terpotong (Thai & Arab butuh ruang vertikal lebih) */
  .ls-ubin-nama { flex: none; max-width: 100%; }
  .ls-ubin:lang(th) { line-height: 1.55; }
}
/* layar sangat sempit: huruf sedikit lebih kecil agar kata panjang tak terbelah */
@container (max-width: 359px) {
  .ls-ubin { font-size: 10.5px; padding-inline: 3px; }
}

/* ---------------------------------------------------- gerak dikurangi */
@media (prefers-reduced-motion: reduce) {
  .ls-debu, .ls-pindai { display: none; }
  .ls-nadi, .ls-nadi-svg, .ls-sel, .ls-kapsi-nama, .ls-kapsi-ket { animation: none !important; }
  .ls-kaca { transform: none !important; will-change: auto; }
  .ls-ubin, .ls-dial-muka { transition: none; }
  .ls-ubin:hover { transform: none; }
}
.ls-reduksi .ls-debu, .ls-reduksi .ls-pindai { display: none; }
