/* =====================================================================
   PPT GAMBAR — gaya tampilan (simpan di: public/css/ppt-gambar.css)
   ===================================================================== */
#pptgApp, .pgg-modal, .pgg-load { --pg-a: #8b5cf6; --pg-b: #d946ef; --pg-c: #22d3ee; --pg-card: #1e293b; --pg-line: rgba(148,163,184,.22); --pg-mut: #94a3b8; --pg-txt: #e2e8f0; }
#pptgApp { max-width: 1240px; margin: 0 auto; color: var(--pg-txt); position: relative; padding-bottom: 40px; }
#pptgApp *, #pptgApp *::before, #pptgApp *::after { box-sizing: border-box; }
#pptgApp [hidden] { display: none !important; }
#pptgApp h4 { margin: 0 0 12px; font-size: 15px; font-weight: 800; color: #f8fafc; letter-spacing: .01em; }
#pptgApp code { background: rgba(148,163,184,.15); padding: 1px 6px; border-radius: 6px; font-size: 12px; color: #f5d0fe; }

/* ---------- hero & stepper ---------- */
.pgg-hero { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 20px; border-radius: 20px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(139,92,246,.35), transparent 55%), radial-gradient(100% 120% at 100% 0%, rgba(217,70,239,.28), transparent 50%), linear-gradient(135deg, #1e1b4b, #172554);
  border: 1px solid rgba(167,139,250,.35); box-shadow: 0 18px 40px -22px rgba(139,92,246,.7); margin-bottom: 14px; }
