:root { --bg:#0b141c; --surface:#0f1f29; --kartu:#132a36; --text:#b8fff4; --muted:#4fa29a; --accent:#5eead4; --border:#0f3b3a; --kode:#06121a; }
    * { box-sizing: border-box; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
    textarea, input { -webkit-user-select: text; user-select: text; }
    html, body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, sans-serif; }
    body { padding: env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px); min-height: 100vh; }
    header { position: sticky; top: 0; z-index: 5; background: var(--surface); padding: 12px 14px; border-bottom: 1px solid var(--border); }
    header h1 { margin: 0 0 8px; font-size: 18px; display: flex; align-items: center; justify-content: space-between; }
    header a { color: var(--accent); text-decoration: none; font-size: 14px; }
    .cari { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--kartu); color: var(--text); font-size: 15px; }
    .tab { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; }
    .tab button { flex: none; border: 1px solid var(--border); background: transparent; color: var(--muted); padding: 7px 12px; border-radius: 999px; font-size: 14px; }
    .tab button.on { background: var(--accent); color: #042f2e; border-color: var(--accent); }
    main { padding: 14px; max-width: 760px; margin: 0 auto; }
    .progres { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
    .bar { height: 6px; background: var(--kartu); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
    .bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .3s; }
    .daftar { display: grid; gap: 10px; grid-template-columns: 1fr; }
    @media (min-width: 620px) { .daftar { grid-template-columns: 1fr 1fr; } }
    .kartu-p { background: var(--kartu); border: 1px solid var(--border); border-radius: 14px; padding: 14px; text-align: left; color: var(--text); width: 100%; }
    .kartu-p .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
    .kartu-p h3 { margin: 4px 0 0; font-size: 16px; }
    .kartu-p.selesai { border-color: var(--accent); }
    .kartu-p.selesai h3::after { content: "  ✓"; color: var(--accent); }
    .lesson[hidden], .daftar[hidden], .kosong[hidden] { display: none !important; }
    .lesson h2 { font-size: 20px; margin: 4px 0 8px; }
    .uraian p { line-height: 1.6; margin: 0 0 10px; color: #d1fae5; }
    .blok { position: relative; background: var(--kode); border: 1px solid var(--border); border-radius: 12px; margin: 10px 0; }
    .blok .judul { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); }
    textarea.editor { display: block; width: 100%; min-height: 160px; background: transparent; color: #e2fffb; border: 0; padding: 10px; font: 13px/1.5 ui-monospace, Consolas, monospace; resize: vertical; outline: none; white-space: pre; tab-size: 2; }
    .aksi { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
    .aksi button { border: 0; border-radius: 10px; padding: 10px 14px; font-size: 15px; background: var(--kartu); color: var(--text); }
    .aksi button.utama { background: var(--accent); color: #042f2e; font-weight: 600; }
    .hasil { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
    .hasil iframe { width: 100%; height: 280px; border: 0; background: #fff; display: block; }
    pre.konsol { margin: 0; padding: 10px; min-height: 80px; background: var(--kode); color: #a7f3d0; font: 13px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; border-radius: 12px; border: 1px solid var(--border); }
    .navi { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
    .navi button { flex: 1; padding: 12px; border: 1px solid var(--border); background: var(--kartu); color: var(--text); border-radius: 12px; font-size: 15px; }
    .kosong { text-align: center; color: var(--muted); padding: 30px 0; }
    .catatan { font-size: 13px; color: var(--muted); }