@charset "UTF-8";
/* ==========================================================================
   Latihan · grid spreadsheet (ui-grid.js)
   --------------------------------------------------------------------------
   Semua selector diawali .lxg- supaya tidak bentrok dengan halaman. Tampilan
   sengaja BEDA dari Excel/Google Sheets: toolbar ink gelap dengan tombol ikon
   membulat, wadah grid membulat, seleksi cyan + pegangan isi lime, header
   kolom pale. Token brand mengikuti app.css (§02).
   Popup (autocomplete, signature, menu, tooltip, dialog) memakai position:
   fixed supaya tidak terpotong wadah.
   ========================================================================== */

.lxg {
  --lxg-ink: #0A1119;
  --lxg-ink-2: #0F1B26;
  --lxg-ink-3: #162230;
  --lxg-cyan: #02A0C1;
  --lxg-cyan-ink: #00718A;
  --lxg-cyan-on-ink: #5FD4EC;
  --lxg-blue: #3581E1;
  --lxg-lime: #D6FD91;
  --lxg-lime-ink: #5E8A0F;
  --lxg-mint: #97D1C6;
  --lxg-pale: #D7E8FB;
  --lxg-text: #0E1620;
  --lxg-text-2: #3A4655;
  --lxg-text-3: #5A6676;
  --lxg-line: #E2E8EF;
  --lxg-line-2: #D0DAE5;
  --lxg-grid: #E5EBF1;
  --lxg-hdr: #F1F6FC;
  --lxg-hdr-line: #DAE3EE;
  --lxg-bg: #FFFFFF;
  --lxg-err: #C42B2B;
  --lxg-ok: #0E9F6E;
  --lxg-font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --lxg-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --lxg-fs: 13px;
  --lxg-z: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
  min-width: 0;
  background: var(--lxg-bg);
  border: 1px solid var(--lxg-line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(10, 17, 25, .04), 0 8px 28px -12px rgba(10, 17, 25, .14);
  font-family: var(--lxg-font);
  color: var(--lxg-text);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.lxg *, .lxg *::before, .lxg *::after { box-sizing: border-box; }
.lxg button { font: inherit; color: inherit; cursor: pointer; }
.lxg button:disabled { cursor: default; }
.lxg-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lxg-i--s { width: 14px; height: 14px; }
.lxg-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── toolbar (ink) ─────────────────────────────────────────────────────── */
.lxg-tb {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  background: var(--lxg-ink);
  background-image: radial-gradient(120% 140% at 100% 0%, rgba(2, 160, 193, .16), transparent 55%);
  color: #C9D4E0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  flex: none;
}
.lxg-tb::-webkit-scrollbar { display: none; }
.lxg-tg { display: flex; align-items: center; gap: 2px; padding: 0 4px; position: relative; flex: none; }
.lxg-tg + .lxg-tg::before { content: ""; position: absolute; left: -2px; top: 7px; bottom: 7px; width: 1px; background: rgba(255, 255, 255, .12); }
.lxg-tg--end { margin-left: auto; }
.lxg-tg--end::before { display: none; }
.lxg-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #C9D4E0 !important;
  transition: background-color .15s, color .15s;
}
.lxg-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .09); color: #fff !important; }
.lxg-btn:focus-visible { outline: 2px solid var(--lxg-lime); outline-offset: 1px; }
.lxg-btn:disabled { opacity: .32; }
.lxg-btn.is-on { background: rgba(2, 160, 193, .24); color: var(--lxg-cyan-on-ink) !important; box-shadow: inset 0 0 0 1px rgba(95, 212, 236, .35); }
.lxg-btn--txt { padding: 0 8px; }
.lxg-tx { font-size: 12.5px; font-weight: 800; letter-spacing: .01em; }
.lxg-tx--m { font-family: var(--lxg-mono); font-weight: 700; font-size: 12px; }
.lxg-tx small { font-size: 10px; margin-left: 1px; opacity: .8; }
.lxg-nf { min-width: 104px; justify-content: space-between; gap: 6px; background: rgba(255, 255, 255, .06); padding: 0 8px 0 10px; }
.lxg-nfl { font-size: 12.5px; font-weight: 700; color: #F4F7FA; white-space: nowrap; }
.lxg-btn--clr { flex-direction: column; gap: 1px; }
.lxg-btn--clr .lxg-i { width: 16px; height: 16px; margin-top: 1px; }
.lxg-swb { width: 16px; height: 3px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.lxg-btn--fx {
  padding: 0 12px 0 9px;
  background: var(--lxg-lime);
  color: var(--lxg-ink) !important;
  font-weight: 800;
  font-size: 12.5px;
  gap: 6px;
}
.lxg-btn--fx:hover:not(:disabled) { background: #E4FFB0; color: var(--lxg-ink) !important; }
.lxg-btn--fx .lxg-i { width: 16px; height: 16px; stroke-width: 2.4; }

/* ── formula bar ───────────────────────────────────────────────────────── */
.lxg-fb {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 42px;
  padding: 0 0 0 8px;
  border-bottom: 1px solid var(--lxg-line);
  background: var(--lxg-bg);
  flex: none;
}
.lxg-nbw { position: relative; display: flex; align-items: center; flex: none; }
.lxg-nb {
  width: 86px;
  height: 30px;
  padding: 0 22px 0 10px;
  border: 1px solid var(--lxg-line);
  border-radius: 9px;
  background: #F5F9FD;
  font: 700 13px/1 var(--lxg-mono);
  color: var(--lxg-ink);
  outline: 0;
}
.lxg-nb:focus { border-color: var(--lxg-cyan); background: #fff; box-shadow: 0 0 0 3px rgba(2, 160, 193, .18); }
.lxg-nbbtn { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 20px; height: 22px; border: 0; background: transparent; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--lxg-text-3) !important; }
.lxg-nbbtn:hover { background: #E8EEF5; }
.lxg-nbbtn[hidden] { display: none; }
.lxg-fbx { display: flex; align-items: center; gap: 2px; flex: none; padding-right: 4px; border-right: 1px solid var(--lxg-line); margin-right: 2px; }
.lxg-fbb { width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--lxg-text-3) !important; }
.lxg-fbb:hover { background: #EEF3F8; color: var(--lxg-ink) !important; }
.lxg-fbb:focus-visible { outline: 2px solid var(--lxg-cyan); outline-offset: 1px; }
.lxg-fbb[hidden] { display: none; }
.lxg-fbb--ok { color: var(--lxg-cyan-ink) !important; }
.lxg-fbb--fx i { font: italic 700 15px/1 Georgia, "Times New Roman", serif; color: var(--lxg-cyan-ink); letter-spacing: -.02em; }
.lxg-fbb--ed { display: none; }
.lxg--touch .lxg-fbb--ed { display: inline-flex; }
.lxg-fin { position: relative; flex: 1 1 auto; align-self: stretch; min-width: 0; }

/* editor bersama (formula bar & sel): textarea transparan di atas <pre> berwarna */
.lxg-edw { position: absolute; }
.lxg-hl, .lxg-ta {
  margin: 0;
  border: 0;
  font: inherit;
  letter-spacing: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  tab-size: 4;
  text-transform: none;
}
.lxg-hl { position: relative; display: block; color: var(--lxg-ink); pointer-events: none; overflow: hidden; }
.lxg-ta {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  resize: none;
  outline: 0;
  background: transparent;
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: var(--lxg-ink);
  overflow: hidden;
  border-radius: inherit;
}
.lxg-ta::selection { background: rgba(2, 160, 193, .28); }
.lxg-tr { font-weight: inherit; }
.lxg-ts { color: #A2560B; }
.lxg-tf { color: #1F5FB8; }
.lxg-te { color: var(--lxg-err); }
.lxg-mk { display: inline; width: 0; }

.lxg-edw--bar {
  left: 0;
  right: 0;
  top: 0;
  min-height: 41px;
  max-height: 41px;
  background: var(--lxg-bg);
  font: 500 13px/21px var(--lxg-mono);
  overflow: hidden;
  cursor: text;
}
.lxg-edw--bar .lxg-hl, .lxg-edw--bar .lxg-ta { padding: 10px 12px; }
.lxg:not(.is-editing) .lxg-edw--bar .lxg-hl { white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.lxg-edw--bar.is-ghost .lxg-hl { color: #8A96A6; }
.lxg-fb.is-ro .lxg-edw--bar { cursor: default; }
.lxg.is-editing .lxg-edw--bar.is-open {
  max-height: 168px;
  border-bottom: 2px solid var(--lxg-cyan);
  box-shadow: 0 14px 28px -12px rgba(10, 17, 25, .28);
  border-radius: 0 0 10px 10px;
}
.lxg.is-editing .lxg-edw--bar.is-open .lxg-ta { overflow-y: auto; }

/* ── area lembar ───────────────────────────────────────────────────────── */
.lxg-sc {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  background: var(--lxg-bg);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #C3CFDC transparent;
}
.lxg-sc::-webkit-scrollbar { width: 10px; height: 10px; }
.lxg-sc::-webkit-scrollbar-thumb { background: #C9D4E0; border-radius: 10px; border: 2px solid #fff; }
.lxg-sc::-webkit-scrollbar-corner { background: var(--lxg-hdr); }
.lxg-cv {
  display: grid;
  grid-template-columns: var(--lxg-rhw, 44px) var(--lxg-bw, 2600px);
  grid-template-rows: var(--lxg-hh, 26px) var(--lxg-bh, 5200px);
  width: max-content;
}
.lxg-co {
  grid-area: 1 / 1 / 3 / 3;
  align-self: start;
  justify-self: start;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 6;
  width: var(--lxg-rhw);
  height: var(--lxg-hh);
  background: var(--lxg-hdr);
  border-right: 1px solid var(--lxg-hdr-line);
  border-bottom: 1px solid var(--lxg-hdr-line);
}
.lxg-all { position: absolute; inset: 0; border: 0; background: transparent; padding: 0; }
.lxg-all::after { content: ""; position: absolute; right: 4px; bottom: 4px; border-style: solid; border-width: 0 0 9px 9px; border-color: transparent transparent #B7C4D3 transparent; border-radius: 0 0 2px 0; }
.lxg-all:hover::after { border-bottom-color: var(--lxg-cyan); }
.lxg-ch {
  grid-area: 1 / 2 / 3 / 3;
  align-self: start;
  position: sticky;
  top: 0;
  z-index: 5;
  height: var(--lxg-hh);
  background: var(--lxg-hdr);
  border-bottom: 1px solid var(--lxg-hdr-line);
  touch-action: pan-x;
}
.lxg-rh {
  grid-area: 2 / 1 / 3 / 3;
  justify-self: start;
  position: sticky;
  left: 0;
  z-index: 5;
  width: var(--lxg-rhw);
  background: var(--lxg-hdr);
  border-right: 1px solid var(--lxg-hdr-line);
  touch-action: pan-y;
}
.lxg-hc {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(11.5px * var(--lxg-z));
  font-weight: 700;
  color: #6A7788;
  font-variant-numeric: tabular-nums;
  user-select: none;
  -webkit-user-select: none;
  cursor: s-resize;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M8 13 4 8h3V3h2v5h3z' fill='%230A1119' stroke='%23fff'/%3E%3C/svg%3E") 8 13, s-resize;
}
.lxg-ch .lxg-hc { top: 0; height: 100%; border-right: 1px solid var(--lxg-hdr-line); }
.lxg-rh .lxg-hc { left: 0; width: 100%; border-bottom: 1px solid var(--lxg-hdr-line); cursor: e-resize; cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M13 8 8 4v3H3v2h5v3z' fill='%230A1119' stroke='%23fff'/%3E%3C/svg%3E") 13 8, e-resize; }
.lxg-hc.lxg-hs { background: #DDF1F6; color: var(--lxg-cyan-ink); }
.lxg-ch .lxg-hc.lxg-hs { box-shadow: inset 0 -2px 0 var(--lxg-cyan); }
.lxg-rh .lxg-hc.lxg-hs { box-shadow: inset -2px 0 0 var(--lxg-cyan); }
.lxg-hc.lxg-hf { background: var(--lxg-cyan); color: #fff; }
.lxg-rz { position: absolute; top: 0; right: -4px; width: 8px; height: 100%; cursor: col-resize; z-index: 2; touch-action: none; }
.lxg-rzr { position: absolute; left: 0; bottom: -4px; height: 8px; width: 100%; cursor: row-resize; z-index: 2; touch-action: none; }
.lxg-rz:hover, .lxg-rzr:hover { background: rgba(2, 160, 193, .35); }
.lxg-bd {
  grid-area: 2 / 2 / 3 / 3;
  position: relative;
  touch-action: pan-x pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: cell;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cpath d='M8 2h4v6h6v4h-6v6H8v-6H2V8h6z' fill='%23fff' stroke='%230A1119' stroke-width='1.2'/%3E%3C/svg%3E") 10 10, cell;
}
.lxg-grid { position: absolute; inset: 0; outline: 0; }
.lxg-row { position: absolute; left: 0; right: 0; }

/* ── sel ───────────────────────────────────────────────────────────────── */
.lxg-c {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 calc(5px * var(--lxg-z));
  border-right: 1px solid var(--lxg-grid);
  border-bottom: 1px solid var(--lxg-grid);
  font-size: var(--lxg-fs);
  font-weight: 500;
  line-height: 1.3;
  color: var(--lxg-text);
  white-space: pre;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.lxg-c > span { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: clip; }
.lxg-c.lxg-alr > span { text-align: right; }
.lxg-c.lxg-alc > span { text-align: center; }
.lxg-c.lxg-b { font-weight: 700; }
.lxg-c.lxg-it { font-style: italic; }
.lxg-c.lxg-u > span { text-decoration: underline; text-underline-offset: 2px; }
.lxg-c.lxg-w { white-space: pre-wrap; overflow-wrap: anywhere; align-items: center; }
.lxg-c.lxg-w > span { max-height: 100%; }
.lxg-c.lxg-ovf { overflow: visible; z-index: 1; }
.lxg-c.lxg-ovf > span { position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 calc(5px * var(--lxg-z)); white-space: pre; }
.lxg-c.lxg-ovr { border-right-color: transparent; }
.lxg-c.lxg-ctg { background-color: rgba(214, 253, 145, .42); }
.lxg-c.lxg-ok { background-color: rgba(151, 209, 198, .38); }
.lxg-c.lxg-bad { background-color: #FDECEC; }
.lxg-c.lxg-s { box-shadow: inset 0 0 0 999px rgba(2, 160, 193, .11); }
.lxg-c.lxg-e { color: var(--lxg-err); font-weight: 700; }
.lxg-c.lxg-e::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  border-style: solid;
  border-width: 7px 7px 0 0;
  border-color: #E5484D transparent transparent transparent;
}
.lxg-bdr { position: absolute; inset: 0 0 -1px -1px; pointer-events: none; }
.lxg-shake { animation: lxg-shake .32s ease; }
@keyframes lxg-shake { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }

/* ── lapisan atas: seleksi, referensi, target, spill ───────────────────── */
.lxg-ov { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.lxg-ov > div { position: absolute; }
.lxg-act {
  border: 2px solid var(--lxg-cyan);
  border-radius: 2px;
  box-shadow: 0 0 0 3px rgba(2, 160, 193, .16);
}
.lxg:not(.is-focus):not(.is-editing) .lxg-act { box-shadow: none; border-color: #63B9CB; }
.lxg-selr { border: 1px solid var(--lxg-cyan); }
.lxg-fh {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: var(--lxg-lime);
  border: 2px solid var(--lxg-ink);
  border-radius: 3px;
  pointer-events: auto;
  cursor: crosshair;
  touch-action: none;
  z-index: 4;
}
.lxg-fh::after { content: ""; position: absolute; inset: -7px; }
.lxg--touch .lxg-fh { width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 5px; }
.lxg-fillp { border: 1.5px dashed var(--lxg-text-3); border-radius: 2px; }
.lxg-ref {
  border: 1.5px solid var(--lxg-rc);
  background: color-mix(in srgb, var(--lxg-rc) 9%, transparent);
  border-radius: 2px;
}
.lxg-ref i { position: absolute; width: 5px; height: 5px; background: var(--lxg-rc); }
.lxg-ref i:nth-child(1) { left: -3px; top: -3px; }
.lxg-ref i:nth-child(2) { right: -3px; top: -3px; }
.lxg-ref i:nth-child(3) { left: -3px; bottom: -3px; }
.lxg-ref i:nth-child(4) { right: -3px; bottom: -3px; }
.lxg-ref.is-point { border-style: dashed; border-width: 2px; }
.lxg-spill { border: 1px solid var(--lxg-blue); border-radius: 1px; opacity: .65; }
.lxg-spill.is-on { opacity: 1; border-width: 1.5px; }
.lxg-tgt { border: 1.5px dashed var(--lxg-lime-ink); border-radius: 3px; }
.lxg-ants {
  background:
    linear-gradient(90deg, var(--lxg-cyan) 50%, transparent 0) repeat-x 0 0 / 8px 2px,
    linear-gradient(90deg, var(--lxg-cyan) 50%, transparent 0) repeat-x 0 100% / 8px 2px,
    linear-gradient(0deg, var(--lxg-cyan) 50%, transparent 0) repeat-y 0 0 / 2px 8px,
    linear-gradient(0deg, var(--lxg-cyan) 50%, transparent 0) repeat-y 100% 0 / 2px 8px;
  animation: lxg-ants .6s linear infinite;
}
.lxg-ants.is-cut { opacity: .75; }
@keyframes lxg-ants { to { background-position: 8px 0, -8px 100%, 0 -8px, 100% 8px; } }
.lxg-badge {
  width: 15px;
  height: 15px;
  margin: -8px 0 0 -8px; /* di pojok kanan atas sel: tidak menutupi angka rata kanan */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(10, 17, 25, .25);
  z-index: 5;
}
.lxg-badge .lxg-i { width: 10px; height: 10px; stroke-width: 3.4; }
.lxg-badge.is-ok { background: var(--lxg-ok); }
.lxg-badge.is-bad { background: #E5484D; }

/* editor di dalam sel */
.lxg-edw--cell {
  z-index: 7;
  width: max-content;
  background: #fff;
  border: 2px solid var(--lxg-cyan);
  border-radius: 3px;
  box-shadow: 0 0 0 3px rgba(2, 160, 193, .16), 0 10px 24px -10px rgba(10, 17, 25, .35);
  font-size: var(--lxg-fs);
  font-weight: 500;
  line-height: 1.45;
  cursor: text;
  font-variant-numeric: tabular-nums;
}
.lxg-edw--cell[hidden] { display: none; }
.lxg-edw--cell .lxg-hl, .lxg-edw--cell .lxg-ta { padding: calc(3px * var(--lxg-z)) calc(4px * var(--lxg-z)); }
.lxg-edw--cell .lxg-hl { min-height: 100%; }
.lxg-edw--cell.lxg-b { font-weight: 700; }
.lxg-edw--cell.lxg-it { font-style: italic; }

/* ── baris simbol (ponsel) ─────────────────────────────────────────────── */
.lxg-sym {
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  background: #F4F8FD;
  border-top: 1px solid var(--lxg-line);
  overflow-x: auto;
  scrollbar-width: none;
  flex: none;
}
.lxg-sym[hidden] { display: none; }
.lxg-symb {
  flex: none;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border: 1px solid var(--lxg-line-2);
  border-radius: 10px;
  background: #fff;
  font: 700 16px/1 var(--lxg-mono) !important;
  color: var(--lxg-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lxg-symb:active { background: #E6F6FA; border-color: var(--lxg-cyan); }
.lxg-symb--fx { font: italic 700 15px/1 Georgia, serif !important; color: var(--lxg-cyan-ink) !important; }
.lxg-symb--ok { background: var(--lxg-ink); border-color: var(--lxg-ink); color: var(--lxg-lime) !important; margin-left: auto; }

/* ── footer: tab sheet, status, zoom ───────────────────────────────────── */
.lxg-ft {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 8px;
  border-top: 1px solid var(--lxg-line);
  background: #FAFCFE;
  flex: none;
}
.lxg-tabs { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 0 1 auto; }
.lxg-tabs::-webkit-scrollbar { display: none; }
.lxg-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  font-size: 12.5px !important;
  font-weight: 700;
  color: var(--lxg-text-2) !important;
  white-space: nowrap;
}
.lxg-tab:hover { background: #EEF3F8; }
.lxg-tab.is-on { background: var(--lxg-ink); color: #fff !important; }
.lxg-tab.is-on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lxg-lime); }
.lxg-tab:focus-visible { outline: 2px solid var(--lxg-cyan); outline-offset: 1px; }
.lxg-stat {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  font-size: 12px;
  color: var(--lxg-text-3);
  white-space: nowrap;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.lxg-stat i { font-style: normal; }
.lxg-stat b { color: var(--lxg-ink); font-weight: 700; }
.lxg-st-err { color: var(--lxg-err); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.lxg-zoom { display: flex; align-items: center; gap: 2px; flex: none; }
.lxg-zb, .lxg-zl { height: 26px; border: 0; border-radius: 8px; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--lxg-text-2) !important; }
.lxg-zb { width: 26px; }
.lxg-zb .lxg-i { width: 15px; height: 15px; }
.lxg-zl { min-width: 48px; font-size: 12px !important; font-weight: 700; font-variant-numeric: tabular-nums; }
.lxg-zb:hover, .lxg-zl:hover { background: #EEF3F8; }
.lxg-zb:focus-visible, .lxg-zl:focus-visible { outline: 2px solid var(--lxg-cyan); }

/* ── popup (fixed) ─────────────────────────────────────────────────────── */
.lxg-ac, .lxg-sig, .lxg-tip, .lxg-pop { position: fixed; z-index: 1000; }
.lxg-ac[hidden], .lxg-sig[hidden], .lxg-tip[hidden], .lxg-pop[hidden], .lxg-toast[hidden], .lxg-dlgw[hidden] { display: none; }
.lxg-ac {
  width: 312px;
  max-width: calc(100vw - 16px);
  max-height: 268px;
  overflow-y: auto;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--lxg-line);
  border-radius: 12px;
  box-shadow: 0 16px 36px -14px rgba(10, 17, 25, .35);
}
.lxg-aci { display: grid; gap: 1px; padding: 6px 9px; border-radius: 8px; cursor: pointer; }
.lxg-aci b { display: flex; align-items: center; gap: 7px; font: 700 13px/1.3 var(--lxg-mono); color: var(--lxg-ink); }
.lxg-aci span { font-size: 12px; color: var(--lxg-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 25px; }
.lxg-acf { font: italic 700 11px/1 Georgia, serif; color: var(--lxg-cyan-ink); width: 18px; height: 18px; border-radius: 5px; background: #E6F6FA; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.lxg-i--nm { width: 18px; height: 18px; padding: 2px; border-radius: 5px; background: #F2ECFF; color: #6D28D9; }
.lxg-aci:hover { background: #F2F7FC; }
.lxg-aci.is-on { background: #E3F5F9; box-shadow: inset 3px 0 0 var(--lxg-cyan); }
.lxg-aci.is-on b { color: var(--lxg-cyan-ink); }
.lxg-sig {
  max-width: min(460px, calc(100vw - 16px));
  padding: 8px 11px;
  background: var(--lxg-ink);
  color: #DCE5EF;
  border-radius: 10px;
  box-shadow: 0 12px 28px -12px rgba(10, 17, 25, .5);
  pointer-events: none;
}
.lxg-sigl { font: 500 12.5px/1.5 var(--lxg-mono); overflow-wrap: anywhere; }
.lxg-sign { color: #fff; font-weight: 700; }
.lxg-sigl b { color: var(--lxg-lime); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lxg-sigd { margin-top: 3px; font-size: 12px; line-height: 1.45; color: #9FB0C2; }
.lxg-tip {
  max-width: 320px;
  padding: 7px 10px;
  background: var(--lxg-ink);
  color: #F4F7FA;
  font-size: 12.5px;
  line-height: 1.45;
  border-radius: 9px;
  box-shadow: 0 10px 24px -10px rgba(10, 17, 25, .5);
  pointer-events: none;
}
.lxg-toast {
  position: absolute;
  left: 50%;
  bottom: 52px;
  transform: translateX(-50%);
  z-index: 20;
  max-width: min(520px, calc(100% - 24px));
  padding: 9px 14px;
  background: var(--lxg-ink);
  color: #F4F7FA;
  font-size: 13px;
  line-height: 1.45;
  border-radius: 11px;
  box-shadow: 0 12px 30px -12px rgba(10, 17, 25, .55);
  border-left: 3px solid var(--lxg-cyan);
  animation: lxg-in .18s ease;
}
.lxg-toast[data-kind="err"] { border-left-color: #FF9C9C; }
.lxg-toast[data-kind="warn"] { border-left-color: var(--lxg-lime); }
@keyframes lxg-in { from { opacity: 0; transform: translate(-50%, 6px); } }
.lxg-pop {
  min-width: 220px;
  max-width: calc(100vw - 16px);
  max-height: min(460px, calc(100vh - 16px));
  overflow-y: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--lxg-line);
  border-radius: 14px;
  box-shadow: 0 18px 40px -16px rgba(10, 17, 25, .4);
  font-family: var(--lxg-font);
}
.lxg-mi {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 13px !important;
  font-weight: 600;
  color: var(--lxg-text) !important;
  text-align: left;
}
.lxg-mi .lxg-i { width: 16px; height: 16px; color: var(--lxg-text-3); }
.lxg-mi kbd { margin-left: auto; font: 600 11px/1 var(--lxg-mono); color: var(--lxg-text-3); }
.lxg-mi small { margin-left: auto; font: 500 12px/1 var(--lxg-mono); color: var(--lxg-text-3); }
.lxg-mi:hover:not(:disabled), .lxg-mi:focus-visible { background: #EEF6FB; outline: 0; }
.lxg-mi:disabled { opacity: .4; }
.lxg-mi.is-on { background: #E3F5F9; color: var(--lxg-cyan-ink) !important; }
.lxg-msep { border: 0; border-top: 1px solid var(--lxg-line); margin: 4px 6px; }
.lxg-mi--none { justify-content: center; border: 1px dashed var(--lxg-line-2); margin-bottom: 6px; }
.lxg-swg { display: grid; grid-template-columns: repeat(6, 26px); gap: 6px; padding: 2px 4px 4px; }
.lxg-sw { width: 26px; height: 26px; border-radius: 7px; border: 1px solid rgba(10, 17, 25, .14); padding: 0; }
.lxg-sw:hover, .lxg-sw:focus-visible { outline: 2px solid var(--lxg-cyan); outline-offset: 1px; }

/* ── dialog sisipkan fungsi ────────────────────────────────────────────── */
.lxg-dlgw { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 12px; font-family: var(--lxg-font); }
.lxg-dlgb { position: absolute; inset: 0; background: rgba(10, 17, 25, .5); backdrop-filter: blur(2px); }
.lxg-dlg {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  height: min(560px, calc(100vh - 24px));
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(10, 17, 25, .55);
  color: var(--lxg-text);
}
.lxg-dlgh { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 18px; background: var(--lxg-ink); color: #fff; }
.lxg-dlgh h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.lxg-dlgh h3 .lxg-i { width: 26px; height: 26px; padding: 4px; border-radius: 8px; background: var(--lxg-lime); color: var(--lxg-ink); stroke-width: 2.4; }
.lxg-x { width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; }
.lxg-x:hover { background: rgba(255, 255, 255, .16); }
.lxg-dlgf { display: flex; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--lxg-line); }
.lxg-srch { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--lxg-line-2); border-radius: 11px; color: var(--lxg-text-3); min-width: 0; }
.lxg-srch:focus-within { border-color: var(--lxg-cyan); box-shadow: 0 0 0 3px rgba(2, 160, 193, .16); }
.lxg-fq { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; font: 500 14px var(--lxg-font); color: var(--lxg-text); background: transparent; }
.lxg-fc { flex: 0 0 auto; max-width: 46%; height: 40px; padding: 0 10px; border: 1px solid var(--lxg-line-2); border-radius: 11px; font: 600 13px var(--lxg-font); color: var(--lxg-text); background: #fff; }
.lxg-dlgm { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(180px, 250px) 1fr; }
.lxg-fl { overflow-y: auto; padding: 6px; border-right: 1px solid var(--lxg-line); outline: 0; }
.lxg-fl:focus-visible { box-shadow: inset 0 0 0 2px var(--lxg-cyan); }
.lxg-fli { padding: 7px 10px; border-radius: 8px; font: 600 13px/1.3 var(--lxg-mono); cursor: pointer; color: var(--lxg-text-2); }
.lxg-fli:hover { background: #F2F7FC; }
.lxg-fli.is-on { background: #E3F5F9; color: var(--lxg-cyan-ink); box-shadow: inset 3px 0 0 var(--lxg-cyan); }
.lxg-fe { padding: 16px; color: var(--lxg-text-3); font-size: 13px; }
.lxg-fd { padding: 18px 20px; overflow-y: auto; }
.lxg-fsig { display: block; padding: 11px 13px; border-radius: 11px; background: #F3F8FD; border: 1px solid #E1ECF7; font: 600 13px/1.55 var(--lxg-mono); color: var(--lxg-ink); overflow-wrap: anywhere; }
.lxg-fd p { margin: 12px 0 10px; font-size: 14px; line-height: 1.6; color: var(--lxg-text-2); }
.lxg-fcat { display: inline-block; margin: 0 6px 6px 0; padding: 3px 9px; border-radius: 999px; background: var(--lxg-pale); color: var(--lxg-ink); font-size: 11.5px; font-weight: 700; }
.lxg-dlga { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--lxg-line); }
.lxg-bt { height: 38px; padding: 0 16px; border: 1px solid var(--lxg-line-2); border-radius: 11px; background: #fff; font-size: 13.5px !important; font-weight: 700; }
.lxg-bt:hover { background: #F2F7FC; }
.lxg-bt--go { background: var(--lxg-ink); border-color: var(--lxg-ink); color: #fff !important; }
.lxg-bt--go:hover { background: var(--lxg-ink-3); }
.lxg-bt:focus-visible { outline: 2px solid var(--lxg-cyan); outline-offset: 2px; }

/* ── mode baca saja & layar sempit ─────────────────────────────────────── */
.lxg--ro .lxg-tb, .lxg--ro .lxg-fbb--fx, .lxg--ro .lxg-fbb--ed { display: none; }
.lxg--ro .lxg-bd { cursor: default; }
.lxg--narrow .lxg-btn--fx span { display: none; }
.lxg--narrow .lxg-btn--fx { padding: 0 8px; }
.lxg--narrow .lxg-nf { min-width: 0; }
.lxg--narrow .lxg-nb { width: 64px; padding-right: 6px; }
.lxg--narrow .lxg-stat span:nth-child(n+3) { display: none; }
.lxg--narrow .lxg-zl { min-width: 40px; }
@media (max-width: 420px) {
  .lxg-zoom .lxg-zb { display: none; }
}
@media (max-width: 560px) {
  .lxg-dlgm { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .lxg-fl { border-right: 0; border-bottom: 1px solid var(--lxg-line); }
  .lxg-fd { max-height: 40%; padding: 12px 14px; }
  .lxg-dlgf { flex-wrap: wrap; }
  .lxg-fc { max-width: none; flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .lxg-ants, .lxg-shake, .lxg-toast { animation: none; }
  .lxg-btn { transition: none; }
}
@media (forced-colors: active) {
  .lxg-act, .lxg-selr, .lxg-ref, .lxg-tgt { border-color: Highlight; }
  .lxg-fh { background: Highlight; }
}
@media print {
  .lxg-tb, .lxg-fb, .lxg-sym, .lxg-ft { display: none; }
}