.pgg-hero-t { display: flex; gap: 14px; align-items: center; min-width: 0; }
.pgg-hero-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(135deg, var(--pg-a), var(--pg-b)); box-shadow: 0 8px 22px -8px var(--pg-b); flex: none; }
.pgg-hero h3 { margin: 0 0 3px; font-size: 1.3rem; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.pgg-hero p { margin: 0; color: #c7d2fe; font-size: 13.5px; max-width: 720px; }
.pgg-beta { font-size: 10px; letter-spacing: .08em; background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; padding: 3px 8px; border-radius: 999px; }
.pgg-hero-b { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pgg-saved { font-size: 12px; color: #a7f3d0; }
.pgg-steps { display: flex; align-items: center; gap: 6px; margin: 0 0 16px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.pgg-step { display: flex; align-items: center; gap: 8px; border: 1px solid var(--pg-line); background: rgba(30,41,59,.7); color: #cbd5e1; padding: 8px 14px 8px 8px; border-radius: 999px; cursor: pointer; white-space: nowrap; font: inherit; font-size: 13px; font-weight: 700; transition: .2s; }
.pgg-step b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(148,163,184,.2); font-size: 12px; }
.pgg-step.on { background: linear-gradient(135deg, var(--pg-a), var(--pg-b)); color: #fff; border-color: transparent; box-shadow: 0 6px 18px -8px var(--pg-b); }
.pgg-step.on b { background: rgba(255,255,255,.25); }
.pgg-step.dis { opacity: .4; cursor: not-allowed; }
.pgg-stepline { flex: 1 1 18px; min-width: 12px; height: 2px; background: var(--pg-line); border-radius: 2px; }

/* ---------- kartu & form ---------- */
.pgg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pgg-span2 { grid-column: 1 / -1; }
.pgg-card { background: var(--pg-card); border: 1px solid var(--pg-line); border-radius: 18px; padding: 18px; min-width: 0; }
.pgg-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.pgg-mt { margin-top: 12px !important; }
#pptgApp .pgg-lb { display: block; font-size: 11.5px; font-weight: 800; color: var(--pg-mut); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px; }
#pptgApp .pgg-lb small { text-transform: none; letter-spacing: 0; font-weight: 600; }
#pptgApp .pgg-lb b { color: #f0abfc; }
.pgg-in { display: block; width: 100%; margin-top: 5px; background: #0f172a; color: #f1f5f9; border: 1px solid rgba(148,163,184,.3); border-radius: 10px; padding: 9px 11px; font: inherit; font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 500; transition: border .2s, box-shadow .2s; }
.pgg-in:focus { outline: none; border-color: var(--pg-a); box-shadow: 0 0 0 3px rgba(139,92,246,.25); }
.pgg-ta { min-height: 110px; resize: vertical; line-height: 1.5; }
.pgg-ta-sm { min-height: 64px; resize: vertical; }
.pgg-ta-isi { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.55; resize: vertical; }
select.pgg-in { appearance: auto; }
.pgg-hint { color: var(--pg-mut); font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 500; display: block; margin-top: 4px; }
.pgg-range { width: 100%; accent-color: var(--pg-b); margin-top: 8px; }
.pgg-dim { opacity: .45; pointer-events: none; }
#pptgApp .pgg-ck { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: #e2e8f0; cursor: pointer; margin: 6px 0; font-weight: 600; text-transform: none; letter-spacing: 0; }
.pgg-ck input { width: 16px; height: 16px; accent-color: var(--pg-b); margin-top: 2px; flex: none; }
.pgg-cks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; margin: -4px 0 10px; }
.pgg-seg { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; background: #0f172a; border: 1px solid rgba(148,163,184,.25); padding: 4px; border-radius: 12px; }
.pgg-seg button { flex: 1 1 auto; border: 0; background: transparent; color: #cbd5e1; padding: 7px 10px; border-radius: 9px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.pgg-seg button.on { background: linear-gradient(135deg, var(--pg-a), var(--pg-b)); color: #fff; box-shadow: 0 4px 12px -6px var(--pg-b); }
.pgg-quick button { flex: 1; }

/* tombol */
.pgg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 11px; padding: 9px 14px; font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; background: #334155; color: #f8fafc; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.pgg-btn:hover:not(:disabled) { transform: translateY(-1px); }
.pgg-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.pgg-btn.pri { background: linear-gradient(135deg, var(--pg-a), var(--pg-b)); box-shadow: 0 8px 22px -10px var(--pg-b); }
.pgg-btn.ml { background: linear-gradient(135deg, #06b6d4, #6366f1); box-shadow: 0 8px 22px -10px #06b6d4; }
.pgg-btn.warn { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.pgg-btn.ghost { background: rgba(148,163,184,.1); border-color: rgba(148,163,184,.3); color: #e2e8f0; }
.pgg-btn.ghost:hover:not(:disabled) { background: rgba(148,163,184,.2); }
.pgg-btn.sm { padding: 6px 10px; font-size: 12px; border-radius: 9px; }
.pgg-btn.big { padding: 14px 26px; font-size: 15.5px; border-radius: 14px; }
.pgg-btn.danger, .pgg-ib.danger { color: #fca5a5; }
.pgg-link { background: none; border: 0; color: #f0abfc; font: inherit; font-weight: 800; cursor: pointer; padding: 0; text-decoration: underline; }
.pgg-foot { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 20px 0 6px; }

/* unggah */
.pgg-drop { border: 1.5px dashed rgba(167,139,250,.5); border-radius: 14px; padding: 14px; text-align: center; color: #cbd5e1; font-size: 13.5px; background: rgba(139,92,246,.06); transition: .2s; }
.pgg-drop.over { background: rgba(139,92,246,.18); border-color: var(--pg-b); }
.pgg-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
.pgg-chip { display: inline-flex; align-items: center; gap: 6px; background: #0f172a; border: 1px solid var(--pg-line); border-radius: 999px; padding: 4px 6px 4px 10px; font-size: 12px; max-width: 100%; }
.pgg-chip button { border: 0; background: rgba(239,68,68,.18); color: #fca5a5; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; font-size: 11px; }

/* gaya & palet */
.pgg-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pgg-style { text-align: left; background: #0f172a; border: 1.5px solid rgba(148,163,184,.25); border-radius: 14px; padding: 12px; color: #e2e8f0; cursor: pointer; font: inherit; transition: .2s; position: relative; }
.pgg-style:hover { border-color: rgba(217,70,239,.6); }
.pgg-style.on { border-color: var(--pg-b); background: linear-gradient(160deg, rgba(139,92,246,.22), rgba(217,70,239,.08)); box-shadow: 0 0 0 1px var(--pg-b) inset; }
.pgg-style.on::after { content: '✓'; position: absolute; top: 8px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--pg-b); color: #fff; font-size: 12px; display: grid; place-items: center; font-weight: 900; }
.pgg-style-ic { font-size: 22px; display: block; margin-bottom: 4px; }
.pgg-style b { display: block; font-size: 13.5px; }
.pgg-style small { display: block; color: var(--pg-mut); font-size: 11.5px; margin-top: 2px; line-height: 1.35; }
.pgg-pals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pgg-pal { background: #0f172a; border: 1.5px solid rgba(148,163,184,.25); border-radius: 12px; padding: 7px 8px 5px; cursor: pointer; color: #cbd5e1; font: inherit; }
.pgg-pal span { display: flex; gap: 2px; }
.pgg-pal i { width: 16px; height: 16px; border-radius: 5px; display: block; }
.pgg-pal small { display: block; font-size: 10.5px; margin-top: 3px; text-transform: none; letter-spacing: 0; }
.pgg-pal.on { border-color: var(--pg-b); box-shadow: 0 0 0 1px var(--pg-b) inset; }
.pgg-cust { display: flex; gap: 10px; margin-top: 8px; }
.pgg-cust label { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pgg-cust input { width: 38px; height: 30px; border: 0; background: none; padding: 0; cursor: pointer; }
.pgg-cust small { font-size: 10px; text-transform: none; }

/* ---------- kerangka ---------- */
.pgg-bar2, .pgg-run { box-shadow: 0 -16px 0 0 #0f172a; }
.pgg-bar2 { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--pg-card); border: 1px solid var(--pg-line); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; position: sticky; top: 0; z-index: 5; }
.pgg-bar2-t { flex: 1 1 320px; min-width: 0; }
.pgg-title-in { font-size: 17px; font-weight: 800; margin: 0 0 3px; }
.pgg-bar2-t small { color: var(--pg-mut); font-size: 12px; }
.pgg-bar2-b { display: flex; gap: 8px; flex-wrap: wrap; }
.pgg-refs { background: var(--pg-card); border: 1px solid var(--pg-line); border-radius: 14px; padding: 10px 16px; margin-bottom: 10px; font-size: 13px; color: #cbd5e1; }
.pgg-refs ol { margin: 0; padding-left: 20px; } .pgg-refs li { margin: 4px 0; } .pgg-refs a { color: #f0abfc; }
.pgg-legend { margin: 0 0 10px; }
.pgg-outline { display: flex; flex-direction: column; gap: 10px; }
.pgg-pg { background: var(--pg-card); border: 1px solid var(--pg-line); border-radius: 16px; overflow: hidden; }
.pgg-pg-h { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: rgba(15,23,42,.6); border-bottom: 1px solid var(--pg-line); flex-wrap: wrap; }
.pgg-pg-h .pgg-in { margin: 0; width: auto; }
.pgg-sm { padding: 5px 8px !important; font-size: 12.5px !important; border-radius: 8px !important; }
.pgg-bab { max-width: 130px; }
.pgg-sp { flex: 1; }
.pgg-no { min-width: 28px; height: 28px; padding: 0 6px; border-radius: 9px; display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--pg-a), var(--pg-b)); font-weight: 900; font-size: 13px; color: #fff; flex: none; }
.pgg-mini { height: 30px; border-radius: 6px; border: 1px solid var(--pg-line); }
.pgg-ib { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--pg-line); background: rgba(148,163,184,.08); color: #e2e8f0; cursor: pointer; font: inherit; font-weight: 800; }
.pgg-ib:hover { background: rgba(148,163,184,.2); }
.pgg-pg-b { padding: 12px 14px 4px; }
.pgg-prompt { margin: 0 0 12px; }
.pgg-prompt summary { cursor: pointer; font-size: 12.5px; font-weight: 800; color: #c4b5fd; padding: 4px 0; }
.pgg-tag { background: #f59e0b; color: #111; padding: 1px 6px; border-radius: 6px; font-size: 10.5px; margin-left: 4px; }
.pgg-row-btn { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; justify-content: flex-end; }
.pgg-addend { align-self: center; }

/* ---------- lukis ---------- */
.pgg-run { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--pg-card); border: 1px solid var(--pg-line); border-radius: 16px; padding: 12px 14px; margin-bottom: 14px; position: sticky; top: 0; z-index: 5; }
.pgg-run-i { flex: 1 1 260px; min-width: 0; }
.pgg-run-i b { font-size: 14.5px; } .pgg-run-i small { color: #a5b4fc; margin-left: 8px; font-size: 12px; }
.pgg-run-b { display: flex; gap: 8px; flex-wrap: wrap; }
.pgg-bar { height: 8px; border-radius: 99px; background: rgba(148,163,184,.18); overflow: hidden; margin-top: 8px; }
.pgg-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pg-c), var(--pg-a), var(--pg-b)); border-radius: 99px; transition: width .5s; }
.pgg-slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pgg-sl { background: var(--pg-card); border: 1px solid var(--pg-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: border .2s, box-shadow .2s; }
.pgg-sl:hover { border-color: rgba(217,70,239,.5); box-shadow: 0 10px 26px -16px rgba(217,70,239,.7); }
.pgg-sl.run { border-color: rgba(34,211,238,.6); }
.pgg-sl.err { border-color: rgba(239,68,68,.6); }
.pgg-sl-img { position: relative; background: repeating-conic-gradient(#0f172a 0 25%, #131c31 0 50%) 0 0/18px 18px; }
.pgg-sl-img img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.pgg-ov { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 10px; font-size: 13px; }
.pgg-ov small { color: var(--pg-mut); font-size: 11.5px; }
.pgg-ov.run { background: rgba(15,23,42,.72); backdrop-filter: blur(2px); }
.pgg-ov.err { background: rgba(69,10,10,.75); }
.pgg-ov.idle span { font-size: 28px; opacity: .6; }
.pgg-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--pg-c); border-right-color: var(--pg-b); animation: pggspin .9s linear infinite; }
@keyframes pggspin { to { transform: rotate(360deg); } }
.pgg-sl.run .pgg-sl-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.08) 50%, transparent 70%); background-size: 200% 100%; animation: pggshine 1.6s infinite; pointer-events: none; }
@keyframes pggshine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.pgg-badge-l { position: absolute; top: 8px; left: 8px; background: linear-gradient(135deg, #06b6d4, #6366f1); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; box-shadow: 0 4px 10px -4px #000; }
.pgg-sl-t { display: flex; align-items: center; gap: 8px; padding: 10px 12px 4px; min-width: 0; }
.pgg-sl-t b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.pgg-sl-t small { color: var(--pg-mut); font-size: 11px; white-space: nowrap; }
.pgg-sl-b { display: flex; gap: 5px; padding: 6px 10px 12px; flex-wrap: wrap; }
.pgg-sl-b button { flex: 1 0 auto; border: 1px solid var(--pg-line); background: rgba(148,163,184,.08); color: #e2e8f0; border-radius: 9px; padding: 6px 8px; font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.pgg-sl-b button:hover:not(:disabled) { background: rgba(148,163,184,.2); }
.pgg-sl-b button:disabled { opacity: .35; cursor: not-allowed; }
.pgg-sl-b .pgg-mlb { background: linear-gradient(135deg, rgba(6,182,212,.3), rgba(99,102,241,.3)); border-color: rgba(99,102,241,.6); }

/* ---------- ekspor ---------- */
.pgg-fmts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pgg-fmt { text-align: left; background: #0f172a; border: 1.5px solid rgba(148,163,184,.25); border-radius: 16px; padding: 14px; color: #e2e8f0; cursor: pointer; font: inherit; transition: .2s; }
.pgg-fmt:hover:not(:disabled) { border-color: var(--pg-b); transform: translateY(-2px); }
.pgg-fmt:disabled { opacity: .5; cursor: wait; }
.pgg-fmt span { font-size: 26px; display: block; }
.pgg-fmt b { display: block; font-size: 14.5px; margin: 4px 0 2px; }
.pgg-fmt small { color: var(--pg-mut); font-size: 12px; line-height: 1.4; display: block; }
.pgg-fmt.hl { background: linear-gradient(160deg, rgba(6,182,212,.18), rgba(99,102,241,.14)); border-color: rgba(99,102,241,.6); }
.pgg-exp-st { margin: 10px 0 0; font-size: 13px; color: #a5f3fc; min-height: 18px; }
.pgg-logo { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; flex-wrap: wrap; }
.pgg-logo img { height: 52px; max-width: 140px; object-fit: contain; background: repeating-conic-gradient(#fff 0 25%, #e2e8f0 0 50%) 0 0/10px 10px; border-radius: 8px; padding: 4px; }
.pgg-misc { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- loader ---------- */
.pgg-load { position: fixed; inset: 0; z-index: 9990; display: grid; place-items: center; background: rgba(2,6,23,.72); backdrop-filter: blur(4px); padding: 16px; }
.pgg-load-card { width: min(460px, 100%); background: linear-gradient(160deg, #1e1b4b, #0f172a); border: 1px solid rgba(167,139,250,.4); border-radius: 22px; padding: 22px; color: #e2e8f0; box-shadow: 0 30px 60px -20px rgba(139,92,246,.6); }
.pgg-load-card h4 { margin: 10px 0 12px; text-align: center; font-size: 16px; }
.pgg-orb { position: relative; width: 74px; height: 74px; margin: 0 auto; }
.pgg-orb span { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: #22d3ee; animation: pggspin 1.2s linear infinite; }
.pgg-orb span:nth-child(2) { inset: 8px; border-top-color: #a78bfa; animation-duration: 1.7s; animation-direction: reverse; }
.pgg-orb span:nth-child(3) { inset: 16px; border-top-color: #f0abfc; animation-duration: 2.3s; }
.pgg-orb i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-style: normal; animation: pggpulse 1.6s ease-in-out infinite; }
@keyframes pggpulse { 50% { transform: scale(1.18); } }
.pgg-stg { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 42vh; overflow-y: auto; }
.pgg-stg li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #64748b; }
.pgg-stg li small { color: #a5b4fc; }
.pgg-stg li.on { color: #f8fafc; font-weight: 700; }
.pgg-stg li.done { color: #86efac; }
.pgg-dot { width: 10px; height: 10px; border-radius: 50%; background: #334155; flex: none; }
.pgg-stg li.on .pgg-dot { background: #22d3ee; box-shadow: 0 0 0 4px rgba(34,211,238,.25); animation: pggpulse 1s infinite; }
.pgg-stg li.done .pgg-dot { background: #22c55e; }
.pgg-ltip { margin: 12px 0 0; font-size: 12px; color: #a5b4fc; text-align: center; min-height: 32px; }

/* ---------- modal ---------- */
.pgg-modal { position: fixed; inset: 0; z-index: 9995; display: grid; place-items: center; background: rgba(2,6,23,.78); backdrop-filter: blur(4px); padding: 14px; color: #e2e8f0; font-family: inherit; }
.pgg-modal-c { width: min(720px, 100%); max-height: 92vh; overflow: auto; background: #1e293b; border: 1px solid rgba(148,163,184,.3); border-radius: 18px; padding: 18px; box-sizing: border-box; }
.pgg-modal h4 { margin: 0 0 6px; font-size: 16px; }
.pgg-modal .pgg-lb { display: block; font-size: 11.5px; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }
.pgg-modal .pgg-in { box-sizing: border-box; }
.pgg-vw .pgg-modal-c { width: min(1280px, 100%); padding: 12px; }
.pgg-vw-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; font-size: 14px; }
.pgg-vw-h span { display: flex; gap: 6px; flex-wrap: wrap; }
.pgg-vw-img img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; border-radius: 10px; display: block; background: #0f172a; }
.pgg-qchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.pgg-chip-b { border: 1px solid rgba(217,70,239,.45); background: rgba(217,70,239,.1); color: #f5d0fe; border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.pgg-vers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 10px 0; }
.pgg-vers figure { margin: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: #0f172a; }
.pgg-vers figure.on { border-color: var(--pg-b, #d946ef); cursor: default; }
.pgg-vers figure:not(.on):hover { border-color: #22d3ee; }
.pgg-vers img { width: 100%; display: block; }
.pgg-vers figcaption { font-size: 12px; padding: 6px 8px; color: #cbd5e1; }
.pgg-projs { display: grid; gap: 8px; margin: 10px 0; }
.pgg-proj { display: flex; align-items: center; gap: 10px; background: #0f172a; border: 1px solid rgba(148,163,184,.25); border-radius: 12px; padding: 8px; }
.pgg-proj.on { border-color: #d946ef; }
.pgg-proj img, .pgg-proj-ph { width: 96px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; display: grid; place-items: center; background: #1e293b; font-size: 22px; }
.pgg-proj div { flex: 1; min-width: 0; } .pgg-proj b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pgg-proj small { color: #94a3b8; font-size: 12px; }
.pgg-proj span { display: flex; gap: 6px; }
.pgg-modal .pgg-btn { font-family: inherit; }

@media (max-width: 900px) {
  .pgg-fmts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .pgg-grid, .pgg-row2 { grid-template-columns: minmax(0, 1fr); }
  .pgg-cks { grid-template-columns: minmax(0, 1fr); }
  .pgg-hero { padding: 14px; } .pgg-hero-ic { width: 42px; height: 42px; font-size: 21px; }
  .pgg-step span { display: none; } .pgg-step.on span { display: inline; }
  .pgg-slides { grid-template-columns: minmax(0, 1fr); }
  .pgg-bar2, .pgg-run { position: static; }
  .pgg-bab { max-width: 96px; }
}

/* =====================================================================
   EDITOR MAGIC LAYER (layar penuh)
   ===================================================================== */
html.pgx-lock, html.pgx-lock body { overflow: hidden !important; }
.pgx { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; background: #0b1120; color: #e2e8f0; font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; font-size: 13px; }
.pgx *, .pgx *::before, .pgx *::after { box-sizing: border-box; }
.pgx button { font: inherit; }
.pgx-top { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #111a2e; border-bottom: 1px solid rgba(148,163,184,.2); flex-wrap: wrap; }
.pgx-ttl { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 200px; }
.pgx-ttl b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
.pgx-badge { background: linear-gradient(135deg, #06b6d4, #6366f1); color: #fff; font-weight: 800; padding: 4px 10px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.pgx-tools, .pgx-act { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pgx-tools button, .pgx-act button { background: rgba(148,163,184,.1); border: 1px solid rgba(148,163,184,.25); color: #e2e8f0; padding: 6px 9px; border-radius: 8px; cursor: pointer; font-weight: 700; white-space: nowrap; }
.pgx-tools button:hover:not(:disabled), .pgx-act button:hover { background: rgba(148,163,184,.22); }
.pgx-tools button:disabled { opacity: .35; cursor: not-allowed; }
.pgx-tools button.on { background: #6366f1; border-color: #6366f1; }
.pgx-act .pgx-pri { background: linear-gradient(135deg, #8b5cf6, #d946ef); border: 0; }
.pgx-sep { width: 1px; height: 22px; background: rgba(148,163,184,.25); margin: 0 3px; }
.pgx-body { flex: 1; display: grid; grid-template-columns: 240px minmax(0, 1fr) 270px; min-height: 0; }
.pgx-layers, .pgx-props { background: #111a2e; overflow-y: auto; padding: 10px; min-height: 0; }
.pgx-layers { border-right: 1px solid rgba(148,163,184,.18); } .pgx-props { border-left: 1px solid rgba(148,163,184,.18); }
.pgx-h { font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; margin-bottom: 8px; display: flex; justify-content: space-between; }
.pgx-h small { text-transform: none; letter-spacing: 0; font-weight: 600; }
.pgx-mt { margin-top: 16px; }
.pgx-list { display: flex; flex-direction: column; gap: 3px; }
.pgx-li { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.pgx-li:hover { background: rgba(148,163,184,.1); }
.pgx-li.on { background: rgba(99,102,241,.25); border-color: rgba(99,102,241,.6); }
.pgx-li.off .pgx-nm { opacity: .4; text-decoration: line-through; }
.pgx-ic { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: rgba(148,163,184,.15); font-weight: 900; font-size: 11px; flex: none; }
.pgx-ic.asli { background: rgba(56,189,248,.25); color: #7dd3fc; }
.pgx-asli { background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.35); color: #bae6fd; border-radius: 8px; padding: 8px; font-size: 12px; line-height: 1.45; margin-bottom: 10px; }
.pgx-btn-pri { background: linear-gradient(135deg, #8b5cf6, #d946ef) !important; border: 0 !important; color: #fff !important; }
.pgx-nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.pgx-li button { background: none; border: 0; color: #cbd5e1; cursor: pointer; padding: 2px 3px; font-size: 12px; opacity: .75; }
.pgx-li button:hover { opacity: 1; }
.pgx-bgli { cursor: default; opacity: .7; } .pgx-lk { font-size: 12px; }
.pgx-lb { display: block; font-size: 11px; font-weight: 700; color: #94a3b8; margin: 0 0 10px; }
.pgx-in { display: block; width: 100%; margin-top: 4px; background: #0b1120; border: 1px solid rgba(148,163,184,.3); color: #f1f5f9; border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 13px; }
.pgx-ta { min-height: 90px; resize: vertical; line-height: 1.45; }
.pgx-col { height: 32px; padding: 2px; cursor: pointer; }
.pgx-row { display: flex; gap: 8px; align-items: flex-end; }
.pgx-row > * { flex: 1; min-width: 0; }
.pgx-w80 { flex: 0 0 80px; }
.pgx-mini { flex: 0 0 auto; margin-bottom: 14px !important; }
.pgx-seg { display: flex; gap: 3px; flex-wrap: wrap; margin-bottom: 10px; }
.pgx-seg button { flex: 1; background: rgba(148,163,184,.1); border: 1px solid rgba(148,163,184,.25); color: #e2e8f0; padding: 6px 0; border-radius: 7px; cursor: pointer; min-width: 30px; }
.pgx-seg button.on { background: #6366f1; border-color: #6366f1; }
.pgx-btn { width: 100%; background: rgba(148,163,184,.1); border: 1px solid rgba(148,163,184,.25); color: #e2e8f0; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-weight: 700; margin-bottom: 8px; }
.pgx-btn:hover { background: rgba(148,163,184,.22); }
.pgx-ck { display: flex; gap: 6px; align-items: center; font-size: 12.5px; margin: 6px 0; cursor: pointer; color: #cbd5e1; }
.pgx-ck input, .pgx-lb input[type=range] { accent-color: #8b5cf6; }
.pgx-lb input[type=range] { width: 100%; margin-top: 6px; }
.pgx-empty, .pgx-tip { color: #94a3b8; font-size: 12px; line-height: 1.5; }
.pgx-tip { margin-top: 12px; padding: 8px; background: rgba(99,102,241,.1); border-radius: 8px; }
.pgx-thumb { background: repeating-conic-gradient(#1e293b 0 25%, #0f172a 0 50%) 0 0/14px 14px; border-radius: 8px; padding: 6px; margin-bottom: 10px; text-align: center; }
.pgx-thumb img { max-width: 100%; max-height: 140px; }
.pgx-stage { position: relative; display: grid; place-items: center; overflow: auto; background: radial-gradient(circle at 50% 40%, #1e293b, #0b1120 70%); min-height: 0; padding: 12px; }
.pgx-cwrap { position: relative; box-shadow: 0 20px 50px -20px #000; line-height: 0; }
.pgx-origimg { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 5; }
.pgx.pgx-cmp .pgx-origimg { opacity: 1; }
.pgx-busy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(11,17,32,.82); z-index: 10; text-align: center; padding: 20px; }
.pgx-busy[hidden] { display: none !important; }
.pgx-busy small { color: #a5b4fc; max-width: 420px; }
.pgx-spin { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: #22d3ee; border-right-color: #d946ef; animation: pggspin .9s linear infinite; }
@media (max-width: 980px) {
  .pgx-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(260px, 1fr) auto auto; overflow-y: auto; }
  .pgx-stage { grid-row: 1; min-height: 46vh; }
  .pgx-props { grid-row: 2; border: 0; border-top: 1px solid rgba(148,163,184,.18); }
  .pgx-layers { grid-row: 3; border: 0; border-top: 1px solid rgba(148,163,184,.18); max-height: none; }
  .pgx-tools button { padding: 6px 7px; }
}

/* ---------- tema siap pakai ---------- */
.pgg-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 4px; }
.pgg-preset { text-align: left; background: #0f172a; border: 1.5px solid rgba(148,163,184,.25); border-radius: 14px; padding: 8px 8px 10px; color: #e2e8f0; cursor: pointer; font: inherit; transition: .2s; position: relative; }
.pgg-preset:hover { border-color: rgba(217,70,239,.6); transform: translateY(-1px); }
.pgg-preset.on { border-color: var(--pg-b); box-shadow: 0 0 0 1px var(--pg-b) inset, 0 8px 20px -12px var(--pg-b); }
.pgg-preset.on::after { content: '✓'; position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--pg-b); color: #fff; font-size: 12px; display: grid; place-items: center; font-weight: 900; }
.pgg-preset b { display: block; font-size: 13px; margin-top: 8px; }
.pgg-preset small { display: block; color: var(--pg-mut); font-size: 11.5px; margin-top: 2px; }
.pgg-mock { display: block; position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; }
.pgg-mock i { position: absolute; display: block; font-style: normal; }
.pgg-mock.pastel { background: #fff8ec; }
.pgg-mock.pastel .b1 { left: -10%; top: -18%; width: 34%; height: 50%; border-radius: 50%; background: #f7a48f; }
.pgg-mock.pastel .b2 { right: -8%; bottom: -20%; width: 30%; height: 52%; border-radius: 50%; background: #c9b7ee; }
.pgg-mock.pastel .rib { left: 22%; top: 9%; width: 56%; height: 12%; background: #f2836b; border-radius: 4px; }
.pgg-mock.pastel .tt { left: 18%; top: 28%; width: 46%; height: 16%; background: #1f5f67; border-radius: 6px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #5bbfb0; }
.pgg-mock.pastel .ch { right: 14%; top: 26%; width: 18%; height: 44%; border-radius: 45% 45% 20% 20%; background: radial-gradient(circle at 50% 30%, #f6d3b8 0 32%, #7a4a2b 33% 45%, #fff 46%); }
.pgg-mock.pastel .cd { bottom: 12%; height: 18%; border-radius: 6px; }
.pgg-mock.pastel .c1 { left: 12%; width: 28%; background: #bfe7e1; } .pgg-mock.pastel .c2 { left: 44%; width: 20%; background: #ffe39b; }
.pgg-mock.pro { background: linear-gradient(160deg, #fff, var(--p)); }
.pgg-mock.pro .x { color: var(--a); opacity: .25; font-weight: 900; font-size: 14px; } .pgg-mock.pro .x1 { left: 4%; top: 2%; } .pgg-mock.pro .x2 { right: 6%; bottom: 4%; }
.pgg-mock.pro .t1 { left: 8%; top: 18%; width: 46%; height: 13%; background: var(--h); border-radius: 3px; }
.pgg-mock.pro .t2 { left: 8%; top: 34%; width: 38%; height: 13%; background: var(--h); border-radius: 3px; }
.pgg-mock.pro .yr { left: 8%; top: 54%; width: 18%; height: 7%; background: var(--r); border-radius: 2px; }
.pgg-mock.pro .l1, .pgg-mock.pro .l2, .pgg-mock.pro .l3 { left: 8%; height: 4%; background: #94a3b8; border-radius: 2px; opacity: .7; }
.pgg-mock.pro .l1 { top: 68%; width: 36%; } .pgg-mock.pro .l2 { top: 76%; width: 30%; } .pgg-mock.pro .l3 { top: 84%; width: 22%; }
.pgg-mock.pro .obj { right: 8%; top: 16%; width: 34%; height: 70%; border-radius: 8px; background: linear-gradient(145deg, #f8fafc, #cbd5e1); box-shadow: 4px 6px 10px rgba(15,23,42,.25), inset -4px -6px 8px rgba(15,23,42,.12); }
.pgg-mock.pro .obj2 { left: 14%; top: 14%; width: 72%; height: 26%; border-radius: 4px; background: var(--a); opacity: .85; }

/* ---------- rak proyek ala sampul buku ---------- */
.pgg-shelfm .pgg-modal-c { width: min(980px, 100%); }
.pgg-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 18px; margin: 14px 0 6px; padding: 6px 2px 14px; }
.pgg-book { display: flex; flex-direction: column; cursor: pointer; transition: transform .3s; }
.pgg-book:hover { transform: translateY(-8px); }
.pgg-book-cv { position: relative; aspect-ratio: 3/4; border-radius: 3px 7px 7px 3px; overflow: hidden; background: #fff; box-shadow: 4px 4px 10px rgba(0,0,0,.35); transition: box-shadow .3s; }
.pgg-book:hover .pgg-book-cv { box-shadow: 8px 15px 22px rgba(13,148,136,.35); }
.pgg-book.on .pgg-book-cv { outline: 3px solid #14b8a6; outline-offset: 3px; }
.pgg-book-cv img { width: 100%; height: 100%; display: block; }
.pgg-book-bd { position: absolute; inset: 0; object-fit: cover; filter: blur(12px) saturate(1.25) brightness(.95); transform: scale(1.2); }
.pgg-book-img { position: relative; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.pgg-book-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; background: linear-gradient(160deg, #334155, #1e293b); }
.pgg-book-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: linear-gradient(90deg, rgba(0,0,0,.42), transparent); pointer-events: none; }
.pgg-book-shine { position: absolute; inset: 0; background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.pgg-book:hover .pgg-book-shine { opacity: 1; }
.pgg-book-badge { position: absolute; top: 8px; right: 8px; background: #14b8a6; color: #fff; font-size: 9px; font-weight: 900; letter-spacing: .08em; padding: 3px 7px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.pgg-book-del { position: absolute; bottom: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(239,68,68,.92); color: #fff; font-size: 12px; cursor: pointer; opacity: 0; transition: opacity .2s; }
.pgg-book:hover .pgg-book-del { opacity: 1; }
.pgg-book b { margin-top: 10px; font-size: 13px; text-align: center; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.pgg-book:hover b { color: #2dd4bf; }
.pgg-book small { text-align: center; font-size: 9.5px; font-weight: 900; color: #14b8a6; letter-spacing: .1em; text-transform: uppercase; margin-top: 3px; }
@media (hover: none) { .pgg-book-del { opacity: 1; } }

/* ---------- editor: alat area & grup ---------- */
.pgx-toolhint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: rgba(99,102,241,.95); color: #fff; font-weight: 700; font-size: 12.5px; padding: 7px 14px; border-radius: 999px; box-shadow: 0 6px 16px -6px #000; z-index: 6; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.pgx-ic.grp { background: rgba(20,184,166,.25); color: #5eead4; }
.pgx-nm small { color: #94a3b8; font-weight: 600; }
