/* Lab Maya Integral Tentu: grafik di kiri, panel kontrol di kanan */
.li-tabs { flex: 0 0 auto; display: flex; gap: 6px; padding: 6px clamp(8px, 1.4vw, 18px) 0; background: linear-gradient(135deg, var(--sky-50), var(--amber-100) 85%); }
.li-tab { flex: 1 1 0; min-height: 42px; border: 0; border-radius: 12px 12px 0 0; background: #fff; color: var(--sky-d); font: inherit; font-weight: 800; font-size: clamp(13px, 1.4vw, 18px); cursor: pointer; box-shadow: inset 0 0 0 2px var(--line); padding: 0 8px; }
.li-tab[aria-selected="true"] { background: var(--sky); color: #fff; box-shadow: none; }
.li-body { position: relative; flex: 1; min-height: 0; display: flex; gap: clamp(8px, 1.6vw, 20px); padding: clamp(8px, 1.4vw, 18px); background: linear-gradient(135deg, var(--sky-50), var(--amber-100) 85%); }
.li-stage { flex: 1 1 0; min-width: 0; min-height: 0; background: #fff; border: 3px solid var(--line); border-radius: 16px; overflow: hidden; position: relative; }
.li-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; }
.li-panel { flex: 0 0 clamp(280px, 36%, 500px); min-width: 0; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 8px; font-size: clamp(13px, 1.35vw, 18px); color: var(--ink); }
.li-card { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.li-card h3 { margin: 0 0 4px; font-size: 1em; color: var(--sky-d); }
.li-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0; }
.li-row label { font-weight: 800; min-width: 3.2em; }
.li-row input[type=range] { flex: 1 1 120px; min-width: 0; height: 32px; accent-color: var(--sky); }
.li-val { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 3.4em; text-align: right; }
.li-btn { min-height: 40px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--sky); color: #fff; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 3px 0 var(--sky-d); }
.li-btn.ghost { background: #fff; color: var(--sky-d); box-shadow: 0 0 0 2px var(--line); }
.li-btn[aria-pressed="true"] { background: var(--amber); color: var(--ink); box-shadow: 0 3px 0 #b45309; }
.li-btn:active { transform: translateY(2px); }
.li-btn.kecil { min-height: 36px; padding: 0 14px; font-size: 1.1em; }
.li-sel { flex: 1 1 100%; min-height: 40px; border: 2px solid var(--line); border-radius: 10px; font: inherit; font-weight: 700; background: #fff; color: var(--ink); padding: 0 8px; }
.li-read { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-variant-numeric: tabular-nums; }
.li-read dt { font-weight: 600; color: var(--muted); }
.li-read dd { margin: 0; font-weight: 800; text-align: right; }
.li-read .hij { color: #047857; } .li-read .mer { color: #be123c; } .li-read .bes { color: var(--sky-d); font-size: 1.1em; }
.li-misi { border-color: var(--amber); background: var(--amber-100); }
.li-misi p { margin: 4px 0; line-height: 1.35; }
.li-status { font-weight: 800; }
.li-status.ok { color: #047857; }
.li-opsi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.li-opsi .li-btn { min-height: 46px; background: #fff; color: var(--ink); box-shadow: 0 0 0 2px var(--line), 0 3px 0 var(--line); font-size: 1.1em; }
.li-opsi .li-btn.benar { background: #bbf7d0; box-shadow: 0 0 0 2px #059669; }
.li-opsi .li-btn.salah { background: var(--rose-100); box-shadow: 0 0 0 2px #e11d48; }
.li-note { color: var(--muted); font-weight: 600; margin: 4px 0 0; line-height: 1.35; }
.li-pilih { display: grid; gap: 8px; margin-top: 10px; }
.li-pilihbtn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; border: 3px solid var(--line); border-radius: 14px; background: #fff; font: inherit; padding: 10px 14px; cursor: pointer; color: var(--ink); }
.li-pilihbtn b { color: var(--sky-d); font-size: 1.1em; }
.li-pilihbtn span { font-weight: 600; color: var(--muted); }
.li-pilihbtn:hover, .li-pilihbtn:focus-visible { border-color: var(--sky); }

@media (max-width: 800px) and (orientation: portrait) {
  .li-body { flex-direction: column; overflow-y: auto; }
  .li-stage { flex: 0 0 auto; height: 56vw; min-height: 240px; }
  .li-panel { flex: 0 0 auto; overflow: visible; }
  .li-tab { font-size: 12px; }
}
@media (max-height: 520px) {
  .li-tabs { padding-top: 4px; } .li-tab { min-height: 34px; }
  .li-body { padding: 6px 10px; gap: 8px; }
  .li-panel { gap: 6px; flex-basis: clamp(260px, 40%, 420px); font-size: 12.5px; }
  .li-card { padding: 5px 10px; }
  .li-btn { min-height: 34px; }
}
